Class: Google::Apis::ComputeAlpha::ReservationConsumedInstance
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ReservationConsumedInstance
- 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
ReservationConsumedInstance represents a consumed instance.
Instance Attribute Summary collapse
-
#instance ⇒ String
The full URI of the instance resource.
-
#service ⇒ String
The service to which the instance belongs.
-
#status ⇒ Google::Apis::ComputeAlpha::ReservationConsumedInstanceStatus
Status information for the instance's consumption of the reservation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReservationConsumedInstance
constructor
A new instance of ReservationConsumedInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReservationConsumedInstance
Returns a new instance of ReservationConsumedInstance.
60407 60408 60409 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 60407 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance ⇒ String
The full URI of the instance resource.
Corresponds to the JSON property instance
60395 60396 60397 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 60395 def instance @instance end |
#service ⇒ String
The service to which the instance belongs. Typically "COMPUTE".
Corresponds to the JSON property service
60400 60401 60402 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 60400 def service @service end |
#status ⇒ Google::Apis::ComputeAlpha::ReservationConsumedInstanceStatus
Status information for the instance's consumption of the reservation.
Corresponds to the JSON property status
60405 60406 60407 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 60405 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
60412 60413 60414 60415 60416 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 60412 def update!(**args) @instance = args[:instance] if args.key?(:instance) @service = args[:service] if args.key?(:service) @status = args[:status] if args.key?(:status) end |