class SetIamPolicyRequest extends Message

Request message for SetIamPolicy method.

Generated from protobuf message google.iam.v1.SetIamPolicyRequest

Methods

__construct(array $data = NULL)

Constructor.

string
getResource()

REQUIRED: The resource for which the policy is being specified.

$this
setResource(string $var)

REQUIRED: The resource for which the policy is being specified.

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.

$this
setPolicy(Policy $var)

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.

Details

at line 51
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $resource
      REQUIRED: The resource for which the policy is being specified.
      See the operation documentation for the appropriate value for this field.
@type \Google\Cloud\Iam\V1\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.

}

at line 63
string getResource()

REQUIRED: The resource for which the policy is being specified.

See the operation documentation for the appropriate value for this field.

Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Return Value

string

at line 76
$this setResource(string $var)

REQUIRED: The resource for which the policy is being specified.

See the operation documentation for the appropriate value for this field.

Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameters

string $var

Return Value

$this

at line 93
Policy 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.

Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];

Return Value

Policy

at line 108
$this setPolicy(Policy $var)

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.

Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters

Policy $var

Return Value

$this