Class: Google::Apis::TrafficdirectorV3::ClustersConfigDump
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::ClustersConfigDump
- 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 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.
Instance Attribute Summary collapse
-
#dynamic_active_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::DynamicCluster>
The dynamically loaded active clusters.
-
#dynamic_warming_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::DynamicCluster>
The dynamically loaded warming clusters.
-
#static_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::StaticCluster>
The statically loaded cluster configs.
-
#version_info ⇒ String
This is the :ref:
version_info
in the last processed CDS discovery response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClustersConfigDump
constructor
A new instance of ClustersConfigDump.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClustersConfigDump
Returns a new instance of ClustersConfigDump.
218 219 220 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dynamic_active_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::DynamicCluster>
The dynamically loaded active clusters. These are clusters that are available
to service data plane traffic.
Corresponds to the JSON property dynamicActiveClusters
197 198 199 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 197 def dynamic_active_clusters @dynamic_active_clusters end |
#dynamic_warming_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::DynamicCluster>
The dynamically loaded warming clusters. These are clusters that are currently
undergoing warming in preparation to service data plane traffic. Note that if
attempting to recreate an Envoy configuration from a configuration dump, the
warming clusters should generally be discarded.
Corresponds to the JSON property dynamicWarmingClusters
205 206 207 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 205 def dynamic_warming_clusters @dynamic_warming_clusters end |
#static_clusters ⇒ Array<Google::Apis::TrafficdirectorV3::StaticCluster>
The statically loaded cluster configs.
Corresponds to the JSON property staticClusters
210 211 212 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 210 def static_clusters @static_clusters end |
#version_info ⇒ String
This is the :ref:version_info
in the last processed CDS discovery response.
If there are only static bootstrap clusters, this field will be "".
Corresponds to the JSON property versionInfo
216 217 218 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 216 def version_info @version_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
223 224 225 226 227 228 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 223 def update!(**args) @dynamic_active_clusters = args[:dynamic_active_clusters] if args.key?(:dynamic_active_clusters) @dynamic_warming_clusters = args[:dynamic_warming_clusters] if args.key?(:dynamic_warming_clusters) @static_clusters = args[:static_clusters] if args.key?(:static_clusters) @version_info = args[:version_info] if args.key?(:version_info) end |