Skip to content

trestle.oscal.common

trestle.oscal.common ¤

Attributes¤

AssessmentSubject1 = AssessmentSubjectAll module-attribute ¤

AssessmentSubject2 = AssessmentSubjectSpecific module-attribute ¤

ControlObjectiveSelection = ControlObjectiveSelectionsAll module-attribute ¤

ControlSelection = ControlSelectionsAll module-attribute ¤

HowMany = HowManyValidValues module-attribute ¤

Parameter = Union[Parameter1, Parameter2] module-attribute ¤

Party = Union[Parties1, Parties] module-attribute ¤

Timing = TimingOnDate module-attribute ¤

Timing1 = TimingWithinDateRange module-attribute ¤

Timing2 = TimingAtFrequency module-attribute ¤

Classes¤

Action ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Action[Action]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Action
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Action href "" "trestle.oscal.common.Action"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An action applied by a role within a given party to the content.

Source code in trestle/oscal/common.py
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
class Action(OscalBaseModel):
    """
    An action applied by a role within a given party to the content.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., description='A unique identifier that can be used to reference this defined action elsewhere in an OSCAL document. A UUID should be consistently used for a given location across revisions of the document.', title='Action Universally Unique Identifier')
    date: datetime | None = Field(None, description='The date and time when the action occurred.', title='Action Occurrence Date')
    type: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description='The type of action documented by the assembly, such as an approval.', title='Action Type')
    system: AnyUrl = Field(..., description='Specifies the action type system used.', title='Action Type System')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    remarks: str | None = None
Attributes¤
date = Field(None, description='The date and time when the action occurred.', title='Action Occurrence Date') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
system = Field(..., description='Specifies the action type system used.', title='Action Type System') class-attribute instance-attribute ¤
type = Field(..., description='The type of action documented by the assembly, such as an approval.', title='Action Type') class-attribute instance-attribute ¤
uuid = Field(..., description='A unique identifier that can be used to reference this defined action elsewhere in an OSCAL document. A UUID should be consistently used for a given location across revisions of the document.', title='Action Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1147
1148
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Activity ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Activity[Activity]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Activity
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Activity href "" "trestle.oscal.common.Activity"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an assessment or related process that can be performed. In the assessment plan, this is an intended activity which may be associated with an assessment task. In the assessment results, this an activity that was actually performed as part of an assessment.

Source code in trestle/oscal/common.py
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
class Activity(OscalBaseModel):
    """
    Identifies an assessment or related process that can be performed. In the assessment plan, this is an intended activity which may be associated with an assessment task. In the assessment results, this an activity that was actually performed as part of an assessment.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment activity elsewhere in this or other OSCAL instances. The locally defined UUID of the activity can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Assessment Activity Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this included activity.', title='Included Activity Title')
    description: str = Field(..., description='A human-readable description of this included activity.', title='Included Activity Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    steps: list[Step] | None = Field(None)
    related_controls: ReviewedControls | None = Field(None, alias='related-controls')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles')
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this included activity.', title='Included Activity Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
related_controls = Field(None, alias='related-controls') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles') class-attribute instance-attribute ¤
steps = Field(None) class-attribute instance-attribute ¤
title = Field(None, description='The title for this included activity.', title='Included Activity Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment activity elsewhere in this or other OSCAL instances. The locally defined UUID of the activity can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Assessment Activity Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1516
1517
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AddrLine ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AddrLine[AddrLine]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AddrLine
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AddrLine href "" "trestle.oscal.common.AddrLine"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
586
587
class AddrLine(OscalBaseModel):
    __root__: StringDatatype = Field(..., description='A single line of an address.', title='Address line')
Attributes¤
__root__ = Field(..., description='A single line of an address.', title='Address line') class-attribute instance-attribute ¤

Address ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Address[Address]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Address
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Address href "" "trestle.oscal.common.Address"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A postal address for the location.

Source code in trestle/oscal/common.py
590
591
592
593
594
595
596
597
598
599
600
601
602
603
class Address(OscalBaseModel):
    """
    A postal address for the location.
    """

    class Config:
        extra = Extra.forbid

    type: TokenDatatype | AddressTypeValidValues | None = Field(None, description='Indicates the type of address.', title='Address Type')
    addr_lines: list[constr(regex=r'^\S(.*\S)?$')] | None = Field(None, alias='addr-lines')
    city: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='City, town or geographical region for the mailing address.', title='City')
    state: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='State, province or analogous geographical region for a mailing address.', title='State')
    postal_code: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='postal-code', description='Postal or ZIP code for mailing address.', title='Postal Code')
    country: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='The ISO 3166-1 alpha-2 country code for the mailing address.', title='Country Code')
