Reference documentation and code samples for the Google API Common Protos V1 Client class SetIamPolicyRequest.
Request message for SetIamPolicy
method.
Generated from protobuf message google.iam.v1.SetIamPolicyRequest
Namespace
Google \ Cloud \ Iam \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ resource
string
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
↳ policy
Policy
REQUIRED: The complete policy to be applied to the resource
. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
↳ update_mask
Google\Protobuf\FieldMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: paths: "bindings, etag"
getResource
REQUIRED: The resource for which the policy is being specified.
See the operation documentation for the appropriate value for this field.
string
setResource
REQUIRED: The resource for which the policy is being specified.
See the operation documentation for the appropriate value for this field.
var
string
$this
getPolicy
REQUIRED: The complete policy to be applied to the resource
. The size of
the policy is limited to a few 10s of KB. An empty policy is a
valid policy but certain Cloud Platform services (such as Projects)
might reject them.
hasPolicy
clearPolicy
setPolicy
REQUIRED: The complete policy to be applied to the resource
. The size of
the policy is limited to a few 10s of KB. An empty policy is a
valid policy but certain Cloud Platform services (such as Projects)
might reject them.
$this
getUpdateMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
the fields in the mask will be modified. If no mask is provided, the
following default mask is used: paths: "bindings, etag"
hasUpdateMask
clearUpdateMask
setUpdateMask
OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
the fields in the mask will be modified. If no mask is provided, the
following default mask is used: paths: "bindings, etag"
$this