Class: TencentCloud::Cvm::V20170312::MetadataItem
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::MetadataItem
- Defined in:
- lib/v20170312/models.rb
Overview
自定义metadata key和value
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(key = nil, value = nil) ⇒ MetadataItem
constructor
A new instance of MetadataItem.
Constructor Details
#initialize(key = nil, value = nil) ⇒ MetadataItem
Returns a new instance of MetadataItem.
6352 6353 6354 6355 |
# File 'lib/v20170312/models.rb', line 6352 def initialize(key=nil, value=nil) @Key = key @Value = value end |
Instance Attribute Details
#Key ⇒ Object
6350 6351 6352 |
# File 'lib/v20170312/models.rb', line 6350 def Key @Key end |
#Value ⇒ Object
6350 6351 6352 |
# File 'lib/v20170312/models.rb', line 6350 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
6357 6358 6359 6360 |
# File 'lib/v20170312/models.rb', line 6357 def deserialize(params) @Key = params['Key'] @Value = params['Value'] end |