Class: Google::Apis::ComputeBeta::CapacityHistoryResponse
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::CapacityHistoryResponse
- 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
Overview
Contains the capacity history.
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::ComputeBeta::CapacityHistoryResponsePreemptionRecord>
Corresponds to the JSON property
preemptionHistory. -
#price_history ⇒ Array<Google::Apis::ComputeBeta::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.
8362 8363 8364 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location ⇒ String
Corresponds to the JSON property location
8345 8346 8347 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8345 def location @location end |
#machine_type ⇒ String
Corresponds to the JSON property machineType
8350 8351 8352 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8350 def machine_type @machine_type end |
#preemption_history ⇒ Array<Google::Apis::ComputeBeta::CapacityHistoryResponsePreemptionRecord>
Corresponds to the JSON property preemptionHistory
8355 8356 8357 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8355 def preemption_history @preemption_history end |
#price_history ⇒ Array<Google::Apis::ComputeBeta::CapacityHistoryResponsePriceRecord>
Corresponds to the JSON property priceHistory
8360 8361 8362 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8360 def price_history @price_history end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8367 8368 8369 8370 8371 8372 |
# File 'lib/google/apis/compute_beta/classes.rb', line 8367 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 |