Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new ACL entry on the specified bucket.
See: Cloud Storage JSON API Reference for storage.bucketAccessControls.insert
.
Synopsis
- type BucketAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("acl" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BucketAccessControl :> Post '[JSON] BucketAccessControl)))))))
- bucketAccessControlsInsert :: Text -> BucketAccessControl -> BucketAccessControlsInsert
- data BucketAccessControlsInsert
- baciBucket :: Lens' BucketAccessControlsInsert Text
- baciPayload :: Lens' BucketAccessControlsInsert BucketAccessControl
- baciUserProject :: Lens' BucketAccessControlsInsert (Maybe Text)
REST Resource
type BucketAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("acl" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BucketAccessControl :> Post '[JSON] BucketAccessControl))))))) Source #
A resource alias for storage.bucketAccessControls.insert
method which the
BucketAccessControlsInsert
request conforms to.
Creating a Request
bucketAccessControlsInsert Source #
Creates a value of BucketAccessControlsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketAccessControlsInsert Source #
Creates a new ACL entry on the specified bucket.
See: bucketAccessControlsInsert
smart constructor.
Instances
Request Lenses
baciBucket :: Lens' BucketAccessControlsInsert Text Source #
Name of a bucket.
baciPayload :: Lens' BucketAccessControlsInsert BucketAccessControl Source #
Multipart request metadata.
baciUserProject :: Lens' BucketAccessControlsInsert (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.