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.



1280
1281
1282
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1280

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)


1253
1254
1255
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1253

def logical_core_count
  @logical_core_count
end

#machine_typeString

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

Returns:

  • (String)


1258
1259
1260
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1258

def machine_type
  @machine_type
end

#memory_mbFixnum

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

Returns:

  • (Fixnum)


1263
1264
1265
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1263

def memory_mb
  @memory_mb
end

#physical_core_countFixnum

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

Returns:

  • (Fixnum)


1268
1269
1270
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1268

def physical_core_count
  @physical_core_count
end

#seriesString

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

Returns:

  • (String)


1273
1274
1275
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1273

def series
  @series
end

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

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



1278
1279
1280
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1278

def storage
  @storage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
1289
1290
1291
1292
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1285

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)
  @storage = args[:storage] if args.key?(:storage)
end