cyclonedx.model.graphics
Graphics types of the CycloneDX standard, shared by model cards and component data.
Note
See the CycloneDX Schema for graphics:
Classes
Graphic entry with optional name and image (AttachedText). |
|
A collection of graphics with optional description. |
Module Contents
- class cyclonedx.model.graphics.Graphic(*, name: str | None = None, image: cyclonedx.model.AttachedText | None = None)
Graphic entry with optional name and image (AttachedText).
- property name: str | None
The name of the graphic.
- Returns:
str if set else None
- property image: cyclonedx.model.AttachedText | None
The graphic (vector or raster). Base64 encoding must be specified for binary images.
- Returns:
AttachedText if set else None
- class cyclonedx.model.graphics.GraphicsCollection(*, description: str | None = None, collection: collections.abc.Iterable[Graphic] | None = None)
A collection of graphics with optional description.
- property description: str | None
A description of this collection of graphics.
- Returns:
str if set else None