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

Copyright(c) 2015-2016 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 "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
Eq ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

Data ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ObjectAccessControlsInsert -> c ObjectAccessControlsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ObjectAccessControlsInsert #

toConstr :: ObjectAccessControlsInsert -> Constr #

dataTypeOf :: ObjectAccessControlsInsert -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ObjectAccessControlsInsert) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ObjectAccessControlsInsert) #

gmapT :: (forall b. Data b => b -> b) -> ObjectAccessControlsInsert -> ObjectAccessControlsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ObjectAccessControlsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ObjectAccessControlsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> ObjectAccessControlsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ObjectAccessControlsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ObjectAccessControlsInsert -> m ObjectAccessControlsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectAccessControlsInsert -> m ObjectAccessControlsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ObjectAccessControlsInsert -> m ObjectAccessControlsInsert #

Show ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

Generic ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

Associated Types

type Rep ObjectAccessControlsInsert :: Type -> Type #

GoogleRequest ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

type Rep ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

type Rep ObjectAccessControlsInsert = D1 (MetaData "ObjectAccessControlsInsert" "Network.Google.Resource.Storage.ObjectAccessControls.Insert" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectAccessControlsInsert'" PrefixI True) ((S1 (MetaSel (Just "_oaciBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_oaciPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectAccessControl)) :*: (S1 (MetaSel (Just "_oaciUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_oaciObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_oaciGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

type Scopes ObjectAccessControlsInsert = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/devstorage.full_control" ': ([] :: [Symbol]))
type Rs ObjectAccessControlsInsert Source # 
Instance details

Defined in Network.Google.Resource.Storage.ObjectAccessControls.Insert

Request Lenses

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