pub struct MigrationService { /* private fields */ }Expand description
Implements a client for the BigQuery Migration API.
§Example
let client = MigrationService::builder().build().await?;
// use `client` to make requests to the BigQuery Migration API.§Service Description
Service to handle EDW migrations.
§Configuration
To configure MigrationService 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://bigquerymigration.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
MigrationService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap MigrationService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl MigrationService
impl MigrationService
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for MigrationService.
let client = MigrationService::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: MigrationService + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: MigrationService + '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_migration_workflow(&self) -> CreateMigrationWorkflow
pub fn create_migration_workflow(&self) -> CreateMigrationWorkflow
Creates a migration workflow.
Sourcepub fn get_migration_workflow(&self) -> GetMigrationWorkflow
pub fn get_migration_workflow(&self) -> GetMigrationWorkflow
Gets a previously created migration workflow.
Sourcepub fn list_migration_workflows(&self) -> ListMigrationWorkflows
pub fn list_migration_workflows(&self) -> ListMigrationWorkflows
Lists previously created migration workflow.
Sourcepub fn delete_migration_workflow(&self) -> DeleteMigrationWorkflow
pub fn delete_migration_workflow(&self) -> DeleteMigrationWorkflow
Deletes a migration workflow by name.
Sourcepub fn start_migration_workflow(&self) -> StartMigrationWorkflow
pub fn start_migration_workflow(&self) -> StartMigrationWorkflow
Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.
Sourcepub fn get_migration_subtask(&self) -> GetMigrationSubtask
pub fn get_migration_subtask(&self) -> GetMigrationSubtask
Gets a previously created migration subtask.
Sourcepub fn list_migration_subtasks(&self) -> ListMigrationSubtasks
pub fn list_migration_subtasks(&self) -> ListMigrationSubtasks
Lists previously created migration subtasks.
Trait Implementations§
Source§impl Clone for MigrationService
impl Clone for MigrationService
Source§fn clone(&self) -> MigrationService
fn clone(&self) -> MigrationService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more