Class: Google::Apis::TrafficdirectorV3::ClientConfig

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

All xds configs for a particular client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientConfig

Returns a new instance of ClientConfig.



110
111
112
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 110

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

Instance Attribute Details

#generic_xds_configsArray<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



95
96
97
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 95

def generic_xds_configs
  @generic_xds_configs
end

#nodeGoogle::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



102
103
104
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 102

def node
  @node
end

#xds_configArray<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



108
109
110
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 108

def xds_config
  @xds_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



115
116
117
118
119
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 115

def update!(**args)
  @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