Google Cloud Org Policy V2 Client - Class ListConstraintsResponse (0.4.2)

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

The response returned from the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ constraints array<Google\Cloud\OrgPolicy\V2\Constraint>

The collection of constraints that are available on the targeted resource.

↳ next_page_token string

Page token used to retrieve the next page. This is currently not used.

getConstraints

The collection of constraints that are available on the targeted resource.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setConstraints

The collection of constraints that are available on the targeted resource.

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

getNextPageToken

Page token used to retrieve the next page. This is currently not used.

Returns
TypeDescription
string

setNextPageToken

Page token used to retrieve the next page. This is currently not used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this