Class: Google::Apis::TrafficdirectorV3::ClientConfig
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::ClientConfig
- 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
All xds configs for a particular client.
Instance Attribute Summary collapse
-
#client_scope ⇒ String
For xDS clients, the scope in which the data is used.
-
#generic_xds_configs ⇒ Array<Google::Apis::TrafficdirectorV3::GenericXdsConfig>
Represents generic xDS config and the exact config structure depends on the type URL (like Cluster if it is CDS) Corresponds to the JSON property
genericXdsConfigs
. -
#node ⇒ Google::Apis::TrafficdirectorV3::Node
Identifies a specific Envoy instance.
-
#xds_config ⇒ Array<Google::Apis::TrafficdirectorV3::PerXdsConfig>
This field is deprecated in favor of generic_xds_configs which is much simpler and uniform in structure.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientConfig
constructor
A new instance of ClientConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClientConfig
Returns a new instance of ClientConfig.
117 118 119 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_scope ⇒ String
For xDS clients, the scope in which the data is used. For example, gRPC
indicates the data plane target or that the data is associated with gRPC
server(s).
Corresponds to the JSON property clientScope
96 97 98 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 96 def client_scope @client_scope end |
#generic_xds_configs ⇒ Array<Google::Apis::TrafficdirectorV3::GenericXdsConfig>
Represents generic xDS config and the exact config structure depends on the
type URL (like Cluster if it is CDS)
Corresponds to the JSON property genericXdsConfigs
102 103 104 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 102 def generic_xds_configs @generic_xds_configs end |
#node ⇒ Google::Apis::TrafficdirectorV3::Node
Identifies a specific Envoy instance. The node identifier is presented to the
management server, which may use this identifier to distinguish per Envoy
configuration for serving. [#next-free-field: 13]
Corresponds to the JSON property node
109 110 111 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 109 def node @node end |
#xds_config ⇒ Array<Google::Apis::TrafficdirectorV3::PerXdsConfig>
This field is deprecated in favor of generic_xds_configs which is much simpler
and uniform in structure.
Corresponds to the JSON property xdsConfig
115 116 117 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 115 def xds_config @xds_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 125 126 127 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 122 def update!(**args) @client_scope = args[:client_scope] if args.key?(:client_scope) @generic_xds_configs = args[:generic_xds_configs] if args.key?(:generic_xds_configs) @node = args[:node] if args.key?(:node) @xds_config = args[:xds_config] if args.key?(:xds_config) end |