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.



1297
1298
1299
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1297

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



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

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



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

def static_route_configs
  @static_route_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1302
1303
1304
1305
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1302

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