Class: TencentCloud::Scf::V20180416::K8SLabel

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

Overview

k8s label

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of K8SLabel.



2866
2867
2868
2869
# File 'lib/v20180416/models.rb', line 2866

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

Instance Attribute Details

#Key ⇒ Object

Parameters:

  • Key: —

    label的名称

  • Value: —

    label的值



2864
2865
2866
# File 'lib/v20180416/models.rb', line 2864

def Key
  @Key
end

#Value ⇒ Object

Parameters:

  • Key: —

    label的名称

  • Value: —

    label的值



2864
2865
2866
# File 'lib/v20180416/models.rb', line 2864

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2871
2872
2873
2874
# File 'lib/v20180416/models.rb', line 2871

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