Class: Google::Apis::ReplicapoolV1beta1::Label

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#keyString

The key for this label. Corresponds to the JSON property key

Returns:

  • (String)


260
261
262
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 260

def key
  @key
end

#valueString

The value of this label. Corresponds to the JSON property value

Returns:

  • (String)


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