Class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerInstanceFlexibilityPolicy

Returns a new instance of InstanceGroupManagerInstanceFlexibilityPolicy.



19066
19067
19068
# File 'lib/google/apis/compute_alpha/classes.rb', line 19066

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

Instance Attribute Details

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

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



19052
19053
19054
# File 'lib/google/apis/compute_alpha/classes.rb', line 19052

def instance_selection_lists
  @instance_selection_lists
end

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

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



19058
19059
19060
# File 'lib/google/apis/compute_alpha/classes.rb', line 19058

def instance_selections
  @instance_selections
end

#provisioning_model_mixGoogle::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix

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



19064
19065
19066
# File 'lib/google/apis/compute_alpha/classes.rb', line 19064

def provisioning_model_mix
  @provisioning_model_mix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19071
19072
19073
19074
19075
# File 'lib/google/apis/compute_alpha/classes.rb', line 19071

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