Class: Google::Apis::ComputeAlpha::CapacityHistoryRequest
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityHistoryRequest
- 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
A request to get the capacity history for Spot VMs.
Instance Attribute Summary collapse
-
#instance_properties ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestInstanceProperties
Corresponds to the JSON property
instanceProperties. -
#location_policy ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestLocationPolicy
Corresponds to the JSON property
locationPolicy. -
#types ⇒ Array<String>
Corresponds to the JSON property
types.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityHistoryRequest
constructor
A new instance of CapacityHistoryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityHistoryRequest
Returns a new instance of CapacityHistoryRequest.
8651 8652 8653 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_properties ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestInstanceProperties
Corresponds to the JSON property instanceProperties
8639 8640 8641 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8639 def instance_properties @instance_properties end |
#location_policy ⇒ Google::Apis::ComputeAlpha::CapacityHistoryRequestLocationPolicy
Corresponds to the JSON property locationPolicy
8644 8645 8646 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8644 def location_policy @location_policy end |
#types ⇒ Array<String>
Corresponds to the JSON property types
8649 8650 8651 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8649 def types @types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8656 8657 8658 8659 8660 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8656 def update!(**args) @instance_properties = args[:instance_properties] if args.key?(:instance_properties) @location_policy = args[:location_policy] if args.key?(:location_policy) @types = args[:types] if args.key?(:types) end |