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.Objects.SetIAMPolicy

Contents

Description

Updates an IAM policy for the specified object.

See: Cloud Storage JSON API Reference for storage.objects.setIamPolicy.

Synopsis

REST Resource

type ObjectsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy)))))))))) Source #

A resource alias for storage.objects.setIamPolicy method which the ObjectsSetIAMPolicy request conforms to.

Creating a Request

objectsSetIAMPolicy Source #

Creates a value of ObjectsSetIAMPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ObjectsSetIAMPolicy Source #

Updates an IAM policy for the specified object.

See: objectsSetIAMPolicy smart constructor.

Instances
Eq ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Data ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Methods

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

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

toConstr :: ObjectsSetIAMPolicy -> Constr #

dataTypeOf :: ObjectsSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Generic ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Associated Types

type Rep ObjectsSetIAMPolicy :: Type -> Type #

GoogleRequest ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Associated Types

type Rs ObjectsSetIAMPolicy :: Type #

type Scopes ObjectsSetIAMPolicy :: [Symbol] #

type Rep ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

type Rep ObjectsSetIAMPolicy = D1 (MetaData "ObjectsSetIAMPolicy" "Network.Google.Resource.Storage.Objects.SetIAMPolicy" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "ObjectsSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_osipBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_osipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Policy)) :*: (S1 (MetaSel (Just "_osipUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_osipObject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_osipGeneration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes ObjectsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

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

Defined in Network.Google.Resource.Storage.Objects.SetIAMPolicy

Request Lenses

osipBucket :: Lens' ObjectsSetIAMPolicy Text Source #

Name of the bucket in which the object resides.

osipPayload :: Lens' ObjectsSetIAMPolicy Policy Source #

Multipart request metadata.

osipUserProject :: Lens' ObjectsSetIAMPolicy (Maybe Text) Source #

The project to be billed for this request. Required for Requester Pays buckets.

osipObject :: Lens' ObjectsSetIAMPolicy Text Source #

Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

osipGeneration :: Lens' ObjectsSetIAMPolicy (Maybe Int64) Source #

If present, selects a specific revision of this object (as opposed to the latest version, the default).