pub struct BigtableTableAdmin { /* private fields */ }Expand description
Implements a client for the Cloud Bigtable Admin API.
§Example
let client = BigtableTableAdmin::builder().build().await?;
// use `client` to make requests to the Cloud Bigtable Admin API.§Service Description
Service for creating, configuring, and deleting Cloud Bigtable tables.
Provides access to the table schemas only, not the data stored within the tables.
§Configuration
To configure BigtableTableAdmin use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://bigtableadmin.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
BigtableTableAdmin holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap BigtableTableAdmin in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl BigtableTableAdmin
impl BigtableTableAdmin
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for BigtableTableAdmin.
let client = BigtableTableAdmin::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: BigtableTableAdmin + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: BigtableTableAdmin + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn create_table(&self) -> CreateTable
pub fn create_table(&self) -> CreateTable
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 fn create_table_from_snapshot(&self) -> CreateTableFromSnapshot
pub fn create_table_from_snapshot(&self) -> CreateTableFromSnapshot
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.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_tables(&self) -> ListTables
pub fn list_tables(&self) -> ListTables
Lists all tables served from a specified instance.
Sourcepub fn update_table(&self) -> UpdateTable
pub fn update_table(&self) -> UpdateTable
Updates a specified table.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_table(&self) -> DeleteTable
pub fn delete_table(&self) -> DeleteTable
Permanently deletes a specified table and all of its data.
Sourcepub fn undelete_table(&self) -> UndeleteTable
pub fn undelete_table(&self) -> UndeleteTable
Restores a specified table which was accidentally deleted.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Creates a new AuthorizedView in a table.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Lists all AuthorizedViews from a specific table.
Gets information from a specified AuthorizedView.
Updates an AuthorizedView in a table.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Permanently deletes a specified AuthorizedView.
Sourcepub fn modify_column_families(&self) -> ModifyColumnFamilies
pub fn modify_column_families(&self) -> ModifyColumnFamilies
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 fn drop_row_range(&self) -> DropRowRange
pub fn drop_row_range(&self) -> DropRowRange
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 fn generate_consistency_token(&self) -> GenerateConsistencyToken
pub fn generate_consistency_token(&self) -> GenerateConsistencyToken
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 fn check_consistency(&self) -> CheckConsistency
pub fn check_consistency(&self) -> CheckConsistency
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 fn snapshot_table(&self) -> SnapshotTable
pub fn snapshot_table(&self) -> SnapshotTable
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.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_snapshot(&self) -> GetSnapshot
pub fn get_snapshot(&self) -> GetSnapshot
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 fn list_snapshots(&self) -> ListSnapshots
pub fn list_snapshots(&self) -> ListSnapshots
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 fn delete_snapshot(&self) -> DeleteSnapshot
pub fn delete_snapshot(&self) -> DeleteSnapshot
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 fn create_backup(&self) -> CreateBackup
pub fn create_backup(&self) -> CreateBackup
Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_backup(&self) -> GetBackup
pub fn get_backup(&self) -> GetBackup
Gets metadata on a pending or completed Cloud Bigtable Backup.
Sourcepub fn update_backup(&self) -> UpdateBackup
pub fn update_backup(&self) -> UpdateBackup
Updates a pending or completed Cloud Bigtable Backup.
Sourcepub fn delete_backup(&self) -> DeleteBackup
pub fn delete_backup(&self) -> DeleteBackup
Deletes a pending or completed Cloud Bigtable backup.
Sourcepub fn list_backups(&self) -> ListBackups
pub fn list_backups(&self) -> ListBackups
Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sourcepub fn restore_table(&self) -> RestoreTable
pub fn restore_table(&self) -> RestoreTable
Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn copy_backup(&self) -> CopyBackup
pub fn copy_backup(&self) -> CopyBackup
Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_iam_policy(&self) -> GetIamPolicy
pub fn get_iam_policy(&self) -> GetIamPolicy
Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
Sourcepub fn set_iam_policy(&self) -> SetIamPolicy
pub fn set_iam_policy(&self) -> SetIamPolicy
Sets the access control policy on a Bigtable resource. Replaces any existing policy.
Sourcepub fn test_iam_permissions(&self) -> TestIamPermissions
pub fn test_iam_permissions(&self) -> TestIamPermissions
Returns permissions that the caller has on the specified Bigtable resource.
Sourcepub fn create_schema_bundle(&self) -> CreateSchemaBundle
pub fn create_schema_bundle(&self) -> CreateSchemaBundle
Creates a new schema bundle in the specified table.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_schema_bundle(&self) -> UpdateSchemaBundle
pub fn update_schema_bundle(&self) -> UpdateSchemaBundle
Updates a schema bundle in the specified table.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn get_schema_bundle(&self) -> GetSchemaBundle
pub fn get_schema_bundle(&self) -> GetSchemaBundle
Gets metadata information about the specified schema bundle.
Sourcepub fn list_schema_bundles(&self) -> ListSchemaBundles
pub fn list_schema_bundles(&self) -> ListSchemaBundles
Lists all schema bundles associated with the specified table.
Sourcepub fn delete_schema_bundle(&self) -> DeleteSchemaBundle
pub fn delete_schema_bundle(&self) -> DeleteSchemaBundle
Deletes a schema bundle in the specified table.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.
Sourcepub fn delete_operation(&self) -> DeleteOperation
pub fn delete_operation(&self) -> DeleteOperation
Provides the Operations service functionality in this service.
Sourcepub fn cancel_operation(&self) -> CancelOperation
pub fn cancel_operation(&self) -> CancelOperation
Provides the Operations service functionality in this service.
Trait Implementations§
Source§impl Clone for BigtableTableAdmin
impl Clone for BigtableTableAdmin
Source§fn clone(&self) -> BigtableTableAdmin
fn clone(&self) -> BigtableTableAdmin
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more