Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails

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

Overview

Details of a VirtualMachine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachineDetails

Returns a new instance of VirtualMachineDetails.



2839
2840
2841
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2839

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

Instance Attribute Details

#core_countFixnum

Number of CPU cores in the VirtualMachine. Must be non-negative. Corresponds to the JSON property coreCount

Returns:

  • (Fixnum)


2767
2768
2769
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2767

def core_count
  @core_count
end

#guest_osGoogle::Apis::MigrationcenterV1alpha1::GuestOsDetails

Information from Guest-level collections. Corresponds to the JSON property guestOs



2772
2773
2774
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2772

def guest_os
  @guest_os
end

#memory_mbFixnum

The amount of memory in the VirtualMachine. Must be non-negative. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


2777
2778
2779
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2777

def memory_mb
  @memory_mb
end

#os_familyString

What family the OS belong to, if known. Corresponds to the JSON property osFamily

Returns:

  • (String)


2782
2783
2784
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2782

def os_family
  @os_family
end

#os_nameString

The name of the operating system running on the VirtualMachine. Corresponds to the JSON property osName

Returns:

  • (String)


2787
2788
2789
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2787

def os_name
  @os_name
end

#platformGoogle::Apis::MigrationcenterV1alpha1::PlatformDetails

Information about the platform. Corresponds to the JSON property platform



2792
2793
2794
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2792

def platform
  @platform
end

#power_stateString

Power state of VM (poweredOn or poweredOff). Corresponds to the JSON property powerState

Returns:

  • (String)


2797
2798
2799
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2797

def power_state
  @power_state
end

#vcenter_folderString

Folder name in vCenter where asset resides. Corresponds to the JSON property vcenterFolder

Returns:

  • (String)


2802
2803
2804
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2802

def vcenter_folder
  @vcenter_folder
end

#vcenter_urlString

vCenter URL used in collection. Corresponds to the JSON property vcenterUrl

Returns:

  • (String)


2807
2808
2809
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2807

def vcenter_url
  @vcenter_url
end

#vcenter_vm_idString

vCenter VM ID. Corresponds to the JSON property vcenterVmId

Returns:

  • (String)


2812
2813
2814
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2812

def vcenter_vm_id
  @vcenter_vm_id
end

#vm_architectureGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineArchitectureDetails

Details of the VM architecture. Corresponds to the JSON property vmArchitecture



2817
2818
2819
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2817

def vm_architecture
  @vm_architecture
end

#vm_disksGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineDiskDetails

Details of VM disks. Corresponds to the JSON property vmDisks



2822
2823
2824
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2822

def vm_disks
  @vm_disks
end

#vm_nameString

Virtual Machine display name. Corresponds to the JSON property vmName

Returns:

  • (String)


2827
2828
2829
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2827

def vm_name
  @vm_name
end

#vm_networkGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineNetworkDetails

Details of network adapters and settings Corresponds to the JSON property vmNetwork



2832
2833
2834
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2832

def vm_network
  @vm_network
end

#vm_uuidString

Virtual Machine uniqe identifier. Corresponds to the JSON property vmUuid

Returns:

  • (String)


2837
2838
2839
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2837

def vm_uuid
  @vm_uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2844

def update!(**args)
  @core_count = args[:core_count] if args.key?(:core_count)
  @guest_os = args[:guest_os] if args.key?(:guest_os)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @os_family = args[:os_family] if args.key?(:os_family)
  @os_name = args[:os_name] if args.key?(:os_name)
  @platform = args[:platform] if args.key?(:platform)
  @power_state = args[:power_state] if args.key?(:power_state)
  @vcenter_folder = args[:vcenter_folder] if args.key?(:vcenter_folder)
  @vcenter_url = args[:vcenter_url] if args.key?(:vcenter_url)
  @vcenter_vm_id = args[:vcenter_vm_id] if args.key?(:vcenter_vm_id)
  @vm_architecture = args[:vm_architecture] if args.key?(:vm_architecture)
  @vm_disks = args[:vm_disks] if args.key?(:vm_disks)
  @vm_name = args[:vm_name] if args.key?(:vm_name)
  @vm_network = args[:vm_network] if args.key?(:vm_network)
  @vm_uuid = args[:vm_uuid] if args.key?(:vm_uuid)
end