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 |
Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123".
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.organizations.setIamPolicy
.
- type OrganizationsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" 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] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))))
- organizationsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> OrganizationsSetIAMPolicy
- data OrganizationsSetIAMPolicy
- osipXgafv :: Lens' OrganizationsSetIAMPolicy (Maybe Xgafv)
- osipUploadProtocol :: Lens' OrganizationsSetIAMPolicy (Maybe Text)
- osipPp :: Lens' OrganizationsSetIAMPolicy Bool
- osipAccessToken :: Lens' OrganizationsSetIAMPolicy (Maybe Text)
- osipUploadType :: Lens' OrganizationsSetIAMPolicy (Maybe Text)
- osipPayload :: Lens' OrganizationsSetIAMPolicy SetIAMPolicyRequest
- osipBearerToken :: Lens' OrganizationsSetIAMPolicy (Maybe Text)
- osipResource :: Lens' OrganizationsSetIAMPolicy Text
- osipCallback :: Lens' OrganizationsSetIAMPolicy (Maybe Text)
REST Resource
type OrganizationsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" 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] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))))) Source #
A resource alias for cloudresourcemanager.organizations.setIamPolicy
method which the
OrganizationsSetIAMPolicy
request conforms to.
Creating a Request
organizationsSetIAMPolicy Source #
Creates a value of OrganizationsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSetIAMPolicy Source #
Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123".
See: organizationsSetIAMPolicy
smart constructor.
Request Lenses
osipUploadProtocol :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
osipAccessToken :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
osipUploadType :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
osipPayload :: Lens' OrganizationsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
osipBearerToken :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source #
OAuth bearer token.
osipResource :: Lens' OrganizationsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path. For example, a Project resource is specified as `projects/{project}`.
osipCallback :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source #
JSONP