Class: Google::Apis::ComputeBeta::FutureReservationsScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureReservationsScopedList

Returns a new instance of FutureReservationsScopedList.



11423
11424
11425
# File 'lib/google/apis/compute_beta/classes.rb', line 11423

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

Instance Attribute Details

#future_reservationsArray<Google::Apis::ComputeBeta::FutureReservation>

A list of future reservations contained in this scope. Corresponds to the JSON property futureReservations



11415
11416
11417
# File 'lib/google/apis/compute_beta/classes.rb', line 11415

def future_reservations
  @future_reservations
end

#warningGoogle::Apis::ComputeBeta::FutureReservationsScopedList::Warning

Informational warning which replaces the list of future reservations when the list is empty. Corresponds to the JSON property warning



11421
11422
11423
# File 'lib/google/apis/compute_beta/classes.rb', line 11421

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11428
11429
11430
11431
# File 'lib/google/apis/compute_beta/classes.rb', line 11428

def update!(**args)
  @future_reservations = args[:future_reservations] if args.key?(:future_reservations)
  @warning = args[:warning] if args.key?(:warning)
end