Class: Google::Apis::TrafficdirectorV2::DynamicCluster

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

Describes a dynamically loaded cluster via the CDS API.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clusterHash<String,Object>

The cluster config. Corresponds to the JSON property cluster

Returns:

  • (Hash<String,Object>)


251
252
253
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 251

def cluster
  @cluster
end

#last_updatedString

The timestamp when the Cluster was last updated. Corresponds to the JSON property lastUpdated

Returns:

  • (String)


256
257
258
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 256

def last_updated
  @last_updated
end

#version_infoString

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

Returns:

  • (String)


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