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 ACL entry on the specified object.
See: Cloud Storage JSON API Reference for storage.objectAccessControls.insert
.
Synopsis
- type ObjectAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Post '[JSON] ObjectAccessControl))))))))))
- objectAccessControlsInsert :: Text -> ObjectAccessControl -> Text -> ObjectAccessControlsInsert
- data ObjectAccessControlsInsert
- oaciBucket :: Lens' ObjectAccessControlsInsert Text
- oaciPayload :: Lens' ObjectAccessControlsInsert ObjectAccessControl
- oaciUserProject :: Lens' ObjectAccessControlsInsert (Maybe Text)
- oaciObject :: Lens' ObjectAccessControlsInsert Text
- oaciGeneration :: Lens' ObjectAccessControlsInsert (Maybe Int64)
REST Resource
type ObjectAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ObjectAccessControl :> Post '[JSON] ObjectAccessControl)))))))))) Source #
A resource alias for storage.objectAccessControls.insert
method which the
ObjectAccessControlsInsert
request conforms to.
Creating a Request
objectAccessControlsInsert Source #
Creates a value of ObjectAccessControlsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectAccessControlsInsert Source #
Creates a new ACL entry on the specified object.
See: objectAccessControlsInsert
smart constructor.
Instances
Request Lenses
oaciBucket :: Lens' ObjectAccessControlsInsert Text Source #
Name of a bucket.
oaciPayload :: Lens' ObjectAccessControlsInsert ObjectAccessControl Source #
Multipart request metadata.
oaciUserProject :: Lens' ObjectAccessControlsInsert (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
oaciObject :: Lens' ObjectAccessControlsInsert Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
oaciGeneration :: Lens' ObjectAccessControlsInsert (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).