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




Sets the access control policy on a Organization resource. Replaces any existing policy.

See: Google Cloud Resource Manager API Reference for cloudresourcemanager.organizations.setIamPolicy.


REST Resource

type OrganizationsSetIAMPolicyResource = "v1beta1" :> ("organizations" :> (CaptureMode "resource" "setIamPolicy" 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]` SetIAMPolicyRequest :> Post `[JSON]` Policy))))))))))) Source

A resource alias for cloudresourcemanager.organizations.setIamPolicy method which the OrganizationsSetIAMPolicy request conforms to.

Creating a Request

Request Lenses

osipUploadProtocol :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

osipUploadType :: Lens' OrganizationsSetIAMPolicy (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

osipResource :: Lens' OrganizationsSetIAMPolicy Text Source

REQUIRED: The resource for which policy is being specified. `resource` is usually specified as a path, such as, `projects/{project}/zones/{zone}/disks/{disk}`.