gogol-spanner-0.4.0: Google Cloud Spanner 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.Spanner.Projects.Instances.SetIAMPolicy

Contents

Description

Sets the access control policy on an instance resource. Replaces any existing policy. Authorization requires `spanner.instances.setIamPolicy` on resource.

See: Cloud Spanner API Reference for spanner.projects.instances.setIamPolicy.

Synopsis

REST Resource

type ProjectsInstancesSetIAMPolicyResource = "v1" :> (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 spanner.projects.instances.setIamPolicy method which the ProjectsInstancesSetIAMPolicy request conforms to.

Creating a Request

data ProjectsInstancesSetIAMPolicy Source #

Sets the access control policy on an instance resource. Replaces any existing policy. Authorization requires `spanner.instances.setIamPolicy` on resource.

See: projectsInstancesSetIAMPolicy smart constructor.

Instances
Eq ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

Data ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

Methods

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

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

toConstr :: ProjectsInstancesSetIAMPolicy -> Constr #

dataTypeOf :: ProjectsInstancesSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

Generic ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

Associated Types

type Rep ProjectsInstancesSetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

type Rep ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

type Rep ProjectsInstancesSetIAMPolicy = D1 (MetaData "ProjectsInstancesSetIAMPolicy" "Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pisipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pisipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pisipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pisipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pisipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_pisipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pisipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesSetIAMPolicy Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

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

Defined in Network.Google.Resource.Spanner.Projects.Instances.SetIAMPolicy

Request Lenses

pisipUploadProtocol :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #

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

pisipUploadType :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #

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

pisipResource :: Lens' ProjectsInstancesSetIAMPolicy Text Source #

REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources.