gogol-resourcemanager-0.0.1: Google Cloud Resource Manager SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Returns the IAM access control policy for specified project.

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


REST Resource

type ProjectsGetIAMPolicyResource = "v1beta1" :> ("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:

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 policy is being requested. Resource is usually specified as a path, such as, `projects/{project}`.