Class: Google::Apis::ComputeAlpha::CapacityHistoryResponse

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

Contains the capacity history.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityHistoryResponse

Returns a new instance of CapacityHistoryResponse.



8770
8771
8772
# File 'lib/google/apis/compute_alpha/classes.rb', line 8770

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

Instance Attribute Details

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


8753
8754
8755
# File 'lib/google/apis/compute_alpha/classes.rb', line 8753

def location
  @location
end

#machine_typeString

Corresponds to the JSON property machineType

Returns:

  • (String)


8758
8759
8760
# File 'lib/google/apis/compute_alpha/classes.rb', line 8758

def machine_type
  @machine_type
end

#preemption_historyArray<Google::Apis::ComputeAlpha::CapacityHistoryResponsePreemptionRecord>

Corresponds to the JSON property preemptionHistory



8763
8764
8765
# File 'lib/google/apis/compute_alpha/classes.rb', line 8763

def preemption_history
  @preemption_history
end

#price_historyArray<Google::Apis::ComputeAlpha::CapacityHistoryResponsePriceRecord>

Corresponds to the JSON property priceHistory



8768
8769
8770
# File 'lib/google/apis/compute_alpha/classes.rb', line 8768

def price_history
  @price_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8775
8776
8777
8778
8779
8780
# File 'lib/google/apis/compute_alpha/classes.rb', line 8775

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