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

Contents

Description

Updates an IAM policy for the specified bucket.

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

Synopsis

REST Resource

type BucketsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy))))))) Source #

A resource alias for storage.buckets.setIamPolicy method which the BucketsSetIAMPolicy request conforms to.

Creating a Request

bucketsSetIAMPolicy Source #

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

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

data BucketsSetIAMPolicy Source #

Updates an IAM policy for the specified bucket.

See: bucketsSetIAMPolicy smart constructor.

Instances
Eq BucketsSetIAMPolicy Source # 
Instance details

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

Data BucketsSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: BucketsSetIAMPolicy -> Constr #

dataTypeOf :: BucketsSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BucketsSetIAMPolicy Source # 
Instance details

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

Generic BucketsSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep BucketsSetIAMPolicy :: Type -> Type #

GoogleRequest BucketsSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rs BucketsSetIAMPolicy :: Type #

type Scopes BucketsSetIAMPolicy :: [Symbol] #

type Rep BucketsSetIAMPolicy Source # 
Instance details

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

type Rep BucketsSetIAMPolicy = D1 (MetaData "BucketsSetIAMPolicy" "Network.Google.Resource.Storage.Buckets.SetIAMPolicy" "gogol-storage-0.4.0-F1QXZopXJqf9Y2QJKwfuR3" False) (C1 (MetaCons "BucketsSetIAMPolicy'" PrefixI True) (S1 (MetaSel (Just "_bsipBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_bsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Policy) :*: S1 (MetaSel (Just "_bsipUserProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes BucketsSetIAMPolicy Source # 
Instance details

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

type Scopes BucketsSetIAMPolicy = "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 BucketsSetIAMPolicy Source # 
Instance details

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

Request Lenses

bsipPayload :: Lens' BucketsSetIAMPolicy Policy Source #

Multipart request metadata.

bsipUserProject :: Lens' BucketsSetIAMPolicy (Maybe Text) Source #

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