Package com.google.cloud.gkehub.v1
Class GkeHubGrpc.GkeHubBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<GkeHubGrpc.GkeHubBlockingV2Stub>
com.google.cloud.gkehub.v1.GkeHubGrpc.GkeHubBlockingV2Stub
- Enclosing class:
- GkeHubGrpc
public static final class GkeHubGrpc.GkeHubBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<GkeHubGrpc.GkeHubBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service GkeHub.
The GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, and the management of multi-cluster features over those clusters. The GKE Hub service operates on the following resources: * [Membership][google.cloud.gkehub.v1.Membership] * [Feature][google.cloud.gkehub.v1.Feature] GKE Hub is currently available in the global region and all regions in https://cloud.google.com/compute/docs/regions-zones. Feature is only available in global region while membership is global region and all the regions. **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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected GkeHubGrpc.GkeHubBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createFeature(CreateFeatureRequest request) Adds a new Feature.createFleet(CreateFleetRequest request) Creates a fleet.createMembership(CreateMembershipRequest request) Creates a new Membership.Creates a MembershipBinding.Creates a Membership RBACRoleBinding.createScope(CreateScopeRequest request) Creates a Scope.Creates a fleet namespace.Creates a Scope RBACRoleBinding.deleteFeature(DeleteFeatureRequest request) Removes a Feature.deleteFleet(DeleteFleetRequest request) Removes a Fleet.deleteMembership(DeleteMembershipRequest request) Removes a Membership.Deletes a MembershipBinding.Deletes a Membership RBACRoleBinding.deleteScope(DeleteScopeRequest request) Deletes a Scope.Deletes a fleet namespace.Deletes a Scope RBACRoleBinding.Generates the manifest for deployment of the GKE connect agent.Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.getFeature(GetFeatureRequest request) Gets details of a single Feature.getFleet(GetFleetRequest request) Returns the details of a fleet.getMembership(GetMembershipRequest request) Gets the details of a Membership.Returns the details of a MembershipBinding.Returns the details of a Membership RBACRoleBinding.getScope(GetScopeRequest request) Returns the details of a Scope.Returns the details of a fleet namespace.Returns the details of a Scope RBACRoleBinding.Lists Memberships bound to a Scope.listFeatures(ListFeaturesRequest request) Lists Features in a given project and location.listFleets(ListFleetsRequest request) Returns all fleets within an organization or a project that the caller has access to.Lists MembershipBindings.Lists all Membership RBACRoleBindings.listMemberships(ListMembershipsRequest request) Lists Memberships in a given project and location.Lists permitted Scopes.Lists fleet namespaces.Lists all Scope RBACRoleBindings.listScopes(ListScopesRequest request) Lists Scopes.updateFeature(UpdateFeatureRequest request) Updates an existing Feature.updateFleet(UpdateFleetRequest request) Updates a fleet.updateMembership(UpdateMembershipRequest request) Updates an existing Membership.Updates a MembershipBinding.Updates a Membership RBACRoleBinding.updateScope(UpdateScopeRequest request) Updates a scopes.Updates a fleet namespace.Updates a Scope RBACRoleBinding.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected GkeHubGrpc.GkeHubBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<GkeHubGrpc.GkeHubBlockingV2Stub>
-
listMemberships
public ListMembershipsResponse listMemberships(ListMembershipsRequest request) throws io.grpc.StatusException Lists Memberships in a given project and location.
- Throws:
io.grpc.StatusException
-
listBoundMemberships
public ListBoundMembershipsResponse listBoundMemberships(ListBoundMembershipsRequest request) throws io.grpc.StatusException Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
- Throws:
io.grpc.StatusException
-
listFeatures
public ListFeaturesResponse listFeatures(ListFeaturesRequest request) throws io.grpc.StatusException Lists Features in a given project and location.
- Throws:
io.grpc.StatusException
-
getMembership
Gets the details of a Membership.
- Throws:
io.grpc.StatusException
-
getFeature
Gets details of a single Feature.
- Throws:
io.grpc.StatusException
-
createMembership
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.
- Throws:
io.grpc.StatusException
-
createFeature
Adds a new Feature.
- Throws:
io.grpc.StatusException
-
deleteMembership
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.
- Throws:
io.grpc.StatusException
-
deleteFeature
Removes a Feature.
- Throws:
io.grpc.StatusException
-
updateMembership
Updates an existing Membership.
- Throws:
io.grpc.StatusException
-
updateFeature
Updates an existing Feature.
- Throws:
io.grpc.StatusException
-
generateConnectManifest
public GenerateConnectManifestResponse generateConnectManifest(GenerateConnectManifestRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
createFleet
Creates a fleet.
- Throws:
io.grpc.StatusException
-
getFleet
Returns the details of a fleet.
- Throws:
io.grpc.StatusException
-
updateFleet
Updates a fleet.
- Throws:
io.grpc.StatusException
-
deleteFleet
Removes a Fleet. There must be no memberships remaining in the Fleet.
- Throws:
io.grpc.StatusException
-
listFleets
Returns all fleets within an organization or a project that the caller has access to.
- Throws:
io.grpc.StatusException
-
getScopeNamespace
Returns the details of a fleet namespace.
- Throws:
io.grpc.StatusException
-
createScopeNamespace
public Operation createScopeNamespace(CreateScopeNamespaceRequest request) throws io.grpc.StatusException Creates a fleet namespace.
- Throws:
io.grpc.StatusException
-
updateScopeNamespace
public Operation updateScopeNamespace(UpdateScopeNamespaceRequest request) throws io.grpc.StatusException Updates a fleet namespace.
- Throws:
io.grpc.StatusException
-
deleteScopeNamespace
public Operation deleteScopeNamespace(DeleteScopeNamespaceRequest request) throws io.grpc.StatusException Deletes a fleet namespace.
- Throws:
io.grpc.StatusException
-
listScopeNamespaces
public ListScopeNamespacesResponse listScopeNamespaces(ListScopeNamespacesRequest request) throws io.grpc.StatusException Lists fleet namespaces.
- Throws:
io.grpc.StatusException
-
getScopeRBACRoleBinding
public RBACRoleBinding getScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request) throws io.grpc.StatusException Returns the details of a Scope RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
createScopeRBACRoleBinding
public Operation createScopeRBACRoleBinding(CreateScopeRBACRoleBindingRequest request) throws io.grpc.StatusException Creates a Scope RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
updateScopeRBACRoleBinding
public Operation updateScopeRBACRoleBinding(UpdateScopeRBACRoleBindingRequest request) throws io.grpc.StatusException Updates a Scope RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
deleteScopeRBACRoleBinding
public Operation deleteScopeRBACRoleBinding(DeleteScopeRBACRoleBindingRequest request) throws io.grpc.StatusException Deletes a Scope RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
listScopeRBACRoleBindings
public ListScopeRBACRoleBindingsResponse listScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request) throws io.grpc.StatusException Lists all Scope RBACRoleBindings.
- Throws:
io.grpc.StatusException
-
getScope
Returns the details of a Scope.
- Throws:
io.grpc.StatusException
-
createScope
Creates a Scope.
- Throws:
io.grpc.StatusException
-
updateScope
Updates a scopes.
- Throws:
io.grpc.StatusException
-
deleteScope
Deletes a Scope.
- Throws:
io.grpc.StatusException
-
listScopes
Lists Scopes.
- Throws:
io.grpc.StatusException
-
listPermittedScopes
public ListPermittedScopesResponse listPermittedScopes(ListPermittedScopesRequest request) throws io.grpc.StatusException Lists permitted Scopes.
- Throws:
io.grpc.StatusException
-
getMembershipBinding
public MembershipBinding getMembershipBinding(GetMembershipBindingRequest request) throws io.grpc.StatusException Returns the details of a MembershipBinding.
- Throws:
io.grpc.StatusException
-
createMembershipBinding
public Operation createMembershipBinding(CreateMembershipBindingRequest request) throws io.grpc.StatusException Creates a MembershipBinding.
- Throws:
io.grpc.StatusException
-
updateMembershipBinding
public Operation updateMembershipBinding(UpdateMembershipBindingRequest request) throws io.grpc.StatusException Updates a MembershipBinding.
- Throws:
io.grpc.StatusException
-
deleteMembershipBinding
public Operation deleteMembershipBinding(DeleteMembershipBindingRequest request) throws io.grpc.StatusException Deletes a MembershipBinding.
- Throws:
io.grpc.StatusException
-
listMembershipBindings
public ListMembershipBindingsResponse listMembershipBindings(ListMembershipBindingsRequest request) throws io.grpc.StatusException Lists MembershipBindings.
- Throws:
io.grpc.StatusException
-
getMembershipRBACRoleBinding
public RBACRoleBinding getMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request) throws io.grpc.StatusException Returns the details of a Membership RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
createMembershipRBACRoleBinding
public Operation createMembershipRBACRoleBinding(CreateMembershipRBACRoleBindingRequest request) throws io.grpc.StatusException Creates a Membership RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
updateMembershipRBACRoleBinding
public Operation updateMembershipRBACRoleBinding(UpdateMembershipRBACRoleBindingRequest request) throws io.grpc.StatusException Updates a Membership RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
deleteMembershipRBACRoleBinding
public Operation deleteMembershipRBACRoleBinding(DeleteMembershipRBACRoleBindingRequest request) throws io.grpc.StatusException Deletes a Membership RBACRoleBinding.
- Throws:
io.grpc.StatusException
-
listMembershipRBACRoleBindings
public ListMembershipRBACRoleBindingsResponse listMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request) throws io.grpc.StatusException Lists all Membership RBACRoleBindings.
- Throws:
io.grpc.StatusException
-
generateMembershipRBACRoleBindingYAML
public GenerateMembershipRBACRoleBindingYAMLResponse generateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request) throws io.grpc.StatusException Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
- Throws:
io.grpc.StatusException
-