Class: Google::Apis::ComputeBeta::CapacityHistoryResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityHistoryResponse

Returns a new instance of CapacityHistoryResponse.



8393
8394
8395
# File 'lib/google/apis/compute_beta/classes.rb', line 8393

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

Instance Attribute Details

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


8376
8377
8378
# File 'lib/google/apis/compute_beta/classes.rb', line 8376

def location
  @location
end

#machine_typeString

Corresponds to the JSON property machineType

Returns:

  • (String)


8381
8382
8383
# File 'lib/google/apis/compute_beta/classes.rb', line 8381

def machine_type
  @machine_type
end

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

Corresponds to the JSON property preemptionHistory



8386
8387
8388
# File 'lib/google/apis/compute_beta/classes.rb', line 8386

def preemption_history
  @preemption_history
end

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

Corresponds to the JSON property priceHistory



8391
8392
8393
# File 'lib/google/apis/compute_beta/classes.rb', line 8391

def price_history
  @price_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8398
8399
8400
8401
8402
8403
# File 'lib/google/apis/compute_beta/classes.rb', line 8398

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