Google Cloud Iam V2 Client - Class ListPoliciesRequest (0.3.1)

Reference documentation and code samples for the Google Cloud Iam V2 Client class ListPoliciesRequest.

Request message for ListPolicies.

Generated from protobuf message google.iam.v2.ListPoliciesRequest

Namespace

Google \ Cloud \ Iam \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource that the policy is attached to, along with the kind of policy to list. Format: policies/{attachment_point}/denypolicies The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies. For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.

↳ page_size int

The maximum number of policies to return. IAM ignores this value and uses the value 1000.

↳ page_token string

A page token received in a ListPoliciesResponse. Provide this token to retrieve the next page.

getParent

Required. The resource that the policy is attached to, along with the kind of policy to list. Format: policies/{attachment_point}/denypolicies The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies.

For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.

Returns
TypeDescription
string

setParent

Required. The resource that the policy is attached to, along with the kind of policy to list. Format: policies/{attachment_point}/denypolicies The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies.

For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

The maximum number of policies to return. IAM ignores this value and uses the value 1000.

Returns
TypeDescription
int

setPageSize

The maximum number of policies to return. IAM ignores this value and uses the value 1000.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

A page token received in a ListPoliciesResponse. Provide this token to retrieve the next page.

Returns
TypeDescription
string

setPageToken

A page token received in a ListPoliciesResponse. Provide this token to retrieve the next page.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The resource that the policy is attached to, along with the kind of policy to list. Format: policies/{attachment_point}/denypolicies

The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies.

For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.

Returns
TypeDescription
Google\Cloud\Iam\V2\ListPoliciesRequest