Class: Google::Apis::ComputeBeta::InstanceGroupManagerInstanceFlexibilityPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerInstanceFlexibilityPolicy

Returns a new instance of InstanceGroupManagerInstanceFlexibilityPolicy.



16482
16483
16484
# File 'lib/google/apis/compute_beta/classes.rb', line 16482

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

Instance Attribute Details

#instance_selection_listsHash<String,Google::Apis::ComputeBeta::InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>

Named instance selections configuring properties that the group will use when creating new VMs. Corresponds to the JSON property instanceSelectionLists



16468
16469
16470
# File 'lib/google/apis/compute_beta/classes.rb', line 16468

def instance_selection_lists
  @instance_selection_lists
end

#instance_selectionsHash<String,Google::Apis::ComputeBeta::InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection>

Named instance selections configuring properties that the group will use when creating new VMs. Corresponds to the JSON property instanceSelections



16474
16475
16476
# File 'lib/google/apis/compute_beta/classes.rb', line 16474

def instance_selections
  @instance_selections
end

#provisioning_model_mixGoogle::Apis::ComputeBeta::InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix

Provisioning model configuration used by this managed instance group to create instances. Corresponds to the JSON property provisioningModelMix



16480
16481
16482
# File 'lib/google/apis/compute_beta/classes.rb', line 16480

def provisioning_model_mix
  @provisioning_model_mix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16487
16488
16489
16490
16491
# File 'lib/google/apis/compute_beta/classes.rb', line 16487

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