# GKE Hub v1beta1 API - Class ListMembershipsRequest (2.0.0-beta09)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta09 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta08/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest)

    public sealed class ListMembershipsRequest : IPageRequest, IMessage<ListMembershipsRequest>, IEquatable<ListMembershipsRequest>, IDeepCloneable<ListMembershipsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the GKE Hub v1beta1 API class ListMembershipsRequest.

Request message for `GkeHubMembershipService.ListMemberships` method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ListMembershipsRequest

## Implements

[IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListMembershipsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListMembershipsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListMembershipsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.GkeHub.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)

## Assembly

Google.Cloud.GkeHub.V1Beta1.dll

## Constructors

### ListMembershipsRequest()

    public ListMembershipsRequest()

### ListMembershipsRequest(ListMembershipsRequest)

    public ListMembershipsRequest(ListMembershipsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest` |

## Properties

### Filter

    public string Filter { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### OrderBy

    public string OrderBy { get; set; }

Optional. One or more fields to compare and use to sort the output.
See <https://google.aip.dev/132#ordering>.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PageSize

    public int PageSize { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PageToken

    public string PageToken { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Parent

    public string Parent { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest#Google_Cloud_GkeHub_V1Beta1_ListMembershipsRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |