Struct google_api_proto::google::cloud::clouddms::v1::MigrationJob
source · pub struct MigrationJob {Show 22 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub display_name: String,
pub state: i32,
pub phase: i32,
pub type: i32,
pub dump_path: String,
pub dump_flags: Option<DumpFlags>,
pub source: String,
pub destination: String,
pub duration: Option<Duration>,
pub error: Option<Status>,
pub source_database: Option<DatabaseType>,
pub destination_database: Option<DatabaseType>,
pub end_time: Option<Timestamp>,
pub conversion_workspace: Option<ConversionWorkspaceInfo>,
pub filter: String,
pub cmek_key_name: String,
pub performance_config: Option<PerformanceConfig>,
pub connectivity: Option<Connectivity>,
}
Expand description
Represents a Database Migration Service migration job object.
Fields§
§name: String
The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
create_time: Option<Timestamp>
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”.
update_time: Option<Timestamp>
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”.
labels: BTreeMap<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" }
.
display_name: String
The migration job display name.
state: i32
The current migration job state.
phase: i32
Output only. The current migration job phase.
type: i32
Required. The migration job type.
dump_path: 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_flags: Option<DumpFlags>
The initial dump flags. This field and the “dump_path” field are mutually exclusive.
source: String
Required. The resource name (URI) of the source connection profile.
destination: String
Required. The resource name (URI) of the destination connection profile.
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”.
error: Option<Status>
Output only. The error details in case of state FAILED.
source_database: Option<DatabaseType>
The database engine type and provider of the source.
destination_database: Option<DatabaseType>
The database engine type and provider of the destination.
end_time: Option<Timestamp>
Output only. If the migration job is completed, the time when it was completed.
conversion_workspace: Option<ConversionWorkspaceInfo>
The conversion workspace used by the migration.
filter: 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.
cmek_key_name: 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]
performance_config: Option<PerformanceConfig>
Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.
connectivity: Option<Connectivity>
The connectivity method.
Implementations§
source§impl MigrationJob
impl MigrationJob
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn phase(&self) -> Phase
pub fn phase(&self) -> Phase
Returns the enum value of phase
, or the default if the field is set to an invalid enum value.
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§impl Message for MigrationJob
impl Message for MigrationJob
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MigrationJob
impl PartialEq for MigrationJob
source§fn eq(&self, other: &MigrationJob) -> bool
fn eq(&self, other: &MigrationJob) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request