Class: TencentCloud::Bsca::V20210811::ComponentVersion

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

Overview

描述组件的一条版本信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(purl = nil, licenseexpression = nil) ⇒ ComponentVersion

Returns a new instance of ComponentVersion.



241
242
243
244
# File 'lib/v20210811/models.rb', line 241

def initialize(purl=nil, licenseexpression=nil)
  @PURL = purl
  @LicenseExpression = licenseexpression
end

Instance Attribute Details

#LicenseExpressionObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PURL:

    该组件的PURL

  • LicenseExpression:

    该组件版本的许可证表达式



239
240
241
# File 'lib/v20210811/models.rb', line 239

def LicenseExpression
  @LicenseExpression
end

#PURLObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PURL:

    该组件的PURL

  • LicenseExpression:

    该组件版本的许可证表达式



239
240
241
# File 'lib/v20210811/models.rb', line 239

def PURL
  @PURL
end

Instance Method Details

#deserialize(params) ⇒ Object



246
247
248
249
250
251
252
# File 'lib/v20210811/models.rb', line 246

def deserialize(params)
  unless params['PURL'].nil?
    @PURL = PURL.new
    @PURL.deserialize(params['PURL'])
  end
  @LicenseExpression = params['LicenseExpression']
end