Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachineArchitectureDetails

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 the VM architecture.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachineArchitectureDetails

Returns a new instance of VirtualMachineArchitectureDetails.



8956
8957
8958
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8956

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

Instance Attribute Details

#biosGoogle::Apis::MigrationcenterV1alpha1::BiosDetails

Details about the BIOS. Corresponds to the JSON property bios



8913
8914
8915
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8913

def bios
  @bios
end

#cpu_architectureString

CPU architecture, e.g., "x64-based PC", "x86_64", "i686" etc. Corresponds to the JSON property cpuArchitecture

Returns:

  • (String)


8918
8919
8920
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8918

def cpu_architecture
  @cpu_architecture
end

#cpu_manufacturerString

CPU manufacturer, e.g., "Intel", "AMD". Corresponds to the JSON property cpuManufacturer

Returns:

  • (String)


8923
8924
8925
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8923

def cpu_manufacturer
  @cpu_manufacturer
end

#cpu_nameString

CPU name, e.g., "Intel Xeon E5-2690", "AMD EPYC 7571" etc. Corresponds to the JSON property cpuName

Returns:

  • (String)


8928
8929
8930
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8928

def cpu_name
  @cpu_name
end

#cpu_socket_countFixnum

Number of processor sockets allocated to the machine. Corresponds to the JSON property cpuSocketCount

Returns:

  • (Fixnum)


8933
8934
8935
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8933

def cpu_socket_count
  @cpu_socket_count
end

#cpu_thread_countFixnum

Deprecated: use VirtualMachineDetails.core_count instead. Number of CPU threads allocated to the machine. Corresponds to the JSON property cpuThreadCount

Returns:

  • (Fixnum)


8939
8940
8941
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8939

def cpu_thread_count
  @cpu_thread_count
end

#firmwareString

Firmware (BIOS/efi). Corresponds to the JSON property firmware

Returns:

  • (String)


8944
8945
8946
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8944

def firmware
  @firmware
end

#hyperthreadingString

CPU hyperthreading support. Corresponds to the JSON property hyperthreading

Returns:

  • (String)


8949
8950
8951
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8949

def hyperthreading
  @hyperthreading
end

#vendorString

Hardware vendor. Corresponds to the JSON property vendor

Returns:

  • (String)


8954
8955
8956
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8954

def vendor
  @vendor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8961

def update!(**args)
  @bios = args[:bios] if args.key?(:bios)
  @cpu_architecture = args[:cpu_architecture] if args.key?(:cpu_architecture)
  @cpu_manufacturer = args[:cpu_manufacturer] if args.key?(:cpu_manufacturer)
  @cpu_name = args[:cpu_name] if args.key?(:cpu_name)
  @cpu_socket_count = args[:cpu_socket_count] if args.key?(:cpu_socket_count)
  @cpu_thread_count = args[:cpu_thread_count] if args.key?(:cpu_thread_count)
  @firmware = args[:firmware] if args.key?(:firmware)
  @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
  @vendor = args[:vendor] if args.key?(:vendor)
end