Class: Google::Apis::MigrationcenterV1alpha1::ComputeEngineShapeDescriptor
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::ComputeEngineShapeDescriptor
- 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
-
#logical_core_count ⇒ Fixnum
Output only.
-
#machine_type ⇒ String
Output only.
-
#memory_mb ⇒ Fixnum
Output only.
-
#physical_core_count ⇒ Fixnum
Output only.
-
#series ⇒ String
Output only.
-
#smt_enabled ⇒ Boolean
(also: #smt_enabled?)
Output only.
-
#storage ⇒ Array<Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComputeEngineShapeDescriptor
constructor
A new instance of ComputeEngineShapeDescriptor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComputeEngineShapeDescriptor
Returns a new instance of ComputeEngineShapeDescriptor.
2285 2286 2287 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#logical_core_count ⇒ Fixnum
Output only. Number of logical cores.
Corresponds to the JSON property logicalCoreCount
2251 2252 2253 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2251 def logical_core_count @logical_core_count end |
#machine_type ⇒ String
Output only. Compute Engine machine type.
Corresponds to the JSON property machineType
2256 2257 2258 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2256 def machine_type @machine_type end |
#memory_mb ⇒ Fixnum
Output only. Memory in mebibytes.
Corresponds to the JSON property memoryMb
2261 2262 2263 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2261 def memory_mb @memory_mb end |
#physical_core_count ⇒ Fixnum
Output only. Number of physical cores.
Corresponds to the JSON property physicalCoreCount
2266 2267 2268 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2266 def physical_core_count @physical_core_count end |
#series ⇒ String
Output only. Compute Engine machine series.
Corresponds to the JSON property series
2271 2272 2273 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2271 def series @series end |
#smt_enabled ⇒ Boolean 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
2277 2278 2279 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2277 def smt_enabled @smt_enabled end |
#storage ⇒ Array<Google::Apis::MigrationcenterV1alpha1::ComputeStorageDescriptor>
Output only. Compute Engine storage. Never empty.
Corresponds to the JSON property storage
2283 2284 2285 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2283 def storage @storage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2290 2291 2292 2293 2294 2295 2296 2297 2298 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2290 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 |