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