Struct openstack_sdk::api::compute::v2::server::os_migrate_live_20::OsMigrateLiveBuilder
source · pub struct OsMigrateLiveBuilder<'a> { /* private fields */ }Expand description
Builder for OsMigrateLive.
Implementations§
source§impl<'a> OsMigrateLiveBuilder<'a>
impl<'a> OsMigrateLiveBuilder<'a>
sourcepub fn block_migration(&mut self, value: bool) -> &mut Self
pub fn block_migration(&mut self, value: bool) -> &mut Self
Set to True to enable over commit when the destination host is
checked for available disk space. Set to False to disable over
commit. This setting affects only the libvirt virt driver.
Available until version 2.25
sourcepub fn disk_over_commit(&mut self, value: bool) -> &mut Self
pub fn disk_over_commit(&mut self, value: bool) -> &mut Self
Set to True to enable over commit when the destination host is
checked for available disk space. Set to False to disable over
commit. This setting affects only the libvirt virt driver.
Available until version 2.25
sourcepub fn host<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn host<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The host to which to migrate the server. If this parameter is None,
the scheduler chooses a host.
Warning
Prior to microversion 2.30, specifying a host will bypass validation by
the scheduler, which could result in failures to actually migrate the
instance to the specified host, or over-subscription of the host. It is
recommended to either not specify a host so that the scheduler will
pick one, or specify a host with microversion >= 2.30 and without
force=True set.
sourcepub fn build(&self) -> Result<OsMigrateLive<'a>, OsMigrateLiveBuilderError>
pub fn build(&self) -> Result<OsMigrateLive<'a>, OsMigrateLiveBuilderError>
Trait Implementations§
source§impl<'a> Clone for OsMigrateLiveBuilder<'a>
impl<'a> Clone for OsMigrateLiveBuilder<'a>
source§fn clone(&self) -> OsMigrateLiveBuilder<'a>
fn clone(&self) -> OsMigrateLiveBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more