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

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

The response returned from the ListPolicies method. It will be empty if no policies are set on the resource.

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

Namespace

Google \ Cloud \ OrgPolicy \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policies array<Google\Cloud\OrgPolicy\V2\Policy>

All policies that exist on the resource. It will be empty if no policies are set.

↳ next_page_token string

Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.

getPolicies

All policies that exist on the resource. It will be empty if no policies are set.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPolicies

All policies that exist on the resource. It will be empty if no policies are set.

Parameter
NameDescription
var array<Google\Cloud\OrgPolicy\V2\Policy>
Returns
TypeDescription
$this

getNextPageToken

Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.

Returns
TypeDescription
string

setNextPageToken

Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.

Parameter
NameDescription
var string
Returns
TypeDescription
$this