Class: Google::Apis::ComputeBeta::CommitmentsScopedList

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



8162
8163
8164
# File 'lib/google/apis/compute_beta/classes.rb', line 8162

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

Instance Attribute Details

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

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



8154
8155
8156
# File 'lib/google/apis/compute_beta/classes.rb', line 8154

def commitments
  @commitments
end

#warningGoogle::Apis::ComputeBeta::CommitmentsScopedList::Warning

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



8160
8161
8162
# File 'lib/google/apis/compute_beta/classes.rb', line 8160

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8167
8168
8169
8170
# File 'lib/google/apis/compute_beta/classes.rb', line 8167

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