Class: Google::Apis::TrafficdirectorV3::StaticCluster
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::StaticCluster
- 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 statically loaded cluster.
Instance Attribute Summary collapse
-
#cluster ⇒ Hash<String,Object>
The cluster config.
-
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StaticCluster
constructor
A new instance of StaticCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StaticCluster
Returns a new instance of StaticCluster.
1450 1451 1452 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ Hash<String,Object>
The cluster config.
Corresponds to the JSON property cluster
1443 1444 1445 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1443 def cluster @cluster end |
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
Corresponds to the JSON property lastUpdated
1448 1449 1450 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1448 def last_updated @last_updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1455 1456 1457 1458 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1455 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @last_updated = args[:last_updated] if args.key?(:last_updated) end |