Class: Google::Apis::TrafficdirectorV3::RoutesConfigDump

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/representations.rb

Overview

Envoy's RDS implementation fills this message with all currently loaded routes, as described by their RouteConfiguration objects. Static routes that are either defined in the bootstrap configuration or defined inline while configuring listeners are separated from those configured dynamically via RDS. Route configuration information can be used to recreate an Envoy configuration by populating all routes as static routes or by returning them in RDS responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RoutesConfigDump

Returns a new instance of RoutesConfigDump.



1289
1290
1291
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1289

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

Instance Attribute Details

#dynamic_route_configsArray<Google::Apis::TrafficdirectorV3::DynamicRouteConfig>

The dynamically loaded route configs. Corresponds to the JSON property dynamicRouteConfigs



1282
1283
1284
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1282

def dynamic_route_configs
  @dynamic_route_configs
end

#static_route_configsArray<Google::Apis::TrafficdirectorV3::StaticRouteConfig>

The statically loaded route configs. Corresponds to the JSON property staticRouteConfigs



1287
1288
1289
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1287

def static_route_configs
  @static_route_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1294
1295
1296
1297
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1294

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