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>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CloudResourceManager.Projects.SetIAMPolicy

Contents

Description

Sets the IAM access control policy for the specified project. We do not currently support 'domain:' prefixed members in a Binding of a Policy. Calling this method requires enabling the App Engine Admin API.

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

Synopsis

REST Resource

type ProjectsSetIAMPolicyResource = "v1beta1" :> ("projects" :> (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.projects.setIamPolicy method which the ProjectsSetIAMPolicy request conforms to.

Creating a Request

projectsSetIAMPolicy Source

Creates a value of ProjectsSetIAMPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsSetIAMPolicy Source

Sets the IAM access control policy for the specified project. We do not currently support 'domain:' prefixed members in a Binding of a Policy. Calling this method requires enabling the App Engine Admin API.

See: projectsSetIAMPolicy smart constructor.

Request Lenses

psipUploadProtocol :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source

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

psipPp :: Lens' ProjectsSetIAMPolicy Bool Source

Pretty-print response.

psipUploadType :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source

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

psipResource :: Lens' ProjectsSetIAMPolicy 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}`.