gogol-compute-0.4.0: Google Compute Engine 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.Compute.Snapshots.SetIAMPolicy

Contents

Description

Sets the access control policy on the specified resource. Replaces any existing policy.

See: Compute Engine API Reference for compute.snapshots.setIamPolicy.

Synopsis

REST Resource

type SnapshotsSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetPolicyRequest :> Post '[JSON] Policy))))))))) Source #

A resource alias for compute.snapshots.setIamPolicy method which the SnapshotsSetIAMPolicy request conforms to.

Creating a Request

snapshotsSetIAMPolicy Source #

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

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

data SnapshotsSetIAMPolicy Source #

Sets the access control policy on the specified resource. Replaces any existing policy.

See: snapshotsSetIAMPolicy smart constructor.

Instances
Eq SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

Data SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

Methods

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

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

toConstr :: SnapshotsSetIAMPolicy -> Constr #

dataTypeOf :: SnapshotsSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

Generic SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

Associated Types

type Rep SnapshotsSetIAMPolicy :: Type -> Type #

GoogleRequest SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

type Rep SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

type Rep SnapshotsSetIAMPolicy = D1 (MetaData "SnapshotsSetIAMPolicy" "Network.Google.Resource.Compute.Snapshots.SetIAMPolicy" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "SnapshotsSetIAMPolicy'" PrefixI True) (S1 (MetaSel (Just "_ssipProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ssipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GlobalSetPolicyRequest) :*: S1 (MetaSel (Just "_ssipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes SnapshotsSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

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

Defined in Network.Google.Resource.Compute.Snapshots.SetIAMPolicy

Request Lenses

ssipProject :: Lens' SnapshotsSetIAMPolicy Text Source #

Project ID for this request.

ssipResource :: Lens' SnapshotsSetIAMPolicy Text Source #

Name or id of the resource for this request.