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.



3850
3851
3852
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3850

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)


3843
3844
3845
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3843

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)


3848
3849
3850
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3848

def vm_count
  @vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3855
3856
3857
3858
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3855

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