Class: Google::Apis::ReplicapoolV1beta1::MetadataItem

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 Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.

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) ⇒ MetadataItem

Returns a new instance of MetadataItem



320
321
322
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 320

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

A metadata key. Corresponds to the JSON property key

Returns:

  • (String)


313
314
315
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 313

def key
  @key
end

#valueString

A metadata value. Corresponds to the JSON property value

Returns:

  • (String)


318
319
320
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 318

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



325
326
327
328
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 325

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end