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,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

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,

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

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.

source

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.

source

pub async fn list_tables( &mut self, request: impl IntoRequest<ListTablesRequest> ) -> Result<Response<ListTablesResponse>, Status>

Lists all tables served from a specified instance.

source

pub async fn get_table( &mut self, request: impl IntoRequest<GetTableRequest> ) -> Result<Response<Table>, Status>

Gets metadata information about the specified table.

source

pub async fn update_table( &mut self, request: impl IntoRequest<UpdateTableRequest> ) -> Result<Response<Operation>, Status>

Updates a specified table.

source

pub async fn delete_table( &mut self, request: impl IntoRequest<DeleteTableRequest> ) -> Result<Response<()>, Status>

Permanently deletes a specified table and all of its data.

source

pub async fn undelete_table( &mut self, request: impl IntoRequest<UndeleteTableRequest> ) -> Result<Response<Operation>, Status>

Restores a specified table which was accidentally deleted.

source

pub async fn create_authorized_view( &mut self, request: impl IntoRequest<CreateAuthorizedViewRequest> ) -> Result<Response<Operation>, Status>

Creates a new AuthorizedView in a table.

source

pub async fn list_authorized_views( &mut self, request: impl IntoRequest<ListAuthorizedViewsRequest> ) -> Result<Response<ListAuthorizedViewsResponse>, Status>

Lists all AuthorizedViews from a specific table.

source

pub async fn get_authorized_view( &mut self, request: impl IntoRequest<GetAuthorizedViewRequest> ) -> Result<Response<AuthorizedView>, Status>

Gets information from a specified AuthorizedView.

source

pub async fn update_authorized_view( &mut self, request: impl IntoRequest<UpdateAuthorizedViewRequest> ) -> Result<Response<Operation>, Status>

Updates an AuthorizedView in a table.

source

pub async fn delete_authorized_view( &mut self, request: impl IntoRequest<DeleteAuthorizedViewRequest> ) -> Result<Response<()>, Status>

Permanently deletes a specified AuthorizedView.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub async fn update_backup( &mut self, request: impl IntoRequest<UpdateBackupRequest> ) -> Result<Response<Backup>, Status>

Updates a pending or completed Cloud Bigtable Backup.

source

pub async fn delete_backup( &mut self, request: impl IntoRequest<DeleteBackupRequest> ) -> Result<Response<()>, Status>

Deletes a pending or completed Cloud Bigtable backup.

source

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.

source

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.RestoreTableMetadata]. The [response][google.longrunning.Operation.response] type is [Table][google.bigtable.admin.v2.Table], if successful.

source

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.

source

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.

source

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.

source

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>

source§

fn clone(&self) -> BigtableTableAdminClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for BigtableTableAdminClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more