| Copyright | (c) 2015-2016 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 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.
- type ProjectsGetIAMPolicyResource = "v1" :> ("projects" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (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 Xgafv)
- 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 = "v1" :> ("projects" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (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 the specified Project. Permission is denied if the policy or the resource does not exist.
See: projectsGetIAMPolicy smart constructor.
Instances
Request Lenses
pgipUploadProtocol :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
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 the policy is being requested. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.
pgipCallback :: Lens' ProjectsGetIAMPolicy (Maybe Text) Source #
JSONP