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



1543
1544
1545
# File 'generated/google/apis/compute_alpha/classes.rb', line 1543

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



1535
1536
1537
# File 'generated/google/apis/compute_alpha/classes.rb', line 1535

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



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