Class: Google::Apis::DataprocV1::InstanceSelectionResult
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::InstanceSelectionResult
- 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
-
#machine_type ⇒ String
Output only.
-
#vm_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceSelectionResult
constructor
A new instance of InstanceSelectionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_type ⇒ String
Output only. Full machine-type names, e.g. "n1-standard-16".
Corresponds to the JSON property machineType
2628 2629 2630 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2628 def machine_type @machine_type end |
#vm_count ⇒ Fixnum
Output only. Number of VM provisioned with the machine_type.
Corresponds to the JSON property vmCount
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 |