Class: Google::Apis::ReplicapoolV1beta1::Label
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::Label
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb
Overview
A label to apply to this replica pool.
Instance Attribute Summary collapse
-
#key ⇒ String
The key for this label.
-
#value ⇒ String
The value of this label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Label
constructor
A new instance of Label.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Label
Returns a new instance of Label
267 268 269 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The key for this label.
Corresponds to the JSON property key
260 261 262 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 260 def key @key end |
#value ⇒ String
The value of this label.
Corresponds to the JSON property value
265 266 267 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 265 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
272 273 274 275 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 272 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |