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.



60959
60960
60961
# File 'lib/google/apis/compute_alpha/classes.rb', line 60959

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)


60947
60948
60949
# File 'lib/google/apis/compute_alpha/classes.rb', line 60947

def instance
  @instance
end

#serviceString

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

Returns:

  • (String)


60952
60953
60954
# File 'lib/google/apis/compute_alpha/classes.rb', line 60952

def service
  @service
end

#statusGoogle::Apis::ComputeAlpha::ReservationConsumedInstanceStatus

Status information for the instance's consumption of the reservation. Corresponds to the JSON property status



60957
60958
60959
# File 'lib/google/apis/compute_alpha/classes.rb', line 60957

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



60964
60965
60966
60967
60968
# File 'lib/google/apis/compute_alpha/classes.rb', line 60964

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