Class: Google::Apis::ComputeAlpha::CapacityHistoryResponse
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityHistoryResponse
- 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
Contains the capacity history for Spot VMs.
Instance Attribute Summary collapse
-
#location ⇒ String
Corresponds to the JSON property
location. -
#machine_type ⇒ String
Corresponds to the JSON property
machineType. -
#preemption_history ⇒ Array<Google::Apis::ComputeAlpha::CapacityHistoryResponsePreemptionRecord>
Corresponds to the JSON property
preemptionHistory. -
#price_history ⇒ Array<Google::Apis::ComputeAlpha::CapacityHistoryResponsePriceRecord>
Corresponds to the JSON property
priceHistory.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityHistoryResponse
constructor
A new instance of CapacityHistoryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityHistoryResponse
Returns a new instance of CapacityHistoryResponse.
8761 8762 8763 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
Corresponds to the JSON property location
8744 8745 8746 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8744 def location @location end |
#machine_type ⇒ String
Corresponds to the JSON property machineType
8749 8750 8751 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8749 def machine_type @machine_type end |
#preemption_history ⇒ Array<Google::Apis::ComputeAlpha::CapacityHistoryResponsePreemptionRecord>
Corresponds to the JSON property preemptionHistory
8754 8755 8756 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8754 def preemption_history @preemption_history end |
#price_history ⇒ Array<Google::Apis::ComputeAlpha::CapacityHistoryResponsePriceRecord>
Corresponds to the JSON property priceHistory
8759 8760 8761 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8759 def price_history @price_history end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8766 8767 8768 8769 8770 8771 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8766 def update!(**args) @location = args[:location] if args.key?(:location) @machine_type = args[:machine_type] if args.key?(:machine_type) @preemption_history = args[:preemption_history] if args.key?(:preemption_history) @price_history = args[:price_history] if args.key?(:price_history) end |