Google Cloud Iam V2 Client - Class ListPoliciesRequest (1.0.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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getPageSize

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

Returns
Type Description
int

setPageSize

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

Parameter
Name Description
var int
Returns
Type Description
$this

getPageToken

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

Returns
Type Description
string

setPageToken

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

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
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
Type Description
ListPoliciesRequest