Class: Google::Apis::TrafficdirectorV2::PerXdsConfig

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

Overview

Detailed config (per xDS) with status. [#next-free-field: 6]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerXdsConfig

Returns a new instance of PerXdsConfig.



846
847
848
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 846

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

Instance Attribute Details

#cluster_configGoogle::Apis::TrafficdirectorV2::ClustersConfigDump

Envoy's cluster manager fills this message with all currently known clusters. Cluster configuration information can be used to recreate an Envoy configuration by populating all clusters as static clusters or by returning them in a CDS response. Corresponds to the JSON property clusterConfig



811
812
813
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 811

def cluster_config
  @cluster_config
end

#listener_configGoogle::Apis::TrafficdirectorV2::ListenersConfigDump

Envoy's listener manager fills this message with all currently known listeners. Listener configuration information can be used to recreate an Envoy configuration by populating all listeners as static listeners or by returning them in a LDS response. Corresponds to the JSON property listenerConfig



819
820
821
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 819

def listener_config
  @listener_config
end

#route_configGoogle::Apis::TrafficdirectorV2::RoutesConfigDump

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. Corresponds to the JSON property routeConfig



830
831
832
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 830

def route_config
  @route_config
end

#scoped_route_configGoogle::Apis::TrafficdirectorV2::ScopedRoutesConfigDump

Envoy's scoped RDS implementation fills this message with all currently loaded route configuration scopes (defined via ScopedRouteConfigurationsSet protos). This message lists both the scopes defined inline with the higher order object (i.e., the HttpConnectionManager) and the dynamically obtained scopes via the SRDS API. Corresponds to the JSON property scopedRouteConfig



839
840
841
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 839

def scoped_route_config
  @scoped_route_config
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


844
845
846
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 844

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



851
852
853
854
855
856
857
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 851

def update!(**args)
  @cluster_config = args[:cluster_config] if args.key?(:cluster_config)
  @listener_config = args[:listener_config] if args.key?(:listener_config)
  @route_config = args[:route_config] if args.key?(:route_config)
  @scoped_route_config = args[:scoped_route_config] if args.key?(:scoped_route_config)
  @status = args[:status] if args.key?(:status)
end