Google Cloud Vm Migration V1 Client - Class VmwareVmDetails (0.4.2)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class VmwareVmDetails.

VmwareVmDetails describes a VM in vCenter.

Generated from protobuf message google.cloud.vmmigration.v1.VmwareVmDetails

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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 int

The power state of the VM at the moment list was taken.

↳ cpu_count int

The number of cpus in the VM.

↳ memory_mb int

The size of the memory of the VM in MB.

↳ disk_count int

The number of disks the VM has.

↳ committed_storage_mb int|string

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 int

Output only. The VM Boot Option.

getVmId

The VM's id in the source (note that this is not the MigratingVm's id).

This is the moref id of the VM.

Returns
TypeDescription
string

setVmId

The VM's id in the source (note that this is not the MigratingVm's id).

This is the moref id of the VM.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatacenterId

The id of the vCenter's datacenter this VM is contained in.

Returns
TypeDescription
string

setDatacenterId

The id of the vCenter's datacenter this VM is contained in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatacenterDescription

The descriptive name of the vCenter's datacenter this VM is contained in.

Returns
TypeDescription
string

setDatacenterDescription

The descriptive name of the vCenter's datacenter this VM is contained in.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUuid

The unique identifier of the VM in vCenter.

Returns
TypeDescription
string

setUuid

The unique identifier of the VM in vCenter.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

The display name of the VM. Note that this is not necessarily unique.

Returns
TypeDescription
string

setDisplayName

The display name of the VM. Note that this is not necessarily unique.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPowerState

The power state of the VM at the moment list was taken.

Returns
TypeDescription
int

setPowerState

The power state of the VM at the moment list was taken.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCpuCount

The number of cpus in the VM.

Returns
TypeDescription
int

setCpuCount

The number of cpus in the VM.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemoryMb

The size of the memory of the VM in MB.

Returns
TypeDescription
int

setMemoryMb

The size of the memory of the VM in MB.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDiskCount

The number of disks the VM has.

Returns
TypeDescription
int

setDiskCount

The number of disks the VM has.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCommittedStorageMb

The total size of the storage allocated to the VM in MB.

Returns
TypeDescription
int|string

setCommittedStorageMb

The total size of the storage allocated to the VM in MB.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getGuestDescription

Returns
TypeDescription
string

setGuestDescription

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBootOption

Output only. The VM Boot Option.

Returns
TypeDescription
int

setBootOption

Output only. The VM Boot Option.

Parameter
NameDescription
var int
Returns
TypeDescription
$this