cyclonedx.model.service

This set of classes represents the data that is possible about known Services.

Note

See the CycloneDX Schema extension definition https://cyclonedx.org/docs/1.7/xml/#type_servicesType

Classes

OrganizationOrIndividualType

This is our internal representation of the organizationOrIndividualType complex type within the CycloneDX standard.

DataGovernance

This is our internal representation of the dataGovernance complex type within the CycloneDX standard.

Data

This is our internal representation of the serviceData complex type within the CycloneDX standard.

Service

Class that models the service complex type in the CycloneDX schema.

Module Contents

class cyclonedx.model.service.OrganizationOrIndividualType(*, organization: cyclonedx.model.contact.OrganizationalEntity | None = None, individual: cyclonedx.model.contact.OrganizationalContact | None = None)

This is our internal representation of the organizationOrIndividualType complex type within the CycloneDX standard.

property organization: cyclonedx.model.contact.OrganizationalEntity | None
property individual: cyclonedx.model.contact.OrganizationalContact | None
class cyclonedx.model.service.DataGovernance(*, custodians: collections.abc.Iterable[OrganizationOrIndividualType] | None = None, stewards: collections.abc.Iterable[OrganizationOrIndividualType] | None = None, owners: collections.abc.Iterable[OrganizationOrIndividualType] | None = None)

This is our internal representation of the dataGovernance complex type within the CycloneDX standard.

property custodians: SortedSet[OrganizationOrIndividualType]
property stewards: SortedSet[OrganizationOrIndividualType]
property owners: SortedSet[OrganizationOrIndividualType]
class cyclonedx.model.service.Data(*, flow: cyclonedx.model.DataFlow, classification: str, name: str | None = None, description: str | None = None, governance: DataGovernance | None = None, source: collections.abc.Iterable[cyclonedx.model.XsUri] | None = None, destination: collections.abc.Iterable[cyclonedx.model.XsUri] | None = None)

This is our internal representation of the serviceData complex type within the CycloneDX standard.

Note

See the CycloneDX Schema: https://cyclonedx.org/docs/1.6/xml/#type_service

property flow: cyclonedx.model.DataFlow

Specifies the flow direction of the data. Direction is relative to the service.

Returns:

DataFlow

property classification: str

Data classification tags data according to its type, sensitivity, and value if altered, stolen, or destroyed.

Returns:

str

property name: str | None

Name for the defined data.

Returns:

str if set else None

property description: str | None

Short description of the data content and usage.

Returns:

str if set else None

property governance: DataGovernance | None

Data governance information.

Returns:

DataGovernance if set else None

property source: SortedSet[XsUri]

The URI, URL, or BOM-Link of the components or services the data came in from.

Returns:

Set of XsUri

property destination: SortedSet[XsUri]

The URI, URL, or BOM-Link of the components or services the data is sent to.

Returns:

Set of XsUri

class cyclonedx.model.service.Service(*, name: str, bom_ref: str | cyclonedx.model.bom_ref.BomRef | None = None, provider: cyclonedx.model.contact.OrganizationalEntity | None = None, group: str | None = None, version: str | None = None, description: str | None = None, endpoints: collections.abc.Iterable[cyclonedx.model.XsUri] | None = None, authenticated: bool | None = None, x_trust_boundary: bool | None = None, data: collections.abc.Iterable[Data] | None = None, licenses: collections.abc.Iterable[cyclonedx.model.license.License] | None = None, external_references: collections.abc.Iterable[cyclonedx.model.ExternalReference] | None = None, properties: collections.abc.Iterable[cyclonedx.model.Property] | None = None, services: collections.abc.Iterable[Service] | None = None, release_notes: cyclonedx.model.release_note.ReleaseNotes | None = None)

Bases: cyclonedx.model.dependency.Dependable

Class that models the service complex type in the CycloneDX schema.

Note

See the CycloneDX schema: https://cyclonedx.org/docs/1.7/xml/#type_service

property provider: cyclonedx.model.contact.OrganizationalEntity | None

Get the organization that provides the service.

Returns:

OrganizationalEntity if set else None

property group: str | None

The grouping name, namespace, or identifier. This will often be a shortened, single name of the company or project that produced the service or domain name. Whitespace and special characters should be avoided.

Returns:

str if provided else None

property name: str

The name of the service. This will often be a shortened, single name of the service.

Returns:

str

property version: str | None

The service version.

Returns:

str if set else None

property description: str | None

Specifies a description for the service.

Returns:

str if set else None

property endpoints: SortedSet[XsUri]

A list of endpoints URI’s this service provides.

Returns:

Set of XsUri

property authenticated: bool | None

A boolean value indicating if the service requires authentication. A value of true indicates the service requires authentication prior to use.

A value of false indicates the service does not require authentication.

Returns:

bool if set else None

property x_trust_boundary: bool | None

A boolean value indicating if use of the service crosses a trust zone or boundary. A value of true indicates that by using the service, a trust boundary is crossed.

A value of false indicates that by using the service, a trust boundary is not crossed.

Returns:

bool if set else None

property data: SortedSet[Data]

Specifies the data flow and classification.

Returns:

Set of Data

property licenses: cyclonedx.model.license.LicenseRepository

A optional list of statements about how this Service is licensed.

Returns:

Set of LicenseChoice

property external_references: SortedSet[ExternalReference]

Provides the ability to document external references related to the Service.

Returns:

Set of ExternalReference

property services: SortedSet['Service']

A list of services included or deployed behind the parent service.

This is not a dependency tree.

It provides a way to specify a hierarchical representation of service assemblies.

Returns:

Set of Service

property release_notes: cyclonedx.model.release_note.ReleaseNotes | None

Specifies optional release notes.

Returns:

ReleaseNotes or None

property properties: SortedSet[Property]

Provides the ability to document properties in a key/value store. This provides flexibility to include data not officially supported in the standard without having to use additional namespaces or create extensions.

Return:

Set of Property

property bom_ref: cyclonedx.model.bom_ref.BomRef

An optional identifier which can be used to reference the service elsewhere in the BOM. Uniqueness is enforced within all elements and children of the root-level bom element.

Returns:

BomRef unique identifier for this Service