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 |
Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g. "organizations/123".
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.organizations.getIamPolicy
.
- type OrganizationsGetIAMPolicyResource = "v1" :> (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))))))))))
- organizationsGetIAMPolicy :: GetIAMPolicyRequest -> Text -> OrganizationsGetIAMPolicy
- data OrganizationsGetIAMPolicy
- ogipXgafv :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
- ogipUploadProtocol :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
- ogipPp :: Lens' OrganizationsGetIAMPolicy Bool
- ogipAccessToken :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
- ogipUploadType :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
- ogipPayload :: Lens' OrganizationsGetIAMPolicy GetIAMPolicyRequest
- ogipBearerToken :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
- ogipResource :: Lens' OrganizationsGetIAMPolicy Text
- ogipCallback :: Lens' OrganizationsGetIAMPolicy (Maybe Text)
REST Resource
type OrganizationsGetIAMPolicyResource = "v1" :> (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.organizations.getIamPolicy
method which the
OrganizationsGetIAMPolicy
request conforms to.
Creating a Request
organizationsGetIAMPolicy Source #
Creates a value of OrganizationsGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsGetIAMPolicy Source #
Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g. "organizations/123".
See: organizationsGetIAMPolicy
smart constructor.
Request Lenses
ogipUploadProtocol :: Lens' OrganizationsGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ogipAccessToken :: Lens' OrganizationsGetIAMPolicy (Maybe Text) Source #
OAuth access token.
ogipUploadType :: Lens' OrganizationsGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ogipPayload :: Lens' OrganizationsGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
ogipBearerToken :: Lens' OrganizationsGetIAMPolicy (Maybe Text) Source #
OAuth bearer token.
ogipResource :: Lens' OrganizationsGetIAMPolicy 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}`.
ogipCallback :: Lens' OrganizationsGetIAMPolicy (Maybe Text) Source #
JSONP