Class BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub (2.11.0)

public static final class BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub extends AbstractFutureStub<BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub>

Service for creating, configuring, and deleting Cloud Bigtable Instances and Clusters. Provides access to the Instance and Cluster schemas only, not the tables' metadata or data stored in those tables.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
BigtableInstanceAdminGrpc.BigtableInstanceAdminFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createAppProfile(CreateAppProfileRequest request)

public ListenableFuture<AppProfile> createAppProfile(CreateAppProfileRequest request)

Creates an app profile within an instance.

Parameter
NameDescription
requestCreateAppProfileRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<AppProfile>

createCluster(CreateClusterRequest request)

public ListenableFuture<Operation> createCluster(CreateClusterRequest request)

Creates a cluster within an instance. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.

Parameter
NameDescription
requestCreateClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createInstance(CreateInstanceRequest request)

public ListenableFuture<Operation> createInstance(CreateInstanceRequest request)

Create an instance within a project. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.

Parameter
NameDescription
requestCreateInstanceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteAppProfile(DeleteAppProfileRequest request)

public ListenableFuture<Empty> deleteAppProfile(DeleteAppProfileRequest request)

Deletes an app profile from an instance.

Parameter
NameDescription
requestDeleteAppProfileRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteCluster(DeleteClusterRequest request)

public ListenableFuture<Empty> deleteCluster(DeleteClusterRequest request)

Deletes a cluster from an instance.

Parameter
NameDescription
requestDeleteClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

deleteInstance(DeleteInstanceRequest request)

public ListenableFuture<Empty> deleteInstance(DeleteInstanceRequest request)

Delete an instance from a project.

Parameter
NameDescription
requestDeleteInstanceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

getAppProfile(GetAppProfileRequest request)

public ListenableFuture<AppProfile> getAppProfile(GetAppProfileRequest request)

Gets information about an app profile.

Parameter
NameDescription
requestGetAppProfileRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<AppProfile>

getCluster(GetClusterRequest request)

public ListenableFuture<Cluster> getCluster(GetClusterRequest request)

Gets information about a cluster.

Parameter
NameDescription
requestGetClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Cluster>

getIamPolicy(GetIamPolicyRequest request)

public ListenableFuture<Policy> getIamPolicy(GetIamPolicyRequest request)

Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.

Parameter
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>

getInstance(GetInstanceRequest request)

public ListenableFuture<Instance> getInstance(GetInstanceRequest request)

Gets information about an instance.

Parameter
NameDescription
requestGetInstanceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Instance>

listAppProfiles(ListAppProfilesRequest request)

public ListenableFuture<ListAppProfilesResponse> listAppProfiles(ListAppProfilesRequest request)

Lists information about app profiles in an instance.

Parameter
NameDescription
requestListAppProfilesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListAppProfilesResponse>

listClusters(ListClustersRequest request)

public ListenableFuture<ListClustersResponse> listClusters(ListClustersRequest request)

Lists information about clusters in an instance.

Parameter
NameDescription
requestListClustersRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListClustersResponse>

listHotTablets(ListHotTabletsRequest request)

public ListenableFuture<ListHotTabletsResponse> listHotTablets(ListHotTabletsRequest request)

Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.

Parameter
NameDescription
requestListHotTabletsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListHotTabletsResponse>

listInstances(ListInstancesRequest request)

public ListenableFuture<ListInstancesResponse> listInstances(ListInstancesRequest request)

Lists information about instances in a project.

Parameter
NameDescription
requestListInstancesRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListInstancesResponse>

partialUpdateCluster(PartialUpdateClusterRequest request)

public ListenableFuture<Operation> partialUpdateCluster(PartialUpdateClusterRequest request)

Partially updates a cluster within a project. This method is the preferred way to update a Cluster. To enable and update autoscaling, set cluster_config.cluster_autoscaling_config. When autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the update_mask. To disable autoscaling, clear cluster_config.cluster_autoscaling_config, and explicitly set a serve_node count via the update_mask.

Parameter
NameDescription
requestPartialUpdateClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

partialUpdateInstance(PartialUpdateInstanceRequest request)

public ListenableFuture<Operation> partialUpdateInstance(PartialUpdateInstanceRequest request)

Partially updates an instance within a project. This method can modify all fields of an Instance and is the preferred way to update an Instance.

Parameter
NameDescription
requestPartialUpdateInstanceRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

setIamPolicy(SetIamPolicyRequest request)

public ListenableFuture<Policy> setIamPolicy(SetIamPolicyRequest request)

Sets the access control policy on an instance resource. Replaces any existing policy.

Parameter
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request)

public ListenableFuture<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request)

Returns permissions that the caller has on the specified instance resource.

Parameter
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse>

updateAppProfile(UpdateAppProfileRequest request)

public ListenableFuture<Operation> updateAppProfile(UpdateAppProfileRequest request)

Updates an app profile within an instance.

Parameter
NameDescription
requestUpdateAppProfileRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateCluster(Cluster request)

public ListenableFuture<Operation> updateCluster(Cluster request)

Updates a cluster within an instance. Note that UpdateCluster does not support updating cluster_config.cluster_autoscaling_config. In order to update it, you must use PartialUpdateCluster.

Parameter
NameDescription
requestCluster
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateInstance(Instance request)

public ListenableFuture<Instance> updateInstance(Instance request)

Updates an instance within a project. This method updates only the display name and type for an Instance. To update other Instance properties, such as labels, use PartialUpdateInstance.

Parameter
NameDescription
requestInstance
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Instance>