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 |
Creates a new default object ACL entry on the specified bucket.
See: Cloud Storage JSON API Reference for storage.defaultObjectAccessControls.insert
.
Synopsis
- type DefaultObjectAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("defaultObjectAcl" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Post '[JSON] ObjectAccessControl)))))))
- defaultObjectAccessControlsInsert :: Text -> ObjectAccessControl -> DefaultObjectAccessControlsInsert
- data DefaultObjectAccessControlsInsert
- doaciBucket :: Lens' DefaultObjectAccessControlsInsert Text
- doaciPayload :: Lens' DefaultObjectAccessControlsInsert ObjectAccessControl
- doaciUserProject :: Lens' DefaultObjectAccessControlsInsert (Maybe Text)
REST Resource
type DefaultObjectAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("defaultObjectAcl" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Post '[JSON] ObjectAccessControl))))))) Source #
A resource alias for storage.defaultObjectAccessControls.insert
method which the
DefaultObjectAccessControlsInsert
request conforms to.
Creating a Request
defaultObjectAccessControlsInsert Source #
Creates a value of DefaultObjectAccessControlsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DefaultObjectAccessControlsInsert Source #
Creates a new default object ACL entry on the specified bucket.
See: defaultObjectAccessControlsInsert
smart constructor.
Instances
Request Lenses
doaciBucket :: Lens' DefaultObjectAccessControlsInsert Text Source #
Name of a bucket.
doaciPayload :: Lens' DefaultObjectAccessControlsInsert ObjectAccessControl Source #
Multipart request metadata.
doaciUserProject :: Lens' DefaultObjectAccessControlsInsert (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.