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

Contents

Description

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

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

Synopsis

REST Resource

type DisksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("disks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ZoneSetPolicyRequest :> Post '[JSON] Policy)))))))))) Source #

A resource alias for compute.disks.setIamPolicy method which the DisksSetIAMPolicy request conforms to.

Creating a Request

disksSetIAMPolicy Source #

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

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

data DisksSetIAMPolicy Source #

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

See: disksSetIAMPolicy smart constructor.

Instances
Eq DisksSetIAMPolicy Source # 
Instance details

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

Data DisksSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: DisksSetIAMPolicy -> Constr #

dataTypeOf :: DisksSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DisksSetIAMPolicy Source # 
Instance details

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

Generic DisksSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep DisksSetIAMPolicy :: Type -> Type #

GoogleRequest DisksSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rs DisksSetIAMPolicy :: Type #

type Scopes DisksSetIAMPolicy :: [Symbol] #

type Rep DisksSetIAMPolicy Source # 
Instance details

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

type Rep DisksSetIAMPolicy = D1 (MetaData "DisksSetIAMPolicy" "Network.Google.Resource.Compute.Disks.SetIAMPolicy" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "DisksSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_dsipProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dsipZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_dsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ZoneSetPolicyRequest) :*: S1 (MetaSel (Just "_dsipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DisksSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

dsipProject :: Lens' DisksSetIAMPolicy Text Source #

Project ID for this request.

dsipZone :: Lens' DisksSetIAMPolicy Text Source #

The name of the zone for this request.

dsipResource :: Lens' DisksSetIAMPolicy Text Source #

Name or id of the resource for this request.