# Google Cloud Memorystore for Redis V1beta1 API - Class Google::Cloud::Redis::V1beta1::ListInstancesResponse (v0.22.0)

0.22.0 (latest) 0.21.1 0.20.0 0.19.1 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.2 0.12.2 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 Reference documentation and code samples for the Google Cloud Memorystore for Redis V1beta1 API class Google::Cloud::Redis::V1beta1::ListInstancesResponse.

Response for [ListInstances](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1beta1/latest/Google-Cloud-Redis-V1beta1-CloudRedis-Client#Google__Cloud__Redis__V1beta1__CloudRedis__Client_list_instances_instance_ "Google::Cloud::Redis::V1beta1::CloudRedis::Client#list_instances (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #instances

    def instances() -> ::Array<::Google::Cloud::Redis::V1beta1::Instance>

**Returns**

- (::Array\<[::Google::Cloud::Redis::V1beta1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1beta1/latest/Google-Cloud-Redis-V1beta1-Instance)\>) --- A list of Redis instances 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}/instances/`- and the
  `status` field set to ERROR and `status_message` field set to "location not
  available for ListInstances".

### #instances=

    def instances=(value) -> ::Array<::Google::Cloud::Redis::V1beta1::Instance>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Redis::V1beta1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1beta1/latest/Google-Cloud-Redis-V1beta1-Instance)\>) --- A list of Redis instances 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}/instances/`- and the
  `status` field set to ERROR and `status_message` field set to "location not
  available for ListInstances".
**Returns**

- (::Array\<[::Google::Cloud::Redis::V1beta1::Instance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-redis-v1beta1/latest/Google-Cloud-Redis-V1beta1-Instance)\>) --- A list of Redis instances 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}/instances/`- and the
  `status` field set to ERROR and `status_message` field set to "location not
  available for ListInstances".

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- Token to retrieve the next page of results, or empty if there are no more results in the list.

### #next_page_token=

    def next_page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Token to retrieve the next page of results, or empty if there are no more results in the list.
**Returns**

- (::String) --- Token to retrieve the next page of results, or empty if there are no more results in the list.

### #unreachable

    def unreachable() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Locations that could not be reached.

### #unreachable=

    def unreachable=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Locations that could not be reached.
**Returns**

- (::Array\<::String\>) --- Locations that could not be reached.