Class: Google::Apis::TrafficdirectorV2::StaticCluster
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::StaticCluster
- 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 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.
1097 1098 1099 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1097 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ Hash<String,Object>
The cluster config.
Corresponds to the JSON property cluster
1090 1091 1092 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1090 def cluster @cluster end |
#last_updated ⇒ String
The timestamp when the Cluster was last updated.
Corresponds to the JSON property lastUpdated
1095 1096 1097 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1095 def last_updated @last_updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1102 1103 1104 1105 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1102 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @last_updated = args[:last_updated] if args.key?(:last_updated) end |