Class: Google::Apis::ComputeBeta::RouterStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterStatus

Returns a new instance of RouterStatus.



37234
37235
37236
# File 'lib/google/apis/compute_beta/classes.rb', line 37234

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

Instance Attribute Details

#best_routesArray<Google::Apis::ComputeBeta::Route>

Best routes for this router's network. Corresponds to the JSON property bestRoutes



37212
37213
37214
# File 'lib/google/apis/compute_beta/classes.rb', line 37212

def best_routes
  @best_routes
end

#best_routes_for_routerArray<Google::Apis::ComputeBeta::Route>

Best routes learned by this router. Corresponds to the JSON property bestRoutesForRouter



37217
37218
37219
# File 'lib/google/apis/compute_beta/classes.rb', line 37217

def best_routes_for_router
  @best_routes_for_router
end

#bgp_peer_statusArray<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>

Corresponds to the JSON property bgpPeerStatus



37222
37223
37224
# File 'lib/google/apis/compute_beta/classes.rb', line 37222

def bgp_peer_status
  @bgp_peer_status
end

#nat_statusArray<Google::Apis::ComputeBeta::RouterStatusNatStatus>

Corresponds to the JSON property natStatus



37227
37228
37229
# File 'lib/google/apis/compute_beta/classes.rb', line 37227

def nat_status
  @nat_status
end

#networkString

URI of the network to which this router belongs. Corresponds to the JSON property network

Returns:

  • (String)


37232
37233
37234
# File 'lib/google/apis/compute_beta/classes.rb', line 37232

def network
  @network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37239
37240
37241
37242
37243
37244
37245
# File 'lib/google/apis/compute_beta/classes.rb', line 37239

def update!(**args)
  @best_routes = args[:best_routes] if args.key?(:best_routes)
  @best_routes_for_router = args[:best_routes_for_router] if args.key?(:best_routes_for_router)
  @bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
  @nat_status = args[:nat_status] if args.key?(:nat_status)
  @network = args[:network] if args.key?(:network)
end