Class: TencentCloud::Tke::V20220501::Annotation

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

Overview

k8s中标注,一般以数组的方式存在

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, value = nil) ⇒ Annotation

Returns a new instance of Annotation.



29
30
31
32
# File 'lib/v20220501/models.rb', line 29

def initialize(name=nil, value=nil)
  @Name = name
  @Value = value
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    map表中的Name

  • Value:

    map表中的Value



27
28
29
# File 'lib/v20220501/models.rb', line 27

def Name
  @Name
end

#ValueObject

Parameters:

  • Name:

    map表中的Name

  • Value:

    map表中的Value



27
28
29
# File 'lib/v20220501/models.rb', line 27

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



34
35
36
37
# File 'lib/v20220501/models.rb', line 34

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