Class: Google::Apis::TrafficdirectorV2::DynamicCluster
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::DynamicCluster
- 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
Describes a dynamically loaded cluster via the CDS API.
Instance Attribute Summary collapse
-
#cluster ⇒ Hash<String,Object>
The cluster config.
-
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
-
#version_info ⇒ String
This is the per-resource version information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DynamicCluster
constructor
A new instance of DynamicCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DynamicCluster
Returns a new instance of DynamicCluster.
265 266 267 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 265 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ Hash<String,Object>
The cluster config.
Corresponds to the JSON property cluster
251 252 253 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 251 def cluster @cluster end |
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
Corresponds to the JSON property lastUpdated
256 257 258 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 256 def last_updated @last_updated end |
#version_info ⇒ String
This is the per-resource version information. This version is currently taken
from the :ref:version_info
field at the time that the cluster was loaded.
In the future, discrete per-cluster versions may be supported by the API.
Corresponds to the JSON property versionInfo
263 264 265 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 263 def version_info @version_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
270 271 272 273 274 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 270 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @last_updated = args[:last_updated] if args.key?(:last_updated) @version_info = args[:version_info] if args.key?(:version_info) end |