Class: Google::Apis::ComputeAlpha::CommitmentsScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitmentsScopedList

Returns a new instance of CommitmentsScopedList.



5614
5615
5616
# File 'lib/google/apis/compute_alpha/classes.rb', line 5614

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

Instance Attribute Details

#commitmentsArray<Google::Apis::ComputeAlpha::Commitment>

[Output Only] A list of commitments contained in this scope. Corresponds to the JSON property commitments



5606
5607
5608
# File 'lib/google/apis/compute_alpha/classes.rb', line 5606

def commitments
  @commitments
end

#warningGoogle::Apis::ComputeAlpha::CommitmentsScopedList::Warning

[Output Only] Informational warning which replaces the list of commitments when the list is empty. Corresponds to the JSON property warning



5612
5613
5614
# File 'lib/google/apis/compute_alpha/classes.rb', line 5612

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5619
5620
5621
5622
# File 'lib/google/apis/compute_alpha/classes.rb', line 5619

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