Class: Google::Apis::MigrationcenterV1alpha1::ComputeEngineShapeDescriptor

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

Compute Engine target shape descriptor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ComputeEngineShapeDescriptor

Returns a new instance of ComputeEngineShapeDescriptor.



1885
1886
1887
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1885

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

Instance Attribute Details

#logical_core_countFixnum

Output only. Number of logical cores. Corresponds to the JSON property logicalCoreCount

Returns:

  • (Fixnum)


1851
1852
1853
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1851

def logical_core_count
  @logical_core_count
end

#machine_typeString

Output only. Compute Engine machine type. Corresponds to the JSON property machineType

Returns:

  • (String)


1856
1857
1858
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1856

def machine_type
  @machine_type
end

#memory_mbFixnum

Output only. Memory in mebibytes. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


1861
1862
1863
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1861

def memory_mb
  @memory_mb
end

#physical_core_countFixnum

Output only. Number of physical cores. Corresponds to the JSON property physicalCoreCount

Returns:

  • (Fixnum)


1866
1867
1868
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1866

def physical_core_count
  @physical_core_count
end

#seriesString

Output only. Compute Engine machine series. Corresponds to the JSON property series

Returns:

  • (String)


1871
1872
1873
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1871

def series
  @series
end

#smt_enabledBoolean Also known as: smt_enabled?

Output only. Whether simultaneous multithreading is enabled (see https://cloud. google.com/compute/docs/instances/set-threads-per-core). Corresponds to the JSON property smtEnabled

Returns:

  • (Boolean)


1877
1878
1879
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1877

def smt_enabled
  @smt_enabled
end

#storageArray<Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor>

Output only. Compute Engine storage. Never empty. Corresponds to the JSON property storage



1883
1884
1885
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1883

def storage
  @storage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1890
1891
1892
1893
1894
1895
1896
1897
1898
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1890

def update!(**args)
  @logical_core_count = args[:logical_core_count] if args.key?(:logical_core_count)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @physical_core_count = args[:physical_core_count] if args.key?(:physical_core_count)
  @series = args[:series] if args.key?(:series)
  @smt_enabled = args[:smt_enabled] if args.key?(:smt_enabled)
  @storage = args[:storage] if args.key?(:storage)
end