gogol-resourcemanager-0.1.1: Google Cloud Resource Manager 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.CloudResourceManager.Projects.GetIAMPolicy

Contents

Description

Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist.

See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.getIamPolicy.

Synopsis

REST Resource

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

A resource alias for cloudresourcemanager.projects.getIamPolicy method which the ProjectsGetIAMPolicy request conforms to.

Creating a Request

projectsGetIAMPolicy Source #

Creates a value of ProjectsGetIAMPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsGetIAMPolicy Source #

Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist.

See: projectsGetIAMPolicy smart constructor.

Instances

Eq ProjectsGetIAMPolicy Source # 
Data ProjectsGetIAMPolicy Source # 

Methods

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

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

toConstr :: ProjectsGetIAMPolicy -> Constr #

dataTypeOf :: ProjectsGetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsGetIAMPolicy Source # 
Generic ProjectsGetIAMPolicy Source # 
GoogleRequest ProjectsGetIAMPolicy Source # 
type Rep ProjectsGetIAMPolicy Source # 
type Rep ProjectsGetIAMPolicy = D1 (MetaData "ProjectsGetIAMPolicy" "Network.Google.Resource.CloudResourceManager.Projects.GetIAMPolicy" "gogol-resourcemanager-0.1.1-AEz0f6mUx4eCqjXGxlj0rQ" False) (C1 (MetaCons "ProjectsGetIAMPolicy'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pgipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pgipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pgipPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_pgipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pgipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pgipPayload") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 GetIAMPolicyRequest))) ((:*:) (S1 (MetaSel (Just Symbol "_pgipBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_pgipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pgipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))
type Scopes ProjectsGetIAMPolicy Source # 
type Scopes ProjectsGetIAMPolicy = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/cloud-platform.read-only" ([] Symbol))
type Rs ProjectsGetIAMPolicy Source # 

Request Lenses

pgipUploadProtocol :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source #

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

pgipPp :: Lens' ProjectsGetIAMPolicy Bool Source #

Pretty-print response.

pgipUploadType :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source #

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

pgipResource :: Lens' ProjectsGetIAMPolicy Text Source #

REQUIRED: The resource for which the policy is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.