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.GetIAMPolicy

Contents

Description

Gets the access control policy for a database resource. Returns an empty policy if a database exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesGetIAMPolicyResource = "v1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #

A resource alias for spanner.projects.instances.databases.getIamPolicy method which the ProjectsInstancesDatabasesGetIAMPolicy request conforms to.

Creating a Request

data ProjectsInstancesDatabasesGetIAMPolicy Source #

Gets the access control policy for a database resource. Returns an empty policy if a database exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource.

See: projectsInstancesDatabasesGetIAMPolicy smart constructor.

Instances
Eq ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

Data ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesGetIAMPolicy -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesGetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

Generic ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesGetIAMPolicy = D1 (MetaData "ProjectsInstancesDatabasesGetIAMPolicy" "Network.Google.Resource.Spanner.Projects.Instances.Databases.GetIAMPolicy" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesGetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pidgipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidgipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidgipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidgipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidgipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_pidgipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidgipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesGetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

pidgipUploadProtocol :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text) Source #

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

pidgipUploadType :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text) Source #

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

pidgipResource :: Lens' ProjectsInstancesDatabasesGetIAMPolicy Text Source #

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