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.



2415
2416
2417
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2415

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)


2408
2409
2410
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2408

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)


2413
2414
2415
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2413

def vm_count
  @vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2420
2421
2422
2423
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2420

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