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, versioninfo = nil) ⇒ ComponentVersion

Returns a new instance of ComponentVersion.



282
283
284
285
286
# File 'lib/v20210811/models.rb', line 282

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

Instance Attribute Details

#LicenseExpressionObject

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

Parameters:

  • PURL:

    该组件的PURL

  • LicenseExpression:

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

  • VersionInfo:

    组件的版本信息



280
281
282
# File 'lib/v20210811/models.rb', line 280

def LicenseExpression
  @LicenseExpression
end

#PURLObject

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

Parameters:

  • PURL:

    该组件的PURL

  • LicenseExpression:

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

  • VersionInfo:

    组件的版本信息



280
281
282
# File 'lib/v20210811/models.rb', line 280

def PURL
  @PURL
end

#VersionInfoObject

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

Parameters:

  • PURL:

    该组件的PURL

  • LicenseExpression:

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

  • VersionInfo:

    组件的版本信息



280
281
282
# File 'lib/v20210811/models.rb', line 280

def VersionInfo
  @VersionInfo
end

Instance Method Details

#deserialize(params) ⇒ Object



288
289
290
291
292
293
294
295
296
297
298
# File 'lib/v20210811/models.rb', line 288

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