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



1504
1505
1506
# File 'generated/google/apis/compute_beta/classes.rb', line 1504

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



1496
1497
1498
# File 'generated/google/apis/compute_beta/classes.rb', line 1496

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



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

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1509
1510
1511
1512
# File 'generated/google/apis/compute_beta/classes.rb', line 1509

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