Package

class oci.vulnerability_scanning.models.Package(**kwargs)

Bases: object

Details of the vulnerable package found

Attributes

TYPE_APK A constant which can be used with the type property of a Package.
TYPE_DEB A constant which can be used with the type property of a Package.
TYPE_GEM A constant which can be used with the type property of a Package.
TYPE_GO A constant which can be used with the type property of a Package.
TYPE_JAVA A constant which can be used with the type property of a Package.
TYPE_MSRC_KB A constant which can be used with the type property of a Package.
TYPE_NPM A constant which can be used with the type property of a Package.
TYPE_PHP_COMPOSER A constant which can be used with the type property of a Package.
TYPE_PYTHON A constant which can be used with the type property of a Package.
TYPE_RPM A constant which can be used with the type property of a Package.
TYPE_RUST A constant which can be used with the type property of a Package.
cve_fix_version Gets the cve_fix_version of this Package.
locations Gets the locations of this Package.
name [Required] Gets the name of this Package.
type [Required] Gets the type of this Package.
version [Required] Gets the version of this Package.

Methods

__init__(**kwargs) Initializes a new Package object with values from keyword arguments.
TYPE_APK = 'APK'

A constant which can be used with the type property of a Package. This constant has a value of “APK”

TYPE_DEB = 'DEB'

A constant which can be used with the type property of a Package. This constant has a value of “DEB”

TYPE_GEM = 'GEM'

A constant which can be used with the type property of a Package. This constant has a value of “GEM”

TYPE_GO = 'GO'

A constant which can be used with the type property of a Package. This constant has a value of “GO”

TYPE_JAVA = 'JAVA'

A constant which can be used with the type property of a Package. This constant has a value of “JAVA”

TYPE_MSRC_KB = 'MSRC_KB'

A constant which can be used with the type property of a Package. This constant has a value of “MSRC_KB”

TYPE_NPM = 'NPM'

A constant which can be used with the type property of a Package. This constant has a value of “NPM”

TYPE_PHP_COMPOSER = 'PHP_COMPOSER'

A constant which can be used with the type property of a Package. This constant has a value of “PHP_COMPOSER”

TYPE_PYTHON = 'PYTHON'

A constant which can be used with the type property of a Package. This constant has a value of “PYTHON”

TYPE_RPM = 'RPM'

A constant which can be used with the type property of a Package. This constant has a value of “RPM”

TYPE_RUST = 'RUST'

A constant which can be used with the type property of a Package. This constant has a value of “RUST”

__init__(**kwargs)

Initializes a new Package object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this Package.
  • version (str) – The value to assign to the version property of this Package.
  • cve_fix_version (str) – The value to assign to the cve_fix_version property of this Package.
  • type (str) – The value to assign to the type property of this Package. Allowed values for this property are: “JAVA”, “APK”, “RPM”, “DEB”, “GO”, “NPM”, “PYTHON”, “RUST”, “PHP_COMPOSER”, “GEM”, “MSRC_KB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • locations (list[str]) – The value to assign to the locations property of this Package.
cve_fix_version

Gets the cve_fix_version of this Package. Package version in which the CVE was fixed

Returns:The cve_fix_version of this Package.
Return type:str
locations

Gets the locations of this Package. Disk locations where package was found

Returns:The locations of this Package.
Return type:list[str]
name

[Required] Gets the name of this Package. Name of the package

Returns:The name of this Package.
Return type:str
type

[Required] Gets the type of this Package. Package type

Allowed values for this property are: “JAVA”, “APK”, “RPM”, “DEB”, “GO”, “NPM”, “PYTHON”, “RUST”, “PHP_COMPOSER”, “GEM”, “MSRC_KB”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this Package.
Return type:str
version

[Required] Gets the version of this Package. Package version

Returns:The version of this Package.
Return type:str