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

Contents

Description

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

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

Synopsis

REST Resource

type ProjectsInstancesGetIAMPolicyResource = "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.getIamPolicy method which the ProjectsInstancesGetIAMPolicy request conforms to.

Creating a Request

data ProjectsInstancesGetIAMPolicy Source #

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

See: projectsInstancesGetIAMPolicy smart constructor.

Instances
Eq ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

Data ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsInstancesGetIAMPolicy -> Constr #

dataTypeOf :: ProjectsInstancesGetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

Generic ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep ProjectsInstancesGetIAMPolicy :: Type -> Type #

GoogleRequest ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

type Rep ProjectsInstancesGetIAMPolicy = D1 (MetaData "ProjectsInstancesGetIAMPolicy" "Network.Google.Resource.Spanner.Projects.Instances.GetIAMPolicy" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesGetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_pigipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pigipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pigipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pigipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pigipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_pigipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pigipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesGetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

pigipUploadProtocol :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #

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

pigipUploadType :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #

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

pigipResource :: Lens' ProjectsInstancesGetIAMPolicy 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.