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 IAM access control policy for the specified Project. Replaces any existing policy. The following constraints apply when using `setIamPolicy()`: + Project currently supports only `user:{emailid}` and `serviceAccount:{emailid}` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user must be invited via Cloud Platform console and must accept the invitation. + Members cannot be added to more than one role in the same policy. + There must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from the policy will fail. + Calling this method requires enabling the App Engine Admin API. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.setIamPolicy
.
- type ProjectsSetIAMPolicyResource = "v1" :> ("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)))))))))))
- projectsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsSetIAMPolicy
- data ProjectsSetIAMPolicy
- psipXgafv :: Lens' ProjectsSetIAMPolicy (Maybe Text)
- psipUploadProtocol :: Lens' ProjectsSetIAMPolicy (Maybe Text)
- psipPp :: Lens' ProjectsSetIAMPolicy Bool
- psipAccessToken :: Lens' ProjectsSetIAMPolicy (Maybe Text)
- psipUploadType :: Lens' ProjectsSetIAMPolicy (Maybe Text)
- psipPayload :: Lens' ProjectsSetIAMPolicy SetIAMPolicyRequest
- psipBearerToken :: Lens' ProjectsSetIAMPolicy (Maybe Text)
- psipResource :: Lens' ProjectsSetIAMPolicy Text
- psipCallback :: Lens' ProjectsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsSetIAMPolicyResource = "v1" :> ("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
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. Replaces any existing policy. The following constraints apply when using `setIamPolicy()`: + Project currently supports only `user:{emailid}` and `serviceAccount:{emailid}` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user must be invited via Cloud Platform console and must accept the invitation. + Members cannot be added to more than one role in the same policy. + There must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from the policy will fail. + Calling this method requires enabling the App Engine Admin API. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles.
See: projectsSetIAMPolicy
smart constructor.
Request Lenses
psipUploadProtocol :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psipAccessToken :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
psipUploadType :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psipPayload :: Lens' ProjectsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
psipBearerToken :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source #
OAuth bearer token.
psipResource :: Lens' ProjectsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. `resource` is usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*disk*`. The format for the path specified in this value is resource specific and is specified in the `setIamPolicy` documentation.
psipCallback :: Lens' ProjectsSetIAMPolicy (Maybe Text) Source #
JSONP