Class: TencentCloud::Bsca::V20210811::Qualifier

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

Overview

PURL下的Qualifier属性类型,用于定义第三方组件的额外属性,见 github.com/package-url/purl-spec

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Qualifier.



807
808
809
810
# File 'lib/v20210811/models.rb', line 807

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    额外属性的名称。

  • Value:

    额外属性的值。



805
806
807
# File 'lib/v20210811/models.rb', line 805

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    额外属性的名称。

  • Value:

    额外属性的值。



805
806
807
# File 'lib/v20210811/models.rb', line 805

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



812
813
814
815
# File 'lib/v20210811/models.rb', line 812

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