pub struct VslmCloneSpec {
pub vslm_migrate_spec_: VslmMigrateSpec,
pub name: String,
pub keep_after_delete_vm: Option<bool>,
pub metadata: Option<Vec<KeyValue>>,
}Expand description
Specification of cloning a virtual storage object.
§How to access
HostVStorageObjectManager::host_clone_v_storage_object_task(spec)VcenterVStorageObjectManager::clone_v_storage_object_task(spec)VslmVStorageObjectManager::vslm_clone_v_storage_object_task(spec)
Fields§
§vslm_migrate_spec_: VslmMigrateSpec§name: StringDescriptive name of the cloned virtual storage object.
keep_after_delete_vm: Option<bool>Choice of the deletion behavior of this virtual storage object.
If not set, the default value is false.
metadata: Option<Vec<KeyValue>>The metadata KV pairs that are supposed to be updated on the destination virtual storage object.
The clone task is atomic by design. That being said, failing to update the specified metadata pairs leads to the failure of the clone task. If unset, no metadata will be updated. An empty string value is indicative of a vcenter tag.
Trait Implementations§
Source§impl Debug for VslmCloneSpec
impl Debug for VslmCloneSpec
Source§impl Deref for VslmCloneSpec
impl Deref for VslmCloneSpec
Source§impl DerefMut for VslmCloneSpec
impl DerefMut for VslmCloneSpec
Source§impl Deserialize for VslmCloneSpec
impl Deserialize for VslmCloneSpec
Source§impl VimObjectTrait for VslmCloneSpec
impl VimObjectTrait for VslmCloneSpec
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
Source§impl VslmMigrateSpecTrait for VslmCloneSpec
impl VslmMigrateSpecTrait for VslmCloneSpec
Source§fn get_vslm_migrate_spec(&self) -> &VslmMigrateSpec
fn get_vslm_migrate_spec(&self) -> &VslmMigrateSpec
Get a reference to the VslmMigrateSpec parent struct
Source§fn get_vslm_migrate_spec_mut(&mut self) -> &mut VslmMigrateSpec
fn get_vslm_migrate_spec_mut(&mut self) -> &mut VslmMigrateSpec
Get a mutable reference to the VslmMigrateSpec parent struct
impl DataObjectTrait for VslmCloneSpec
Auto Trait Implementations§
impl Freeze for VslmCloneSpec
impl !RefUnwindSafe for VslmCloneSpec
impl Send for VslmCloneSpec
impl Sync for VslmCloneSpec
impl Unpin for VslmCloneSpec
impl UnsafeUnpin for VslmCloneSpec
impl !UnwindSafe for VslmCloneSpec
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
Mutably borrows from an owned value. Read more