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

Contents

Description

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

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

Synopsis

REST Resource

type ProjectsInstancesTestIAMPermissionsResource = "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.testIamPermissions method which the ProjectsInstancesTestIAMPermissions request conforms to.

Creating a Request

data ProjectsInstancesTestIAMPermissions Source #

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

See: projectsInstancesTestIAMPermissions smart constructor.

Instances
Eq ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

Data ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesTestIAMPermissions -> Constr #

dataTypeOf :: ProjectsInstancesTestIAMPermissions -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

Generic ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

GoogleRequest ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

type Rep ProjectsInstancesTestIAMPermissions = D1 (MetaData "ProjectsInstancesTestIAMPermissions" "Network.Google.Resource.Spanner.Projects.Instances.TestIAMPermissions" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesTestIAMPermissions'" PrefixI True) ((S1 (MetaSel (Just "_pitipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pitipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pitipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pitipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pitipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TestIAMPermissionsRequest)) :*: (S1 (MetaSel (Just "_pitipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pitipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesTestIAMPermissions Source # 
Instance details

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

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

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

Request Lenses

pitipUploadProtocol :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text) Source #

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

pitipUploadType :: Lens' ProjectsInstancesTestIAMPermissions (Maybe Text) Source #

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

pitipResource :: Lens' ProjectsInstancesTestIAMPermissions 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.