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.



8379
8380
8381
# File 'lib/google/apis/compute_beta/classes.rb', line 8379

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

Instance Attribute Details

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


8362
8363
8364
# File 'lib/google/apis/compute_beta/classes.rb', line 8362

def location
  @location
end

#machine_typeString

Corresponds to the JSON property machineType

Returns:

  • (String)


8367
8368
8369
# File 'lib/google/apis/compute_beta/classes.rb', line 8367

def machine_type
  @machine_type
end

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

Corresponds to the JSON property preemptionHistory



8372
8373
8374
# File 'lib/google/apis/compute_beta/classes.rb', line 8372

def preemption_history
  @preemption_history
end

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

Corresponds to the JSON property priceHistory



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

def price_history
  @price_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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