Class: TencentCloud::Cls::V20201016::CustomLabel

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

Overview

自定义标签结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CustomLabel.



5000
5001
5002
5003
# File 'lib/v20201016/models.rb', line 5000

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

Instance Attribute Details

#Key ⇒ Object

  • 必须以字母或下划线开头,但不可以双下划线(__)开头,后面可以跟任意字母,数字或下划线。
  • 最大支持256个字符。
  • key不能重复 注意:此字段可能返回 null,表示取不到有效值。
  • 最大支持256个字符。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Key: —

    标签的键。

  • Value: —

    标签的值。



4998
4999
5000
# File 'lib/v20201016/models.rb', line 4998

def Key
  @Key
end

#Value ⇒ Object

  • 必须以字母或下划线开头,但不可以双下划线(__)开头,后面可以跟任意字母,数字或下划线。
  • 最大支持256个字符。
  • key不能重复 注意:此字段可能返回 null,表示取不到有效值。
  • 最大支持256个字符。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Key: —

    标签的键。

  • Value: —

    标签的值。



4998
4999
5000
# File 'lib/v20201016/models.rb', line 4998

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



5005
5006
5007
5008
# File 'lib/v20201016/models.rb', line 5005

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