Class: Google::Apis::ComputeAlpha::ResourceStatusReservationConsumptionInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceStatusReservationConsumptionInfo

Returns a new instance of ResourceStatusReservationConsumptionInfo.



53016
53017
53018
# File 'lib/google/apis/compute_alpha/classes.rb', line 53016

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

Instance Attribute Details

#consumed_reservationString

The full resource name of the reservation that this instance is consuming from. Corresponds to the JSON property consumedReservation

Returns:

  • (String)


53002
53003
53004
# File 'lib/google/apis/compute_alpha/classes.rb', line 53002

def consumed_reservation
  @consumed_reservation
end

#consumed_reservation_blockString

The full resource name of the reservation block that this instance is consuming from. Corresponds to the JSON property consumedReservationBlock

Returns:

  • (String)


53008
53009
53010
# File 'lib/google/apis/compute_alpha/classes.rb', line 53008

def consumed_reservation_block
  @consumed_reservation_block
end

#consumed_reservation_sub_blockString

The full resource name of the reservation sub-block that this instance is consuming from. Corresponds to the JSON property consumedReservationSubBlock

Returns:

  • (String)


53014
53015
53016
# File 'lib/google/apis/compute_alpha/classes.rb', line 53014

def consumed_reservation_sub_block
  @consumed_reservation_sub_block
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53021
53022
53023
53024
53025
# File 'lib/google/apis/compute_alpha/classes.rb', line 53021

def update!(**args)
  @consumed_reservation = args[:consumed_reservation] if args.key?(:consumed_reservation)
  @consumed_reservation_block = args[:consumed_reservation_block] if args.key?(:consumed_reservation_block)
  @consumed_reservation_sub_block = args[:consumed_reservation_sub_block] if args.key?(:consumed_reservation_sub_block)
end