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 |
Patches an ACL entry on the specified object.
See: Cloud Storage JSON API Reference for storage.objectAccessControls.patch
.
Synopsis
- type ObjectAccessControlsPatchResource = "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 :> Patch '[JSON] ObjectAccessControl)))))))))))
- objectAccessControlsPatch :: Text -> ObjectAccessControl -> Text -> Text -> ObjectAccessControlsPatch
- data ObjectAccessControlsPatch
- oacpBucket :: Lens' ObjectAccessControlsPatch Text
- oacpPayload :: Lens' ObjectAccessControlsPatch ObjectAccessControl
- oacpUserProject :: Lens' ObjectAccessControlsPatch (Maybe Text)
- oacpObject :: Lens' ObjectAccessControlsPatch Text
- oacpEntity :: Lens' ObjectAccessControlsPatch Text
- oacpGeneration :: Lens' ObjectAccessControlsPatch (Maybe Int64)
REST Resource
type ObjectAccessControlsPatchResource = "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 :> Patch '[JSON] ObjectAccessControl))))))))))) Source #
A resource alias for storage.objectAccessControls.patch
method which the
ObjectAccessControlsPatch
request conforms to.
Creating a Request
objectAccessControlsPatch Source #
:: Text | |
-> ObjectAccessControl | |
-> Text | |
-> Text | |
-> ObjectAccessControlsPatch |
Creates a value of ObjectAccessControlsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectAccessControlsPatch Source #
Patches an ACL entry on the specified object.
See: objectAccessControlsPatch
smart constructor.
Instances
Request Lenses
oacpBucket :: Lens' ObjectAccessControlsPatch Text Source #
Name of a bucket.
oacpPayload :: Lens' ObjectAccessControlsPatch ObjectAccessControl Source #
Multipart request metadata.
oacpUserProject :: Lens' ObjectAccessControlsPatch (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
oacpObject :: Lens' ObjectAccessControlsPatch Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
oacpEntity :: Lens' ObjectAccessControlsPatch Text Source #
The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
oacpGeneration :: Lens' ObjectAccessControlsPatch (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).