gogol-resourcemanager-0.4.0: Google Cloud Resource Manager 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.CloudResourceManager.Folders.SetIAMPolicy

Contents

Description

Sets the access control policy on a Folder, replacing any existing policy. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.setIamPolicy` permission on the identified folder.

See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.setIamPolicy.

Synopsis

REST Resource

type FoldersSetIAMPolicyResource = "v2" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #

A resource alias for cloudresourcemanager.folders.setIamPolicy method which the FoldersSetIAMPolicy request conforms to.

Creating a Request

foldersSetIAMPolicy Source #

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

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

data FoldersSetIAMPolicy Source #

Sets the access control policy on a Folder, replacing any existing policy. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.setIamPolicy` permission on the identified folder.

See: foldersSetIAMPolicy smart constructor.

Instances
Eq FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Data FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Methods

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

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

toConstr :: FoldersSetIAMPolicy -> Constr #

dataTypeOf :: FoldersSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Generic FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Associated Types

type Rep FoldersSetIAMPolicy :: Type -> Type #

GoogleRequest FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Associated Types

type Rs FoldersSetIAMPolicy :: Type #

type Scopes FoldersSetIAMPolicy :: [Symbol] #

type Rep FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

type Rep FoldersSetIAMPolicy = D1 (MetaData "FoldersSetIAMPolicy" "Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy" "gogol-resourcemanager-0.4.0-UDFVnkFAEA9efzG80swCH" False) (C1 (MetaCons "FoldersSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_fsipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_fsipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fsipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_fsipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_fsipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_fsipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes FoldersSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

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

Defined in Network.Google.Resource.CloudResourceManager.Folders.SetIAMPolicy

Request Lenses

fsipUploadProtocol :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

fsipUploadType :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

fsipResource :: Lens' FoldersSetIAMPolicy Text Source #

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.