Attributes¤
addr_lines = Field(None, alias='addr-lines') class-attribute instance-attribute ¤
city = Field(None, description='City, town or geographical region for the mailing address.', title='City') class-attribute instance-attribute ¤
country = Field(None, description='The ISO 3166-1 alpha-2 country code for the mailing address.', title='Country Code') class-attribute instance-attribute ¤
postal_code = Field(None, alias='postal-code', description='Postal or ZIP code for mailing address.', title='Postal Code') class-attribute instance-attribute ¤
state = Field(None, description='State, province or analogous geographical region for a mailing address.', title='State') class-attribute instance-attribute ¤
type = Field(None, description='Indicates the type of address.', title='Address Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
595
596
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AddressTypeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.AddressTypeValidValues[AddressTypeValidValues]

              

              click trestle.oscal.common.AddressTypeValidValues href "" "trestle.oscal.common.AddressTypeValidValues"
            
Source code in trestle/oscal/common.py
39
40
41
class AddressTypeValidValues(Enum):
    home = 'home'
    work = 'work'
Attributes¤
home = 'home' class-attribute instance-attribute ¤
work = 'work' class-attribute instance-attribute ¤

Algorithm ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Algorithm[Algorithm]

              

              click trestle.oscal.common.Algorithm href "" "trestle.oscal.common.Algorithm"
            

The digest method by which a hash is derived.

Source code in trestle/oscal/common.py
44
45
46
47
48
49
50
51
52
53
54
55
56
class Algorithm(Enum):
    """
    The digest method by which a hash is derived.
    """

    SHA_224 = 'SHA-224'
    SHA_256 = 'SHA-256'
    SHA_384 = 'SHA-384'
    SHA_512 = 'SHA-512'
    SHA3_224 = 'SHA3-224'
    SHA3_256 = 'SHA3-256'
    SHA3_384 = 'SHA3-384'
    SHA3_512 = 'SHA3-512'
Attributes¤
SHA3_224 = 'SHA3-224' class-attribute instance-attribute ¤
SHA3_256 = 'SHA3-256' class-attribute instance-attribute ¤
SHA3_384 = 'SHA3-384' class-attribute instance-attribute ¤
SHA3_512 = 'SHA3-512' class-attribute instance-attribute ¤
SHA_224 = 'SHA-224' class-attribute instance-attribute ¤
SHA_256 = 'SHA-256' class-attribute instance-attribute ¤
SHA_384 = 'SHA-384' class-attribute instance-attribute ¤
SHA_512 = 'SHA-512' class-attribute instance-attribute ¤

AssessmentAssets ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentAssets[AssessmentAssets]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentAssets
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentAssets href "" "trestle.oscal.common.AssessmentAssets"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.

Source code in trestle/oscal/common.py
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
class AssessmentAssets(OscalBaseModel):
    """
    Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.
    """

    class Config:
        extra = Extra.forbid

    components: list[SystemComponent] | None = Field(None)
    assessment_platforms: list[AssessmentPlatform] = Field(..., alias='assessment-platforms')
Attributes¤
assessment_platforms = Field(..., alias='assessment-platforms') class-attribute instance-attribute ¤
components = Field(None) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1954
1955
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssessmentPart ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentPart[AssessmentPart]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentPart
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentPart href "" "trestle.oscal.common.AssessmentPart"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A partition of an assessment plan or results or a child of another part.

Source code in trestle/oscal/common.py
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
class AssessmentPart(OscalBaseModel):
    """
    A partition of an assessment plan or results or a child of another part.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(
        None, description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this part elsewhere in this or other OSCAL instances. The locally defined UUID of the part can be used to reference the data item locally or globally (e.g., in an ported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Part Identifier'
    )
    name: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Name = Field(..., description="A textual label that uniquely identifies the part's semantic type.", title='Part Name')
    ns: AnyUrl | None = Field(None, description="A namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.", title='Part Namespace')
    class_: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='class', description="A textual label that provides a sub-type or characterization of the part's name. This can be used to further distinguish or discriminate between the semantics of multiple parts of the same control with the same name and ns.", title='Part Class')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='A name given to the part, which may be used by a tool for display and navigation.', title='Part Title')
    props: list[Property] | None = Field(None)
    prose: str | None = Field(None, description='Permits multiple paragraphs, lists, tables etc.', title='Part Text')
    parts: list[AssessmentPart] | None = None
    links: list[Link] | None = Field(None)
Attributes¤
class_ = Field(None, alias='class', description="A textual label that provides a sub-type or characterization of the part's name. This can be used to further distinguish or discriminate between the semantics of multiple parts of the same control with the same name and ns.", title='Part Class') class-attribute instance-attribute ¤
name = Field(..., description="A textual label that uniquely identifies the part's semantic type.", title='Part Name') class-attribute instance-attribute ¤
ns = Field(None, description="A namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.", title='Part Namespace') class-attribute instance-attribute ¤
parts = None class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
prose = Field(None, description='Permits multiple paragraphs, lists, tables etc.', title='Part Text') class-attribute instance-attribute ¤
title = Field(None, description='A name given to the part, which may be used by a tool for display and navigation.', title='Part Title') class-attribute instance-attribute ¤
uuid = Field(None, description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this part elsewhere in this or other OSCAL instances. The locally defined UUID of the part can be used to reference the data item locally or globally (e.g., in an ported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Part Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
809
810
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssessmentPlatform ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentPlatform[AssessmentPlatform]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentPlatform
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentPlatform href "" "trestle.oscal.common.AssessmentPlatform"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to represent the toolset used to perform aspects of the assessment.

Source code in trestle/oscal/common.py
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
class AssessmentPlatform(OscalBaseModel):
    """
    Used to represent the toolset used to perform aspects of the assessment.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment platform elsewhere in this or other OSCAL instances. The locally defined UUID of the assessment platform can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Assessment Platform Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title or name for the assessment platform.', title='Assessment Platform Title')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    uses_components: list[UsesComponent] | None = Field(None, alias='uses-components')
    remarks: str | None = None
Attributes¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
title = Field(None, description='The title or name for the assessment platform.', title='Assessment Platform Title') class-attribute instance-attribute ¤
uses_components = Field(None, alias='uses-components') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment platform elsewhere in this or other OSCAL instances. The locally defined UUID of the assessment platform can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Assessment Platform Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1934
1935
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssessmentSubject ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentSubject[AssessmentSubject]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentSubject
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentSubject href "" "trestle.oscal.common.AssessmentSubject"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1326
1327
class AssessmentSubject(OscalBaseModel):
    __root__: AssessmentSubjectAll | AssessmentSubjectSpecific
Attributes¤
__root__ instance-attribute ¤

AssessmentSubjectAll ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentSubjectAll[AssessmentSubjectAll]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentSubjectAll
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentSubjectAll href "" "trestle.oscal.common.AssessmentSubjectAll"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.

Source code in trestle/oscal/common.py
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
class AssessmentSubjectAll(OscalBaseModel):
    """
    Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.
    """

    class Config:
        extra = Extra.forbid

    type: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Type | None = Field(None, description='Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.', title='Subject Type')
    description: str | None = Field(None, description='A human-readable description of the collection of subjects being included in this assessment.', title='Include Subjects Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_subjects: list[SelectSubjectById] | None = Field(None, alias='exclude-subjects')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of the collection of subjects being included in this assessment.', title='Include Subjects Description') class-attribute instance-attribute ¤
exclude_subjects = Field(None, alias='exclude-subjects') class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
type = Field(None, description='Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.', title='Subject Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1314
1315
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssessmentSubjectPlaceholder ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentSubjectPlaceholder[AssessmentSubjectPlaceholder]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentSubjectPlaceholder
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentSubjectPlaceholder href "" "trestle.oscal.common.AssessmentSubjectPlaceholder"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used when the assessment subjects will be determined as part of one or more other assessment activities. These assessment subjects will be recorded in the assessment results in the assessment log.

Source code in trestle/oscal/common.py
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
class AssessmentSubjectPlaceholder(OscalBaseModel):
    """
    Used when the assessment subjects will be determined as part of one or more other assessment activities. These assessment subjects will be recorded in the assessment results in the assessment log.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier for a set of assessment subjects that will be identified by a task or an activity that is part of a task. The locally defined UUID of the assessment subject placeholder can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Assessment Subject Placeholder Universally Unique Identifier',
    )
    description: str | None = Field(None, description='A human-readable description of intent of this assessment subject placeholder.', title='Assessment Subject Placeholder Description')
    sources: list[Source] = Field(...)
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of intent of this assessment subject placeholder.', title='Assessment Subject Placeholder Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
sources = Field(...) class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier for a set of assessment subjects that will be identified by a task or an activity that is part of a task. The locally defined UUID of the assessment subject placeholder can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Assessment Subject Placeholder Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
789
790
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssessmentSubjectSpecific ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssessmentSubjectSpecific[AssessmentSubjectSpecific]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssessmentSubjectSpecific
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssessmentSubjectSpecific href "" "trestle.oscal.common.AssessmentSubjectSpecific"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.

Source code in trestle/oscal/common.py
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
class AssessmentSubjectSpecific(OscalBaseModel):
    """
    Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.
    """

    class Config:
        extra = Extra.forbid

    type: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Type | None = Field(None, description='Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.', title='Subject Type')
    description: str | None = Field(None, description='A human-readable description of the collection of subjects being included in this assessment.', title='Include Subjects Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_subjects: list[SelectSubjectById] = Field(..., alias='include-subjects')
    exclude_subjects: list[SelectSubjectById] | None = Field(None, alias='exclude-subjects')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of the collection of subjects being included in this assessment.', title='Include Subjects Description') class-attribute instance-attribute ¤
exclude_subjects = Field(None, alias='exclude-subjects') class-attribute instance-attribute ¤
include_subjects = Field(..., alias='include-subjects') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
type = Field(None, description='Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.', title='Subject Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1297
1298
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssociatedActivity ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssociatedActivity[AssociatedActivity]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssociatedActivity
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssociatedActivity href "" "trestle.oscal.common.AssociatedActivity"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an individual activity to be performed as part of a task.

Source code in trestle/oscal/common.py
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
class AssociatedActivity(OscalBaseModel):
    """
    Identifies an individual activity to be performed as part of a task.
    """

    class Config:
        extra = Extra.forbid

    activity_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='activity-uuid', description='A machine-oriented identifier reference to an activity defined in the list of activities.', title='Activity Universally Unique Identifier Reference')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles')
    subjects: list[AssessmentSubject] = Field(...)
    remarks: str | None = None
Attributes¤
activity_uuid = Field(..., alias='activity-uuid', description='A machine-oriented identifier reference to an activity defined in the list of activities.', title='Activity Universally Unique Identifier Reference') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles') class-attribute instance-attribute ¤
subjects = Field(...) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1466
1467
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AssociatedRisk ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AssociatedRisk[AssociatedRisk]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AssociatedRisk
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AssociatedRisk href "" "trestle.oscal.common.AssociatedRisk"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Relates the finding to a set of referenced risks that were used to determine the finding.

Source code in trestle/oscal/common.py
59
60
61
62
63
64
65
66
67
68
class AssociatedRisk(OscalBaseModel):
    """
    Relates the finding to a set of referenced risks that were used to determine the finding.
    """

    class Config:
        extra = Extra.forbid

    risk_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='risk-uuid', description='A machine-oriented identifier reference to a risk defined in the list of risks.', title='Risk Universally Unique Identifier Reference')
    remarks: str | None = None
Attributes¤
remarks = None class-attribute instance-attribute ¤
risk_uuid = Field(..., alias='risk-uuid', description='A machine-oriented identifier reference to a risk defined in the list of risks.', title='Risk Universally Unique Identifier Reference') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
64
65
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AtFrequency ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AtFrequency[AtFrequency]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AtFrequency
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AtFrequency href "" "trestle.oscal.common.AtFrequency"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The task is intended to occur at the specified frequency.

Source code in trestle/oscal/common.py
71
72
73
74
75
76
77
78
79
80
81
class AtFrequency(OscalBaseModel):
    """
    The task is intended to occur at the specified frequency.
    """

    class Config:
        extra = Extra.forbid

    period: conint(ge=1, multiple_of=1) = Field(..., description='The task must occur after the specified period has elapsed.', title='Period')
    unit: constr(regex=r'^\S(.*\S)?$') = Field(..., description='The unit of time for the period.', title='Time Unit')
    remarks: str | None = None
Attributes¤
period = Field(..., description='The task must occur after the specified period has elapsed.', title='Period') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
unit = Field(..., description='The unit of time for the period.', title='Time Unit') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
76
77
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

AuthorizedPrivilege ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.AuthorizedPrivilege[AuthorizedPrivilege]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.AuthorizedPrivilege
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.AuthorizedPrivilege href "" "trestle.oscal.common.AuthorizedPrivilege"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.

Source code in trestle/oscal/common.py
84
85
86
87
88
89
90
91
92
93
94
class AuthorizedPrivilege(OscalBaseModel):
    """
    Identifies a specific system privilege held by the user, along with an associated description and/or rationale for the privilege.
    """

    class Config:
        extra = Extra.forbid

    title: constr(regex=r'^[^\n]+$') = Field(..., description='A human readable name for the privilege.', title='Privilege Title')
    description: str | None = Field(None, description="A summary of the privilege's purpose within the system.", title='Privilege Description')
    functions_performed: list[constr(regex=r'^\S(.*\S)?$')] = Field(..., alias='functions-performed')
Attributes¤
description = Field(None, description="A summary of the privilege's purpose within the system.", title='Privilege Description') class-attribute instance-attribute ¤
functions_performed = Field(..., alias='functions-performed') class-attribute instance-attribute ¤
title = Field(..., description='A human readable name for the privilege.', title='Privilege Title') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
89
90
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

BackMatter ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.BackMatter[BackMatter]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.BackMatter
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.BackMatter href "" "trestle.oscal.common.BackMatter"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A collection of resources that may be referenced from within the OSCAL document instance.

Source code in trestle/oscal/common.py
1245
1246
1247
1248
1249
1250
1251
1252
1253
class BackMatter(OscalBaseModel):
    """
    A collection of resources that may be referenced from within the OSCAL document instance.
    """

    class Config:
        extra = Extra.forbid

    resources: list[Resource] | None = Field(None)
Attributes¤
resources = Field(None) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1250
1251
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Base64 ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Base64[Base64]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Base64
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Base64 href "" "trestle.oscal.common.Base64"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A resource encoded using the Base64 alphabet defined by RFC 2045.

Source code in trestle/oscal/common.py
 97
 98
 99
100
101
102
103
104
105
106
107
class Base64(OscalBaseModel):
    """
    A resource encoded using the Base64 alphabet defined by RFC 2045.
    """

    class Config:
        extra = Extra.forbid

    filename: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, description='Name of the file before it was encoded as Base64 to be embedded in a resource. This is the name that will be assigned to the file when the file is decoded.', title='File Name')
    media_type: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type')
    value: constr(regex=r'^[0-9A-Za-z+/]+={0,2}$')
Attributes¤
filename = Field(None, description='Name of the file before it was encoded as Base64 to be embedded in a resource. This is the name that will be assigned to the file when the file is decoded.', title='File Name') class-attribute instance-attribute ¤
media_type = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type') class-attribute instance-attribute ¤
value instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
102
103
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Base64Datatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Base64Datatype[Base64Datatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Base64Datatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Base64Datatype href "" "trestle.oscal.common.Base64Datatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
110
111
class Base64Datatype(OscalBaseModel):
    __root__: constr(regex=r'^[0-9A-Za-z+/]+={0,2}$') = Field(..., description='Binary data encoded using the Base 64 encoding algorithm as defined by RFC4648.')
Attributes¤
__root__ = Field(..., description='Binary data encoded using the Base 64 encoding algorithm as defined by RFC4648.') class-attribute instance-attribute ¤

Characterization ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Characterization[Characterization]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Characterization
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Characterization href "" "trestle.oscal.common.Characterization"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A collection of descriptive data about the containing object from a specific origin.

Source code in trestle/oscal/common.py
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
class Characterization(OscalBaseModel):
    """
    A collection of descriptive data about the containing object from a specific origin.
    """

    class Config:
        extra = Extra.forbid

    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    origin: Origin
    facets: list[Facet] = Field(...)
Attributes¤
facets = Field(...) class-attribute instance-attribute ¤
origin instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1401
1402
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Citation ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Citation[Citation]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Citation
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Citation href "" "trestle.oscal.common.Citation"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An optional citation consisting of end note text using structured markup.

Source code in trestle/oscal/common.py
771
772
773
774
775
776
777
778
779
780
781
class Citation(OscalBaseModel):
    """
    An optional citation consisting of end note text using structured markup.
    """

    class Config:
        extra = Extra.forbid

    text: constr(regex=r'^[^\n]+$') = Field(..., description='A line of citation text.', title='Citation Text')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
Attributes¤
props = Field(None) class-attribute instance-attribute ¤
text = Field(..., description='A line of citation text.', title='Citation Text') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
776
777
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ControlObjectiveSelections ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ControlObjectiveSelections[ControlObjectiveSelections]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ControlObjectiveSelections
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ControlObjectiveSelections href "" "trestle.oscal.common.ControlObjectiveSelections"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the control objectives of the assessment. In the assessment plan, these are the planned objectives. In the assessment results, these are the assessed objectives, and reflects any changes from the plan.

Source code in trestle/oscal/common.py
755
756
757
758
759
760
761
762
763
764
765
766
767
768
class ControlObjectiveSelections(OscalBaseModel):
    """
    Identifies the control objectives of the assessment. In the assessment plan, these are the planned objectives. In the assessment results, these are the assessed objectives, and reflects any changes from the plan.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A human-readable description of this collection of control objectives.', title='Control Objectives Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_objectives: list[SelectObjectiveById] = Field(..., alias='include-objectives')
    exclude_objectives: list[SelectObjectiveById] | None = Field(None, alias='exclude-objectives')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of this collection of control objectives.', title='Control Objectives Description') class-attribute instance-attribute ¤
exclude_objectives = Field(None, alias='exclude-objectives') class-attribute instance-attribute ¤
include_objectives = Field(..., alias='include-objectives') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
760
761
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ControlObjectiveSelectionsAll ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ControlObjectiveSelectionsAll[ControlObjectiveSelectionsAll]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ControlObjectiveSelectionsAll
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ControlObjectiveSelectionsAll href "" "trestle.oscal.common.ControlObjectiveSelectionsAll"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the control objectives of the assessment. In the assessment plan, these are the planned objectives. In the assessment results, these are the assessed objectives, and reflects any changes from the plan.

Source code in trestle/oscal/common.py
734
735
736
737
738
739
740
741
742
743
744
745
746
747
class ControlObjectiveSelectionsAll(OscalBaseModel):
    """
    Identifies the control objectives of the assessment. In the assessment plan, these are the planned objectives. In the assessment results, these are the assessed objectives, and reflects any changes from the plan.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A human-readable description of this collection of control objectives.', title='Control Objectives Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_objectives: list[SelectObjectiveById] | None = Field(None, alias='exclude-objectives')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of this collection of control objectives.', title='Control Objectives Description') class-attribute instance-attribute ¤
exclude_objectives = Field(None, alias='exclude-objectives') class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
739
740
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ControlSelections ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ControlSelections[ControlSelections]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ControlSelections
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ControlSelections href "" "trestle.oscal.common.ControlSelections"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the controls being assessed. In the assessment plan, these are the planned controls. In the assessment results, these are the actual controls, and reflects any changes from the plan.

Source code in trestle/oscal/common.py
718
719
720
721
722
723
724
725
726
727
728
729
730
731
class ControlSelections(OscalBaseModel):
    """
    Identifies the controls being assessed. In the assessment plan, these are the planned controls. In the assessment results, these are the actual controls, and reflects any changes from the plan.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A human-readable description of in-scope controls specified for assessment.', title='Assessed Controls Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_controls: list[SelectControlById] = Field(..., alias='include-controls')
    exclude_controls: list[SelectControlById] | None = Field(None, alias='exclude-controls')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of in-scope controls specified for assessment.', title='Assessed Controls Description') class-attribute instance-attribute ¤
exclude_controls = Field(None, alias='exclude-controls') class-attribute instance-attribute ¤
include_controls = Field(..., alias='include-controls') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
723
724
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ControlSelectionsAll ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ControlSelectionsAll[ControlSelectionsAll]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ControlSelectionsAll
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ControlSelectionsAll href "" "trestle.oscal.common.ControlSelectionsAll"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the controls being assessed. In the assessment plan, these are the planned controls. In the assessment results, these are the actual controls, and reflects any changes from the plan.

Source code in trestle/oscal/common.py
697
698
699
700
701
702
703
704
705
706
707
708
709
710
class ControlSelectionsAll(OscalBaseModel):
    """
    Identifies the controls being assessed. In the assessment plan, these are the planned controls. In the assessment results, these are the actual controls, and reflects any changes from the plan.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A human-readable description of in-scope controls specified for assessment.', title='Assessed Controls Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_controls: list[SelectControlById] | None = Field(None, alias='exclude-controls')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of in-scope controls specified for assessment.', title='Assessed Controls Description') class-attribute instance-attribute ¤
exclude_controls = Field(None, alias='exclude-controls') class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
702
703
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

DateTimeWithTimezoneDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.DateTimeWithTimezoneDatatype[DateTimeWithTimezoneDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.DateTimeWithTimezoneDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.DateTimeWithTimezoneDatatype href "" "trestle.oscal.common.DateTimeWithTimezoneDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
114
115
class DateTimeWithTimezoneDatatype(OscalBaseModel):
    __root__: datetime = Field(..., description='A string representing a point in time with a required timezone.')
Attributes¤
__root__ = Field(..., description='A string representing a point in time with a required timezone.') class-attribute instance-attribute ¤

Dependency ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Dependency[Dependency]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Dependency
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Dependency href "" "trestle.oscal.common.Dependency"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to indicate that a task is dependent on another task.

Source code in trestle/oscal/common.py
118
119
120
121
122
123
124
125
126
127
class Dependency(OscalBaseModel):
    """
    Used to indicate that a task is dependent on another task.
    """

    class Config:
        extra = Extra.forbid

    task_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='task-uuid', description='A machine-oriented identifier reference to a unique task.', title='Task Universally Unique Identifier Reference')
    remarks: str | None = None
Attributes¤
remarks = None class-attribute instance-attribute ¤
task_uuid = Field(..., alias='task-uuid', description='A machine-oriented identifier reference to a unique task.', title='Task Universally Unique Identifier Reference') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
123
124
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

DocumentId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.DocumentId[DocumentId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.DocumentId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.DocumentId href "" "trestle.oscal.common.DocumentId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A document identifier qualified by an identifier scheme.

Source code in trestle/oscal/common.py
606
607
608
609
610
611
612
613
614
615
class DocumentId(OscalBaseModel):
    """
    A document identifier qualified by an identifier scheme.
    """

    class Config:
        extra = Extra.forbid

    scheme: URIDatatype | DocumentSchemeValidValues | None = Field(None, description='Qualifies the kind of document identifier using a URI. If the scheme is not provided the value of the element will be interpreted as a string of characters.', title='Document Identification Scheme')
    identifier: constr(regex=r'^\S(.*\S)?$')
Attributes¤
identifier instance-attribute ¤
scheme = Field(None, description='Qualifies the kind of document identifier using a URI. If the scheme is not provided the value of the element will be interpreted as a string of characters.', title='Document Identification Scheme') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
611
612
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

DocumentSchemeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.DocumentSchemeValidValues[DocumentSchemeValidValues]

              

              click trestle.oscal.common.DocumentSchemeValidValues href "" "trestle.oscal.common.DocumentSchemeValidValues"
            
Source code in trestle/oscal/common.py
130
131
class DocumentSchemeValidValues(Enum):
    http___www_doi_org_ = 'http://www.doi.org/'
Attributes¤
http___www_doi_org_ = 'http://www.doi.org/' class-attribute instance-attribute ¤

EmailAddress ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.EmailAddress[EmailAddress]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.EmailAddress
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.EmailAddress href "" "trestle.oscal.common.EmailAddress"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
134
135
class EmailAddress(OscalBaseModel):
    __root__: EmailStr = Field(..., description='An email address as defined by RFC 5322 Section 3.4.1.', title='Email Address')
Attributes¤
__root__ = Field(..., description='An email address as defined by RFC 5322 Section 3.4.1.', title='Email Address') class-attribute instance-attribute ¤

EmailAddressDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.EmailAddressDatatype[EmailAddressDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.EmailAddressDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.EmailAddressDatatype href "" "trestle.oscal.common.EmailAddressDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
138
139
class EmailAddressDatatype(OscalBaseModel):
    __root__: EmailStr = Field(..., description='An email address string formatted according to RFC 6531.')
Attributes¤
__root__ = Field(..., description='An email address string formatted according to RFC 6531.') class-attribute instance-attribute ¤

Entry ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Entry[Entry]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Entry
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Entry href "" "trestle.oscal.common.Entry"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an individual risk response that occurred as part of managing an identified risk.

Source code in trestle/oscal/common.py
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
class Entry(OscalBaseModel):
    """
    Identifies an individual risk response that occurred as part of managing an identified risk.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk log entry elsewhere in this or other OSCAL instances. The locally defined UUID of the risk log entry can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Risk Log Entry Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this risk log entry.', title='Title')
    description: str | None = Field(None, description='A human-readable description of what was done regarding the risk.', title='Risk Task Description')
    start: datetime = Field(..., description='Identifies the start date and time of the event.', title='Start')
    end: datetime | None = Field(None, description='Identifies the end date and time of the event. If the event is a point in time, the start and end will be the same date and time.', title='End')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    logged_by: list[LoggedBy] | None = Field(None, alias='logged-by')
    status_change: RiskStatus | None = Field(None, alias='status-change')
    related_responses: list[RelatedResponse] | None = Field(None, alias='related-responses')
    remarks: str | None = None
Attributes¤
description = Field(None, description='A human-readable description of what was done regarding the risk.', title='Risk Task Description') class-attribute instance-attribute ¤
end = Field(None, description='Identifies the end date and time of the event. If the event is a point in time, the start and end will be the same date and time.', title='End') class-attribute instance-attribute ¤
logged_by = Field(None, alias='logged-by') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
related_responses = Field(None, alias='related-responses') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
start = Field(..., description='Identifies the start date and time of the event.', title='Start') class-attribute instance-attribute ¤
status_change = Field(None, alias='status-change') class-attribute instance-attribute ¤
title = Field(None, description='The title for this risk log entry.', title='Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk log entry elsewhere in this or other OSCAL instances. The locally defined UUID of the risk log entry can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Risk Log Entry Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1430
1431
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ExternalId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ExternalId[ExternalId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ExternalId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ExternalId href "" "trestle.oscal.common.ExternalId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An identifier for a person or organization using a designated scheme. e.g. an Open Researcher and Contributor ID (ORCID).

Source code in trestle/oscal/common.py
618
619
620
621
622
623
624
625
626
627
class ExternalId(OscalBaseModel):
    """
    An identifier for a person or organization using a designated scheme. e.g. an Open Researcher and Contributor ID (ORCID).
    """

    class Config:
        extra = Extra.forbid

    scheme: AnyUrl | Scheme = Field(..., description='Indicates the type of external identifier.', title='External Identifier Schema')
    id: constr(regex=r'^\S(.*\S)?$')
Attributes¤
id instance-attribute ¤
scheme = Field(..., description='Indicates the type of external identifier.', title='External Identifier Schema') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
623
624
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Facet ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Facet[Facet]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Facet
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Facet href "" "trestle.oscal.common.Facet"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An individual characteristic that is part of a larger set produced by the same actor.

Source code in trestle/oscal/common.py
681
682
683
684
685
686
687
688
689
690
691
692
693
694
class Facet(OscalBaseModel):
    """
    An individual characteristic that is part of a larger set produced by the same actor.
    """

    class Config:
        extra = Extra.forbid

    name: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description='The name of the risk metric within the specified system.', title='Facet Name')
    system: URIDatatype | NamingSystemValidValues = Field(..., description='Specifies the naming system under which this risk metric is organized, which allows for the same names to be used in different systems controlled by different parties. This avoids the potential of a name clash.', title='Naming System')
    value: constr(regex=r'^\S(.*\S)?$') = Field(..., description='Indicates the value of the facet.', title='Facet Value')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
name = Field(..., description='The name of the risk metric within the specified system.', title='Facet Name') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
system = Field(..., description='Specifies the naming system under which this risk metric is organized, which allows for the same names to be used in different systems controlled by different parties. This avoids the potential of a name clash.', title='Naming System') class-attribute instance-attribute ¤
value = Field(..., description='Indicates the value of the facet.', title='Facet Value') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
686
687
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Finding ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Finding[Finding]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Finding
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Finding href "" "trestle.oscal.common.Finding"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Describes an individual finding.

Source code in trestle/oscal/common.py
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
class Finding(OscalBaseModel):
    """
    Describes an individual finding.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this finding in this or other OSCAL instances. The locally defined UUID of the finding can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Finding Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') = Field(..., description='The title for this finding.', title='Finding Title')
    description: str = Field(..., description='A human-readable description of this finding.', title='Finding Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    origins: list[Origin] | None = Field(None)
    target: FindingTarget
    implementation_statement_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(None, alias='implementation-statement-uuid', description='A machine-oriented identifier reference to the implementation statement in the SSP to which this finding is related.', title='Implementation Statement UUID')
    related_observations: list[RelatedObservation] | None = Field(None, alias='related-observations')
    related_risks: list[AssociatedRisk] | None = Field(None, alias='related-risks')
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this finding.', title='Finding Description') class-attribute instance-attribute ¤
implementation_statement_uuid = Field(None, alias='implementation-statement-uuid', description='A machine-oriented identifier reference to the implementation statement in the SSP to which this finding is related.', title='Implementation Statement UUID') class-attribute instance-attribute ¤
origins = Field(None) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
related_observations = Field(None, alias='related-observations') class-attribute instance-attribute ¤
related_risks = Field(None, alias='related-risks') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
target instance-attribute ¤
title = Field(..., description='The title for this finding.', title='Finding Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this finding in this or other OSCAL instances. The locally defined UUID of the finding can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Finding Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1376
1377
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

FindingTarget ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.FindingTarget[FindingTarget]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.FindingTarget
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.FindingTarget href "" "trestle.oscal.common.FindingTarget"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Captures an assessor's conclusions regarding the degree to which an objective is satisfied.

Source code in trestle/oscal/common.py
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
class FindingTarget(OscalBaseModel):
    """
    Captures an assessor's conclusions regarding the degree to which an objective is satisfied.
    """

    class Config:
        extra = Extra.forbid

    type: FindingTargetTypeValidValues = Field(..., description='Identifies the type of the target.', title='Finding Target Type')
    target_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='target-id', description='A machine-oriented identifier reference for a specific target qualified by the type.', title='Finding Target Identifier Reference')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this objective status.', title='Objective Status Title')
    description: str | None = Field(None, description="A human-readable description of the assessor's conclusions regarding the degree to which an objective is satisfied.", title='Objective Status Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    implementation_status: ImplementationStatus | None = Field(None, alias='implementation-status')
    remarks: str | None = None
    status: ObjectiveStatus | None = Field(None, description='A determination of if the objective is satisfied or not within a given system.', title='Objective Status')
Attributes¤
description = Field(None, description="A human-readable description of the assessor's conclusions regarding the degree to which an objective is satisfied.", title='Objective Status Description') class-attribute instance-attribute ¤
implementation_status = Field(None, alias='implementation-status') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
status = Field(None, description='A determination of if the objective is satisfied or not within a given system.', title='Objective Status') class-attribute instance-attribute ¤
target_id = Field(..., alias='target-id', description='A machine-oriented identifier reference for a specific target qualified by the type.', title='Finding Target Identifier Reference') class-attribute instance-attribute ¤
title = Field(None, description='The title for this objective status.', title='Objective Status Title') class-attribute instance-attribute ¤
type = Field(..., description='Identifies the type of the target.', title='Finding Target Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
847
848
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

FindingTargetTypeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.FindingTargetTypeValidValues[FindingTargetTypeValidValues]

              

              click trestle.oscal.common.FindingTargetTypeValidValues href "" "trestle.oscal.common.FindingTargetTypeValidValues"
            
Source code in trestle/oscal/common.py
142
143
144
class FindingTargetTypeValidValues(Enum):
    statement_id = 'statement-id'
    objective_id = 'objective-id'
Attributes¤
objective_id = 'objective-id' class-attribute instance-attribute ¤
statement_id = 'statement-id' class-attribute instance-attribute ¤

FunctionPerformed ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.FunctionPerformed[FunctionPerformed]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.FunctionPerformed
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.FunctionPerformed href "" "trestle.oscal.common.FunctionPerformed"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
630
631
class FunctionPerformed(OscalBaseModel):
    __root__: StringDatatype = Field(..., description='Describes a function performed for a given authorized privilege by this user class.', title='Functions Performed')
Attributes¤
__root__ = Field(..., description='Describes a function performed for a given authorized privilege by this user class.', title='Functions Performed') class-attribute instance-attribute ¤

Hash ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Hash[Hash]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Hash
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Hash href "" "trestle.oscal.common.Hash"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A representation of a cryptographic digest generated over a resource using a specified hash algorithm.

Source code in trestle/oscal/common.py
634
635
636
637
638
639
640
641
642
643
class Hash(OscalBaseModel):
    """
    A representation of a cryptographic digest generated over a resource using a specified hash algorithm.
    """

    class Config:
        extra = Extra.forbid

    algorithm: constr(regex=r'^\S(.*\S)?$') | Algorithm = Field(..., description='The digest method by which a hash is derived.', title='Hash algorithm')
    value: constr(regex=r'^\S(.*\S)?$')
Attributes¤
algorithm = Field(..., description='The digest method by which a hash is derived.', title='Hash algorithm') class-attribute instance-attribute ¤
value instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
639
640
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

HowManyValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.HowManyValidValues[HowManyValidValues]

              

              click trestle.oscal.common.HowManyValidValues href "" "trestle.oscal.common.HowManyValidValues"
            
Source code in trestle/oscal/common.py
147
148
149
class HowManyValidValues(Enum):
    one = 'one'
    one_or_more = 'one-or-more'
Attributes¤
one = 'one' class-attribute instance-attribute ¤
one_or_more = 'one-or-more' class-attribute instance-attribute ¤

IdentifiedSubject ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.IdentifiedSubject[IdentifiedSubject]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.IdentifiedSubject
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.IdentifiedSubject href "" "trestle.oscal.common.IdentifiedSubject"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to detail assessment subjects that were identified by this task.

Source code in trestle/oscal/common.py
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
class IdentifiedSubject(OscalBaseModel):
    """
    Used to detail assessment subjects that were identified by this task.
    """

    class Config:
        extra = Extra.forbid

    subject_placeholder_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='subject-placeholder-uuid', description='A machine-oriented identifier reference to a unique assessment subject placeholder defined by this task.', title='Assessment Subject Placeholder Universally Unique Identifier Reference')
    subjects: list[AssessmentSubject] = Field(...)
Attributes¤
subject_placeholder_uuid = Field(..., alias='subject-placeholder-uuid', description='A machine-oriented identifier reference to a unique assessment subject placeholder defined by this task.', title='Assessment Subject Placeholder Universally Unique Identifier Reference') class-attribute instance-attribute ¤
subjects = Field(...) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1335
1336
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

IdentifierType ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.IdentifierType[IdentifierType]

              

              click trestle.oscal.common.IdentifierType href "" "trestle.oscal.common.IdentifierType"
            

Identifies the identification system from which the provided identifier was assigned.

Source code in trestle/oscal/common.py
155
156
157
158
159
160
161
162
163
164
class IdentifierType(Enum):
    """
    Identifies the identification system from which the provided identifier was assigned.
    """

    http___fedramp_gov = 'http://fedramp.gov'
    http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal'
    https___ietf_org_rfc_rfc4122 = 'https://ietf.org/rfc/rfc4122'
    http___ietf_org_rfc_rfc4122 = 'http://ietf.org/rfc/rfc4122'
    http___datatracker_ietf_org_doc_html_rfc4122 = 'http://datatracker.ietf.org/doc/html/rfc4122'
Attributes¤
http___datatracker_ietf_org_doc_html_rfc4122 = 'http://datatracker.ietf.org/doc/html/rfc4122' class-attribute instance-attribute ¤
http___fedramp_gov = 'http://fedramp.gov' class-attribute instance-attribute ¤
http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal' class-attribute instance-attribute ¤
http___ietf_org_rfc_rfc4122 = 'http://ietf.org/rfc/rfc4122' class-attribute instance-attribute ¤
https___ietf_org_rfc_rfc4122 = 'https://ietf.org/rfc/rfc4122' class-attribute instance-attribute ¤

ImplementationStatus ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ImplementationStatus[ImplementationStatus]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ImplementationStatus
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ImplementationStatus href "" "trestle.oscal.common.ImplementationStatus"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Indicates the degree to which the a given control is implemented.

Source code in trestle/oscal/common.py
646
647
648
649
650
651
652
653
654
655
class ImplementationStatus(OscalBaseModel):
    """
    Indicates the degree to which the a given control is implemented.
    """

    class Config:
        extra = Extra.forbid

    state: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | State = Field(..., description='Identifies the implementation status of the control or control objective.', title='Implementation State')
    remarks: str | None = None
Attributes¤
remarks = None class-attribute instance-attribute ¤
state = Field(..., description='Identifies the implementation status of the control or control objective.', title='Implementation State') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
651
652
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ImplementedComponent ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ImplementedComponent[ImplementedComponent]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ImplementedComponent
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ImplementedComponent href "" "trestle.oscal.common.ImplementedComponent"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The set of components that are implemented in a given system inventory item.

Source code in trestle/oscal/common.py
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
class ImplementedComponent(OscalBaseModel):
    """
    The set of components that are implemented in a given system inventory item.
    """

    class Config:
        extra = Extra.forbid

    component_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='component-uuid', description='A machine-oriented identifier reference to a component that is implemented as part of an inventory item.', title='Component Universally Unique Identifier Reference')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    remarks: str | None = None
Attributes¤
component_uuid = Field(..., alias='component-uuid', description='A machine-oriented identifier reference to a component that is implemented as part of an inventory item.', title='Component Universally Unique Identifier Reference') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1111
1112
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ImportSsp ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ImportSsp[ImportSsp]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ImportSsp
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ImportSsp href "" "trestle.oscal.common.ImportSsp"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used by the assessment plan and POA&M to import information about the system.

Source code in trestle/oscal/common.py
167
168
169
170
171
172
173
174
175
176
class ImportSsp(OscalBaseModel):
    """
    Used by the assessment plan and POA&M to import information about the system.
    """

    class Config:
        extra = Extra.forbid

    href: str = Field(..., description='A resolvable URL reference to the system security plan for the system being assessed.', title='System Security Plan Reference')
    remarks: str | None = None
Attributes¤
href = Field(..., description='A resolvable URL reference to the system security plan for the system being assessed.', title='System Security Plan Reference') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
172
173
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

IncludeAll ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.IncludeAll[IncludeAll]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.IncludeAll
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.IncludeAll href "" "trestle.oscal.common.IncludeAll"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Include all controls from the imported catalog or profile resources.

Source code in trestle/oscal/common.py
179
180
181
182
183
184
185
class IncludeAll(OscalBaseModel):
    """
    Include all controls from the imported catalog or profile resources.
    """

    class Config:
        extra = Extra.forbid
Classes¤
Config ¤
Source code in trestle/oscal/common.py
184
185
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

IntegerDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.IntegerDatatype[IntegerDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.IntegerDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.IntegerDatatype href "" "trestle.oscal.common.IntegerDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
188
189
class IntegerDatatype(OscalBaseModel):
    __root__: int = Field(..., description='A whole number value.')
Attributes¤
__root__ = Field(..., description='A whole number value.') class-attribute instance-attribute ¤

InventoryItem ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.InventoryItem[InventoryItem]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.InventoryItem
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.InventoryItem href "" "trestle.oscal.common.InventoryItem"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A single managed inventory item within the system.

Source code in trestle/oscal/common.py
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
class InventoryItem(OscalBaseModel):
    """
    A single managed inventory item within the system.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this inventory item elsewhere in this or other OSCAL instances. The locally defined UUID of the inventory item can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Inventory Item Universally Unique Identifier',
    )
    description: str = Field(..., description='A summary of the inventory item stating its purpose within the system.', title='Inventory Item Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    implemented_components: list[ImplementedComponent] | None = Field(None, alias='implemented-components')
    remarks: str | None = None
Attributes¤
description = Field(..., description='A summary of the inventory item stating its purpose within the system.', title='Inventory Item Description') class-attribute instance-attribute ¤
implemented_components = Field(None, alias='implemented-components') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this inventory item elsewhere in this or other OSCAL instances. The locally defined UUID of the inventory item can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Inventory Item Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1126
1127
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

JsonSchemaDirective ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.JsonSchemaDirective[JsonSchemaDirective]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.JsonSchemaDirective
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.JsonSchemaDirective href "" "trestle.oscal.common.JsonSchemaDirective"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
658
659
class JsonSchemaDirective(OscalBaseModel):
    __root__: URIReferenceDatatype = Field(..., description='A JSON Schema directive to bind a specific schema to its document instance.', title='Schema Directive')
Attributes¤
__root__ = Field(..., description='A JSON Schema directive to bind a specific schema to its document instance.', title='Schema Directive') class-attribute instance-attribute ¤

LastModified ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.LastModified[LastModified]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.LastModified
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.LastModified href "" "trestle.oscal.common.LastModified"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
662
663
class LastModified(OscalBaseModel):
    __root__: DateTimeWithTimezoneDatatype = Field(..., description='The date and time the document was last stored for later retrieval.', title='Last Modified Timestamp')
Attributes¤
__root__ = Field(..., description='The date and time the document was last stored for later retrieval.', title='Last Modified Timestamp') class-attribute instance-attribute ¤

Lifecycle ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Lifecycle[Lifecycle]

              

              click trestle.oscal.common.Lifecycle href "" "trestle.oscal.common.Lifecycle"
            

Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.

Source code in trestle/oscal/common.py
192
193
194
195
196
197
198
199
class Lifecycle(Enum):
    """
    Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.
    """

    recommendation = 'recommendation'
    planned = 'planned'
    completed = 'completed'
Attributes¤
completed = 'completed' class-attribute instance-attribute ¤
planned = 'planned' class-attribute instance-attribute ¤
recommendation = 'recommendation' class-attribute instance-attribute ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Link[Link]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Link
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Link href "" "trestle.oscal.common.Link"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A reference to a local or remote resource, that has a specific relation to the containing object.

Source code in trestle/oscal/common.py
666
667
668
669
670
671
672
673
674
675
676
677
678
class Link(OscalBaseModel):
    """
    A reference to a local or remote resource, that has a specific relation to the containing object.
    """

    class Config:
        extra = Extra.forbid

    href: str = Field(..., description='A resolvable URL reference to a resource.', title='Hypertext Reference')
    rel: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Rel | None = Field(None, description="Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.", title='Link Relation Type')
    media_type: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type')
    resource_fragment: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='resource-fragment', description='In case where the href points to a back-matter/resource, this value will indicate the URI fragment to append to any rlink associated with the resource. This value MUST be URI encoded.', title='Resource Fragment')
    text: constr(regex=r'^[^\n]+$') | None = Field(None, description='A textual label to associate with the link, which may be used for presentation in a tool.', title='Link Text')
href = Field(..., description='A resolvable URL reference to a resource.', title='Hypertext Reference') class-attribute instance-attribute ¤
media_type = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type') class-attribute instance-attribute ¤
rel = Field(None, description="Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.", title='Link Relation Type') class-attribute instance-attribute ¤
resource_fragment = Field(None, alias='resource-fragment', description='In case where the href points to a back-matter/resource, this value will indicate the URI fragment to append to any rlink associated with the resource. This value MUST be URI encoded.', title='Resource Fragment') class-attribute instance-attribute ¤
text = Field(None, description='A textual label to associate with the link, which may be used for presentation in a tool.', title='Link Text') class-attribute instance-attribute ¤
Config ¤
Source code in trestle/oscal/common.py
671
672
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

LocalObjective ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.LocalObjective[LocalObjective]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.LocalObjective
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.LocalObjective href "" "trestle.oscal.common.LocalObjective"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.

Source code in trestle/oscal/common.py
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
class LocalObjective(OscalBaseModel):
    """
    A local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.
    """

    class Config:
        extra = Extra.forbid

    control_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='control-id', description='A reference to a control with a corresponding id value. When referencing an externally defined control, the Control Identifier Reference must be used in the context of the external / imported OSCAL instance (e.g., uri-reference).', title='Control Identifier Reference')
    description: str | None = Field(None, description='A human-readable description of this control objective.', title='Objective Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    parts: list[Part] = Field(...)
    remarks: str | None = None
Attributes¤
control_id = Field(..., alias='control-id', description='A reference to a control with a corresponding id value. When referencing an externally defined control, the Control Identifier Reference must be used in the context of the external / imported OSCAL instance (e.g., uri-reference).', title='Control Identifier Reference') class-attribute instance-attribute ¤
description = Field(None, description='A human-readable description of this control objective.', title='Objective Description') class-attribute instance-attribute ¤
parts = Field(...) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1021
1022
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Location ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Location[Location]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Location
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Location href "" "trestle.oscal.common.Location"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.

Source code in trestle/oscal/common.py
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
class Location(OscalBaseModel):
    """
    A physical point of presence, which may be associated with people, organizations, or other concepts within the current or linked OSCAL document.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., description='A unique ID for the location, for reference.', title='Location Universally Unique Identifier')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='A name given to the location, which may be used by a tool for display and navigation.', title='Location Title')
    address: Address | None = None
    email_addresses: list[EmailStr] | None = Field(None, alias='email-addresses')
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers')
    urls: list[AnyUrl] | None = Field(None)
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
address = None class-attribute instance-attribute ¤
email_addresses = Field(None, alias='email-addresses') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
telephone_numbers = Field(None, alias='telephone-numbers') class-attribute instance-attribute ¤
title = Field(None, description='A name given to the location, which may be used by a tool for display and navigation.', title='Location Title') class-attribute instance-attribute ¤
urls = Field(None) class-attribute instance-attribute ¤
uuid = Field(..., description='A unique ID for the location, for reference.', title='Location Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1749
1750
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

LocationUuid ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.LocationUuid[LocationUuid]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.LocationUuid
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.LocationUuid href "" "trestle.oscal.common.LocationUuid"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
825
826
class LocationUuid(OscalBaseModel):
    __root__: UUIDDatatype = Field(..., description='Reference to a location by UUID.', title='Location Universally Unique Identifier Reference')
Attributes¤
__root__ = Field(..., description='Reference to a location by UUID.', title='Location Universally Unique Identifier Reference') class-attribute instance-attribute ¤

LoggedBy ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.LoggedBy[LoggedBy]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.LoggedBy
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.LoggedBy href "" "trestle.oscal.common.LoggedBy"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to indicate who created a log entry in what role.

Source code in trestle/oscal/common.py
202
203
204
205
206
207
208
209
210
211
212
class LoggedBy(OscalBaseModel):
    """
    Used to indicate who created a log entry in what role.
    """

    class Config:
        extra = Extra.forbid

    party_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='party-uuid', description='A machine-oriented identifier reference to the party who is making the log entry.', title='Party UUID Reference')
    role_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='role-id', description='A point to the role-id of the role in which the party is making the log entry.', title='Actor Role')
    remarks: str | None = None
Attributes¤
party_uuid = Field(..., alias='party-uuid', description='A machine-oriented identifier reference to the party who is making the log entry.', title='Party UUID Reference') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
role_id = Field(None, alias='role-id', description='A point to the role-id of the role in which the party is making the log entry.', title='Actor Role') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
207
208
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

MarkupLineDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.MarkupLineDatatype[MarkupLineDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.MarkupLineDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.MarkupLineDatatype href "" "trestle.oscal.common.MarkupLineDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
215
216
class MarkupLineDatatype(OscalBaseModel):
    __root__: constr(regex=r'^[^\n]+$') = Field(..., description='A single line of Markdown content conformant to the Commonmark specification.')
Attributes¤
__root__ = Field(..., description='A single line of Markdown content conformant to the Commonmark specification.') class-attribute instance-attribute ¤

MarkupMultilineDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.MarkupMultilineDatatype[MarkupMultilineDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.MarkupMultilineDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.MarkupMultilineDatatype href "" "trestle.oscal.common.MarkupMultilineDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
219
220
class MarkupMultilineDatatype(OscalBaseModel):
    __root__: str = Field(..., description='A multiple lines of Markdown content conformant to the Commonmark specification.')
Attributes¤
__root__ = Field(..., description='A multiple lines of Markdown content conformant to the Commonmark specification.') class-attribute instance-attribute ¤

Matching ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Matching[Matching]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Matching
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Matching href "" "trestle.oscal.common.Matching"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Selecting a set of controls by matching their IDs with a wildcard pattern.

Source code in trestle/oscal/common.py
223
224
225
226
227
228
229
230
231
232
class Matching(OscalBaseModel):
    """
    Selecting a set of controls by matching their IDs with a wildcard pattern.
    """

    class Config:
        extra = Extra.forbid

    pattern: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='A glob expression matching the IDs of one or more controls to be selected.', title='Pattern')
    remarks: str | None = None
Attributes¤
pattern = Field(None, description='A glob expression matching the IDs of one or more controls to be selected.', title='Pattern') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
228
229
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Metadata ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Metadata[Metadata]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Metadata
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Metadata href "" "trestle.oscal.common.Metadata"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Provides information about the containing document, and defines concepts that are shared across the document.

Source code in trestle/oscal/common.py
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
class Metadata(OscalBaseModel):
    """
    Provides information about the containing document, and defines concepts that are shared across the document.
    """

    class Config:
        extra = Extra.forbid

    title: constr(regex=r'^[^\n]+$') = Field(..., description='A name given to the document, which may be used by a tool for display and navigation.', title='Document Title')
    published: datetime | None = None
    last_modified: datetime = Field(..., alias='last-modified')
    version: constr(regex=r'^\S(.*\S)?$')
    oscal_version: OscalVersion = Field(..., alias='oscal-version')
    revisions: list[Revision] | None = Field(None)
    document_ids: list[DocumentId] | None = Field(None, alias='document-ids')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    roles: list[Role] | None = Field(None)
    locations: list[Location] | None = Field(None)
    parties: list[Parties | Parties1] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    actions: list[Action] | None = Field(None)
    remarks: str | None = None
Attributes¤
actions = Field(None) class-attribute instance-attribute ¤
document_ids = Field(None, alias='document-ids') class-attribute instance-attribute ¤
last_modified = Field(..., alias='last-modified') class-attribute instance-attribute ¤
locations = Field(None) class-attribute instance-attribute ¤
oscal_version = Field(..., alias='oscal-version') class-attribute instance-attribute ¤
parties = Field(None) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
published = None class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
revisions = Field(None) class-attribute instance-attribute ¤
roles = Field(None) class-attribute instance-attribute ¤
title = Field(..., description='A name given to the document, which may be used by a tool for display and navigation.', title='Document Title') class-attribute instance-attribute ¤
version instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1768
1769
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Methods ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Methods[Methods]

              

              click trestle.oscal.common.Methods href "" "trestle.oscal.common.Methods"
            

Identifies how the observation was made.

Source code in trestle/oscal/common.py
235
236
237
238
239
240
241
242
243
class Methods(Enum):
    """
    Identifies how the observation was made.
    """

    EXAMINE = 'EXAMINE'
    INTERVIEW = 'INTERVIEW'
    TEST = 'TEST'
    UNKNOWN = 'UNKNOWN'
Attributes¤
EXAMINE = 'EXAMINE' class-attribute instance-attribute ¤
INTERVIEW = 'INTERVIEW' class-attribute instance-attribute ¤
TEST = 'TEST' class-attribute instance-attribute ¤
UNKNOWN = 'UNKNOWN' class-attribute instance-attribute ¤

MitigatingFactor ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.MitigatingFactor[MitigatingFactor]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.MitigatingFactor
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.MitigatingFactor href "" "trestle.oscal.common.MitigatingFactor"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Describes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.

Source code in trestle/oscal/common.py
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
class MitigatingFactor(OscalBaseModel):
    """
    Describes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mitigating factor elsewhere in this or other OSCAL instances. The locally defined UUID of the mitigating factor can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Mitigating Factor Universally Unique Identifier',
    )
    implementation_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(
        None,
        alias='implementation-uuid',
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this implementation statement elsewhere in this or other OSCAL instancess. The locally defined UUID of the implementation statement can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Implementation UUID',
    )
    description: str = Field(..., description='A human-readable description of this mitigating factor.', title='Mitigating Factor Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    subjects: list[SubjectReference] | None = Field(None)
Attributes¤
description = Field(..., description='A human-readable description of this mitigating factor.', title='Mitigating Factor Description') class-attribute instance-attribute ¤
implementation_uuid = Field(None, alias='implementation-uuid', description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this implementation statement elsewhere in this or other OSCAL instancess. The locally defined UUID of the implementation statement can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Implementation UUID') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
subjects = Field(None) class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mitigating factor elsewhere in this or other OSCAL instances. The locally defined UUID of the mitigating factor can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Mitigating Factor Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1603
1604
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Name ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Name[Name]

              

              click trestle.oscal.common.Name href "" "trestle.oscal.common.Name"
            

A textual label that uniquely identifies the part's semantic type.

Source code in trestle/oscal/common.py
246
247
248
249
250
251
252
253
class Name(Enum):
    """
    A textual label that uniquely identifies the part's semantic type.
    """

    asset = 'asset'
    method = 'method'
    objective = 'objective'
Attributes¤
asset = 'asset' class-attribute instance-attribute ¤
method = 'method' class-attribute instance-attribute ¤
objective = 'objective' class-attribute instance-attribute ¤

NamingSystemValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.NamingSystemValidValues[NamingSystemValidValues]

              

              click trestle.oscal.common.NamingSystemValidValues href "" "trestle.oscal.common.NamingSystemValidValues"
            
Source code in trestle/oscal/common.py
256
257
258
259
260
261
262
263
264
265
class NamingSystemValidValues(Enum):
    http___fedramp_gov = 'http://fedramp.gov'
    http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal'
    http___csrc_nist_gov_ns_oscal = 'http://csrc.nist.gov/ns/oscal'
    http___csrc_nist_gov_ns_oscal_unknown = 'http://csrc.nist.gov/ns/oscal/unknown'
    http___cve_mitre_org = 'http://cve.mitre.org'
    http___www_first_org_cvss_v2_0 = 'http://www.first.org/cvss/v2.0'
    http___www_first_org_cvss_v3_0 = 'http://www.first.org/cvss/v3.0'
    http___www_first_org_cvss_v3_1 = 'http://www.first.org/cvss/v3.1'
    https___www_first_org_cvss_v4_0 = 'https://www.first.org/cvss/v4-0'
Attributes¤
http___csrc_nist_gov_ns_oscal = 'http://csrc.nist.gov/ns/oscal' class-attribute instance-attribute ¤
http___csrc_nist_gov_ns_oscal_unknown = 'http://csrc.nist.gov/ns/oscal/unknown' class-attribute instance-attribute ¤
http___cve_mitre_org = 'http://cve.mitre.org' class-attribute instance-attribute ¤
http___fedramp_gov = 'http://fedramp.gov' class-attribute instance-attribute ¤
http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal' class-attribute instance-attribute ¤
http___www_first_org_cvss_v2_0 = 'http://www.first.org/cvss/v2.0' class-attribute instance-attribute ¤
http___www_first_org_cvss_v3_0 = 'http://www.first.org/cvss/v3.0' class-attribute instance-attribute ¤
http___www_first_org_cvss_v3_1 = 'http://www.first.org/cvss/v3.1' class-attribute instance-attribute ¤
https___www_first_org_cvss_v4_0 = 'https://www.first.org/cvss/v4-0' class-attribute instance-attribute ¤

NonNegativeIntegerDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.NonNegativeIntegerDatatype[NonNegativeIntegerDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.NonNegativeIntegerDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.NonNegativeIntegerDatatype href "" "trestle.oscal.common.NonNegativeIntegerDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
268
269
class NonNegativeIntegerDatatype(OscalBaseModel):
    __root__: conint(ge=0) = Field(..., description='An integer value that is equal to or greater than 0.')
Attributes¤
__root__ = Field(..., description='An integer value that is equal to or greater than 0.') class-attribute instance-attribute ¤

ObjectiveStatus ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ObjectiveStatus[ObjectiveStatus]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ObjectiveStatus
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ObjectiveStatus href "" "trestle.oscal.common.ObjectiveStatus"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A determination of if the objective is satisfied or not within a given system.

Source code in trestle/oscal/common.py
829
830
831
832
833
834
835
836
837
838
839
class ObjectiveStatus(OscalBaseModel):
    """
    A determination of if the objective is satisfied or not within a given system.
    """

    class Config:
        extra = Extra.forbid

    state: ObjectiveStatusStateValidValues = Field(..., description='An indication as to whether the objective is satisfied or not.', title='Objective Status State')
    reason: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Reason | None = Field(None, description="The reason the objective was given it's status.", title='Objective Status Reason')
    remarks: str | None = None
Attributes¤
reason = Field(None, description="The reason the objective was given it's status.", title='Objective Status Reason') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
state = Field(..., description='An indication as to whether the objective is satisfied or not.', title='Objective Status State') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
834
835
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ObjectiveStatusStateValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.ObjectiveStatusStateValidValues[ObjectiveStatusStateValidValues]

              

              click trestle.oscal.common.ObjectiveStatusStateValidValues href "" "trestle.oscal.common.ObjectiveStatusStateValidValues"
            
Source code in trestle/oscal/common.py
272
273
274
class ObjectiveStatusStateValidValues(Enum):
    satisfied = 'satisfied'
    not_satisfied = 'not-satisfied'
Attributes¤
not_satisfied = 'not-satisfied' class-attribute instance-attribute ¤
satisfied = 'satisfied' class-attribute instance-attribute ¤

Observation ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Observation[Observation]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Observation
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Observation href "" "trestle.oscal.common.Observation"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Describes an individual observation.

Source code in trestle/oscal/common.py
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
class Observation(OscalBaseModel):
    """
    Describes an individual observation.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this observation elsewhere in this or other OSCAL instances. The locally defined UUID of the observation can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Observation Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this observation.', title='Observation Title')
    description: str = Field(..., description='A human-readable description of this assessment observation.', title='Observation Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    methods: list[constr(regex=r'^\S(.*\S)?$') | Methods] = Field(...)
    types: list[constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | ObservationTypeValidValues] | None = Field(None)
    origins: list[Origin] | None = Field(None)
    subjects: list[SubjectReference] | None = Field(None)
    relevant_evidence: list[RelevantEvidence] | None = Field(None, alias='relevant-evidence')
    collected: datetime = Field(..., description='Date/time stamp identifying when the finding information was collected.', title='Collected Field')
    expires: datetime | None = Field(None, description='Date/time identifying when the finding information is out-of-date and no longer valid. Typically used with continuous assessment scenarios.', title='Expires Field')
    remarks: str | None = None
Attributes¤
collected = Field(..., description='Date/time stamp identifying when the finding information was collected.', title='Collected Field') class-attribute instance-attribute ¤
description = Field(..., description='A human-readable description of this assessment observation.', title='Observation Description') class-attribute instance-attribute ¤
expires = Field(None, description='Date/time identifying when the finding information is out-of-date and no longer valid. Typically used with continuous assessment scenarios.', title='Expires Field') class-attribute instance-attribute ¤
methods = Field(...) class-attribute instance-attribute ¤
origins = Field(None) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
relevant_evidence = Field(None, alias='relevant-evidence') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subjects = Field(None) class-attribute instance-attribute ¤
title = Field(None, description='The title for this observation.', title='Observation Title') class-attribute instance-attribute ¤
types = Field(None) class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this observation elsewhere in this or other OSCAL instances. The locally defined UUID of the observation can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Observation Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1576
1577
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ObservationTypeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.ObservationTypeValidValues[ObservationTypeValidValues]

              

              click trestle.oscal.common.ObservationTypeValidValues href "" "trestle.oscal.common.ObservationTypeValidValues"
            
Source code in trestle/oscal/common.py
277
278
279
280
281
282
283
class ObservationTypeValidValues(Enum):
    ssp_statement_issue = 'ssp-statement-issue'
    control_objective = 'control-objective'
    mitigation = 'mitigation'
    finding = 'finding'
    discovery = 'discovery'
    historic = 'historic'
Attributes¤
control_objective = 'control-objective' class-attribute instance-attribute ¤
discovery = 'discovery' class-attribute instance-attribute ¤
finding = 'finding' class-attribute instance-attribute ¤
historic = 'historic' class-attribute instance-attribute ¤
mitigation = 'mitigation' class-attribute instance-attribute ¤
ssp_statement_issue = 'ssp-statement-issue' class-attribute instance-attribute ¤

OnDate ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.OnDate[OnDate]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.OnDate
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.OnDate href "" "trestle.oscal.common.OnDate"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The task is intended to occur on the specified date.

Source code in trestle/oscal/common.py
286
287
288
289
290
291
292
293
294
295
class OnDate(OscalBaseModel):
    """
    The task is intended to occur on the specified date.
    """

    class Config:
        extra = Extra.forbid

    date: datetime = Field(..., description='The task must occur on the specified date.', title='On Date Condition')
    remarks: str | None = None
Attributes¤
date = Field(..., description='The task must occur on the specified date.', title='On Date Condition') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
291
292
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Origin ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Origin[Origin]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Origin
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Origin href "" "trestle.oscal.common.Origin"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the source of the finding, such as a tool, interviewed person, or activity.

Source code in trestle/oscal/common.py
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
class Origin(OscalBaseModel):
    """
    Identifies the source of the finding, such as a tool, interviewed person, or activity.
    """

    class Config:
        extra = Extra.forbid

    actors: list[OriginActor] = Field(...)
    related_tasks: list[RelatedTask] | None = Field(None, alias='related-tasks')
Attributes¤
actors = Field(...) class-attribute instance-attribute ¤
related_tasks = Field(None, alias='related-tasks') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1364
1365
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

OriginActor ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.OriginActor[OriginActor]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.OriginActor
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.OriginActor href "" "trestle.oscal.common.OriginActor"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.

Source code in trestle/oscal/common.py
861
862
863
864
865
866
867
868
869
870
871
872
873
class OriginActor(OscalBaseModel):
    """
    The actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.
    """

    class Config:
        extra = Extra.forbid

    type: OriginActorValidValues = Field(..., description='The kind of actor.', title='Actor Type')
    actor_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='actor-uuid', description='A machine-oriented identifier reference to the tool or person based on the associated type.', title='Actor Universally Unique Identifier Reference')
    role_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='role-id', description='For a party, this can optionally be used to specify the role the actor was performing.', title='Actor Role')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
Attributes¤
actor_uuid = Field(..., alias='actor-uuid', description='A machine-oriented identifier reference to the tool or person based on the associated type.', title='Actor Universally Unique Identifier Reference') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
role_id = Field(None, alias='role-id', description='For a party, this can optionally be used to specify the role the actor was performing.', title='Actor Role') class-attribute instance-attribute ¤
type = Field(..., description='The kind of actor.', title='Actor Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
866
867
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

OriginActorValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.OriginActorValidValues[OriginActorValidValues]

              

              click trestle.oscal.common.OriginActorValidValues href "" "trestle.oscal.common.OriginActorValidValues"
            
Source code in trestle/oscal/common.py
298
299
300
301
class OriginActorValidValues(Enum):
    tool = 'tool'
    assessment_platform = 'assessment-platform'
    party = 'party'
Attributes¤
assessment_platform = 'assessment-platform' class-attribute instance-attribute ¤
party = 'party' class-attribute instance-attribute ¤
tool = 'tool' class-attribute instance-attribute ¤

OscalVersion ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.OscalVersion[OscalVersion]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.OscalVersion
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.OscalVersion href "" "trestle.oscal.common.OscalVersion"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
class OscalVersion(OscalBaseModel):
    __root__: constr(regex=r'^\S(.*\S)?$') = Field(..., description='The OSCAL model version the document was authored against and will conform to as valid.', title='OSCAL Version')




    @validator('__root__')
    def oscal_version_is_valid(cls, v):
        strict_version = False
        if not strict_version:
            return v
        p = re.compile(OSCAL_VERSION_REGEX)
        matched = p.match(v)
        if matched is None:
            raise ValueError(f'OSCAL version: {v} is not supported, use {OSCAL_VERSION} instead.')
        return v
Attributes¤
__root__ = Field(..., description='The OSCAL model version the document was authored against and will conform to as valid.', title='OSCAL Version') class-attribute instance-attribute ¤
Functions¤
oscal_version_is_valid(v) ¤
Source code in trestle/oscal/common.py
310
311
312
313
314
315
316
317
318
319
@validator('__root__')
def oscal_version_is_valid(cls, v):
    strict_version = False
    if not strict_version:
        return v
    p = re.compile(OSCAL_VERSION_REGEX)
    matched = p.match(v)
    if matched is None:
        raise ValueError(f'OSCAL version: {v} is not supported, use {OSCAL_VERSION} instead.')
    return v

Parameter1 ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Parameter1[Parameter1]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Parameter1
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Parameter1 href "" "trestle.oscal.common.Parameter1"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Parameters provide a mechanism for the dynamic assignment of value(s) in a control.

Source code in trestle/oscal/common.py
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
class Parameter1(OscalBaseModel):
    """
    Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
    """

    class Config:
        extra = Extra.forbid

    id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, description='A unique identifier for the parameter.', title='Parameter Identifier')
    class_: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='class', description='A textual label that provides a characterization of the type, purpose, use or scope of the parameter.', title='Parameter Class')
    depends_on: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='depends-on', description='(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.', title='Depends on')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    label: constr(regex=r'^[^\n]+$') | None = Field(None, description='A short, placeholder name for the parameter, which can be used as a substitute for a value if no value is assigned.', title='Parameter Label')
    usage: str | None = Field(None, description='Describes the purpose and use of a parameter.', title='Parameter Usage Description')
    constraints: list[ParameterConstraint] | None = Field(None)
    guidelines: list[ParameterGuideline] | None = Field(None)
    values: list[constr(regex=r'^\S(.*\S)?$')] | None = Field(None)
    remarks: str | None = None



    @classmethod
    def __get_validators__(cls):
        yield cls._smart_union_validator

    @classmethod
    def _smart_union_validator(cls, v):
        """Smart validator that chooses Parameter1 if data has values, otherwise tries Parameter2."""
        if isinstance(v, dict):
            # If dict has 'values' field, use Parameter1
            if 'values' in v:
                return cls.parse_obj(v)
            # If dict has 'select' field, use Parameter2
            elif 'select' in v:
                return Parameter2.parse_obj(v)
        # For non-dict or ambiguous cases, try Parameter1 first (this class)
        try:
            return cls.parse_obj(v) if isinstance(v, dict) else v
        except Exception:
            # If Parameter1 fails, try Parameter2
            return Parameter2.parse_obj(v) if isinstance(v, dict) else v
Attributes¤
class_ = Field(None, alias='class', description='A textual label that provides a characterization of the type, purpose, use or scope of the parameter.', title='Parameter Class') class-attribute instance-attribute ¤
constraints = Field(None) class-attribute instance-attribute ¤
depends_on = Field(None, alias='depends-on', description='(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.', title='Depends on') class-attribute instance-attribute ¤
guidelines = Field(None) class-attribute instance-attribute ¤
id = Field(None, description='A unique identifier for the parameter.', title='Parameter Identifier') class-attribute instance-attribute ¤
label = Field(None, description='A short, placeholder name for the parameter, which can be used as a substitute for a value if no value is assigned.', title='Parameter Label') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
usage = Field(None, description='Describes the purpose and use of a parameter.', title='Parameter Usage Description') class-attribute instance-attribute ¤
values = Field(None) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
893
894
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤
Functions¤
__get_validators__() classmethod ¤
Source code in trestle/oscal/common.py
910
911
912
@classmethod
def __get_validators__(cls):
    yield cls._smart_union_validator

Parameter2 ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Parameter2[Parameter2]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Parameter2
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Parameter2 href "" "trestle.oscal.common.Parameter2"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Parameters provide a mechanism for the dynamic assignment of value(s) in a control.

Source code in trestle/oscal/common.py
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
class Parameter2(OscalBaseModel):
    """
    Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
    """

    class Config:
        extra = Extra.forbid

    id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, description='A unique identifier for the parameter.', title='Parameter Identifier')
    class_: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='class', description='A textual label that provides a characterization of the type, purpose, use or scope of the parameter.', title='Parameter Class')
    depends_on: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='depends-on', description='(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.', title='Depends on')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    label: constr(regex=r'^[^\n]+$') | None = Field(None, description='A short, placeholder name for the parameter, which can be used as a substitute for a value if no value is assigned.', title='Parameter Label')
    usage: str | None = Field(None, description='Describes the purpose and use of a parameter.', title='Parameter Usage Description')
    constraints: list[ParameterConstraint] | None = Field(None)
    guidelines: list[ParameterGuideline] | None = Field(None)
    select: ParameterSelection | None = None
    remarks: str | None = None



    @classmethod
    def __get_validators__(cls):
        yield cls._smart_union_validator

    @classmethod
    def _smart_union_validator(cls, v):
        """Smart validator that chooses Parameter2 if data has select, otherwise tries Parameter1."""
        if isinstance(v, dict):
            # If dict has 'select' field, use Parameter2
            if 'select' in v:
                return cls.parse_obj(v)
            # If dict has 'values' field, use Parameter1
            elif 'values' in v:
                return Parameter1.parse_obj(v)
        # For non-dict or ambiguous cases, try Parameter2 first (this class)
        try:
            return cls.parse_obj(v) if isinstance(v, dict) else v
        except Exception:
            # If Parameter2 fails, try Parameter1
            return Parameter1.parse_obj(v) if isinstance(v, dict) else v
Attributes¤
class_ = Field(None, alias='class', description='A textual label that provides a characterization of the type, purpose, use or scope of the parameter.', title='Parameter Class') class-attribute instance-attribute ¤
constraints = Field(None) class-attribute instance-attribute ¤
depends_on = Field(None, alias='depends-on', description='(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.', title='Depends on') class-attribute instance-attribute ¤
guidelines = Field(None) class-attribute instance-attribute ¤
id = Field(None, description='A unique identifier for the parameter.', title='Parameter Identifier') class-attribute instance-attribute ¤
label = Field(None, description='A short, placeholder name for the parameter, which can be used as a substitute for a value if no value is assigned.', title='Parameter Label') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
select = None class-attribute instance-attribute ¤
usage = Field(None, description='Describes the purpose and use of a parameter.', title='Parameter Usage Description') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
949
950
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤
Functions¤
__get_validators__() classmethod ¤
Source code in trestle/oscal/common.py
966
967
968
@classmethod
def __get_validators__(cls):
    yield cls._smart_union_validator

ParameterConstraint ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ParameterConstraint[ParameterConstraint]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ParameterConstraint
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ParameterConstraint href "" "trestle.oscal.common.ParameterConstraint"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A formal or informal expression of a constraint or test.

Source code in trestle/oscal/common.py
876
877
878
879
880
881
882
883
884
885
class ParameterConstraint(OscalBaseModel):
    """
    A formal or informal expression of a constraint or test.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A textual summary of the constraint to be applied.', title='Constraint Description')
    tests: list[Test] | None = Field(None)
Attributes¤
description = Field(None, description='A textual summary of the constraint to be applied.', title='Constraint Description') class-attribute instance-attribute ¤
tests = Field(None) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
881
882
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ParameterGuideline ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ParameterGuideline[ParameterGuideline]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ParameterGuideline
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ParameterGuideline href "" "trestle.oscal.common.ParameterGuideline"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A prose statement that provides a recommendation for the use of a parameter.

Source code in trestle/oscal/common.py
321
322
323
324
325
326
327
328
329
class ParameterGuideline(OscalBaseModel):
    """
    A prose statement that provides a recommendation for the use of a parameter.
    """

    class Config:
        extra = Extra.forbid

    prose: str = Field(..., description='Prose permits multiple paragraphs, lists, tables etc.', title='Guideline Text')
Attributes¤
prose = Field(..., description='Prose permits multiple paragraphs, lists, tables etc.', title='Guideline Text') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
326
327
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ParameterSelection ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ParameterSelection[ParameterSelection]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ParameterSelection
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ParameterSelection href "" "trestle.oscal.common.ParameterSelection"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Presenting a choice among alternatives.

Source code in trestle/oscal/common.py
932
933
934
935
936
937
938
939
940
941
class ParameterSelection(OscalBaseModel):
    """
    Presenting a choice among alternatives.
    """

    class Config:
        extra = Extra.forbid

    how_many: HowManyValidValues | None = Field(None, alias='how-many', description='Describes the number of selections that must occur. Without this setting, only one value should be assumed to be permitted.', title='Parameter Cardinality')
    choice: list[constr(regex=r'^[^\n]+$')] | None = Field(None)
Attributes¤
choice = Field(None) class-attribute instance-attribute ¤
how_many = Field(None, alias='how-many', description='Describes the number of selections that must occur. Without this setting, only one value should be assumed to be permitted.', title='Parameter Cardinality') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
937
938
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ParameterValue ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ParameterValue[ParameterValue]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ParameterValue
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ParameterValue href "" "trestle.oscal.common.ParameterValue"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
993
994
class ParameterValue(OscalBaseModel):
    __root__: StringDatatype = Field(..., description='A parameter value or set of values.', title='Parameter Value')
Attributes¤
__root__ = Field(..., description='A parameter value or set of values.', title='Parameter Value') class-attribute instance-attribute ¤

Part ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Part[Part]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Part
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Part href "" "trestle.oscal.common.Part"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.

Source code in trestle/oscal/common.py
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
class Part(OscalBaseModel):
    """
    An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
    """

    class Config:
        extra = Extra.forbid

    id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, description='A unique identifier for the part.', title='Part Identifier')
    name: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description="A textual label that uniquely identifies the part's semantic type, which exists in a value space qualified by the ns.", title='Part Name')
    ns: AnyUrl | None = Field(None, description="An optional namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.", title='Part Namespace')
    class_: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='class', description="An optional textual providing a sub-type or characterization of the part's name, or a category to which the part belongs.", title='Part Class')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='An optional name given to the part, which may be used by a tool for display and navigation.', title='Part Title')
    props: list[Property] | None = Field(None)
    prose: str | None = Field(None, description='Permits multiple paragraphs, lists, tables etc.', title='Part Text')
    parts: list[Part] | None = None
    links: list[Link] | None = Field(None)
