Interface GkeHubGrpc.AsyncService

  • All Known Implementing Classes:
    GkeHubGrpc.GkeHubImplBase
    Enclosing class:
    GkeHubGrpc

    public static interface GkeHubGrpc.AsyncService
     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.
     
    • Method Detail

      • getMembership

        default void getMembership​(GetMembershipRequest request,
                                   io.grpc.stub.StreamObserver<Membership> responseObserver)
         Gets the details of a Membership.
         
      • createMembership

        default 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.
         
      • deleteMembership

        default 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.
         
      • updateMembership

        default void updateMembership​(UpdateMembershipRequest request,
                                      io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
         Updates an existing Membership.
         
      • generateConnectManifest

        default 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.
         
      • initializeHub

        default 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.