# Google Cloud Memorystore for Memcached API - Class Google::Cloud::Memcache::V1beta2::ListInstancesRequest (v0.17.0)

0.17.0 (latest) 0.16.1 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.5 Reference documentation and code samples for the Google Cloud Memorystore for Memcached API class Google::Cloud::Memcache::V1beta2::ListInstancesRequest.

Request for [ListInstances](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-CloudMemcache-Client#Google__Cloud__Memcache__V1beta2__CloudMemcache__Client_list_instances_instance_ "Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#list_instances (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- List filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`.

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- List filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`.
**Returns**

- (::String) --- List filter. For example, exclude all Memcached instances with name as my-instance by specifying `"name != my-instance"`.

### #order_by

    def order_by() -> ::String

**Returns**

- (::String) --- Sort results. Supported values are "name", "name desc" or "" (unsorted).

### #order_by=

    def order_by=(value) -> ::String

**Parameter**

- **value** (::String) --- Sort results. Supported values are "name", "name desc" or "" (unsorted).
**Returns**

- (::String) --- Sort results. Supported values are "name", "name desc" or "" (unsorted).

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- The maximum number of items to return.

  If not specified, a default value of 1000 will be used by the service.
  Regardless of the `page_size` value, the response may include a partial
  list and a caller should only rely on response's
  [`next_page_token`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-ListInstancesResponse#Google__Cloud__Memcache__V1beta2__ListInstancesResponse_next_page_token_instance_ "Google::Cloud::Memcache::V1beta2::ListInstancesResponse#next_page_token (method)")
  to determine if there are more instances left to be queried.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The maximum number of items to return.


  If not specified, a default value of 1000 will be used by the service.
  Regardless of the `page_size` value, the response may include a partial
  list and a caller should only rely on response's
  [`next_page_token`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-ListInstancesResponse#Google__Cloud__Memcache__V1beta2__ListInstancesResponse_next_page_token_instance_ "Google::Cloud::Memcache::V1beta2::ListInstancesResponse#next_page_token (method)")
  to determine if there are more instances left to be queried.
**Returns**

- (::Integer) --- The maximum number of items to return.

  If not specified, a default value of 1000 will be used by the service.
  Regardless of the `page_size` value, the response may include a partial
  list and a caller should only rely on response's
  [`next_page_token`](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-memcache-v1beta2/latest/Google-Cloud-Memcache-V1beta2-ListInstancesResponse#Google__Cloud__Memcache__V1beta2__ListInstancesResponse_next_page_token_instance_ "Google::Cloud::Memcache::V1beta2::ListInstancesResponse#next_page_token (method)")
  to determine if there are more instances left to be queried.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- The `next_page_token` value returned from a previous List request, if any.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- The `next_page_token` value returned from a previous List request, if any.
**Returns**

- (::String) --- The `next_page_token` value returned from a previous List request, if any.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region
**Returns**

- (::String) --- Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region