gogol-compute-0.5.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.Instances.SetIAMPolicy

Contents

Description

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

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

Synopsis

REST Resource

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

A resource alias for compute.instances.setIamPolicy method which the InstancesSetIAMPolicy request conforms to.

Creating a Request

instancesSetIAMPolicy Source #

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

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

data InstancesSetIAMPolicy Source #

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

See: instancesSetIAMPolicy smart constructor.

Instances
Eq InstancesSetIAMPolicy Source # 
Instance details

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

Data InstancesSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: InstancesSetIAMPolicy -> Constr #

dataTypeOf :: InstancesSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesSetIAMPolicy Source # 
Instance details

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

Generic InstancesSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep InstancesSetIAMPolicy :: Type -> Type #

GoogleRequest InstancesSetIAMPolicy Source # 
Instance details

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

type Rep InstancesSetIAMPolicy Source # 
Instance details

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

type Rep InstancesSetIAMPolicy = D1 (MetaData "InstancesSetIAMPolicy" "Network.Google.Resource.Compute.Instances.SetIAMPolicy" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "InstancesSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_isipProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_isipZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_isipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ZoneSetPolicyRequest) :*: S1 (MetaSel (Just "_isipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes InstancesSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

isipProject :: Lens' InstancesSetIAMPolicy Text Source #

Project ID for this request.

isipZone :: Lens' InstancesSetIAMPolicy Text Source #

The name of the zone for this request.

isipResource :: Lens' InstancesSetIAMPolicy Text Source #

Name or id of the resource for this request.