Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.67 KB

File metadata and controls

34 lines (26 loc) · 1.67 KB

PackageURL

A Package URL (PURL) is a uniform way to identify a software package. A PURL has seven components: scheme:type/namespace/name@version?qualifiers#subpath The scheme is always pkg. See: https://github.com/package-url/PURL-spec for more details.

Properties

Name Type Description Notes
type FilescanningPackageType [optional] [default to FilescanningPackageType.UNSPECIFIED]
namespace str Optional. The name prefix such as a GitHub user or organization, Maven groupid, or a Docker image owner. [optional]
name str The name of the package. [optional]
version str Optional. The version of the package. [optional]
qualifiers Dict[str, str] Optional. Additional qualifying data for a package such as an OS, architecture, a distro, etc. [optional]
subpath str Optional. A subpath within a package, relative to the package root. [optional]

Example

from ri.apiclient.models.package_url import PackageURL

# TODO update the JSON string below
json = "{}"
# create an instance of PackageURL from a JSON string
package_url_instance = PackageURL.from_json(json)
# print the JSON string representation of the object
print(PackageURL.to_json())

# convert the object into a dict
package_url_dict = package_url_instance.to_dict()
# create an instance of PackageURL from a dict
package_url_from_dict = PackageURL.from_dict(package_url_dict)

[Back to Model list] [Back to API list] [Back to README]