@InternalApi(value="For internal usage only") public class BigtableInstanceGrpcClient extends Object implements BigtableInstanceClient
For internal use only - public for technical reasons.
Constructor and Description |
---|
BigtableInstanceGrpcClient(io.grpc.Channel channel)
Constructor for BigtableInstanceGrpcClient.
|
Modifier and Type | Method and Description |
---|---|
com.google.bigtable.admin.v2.AppProfile |
createAppProfile(com.google.bigtable.admin.v2.CreateAppProfileRequest request)
Create an application profile.
|
com.google.longrunning.Operation |
createCluster(com.google.bigtable.admin.v2.CreateClusterRequest request)
Create an instance within a project.
|
com.google.longrunning.Operation |
createInstance(com.google.bigtable.admin.v2.CreateInstanceRequest request)
Create an instance within a project.
|
com.google.protobuf.Empty |
deleteAppProfile(com.google.bigtable.admin.v2.DeleteAppProfileRequest request)
Delete an application profile.
|
com.google.protobuf.Empty |
deleteCluster(com.google.bigtable.admin.v2.DeleteClusterRequest request)
Deletes a cluster from an instance.
|
com.google.protobuf.Empty |
deleteInstance(com.google.bigtable.admin.v2.DeleteInstanceRequest request)
Updates an instance within a project.
|
com.google.bigtable.admin.v2.AppProfile |
getAppProfile(com.google.bigtable.admin.v2.GetAppProfileRequest request)
Get an application profile.
|
com.google.bigtable.admin.v2.Cluster |
getCluster(com.google.bigtable.admin.v2.GetClusterRequest request)
Gets information about a cluster.
|
com.google.iam.v1.Policy |
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Get an IAM policy.
|
com.google.longrunning.Operation |
getOperation(com.google.longrunning.GetOperationRequest request)
Gets the latest state of a long-running operation.
|
com.google.bigtable.admin.v2.ListAppProfilesResponse |
listAppProfiles(com.google.bigtable.admin.v2.ListAppProfilesRequest request)
List application profiles.
|
com.google.bigtable.admin.v2.ListClustersResponse |
listCluster(com.google.bigtable.admin.v2.ListClustersRequest request)
Lists information about clusters in an instance.
|
com.google.bigtable.admin.v2.ListInstancesResponse |
listInstances(com.google.bigtable.admin.v2.ListInstancesRequest request)
Lists all instances in the given project.
|
com.google.longrunning.Operation |
partialUpdateInstance(com.google.bigtable.admin.v2.PartialUpdateInstanceRequest request)
Partially updates an instance within a project.
|
com.google.iam.v1.Policy |
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
Set an IAM policy.
|
com.google.iam.v1.TestIamPermissionsResponse |
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
Tests an IAM policy.
|
com.google.longrunning.Operation |
updateAppProfile(com.google.bigtable.admin.v2.UpdateAppProfileRequest request)
/** Update an application profile.
|
com.google.longrunning.Operation |
updateCluster(com.google.bigtable.admin.v2.Cluster cluster)
Updates a cluster within an instance.
|
com.google.bigtable.admin.v2.Instance |
updateInstance(com.google.bigtable.admin.v2.Instance instance) |
void |
waitForOperation(com.google.longrunning.Operation operation)
Waits for the long running operation to complete by polling with exponential backoff.
|
void |
waitForOperation(com.google.longrunning.Operation operation,
long timeout,
TimeUnit timeUnit)
Waits for the long running operation to complete by polling with exponential backoff.
|
public BigtableInstanceGrpcClient(io.grpc.Channel channel)
channel
- a Channel
object.public com.google.longrunning.Operation createInstance(com.google.bigtable.admin.v2.CreateInstanceRequest request)
createInstance
in interface BigtableInstanceClient
request
- a CreateInstanceRequest
object.Operation
object.public com.google.longrunning.Operation getOperation(com.google.longrunning.GetOperationRequest request)
BigtableInstanceClient.createInstance(CreateInstanceRequest)
and BigtableInstanceClient.updateCluster(Cluster)
will
return a Operation
. Use this method and pass in the Operation
's name in the request to see if the Operation is done via
Operation.getDone()
. The instance will not be available until
that happens.
getOperation
in interface BigtableInstanceClient
request
- a GetOperationRequest
object.Operation
object.public void waitForOperation(com.google.longrunning.Operation operation) throws IOException, TimeoutException
waitForOperation
in interface BigtableInstanceClient
IOException
TimeoutException
- If the timeout is exceeded.public void waitForOperation(com.google.longrunning.Operation operation, long timeout, TimeUnit timeUnit) throws TimeoutException, IOException
waitForOperation
in interface BigtableInstanceClient
TimeoutException
- If the timeout is exceeded.IOException
public com.google.bigtable.admin.v2.ListInstancesResponse listInstances(com.google.bigtable.admin.v2.ListInstancesRequest request)
listInstances
in interface BigtableInstanceClient
request
- a ListInstancesRequest
object.ListInstancesResponse
object.public com.google.bigtable.admin.v2.Instance updateInstance(com.google.bigtable.admin.v2.Instance instance)
updateInstance
in interface BigtableInstanceClient
public com.google.protobuf.Empty deleteInstance(com.google.bigtable.admin.v2.DeleteInstanceRequest request)
deleteInstance
in interface BigtableInstanceClient
request
- a DeleteInstanceRequest
object.Empty
object.public com.google.bigtable.admin.v2.Cluster getCluster(com.google.bigtable.admin.v2.GetClusterRequest request)
getCluster
in interface BigtableInstanceClient
request
- a GetClusterRequest
object.Cluster
object.public com.google.bigtable.admin.v2.ListClustersResponse listCluster(com.google.bigtable.admin.v2.ListClustersRequest request)
listCluster
in interface BigtableInstanceClient
request
- a ListClustersRequest
object.ListClustersResponse
object.public com.google.longrunning.Operation updateCluster(com.google.bigtable.admin.v2.Cluster cluster)
updateCluster
in interface BigtableInstanceClient
cluster
- a Cluster
object.Operation
object.public com.google.protobuf.Empty deleteCluster(com.google.bigtable.admin.v2.DeleteClusterRequest request)
deleteCluster
in interface BigtableInstanceClient
request
- a DeleteClusterRequest
object.Empty
object.public com.google.longrunning.Operation partialUpdateInstance(com.google.bigtable.admin.v2.PartialUpdateInstanceRequest request)
partialUpdateInstance
in interface BigtableInstanceClient
request
- a PartialUpdateInstanceRequest
object.Operation
object.public com.google.bigtable.admin.v2.AppProfile createAppProfile(com.google.bigtable.admin.v2.CreateAppProfileRequest request)
createAppProfile
in interface BigtableInstanceClient
request
- a CreateAppProfileRequest
object.AppProfile
object.public com.google.bigtable.admin.v2.AppProfile getAppProfile(com.google.bigtable.admin.v2.GetAppProfileRequest request)
getAppProfile
in interface BigtableInstanceClient
request
- a GetAppProfileRequest
object.AppProfile
object.public com.google.bigtable.admin.v2.ListAppProfilesResponse listAppProfiles(com.google.bigtable.admin.v2.ListAppProfilesRequest request)
listAppProfiles
in interface BigtableInstanceClient
request
- a ListAppProfilesRequest
object.ListAppProfilesResponse
object.public com.google.longrunning.Operation updateAppProfile(com.google.bigtable.admin.v2.UpdateAppProfileRequest request)
updateAppProfile
in interface BigtableInstanceClient
request
- a UpdateAppProfileRequest
object.Operation
object.public com.google.protobuf.Empty deleteAppProfile(com.google.bigtable.admin.v2.DeleteAppProfileRequest request)
deleteAppProfile
in interface BigtableInstanceClient
request
- a DeleteAppProfileRequest
object.Empty
object.public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
getIamPolicy
in interface BigtableInstanceClient
request
- a GetIamPolicyRequest
object.Policy
object.public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
setIamPolicy
in interface BigtableInstanceClient
request
- a SetIamPolicyRequest
object.Policy
object.public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
testIamPermissions
in interface BigtableInstanceClient
request
- a TestIamPermissionsRequest
object.TestIamPermissionsResponse
object.public com.google.longrunning.Operation createCluster(com.google.bigtable.admin.v2.CreateClusterRequest request)
createCluster
in interface BigtableInstanceClient
request
- a CreateClusterRequest
object.Operation
object.