Class: Google::Apis::ComputeAlpha::AllocationsScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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



1523
1524
1525
# File 'generated/google/apis/compute_alpha/classes.rb', line 1523

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

Instance Attribute Details

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

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



1515
1516
1517
# File 'generated/google/apis/compute_alpha/classes.rb', line 1515

def allocations
  @allocations
end

#warningGoogle::Apis::ComputeAlpha::AllocationsScopedList::Warning

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



1521
1522
1523
# File 'generated/google/apis/compute_alpha/classes.rb', line 1521

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
# File 'generated/google/apis/compute_alpha/classes.rb', line 1528

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