# GKE Hub v1beta1 API - Class GkeHubMembershipService.GkeHubMembershipServiceBase (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.GkeHubMembershipService.GkeHubMembershipServiceBase)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta08/Google.Cloud.GkeHub.V1Beta1.GkeHubMembershipService.GkeHubMembershipServiceBase)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.GkeHubMembershipService.GkeHubMembershipServiceBase)

    [BindServiceMethod(typeof(GkeHubMembershipService), "BindService")]
    public abstract class GkeHubMembershipService.GkeHubMembershipServiceBase

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

Base class for server-side implementations of GkeHubMembershipService

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

## Methods

### CreateMembership(CreateMembershipRequest, ServerCallContext)

    public virtual Task<Operation> CreateMembership(CreateMembershipRequest request, ServerCallContext context)

Creates a new Membership.

**This is currently only supported for GKE clusters on Google Cloud** .
To register other clusters, follow the instructions at
<https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster>.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.CreateMembershipRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### DeleteMembership(DeleteMembershipRequest, ServerCallContext)

    public virtual Task<Operation> DeleteMembership(DeleteMembershipRequest request, ServerCallContext context)

Removes a Membership.

**This is currently only supported for GKE clusters on Google Cloud** .
To unregister other clusters, follow the instructions at
<https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster>.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### GenerateConnectManifest(GenerateConnectManifestRequest, ServerCallContext)

    public virtual Task<GenerateConnectManifestResponse> GenerateConnectManifest(GenerateConnectManifestRequest request, ServerCallContext context)

Generates the manifest for deployment of the GKE connect agent.

**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GenerateConnectManifestRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GenerateConnectManifestResponse` | The response to send back to the client (wrapped by a task). |

### GenerateExclusivityManifest(GenerateExclusivityManifestRequest, ServerCallContext)

    public virtual Task<GenerateExclusivityManifestResponse> GenerateExclusivityManifest(GenerateExclusivityManifestRequest request, ServerCallContext context)

GenerateExclusivityManifest generates the manifests to update the
exclusivity artifacts in the cluster if needed.

Exclusivity artifacts include the Membership custom resource definition
(CRD) and the singleton Membership custom resource (CR). Combined with
ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
cluster is only registered to a single GKE Hub.

The Membership CRD is versioned, and may require conversion when the GKE
Hub API server begins serving a newer version of the CRD and
corresponding CR. The response will be the converted CRD and CR if there
are any differences between the versions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GenerateExclusivityManifestRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GenerateExclusivityManifestResponse` | The response to send back to the client (wrapped by a task). |

### GetMembership(GetMembershipRequest, ServerCallContext)

    public virtual Task<Membership> GetMembership(GetMembershipRequest request, ServerCallContext context)

Gets the details of a Membership.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.GetMembershipRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.Membership` | The response to send back to the client (wrapped by a task). |

### ListMemberships(ListMembershipsRequest, ServerCallContext)

    public virtual Task<ListMembershipsResponse> ListMemberships(ListMembershipsRequest request, ServerCallContext context)

Lists Memberships in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ListMembershipsResponse` | The response to send back to the client (wrapped by a task). |

### UpdateMembership(UpdateMembershipRequest, ServerCallContext)

    public virtual Task<Operation> UpdateMembership(UpdateMembershipRequest request, ServerCallContext context)

Updates an existing Membership.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.UpdateMembershipRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### ValidateExclusivity(ValidateExclusivityRequest, ServerCallContext)

    public virtual Task<ValidateExclusivityResponse> ValidateExclusivity(ValidateExclusivityRequest request, ServerCallContext context)

ValidateExclusivity validates the state of exclusivity in the cluster.
The validation does not depend on an existing Hub membership resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ValidateExclusivityRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ValidateExclusivityResponse` | The response to send back to the client (wrapped by a task). |