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.



806
807
808
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 806

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

Instance Attribute Details

#logical_core_countFixnum

Number of logical cores. Corresponds to the JSON property logicalCoreCount

Returns:

  • (Fixnum)


784
785
786
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 784

def logical_core_count
  @logical_core_count
end

#machine_typeString

Compute Engine machine type. Corresponds to the JSON property machineType

Returns:

  • (String)


789
790
791
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 789

def machine_type
  @machine_type
end

#memory_mbFixnum

Memory in mebibytes. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


794
795
796
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 794

def memory_mb
  @memory_mb
end

#physical_core_countFixnum

Number of physical cores. Corresponds to the JSON property physicalCoreCount

Returns:

  • (Fixnum)


799
800
801
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 799

def physical_core_count
  @physical_core_count
end

#seriesString

Compute Engine machine series. Corresponds to the JSON property series

Returns:

  • (String)


804
805
806
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 804

def series
  @series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



811
812
813
814
815
816
817
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 811

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)
end