class SetIamPolicyRequest extends Message

Request message for SetIamPolicy method.

Generated from protobuf message google.iam.v1.SetIamPolicyRequest

Methods

__construct()

No description

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 36
__construct()

at line 49
string getResource()

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

resource is usually specified as a path. For example, a Project resource is specified as projects/{project}.

Generated from protobuf field string resource = 1;

Return Value

string

at line 63
$this setResource(string $var)

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

resource is usually specified as a path. For example, a Project resource is specified as projects/{project}.

Generated from protobuf field string resource = 1;

Parameters

string $var

Return Value

$this

at line 80
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;

Return Value

Policy

at line 95
$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;

Parameters

Policy $var

Return Value

$this