Class: Google::Apis::ComputeAlpha::RoutersScopedList

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

Returns a new instance of RoutersScopedList.



42988
42989
42990
# File 'lib/google/apis/compute_alpha/classes.rb', line 42988

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

Instance Attribute Details

#routersArray<Google::Apis::ComputeAlpha::Router>

A list of routers contained in this scope. Corresponds to the JSON property routers



42980
42981
42982
# File 'lib/google/apis/compute_alpha/classes.rb', line 42980

def routers
  @routers
end

#warningGoogle::Apis::ComputeAlpha::RoutersScopedList::Warning

Informational warning which replaces the list of routers when the list is empty. Corresponds to the JSON property warning



42986
42987
42988
# File 'lib/google/apis/compute_alpha/classes.rb', line 42986

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42993
42994
42995
42996
# File 'lib/google/apis/compute_alpha/classes.rb', line 42993

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