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

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) ⇒ AddressesScopedList

Returns a new instance of AddressesScopedList.



985
986
987
# File 'lib/google/apis/compute_beta/classes.rb', line 985

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

Instance Attribute Details

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

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



977
978
979
# File 'lib/google/apis/compute_beta/classes.rb', line 977

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



983
984
985
# File 'lib/google/apis/compute_beta/classes.rb', line 983

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



990
991
992
993
# File 'lib/google/apis/compute_beta/classes.rb', line 990

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