Class: Google::Apis::OracledatabaseV1::NameValuePair

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/oracledatabase_v1/classes.rb,
lib/google/apis/oracledatabase_v1/representations.rb,
lib/google/apis/oracledatabase_v1/representations.rb

Overview

A name-value pair representing an attribute entry usable in a list of attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NameValuePair

Returns a new instance of NameValuePair.



8588
8589
8590
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8588

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

Instance Attribute Details

#keyString

Required. The name of the property entry. Corresponds to the JSON property key

Returns:

  • (String)


8581
8582
8583
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8581

def key
  @key
end

#valueString

Required. The value of the property entry. Corresponds to the JSON property value

Returns:

  • (String)


8586
8587
8588
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8586

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8593
8594
8595
8596
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8593

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