Class: Google::Apis::ComputeBeta::AddressesScopedList

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

Returns a new instance of AddressesScopedList.



264
265
266
# File 'generated/google/apis/compute_beta/classes.rb', line 264

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

Instance Attribute Details

#addressesArray<Google::Apis::ComputeBeta::Address>

[Output Only] List of addresses contained in this scope. Corresponds to the JSON property addresses



256
257
258
# File 'generated/google/apis/compute_beta/classes.rb', line 256

def addresses
  @addresses
end

#warningGoogle::Apis::ComputeBeta::AddressesScopedList::Warning

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



262
263
264
# File 'generated/google/apis/compute_beta/classes.rb', line 262

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
# File 'generated/google/apis/compute_beta/classes.rb', line 269

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