Class: Google::Apis::ComputeBeta::RoutersScopedList

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

Returns a new instance of RoutersScopedList.



32116
32117
32118
# File 'lib/google/apis/compute_beta/classes.rb', line 32116

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

Instance Attribute Details

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

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



32108
32109
32110
# File 'lib/google/apis/compute_beta/classes.rb', line 32108

def routers
  @routers
end

#warningGoogle::Apis::ComputeBeta::RoutersScopedList::Warning

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



32114
32115
32116
# File 'lib/google/apis/compute_beta/classes.rb', line 32114

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32121
32122
32123
32124
# File 'lib/google/apis/compute_beta/classes.rb', line 32121

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