Struct googapis::google::cloud::clouddms::v1::data_migration_service_client::DataMigrationServiceClient [−][src]
pub struct DataMigrationServiceClient<T> { /* fields omitted */ }
Expand description
Database Migration service
Implementations
impl<T> DataMigrationServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DataMigrationServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> DataMigrationServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list_migration_jobs(
&mut self,
request: impl IntoRequest<ListMigrationJobsRequest>
) -> Result<Response<ListMigrationJobsResponse>, Status>
pub async fn list_migration_jobs(
&mut self,
request: impl IntoRequest<ListMigrationJobsRequest>
) -> Result<Response<ListMigrationJobsResponse>, Status>
Lists migration jobs in a given project and location.
pub async fn get_migration_job(
&mut self,
request: impl IntoRequest<GetMigrationJobRequest>
) -> Result<Response<MigrationJob>, Status>
pub async fn get_migration_job(
&mut self,
request: impl IntoRequest<GetMigrationJobRequest>
) -> Result<Response<MigrationJob>, Status>
Gets details of a single migration job.
pub async fn create_migration_job(
&mut self,
request: impl IntoRequest<CreateMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_migration_job(
&mut self,
request: impl IntoRequest<CreateMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Creates a new migration job in a given project and location.
pub async fn update_migration_job(
&mut self,
request: impl IntoRequest<UpdateMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_migration_job(
&mut self,
request: impl IntoRequest<UpdateMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Updates the parameters of a single migration job.
pub async fn delete_migration_job(
&mut self,
request: impl IntoRequest<DeleteMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_migration_job(
&mut self,
request: impl IntoRequest<DeleteMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Deletes a single migration job.
pub async fn start_migration_job(
&mut self,
request: impl IntoRequest<StartMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn start_migration_job(
&mut self,
request: impl IntoRequest<StartMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Start an already created migration job.
pub async fn stop_migration_job(
&mut self,
request: impl IntoRequest<StopMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn stop_migration_job(
&mut self,
request: impl IntoRequest<StopMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Stops a running migration job.
pub async fn resume_migration_job(
&mut self,
request: impl IntoRequest<ResumeMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn resume_migration_job(
&mut self,
request: impl IntoRequest<ResumeMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).
pub async fn promote_migration_job(
&mut self,
request: impl IntoRequest<PromoteMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn promote_migration_job(
&mut self,
request: impl IntoRequest<PromoteMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
pub async fn verify_migration_job(
&mut self,
request: impl IntoRequest<VerifyMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn verify_migration_job(
&mut self,
request: impl IntoRequest<VerifyMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.
pub async fn restart_migration_job(
&mut self,
request: impl IntoRequest<RestartMigrationJobRequest>
) -> Result<Response<Operation>, Status>
pub async fn restart_migration_job(
&mut self,
request: impl IntoRequest<RestartMigrationJobRequest>
) -> Result<Response<Operation>, Status>
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
pub async fn generate_ssh_script(
&mut self,
request: impl IntoRequest<GenerateSshScriptRequest>
) -> Result<Response<SshScript>, Status>
pub async fn generate_ssh_script(
&mut self,
request: impl IntoRequest<GenerateSshScriptRequest>
) -> Result<Response<SshScript>, Status>
Generate a SSH configuration script to configure the reverse SSH connectivity.
pub async fn list_connection_profiles(
&mut self,
request: impl IntoRequest<ListConnectionProfilesRequest>
) -> Result<Response<ListConnectionProfilesResponse>, Status>
pub async fn list_connection_profiles(
&mut self,
request: impl IntoRequest<ListConnectionProfilesRequest>
) -> Result<Response<ListConnectionProfilesResponse>, Status>
Retrieve a list of all connection profiles in a given project and location.
pub async fn get_connection_profile(
&mut self,
request: impl IntoRequest<GetConnectionProfileRequest>
) -> Result<Response<ConnectionProfile>, Status>
pub async fn get_connection_profile(
&mut self,
request: impl IntoRequest<GetConnectionProfileRequest>
) -> Result<Response<ConnectionProfile>, Status>
Gets details of a single connection profile.
pub async fn create_connection_profile(
&mut self,
request: impl IntoRequest<CreateConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_connection_profile(
&mut self,
request: impl IntoRequest<CreateConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
Creates a new connection profile in a given project and location.
pub async fn update_connection_profile(
&mut self,
request: impl IntoRequest<UpdateConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_connection_profile(
&mut self,
request: impl IntoRequest<UpdateConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
Update the configuration of a single connection profile.
pub async fn delete_connection_profile(
&mut self,
request: impl IntoRequest<DeleteConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_connection_profile(
&mut self,
request: impl IntoRequest<DeleteConnectionProfileRequest>
) -> Result<Response<Operation>, Status>
Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for DataMigrationServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for DataMigrationServiceClient<T> where
T: Send,
impl<T> Sync for DataMigrationServiceClient<T> where
T: Sync,
impl<T> Unpin for DataMigrationServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for DataMigrationServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more