Class: TencentCloud::Tke::V20220501::Label
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20220501::Label
- Defined in:
- lib/v20220501/models.rb
Overview
k8s中标签,一般以数组的方式存在
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, value = nil) ⇒ Label
constructor
A new instance of Label.
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
#Name ⇒ Object
1315 1316 1317 |
# File 'lib/v20220501/models.rb', line 1315 def Name @Name end |
#Value ⇒ Object
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 |