Class: Google::Apis::ManagerV1beta2::MetadataItem

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/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



648
649
650
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 648

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

Instance Attribute Details

#keyString

A metadata key. Corresponds to the JSON property key

Returns:

  • (String)


641
642
643
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 641

def key
  @key
end

#valueString

A metadata value. Corresponds to the JSON property value

Returns:

  • (String)


646
647
648
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 646

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 653

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