Struct MigrationJob

Source
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).

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

Source§

fn clone(&self) -> MigrationJob

Returns a duplicate 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 Debug for MigrationJob

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for MigrationJob

Source§

fn default() -> MigrationJob

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for MigrationJob

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for MigrationJob

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl RequestValue for MigrationJob

Source§

impl ResponseResult for MigrationJob

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

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

Source§

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>,

Source§

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>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,