Class: TencentCloud::Tke::V20220501::Label

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) ⇒ Label

Returns a new instance of Label.



1317
1318
1319
1320
# File 'lib/v20220501/models.rb', line 1317

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

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    map表中的Name

  • Value:

    map表中的Value



1315
1316
1317
# File 'lib/v20220501/models.rb', line 1315

def Name
  @Name
end

#ValueObject

Parameters:

  • Name:

    map表中的Name

  • Value:

    map表中的Value



1315
1316
1317
# File 'lib/v20220501/models.rb', line 1315

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1322
1323
1324
1325
# File 'lib/v20220501/models.rb', line 1322

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