AsyncRestoreTableOperation(
operations_client,
restore_table_operation: google.api_core.operation_async.AsyncOperation,
)A Future for interacting with Bigtable Admin's RestoreTable Long-Running Operation.
This is needed to expose a potential long-running operation that might run after this operation
finishes, OptimizeRestoreTable. This is exposed via the the optimize_restore_table_operation
method.
This class should not be instantiated by users and should only be instantiated by the admin
client's :meth:restore_table
<<xref uid="google.cloud.bigtable_admin_v2.overlay.services.bigtable_table_admin.BigtableTableAdminAsyncClient.restore_table">google.cloud.bigtable_admin_v2.overlay.services.bigtable_table_admin.BigtableTableAdminAsyncClient.restore_table</xref>>
method.
Parameters |
|
|---|---|
| Name | Description |
operations_client |
google.api_core.operations_v1.AbstractOperationsClient
The operations client from the admin client class's transport. |
restore_table_operation |
google.api_core.operation_async.AsyncOperation
A |
Methods
optimize_restored_table_operation
optimize_restored_table_operation() -> (
typing.Optional[google.api_core.operation_async.AsyncOperation]
)Gets the OptimizeRestoredTable long-running operation that runs after this operation finishes.
The current operation might not trigger a follow-up OptimizeRestoredTable operation, in which case, this
method will return None.
This method must not be called before the parent restore_table operation is complete.
| Exceptions | |
|---|---|
| Type | Description |
RuntimeError |
raised when accessed before the restore_table operation is complete |
google.api_core.GoogleAPIError |
raised when accessed before the restore_table operation is complete |