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