| Copyright | (c) 2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.CloudResourceManager.Projects.GetIAMPolicy
Description
Returns the IAM access control policy for specified project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.getIamPolicy.
- 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)))))))))))
- projectsGetIAMPolicy :: GetIAMPolicyRequest -> Text -> ProjectsGetIAMPolicy
- data ProjectsGetIAMPolicy
- pgipXgafv :: Lens' ProjectsGetIAMPolicy (Maybe Text)
- pgipUploadProtocol :: Lens' ProjectsGetIAMPolicy (Maybe Text)
- pgipPp :: Lens' ProjectsGetIAMPolicy Bool
- pgipAccessToken :: Lens' ProjectsGetIAMPolicy (Maybe Text)
- pgipUploadType :: Lens' ProjectsGetIAMPolicy (Maybe Text)
- pgipPayload :: Lens' ProjectsGetIAMPolicy GetIAMPolicyRequest
- pgipBearerToken :: Lens' ProjectsGetIAMPolicy (Maybe Text)
- pgipResource :: Lens' ProjectsGetIAMPolicy Text
- pgipCallback :: Lens' ProjectsGetIAMPolicy (Maybe Text)
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
Arguments
| :: GetIAMPolicyRequest | |
| -> Text | |
| -> ProjectsGetIAMPolicy |
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 specified project.
See: projectsGetIAMPolicy smart constructor.
Request Lenses
pgipUploadProtocol :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
pgipPp :: Lens' ProjectsGetIAMPolicy Bool Source
Pretty-print response.
pgipAccessToken :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source
OAuth access token.
pgipUploadType :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
pgipPayload :: Lens' ProjectsGetIAMPolicy GetIAMPolicyRequest Source
Multipart request metadata.
pgipBearerToken :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source
OAuth bearer token.
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}`.
pgipCallback :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source
JSONP