Class: Google::Apis::DataprocV1::InstanceSelectionResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

Defines a mapping from machine types to the number of VMs that are created with each machine type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceSelectionResult

Returns a new instance of InstanceSelectionResult.



2635
2636
2637
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2635

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

Instance Attribute Details

#machine_typeString

Output only. Full machine-type names, e.g. "n1-standard-16". Corresponds to the JSON property machineType

Returns:

  • (String)


2628
2629
2630
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2628

def machine_type
  @machine_type
end

#vm_countFixnum

Output only. Number of VM provisioned with the machine_type. Corresponds to the JSON property vmCount

Returns:

  • (Fixnum)


2633
2634
2635
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2633

def vm_count
  @vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2640
2641
2642
2643
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2640

def update!(**args)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @vm_count = args[:vm_count] if args.key?(:vm_count)
end