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 |
Updates an ACL entry on the specified bucket.
See: Cloud Storage JSON API Reference for storage.bucketAccessControls.update
.
Synopsis
- type BucketAccessControlsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("acl" :> (Capture "entity" Text :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BucketAccessControl :> Put '[JSON] BucketAccessControl))))))))
- bucketAccessControlsUpdate :: Text -> BucketAccessControl -> Text -> BucketAccessControlsUpdate
- data BucketAccessControlsUpdate
- bacuBucket :: Lens' BucketAccessControlsUpdate Text
- bacuPayload :: Lens' BucketAccessControlsUpdate BucketAccessControl
- bacuUserProject :: Lens' BucketAccessControlsUpdate (Maybe Text)
- bacuEntity :: Lens' BucketAccessControlsUpdate Text
REST Resource
type BucketAccessControlsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("acl" :> (Capture "entity" Text :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BucketAccessControl :> Put '[JSON] BucketAccessControl)))))))) Source #
A resource alias for storage.bucketAccessControls.update
method which the
BucketAccessControlsUpdate
request conforms to.
Creating a Request
bucketAccessControlsUpdate Source #
Creates a value of BucketAccessControlsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketAccessControlsUpdate Source #
Updates an ACL entry on the specified bucket.
See: bucketAccessControlsUpdate
smart constructor.
Instances
Request Lenses
bacuBucket :: Lens' BucketAccessControlsUpdate Text Source #
Name of a bucket.
bacuPayload :: Lens' BucketAccessControlsUpdate BucketAccessControl Source #
Multipart request metadata.
bacuUserProject :: Lens' BucketAccessControlsUpdate (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
bacuEntity :: Lens' BucketAccessControlsUpdate Text Source #
The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.