Class: Google::Apis::ComputeAlpha::AllocationsScopedList
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationsScopedList
- 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
-
#allocations ⇒ Array<Google::Apis::ComputeAlpha::Allocation>
A list of allocations contained in this scope.
-
#warning ⇒ Google::Apis::ComputeAlpha::AllocationsScopedList::Warning
Informational warning which replaces the list of allocations when the list is empty.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationsScopedList
constructor
A new instance of AllocationsScopedList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocationsScopedList
Returns a new instance of AllocationsScopedList
1543 1544 1545 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocations ⇒ Array<Google::Apis::ComputeAlpha::Allocation>
A list of allocations contained in this scope.
Corresponds to the JSON property allocations
1535 1536 1537 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1535 def allocations @allocations end |
#warning ⇒ Google::Apis::ComputeAlpha::AllocationsScopedList::Warning
Informational warning which replaces the list of allocations when the list is
empty.
Corresponds to the JSON property warning
1541 1542 1543 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1541 def warning @warning end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1548 1549 1550 1551 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1548 def update!(**args) @allocations = args[:allocations] if args.key?(:allocations) @warning = args[:warning] if args.key?(:warning) end |