Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1KeyValueEntry

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

Overview

Key value map pair where the value represents the data associated with the corresponding key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1KeyValueEntry

Returns a new instance of GoogleCloudApigeeV1KeyValueEntry.



4334
4335
4336
# File 'lib/google/apis/apigee_v1/classes.rb', line 4334

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

Instance Attribute Details

#nameString

Resource URI that can be used to identify the scope of the key value map entries. Corresponds to the JSON property name

Returns:

  • (String)


4326
4327
4328
# File 'lib/google/apis/apigee_v1/classes.rb', line 4326

def name
  @name
end

#valueString

Required. Data or payload that is being retrieved and associated with the unique key. Corresponds to the JSON property value

Returns:

  • (String)


4332
4333
4334
# File 'lib/google/apis/apigee_v1/classes.rb', line 4332

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4339
4340
4341
4342
# File 'lib/google/apis/apigee_v1/classes.rb', line 4339

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