Class GkeHubMembershipService.GkeHubMembershipServiceBase (1.0.0-beta04)

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

Base class for server-side implementations of GkeHubMembershipService

Inheritance

Object > GkeHubMembershipService.GkeHubMembershipServiceBase

Namespace

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
NameDescription
requestCreateMembershipRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestDeleteMembershipRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestGenerateConnectManifestRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<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
NameDescription
requestGenerateExclusivityManifestRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<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
NameDescription
requestGetMembershipRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<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
NameDescription
requestListMembershipsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<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
NameDescription
requestUpdateMembershipRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

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
NameDescription
requestValidateExclusivityRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ValidateExclusivityResponse>

The response to send back to the client (wrapped by a task).