Class: Google::Apis::DataprocV1::InstanceFlexibilityPolicy

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

Instance flexibility Policy allowing a mixture of VM shapes and provisioning models.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceFlexibilityPolicy

Returns a new instance of InstanceFlexibilityPolicy.



3577
3578
3579
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3577

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

Instance Attribute Details

#instance_selection_listArray<Google::Apis::DataprocV1::InstanceSelection>

Optional. List of instance selection options that the group will use when creating new VMs. Corresponds to the JSON property instanceSelectionList



3565
3566
3567
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3565

def instance_selection_list
  @instance_selection_list
end

#instance_selection_resultsArray<Google::Apis::DataprocV1::InstanceSelectionResult>

Output only. A list of instance selection results in the group. Corresponds to the JSON property instanceSelectionResults



3570
3571
3572
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3570

def instance_selection_results
  @instance_selection_results
end

#provisioning_model_mixGoogle::Apis::DataprocV1::ProvisioningModelMix

Defines how Dataproc should create VMs with a mixture of provisioning models. Corresponds to the JSON property provisioningModelMix



3575
3576
3577
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3575

def provisioning_model_mix
  @provisioning_model_mix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3582
3583
3584
3585
3586
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3582

def update!(**args)
  @instance_selection_list = args[:instance_selection_list] if args.key?(:instance_selection_list)
  @instance_selection_results = args[:instance_selection_results] if args.key?(:instance_selection_results)
  @provisioning_model_mix = args[:provisioning_model_mix] if args.key?(:provisioning_model_mix)
end