Struct google_api_proto::google::bigtable::admin::v2::bigtable_table_admin_client::BigtableTableAdminClient
source · pub struct BigtableTableAdminClient<T> { /* private fields */ }
Expand description
Service for creating, configuring, and deleting Cloud Bigtable tables.
Provides access to the table schemas only, not the data stored within the tables.
Implementations§
source§impl<T> BigtableTableAdminClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> BigtableTableAdminClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BigtableTableAdminClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_table(
&mut self,
request: impl IntoRequest<CreateTableRequest>,
) -> Result<Response<Table>, Status>
pub async fn create_table( &mut self, request: impl IntoRequest<CreateTableRequest>, ) -> Result<Response<Table>, Status>
Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
sourcepub async fn create_table_from_snapshot(
&mut self,
request: impl IntoRequest<CreateTableFromSnapshotRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_table_from_snapshot( &mut self, request: impl IntoRequest<CreateTableFromSnapshotRequest>, ) -> Result<Response<Operation>, Status>
Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
sourcepub async fn list_tables(
&mut self,
request: impl IntoRequest<ListTablesRequest>,
) -> Result<Response<ListTablesResponse>, Status>
pub async fn list_tables( &mut self, request: impl IntoRequest<ListTablesRequest>, ) -> Result<Response<ListTablesResponse>, Status>
Lists all tables served from a specified instance.
sourcepub async fn get_table(
&mut self,
request: impl IntoRequest<GetTableRequest>,
) -> Result<Response<Table>, Status>
pub async fn get_table( &mut self, request: impl IntoRequest<GetTableRequest>, ) -> Result<Response<Table>, Status>
Gets metadata information about the specified table.
sourcepub async fn update_table(
&mut self,
request: impl IntoRequest<UpdateTableRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_table( &mut self, request: impl IntoRequest<UpdateTableRequest>, ) -> Result<Response<Operation>, Status>
Updates a specified table.
sourcepub async fn delete_table(
&mut self,
request: impl IntoRequest<DeleteTableRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_table( &mut self, request: impl IntoRequest<DeleteTableRequest>, ) -> Result<Response<()>, Status>
Permanently deletes a specified table and all of its data.
sourcepub async fn undelete_table(
&mut self,
request: impl IntoRequest<UndeleteTableRequest>,
) -> Result<Response<Operation>, Status>
pub async fn undelete_table( &mut self, request: impl IntoRequest<UndeleteTableRequest>, ) -> Result<Response<Operation>, Status>
Restores a specified table which was accidentally deleted.
Creates a new AuthorizedView in a table.
Lists all AuthorizedViews from a specific table.
Gets information from a specified AuthorizedView.
Updates an AuthorizedView in a table.
Permanently deletes a specified AuthorizedView.
sourcepub async fn modify_column_families(
&mut self,
request: impl IntoRequest<ModifyColumnFamiliesRequest>,
) -> Result<Response<Table>, Status>
pub async fn modify_column_families( &mut self, request: impl IntoRequest<ModifyColumnFamiliesRequest>, ) -> Result<Response<Table>, Status>
Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
sourcepub async fn drop_row_range(
&mut self,
request: impl IntoRequest<DropRowRangeRequest>,
) -> Result<Response<()>, Status>
pub async fn drop_row_range( &mut self, request: impl IntoRequest<DropRowRangeRequest>, ) -> Result<Response<()>, Status>
Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.
sourcepub async fn generate_consistency_token(
&mut self,
request: impl IntoRequest<GenerateConsistencyTokenRequest>,
) -> Result<Response<GenerateConsistencyTokenResponse>, Status>
pub async fn generate_consistency_token( &mut self, request: impl IntoRequest<GenerateConsistencyTokenRequest>, ) -> Result<Response<GenerateConsistencyTokenResponse>, Status>
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
sourcepub async fn check_consistency(
&mut self,
request: impl IntoRequest<CheckConsistencyRequest>,
) -> Result<Response<CheckConsistencyResponse>, Status>
pub async fn check_consistency( &mut self, request: impl IntoRequest<CheckConsistencyRequest>, ) -> Result<Response<CheckConsistencyResponse>, Status>
Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
sourcepub async fn snapshot_table(
&mut self,
request: impl IntoRequest<SnapshotTableRequest>,
) -> Result<Response<Operation>, Status>
pub async fn snapshot_table( &mut self, request: impl IntoRequest<SnapshotTableRequest>, ) -> Result<Response<Operation>, Status>
Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
sourcepub async fn get_snapshot(
&mut self,
request: impl IntoRequest<GetSnapshotRequest>,
) -> Result<Response<Snapshot>, Status>
pub async fn get_snapshot( &mut self, request: impl IntoRequest<GetSnapshotRequest>, ) -> Result<Response<Snapshot>, Status>
Gets metadata information about the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
sourcepub async fn list_snapshots(
&mut self,
request: impl IntoRequest<ListSnapshotsRequest>,
) -> Result<Response<ListSnapshotsResponse>, Status>
pub async fn list_snapshots( &mut self, request: impl IntoRequest<ListSnapshotsRequest>, ) -> Result<Response<ListSnapshotsResponse>, Status>
Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
sourcepub async fn delete_snapshot(
&mut self,
request: impl IntoRequest<DeleteSnapshotRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_snapshot( &mut self, request: impl IntoRequest<DeleteSnapshotRequest>, ) -> Result<Response<()>, Status>
Permanently deletes the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
sourcepub async fn create_backup(
&mut self,
request: impl IntoRequest<CreateBackupRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_backup( &mut self, request: impl IntoRequest<CreateBackupRequest>, ) -> Result<Response<Operation>, Status>
Starts creating a new Cloud Bigtable Backup. The returned backup [long-running operation][google.longrunning.Operation] can be used to track creation of the backup. The [metadata][google.longrunning.Operation.metadata] field type is [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the creation and delete the backup.
sourcepub async fn get_backup(
&mut self,
request: impl IntoRequest<GetBackupRequest>,
) -> Result<Response<Backup>, Status>
pub async fn get_backup( &mut self, request: impl IntoRequest<GetBackupRequest>, ) -> Result<Response<Backup>, Status>
Gets metadata on a pending or completed Cloud Bigtable Backup.
sourcepub async fn update_backup(
&mut self,
request: impl IntoRequest<UpdateBackupRequest>,
) -> Result<Response<Backup>, Status>
pub async fn update_backup( &mut self, request: impl IntoRequest<UpdateBackupRequest>, ) -> Result<Response<Backup>, Status>
Updates a pending or completed Cloud Bigtable Backup.
sourcepub async fn delete_backup(
&mut self,
request: impl IntoRequest<DeleteBackupRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_backup( &mut self, request: impl IntoRequest<DeleteBackupRequest>, ) -> Result<Response<()>, Status>
Deletes a pending or completed Cloud Bigtable backup.
sourcepub async fn list_backups(
&mut self,
request: impl IntoRequest<ListBackupsRequest>,
) -> Result<Response<ListBackupsResponse>, Status>
pub async fn list_backups( &mut self, request: impl IntoRequest<ListBackupsRequest>, ) -> Result<Response<ListBackupsResponse>, Status>
Lists Cloud Bigtable backups. Returns both completed and pending backups.
sourcepub async fn restore_table(
&mut self,
request: impl IntoRequest<RestoreTableRequest>,
) -> Result<Response<Operation>, Status>
pub async fn restore_table( &mut self, request: impl IntoRequest<RestoreTableRequest>, ) -> Result<Response<Operation>, Status>
Create a new table by restoring from a completed backup. The returned table [long-running operation][google.longrunning.Operation] can be used to track the progress of the operation, and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The [response][google.longrunning.Operation.response] type is [Table][google.bigtable.admin.v2.Table], if successful.
sourcepub async fn copy_backup(
&mut self,
request: impl IntoRequest<CopyBackupRequest>,
) -> Result<Response<Operation>, Status>
pub async fn copy_backup( &mut self, request: impl IntoRequest<CopyBackupRequest>, ) -> Result<Response<Operation>, Status>
Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
sourcepub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy( &mut self, request: impl IntoRequest<GetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Gets the access control policy for a Table or Backup resource. Returns an empty policy if the resource exists but does not have a policy set.
sourcepub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>,
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy( &mut self, request: impl IntoRequest<SetIamPolicyRequest>, ) -> Result<Response<Policy>, Status>
Sets the access control policy on a Table or Backup resource. Replaces any existing policy.
sourcepub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>,
) -> Result<Response<TestIamPermissionsResponse>, Status>
pub async fn test_iam_permissions( &mut self, request: impl IntoRequest<TestIamPermissionsRequest>, ) -> Result<Response<TestIamPermissionsResponse>, Status>
Returns permissions that the caller has on the specified Table or Backup resource.
Trait Implementations§
source§impl<T: Clone> Clone for BigtableTableAdminClient<T>
impl<T: Clone> Clone for BigtableTableAdminClient<T>
source§fn clone(&self) -> BigtableTableAdminClient<T>
fn clone(&self) -> BigtableTableAdminClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for BigtableTableAdminClient<T>
impl<T> RefUnwindSafe for BigtableTableAdminClient<T>where
T: RefUnwindSafe,
impl<T> Send for BigtableTableAdminClient<T>where
T: Send,
impl<T> Sync for BigtableTableAdminClient<T>where
T: Sync,
impl<T> Unpin for BigtableTableAdminClient<T>where
T: Unpin,
impl<T> UnwindSafe for BigtableTableAdminClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request