Class: Google::Apis::ComputeAlpha::FutureReservationsScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureReservationsScopedList

Returns a new instance of FutureReservationsScopedList.



10233
10234
10235
# File 'lib/google/apis/compute_alpha/classes.rb', line 10233

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

Instance Attribute Details

#resourcesArray<Google::Apis::ComputeAlpha::FutureReservation>

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



10225
10226
10227
# File 'lib/google/apis/compute_alpha/classes.rb', line 10225

def resources
  @resources
end

#warningGoogle::Apis::ComputeAlpha::FutureReservationsScopedList::Warning

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



10231
10232
10233
# File 'lib/google/apis/compute_alpha/classes.rb', line 10231

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10238
10239
10240
10241
# File 'lib/google/apis/compute_alpha/classes.rb', line 10238

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