Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestInstanceFlexibilityPolicy

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

Overview

Specification of alternative, flexible instance configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceRequestInstanceFlexibilityPolicy

Returns a new instance of CapacityAdviceRequestInstanceFlexibilityPolicy.



8397
8398
8399
# File 'lib/google/apis/compute_alpha/classes.rb', line 8397

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

Instance Attribute Details

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

Named instance selections to configure properties. The key is an arbitrary, unique RFC1035 string that identifies the instance selection. Corresponds to the JSON property instanceSelections



8395
8396
8397
# File 'lib/google/apis/compute_alpha/classes.rb', line 8395

def instance_selections
  @instance_selections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8402
8403
8404
# File 'lib/google/apis/compute_alpha/classes.rb', line 8402

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