Class: TencentCloud::Tem::V20201221::Pair

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201221/models.rb

Overview

键值对

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, value = nil) ⇒ Pair

Returns a new instance of Pair.



1635
1636
1637
1638
# File 'lib/v20201221/models.rb', line 1635

def initialize(key=nil, value=nil)
  @Key = key
  @Value = value
end

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

  • Value:



1633
1634
1635
# File 'lib/v20201221/models.rb', line 1633

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

  • Value:



1633
1634
1635
# File 'lib/v20201221/models.rb', line 1633

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1640
1641
1642
1643
# File 'lib/v20201221/models.rb', line 1640

def deserialize(params)
  @Key = params['Key']
  @Value = params['Value']
end