Class: Google::Apis::OracledatabaseV1::NameValuePair
- Inherits:
-
Object
- Object
- Google::Apis::OracledatabaseV1::NameValuePair
- 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
-
#key ⇒ String
Required.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NameValuePair
constructor
A new instance of NameValuePair.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NameValuePair
Returns a new instance of NameValuePair.
8651 8652 8653 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8651 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. The name of the property entry.
Corresponds to the JSON property key
8644 8645 8646 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8644 def key @key end |
#value ⇒ String
Required. The value of the property entry.
Corresponds to the JSON property value
8649 8650 8651 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8649 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8656 8657 8658 8659 |
# File 'lib/google/apis/oracledatabase_v1/classes.rb', line 8656 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |