Class: Google::Apis::TrafficdirectorV3::DynamicCluster
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::DynamicCluster
- 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
Describes a dynamically loaded cluster via the CDS API. [#next-free-field: 6]
Instance Attribute Summary collapse
-
#client_status ⇒ String
The client status of this resource.
-
#cluster ⇒ Hash<String,Object>
The cluster config.
-
#error_state ⇒ Google::Apis::TrafficdirectorV3::UpdateFailureState
Set if the last update failed, cleared after the next successful update.
-
#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.
342 343 344 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 342 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_status ⇒ String
The client status of this resource. [#not-implemented-hide:]
Corresponds to the JSON property clientStatus
315 316 317 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 315 def client_status @client_status end |
#cluster ⇒ Hash<String,Object>
The cluster config.
Corresponds to the JSON property cluster
320 321 322 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 320 def cluster @cluster end |
#error_state ⇒ Google::Apis::TrafficdirectorV3::UpdateFailureState
Set if the last update failed, cleared after the next successful update. The
error_state
field contains the rejected version of this particular resource
along with the reason and timestamp. For successfully updated or acknowledged
resource, this field should be empty. [#not-implemented-hide:]
Corresponds to the JSON property errorState
328 329 330 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 328 def error_state @error_state end |
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
Corresponds to the JSON property lastUpdated
333 334 335 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 333 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
340 341 342 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 340 def version_info @version_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
347 348 349 350 351 352 353 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 347 def update!(**args) @client_status = args[:client_status] if args.key?(:client_status) @cluster = args[:cluster] if args.key?(:cluster) @error_state = args[:error_state] if args.key?(:error_state) @last_updated = args[:last_updated] if args.key?(:last_updated) @version_info = args[:version_info] if args.key?(:version_info) end |