#[non_exhaustive]pub struct MigratingVm {Show 21 fields
pub name: String,
pub source_vm_id: String,
pub display_name: String,
pub description: String,
pub policy: Option<SchedulePolicy>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub last_sync: Option<ReplicationSync>,
pub state: State,
pub state_time: Option<Timestamp>,
pub current_sync_info: Option<ReplicationCycle>,
pub last_replication_cycle: Option<ReplicationCycle>,
pub group: String,
pub labels: HashMap<String, String>,
pub recent_clone_jobs: Vec<CloneJob>,
pub error: Option<Status>,
pub recent_cutover_jobs: Vec<CutoverJob>,
pub cutover_forecast: Option<CutoverForecast>,
pub expiration: Option<Expiration>,
pub target_vm_defaults: Option<TargetVmDefaults>,
pub source_vm_details: Option<SourceVmDetails>,
/* private fields */
}Expand description
MigratingVm describes the VM that will be migrated from a Source environment and its replication state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The identifier of the MigratingVm.
source_vm_id: StringThe unique ID of the VM in the source. The VM’s name in vSphere can be changed, so this is not the VM’s name but rather its moRef id. This id is of the form vm-<num>.
display_name: StringThe display name attached to the MigratingVm by the user.
description: StringThe description attached to the migrating VM by the user.
policy: Option<SchedulePolicy>The replication schedule policy.
create_time: Option<Timestamp>Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
update_time: Option<Timestamp>Output only. The last time the migrating VM resource was updated.
last_sync: Option<ReplicationSync>Output only. The most updated snapshot created time in the source that finished replication.
state: StateOutput only. State of the MigratingVm.
state_time: Option<Timestamp>Output only. The last time the migrating VM state was updated.
current_sync_info: Option<ReplicationCycle>Output only. Details of the current running replication cycle.
last_replication_cycle: Option<ReplicationCycle>Output only. Details of the last replication cycle. This will be updated whenever a replication cycle is finished and is not to be confused with last_sync which is only updated on successful replication cycles.
group: StringOutput only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
labels: HashMap<String, String>The labels of the migrating VM.
recent_clone_jobs: Vec<CloneJob>Output only. The recent clone jobs performed on the migrating VM. This field holds the vm’s last completed clone job and the vm’s running clone job, if one exists. Note: To have this field populated you need to explicitly request it via the “view” parameter of the Get/List request.
error: Option<Status>Output only. Provides details on the state of the Migrating VM in case of an error in replication.
recent_cutover_jobs: Vec<CutoverJob>Output only. The recent cutover jobs performed on the migrating VM. This field holds the vm’s last completed cutover job and the vm’s running cutover job, if one exists. Note: To have this field populated you need to explicitly request it via the “view” parameter of the Get/List request.
cutover_forecast: Option<CutoverForecast>Output only. Provides details of future CutoverJobs of a MigratingVm. Set to empty when cutover forecast is unavailable.
expiration: Option<Expiration>Output only. Provides details about the expiration state of the migrating VM.
target_vm_defaults: Option<TargetVmDefaults>The default configuration of the target VM that will be created in Google Cloud as a result of the migration.
source_vm_details: Option<SourceVmDetails>Details about the source VM.
Implementations§
Source§impl MigratingVm
impl MigratingVm
Sourcepub fn set_source_vm_id<T: Into<String>>(self, v: T) -> Self
pub fn set_source_vm_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_policy<T>(self, v: T) -> Selfwhere
T: Into<SchedulePolicy>,
pub fn set_policy<T>(self, v: T) -> Selfwhere
T: Into<SchedulePolicy>,
Sourcepub fn set_or_clear_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchedulePolicy>,
pub fn set_or_clear_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchedulePolicy>,
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_last_sync<T>(self, v: T) -> Selfwhere
T: Into<ReplicationSync>,
pub fn set_last_sync<T>(self, v: T) -> Selfwhere
T: Into<ReplicationSync>,
Sourcepub fn set_or_clear_last_sync<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationSync>,
pub fn set_or_clear_last_sync<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationSync>,
Sourcepub fn set_state_time<T>(self, v: T) -> Self
pub fn set_state_time<T>(self, v: T) -> Self
Sets the value of state_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_state_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_state_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of state_time.
§Example
use wkt::Timestamp;
let x = MigratingVm::new().set_or_clear_state_time(Some(Timestamp::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_state_time(None::<Timestamp>);Sourcepub fn set_current_sync_info<T>(self, v: T) -> Selfwhere
T: Into<ReplicationCycle>,
pub fn set_current_sync_info<T>(self, v: T) -> Selfwhere
T: Into<ReplicationCycle>,
Sets the value of current_sync_info.
§Example
use google_cloud_vmmigration_v1::model::ReplicationCycle;
let x = MigratingVm::new().set_current_sync_info(ReplicationCycle::default()/* use setters */);Sourcepub fn set_or_clear_current_sync_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationCycle>,
pub fn set_or_clear_current_sync_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationCycle>,
Sets or clears the value of current_sync_info.
§Example
use google_cloud_vmmigration_v1::model::ReplicationCycle;
let x = MigratingVm::new().set_or_clear_current_sync_info(Some(ReplicationCycle::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_current_sync_info(None::<ReplicationCycle>);Sourcepub fn set_last_replication_cycle<T>(self, v: T) -> Selfwhere
T: Into<ReplicationCycle>,
pub fn set_last_replication_cycle<T>(self, v: T) -> Selfwhere
T: Into<ReplicationCycle>,
Sets the value of last_replication_cycle.
§Example
use google_cloud_vmmigration_v1::model::ReplicationCycle;
let x = MigratingVm::new().set_last_replication_cycle(ReplicationCycle::default()/* use setters */);Sourcepub fn set_or_clear_last_replication_cycle<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationCycle>,
pub fn set_or_clear_last_replication_cycle<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReplicationCycle>,
Sets or clears the value of last_replication_cycle.
§Example
use google_cloud_vmmigration_v1::model::ReplicationCycle;
let x = MigratingVm::new().set_or_clear_last_replication_cycle(Some(ReplicationCycle::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_last_replication_cycle(None::<ReplicationCycle>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_recent_clone_jobs<T, V>(self, v: T) -> Self
pub fn set_recent_clone_jobs<T, V>(self, v: T) -> Self
Sets the value of recent_clone_jobs.
§Example
use google_cloud_vmmigration_v1::model::CloneJob;
let x = MigratingVm::new()
.set_recent_clone_jobs([
CloneJob::default()/* use setters */,
CloneJob::default()/* use (different) setters */,
]);Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sourcepub fn set_recent_cutover_jobs<T, V>(self, v: T) -> Self
pub fn set_recent_cutover_jobs<T, V>(self, v: T) -> Self
Sets the value of recent_cutover_jobs.
§Example
use google_cloud_vmmigration_v1::model::CutoverJob;
let x = MigratingVm::new()
.set_recent_cutover_jobs([
CutoverJob::default()/* use setters */,
CutoverJob::default()/* use (different) setters */,
]);Sourcepub fn set_cutover_forecast<T>(self, v: T) -> Selfwhere
T: Into<CutoverForecast>,
pub fn set_cutover_forecast<T>(self, v: T) -> Selfwhere
T: Into<CutoverForecast>,
Sets the value of cutover_forecast.
§Example
use google_cloud_vmmigration_v1::model::CutoverForecast;
let x = MigratingVm::new().set_cutover_forecast(CutoverForecast::default()/* use setters */);Sourcepub fn set_or_clear_cutover_forecast<T>(self, v: Option<T>) -> Selfwhere
T: Into<CutoverForecast>,
pub fn set_or_clear_cutover_forecast<T>(self, v: Option<T>) -> Selfwhere
T: Into<CutoverForecast>,
Sets or clears the value of cutover_forecast.
§Example
use google_cloud_vmmigration_v1::model::CutoverForecast;
let x = MigratingVm::new().set_or_clear_cutover_forecast(Some(CutoverForecast::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_cutover_forecast(None::<CutoverForecast>);Sourcepub fn set_expiration<T>(self, v: T) -> Selfwhere
T: Into<Expiration>,
pub fn set_expiration<T>(self, v: T) -> Selfwhere
T: Into<Expiration>,
Sets the value of expiration.
§Example
use google_cloud_vmmigration_v1::model::migrating_vm::Expiration;
let x = MigratingVm::new().set_expiration(Expiration::default()/* use setters */);Sourcepub fn set_or_clear_expiration<T>(self, v: Option<T>) -> Selfwhere
T: Into<Expiration>,
pub fn set_or_clear_expiration<T>(self, v: Option<T>) -> Selfwhere
T: Into<Expiration>,
Sets or clears the value of expiration.
§Example
use google_cloud_vmmigration_v1::model::migrating_vm::Expiration;
let x = MigratingVm::new().set_or_clear_expiration(Some(Expiration::default()/* use setters */));
let x = MigratingVm::new().set_or_clear_expiration(None::<Expiration>);Sourcepub fn set_target_vm_defaults<T: Into<Option<TargetVmDefaults>>>(
self,
v: T,
) -> Self
pub fn set_target_vm_defaults<T: Into<Option<TargetVmDefaults>>>( self, v: T, ) -> Self
Sets the value of target_vm_defaults.
Note that all the setters affecting target_vm_defaults are mutually
exclusive.
§Example
use google_cloud_vmmigration_v1::model::ComputeEngineTargetDefaults;
let x = MigratingVm::new().set_target_vm_defaults(Some(
google_cloud_vmmigration_v1::model::migrating_vm::TargetVmDefaults::ComputeEngineTargetDefaults(ComputeEngineTargetDefaults::default().into())));Sourcepub fn compute_engine_target_defaults(
&self,
) -> Option<&Box<ComputeEngineTargetDefaults>>
pub fn compute_engine_target_defaults( &self, ) -> Option<&Box<ComputeEngineTargetDefaults>>
The value of target_vm_defaults
if it holds a ComputeEngineTargetDefaults, None if the field is not set or
holds a different branch.
Sourcepub fn set_compute_engine_target_defaults<T: Into<Box<ComputeEngineTargetDefaults>>>(
self,
v: T,
) -> Self
pub fn set_compute_engine_target_defaults<T: Into<Box<ComputeEngineTargetDefaults>>>( self, v: T, ) -> Self
Sets the value of target_vm_defaults
to hold a ComputeEngineTargetDefaults.
Note that all the setters affecting target_vm_defaults are
mutually exclusive.
§Example
use google_cloud_vmmigration_v1::model::ComputeEngineTargetDefaults;
let x = MigratingVm::new().set_compute_engine_target_defaults(ComputeEngineTargetDefaults::default()/* use setters */);
assert!(x.compute_engine_target_defaults().is_some());
assert!(x.compute_engine_disks_target_defaults().is_none());Sourcepub fn compute_engine_disks_target_defaults(
&self,
) -> Option<&Box<ComputeEngineDisksTargetDefaults>>
pub fn compute_engine_disks_target_defaults( &self, ) -> Option<&Box<ComputeEngineDisksTargetDefaults>>
The value of target_vm_defaults
if it holds a ComputeEngineDisksTargetDefaults, None if the field is not set or
holds a different branch.
Sourcepub fn set_compute_engine_disks_target_defaults<T: Into<Box<ComputeEngineDisksTargetDefaults>>>(
self,
v: T,
) -> Self
pub fn set_compute_engine_disks_target_defaults<T: Into<Box<ComputeEngineDisksTargetDefaults>>>( self, v: T, ) -> Self
Sets the value of target_vm_defaults
to hold a ComputeEngineDisksTargetDefaults.
Note that all the setters affecting target_vm_defaults are
mutually exclusive.
§Example
use google_cloud_vmmigration_v1::model::ComputeEngineDisksTargetDefaults;
let x = MigratingVm::new().set_compute_engine_disks_target_defaults(ComputeEngineDisksTargetDefaults::default()/* use setters */);
assert!(x.compute_engine_disks_target_defaults().is_some());
assert!(x.compute_engine_target_defaults().is_none());Sourcepub fn set_source_vm_details<T: Into<Option<SourceVmDetails>>>(
self,
v: T,
) -> Self
pub fn set_source_vm_details<T: Into<Option<SourceVmDetails>>>( self, v: T, ) -> Self
Sets the value of source_vm_details.
Note that all the setters affecting source_vm_details are mutually
exclusive.
§Example
use google_cloud_vmmigration_v1::model::VmwareSourceVmDetails;
let x = MigratingVm::new().set_source_vm_details(Some(
google_cloud_vmmigration_v1::model::migrating_vm::SourceVmDetails::VmwareSourceVmDetails(VmwareSourceVmDetails::default().into())));Sourcepub fn vmware_source_vm_details(&self) -> Option<&Box<VmwareSourceVmDetails>>
pub fn vmware_source_vm_details(&self) -> Option<&Box<VmwareSourceVmDetails>>
The value of source_vm_details
if it holds a VmwareSourceVmDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_vmware_source_vm_details<T: Into<Box<VmwareSourceVmDetails>>>(
self,
v: T,
) -> Self
pub fn set_vmware_source_vm_details<T: Into<Box<VmwareSourceVmDetails>>>( self, v: T, ) -> Self
Sets the value of source_vm_details
to hold a VmwareSourceVmDetails.
Note that all the setters affecting source_vm_details are
mutually exclusive.
§Example
use google_cloud_vmmigration_v1::model::VmwareSourceVmDetails;
let x = MigratingVm::new().set_vmware_source_vm_details(VmwareSourceVmDetails::default()/* use setters */);
assert!(x.vmware_source_vm_details().is_some());
assert!(x.aws_source_vm_details().is_none());
assert!(x.azure_source_vm_details().is_none());Sourcepub fn aws_source_vm_details(&self) -> Option<&Box<AwsSourceVmDetails>>
pub fn aws_source_vm_details(&self) -> Option<&Box<AwsSourceVmDetails>>
The value of source_vm_details
if it holds a AwsSourceVmDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_aws_source_vm_details<T: Into<Box<AwsSourceVmDetails>>>(
self,
v: T,
) -> Self
pub fn set_aws_source_vm_details<T: Into<Box<AwsSourceVmDetails>>>( self, v: T, ) -> Self
Sets the value of source_vm_details
to hold a AwsSourceVmDetails.
Note that all the setters affecting source_vm_details are
mutually exclusive.
§Example
use google_cloud_vmmigration_v1::model::AwsSourceVmDetails;
let x = MigratingVm::new().set_aws_source_vm_details(AwsSourceVmDetails::default()/* use setters */);
assert!(x.aws_source_vm_details().is_some());
assert!(x.vmware_source_vm_details().is_none());
assert!(x.azure_source_vm_details().is_none());Sourcepub fn azure_source_vm_details(&self) -> Option<&Box<AzureSourceVmDetails>>
pub fn azure_source_vm_details(&self) -> Option<&Box<AzureSourceVmDetails>>
The value of source_vm_details
if it holds a AzureSourceVmDetails, None if the field is not set or
holds a different branch.
Sourcepub fn set_azure_source_vm_details<T: Into<Box<AzureSourceVmDetails>>>(
self,
v: T,
) -> Self
pub fn set_azure_source_vm_details<T: Into<Box<AzureSourceVmDetails>>>( self, v: T, ) -> Self
Sets the value of source_vm_details
to hold a AzureSourceVmDetails.
Note that all the setters affecting source_vm_details are
mutually exclusive.
§Example
use google_cloud_vmmigration_v1::model::AzureSourceVmDetails;
let x = MigratingVm::new().set_azure_source_vm_details(AzureSourceVmDetails::default()/* use setters */);
assert!(x.azure_source_vm_details().is_some());
assert!(x.vmware_source_vm_details().is_none());
assert!(x.aws_source_vm_details().is_none());Trait Implementations§
Source§impl Clone for MigratingVm
impl Clone for MigratingVm
Source§fn clone(&self) -> MigratingVm
fn clone(&self) -> MigratingVm
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MigratingVm
impl Debug for MigratingVm
Source§impl Default for MigratingVm
impl Default for MigratingVm
Source§fn default() -> MigratingVm
fn default() -> MigratingVm
Source§impl Message for MigratingVm
impl Message for MigratingVm
Source§impl PartialEq for MigratingVm
impl PartialEq for MigratingVm
Source§fn eq(&self, other: &MigratingVm) -> bool
fn eq(&self, other: &MigratingVm) -> bool
self and other values to be equal, and is used by ==.