Class: Google::Apis::VmmigrationV1::VmwareVmDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

VmwareVmDetails describes a VM in vCenter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareVmDetails

Returns a new instance of VmwareVmDetails.



2011
2012
2013
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2011

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#boot_optionString

Output only. The VM Boot Option. Corresponds to the JSON property bootOption

Returns:

  • (String)


1951
1952
1953
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1951

def boot_option
  @boot_option
end

#committed_storage_mbFixnum

The total size of the storage allocated to the VM in MB. Corresponds to the JSON property committedStorageMb

Returns:

  • (Fixnum)


1956
1957
1958
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1956

def committed_storage_mb
  @committed_storage_mb
end

#cpu_countFixnum

The number of cpus in the VM. Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


1961
1962
1963
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1961

def cpu_count
  @cpu_count
end

#datacenter_descriptionString

The descriptive name of the vCenter's datacenter this VM is contained in. Corresponds to the JSON property datacenterDescription

Returns:

  • (String)


1966
1967
1968
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1966

def datacenter_description
  @datacenter_description
end

#datacenter_idString

The id of the vCenter's datacenter this VM is contained in. Corresponds to the JSON property datacenterId

Returns:

  • (String)


1971
1972
1973
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1971

def datacenter_id
  @datacenter_id
end

#disk_countFixnum

The number of disks the VM has. Corresponds to the JSON property diskCount

Returns:

  • (Fixnum)


1976
1977
1978
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1976

def disk_count
  @disk_count
end

#display_nameString

The display name of the VM. Note that this is not necessarily unique. Corresponds to the JSON property displayName

Returns:

  • (String)


1981
1982
1983
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1981

def display_name
  @display_name
end

#guest_descriptionString

The VM's OS. See for example https://pubs.vmware.com/vi-sdk/visdk250/ ReferenceGuide/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html for types of strings this might hold. Corresponds to the JSON property guestDescription

Returns:

  • (String)


1988
1989
1990
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1988

def guest_description
  @guest_description
end

#memory_mbFixnum

The size of the memory of the VM in MB. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


1993
1994
1995
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1993

def memory_mb
  @memory_mb
end

#power_stateString

The power state of the VM at the moment list was taken. Corresponds to the JSON property powerState

Returns:

  • (String)


1998
1999
2000
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 1998

def power_state
  @power_state
end

#uuidString

The unique identifier of the VM in vCenter. Corresponds to the JSON property uuid

Returns:

  • (String)


2003
2004
2005
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2003

def uuid
  @uuid
end

#vm_idString

The VM's id in the source (note that this is not the MigratingVm's id). This is the moref id of the VM. Corresponds to the JSON property vmId

Returns:

  • (String)


2009
2010
2011
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2009

def vm_id
  @vm_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2016

def update!(**args)
  @boot_option = args[:boot_option] if args.key?(:boot_option)
  @committed_storage_mb = args[:committed_storage_mb] if args.key?(:committed_storage_mb)
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
  @datacenter_description = args[:datacenter_description] if args.key?(:datacenter_description)
  @datacenter_id = args[:datacenter_id] if args.key?(:datacenter_id)
  @disk_count = args[:disk_count] if args.key?(:disk_count)
  @display_name = args[:display_name] if args.key?(:display_name)
  @guest_description = args[:guest_description] if args.key?(:guest_description)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @power_state = args[:power_state] if args.key?(:power_state)
  @uuid = args[:uuid] if args.key?(:uuid)
  @vm_id = args[:vm_id] if args.key?(:vm_id)
end