cyclonedx.model.issue

Module Contents

Classes

IssueClassification

This is our internal representation of the enum issueClassification.

IssueTypeSource

This is our internal representation ofa source within the IssueType complex type that can be used in multiple

IssueType

This is our internal representation of an IssueType complex type that can be used in multiple places within

class cyclonedx.model.issue.IssueClassification[source]

Bases: str, enum.Enum

This is our internal representation of the enum issueClassification.

Note

See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4/xml/#type_issueClassification

DEFECT = 'defect'[source]
ENHANCEMENT = 'enhancement'[source]
SECURITY = 'security'[source]
class cyclonedx.model.issue.IssueTypeSource(*, name: str | None = None, url: cyclonedx.model.XsUri | None = None)[source]

This is our internal representation ofa source within the IssueType complex type that can be used in multiple places within a CycloneDX BOM document.

Note

See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4/xml/#type_issueType

property name: str | None[source]

The name of the source. For example “National Vulnerability Database”, “NVD”, and “Apache”.

Returns:

str if set else None

property url: cyclonedx.model.XsUri | None[source]

Optional url of the issue documentation as provided by the source.

Returns:

XsUri if set else None

__eq__(other: object) bool[source]

Return self==value.

__lt__(other: Any) bool[source]

Return self<value.

__hash__() int[source]

Return hash(self).

__repr__() str[source]

Return repr(self).

class cyclonedx.model.issue.IssueType(*, type: IssueClassification, id: str | None = None, name: str | None = None, description: str | None = None, source: IssueTypeSource | None = None, references: Iterable[cyclonedx.model.XsUri] | None = None)[source]

This is our internal representation of an IssueType complex type that can be used in multiple places within a CycloneDX BOM document.

Note

See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.4/xml/#type_issueType

property type: IssueClassification[source]

Specifies the type of issue.

Returns:

IssueClassification

property id: str | None[source]

The identifier of the issue assigned by the source of the issue.

Returns:

str if set else None

property name: str | None[source]

The name of the issue.

Returns:

str if set else None

property description: str | None[source]

A description of the issue.

Returns:

str if set else None

property source: IssueTypeSource | None[source]

The source of this issue.

Returns:

IssueTypeSource if set else None

property references: SortedSet[XsUri][source]

Any reference URLs related to this issue.

Returns:

Set of XsUri

__eq__(other: object) bool[source]

Return self==value.

__lt__(other: Any) bool[source]

Return self<value.

__hash__() int[source]

Return hash(self).

__repr__() str[source]

Return repr(self).