class TestIamPermissionsRequest extends Message

Request message for TestIamPermissions method.

Generated from protobuf message google.iam.v1.TestIamPermissionsRequest

Methods

__construct(array $data = NULL)

Constructor.

string
getResource()

REQUIRED: The resource for which the policy detail is being requested.

$this
setResource(string $var)

REQUIRED: The resource for which the policy detail is being requested.

RepeatedField
getPermissions()

The set of permissions to check for the resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.

$this
setPermissions(string[]|RepeatedField $var)

The set of permissions to check for the resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.

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 detail is being requested.
      See the operation documentation for the appropriate value for this field.
@type string[]|\Google\Protobuf\Internal\RepeatedField $permissions
      The set of permissions to check for the `resource`. Permissions with
      wildcards (such as '*' or 'storage.*') are not allowed. For more
      information see
      [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).

}

at line 63
string getResource()

REQUIRED: The resource for which the policy detail is being requested.

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 detail is being requested.

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
RepeatedField getPermissions()

The set of permissions to check for the resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.

Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Return Value

RepeatedField

at line 108
$this setPermissions(string[]|RepeatedField $var)

The set of permissions to check for the resource. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.

Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters

string[]|RepeatedField $var

Return Value

$this