# GKE Hub V1beta1 API - Class Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest (v0.21.0)

0.21.0 (latest) 0.20.1 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest.

Request message for `GkeHubMembershipService.ListMemberships` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- Optional. Lists Memberships that match the filter expression, following the
  syntax outlined in https://google.aip.dev/160.

  Examples:
  - Name is `bar` in project `foo-proj` and location `global`:

    name = "projects/foo-proj/locations/global/membership/bar"
  - Memberships that have a label called `foo`:

    labels.foo:\*
  - Memberships that have a label called `foo` whose value is `bar`:

    labels.foo = bar
  - Memberships in the CREATING state:

    state = CREATING

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Optional. Lists Memberships that match the filter expression, following the
  syntax outlined in https://google.aip.dev/160.

  Examples:
  - Name is `bar` in project `foo-proj` and location `global`:

    name = "projects/foo-proj/locations/global/membership/bar"
  - Memberships that have a label called `foo`:

    labels.foo:\*
  - Memberships that have a label called `foo` whose value is `bar`:

    labels.foo = bar
  - Memberships in the CREATING state:

    state = CREATING
**Returns**

- (::String) --- Optional. Lists Memberships that match the filter expression, following the
  syntax outlined in https://google.aip.dev/160.

  Examples:
  - Name is `bar` in project `foo-proj` and location `global`:

    name = "projects/foo-proj/locations/global/membership/bar"
  - Memberships that have a label called `foo`:

    labels.foo:\*
  - Memberships that have a label called `foo` whose value is `bar`:

    labels.foo = bar
  - Memberships in the CREATING state:

    state = CREATING

### #order_by

    def order_by() -> ::String

**Returns**

- (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.

### #order_by=

    def order_by=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.
**Returns**

- (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.
**Returns**

- (::Integer) --- Optional. When requesting a 'page' of resources, `page_size` specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.
**Returns**

- (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.
**Returns**

- (::String) --- Required. The parent (project and location) where the Memberships will be listed. Specified in the format `projects/*/locations/*`. `projects/*/locations/-` list memberships in all the regions.