Skip to content
ocx
install

SbomEntry, SbomListingReport

SbomEntryclassdataclass#

Re-exported from ocx_sdk._resultsView source

subject_digestattributeinstance attribute#

subject_digest: str

summaryattributeclass attributeinstance attribute#

summary: SbomSummaryOut | None = None

verifiedattributeinstance attribute#

verified: bool

SbomListingReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class SbomListingReport(summary: ListingSummary, entries: tuple[SbomEntry, ...], refused: tuple[RefusedEntry, ...])

ocx package sbom — the full listing (C-014).

Payload is enveloped (D11): from_json unwraps data. Exits 0 even when candidates were refused — check summary.status, not the exit code.

Attributes

NameTypeDescription
summaryListingSummaryCounts and overall status.
entriestuple[SbomEntry, ...]SBOM documents ocx listed. A plain Vec upstream with no skip, so always present, not absent-when-empty.
refusedtuple[RefusedEntry, ...]Candidates ocx rejected outright. Same as entries.

entriesattributeinstance attribute#

entries: tuple[SbomEntry, ...]

refusedattributeinstance attribute#

refused: tuple[RefusedEntry, ...]

summaryattributeinstance attribute#

summary: ListingSummary

from_jsonmethodclassmethod#

def from_json(raw: str) -> SbomListingReport

Parse ocx --format json package sbom output (full listing).