Class: Google::Apis::ComputeAlpha::ReservationConsumedInstance

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

ReservationConsumedInstance represents a consumed instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#instanceString

The full URI of the instance resource. Corresponds to the JSON property instance

Returns:

  • (String)


60395
60396
60397
# File 'lib/google/apis/compute_alpha/classes.rb', line 60395

def instance
  @instance
end

#serviceString

The service to which the instance belongs. Typically "COMPUTE". Corresponds to the JSON property service

Returns:

  • (String)


60400
60401
60402
# File 'lib/google/apis/compute_alpha/classes.rb', line 60400

def service
  @service
end

#statusGoogle::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