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.



2363
2364
2365
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2363

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



2356
2357
2358
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2356

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



2361
2362
2363
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2361

def instance_selection_results
  @instance_selection_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2368
2369
2370
2371
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2368

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)
end