Struct google_api_proto::google::cloud::vmmigration::v1::VmwareVmDetails
source · pub struct VmwareVmDetails {
pub vm_id: String,
pub datacenter_id: String,
pub datacenter_description: String,
pub uuid: String,
pub display_name: String,
pub power_state: i32,
pub cpu_count: i32,
pub memory_mb: i32,
pub disk_count: i32,
pub committed_storage_mb: i64,
pub guest_description: String,
pub boot_option: i32,
}
Expand description
VmwareVmDetails describes a VM in vCenter.
Fields§
§vm_id: String
The VM’s id in the source (note that this is not the MigratingVm’s id). This is the moref id of the VM.
datacenter_id: String
The id of the vCenter’s datacenter this VM is contained in.
datacenter_description: String
The descriptive name of the vCenter’s datacenter this VM is contained in.
uuid: String
The unique identifier of the VM in vCenter.
display_name: String
The display name of the VM. Note that this is not necessarily unique.
power_state: i32
The power state of the VM at the moment list was taken.
cpu_count: i32
The number of cpus in the VM.
memory_mb: i32
The size of the memory of the VM in MB.
disk_count: i32
The number of disks the VM has.
committed_storage_mb: i64
The total size of the storage allocated to the VM in MB.
guest_description: String
The VM’s OS. See for example https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold.
boot_option: i32
Output only. The VM Boot Option.
Implementations§
source§impl VmwareVmDetails
impl VmwareVmDetails
sourcepub fn power_state(&self) -> PowerState
pub fn power_state(&self) -> PowerState
Returns the enum value of power_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_power_state(&mut self, value: PowerState)
pub fn set_power_state(&mut self, value: PowerState)
Sets power_state
to the provided enum value.
sourcepub fn boot_option(&self) -> BootOption
pub fn boot_option(&self) -> BootOption
Returns the enum value of boot_option
, or the default if the field is set to an invalid enum value.
sourcepub fn set_boot_option(&mut self, value: BootOption)
pub fn set_boot_option(&mut self, value: BootOption)
Sets boot_option
to the provided enum value.
Trait Implementations§
source§impl Clone for VmwareVmDetails
impl Clone for VmwareVmDetails
source§fn clone(&self) -> VmwareVmDetails
fn clone(&self) -> VmwareVmDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VmwareVmDetails
impl Debug for VmwareVmDetails
source§impl Default for VmwareVmDetails
impl Default for VmwareVmDetails
source§impl Message for VmwareVmDetails
impl Message for VmwareVmDetails
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 VmwareVmDetails
impl PartialEq for VmwareVmDetails
source§fn eq(&self, other: &VmwareVmDetails) -> bool
fn eq(&self, other: &VmwareVmDetails) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VmwareVmDetails
Auto Trait Implementations§
impl Freeze for VmwareVmDetails
impl RefUnwindSafe for VmwareVmDetails
impl Send for VmwareVmDetails
impl Sync for VmwareVmDetails
impl Unpin for VmwareVmDetails
impl UnwindSafe for VmwareVmDetails
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