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 object.
See: Cloud Storage JSON API Reference for storage.objectAccessControls.update
.
Synopsis
- type ObjectAccessControlsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (Capture "entity" Text :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Put '[JSON] ObjectAccessControl)))))))))))
- objectAccessControlsUpdate :: Text -> ObjectAccessControl -> Text -> Text -> ObjectAccessControlsUpdate
- data ObjectAccessControlsUpdate
- oacuBucket :: Lens' ObjectAccessControlsUpdate Text
- oacuPayload :: Lens' ObjectAccessControlsUpdate ObjectAccessControl
- oacuUserProject :: Lens' ObjectAccessControlsUpdate (Maybe Text)
- oacuObject :: Lens' ObjectAccessControlsUpdate Text
- oacuEntity :: Lens' ObjectAccessControlsUpdate Text
- oacuGeneration :: Lens' ObjectAccessControlsUpdate (Maybe Int64)
REST Resource
type ObjectAccessControlsUpdateResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (Capture "entity" Text :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Put '[JSON] ObjectAccessControl))))))))))) Source #
A resource alias for storage.objectAccessControls.update
method which the
ObjectAccessControlsUpdate
request conforms to.
Creating a Request
objectAccessControlsUpdate Source #
:: Text | |
-> ObjectAccessControl | |
-> Text | |
-> Text | |
-> ObjectAccessControlsUpdate |
Creates a value of ObjectAccessControlsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectAccessControlsUpdate Source #
Updates an ACL entry on the specified object.
See: objectAccessControlsUpdate
smart constructor.
Instances
Request Lenses
oacuBucket :: Lens' ObjectAccessControlsUpdate Text Source #
Name of a bucket.
oacuPayload :: Lens' ObjectAccessControlsUpdate ObjectAccessControl Source #
Multipart request metadata.
oacuUserProject :: Lens' ObjectAccessControlsUpdate (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
oacuObject :: Lens' ObjectAccessControlsUpdate Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
oacuEntity :: Lens' ObjectAccessControlsUpdate Text Source #
The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
oacuGeneration :: Lens' ObjectAccessControlsUpdate (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).