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 53
__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.
      `resource` is usually specified as a path. For example, a Project
      resource is specified as `projects/{project}`.
@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 66
string getResource()

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

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 80
$this setResource(string $var)

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

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 97
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;

Return Value

RepeatedField

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

Parameters

string[]|RepeatedField $var

Return Value

$this