Class: Google::Apis::ComputeBeta::AllocationsScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocationsScopedList

Returns a new instance of AllocationsScopedList



1502
1503
1504
# File 'generated/google/apis/compute_beta/classes.rb', line 1502

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

Instance Attribute Details

#allocationsArray<Google::Apis::ComputeBeta::Allocation>

A list of allocations contained in this scope. Corresponds to the JSON property allocations



1494
1495
1496
# File 'generated/google/apis/compute_beta/classes.rb', line 1494

def allocations
  @allocations
end

#warningGoogle::Apis::ComputeBeta::AllocationsScopedList::Warning

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



1500
1501
1502
# File 'generated/google/apis/compute_beta/classes.rb', line 1500

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1507
1508
1509
1510
# File 'generated/google/apis/compute_beta/classes.rb', line 1507

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