Google Cloud Iam V2 Client - Class UpdatePolicyRequest (0.3.1)

Reference documentation and code samples for the Google Cloud Iam V2 Client class UpdatePolicyRequest.

Request message for UpdatePolicy.

Generated from protobuf message google.iam.v2.UpdatePolicyRequest

Namespace

Google \ Cloud \ Iam \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policy Google\Cloud\Iam\V2\Policy

Required. The policy to update. To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

getPolicy

Required. The policy to update.

To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

Returns
TypeDescription
Google\Cloud\Iam\V2\Policy|null

hasPolicy

clearPolicy

setPolicy

Required. The policy to update.

To prevent conflicting updates, the etag value must match the value that is stored in IAM. If the etag values do not match, the request fails with a 409 error code and ABORTED status.

Parameter
NameDescription
var Google\Cloud\Iam\V2\Policy
Returns
TypeDescription
$this