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

Contents

Description

Sets the access control policy on a database resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesSetIAMPolicyResource = "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.databases.setIamPolicy method which the ProjectsInstancesDatabasesSetIAMPolicy request conforms to.

Creating a Request

data ProjectsInstancesDatabasesSetIAMPolicy Source #

Sets the access control policy on a database resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource.

See: projectsInstancesDatabasesSetIAMPolicy smart constructor.

Instances
Eq ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

Data ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesSetIAMPolicy -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

Generic ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesSetIAMPolicy = D1 (MetaData "ProjectsInstancesDatabasesSetIAMPolicy" "Network.Google.Resource.Spanner.Projects.Instances.Databases.SetIAMPolicy" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pidsipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidsipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_pidsipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

pidsipUploadProtocol :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text) Source #

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

pidsipUploadType :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text) Source #

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

pidsipResource :: Lens' ProjectsInstancesDatabasesSetIAMPolicy 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.