Google Cloud Org Policy V2 Client - Class ListPoliciesRequest (0.6.0)

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

The request sent to the ListPolicies method.

Generated from protobuf message google.cloud.orgpolicy.v2.ListPoliciesRequest

Namespace

Google \ Cloud \ OrgPolicy \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * projects/{project_number} * projects/{project_id} * folders/{folder_id} * organizations/{organization_id}

↳ page_size int

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

↳ page_token string

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

getParent

Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms:

  • projects/{project_number}
  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}
Returns
TypeDescription
string

setParent

Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms:

  • projects/{project_number}
  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

Returns
TypeDescription
int

setPageSize

Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

Returns
TypeDescription
string

setPageToken

Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms:

  • projects/{project_number}
  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id} Please see Google\Cloud\OrgPolicy\V2\OrgPolicyClient::projectName() for help formatting this field.
Returns
TypeDescription
Google\Cloud\OrgPolicy\V2\ListPoliciesRequest