Attributes¤
class_ = Field(None, alias='class', description="An optional textual providing a sub-type or characterization of the part's name, or a category to which the part belongs.", title='Part Class') class-attribute instance-attribute ¤
id = Field(None, description='A unique identifier for the part.', title='Part Identifier') class-attribute instance-attribute ¤
name = Field(..., description="A textual label that uniquely identifies the part's semantic type, which exists in a value space qualified by the ns.", title='Part Name') class-attribute instance-attribute ¤
ns = Field(None, description="An optional namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.", title='Part Namespace') class-attribute instance-attribute ¤
parts = None class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
prose = Field(None, description='Permits multiple paragraphs, lists, tables etc.', title='Part Text') class-attribute instance-attribute ¤
title = Field(None, description='An optional name given to the part, which may be used by a tool for display and navigation.', title='Part Title') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1002
1003
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Parties ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Parties[Parties]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Parties
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Parties href "" "trestle.oscal.common.Parties"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.

Source code in trestle/oscal/common.py
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
class Parties(OscalBaseModel):
    """
    An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(None, description='A unique identifier for the party.', title='Party Universally Unique Identifier')
    type: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='A category describing the kind of party the object describes.', title='Party Type')
    name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='The full name of the party. This is typically the legal name associated with the party.', title='Party Name')
    short_name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the party.', title='Party Short Name')
    external_ids: list[ExternalId] | None = Field(None, alias='external-ids')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    email_addresses: list[EmailStr] | None = Field(None, alias='email-addresses')
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers')
    addresses: list[Address] | None = Field(None)
    member_of_organizations: list[constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$')] | None = Field(None, alias='member-of-organizations')
    remarks: str | None = None
Attributes¤
addresses = Field(None) class-attribute instance-attribute ¤
email_addresses = Field(None, alias='email-addresses') class-attribute instance-attribute ¤
external_ids = Field(None, alias='external-ids') class-attribute instance-attribute ¤
member_of_organizations = Field(None, alias='member-of-organizations') class-attribute instance-attribute ¤
name = Field(None, description='The full name of the party. This is typically the legal name associated with the party.', title='Party Name') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
short_name = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the party.', title='Party Short Name') class-attribute instance-attribute ¤
telephone_numbers = Field(None, alias='telephone-numbers') class-attribute instance-attribute ¤
type = Field(None, description='A category describing the kind of party the object describes.', title='Party Type') class-attribute instance-attribute ¤
uuid = Field(None, description='A unique identifier for the party.', title='Party Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1722
1723
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Parties1 ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Parties1[Parties1]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Parties1
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Parties1 href "" "trestle.oscal.common.Parties1"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.

Source code in trestle/oscal/common.py
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
class Parties1(OscalBaseModel):
    """
    An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(None, description='A unique identifier for the party.', title='Party Universally Unique Identifier')
    type: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='A category describing the kind of party the object describes.', title='Party Type')
    name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='The full name of the party. This is typically the legal name associated with the party.', title='Party Name')
    short_name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the party.', title='Party Short Name')
    external_ids: list[ExternalId] | None = Field(None, alias='external-ids')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    email_addresses: list[EmailStr] | None = Field(None, alias='email-addresses')
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers')
    location_uuids: list[constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$')] | None = Field(None, alias='location-uuids')
    member_of_organizations: list[constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$')] | None = Field(None, alias='member-of-organizations')
    remarks: str | None = None
Attributes¤
email_addresses = Field(None, alias='email-addresses') class-attribute instance-attribute ¤
external_ids = Field(None, alias='external-ids') class-attribute instance-attribute ¤
location_uuids = Field(None, alias='location-uuids') class-attribute instance-attribute ¤
member_of_organizations = Field(None, alias='member-of-organizations') class-attribute instance-attribute ¤
name = Field(None, description='The full name of the party. This is typically the legal name associated with the party.', title='Party Name') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
short_name = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the party.', title='Party Short Name') class-attribute instance-attribute ¤
telephone_numbers = Field(None, alias='telephone-numbers') class-attribute instance-attribute ¤
type = Field(None, description='A category describing the kind of party the object describes.', title='Party Type') class-attribute instance-attribute ¤
uuid = Field(None, description='A unique identifier for the party.', title='Party Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1700
1701
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

PartyUuid ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.PartyUuid[PartyUuid]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.PartyUuid
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.PartyUuid href "" "trestle.oscal.common.PartyUuid"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1032
1033
class PartyUuid(OscalBaseModel):
    __root__: UUIDDatatype = Field(..., description='Reference to a party by UUID.', title='Party Universally Unique Identifier Reference')
Attributes¤
__root__ = Field(..., description='Reference to a party by UUID.', title='Party Universally Unique Identifier Reference') class-attribute instance-attribute ¤

PortRange ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.PortRange[PortRange]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.PortRange
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.PortRange href "" "trestle.oscal.common.PortRange"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.

Source code in trestle/oscal/common.py
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
class PortRange(OscalBaseModel):
    """
    Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.
    """

    class Config:
        extra = Extra.forbid

    start: conint(ge=0, multiple_of=1) | None = Field(None, description='Indicates the starting port number in a port range for a transport layer protocol', title='Start')
    end: conint(ge=0, multiple_of=1) | None = Field(None, description='Indicates the ending port number in a port range for a transport layer protocol', title='End')
    transport: PortRangeValidValues | None = Field(None, description='Indicates the transport type.', title='Transport')
    remarks: str | None = None
Attributes¤
end = Field(None, description='Indicates the ending port number in a port range for a transport layer protocol', title='End') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
start = Field(None, description='Indicates the starting port number in a port range for a transport layer protocol', title='Start') class-attribute instance-attribute ¤
transport = Field(None, description='Indicates the transport type.', title='Transport') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1041
1042
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

PortRangeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.PortRangeValidValues[PortRangeValidValues]

              

              click trestle.oscal.common.PortRangeValidValues href "" "trestle.oscal.common.PortRangeValidValues"
            
Source code in trestle/oscal/common.py
332
333
334
class PortRangeValidValues(Enum):
    TCP = 'TCP'
    UDP = 'UDP'
Attributes¤
TCP = 'TCP' class-attribute instance-attribute ¤
UDP = 'UDP' class-attribute instance-attribute ¤

PositiveIntegerDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.PositiveIntegerDatatype[PositiveIntegerDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.PositiveIntegerDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.PositiveIntegerDatatype href "" "trestle.oscal.common.PositiveIntegerDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
337
338
class PositiveIntegerDatatype(OscalBaseModel):
    __root__: conint(ge=1) = Field(..., description='An integer value that is greater than 0.')
Attributes¤
__root__ = Field(..., description='An integer value that is greater than 0.') class-attribute instance-attribute ¤

Property ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Property[Property]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Property
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Property href "" "trestle.oscal.common.Property"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.

Source code in trestle/oscal/common.py
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
class Property(OscalBaseModel):
    """
    An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
    """

    class Config:
        extra = Extra.forbid

    name: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description="A textual label, within a namespace, that identifies a specific attribute, characteristic, or quality of the property's containing object.", title='Property Name')
    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(None, description='A unique identifier for a property.', title='Property Universally Unique Identifier')
    ns: AnyUrl | None = Field(None, description="A namespace qualifying the property's name. This allows different organizations to associate distinct semantics with the same name.", title='Property Namespace')
    value: constr(regex=r'^\S(.*\S)?$') = Field(..., description='Indicates the value of the attribute, characteristic, or quality.', title='Property Value')
    class_: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, alias='class', description="A textual label that provides a sub-type or characterization of the property's name.", title='Property Class')
    group: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | None = Field(None, description='An identifier for relating distinct sets of properties.', title='Property Group')
    remarks: str | None = None
Attributes¤
class_ = Field(None, alias='class', description="A textual label that provides a sub-type or characterization of the property's name.", title='Property Class') class-attribute instance-attribute ¤
group = Field(None, description='An identifier for relating distinct sets of properties.', title='Property Group') class-attribute instance-attribute ¤
name = Field(..., description="A textual label, within a namespace, that identifies a specific attribute, characteristic, or quality of the property's containing object.", title='Property Name') class-attribute instance-attribute ¤
ns = Field(None, description="A namespace qualifying the property's name. This allows different organizations to associate distinct semantics with the same name.", title='Property Namespace') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
uuid = Field(None, description='A unique identifier for a property.', title='Property Universally Unique Identifier') class-attribute instance-attribute ¤
value = Field(..., description='Indicates the value of the attribute, characteristic, or quality.', title='Property Value') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
346
347
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Protocol ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Protocol[Protocol]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Protocol
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Protocol href "" "trestle.oscal.common.Protocol"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Information about the protocol used to provide a service.

Source code in trestle/oscal/common.py
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
class Protocol(OscalBaseModel):
    """
    Information about the protocol used to provide a service.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') | None = Field(
        None,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this service protocol information elsewhere in this or other OSCAL instances. The locally defined UUID of the service protocol can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Service Protocol Information Universally Unique Identifier',
    )
    name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, description='The common name of the protocol, which should be the appropriate "service name" from the IANA Service Name and Transport Protocol Port Number Registry.', title='Protocol Name')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='A human readable name for the protocol (e.g., Transport Layer Security).', title='Protocol Title')
    port_ranges: list[PortRange] | None = Field(None, alias='port-ranges')
Attributes¤
name = Field(None, description='The common name of the protocol, which should be the appropriate "service name" from the IANA Service Name and Transport Protocol Port Number Registry.', title='Protocol Name') class-attribute instance-attribute ¤
port_ranges = Field(None, alias='port-ranges') class-attribute instance-attribute ¤
title = Field(None, description='A human readable name for the protocol (e.g., Transport Layer Security).', title='Protocol Title') class-attribute instance-attribute ¤
uuid = Field(None, description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this service protocol information elsewhere in this or other OSCAL instances. The locally defined UUID of the service protocol can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Service Protocol Information Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1055
1056
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Published ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Published[Published]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Published
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Published href "" "trestle.oscal.common.Published"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1068
1069
class Published(OscalBaseModel):
    __root__: DateTimeWithTimezoneDatatype = Field(..., description='The date and time the document was last made available.', title='Publication Timestamp')
Attributes¤
__root__ = Field(..., description='The date and time the document was last made available.', title='Publication Timestamp') class-attribute instance-attribute ¤

Reason ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Reason[Reason]

              

              click trestle.oscal.common.Reason href "" "trestle.oscal.common.Reason"
            

The reason the objective was given it's status.

Source code in trestle/oscal/common.py
358
359
360
361
362
363
364
365
class Reason(Enum):
    """
    The reason the objective was given it's status.
    """

    pass_ = 'pass'
    fail = 'fail'
    other = 'other'
Attributes¤
fail = 'fail' class-attribute instance-attribute ¤
other = 'other' class-attribute instance-attribute ¤
pass_ = 'pass' class-attribute instance-attribute ¤

Rel ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Rel[Rel]

              

              click trestle.oscal.common.Rel href "" "trestle.oscal.common.Rel"
            

Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.

Source code in trestle/oscal/common.py
368
369
370
371
372
373
class Rel(Enum):
    """
    Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.
    """

    reference = 'reference'
Attributes¤
reference = 'reference' class-attribute instance-attribute ¤

RelatedObservation ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RelatedObservation[RelatedObservation]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RelatedObservation
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RelatedObservation href "" "trestle.oscal.common.RelatedObservation"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Relates the identified element to a set of referenced observations that were used to support its determination.

Source code in trestle/oscal/common.py
376
377
378
379
380
381
382
383
384
385
class RelatedObservation(OscalBaseModel):
    """
    Relates the identified element to a set of referenced observations that were used to support its determination.
    """

    class Config:
        extra = Extra.forbid

    observation_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='observation-uuid', description='A machine-oriented identifier reference to an observation defined in the list of observations.', title='Observation Universally Unique Identifier Reference')
    remarks: str | None = None
Attributes¤
observation_uuid = Field(..., alias='observation-uuid', description='A machine-oriented identifier reference to an observation defined in the list of observations.', title='Observation Universally Unique Identifier Reference') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
381
382
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RelatedResponse ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RelatedResponse[RelatedResponse]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RelatedResponse
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RelatedResponse href "" "trestle.oscal.common.RelatedResponse"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an individual risk response that this log entry is for.

Source code in trestle/oscal/common.py
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
class RelatedResponse(OscalBaseModel):
    """
    Identifies an individual risk response that this log entry is for.
    """

    class Config:
        extra = Extra.forbid

    response_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='response-uuid', description='A machine-oriented identifier reference to a unique risk response.', title='Response Universally Unique Identifier Reference')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    related_tasks: list[RelatedTask] | None = Field(None, alias='related-tasks')
    remarks: str | None = None
Attributes¤
props = Field(None) class-attribute instance-attribute ¤
related_tasks = Field(None, alias='related-tasks') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
response_uuid = Field(..., alias='response-uuid', description='A machine-oriented identifier reference to a unique risk response.', title='Response Universally Unique Identifier Reference') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1415
1416
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RelatedTask ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RelatedTask[RelatedTask]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RelatedTask
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RelatedTask href "" "trestle.oscal.common.RelatedTask"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an individual task for which the containing object is a consequence of.

Source code in trestle/oscal/common.py
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
class RelatedTask(OscalBaseModel):
    """
    Identifies an individual task for which the containing object is a consequence of.
    """

    class Config:
        extra = Extra.forbid

    task_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='task-uuid', description='A machine-oriented identifier reference to a unique task.', title='Task Universally Unique Identifier Reference')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    subjects: list[AssessmentSubject] | None = Field(None)
    identified_subject: IdentifiedSubject | None = Field(None, alias='identified-subject', description='Used to detail assessment subjects that were identified by this task.', title='Identified Subject')
    remarks: str | None = None
Attributes¤
identified_subject = Field(None, alias='identified-subject', description='Used to detail assessment subjects that were identified by this task.', title='Identified Subject') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
subjects = Field(None) class-attribute instance-attribute ¤
task_uuid = Field(..., alias='task-uuid', description='A machine-oriented identifier reference to a unique task.', title='Task Universally Unique Identifier Reference') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1347
1348
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RelevantEvidence ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RelevantEvidence[RelevantEvidence]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RelevantEvidence
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RelevantEvidence href "" "trestle.oscal.common.RelevantEvidence"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Links this observation to relevant evidence.

Source code in trestle/oscal/common.py
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
class RelevantEvidence(OscalBaseModel):
    """
    Links this observation to relevant evidence.
    """

    class Config:
        extra = Extra.forbid

    href: str | None = Field(None, description='A resolvable URL reference to relevant evidence.', title='Relevant Evidence Reference')
    description: str = Field(..., description='A human-readable description of this evidence.', title='Relevant Evidence Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this evidence.', title='Relevant Evidence Description') class-attribute instance-attribute ¤
href = Field(None, description='A resolvable URL reference to relevant evidence.', title='Relevant Evidence Reference') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1077
1078
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Remarks ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Remarks[Remarks]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Remarks
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Remarks href "" "trestle.oscal.common.Remarks"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1087
1088
class Remarks(OscalBaseModel):
    __root__: MarkupMultilineDatatype = Field(..., description='Additional commentary about the containing object.', title='Remarks')
Attributes¤
__root__ = Field(..., description='Additional commentary about the containing object.', title='Remarks') class-attribute instance-attribute ¤

RequiredAsset ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RequiredAsset[RequiredAsset]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RequiredAsset
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RequiredAsset href "" "trestle.oscal.common.RequiredAsset"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an asset required to achieve remediation.

Source code in trestle/oscal/common.py
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
class RequiredAsset(OscalBaseModel):
    """
    Identifies an asset required to achieve remediation.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this required asset elsewhere in this or other OSCAL instances. The locally defined UUID of the asset can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Required Universally Unique Identifier',
    )
    subjects: list[SubjectReference] | None = Field(None)
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this required asset.', title='Title for Required Asset')
    description: str = Field(..., description='A human-readable description of this required asset.', title='Description of Required Asset')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this required asset.', title='Description of Required Asset') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subjects = Field(None) class-attribute instance-attribute ¤
title = Field(None, description='The title for this required asset.', title='Title for Required Asset') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this required asset elsewhere in this or other OSCAL instances. The locally defined UUID of the asset can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Required Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1555
1556
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Resource ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Resource[Resource]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Resource
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Resource href "" "trestle.oscal.common.Resource"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A resource associated with content in the containing document instance. A resource may be directly included in the document using base64 encoding or may point to one or more equivalent internet resources.

Source code in trestle/oscal/common.py
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
class Resource(OscalBaseModel):
    """
    A resource associated with content in the containing document instance. A resource may be directly included in the document using base64 encoding or may point to one or more equivalent internet resources.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., description='A unique identifier for a resource.', title='Resource Universally Unique Identifier')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='An optional name given to the resource, which may be used by a tool for display and navigation.', title='Resource Title')
    description: str | None = Field(None, description='An optional short summary of the resource used to indicate the purpose of the resource.', title='Resource Description')
    props: list[Property] | None = Field(None)
    document_ids: list[DocumentId] | None = Field(None, alias='document-ids')
    citation: Citation | None = Field(None, description='An optional citation consisting of end note text using structured markup.', title='Citation')
    rlinks: list[Rlink] | None = Field(None)
    base64: Base64 | None = Field(None, description='A resource encoded using the Base64 alphabet defined by RFC 2045.', title='Base64')
    remarks: str | None = None
Attributes¤
base64 = Field(None, description='A resource encoded using the Base64 alphabet defined by RFC 2045.', title='Base64') class-attribute instance-attribute ¤
citation = Field(None, description='An optional citation consisting of end note text using structured markup.', title='Citation') class-attribute instance-attribute ¤
description = Field(None, description='An optional short summary of the resource used to indicate the purpose of the resource.', title='Resource Description') class-attribute instance-attribute ¤
document_ids = Field(None, alias='document-ids') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
title = Field(None, description='An optional name given to the resource, which may be used by a tool for display and navigation.', title='Resource Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A unique identifier for a resource.', title='Resource Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1231
1232
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Response ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Response[Response]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Response
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Response href "" "trestle.oscal.common.Response"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Describes either recommended or an actual plan for addressing the risk.

Source code in trestle/oscal/common.py
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
class Response(OscalBaseModel):
    """
    Describes either recommended or an actual plan for addressing the risk.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this remediation elsewhere in this or other OSCAL instances. The locally defined UUID of the risk response can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Remediation Universally Unique Identifier',
    )
    lifecycle: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') | Lifecycle = Field(..., description='Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.', title='Remediation Intent')
    title: constr(regex=r'^[^\n]+$') = Field(..., description='The title for this response activity.', title='Response Title')
    description: str = Field(..., description='A human-readable description of this response plan.', title='Response Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    origins: list[Origin] | None = Field(None)
    required_assets: list[RequiredAsset] | None = Field(None, alias='required-assets')
    tasks: list[Task] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this response plan.', title='Response Description') class-attribute instance-attribute ¤
lifecycle = Field(..., description='Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.', title='Remediation Intent') class-attribute instance-attribute ¤
origins = Field(None) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
required_assets = Field(None, alias='required-assets') class-attribute instance-attribute ¤
tasks = Field(None) class-attribute instance-attribute ¤
title = Field(..., description='The title for this response activity.', title='Response Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this remediation elsewhere in this or other OSCAL instances. The locally defined UUID of the risk response can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Remediation Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1866
1867
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ResponsibleParty ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ResponsibleParty[ResponsibleParty]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ResponsibleParty
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ResponsibleParty href "" "trestle.oscal.common.ResponsibleParty"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.

Source code in trestle/oscal/common.py
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
class ResponsibleParty(OscalBaseModel):
    """
    A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
    """

    class Config:
        extra = Extra.forbid

    role_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='role-id', description='A reference to a role performed by a party.', title='Responsible Role')
    party_uuids: list[constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$')] = Field(..., alias='party-uuids')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
party_uuids = Field(..., alias='party-uuids') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
role_id = Field(..., alias='role-id', description='A reference to a role performed by a party.', title='Responsible Role') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1096
1097
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ResponsibleRole ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ResponsibleRole[ResponsibleRole]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ResponsibleRole
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ResponsibleRole href "" "trestle.oscal.common.ResponsibleRole"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.

Source code in trestle/oscal/common.py
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
class ResponsibleRole(OscalBaseModel):
    """
    A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
    """

    class Config:
        extra = Extra.forbid

    role_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='role-id', description='A human-oriented identifier reference to a role performed.', title='Responsible Role ID')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    party_uuids: list[constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$')] | None = Field(None, alias='party-uuids')
    remarks: str | None = None
Attributes¤
party_uuids = Field(None, alias='party-uuids') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
role_id = Field(..., alias='role-id', description='A human-oriented identifier reference to a role performed.', title='Responsible Role ID') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1165
1166
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ReviewedControls ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ReviewedControls[ReviewedControls]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ReviewedControls
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ReviewedControls href "" "trestle.oscal.common.ReviewedControls"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the controls being assessed and their control objectives.

Source code in trestle/oscal/common.py
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
class ReviewedControls(OscalBaseModel):
    """
    Identifies the controls being assessed and their control objectives.
    """

    class Config:
        extra = Extra.forbid

    description: str | None = Field(None, description='A human-readable description of control objectives.', title='Control Objective Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    control_selections: list[ControlSelectionsAll | ControlSelections] = Field(..., alias='control-selections')
    control_objective_selections: list[ControlObjectiveSelectionsAll | ControlObjectiveSelections] | None = Field(None, alias='control-objective-selections')
    remarks: str | None = None
Attributes¤
control_objective_selections = Field(None, alias='control-objective-selections') class-attribute instance-attribute ¤
control_selections = Field(..., alias='control-selections') class-attribute instance-attribute ¤
description = Field(None, description='A human-readable description of control objectives.', title='Control Objective Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1180
1181
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Revision ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Revision[Revision]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Revision
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Revision href "" "trestle.oscal.common.Revision"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).

Source code in trestle/oscal/common.py
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
class Revision(OscalBaseModel):
    """
    An entry in a sequential list of revisions to the containing document, expected to be in reverse chronological order (i.e. latest first).
    """

    class Config:
        extra = Extra.forbid

    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='A name given to the document revision, which may be used by a tool for display and navigation.', title='Document Title')
    published: datetime | None = None
    last_modified: datetime | None = Field(None, alias='last-modified')
    version: constr(regex=r'^\S(.*\S)?$')
    oscal_version: OscalVersion | None = Field(None, alias='oscal-version')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
last_modified = Field(None, alias='last-modified') class-attribute instance-attribute ¤
oscal_version = Field(None, alias='oscal-version') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
published = None class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
title = Field(None, description='A name given to the document revision, which may be used by a tool for display and navigation.', title='Document Title') class-attribute instance-attribute ¤
version instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1196
1197
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Risk ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Risk[Risk]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Risk
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Risk href "" "trestle.oscal.common.Risk"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

An identified risk.

Source code in trestle/oscal/common.py
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
class Risk(OscalBaseModel):
    """
    An identified risk.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk elsewhere in this or other OSCAL instances. The locally defined UUID of the risk can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Risk Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') = Field(..., description='The title for this risk.', title='Risk Title')
    description: str = Field(..., description='A human-readable summary of the identified risk, to include a statement of how the risk impacts the system.', title='Risk Description')
    statement: str = Field(..., description='An summary of impact for how the risk affects the system.', title='Risk Statement')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    status: RiskStatus
    origins: list[Origin] | None = Field(None)
    threat_ids: list[ThreatId] | None = Field(None, alias='threat-ids')
    characterizations: list[Characterization] | None = Field(None)
    mitigating_factors: list[MitigatingFactor] | None = Field(None, alias='mitigating-factors')
    deadline: datetime | None = Field(None, description='The date/time by which the risk must be resolved.', title='Risk Resolution Deadline')
    remediations: list[Response] | None = Field(None)
    risk_log: RiskLog | None = Field(None, alias='risk-log', description='A log of all risk-related tasks taken.', title='Risk Log')
    related_observations: list[RelatedObservation] | None = Field(None, alias='related-observations')
Attributes¤
characterizations = Field(None) class-attribute instance-attribute ¤
deadline = Field(None, description='The date/time by which the risk must be resolved.', title='Risk Resolution Deadline') class-attribute instance-attribute ¤
description = Field(..., description='A human-readable summary of the identified risk, to include a statement of how the risk impacts the system.', title='Risk Description') class-attribute instance-attribute ¤
mitigating_factors = Field(None, alias='mitigating-factors') class-attribute instance-attribute ¤
origins = Field(None) class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
related_observations = Field(None, alias='related-observations') class-attribute instance-attribute ¤
remediations = Field(None) class-attribute instance-attribute ¤
risk_log = Field(None, alias='risk-log', description='A log of all risk-related tasks taken.', title='Risk Log') class-attribute instance-attribute ¤
statement = Field(..., description='An summary of impact for how the risk affects the system.', title='Risk Statement') class-attribute instance-attribute ¤
status instance-attribute ¤
threat_ids = Field(None, alias='threat-ids') class-attribute instance-attribute ¤
title = Field(..., description='The title for this risk.', title='Risk Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this risk elsewhere in this or other OSCAL instances. The locally defined UUID of the risk can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Risk Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1890
1891
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RiskLog ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RiskLog[RiskLog]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RiskLog
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RiskLog href "" "trestle.oscal.common.RiskLog"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A log of all risk-related tasks taken.

Source code in trestle/oscal/common.py
1450
1451
1452
1453
1454
1455
1456
1457
1458
class RiskLog(OscalBaseModel):
    """
    A log of all risk-related tasks taken.
    """

    class Config:
        extra = Extra.forbid

    entries: list[Entry] = Field(...)
Attributes¤
entries = Field(...) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1455
1456
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RiskStatus ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RiskStatus[RiskStatus]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RiskStatus
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RiskStatus href "" "trestle.oscal.common.RiskStatus"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1209
1210
class RiskStatus(OscalBaseModel):
    __root__: TokenDatatype | RiskStatusValidValues = Field(..., description='Describes the status of the associated risk.', title='Risk Status')
Attributes¤
__root__ = Field(..., description='Describes the status of the associated risk.', title='Risk Status') class-attribute instance-attribute ¤

RiskStatusValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.RiskStatusValidValues[RiskStatusValidValues]

              

              click trestle.oscal.common.RiskStatusValidValues href "" "trestle.oscal.common.RiskStatusValidValues"
            
Source code in trestle/oscal/common.py
388
389
390
391
392
393
394
class RiskStatusValidValues(Enum):
    open = 'open'
    investigating = 'investigating'
    remediating = 'remediating'
    deviation_requested = 'deviation-requested'
    deviation_approved = 'deviation-approved'
    closed = 'closed'
Attributes¤
closed = 'closed' class-attribute instance-attribute ¤
deviation_approved = 'deviation-approved' class-attribute instance-attribute ¤
deviation_requested = 'deviation-requested' class-attribute instance-attribute ¤
investigating = 'investigating' class-attribute instance-attribute ¤
open = 'open' class-attribute instance-attribute ¤
remediating = 'remediating' class-attribute instance-attribute ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Rlink[Rlink]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Rlink
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Rlink href "" "trestle.oscal.common.Rlink"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A URL-based pointer to an external resource with an optional hash for verification and change detection.

Source code in trestle/oscal/common.py
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
class Rlink(OscalBaseModel):
    """
    A URL-based pointer to an external resource with an optional hash for verification and change detection.
    """

    class Config:
        extra = Extra.forbid

    href: str = Field(..., description='A resolvable URL pointing to the referenced resource.', title='Hypertext Reference')
    media_type: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type')
    hashes: list[Hash] | None = Field(None)
hashes = Field(None) class-attribute instance-attribute ¤
href = Field(..., description='A resolvable URL pointing to the referenced resource.', title='Hypertext Reference') class-attribute instance-attribute ¤
media_type = Field(None, alias='media-type', description='A label that indicates the nature of a resource, as a data serialization or format.', title='Media Type') class-attribute instance-attribute ¤
Config ¤
Source code in trestle/oscal/common.py
1218
1219
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Role ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Role[Role]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Role
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Role href "" "trestle.oscal.common.Role"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Defines a function, which might be assigned to a party in a specific situation.

Source code in trestle/oscal/common.py
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
class Role(OscalBaseModel):
    """
    Defines a function, which might be assigned to a party in a specific situation.
    """

    class Config:
        extra = Extra.forbid

    id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description='A unique identifier for the role.', title='Role Identifier')
    title: constr(regex=r'^[^\n]+$') = Field(..., description='A name given to the role, which may be used by a tool for display and navigation.', title='Role Title')
    short_name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the role.', title='Role Short Name')
    description: str | None = Field(None, description="A summary of the role's purpose and associated responsibilities.", title='Role Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(None, description="A summary of the role's purpose and associated responsibilities.", title='Role Description') class-attribute instance-attribute ¤
id = Field(..., description='A unique identifier for the role.', title='Role Identifier') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
short_name = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the role.', title='Role Short Name') class-attribute instance-attribute ¤
title = Field(..., description='A name given to the role, which may be used by a tool for display and navigation.', title='Role Title') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1261
1262
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

RoleId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.RoleId[RoleId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.RoleId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.RoleId href "" "trestle.oscal.common.RoleId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1273
1274
class RoleId(OscalBaseModel):
    __root__: TokenDatatype = Field(..., description='Reference to a role by UUID.', title='Role Identifier Reference')
Attributes¤
__root__ = Field(..., description='Reference to a role by UUID.', title='Role Identifier Reference') class-attribute instance-attribute ¤

Scheme ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Scheme[Scheme]

              

              click trestle.oscal.common.Scheme href "" "trestle.oscal.common.Scheme"
            

Indicates the type of external identifier.

Source code in trestle/oscal/common.py
397
398
399
400
401
402
class Scheme(Enum):
    """
    Indicates the type of external identifier.
    """

    http___orcid_org_ = 'http://orcid.org/'
Attributes¤
http___orcid_org_ = 'http://orcid.org/' class-attribute instance-attribute ¤

SelectControlById ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SelectControlById[SelectControlById]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SelectControlById
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SelectControlById href "" "trestle.oscal.common.SelectControlById"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to select a control for inclusion/exclusion based on one or more control identifiers. A set of statement identifiers can be used to target the inclusion/exclusion to only specific control statements providing more granularity over the specific statements that are within the assessment scope.

Source code in trestle/oscal/common.py
405
406
407
408
409
410
411
412
413
414
class SelectControlById(OscalBaseModel):
    """
    Used to select a control for inclusion/exclusion based on one or more control identifiers. A set of statement identifiers can be used to target the inclusion/exclusion to only specific control statements providing more granularity over the specific statements that are within the assessment scope.
    """

    class Config:
        extra = Extra.forbid

    control_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='control-id', description='A reference to a control with a corresponding id value. When referencing an externally defined control, the Control Identifier Reference must be used in the context of the external / imported OSCAL instance (e.g., uri-reference).', title='Control Identifier Reference')
    statement_ids: list[constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$')] | None = Field(None, alias='statement-ids')
Attributes¤
control_id = Field(..., alias='control-id', description='A reference to a control with a corresponding id value. When referencing an externally defined control, the Control Identifier Reference must be used in the context of the external / imported OSCAL instance (e.g., uri-reference).', title='Control Identifier Reference') class-attribute instance-attribute ¤
statement_ids = Field(None, alias='statement-ids') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
410
411
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SelectObjectiveById ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SelectObjectiveById[SelectObjectiveById]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SelectObjectiveById
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SelectObjectiveById href "" "trestle.oscal.common.SelectObjectiveById"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Used to select a control objective for inclusion/exclusion based on the control objective's identifier.

Source code in trestle/oscal/common.py
417
418
419
420
421
422
423
424
425
426
class SelectObjectiveById(OscalBaseModel):
    """
    Used to select a control objective for inclusion/exclusion based on the control objective's identifier.
    """

    class Config:
        extra = Extra.forbid

    objective_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='objective-id', description='Points to an assessment objective.', title='Objective ID')
    remarks: str | None = None
Attributes¤
objective_id = Field(..., alias='objective-id', description='Points to an assessment objective.', title='Objective ID') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
422
423
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SelectSubjectById ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SelectSubjectById[SelectSubjectById]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SelectSubjectById
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SelectSubjectById href "" "trestle.oscal.common.SelectSubjectById"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies a set of assessment subjects to include/exclude by UUID.

Source code in trestle/oscal/common.py
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
class SelectSubjectById(OscalBaseModel):
    """
    Identifies a set of assessment subjects to include/exclude by UUID.
    """

    class Config:
        extra = Extra.forbid

    subject_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='subject-uuid', description="A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.", title='Subject Universally Unique Identifier Reference')
    type: TokenDatatype | SelectSubjectByIdValidValues = Field(..., description='Used to indicate the type of object pointed to by the uuid-ref within a subject.', title='Subject Universally Unique Identifier Reference Type')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subject_uuid = Field(..., alias='subject-uuid', description="A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.", title='Subject Universally Unique Identifier Reference') class-attribute instance-attribute ¤
type = Field(..., description='Used to indicate the type of object pointed to by the uuid-ref within a subject.', title='Subject Universally Unique Identifier Reference Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1282
1283
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SelectSubjectByIdValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.SelectSubjectByIdValidValues[SelectSubjectByIdValidValues]

              

              click trestle.oscal.common.SelectSubjectByIdValidValues href "" "trestle.oscal.common.SelectSubjectByIdValidValues"
            
Source code in trestle/oscal/common.py
429
430
431
432
433
434
435
class SelectSubjectByIdValidValues(Enum):
    component = 'component'
    inventory_item = 'inventory-item'
    location = 'location'
    party = 'party'
    user = 'user'
    resource = 'resource'
Attributes¤
component = 'component' class-attribute instance-attribute ¤
inventory_item = 'inventory-item' class-attribute instance-attribute ¤
location = 'location' class-attribute instance-attribute ¤
party = 'party' class-attribute instance-attribute ¤
resource = 'resource' class-attribute instance-attribute ¤
user = 'user' class-attribute instance-attribute ¤

SetParameter ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SetParameter[SetParameter]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SetParameter
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SetParameter href "" "trestle.oscal.common.SetParameter"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies the parameter that will be set by the enclosed value.

Source code in trestle/oscal/common.py
438
439
440
441
442
443
444
445
446
447
448
class SetParameter(OscalBaseModel):
    """
    Identifies the parameter that will be set by the enclosed value.
    """

    class Config:
        extra = Extra.forbid

    param_id: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., alias='param-id', description="A human-oriented reference to a parameter within a control, who's catalog has been imported into the current implementation context.", title='Parameter ID')
    values: list[constr(regex=r'^\S(.*\S)?$')] = Field(...)
    remarks: str | None = None
Attributes¤
param_id = Field(..., alias='param-id', description="A human-oriented reference to a parameter within a control, who's catalog has been imported into the current implementation context.", title='Parameter ID') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
values = Field(...) class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
443
444
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Source ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Source[Source]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Source
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Source href "" "trestle.oscal.common.Source"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Assessment subjects will be identified while conducting the referenced activity-instance.

Source code in trestle/oscal/common.py
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
class Source(OscalBaseModel):
    """
    Assessment subjects will be identified while conducting the referenced activity-instance.
    """

    class Config:
        extra = Extra.forbid

    task_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        alias='task-uuid',
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference (in this or other OSCAL instances) an assessment activity to be performed as part of the event. The locally defined UUID of the task can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Task Universally Unique Identifier',
    )
    remarks: str | None = None
Attributes¤
remarks = None class-attribute instance-attribute ¤
task_uuid = Field(..., alias='task-uuid', description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference (in this or other OSCAL instances) an assessment activity to be performed as part of the event. The locally defined UUID of the task can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Task Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
456
457
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

State ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.State[State]

              

              click trestle.oscal.common.State href "" "trestle.oscal.common.State"
            

Identifies the implementation status of the control or control objective.

Source code in trestle/oscal/common.py
468
469
470
471
472
473
474
475
476
477
class State(Enum):
    """
    Identifies the implementation status of the control or control objective.
    """

    implemented = 'implemented'
    partial = 'partial'
    planned = 'planned'
    alternative = 'alternative'
    not_applicable = 'not-applicable'
Attributes¤
alternative = 'alternative' class-attribute instance-attribute ¤
implemented = 'implemented' class-attribute instance-attribute ¤
not_applicable = 'not-applicable' class-attribute instance-attribute ¤
partial = 'partial' class-attribute instance-attribute ¤
planned = 'planned' class-attribute instance-attribute ¤

Status ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Status[Status]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Status
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Status href "" "trestle.oscal.common.Status"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Describes the operational status of the system component.

Source code in trestle/oscal/common.py
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
class Status(OscalBaseModel):
    """
    Describes the operational status of the system component.
    """

    class Config:
        extra = Extra.forbid

    state: SystemComponentOperationalStateValidValues = Field(..., description='The operational status.', title='State')
    remarks: str | None = None
Attributes¤
remarks = None class-attribute instance-attribute ¤
state = Field(..., description='The operational status.', title='State') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1482
1483
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Step ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Step[Step]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Step
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Step href "" "trestle.oscal.common.Step"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Identifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure.

Source code in trestle/oscal/common.py
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
class Step(OscalBaseModel):
    """
    Identifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this step elsewhere in this or other OSCAL instances. The locally defined UUID of the step (in a series of steps) can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Step Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title for this step.', title='Step Title')
    description: str = Field(..., description='A human-readable description of this step.', title='Step Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    reviewed_controls: ReviewedControls | None = Field(None, alias='reviewed-controls')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles')
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this step.', title='Step Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles') class-attribute instance-attribute ¤
reviewed_controls = Field(None, alias='reviewed-controls') class-attribute instance-attribute ¤
title = Field(None, description='The title for this step.', title='Step Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this step elsewhere in this or other OSCAL instances. The locally defined UUID of the step (in a series of steps) can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Step Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1494
1495
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

StringDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.StringDatatype[StringDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.StringDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.StringDatatype href "" "trestle.oscal.common.StringDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
480
481
class StringDatatype(OscalBaseModel):
    __root__: constr(regex=r'^\S(.*\S)?$') = Field(..., description='A non-empty string with leading and trailing whitespace disallowed. Whitespace is: U+9, U+10, U+32 or [ \n\t]+')
Attributes¤
__root__ = Field(..., description='A non-empty string with leading and trailing whitespace disallowed. Whitespace is: U+9, U+10, U+32 or [ \n\t]+') class-attribute instance-attribute ¤

SubjectReference ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SubjectReference[SubjectReference]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SubjectReference
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SubjectReference href "" "trestle.oscal.common.SubjectReference"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.

Source code in trestle/oscal/common.py
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
class SubjectReference(OscalBaseModel):
    """
    A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
    """

    class Config:
        extra = Extra.forbid

    subject_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='subject-uuid', description="A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.", title='Subject Universally Unique Identifier Reference')
    type: TokenDatatype | SubjectReferenceValidValues = Field(..., description='Used to indicate the type of object pointed to by the uuid-ref within a subject.', title='Subject Universally Unique Identifier Reference Type')
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='The title or name for the referenced subject.', title='Subject Reference Title')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    remarks: str | None = None
Attributes¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subject_uuid = Field(..., alias='subject-uuid', description="A machine-oriented identifier reference to a component, inventory-item, location, party, user, or resource using it's UUID.", title='Subject Universally Unique Identifier Reference') class-attribute instance-attribute ¤
title = Field(None, description='The title or name for the referenced subject.', title='Subject Reference Title') class-attribute instance-attribute ¤
type = Field(..., description='Used to indicate the type of object pointed to by the uuid-ref within a subject.', title='Subject Universally Unique Identifier Reference Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1539
1540
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SubjectReferenceValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.SubjectReferenceValidValues[SubjectReferenceValidValues]

              

              click trestle.oscal.common.SubjectReferenceValidValues href "" "trestle.oscal.common.SubjectReferenceValidValues"
            
Source code in trestle/oscal/common.py
484
485
486
487
488
489
490
class SubjectReferenceValidValues(Enum):
    component = 'component'
    inventory_item = 'inventory-item'
    location = 'location'
    party = 'party'
    user = 'user'
    resource = 'resource'
Attributes¤
component = 'component' class-attribute instance-attribute ¤
inventory_item = 'inventory-item' class-attribute instance-attribute ¤
location = 'location' class-attribute instance-attribute ¤
party = 'party' class-attribute instance-attribute ¤
resource = 'resource' class-attribute instance-attribute ¤
user = 'user' class-attribute instance-attribute ¤

SystemComponent ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SystemComponent[SystemComponent]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SystemComponent
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SystemComponent href "" "trestle.oscal.common.SystemComponent"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A defined component that can be part of an implemented system.

Source code in trestle/oscal/common.py
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
class SystemComponent(OscalBaseModel):
    """
    A defined component that can be part of an implemented system.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this component elsewhere in this or other OSCAL instances. The locally defined UUID of the component can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Component Identifier',
    )
    type: StringDatatype | SystemComponentTypeValidValues = Field(..., description='A category describing the purpose of the component.', title='Component Type')
    title: constr(regex=r'^[^\n]+$') = Field(..., description='A human readable name for the system component.', title='Component Title')
    description: str = Field(..., description='A description of the component, including information about its function.', title='Component Description')
    purpose: constr(regex=r'^[^\n]+$') | None = Field(None, description='A summary of the technological or business purpose of the component.', title='Purpose')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    status: Status = Field(..., description='Describes the operational status of the system component.', title='Status')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles')
    protocols: list[Protocol] | None = Field(None)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A description of the component, including information about its function.', title='Component Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
protocols = Field(None) class-attribute instance-attribute ¤
purpose = Field(None, description='A summary of the technological or business purpose of the component.', title='Purpose') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles') class-attribute instance-attribute ¤
status = Field(..., description='Describes the operational status of the system component.', title='Status') class-attribute instance-attribute ¤
title = Field(..., description='A human readable name for the system component.', title='Component Title') class-attribute instance-attribute ¤
type = Field(..., description='A category describing the purpose of the component.', title='Component Type') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this component elsewhere in this or other OSCAL instances. The locally defined UUID of the component can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Component Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1628
1629
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SystemComponentOperationalStateValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.SystemComponentOperationalStateValidValues[SystemComponentOperationalStateValidValues]

              

              click trestle.oscal.common.SystemComponentOperationalStateValidValues href "" "trestle.oscal.common.SystemComponentOperationalStateValidValues"
            
Source code in trestle/oscal/common.py
493
494
495
496
497
class SystemComponentOperationalStateValidValues(Enum):
    under_development = 'under-development'
    operational = 'operational'
    disposition = 'disposition'
    other = 'other'
Attributes¤
disposition = 'disposition' class-attribute instance-attribute ¤
operational = 'operational' class-attribute instance-attribute ¤
other = 'other' class-attribute instance-attribute ¤
under_development = 'under-development' class-attribute instance-attribute ¤

SystemComponentTypeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.SystemComponentTypeValidValues[SystemComponentTypeValidValues]

              

              click trestle.oscal.common.SystemComponentTypeValidValues href "" "trestle.oscal.common.SystemComponentTypeValidValues"
            
Source code in trestle/oscal/common.py
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
class SystemComponentTypeValidValues(Enum):
    this_system = 'this-system'
    system = 'system'
    interconnection = 'interconnection'
    software = 'software'
    hardware = 'hardware'
    service = 'service'
    policy = 'policy'
    physical = 'physical'
    process_procedure = 'process-procedure'
    plan = 'plan'
    guidance = 'guidance'
    standard = 'standard'
    validation = 'validation'
    network = 'network'
Attributes¤
guidance = 'guidance' class-attribute instance-attribute ¤
hardware = 'hardware' class-attribute instance-attribute ¤
interconnection = 'interconnection' class-attribute instance-attribute ¤
network = 'network' class-attribute instance-attribute ¤
physical = 'physical' class-attribute instance-attribute ¤
plan = 'plan' class-attribute instance-attribute ¤
policy = 'policy' class-attribute instance-attribute ¤
process_procedure = 'process-procedure' class-attribute instance-attribute ¤
service = 'service' class-attribute instance-attribute ¤
software = 'software' class-attribute instance-attribute ¤
standard = 'standard' class-attribute instance-attribute ¤
system = 'system' class-attribute instance-attribute ¤
this_system = 'this-system' class-attribute instance-attribute ¤
validation = 'validation' class-attribute instance-attribute ¤

SystemId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SystemId[SystemId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SystemId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SystemId href "" "trestle.oscal.common.SystemId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A human-oriented, globally unique identifier with cross-instance scope that can be used to reference this system identification property elsewhere in this or other OSCAL instances. When referencing an externally defined system identification, the system identification must be used in the context of the external / imported OSCAL instance (e.g., uri-reference). This string should be assigned per-subject, which means it should be consistently used to identify the same system across revisions of the document.

Source code in trestle/oscal/common.py
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
class SystemId(OscalBaseModel):
    """
    A human-oriented, globally unique identifier with cross-instance scope that can be used to reference this system identification property elsewhere in this or other OSCAL instances. When referencing an externally defined system identification, the system identification must be used in the context of the external / imported OSCAL instance (e.g., uri-reference). This string should be assigned per-subject, which means it should be consistently used to identify the same system across revisions of the document.
    """

    class Config:
        extra = Extra.forbid

    identifier_type: AnyUrl | IdentifierType | None = Field(None, alias='identifier-type', description='Identifies the identification system from which the provided identifier was assigned.', title='Identification System Type')
    id: constr(regex=r'^\S(.*\S)?$')
Attributes¤
id instance-attribute ¤
identifier_type = Field(None, alias='identifier-type', description='Identifies the identification system from which the provided identifier was assigned.', title='Identification System Type') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1653
1654
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

SystemUser ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.SystemUser[SystemUser]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.SystemUser
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.SystemUser href "" "trestle.oscal.common.SystemUser"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A type of user that interacts with the system based on an associated role.

Source code in trestle/oscal/common.py
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
class SystemUser(OscalBaseModel):
    """
    A type of user that interacts with the system based on an associated role.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this user class elsewhere in this or other OSCAL instances. The locally defined UUID of the system user can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='User Universally Unique Identifier',
    )
    title: constr(regex=r'^[^\n]+$') | None = Field(None, description='A name given to the user, which may be used by a tool for display and navigation.', title='User Title')
    short_name: constr(regex=r'^\S(.*\S)?$') | None = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the user.', title='User Short Name')
    description: str | None = Field(None, description="A summary of the user's purpose within the system.", title='User Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    role_ids: list[constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$')] | None = Field(None, alias='role-ids')
    authorized_privileges: list[AuthorizedPrivilege] | None = Field(None, alias='authorized-privileges')
    remarks: str | None = None
Attributes¤
authorized_privileges = Field(None, alias='authorized-privileges') class-attribute instance-attribute ¤
description = Field(None, description="A summary of the user's purpose within the system.", title='User Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
role_ids = Field(None, alias='role-ids') class-attribute instance-attribute ¤
short_name = Field(None, alias='short-name', description='A short common name, abbreviation, or acronym for the user.', title='User Short Name') class-attribute instance-attribute ¤
title = Field(None, description='A name given to the user, which may be used by a tool for display and navigation.', title='User Title') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this user class elsewhere in this or other OSCAL instances. The locally defined UUID of the system user can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='User Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1665
1666
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Task ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Task[Task]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Task
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Task href "" "trestle.oscal.common.Task"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

Represents a scheduled event or milestone, which may be associated with a series of assessment actions.

Source code in trestle/oscal/common.py
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
class Task(OscalBaseModel):
    """
    Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
    """

    class Config:
        extra = Extra.forbid

    uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(
        ...,
        description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this task elsewhere in this or other OSCAL instances. The locally defined UUID of the task can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.',
        title='Task Universally Unique Identifier',
    )
    type: TokenDatatype | TaskValidValues = Field(..., description='The type of task.', title='Task Type')
    title: constr(regex=r'^[^\n]+$') = Field(..., description='The title for this task.', title='Task Title')
    description: str | None = Field(None, description='A human-readable description of this task.', title='Task Description')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    timing: TimingOnDate | TimingWithinDateRange | TimingAtFrequency | None = None
    dependencies: list[Dependency] | None = Field(None)
    tasks: list[Task] | None = None
    associated_activities: list[AssociatedActivity] | None = Field(None, alias='associated-activities')
    subjects: list[AssessmentSubject] | None = Field(None)
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles')
    remarks: str | None = None
Attributes¤
associated_activities = Field(None, alias='associated-activities') class-attribute instance-attribute ¤
dependencies = Field(None) class-attribute instance-attribute ¤
description = Field(None, description='A human-readable description of this task.', title='Task Description') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles') class-attribute instance-attribute ¤
subjects = Field(None) class-attribute instance-attribute ¤
tasks = None class-attribute instance-attribute ¤
timing = None class-attribute instance-attribute ¤
title = Field(..., description='The title for this task.', title='Task Title') class-attribute instance-attribute ¤
type = Field(..., description='The type of task.', title='Task Type') class-attribute instance-attribute ¤
uuid = Field(..., description='A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this task elsewhere in this or other OSCAL instances. The locally defined UUID of the task can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.', title='Task Universally Unique Identifier') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1839
1840
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

TaskValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.TaskValidValues[TaskValidValues]

              

              click trestle.oscal.common.TaskValidValues href "" "trestle.oscal.common.TaskValidValues"
            
Source code in trestle/oscal/common.py
517
518
519
class TaskValidValues(Enum):
    milestone = 'milestone'
    action = 'action'
Attributes¤
action = 'action' class-attribute instance-attribute ¤
milestone = 'milestone' class-attribute instance-attribute ¤

TelephoneNumber ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.TelephoneNumber[TelephoneNumber]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.TelephoneNumber
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.TelephoneNumber href "" "trestle.oscal.common.TelephoneNumber"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A telephone service number as defined by ITU-T E.164.

Source code in trestle/oscal/common.py
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
class TelephoneNumber(OscalBaseModel):
    """
    A telephone service number as defined by ITU-T E.164.
    """

    class Config:
        extra = Extra.forbid

    type: StringDatatype | TelephoneTypeValidValues | None = Field(None, description='Indicates the type of phone number.', title='type flag')
    number: constr(regex=r'^\S(.*\S)?$')
Attributes¤
number instance-attribute ¤
type = Field(None, description='Indicates the type of phone number.', title='type flag') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1688
1689
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

TelephoneTypeValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.TelephoneTypeValidValues[TelephoneTypeValidValues]

              

              click trestle.oscal.common.TelephoneTypeValidValues href "" "trestle.oscal.common.TelephoneTypeValidValues"
            
Source code in trestle/oscal/common.py
522
523
524
525
class TelephoneTypeValidValues(Enum):
    home = 'home'
    office = 'office'
    mobile = 'mobile'
Attributes¤
home = 'home' class-attribute instance-attribute ¤
mobile = 'mobile' class-attribute instance-attribute ¤
office = 'office' class-attribute instance-attribute ¤

Test ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Test[Test]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Test
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Test href "" "trestle.oscal.common.Test"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A test expression which is expected to be evaluated by a tool.

Source code in trestle/oscal/common.py
528
529
530
531
532
533
534
535
536
537
class Test(OscalBaseModel):
    """
    A test expression which is expected to be evaluated by a tool.
    """

    class Config:
        extra = Extra.forbid

    expression: constr(regex=r'^\S(.*\S)?$') = Field(..., description='A formal (executable) expression of a constraint.', title='Constraint test')
    remarks: str | None = None
Attributes¤
expression = Field(..., description='A formal (executable) expression of a constraint.', title='Constraint test') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
533
534
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ThreatId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.ThreatId[ThreatId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.ThreatId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.ThreatId href "" "trestle.oscal.common.ThreatId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

A pointer, by ID, to an externally-defined threat.

Source code in trestle/oscal/common.py
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
class ThreatId(OscalBaseModel):
    """
    A pointer, by ID, to an externally-defined threat.
    """

    class Config:
        extra = Extra.forbid

    system: URIDatatype | ThreatIdValidValues = Field(..., description='Specifies the source of the threat information.', title='Threat Type Identification System')
    href: str | None = Field(None, description='An optional location for the threat data, from which this ID originates.', title='Threat Information Resource Reference')
    id: AnyUrl
Attributes¤
href = Field(None, description='An optional location for the threat data, from which this ID originates.', title='Threat Information Resource Reference') class-attribute instance-attribute ¤
id instance-attribute ¤
system = Field(..., description='Specifies the source of the threat information.', title='Threat Type Identification System') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1793
1794
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

ThreatIdValidValues ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.ThreatIdValidValues[ThreatIdValidValues]

              

              click trestle.oscal.common.ThreatIdValidValues href "" "trestle.oscal.common.ThreatIdValidValues"
            
Source code in trestle/oscal/common.py
540
541
542
class ThreatIdValidValues(Enum):
    http___fedramp_gov = 'http://fedramp.gov'
    http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal'
Attributes¤
http___fedramp_gov = 'http://fedramp.gov' class-attribute instance-attribute ¤
http___fedramp_gov_ns_oscal = 'http://fedramp.gov/ns/oscal' class-attribute instance-attribute ¤

TimingAtFrequency ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.TimingAtFrequency[TimingAtFrequency]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.TimingAtFrequency
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.TimingAtFrequency href "" "trestle.oscal.common.TimingAtFrequency"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The timing under which the task is intended to occur.

Source code in trestle/oscal/common.py
1801
1802
1803
1804
1805
1806
1807
1808
1809
class TimingAtFrequency(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    class Config:
        extra = Extra.forbid

    at_frequency: AtFrequency = Field(..., alias='at-frequency', description='The task is intended to occur at the specified frequency.', title='Frequency Condition')
Attributes¤
at_frequency = Field(..., alias='at-frequency', description='The task is intended to occur at the specified frequency.', title='Frequency Condition') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1806
1807
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

TimingOnDate ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.TimingOnDate[TimingOnDate]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.TimingOnDate
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.TimingOnDate href "" "trestle.oscal.common.TimingOnDate"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The timing under which the task is intended to occur.

Source code in trestle/oscal/common.py
1812
1813
1814
1815
1816
1817
1818
1819
1820
class TimingOnDate(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    class Config:
        extra = Extra.forbid

    on_date: OnDate = Field(..., alias='on-date', description='The task is intended to occur on the specified date.', title='On Date Condition')
Attributes¤
on_date = Field(..., alias='on-date', description='The task is intended to occur on the specified date.', title='On Date Condition') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1817
1818
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

TimingWithinDateRange ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.TimingWithinDateRange[TimingWithinDateRange]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.TimingWithinDateRange
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.TimingWithinDateRange href "" "trestle.oscal.common.TimingWithinDateRange"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The timing under which the task is intended to occur.

Source code in trestle/oscal/common.py
1823
1824
1825
1826
1827
1828
1829
1830
1831
class TimingWithinDateRange(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    class Config:
        extra = Extra.forbid

    within_date_range: WithinDateRange = Field(..., alias='within-date-range', description='The task is intended to occur within the specified date range.', title='On Date Range Condition')
Attributes¤
within_date_range = Field(..., alias='within-date-range', description='The task is intended to occur within the specified date range.', title='On Date Range Condition') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1828
1829
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

TokenDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.TokenDatatype[TokenDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.TokenDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.TokenDatatype href "" "trestle.oscal.common.TokenDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
545
546
class TokenDatatype(OscalBaseModel):
    __root__: constr(regex=r'^[_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-\.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$') = Field(..., description='A non-colonized name as defined by XML Schema Part 2: Datatypes Second Edition. https://www.w3.org/TR/xmlschema11-2/#NCName.')
Attributes¤
__root__ = Field(..., description='A non-colonized name as defined by XML Schema Part 2: Datatypes Second Edition. https://www.w3.org/TR/xmlschema11-2/#NCName.') class-attribute instance-attribute ¤

Type ¤

Bases: Enum


              flowchart TD
              trestle.oscal.common.Type[Type]

              

              click trestle.oscal.common.Type href "" "trestle.oscal.common.Type"
            

Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.

Source code in trestle/oscal/common.py
549
550
551
552
553
554
555
556
557
558
class Type(Enum):
    """
    Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.
    """

    component = 'component'
    inventory_item = 'inventory-item'
    location = 'location'
    party = 'party'
    user = 'user'
Attributes¤
component = 'component' class-attribute instance-attribute ¤
inventory_item = 'inventory-item' class-attribute instance-attribute ¤
location = 'location' class-attribute instance-attribute ¤
party = 'party' class-attribute instance-attribute ¤
user = 'user' class-attribute instance-attribute ¤

URIDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.URIDatatype[URIDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.URIDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.URIDatatype href "" "trestle.oscal.common.URIDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
561
562
class URIDatatype(OscalBaseModel):
    __root__: AnyUrl = Field(..., description='A universal resource identifier (URI) formatted according to RFC3986.')
Attributes¤
__root__ = Field(..., description='A universal resource identifier (URI) formatted according to RFC3986.') class-attribute instance-attribute ¤

URIReferenceDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.URIReferenceDatatype[URIReferenceDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.URIReferenceDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.URIReferenceDatatype href "" "trestle.oscal.common.URIReferenceDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
565
566
class URIReferenceDatatype(OscalBaseModel):
    __root__: str = Field(..., description='A URI Reference, either a URI or a relative-reference, formatted according to section 4.1 of RFC3986.')
Attributes¤
__root__ = Field(..., description='A URI Reference, either a URI or a relative-reference, formatted according to section 4.1 of RFC3986.') class-attribute instance-attribute ¤

UUIDDatatype ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.UUIDDatatype[UUIDDatatype]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.UUIDDatatype
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.UUIDDatatype href "" "trestle.oscal.common.UUIDDatatype"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
569
570
class UUIDDatatype(OscalBaseModel):
    __root__: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., description="A type 4 ('random' or 'pseudorandom') or type 5 UUID per RFC 4122.")
Attributes¤
__root__ = Field(..., description="A type 4 ('random' or 'pseudorandom') or type 5 UUID per RFC 4122.") class-attribute instance-attribute ¤

UsesComponent ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.UsesComponent[UsesComponent]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.UsesComponent
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.UsesComponent href "" "trestle.oscal.common.UsesComponent"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The set of components that are used by the assessment platform.

Source code in trestle/oscal/common.py
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
class UsesComponent(OscalBaseModel):
    """
    The set of components that are used by the assessment platform.
    """

    class Config:
        extra = Extra.forbid

    component_uuid: constr(regex=r'^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[45][0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$') = Field(..., alias='component-uuid', description='A machine-oriented identifier reference to a component that is implemented as part of an inventory item.', title='Component Universally Unique Identifier Reference')
    props: list[Property] | None = Field(None)
    links: list[Link] | None = Field(None)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties')
    remarks: str | None = None
Attributes¤
component_uuid = Field(..., alias='component-uuid', description='A machine-oriented identifier reference to a component that is implemented as part of an inventory item.', title='Component Universally Unique Identifier Reference') class-attribute instance-attribute ¤
props = Field(None) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
1919
1920
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

Version ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.Version[Version]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.Version
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.Version href "" "trestle.oscal.common.Version"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1961
1962
class Version(OscalBaseModel):
    __root__: StringDatatype = Field(..., description='Used to distinguish a specific revision of an OSCAL document from other previous and future versions.', title='Document Version')
Attributes¤
__root__ = Field(..., description='Used to distinguish a specific revision of an OSCAL document from other previous and future versions.', title='Document Version') class-attribute instance-attribute ¤

WithId ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.WithId[WithId]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.WithId
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.WithId href "" "trestle.oscal.common.WithId"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            
Source code in trestle/oscal/common.py
1965
1966
class WithId(OscalBaseModel):
    __root__: TokenDatatype = Field(..., description='Selecting a control by its ID given as a literal.', title='Match Controls by Identifier')
Attributes¤
__root__ = Field(..., description='Selecting a control by its ID given as a literal.', title='Match Controls by Identifier') class-attribute instance-attribute ¤

WithinDateRange ¤

Bases: OscalBaseModel


              flowchart TD
              trestle.oscal.common.WithinDateRange[WithinDateRange]
              trestle.core.base_model.OscalBaseModel[OscalBaseModel]
              trestle.core.trestle_base_model.TrestleBaseModel[TrestleBaseModel]

                              trestle.core.base_model.OscalBaseModel --> trestle.oscal.common.WithinDateRange
                                trestle.core.trestle_base_model.TrestleBaseModel --> trestle.core.base_model.OscalBaseModel
                



              click trestle.oscal.common.WithinDateRange href "" "trestle.oscal.common.WithinDateRange"
              click trestle.core.base_model.OscalBaseModel href "" "trestle.core.base_model.OscalBaseModel"
              click trestle.core.trestle_base_model.TrestleBaseModel href "" "trestle.core.trestle_base_model.TrestleBaseModel"
            

The task is intended to occur within the specified date range.

Source code in trestle/oscal/common.py
573
574
575
576
577
578
579
580
581
582
583
class WithinDateRange(OscalBaseModel):
    """
    The task is intended to occur within the specified date range.
    """

    class Config:
        extra = Extra.forbid

    start: datetime = Field(..., description='The task must occur on or after the specified date.', title='Start Date Condition')
    end: datetime = Field(..., description='The task must occur on or before the specified date.', title='End Date Condition')
    remarks: str | None = None
Attributes¤
end = Field(..., description='The task must occur on or before the specified date.', title='End Date Condition') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
start = Field(..., description='The task must occur on or after the specified date.', title='Start Date Condition') class-attribute instance-attribute ¤
Classes¤
Config ¤
Source code in trestle/oscal/common.py
578
579
class Config:
    extra = Extra.forbid
Attributes¤
extra = Extra.forbid class-attribute instance-attribute ¤

handler: python