Class: Google::Apis::TrafficdirectorV2::ClustersConfigDump

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClustersConfigDump

Returns a new instance of ClustersConfigDump.



179
180
181
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 179

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

Instance Attribute Details

#dynamic_active_clustersArray<Google::Apis::TrafficdirectorV2::DynamicCluster>

The dynamically loaded active clusters. These are clusters that are available to service data plane traffic. Corresponds to the JSON property dynamicActiveClusters



158
159
160
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 158

def dynamic_active_clusters
  @dynamic_active_clusters
end

#dynamic_warming_clustersArray<Google::Apis::TrafficdirectorV2::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



166
167
168
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 166

def dynamic_warming_clusters
  @dynamic_warming_clusters
end

#static_clustersArray<Google::Apis::TrafficdirectorV2::StaticCluster>

The statically loaded cluster configs. Corresponds to the JSON property staticClusters



171
172
173
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 171

def static_clusters
  @static_clusters
end

#version_infoString

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

Returns:

  • (String)


177
178
179
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 177

def version_info
  @version_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



184
185
186
187
188
189
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 184

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