public abstract static class GkeHubGrpc.GkeHubImplBase extends Object implements io.grpc.BindableService
The GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource. GKE Hub is currently only available in the global region. **Membership management may be non-trivial:** it is recommended to use one of the Google-provided client libraries or tools where possible when working with Membership resources.
| Constructor and Description |
|---|
GkeHubImplBase() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
createMembership(CreateMembershipRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new Membership.
|
void |
deleteMembership(DeleteMembershipRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Removes a Membership.
|
void |
generateConnectManifest(GenerateConnectManifestRequest request,
io.grpc.stub.StreamObserver<GenerateConnectManifestResponse> responseObserver)
Generates the manifest for deployment of the GKE connect agent.
|
void |
getMembership(GetMembershipRequest request,
io.grpc.stub.StreamObserver<Membership> responseObserver)
Gets the details of a Membership.
|
void |
initializeHub(InitializeHubRequest request,
io.grpc.stub.StreamObserver<InitializeHubResponse> responseObserver)
Initializes the Hub in this project, which includes creating the default
Hub Service Account and the Hub Workload Identity Pool.
|
void |
listMemberships(ListMembershipsRequest request,
io.grpc.stub.StreamObserver<ListMembershipsResponse> responseObserver)
Lists Memberships in a given project and location.
|
void |
updateMembership(UpdateMembershipRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates an existing Membership.
|
public void listMemberships(ListMembershipsRequest request, io.grpc.stub.StreamObserver<ListMembershipsResponse> responseObserver)
Lists Memberships in a given project and location.
public void getMembership(GetMembershipRequest request, io.grpc.stub.StreamObserver<Membership> responseObserver)
Gets the details of a Membership.
public void createMembership(CreateMembershipRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
public void deleteMembership(DeleteMembershipRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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.
public void updateMembership(UpdateMembershipRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Updates an existing Membership.
public void generateConnectManifest(GenerateConnectManifestRequest request, io.grpc.stub.StreamObserver<GenerateConnectManifestResponse> responseObserver)
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.
public void initializeHub(InitializeHubRequest request, io.grpc.stub.StreamObserver<InitializeHubResponse> responseObserver)
Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.
public final io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableServiceCopyright © 2022 Google LLC. All rights reserved.