Class: Google::Apis::ComputeAlpha::FutureReservationStatus

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

[Output only] Represents status related to the future reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureReservationStatus

Returns a new instance of FutureReservationStatus.



9910
9911
9912
# File 'lib/google/apis/compute_alpha/classes.rb', line 9910

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

Instance Attribute Details

#auto_created_reservationsArray<String>

Fully qualified urls of the automatically created reservations at start_time. Corresponds to the JSON property autoCreatedReservations

Returns:

  • (Array<String>)


9887
9888
9889
# File 'lib/google/apis/compute_alpha/classes.rb', line 9887

def auto_created_reservations
  @auto_created_reservations
end

#fulfilled_countFixnum

This count indicates the fulfilled capacity so far. This is set during " PROVISIONING" state. This count also includes capacity delivered as part of existing matching reservations. Corresponds to the JSON property fulfilledCount

Returns:

  • (Fixnum)


9894
9895
9896
# File 'lib/google/apis/compute_alpha/classes.rb', line 9894

def fulfilled_count
  @fulfilled_count
end

#lock_timeString

Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time. TODO(b/ 183994731): Replace with Timestamp. Corresponds to the JSON property lockTime

Returns:

  • (String)


9903
9904
9905
# File 'lib/google/apis/compute_alpha/classes.rb', line 9903

def lock_time
  @lock_time
end

#procurement_statusString

Current state of this Future Reservation Corresponds to the JSON property procurementStatus

Returns:

  • (String)


9908
9909
9910
# File 'lib/google/apis/compute_alpha/classes.rb', line 9908

def procurement_status
  @procurement_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9915
9916
9917
9918
9919
9920
# File 'lib/google/apis/compute_alpha/classes.rb', line 9915

def update!(**args)
  @auto_created_reservations = args[:auto_created_reservations] if args.key?(:auto_created_reservations)
  @fulfilled_count = args[:fulfilled_count] if args.key?(:fulfilled_count)
  @lock_time = args[:lock_time] if args.key?(:lock_time)
  @procurement_status = args[:procurement_status] if args.key?(:procurement_status)
end