Google Cloud Redis Cluster V1 Client - Class ListClustersResponse (0.1.0)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class ListClustersResponse.

Response for ListClusters.

Generated from protobuf message google.cloud.redis.cluster.v1.ListClustersResponse

Namespace

Google \ Cloud \ Redis \ Cluster \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ clusters array<Google\Cloud\Redis\Cluster\V1\Cluster>

A list of Redis clusters in the project in the specified location, or across all locations. If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder Redis entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/clusters/- and the status field set to ERROR and status_message field set to "location not available for ListClusters".

↳ next_page_token string

Token to retrieve the next page of results, or empty if there are no more results in the list.

↳ unreachable array

Locations that could not be reached.

getClusters

A list of Redis clusters in the project in the specified location, or across all locations.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder Redis entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/clusters/- and the status field set to ERROR and status_message field set to "location not available for ListClusters".

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setClusters

A list of Redis clusters in the project in the specified location, or across all locations.

If the location_id in the parent field of the request is "-", all regions available to the project are queried, and the results aggregated. If in such an aggregated query a location is unavailable, a placeholder Redis entry is included in the response with the name field set to a value of the form projects/{project_id}/locations/{location_id}/clusters/- and the status field set to ERROR and status_message field set to "location not available for ListClusters".

Parameter
NameDescription
var array<Google\Cloud\Redis\Cluster\V1\Cluster>
Returns
TypeDescription
$this

getNextPageToken

Token to retrieve the next page of results, or empty if there are no more results in the list.

Returns
TypeDescription
string

setNextPageToken

Token to retrieve the next page of results, or empty if there are no more results in the list.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUnreachable

Locations that could not be reached.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUnreachable

Locations that could not be reached.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this