gogol-storage-0.0.1: Google Cloud Storage JSON SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Storage.ObjectAccessControls.Insert

Contents

Description

Creates a new ACL entry on the specified object.

See: Cloud Storage JSON API Reference for storage.objectAccessControls.insert.

Synopsis

REST Resource

type ObjectAccessControlsInsertResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("acl" :> (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:

Request Lenses

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).