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

Contents

Description

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

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

Synopsis

REST Resource

type SubnetworksSetIAMPolicyResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("subnetworks" :> (Capture "resource" Text :> ("setIamPolicy" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionSetPolicyRequest :> Post '[JSON] Policy)))))))))) Source #

A resource alias for compute.subnetworks.setIamPolicy method which the SubnetworksSetIAMPolicy request conforms to.

Creating a Request

subnetworksSetIAMPolicy Source #

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

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

data SubnetworksSetIAMPolicy Source #

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

See: subnetworksSetIAMPolicy smart constructor.

Instances
Eq SubnetworksSetIAMPolicy Source # 
Instance details

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

Data SubnetworksSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: SubnetworksSetIAMPolicy -> Constr #

dataTypeOf :: SubnetworksSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubnetworksSetIAMPolicy Source # 
Instance details

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

Generic SubnetworksSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep SubnetworksSetIAMPolicy :: Type -> Type #

GoogleRequest SubnetworksSetIAMPolicy Source # 
Instance details

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

type Rep SubnetworksSetIAMPolicy Source # 
Instance details

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

type Rep SubnetworksSetIAMPolicy = D1 (MetaData "SubnetworksSetIAMPolicy" "Network.Google.Resource.Compute.Subnetworks.SetIAMPolicy" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "SubnetworksSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_ssiampProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ssiampPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RegionSetPolicyRequest)) :*: (S1 (MetaSel (Just "_ssiampResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ssiampRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes SubnetworksSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

ssiampProject :: Lens' SubnetworksSetIAMPolicy Text Source #

Project ID for this request.

ssiampResource :: Lens' SubnetworksSetIAMPolicy Text Source #

Name or id of the resource for this request.

ssiampRegion :: Lens' SubnetworksSetIAMPolicy Text Source #

The name of the region for this request.