pub struct MigrationJob {Show 26 fields
pub cmek_key_name: Option<String>,
pub conversion_workspace: Option<ConversionWorkspaceInfo>,
pub create_time: Option<DateTime<Utc>>,
pub destination: Option<String>,
pub destination_database: Option<DatabaseType>,
pub display_name: Option<String>,
pub dump_flags: Option<DumpFlags>,
pub dump_path: Option<String>,
pub dump_type: Option<String>,
pub duration: Option<Duration>,
pub end_time: Option<DateTime<Utc>>,
pub error: Option<Status>,
pub filter: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub performance_config: Option<PerformanceConfig>,
pub phase: Option<String>,
pub reverse_ssh_connectivity: Option<ReverseSshConnectivity>,
pub source: Option<String>,
pub source_database: Option<DatabaseType>,
pub sqlserver_homogeneous_migration_job_config: Option<SqlServerHomogeneousMigrationJobConfig>,
pub state: Option<String>,
pub static_ip_connectivity: Option<StaticIpConnectivity>,
pub type_: Option<String>,
pub update_time: Option<DateTime<Utc>>,
pub vpc_peering_connectivity: Option<VpcPeeringConnectivity>,
}
Expand description
Represents a Database Migration Service migration job object.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations migration jobs create projects (request)
- locations migration jobs get projects (response)
- locations migration jobs patch projects (request)
Fields§
§cmek_key_name: Option<String>
The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for: * Mysql to Mysql (use the cmek field in the cloudsql connection profile instead). * PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead). * PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
conversion_workspace: Option<ConversionWorkspaceInfo>
The conversion workspace used by the migration.
create_time: Option<DateTime<Utc>>
Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
destination: Option<String>
Required. The resource name (URI) of the destination connection profile.
destination_database: Option<DatabaseType>
The database engine type and provider of the destination.
display_name: Option<String>
The migration job display name.
dump_flags: Option<DumpFlags>
The initial dump flags. This field and the “dump_path” field are mutually exclusive.
dump_path: Option<String>
The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the “dump_flags” field are mutually exclusive.
dump_type: Option<String>
Optional. The type of the data dump. Supported for MySQL to CloudSQL for MySQL migrations only.
duration: Option<Duration>
Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by ‘s’. Example: “3.5s”.
end_time: Option<DateTime<Utc>>
Output only. If the migration job is completed, the time when it was completed.
error: Option<Status>
Output only. The error details in case of state FAILED.
filter: Option<String>
This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.
labels: Option<HashMap<String, String>>
The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of “key”: “value” pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
name: Option<String>
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
performance_config: Option<PerformanceConfig>
Optional. Data dump parallelism settings used by the migration.
phase: Option<String>
Output only. The current migration job phase.
reverse_ssh_connectivity: Option<ReverseSshConnectivity>
The details needed to communicate to the source over Reverse SSH tunnel connectivity.
source: Option<String>
Required. The resource name (URI) of the source connection profile.
source_database: Option<DatabaseType>
The database engine type and provider of the source.
sqlserver_homogeneous_migration_job_config: Option<SqlServerHomogeneousMigrationJobConfig>
Optional. Configuration for SQL Server homogeneous migration.
state: Option<String>
The current migration job state.
static_ip_connectivity: Option<StaticIpConnectivity>
static ip connectivity data (default, no additional details needed).
type_: Option<String>
Required. The migration job type.
update_time: Option<DateTime<Utc>>
Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
vpc_peering_connectivity: Option<VpcPeeringConnectivity>
The details of the VPC network that the source database is located in.
Trait Implementations§
Source§impl Clone for MigrationJob
impl Clone for MigrationJob
Source§fn clone(&self) -> MigrationJob
fn clone(&self) -> MigrationJob
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MigrationJob
impl Debug for MigrationJob
Source§impl Default for MigrationJob
impl Default for MigrationJob
Source§fn default() -> MigrationJob
fn default() -> MigrationJob
Source§impl<'de> Deserialize<'de> for MigrationJob
impl<'de> Deserialize<'de> for MigrationJob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MigrationJob
impl Serialize for MigrationJob
impl RequestValue for MigrationJob
impl ResponseResult for MigrationJob
Auto Trait Implementations§
impl Freeze for MigrationJob
impl RefUnwindSafe for MigrationJob
impl Send for MigrationJob
impl Sync for MigrationJob
impl Unpin for MigrationJob
impl UnwindSafe for MigrationJob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more