gogol-spanner-0.5.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.TestIAMPermissions

Contents

Description

Returns permissions that the caller has on the specified database resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions.

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

Synopsis

REST Resource

type ProjectsInstancesDatabasesTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #

A resource alias for spanner.projects.instances.databases.testIamPermissions method which the ProjectsInstancesDatabasesTestIAMPermissions request conforms to.

Creating a Request

data ProjectsInstancesDatabasesTestIAMPermissions Source #

Returns permissions that the caller has on the specified database resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has `spanner.databases.list` permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions.

See: projectsInstancesDatabasesTestIAMPermissions smart constructor.

Instances
Eq ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

Data ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesDatabasesTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

Generic ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

GoogleRequest ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsInstancesDatabasesTestIAMPermissions = D1 (MetaData "ProjectsInstancesDatabasesTestIAMPermissions" "Network.Google.Resource.Spanner.Projects.Instances.Databases.TestIAMPermissions" "gogol-spanner-0.5.0-EbKAd7GSsmo9VdnPLfZZzz" False) (C1 (MetaCons "ProjectsInstancesDatabasesTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_pidtipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidtipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidtipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidtipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidtipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_pidtipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidtipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesTestIAMPermissions Source # 
Instance details

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

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

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

Request Lenses

pidtipUploadProtocol :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text) Source #

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

pidtipUploadType :: Lens' ProjectsInstancesDatabasesTestIAMPermissions (Maybe Text) Source #

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

pidtipResource :: Lens' ProjectsInstancesDatabasesTestIAMPermissions Text Source #

REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.