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.



3993
3994
3995
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3993

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)


3986
3987
3988
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3986

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)


3991
3992
3993
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3991

def vm_count
  @vm_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3998
3999
4000
4001
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3998

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