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
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
class Action(OscalBaseModel):
    """
    An action applied by a role within a given party to the content.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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: AwareDatetime | None = Field(None, description='The date and time when the action occurred.', title='Action Occurrence Date')
    type: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) 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 ¤

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
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    steps: list[Step] | None = Field(None, min_length=1)
    related_controls: ReviewedControls | None = Field(None, alias='related-controls')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles', min_length=1)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this included activity.', title='Included Activity Description') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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', min_length=1) class-attribute instance-attribute ¤
steps = Field(None, min_length=1) 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 ¤

AddrLine ¤

Bases: RootModel[StringDatatype]


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

              

              click trestle.oscal.common.AddrLine href "" "trestle.oscal.common.AddrLine"
            
Source code in trestle/oscal/common.py
566
567
class AddrLine(RootModel[StringDatatype]):
    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
570
571
572
573
574
575
576
577
578
579
580
581
582
583
class Address(OscalBaseModel):
    """
    A postal address for the location.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: TokenDatatype | AddressTypeValidValues | None = Field(None, description='Indicates the type of address.', title='Address Type')
    addr_lines: list[constr(pattern=r'^\S(.*\S)?$')] | None = Field(None, alias='addr-lines', min_length=1)
    city: constr(pattern=r'^\S(.*\S)?$') | None = Field(None, description='City, town or geographical region for the mailing address.', title='City')
    state: constr(pattern=r'^\S(.*\S)?$') | None = Field(None, description='State, province or analogous geographical region for a mailing address.', title='State')
    postal_code: constr(pattern=r'^\S(.*\S)?$') | None = Field(None, alias='postal-code', description='Postal or ZIP code for mailing address.', title='Postal Code')
    country: constr(pattern=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', min_length=1) 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 ¤
model_config = ConfigDict(extra='forbid') 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 ¤

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
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
class AssessmentAssets(OscalBaseModel):
    """
    Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    components: list[SystemComponent] | None = Field(None, min_length=1)
    assessment_platforms: list[AssessmentPlatform] = Field(..., alias='assessment-platforms', min_length=1)
Attributes¤
assessment_platforms = Field(..., alias='assessment-platforms', min_length=1) class-attribute instance-attribute ¤
components = Field(None, min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(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
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
class AssessmentPart(OscalBaseModel):
    """
    A partition of an assessment plan or results or a child of another part.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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(pattern=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(pattern=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, min_length=1)
    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, min_length=1)
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 ¤
model_config = ConfigDict(extra='forbid') 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, min_length=1) 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 ¤

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
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
class AssessmentPlatform(OscalBaseModel):
    """
    Used to represent the toolset used to perform aspects of the assessment.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=r'^[^\n]+$') | None = Field(None, description='The title or name for the assessment platform.', title='Assessment Platform Title')
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    uses_components: list[UsesComponent] | None = Field(None, alias='uses-components', min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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', min_length=1) 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 ¤

AssessmentSubject ¤

Bases: RootModel[AssessmentSubjectAll | AssessmentSubjectSpecific]


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

              

              click trestle.oscal.common.AssessmentSubject href "" "trestle.oscal.common.AssessmentSubject"
            
Source code in trestle/oscal/common.py
1285
1286
class AssessmentSubject(RootModel[AssessmentSubjectAll | AssessmentSubjectSpecific]):
    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
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_subjects: list[SelectSubjectById] | None = Field(None, alias='exclude-subjects', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(..., min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
sources = Field(..., min_length=1) 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 ¤

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
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_subjects: list[SelectSubjectById] = Field(..., alias='include-subjects', min_length=1)
    exclude_subjects: list[SelectSubjectById] | None = Field(None, alias='exclude-subjects', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_subjects = Field(..., alias='include-subjects', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
class AssociatedActivity(OscalBaseModel):
    """
    Identifies an individual activity to be performed as part of a task.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    activity_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles', min_length=1)
    subjects: list[AssessmentSubject] = Field(..., min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles', min_length=1) class-attribute instance-attribute ¤
subjects = Field(..., min_length=1) 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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    risk_uuid: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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.
    """

    model_config = ConfigDict(
        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(pattern=r'^\S(.*\S)?$') = Field(..., description='The unit of time for the period.', title='Time Unit')
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    title: constr(pattern=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(pattern=r'^\S(.*\S)?$')] = Field(..., alias='functions-performed', min_length=1)
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', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
title = Field(..., description='A human readable name for the privilege.', title='Privilege Title') 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
1204
1205
1206
1207
1208
1209
1210
1211
1212
class BackMatter(OscalBaseModel):
    """
    A collection of resources that may be referenced from within the OSCAL document instance.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    resources: list[Resource] | None = Field(None, min_length=1)
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
resources = Field(None, min_length=1) 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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    filename: constr(pattern=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(pattern=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(pattern=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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
value instance-attribute ¤

Base64Datatype ¤

Bases: RootModel[constr(pattern='^[0-9A-Za-z+/]+={0,2}$')]


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

              

              click trestle.oscal.common.Base64Datatype href "" "trestle.oscal.common.Base64Datatype"
            
Source code in trestle/oscal/common.py
110
111
class Base64Datatype(RootModel[constr(pattern=r'^[0-9A-Za-z+/]+={0,2}$')]):
    root: constr(pattern=r'^[0-9A-Za-z+/]+={0,2}$') = Field(..., description='Binary data encoded using the Base 64 encoding algorithm as defined by RFC4648.', json_schema_extra={'contentEncoding': 'base64'})
Attributes¤
root = Field(..., description='Binary data encoded using the Base 64 encoding algorithm as defined by RFC4648.', json_schema_extra={'contentEncoding': 'base64'}) 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
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
class Characterization(OscalBaseModel):
    """
    A collection of descriptive data about the containing object from a specific origin.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    origin: Origin
    facets: list[Facet] = Field(..., min_length=1)
Attributes¤
facets = Field(..., min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
origin instance-attribute ¤
props = Field(None, min_length=1) 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
755
756
757
758
759
760
761
762
763
764
765
class Citation(OscalBaseModel):
    """
    An optional citation consisting of end note text using structured markup.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    text: constr(pattern=r'^[^\n]+$') = Field(..., description='A line of citation text.', title='Citation Text')
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
text = Field(..., description='A line of citation text.', title='Citation Text') 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
739
740
741
742
743
744
745
746
747
748
749
750
751
752
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.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_objectives: list[SelectObjectiveById] = Field(..., alias='include-objectives', min_length=1)
    exclude_objectives: list[SelectObjectiveById] | None = Field(None, alias='exclude-objectives', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_objectives = Field(..., alias='include-objectives', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None 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
718
719
720
721
722
723
724
725
726
727
728
729
730
731
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.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_objectives: list[SelectObjectiveById] | None = Field(None, alias='exclude-objectives', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None 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
702
703
704
705
706
707
708
709
710
711
712
713
714
715
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.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_controls: list[SelectControlById] = Field(..., alias='include-controls', min_length=1)
    exclude_controls: list[SelectControlById] | None = Field(None, alias='exclude-controls', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_controls = Field(..., alias='include-controls', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None 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
681
682
683
684
685
686
687
688
689
690
691
692
693
694
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.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    include_all: IncludeAll = Field(..., alias='include-all')
    exclude_controls: list[SelectControlById] | None = Field(None, alias='exclude-controls', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
include_all = Field(..., alias='include-all') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤

DateTimeWithTimezoneDatatype ¤

Bases: RootModel[AwareDatetime]


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

              

              click trestle.oscal.common.DateTimeWithTimezoneDatatype href "" "trestle.oscal.common.DateTimeWithTimezoneDatatype"
            
Source code in trestle/oscal/common.py
114
115
class DateTimeWithTimezoneDatatype(RootModel[AwareDatetime]):
    root: AwareDatetime = 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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    task_uuid: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
586
587
588
589
590
591
592
593
594
595
class DocumentId(OscalBaseModel):
    """
    A document identifier qualified by an identifier scheme.
    """

    model_config = ConfigDict(
        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(pattern=r'^\S(.*\S)?$')
Attributes¤
identifier instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute 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 ¤

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: RootModel[EmailAddressDatatype]


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

              

              click trestle.oscal.common.EmailAddress href "" "trestle.oscal.common.EmailAddress"
            
Source code in trestle/oscal/common.py
598
599
class EmailAddress(RootModel[EmailAddressDatatype]):
    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: RootModel[EmailStr]


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

              

              click trestle.oscal.common.EmailAddressDatatype href "" "trestle.oscal.common.EmailAddressDatatype"
            
Source code in trestle/oscal/common.py
134
135
class EmailAddressDatatype(RootModel[EmailStr]):
    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
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
class Entry(OscalBaseModel):
    """
    Identifies an individual risk response that occurred as part of managing an identified risk.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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: AwareDatetime = Field(..., description='Identifies the start date and time of the event.', title='Start')
    end: AwareDatetime | 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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    logged_by: list[LoggedBy] | None = Field(None, alias='logged-by', min_length=1)
    status_change: RiskStatus | None = Field(None, alias='status-change')
    related_responses: list[RelatedResponse] | None = Field(None, alias='related-responses', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
related_responses = Field(None, alias='related-responses', min_length=1) 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 ¤

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
602
603
604
605
606
607
608
609
610
611
class ExternalId(OscalBaseModel):
    """
    An identifier for a person or organization using a designated scheme. e.g. an Open Researcher and Contributor ID (ORCID).
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    scheme: AnyUrl | Scheme = Field(..., description='Indicates the type of external identifier.', title='External Identifier Schema')
    id: constr(pattern=r'^\S(.*\S)?$')
Attributes¤
id instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
scheme = Field(..., description='Indicates the type of external identifier.', title='External Identifier Schema') 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
665
666
667
668
669
670
671
672
673
674
675
676
677
678
class Facet(OscalBaseModel):
    """
    An individual characteristic that is part of a larger set produced by the same actor.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    name: constr(pattern=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(pattern=r'^\S(.*\S)?$') = Field(..., description='Indicates the value of the facet.', title='Facet Value')
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
name = Field(..., description='The name of the risk metric within the specified system.', title='Facet Name') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
class Finding(OscalBaseModel):
    """
    Describes an individual finding.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    origins: list[Origin] | None = Field(None, min_length=1)
    target: FindingTarget
    implementation_statement_uuid: constr(pattern=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', min_length=1)
    related_risks: list[AssociatedRisk] | None = Field(None, alias='related-risks', min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
origins = Field(None, min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
related_observations = Field(None, alias='related-observations', min_length=1) class-attribute instance-attribute ¤
related_risks = Field(None, alias='related-risks', min_length=1) 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 ¤

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
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
class FindingTarget(OscalBaseModel):
    """
    Captures an assessor's conclusions regarding the degree to which an objective is satisfied.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: FindingTargetTypeValidValues = Field(..., description='Identifies the type of the target.', title='Finding Target Type')
    target_id: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
138
139
140
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: RootModel[StringDatatype]


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

              

              click trestle.oscal.common.FunctionPerformed href "" "trestle.oscal.common.FunctionPerformed"
            
Source code in trestle/oscal/common.py
614
615
class FunctionPerformed(RootModel[StringDatatype]):
    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
618
619
620
621
622
623
624
625
626
627
class Hash(OscalBaseModel):
    """
    A representation of a cryptographic digest generated over a resource using a specified hash algorithm.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    algorithm: constr(pattern=r'^\S(.*\S)?$') | Algorithm = Field(..., description='The digest method by which a hash is derived.', title='Hash algorithm')
    value: constr(pattern=r'^\S(.*\S)?$')
Attributes¤
algorithm = Field(..., description='The digest method by which a hash is derived.', title='Hash algorithm') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
value 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
143
144
145
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
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
class IdentifiedSubject(OscalBaseModel):
    """
    Used to detail assessment subjects that were identified by this task.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    subject_placeholder_uuid: constr(pattern=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(..., min_length=1)
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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(..., min_length=1) 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
151
152
153
154
155
156
157
158
159
160
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
630
631
632
633
634
635
636
637
638
639
class ImplementationStatus(OscalBaseModel):
    """
    Indicates the degree to which the a given control is implemented.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    state: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
class ImplementedComponent(OscalBaseModel):
    """
    The set of components that are implemented in a given system inventory item.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    component_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) 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
163
164
165
166
167
168
169
170
171
172
class ImportSsp(OscalBaseModel):
    """
    Used by the assessment plan and POA&M to import information about the system.
    """

    model_config = ConfigDict(
        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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
remarks = None 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
175
176
177
178
179
180
181
182
class IncludeAll(OscalBaseModel):
    """
    Include all controls from the imported catalog or profile resources.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤

IntegerDatatype ¤

Bases: RootModel[int]


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

              

              click trestle.oscal.common.IntegerDatatype href "" "trestle.oscal.common.IntegerDatatype"
            
Source code in trestle/oscal/common.py
185
186
class IntegerDatatype(RootModel[int]):
    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
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
class InventoryItem(OscalBaseModel):
    """
    A single managed inventory item within the system.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    implemented_components: list[ImplementedComponent] | None = Field(None, alias='implemented-components', min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) 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 ¤

JsonSchemaDirective ¤

Bases: RootModel[URIReferenceDatatype]


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

              

              click trestle.oscal.common.JsonSchemaDirective href "" "trestle.oscal.common.JsonSchemaDirective"
            
Source code in trestle/oscal/common.py
642
643
class JsonSchemaDirective(RootModel[URIReferenceDatatype]):
    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: RootModel[DateTimeWithTimezoneDatatype]


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

              

              click trestle.oscal.common.LastModified href "" "trestle.oscal.common.LastModified"
            
Source code in trestle/oscal/common.py
646
647
class LastModified(RootModel[DateTimeWithTimezoneDatatype]):
    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
189
190
191
192
193
194
195
196
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
650
651
652
653
654
655
656
657
658
659
660
661
662
class Link(OscalBaseModel):
    """
    A reference to a local or remote resource, that has a specific relation to the containing object.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    href: str = Field(..., description='A resolvable URL reference to a resource.', title='Hypertext Reference')
    rel: constr(pattern=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(pattern=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(pattern=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(pattern=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 ¤
model_config = ConfigDict(extra='forbid') 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 ¤

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
975
976
977
978
979
980
981
982
983
984
985
986
987
988
class LocalObjective(OscalBaseModel):
    """
    A local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    control_id: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    parts: list[Part] = Field(..., min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
parts = Field(..., min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None 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
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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', min_length=1)
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers', min_length=1)
    urls: list[AnyUrl] | None = Field(None, min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
address = None class-attribute instance-attribute ¤
email_addresses = Field(None, alias='email-addresses', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
telephone_numbers = Field(None, alias='telephone-numbers', min_length=1) 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, min_length=1) class-attribute instance-attribute ¤
uuid = Field(..., description='A unique ID for the location, for reference.', title='Location Universally Unique Identifier') class-attribute instance-attribute ¤

LocationUuid ¤

Bases: RootModel[UUIDDatatype]


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

              

              click trestle.oscal.common.LocationUuid href "" "trestle.oscal.common.LocationUuid"
            
Source code in trestle/oscal/common.py
809
810
class LocationUuid(RootModel[UUIDDatatype]):
    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
199
200
201
202
203
204
205
206
207
208
209
class LoggedBy(OscalBaseModel):
    """
    Used to indicate who created a log entry in what role.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    party_uuid: constr(pattern=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(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

MarkupLineDatatype ¤

Bases: RootModel[constr(pattern='^[^\\n]+$')]


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

              

              click trestle.oscal.common.MarkupLineDatatype href "" "trestle.oscal.common.MarkupLineDatatype"
            
Source code in trestle/oscal/common.py
212
213
class MarkupLineDatatype(RootModel[constr(pattern=r'^[^\n]+$')]):
    root: constr(pattern=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: RootModel[str]


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

              

              click trestle.oscal.common.MarkupMultilineDatatype href "" "trestle.oscal.common.MarkupMultilineDatatype"
            
Source code in trestle/oscal/common.py
216
217
class MarkupMultilineDatatype(RootModel[str]):
    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
220
221
222
223
224
225
226
227
228
229
class Matching(OscalBaseModel):
    """
    Selecting a set of controls by matching their IDs with a wildcard pattern.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    pattern: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
class Metadata(OscalBaseModel):
    """
    Provides information about the containing document, and defines concepts that are shared across the document.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    title: constr(pattern=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: AwareDatetime | None = None
    last_modified: AwareDatetime = Field(..., alias='last-modified')
    version: constr(pattern=r'^\S(.*\S)?$')
    oscal_version: OscalVersion = Field(..., alias='oscal-version')
    revisions: list[Revision] | None = Field(None, min_length=1)
    document_ids: list[DocumentId] | None = Field(None, alias='document-ids', min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    roles: list[Role] | None = Field(None, min_length=1)
    locations: list[Location] | None = Field(None, min_length=1)
    parties: list[Parties | Parties1] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    actions: list[Action] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
actions = Field(None, min_length=1) class-attribute instance-attribute ¤
document_ids = Field(None, alias='document-ids', min_length=1) class-attribute instance-attribute ¤
last_modified = Field(..., alias='last-modified') class-attribute instance-attribute ¤
locations = Field(None, min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
oscal_version = Field(..., alias='oscal-version') class-attribute instance-attribute ¤
parties = Field(None, min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
published = None class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) class-attribute instance-attribute ¤
revisions = Field(None, min_length=1) class-attribute instance-attribute ¤
roles = Field(None, min_length=1) 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 ¤

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
232
233
234
235
236
237
238
239
240
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
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    subjects: list[SubjectReference] | None = Field(None, min_length=1)
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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
subjects = Field(None, min_length=1) 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 ¤

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
243
244
245
246
247
248
249
250
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
253
254
255
256
257
258
259
260
261
262
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: RootModel[conint(ge=0)]


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

              

              click trestle.oscal.common.NonNegativeIntegerDatatype href "" "trestle.oscal.common.NonNegativeIntegerDatatype"
            
Source code in trestle/oscal/common.py
265
266
class NonNegativeIntegerDatatype(RootModel[conint(ge=0)]):
    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
813
814
815
816
817
818
819
820
821
822
823
class ObjectiveStatus(OscalBaseModel):
    """
    A determination of if the objective is satisfied or not within a given system.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    state: ObjectiveStatusStateValidValues = Field(..., description='An indication as to whether the objective is satisfied or not.', title='Objective Status State')
    reason: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
269
270
271
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
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
class Observation(OscalBaseModel):
    """
    Describes an individual observation.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    methods: list[constr(pattern=r'^\S(.*\S)?$') | Methods] = Field(..., min_length=1)
    types: list[constr(pattern=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, min_length=1)
    origins: list[Origin] | None = Field(None, min_length=1)
    subjects: list[SubjectReference] | None = Field(None, min_length=1)
    relevant_evidence: list[RelevantEvidence] | None = Field(None, alias='relevant-evidence', min_length=1)
    collected: AwareDatetime = Field(..., description='Date/time stamp identifying when the finding information was collected.', title='Collected Field')
    expires: AwareDatetime | 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(..., min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
origins = Field(None, min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
relevant_evidence = Field(None, alias='relevant-evidence', min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subjects = Field(None, min_length=1) class-attribute instance-attribute ¤
title = Field(None, description='The title for this observation.', title='Observation Title') class-attribute instance-attribute ¤
types = Field(None, min_length=1) 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 ¤

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
274
275
276
277
278
279
280
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
283
284
285
286
287
288
289
290
291
292
class OnDate(OscalBaseModel):
    """
    The task is intended to occur on the specified date.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    date: AwareDatetime = 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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
remarks = None 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
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
class Origin(OscalBaseModel):
    """
    Identifies the source of the finding, such as a tool, interviewed person, or activity.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    actors: list[OriginActor] = Field(..., min_length=1)
    related_tasks: list[RelatedTask] | None = Field(None, alias='related-tasks', min_length=1)
Attributes¤
actors = Field(..., min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
related_tasks = Field(None, alias='related-tasks', min_length=1) 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
845
846
847
848
849
850
851
852
853
854
855
856
857
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: OriginActorValidValues = Field(..., description='The kind of actor.', title='Actor Type')
    actor_uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
295
296
297
298
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: RootModel[StringDatatype]


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

              

              click trestle.oscal.common.OscalVersion href "" "trestle.oscal.common.OscalVersion"
            
Source code in trestle/oscal/common.py
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
class OscalVersion(RootModel[StringDatatype]):
    root: StringDatatype = Field(..., description='The OSCAL model version the document was authored against and will conform to as valid.', title='OSCAL Version')




    @field_validator('root')
    @classmethod
    def oscal_version_is_valid(cls, v):
        strict_version = False
        if not strict_version:
            return v
        # In Pydantic v2, v is a StringDatatype (RootModel), so we need to extract the actual string
        # StringDatatype itself is RootModel[constr(...)], so we need v.root to get the string
        actual_value = v.root if hasattr(v, 'root') else v
        p = re.compile(OSCAL_VERSION_REGEX)
        matched = p.match(actual_value)
        if matched is None:
            raise ValueError(f'OSCAL version: {actual_value} 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 ¤
Methods:¤
oscal_version_is_valid(v) classmethod ¤
Source code in trestle/oscal/common.py
866
867
868
869
870
871
872
873
874
875
876
877
878
879
@field_validator('root')
@classmethod
def oscal_version_is_valid(cls, v):
    strict_version = False
    if not strict_version:
        return v
    # In Pydantic v2, v is a StringDatatype (RootModel), so we need to extract the actual string
    # StringDatatype itself is RootModel[constr(...)], so we need v.root to get the string
    actual_value = v.root if hasattr(v, 'root') else v
    p = re.compile(OSCAL_VERSION_REGEX)
    matched = p.match(actual_value)
    if matched is None:
        raise ValueError(f'OSCAL version: {actual_value} 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
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
class Parameter1(OscalBaseModel):
    """
    Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    id: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    label: constr(pattern=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, min_length=1)
    guidelines: list[ParameterGuideline] | None = Field(None, min_length=1)
    values: list[constr(pattern=r'^\S(.*\S)?$')] | None = Field(None, min_length=1)
    remarks: str | None = None
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, min_length=1) 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, min_length=1) 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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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, min_length=1) class-attribute instance-attribute ¤

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
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
class Parameter2(OscalBaseModel):
    """
    Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    id: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    label: constr(pattern=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, min_length=1)
    guidelines: list[ParameterGuideline] | None = Field(None, min_length=1)
    select: ParameterSelection | None = None
    remarks: str | None = None
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, min_length=1) 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, min_length=1) 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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
881
882
883
884
885
886
887
888
889
890
class ParameterConstraint(OscalBaseModel):
    """
    A formal or informal expression of a constraint or test.
    """

    model_config = ConfigDict(
        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, min_length=1)
Attributes¤
description = Field(None, description='A textual summary of the constraint to be applied.', title='Constraint Description') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
tests = Field(None, min_length=1) 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
301
302
303
304
305
306
307
308
309
class ParameterGuideline(OscalBaseModel):
    """
    A prose statement that provides a recommendation for the use of a parameter.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    prose: str = Field(..., description='Prose permits multiple paragraphs, lists, tables etc.', title='Guideline Text')
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
prose = Field(..., description='Prose permits multiple paragraphs, lists, tables etc.', title='Guideline Text') 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
914
915
916
917
918
919
920
921
922
923
class ParameterSelection(OscalBaseModel):
    """
    Presenting a choice among alternatives.
    """

    model_config = ConfigDict(
        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(pattern=r'^[^\n]+$')] | None = Field(None, min_length=1)
Attributes¤
choice = Field(None, min_length=1) 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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤

ParameterValue ¤

Bases: RootModel[StringDatatype]


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

              

              click trestle.oscal.common.ParameterValue href "" "trestle.oscal.common.ParameterValue"
            
Source code in trestle/oscal/common.py
952
953
class ParameterValue(RootModel[StringDatatype]):
    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
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
class Part(OscalBaseModel):
    """
    An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    id: constr(pattern=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(pattern=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(pattern=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(pattern=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, min_length=1)
    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, min_length=1)
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 ¤
model_config = ConfigDict(extra='forbid') 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, min_length=1) 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 ¤

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
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
class Parties(OscalBaseModel):
    """
    An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=r'^\S(.*\S)?$') | None = Field(None, description='A category describing the kind of party the object describes.', title='Party Type')
    name: constr(pattern=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(pattern=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', min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    email_addresses: list[EmailStr] | None = Field(None, alias='email-addresses', min_length=1)
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers', min_length=1)
    addresses: list[Address] | None = Field(None, min_length=1)
    member_of_organizations: list[constr(pattern=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', min_length=1)
    remarks: str | None = None
Attributes¤
addresses = Field(None, min_length=1) class-attribute instance-attribute ¤
email_addresses = Field(None, alias='email-addresses', min_length=1) class-attribute instance-attribute ¤
external_ids = Field(None, alias='external-ids', min_length=1) class-attribute instance-attribute ¤
member_of_organizations = Field(None, alias='member-of-organizations', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') 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, min_length=1) 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', min_length=1) 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 ¤

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
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
class Parties1(OscalBaseModel):
    """
    An organization or person, which may be associated with roles or other concepts within the current or linked OSCAL document.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=r'^\S(.*\S)?$') | None = Field(None, description='A category describing the kind of party the object describes.', title='Party Type')
    name: constr(pattern=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(pattern=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', min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    email_addresses: list[EmailStr] | None = Field(None, alias='email-addresses', min_length=1)
    telephone_numbers: list[TelephoneNumber] | None = Field(None, alias='telephone-numbers', min_length=1)
    location_uuids: list[constr(pattern=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', min_length=1)
    member_of_organizations: list[constr(pattern=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', min_length=1)
    remarks: str | None = None
Attributes¤
email_addresses = Field(None, alias='email-addresses', min_length=1) class-attribute instance-attribute ¤
external_ids = Field(None, alias='external-ids', min_length=1) class-attribute instance-attribute ¤
location_uuids = Field(None, alias='location-uuids', min_length=1) class-attribute instance-attribute ¤
member_of_organizations = Field(None, alias='member-of-organizations', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') 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, min_length=1) 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', min_length=1) 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 ¤

PartyUuid ¤

Bases: RootModel[UUIDDatatype]


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

              

              click trestle.oscal.common.PartyUuid href "" "trestle.oscal.common.PartyUuid"
            
Source code in trestle/oscal/common.py
991
992
class PartyUuid(RootModel[UUIDDatatype]):
    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
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
class PortRange(OscalBaseModel):
    """
    Where applicable this is the transport layer protocol port range an IPv4-based or IPv6-based service uses.
    """

    model_config = ConfigDict(
        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 ¤
model_config = ConfigDict(extra='forbid') 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 ¤

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
312
313
314
class PortRangeValidValues(Enum):
    TCP = 'TCP'
    UDP = 'UDP'
Attributes¤
TCP = 'TCP' class-attribute instance-attribute ¤
UDP = 'UDP' class-attribute instance-attribute ¤

PositiveIntegerDatatype ¤

Bases: RootModel[conint(ge=1)]


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

              

              click trestle.oscal.common.PositiveIntegerDatatype href "" "trestle.oscal.common.PositiveIntegerDatatype"
            
Source code in trestle/oscal/common.py
317
318
class PositiveIntegerDatatype(RootModel[conint(ge=1)]):
    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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
class Property(OscalBaseModel):
    """
    An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    name: constr(pattern=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(pattern=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(pattern=r'^\S(.*\S)?$') = Field(..., description='Indicates the value of the attribute, characteristic, or quality.', title='Property Value')
    class_: constr(pattern=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(pattern=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 ¤
model_config = ConfigDict(extra='forbid') 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 ¤

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
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
class Protocol(OscalBaseModel):
    """
    Information about the protocol used to provide a service.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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(pattern=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', min_length=1)
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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', min_length=1) 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 ¤

Published ¤

Bases: RootModel[DateTimeWithTimezoneDatatype]


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

              

              click trestle.oscal.common.Published href "" "trestle.oscal.common.Published"
            
Source code in trestle/oscal/common.py
1027
1028
class Published(RootModel[DateTimeWithTimezoneDatatype]):
    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
338
339
340
341
342
343
344
345
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
348
349
350
351
352
353
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
356
357
358
359
360
361
362
363
364
365
class RelatedObservation(OscalBaseModel):
    """
    Relates the identified element to a set of referenced observations that were used to support its determination.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    observation_uuid: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
class RelatedResponse(OscalBaseModel):
    """
    Identifies an individual risk response that this log entry is for.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    response_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    related_tasks: list[RelatedTask] | None = Field(None, alias='related-tasks', min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
related_tasks = Field(None, alias='related-tasks', min_length=1) 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 ¤

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
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
class RelatedTask(OscalBaseModel):
    """
    Identifies an individual task for which the containing object is a consequence of.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    task_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    subjects: list[AssessmentSubject] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) class-attribute instance-attribute ¤
subjects = Field(None, min_length=1) 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 ¤

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
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
class RelevantEvidence(OscalBaseModel):
    """
    Links this observation to relevant evidence.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤

Remarks ¤

Bases: RootModel[MarkupMultilineDatatype]


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

              

              click trestle.oscal.common.Remarks href "" "trestle.oscal.common.Remarks"
            
Source code in trestle/oscal/common.py
1046
1047
class Remarks(RootModel[MarkupMultilineDatatype]):
    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
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
class RequiredAsset(OscalBaseModel):
    """
    Identifies an asset required to achieve remediation.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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, min_length=1)
    title: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
subjects = Field(None, min_length=1) 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 ¤

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
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    document_ids: list[DocumentId] | None = Field(None, alias='document-ids', min_length=1)
    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, min_length=1)
    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', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
class Response(OscalBaseModel):
    """
    Describes either recommended or an actual plan for addressing the risk.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    origins: list[Origin] | None = Field(None, min_length=1)
    required_assets: list[RequiredAsset] | None = Field(None, alias='required-assets', min_length=1)
    tasks: list[Task] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
origins = Field(None, min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
required_assets = Field(None, alias='required-assets', min_length=1) class-attribute instance-attribute ¤
tasks = Field(None, min_length=1) 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 ¤

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
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    role_id: constr(pattern=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(pattern=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', min_length=1)
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
party_uuids = Field(..., alias='party-uuids', min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    role_id: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    party_uuids: list[constr(pattern=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', min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
party_uuids = Field(None, alias='party-uuids', min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
class ReviewedControls(OscalBaseModel):
    """
    Identifies the controls being assessed and their control objectives.
    """

    model_config = ConfigDict(
        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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    control_selections: list[ControlSelectionsAll | ControlSelections] = Field(..., alias='control-selections', min_length=1)
    control_objective_selections: list[ControlObjectiveSelectionsAll | ControlObjectiveSelections] | None = Field(None, alias='control-objective-selections', min_length=1)
    remarks: str | None = None
Attributes¤
control_objective_selections = Field(None, alias='control-objective-selections', min_length=1) class-attribute instance-attribute ¤
control_selections = Field(..., alias='control-selections', min_length=1) class-attribute instance-attribute ¤
description = Field(None, description='A human-readable description of control objectives.', title='Control Objective Description') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None 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
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
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).
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    title: constr(pattern=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: AwareDatetime | None = None
    last_modified: AwareDatetime | None = Field(None, alias='last-modified')
    version: constr(pattern=r'^\S(.*\S)?$')
    oscal_version: OscalVersion | None = Field(None, alias='oscal-version')
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
last_modified = Field(None, alias='last-modified') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
oscal_version = Field(None, alias='oscal-version') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
class Risk(OscalBaseModel):
    """
    An identified risk.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    status: RiskStatus
    origins: list[Origin] | None = Field(None, min_length=1)
    threat_ids: list[ThreatId] | None = Field(None, alias='threat-ids', min_length=1)
    characterizations: list[Characterization] | None = Field(None, min_length=1)
    mitigating_factors: list[MitigatingFactor] | None = Field(None, alias='mitigating-factors', min_length=1)
    deadline: AwareDatetime | None = Field(None, description='The date/time by which the risk must be resolved.', title='Risk Resolution Deadline')
    remediations: list[Response] | None = Field(None, min_length=1)
    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', min_length=1)
Attributes¤
characterizations = Field(None, min_length=1) 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', min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
origins = Field(None, min_length=1) class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
related_observations = Field(None, alias='related-observations', min_length=1) class-attribute instance-attribute ¤
remediations = Field(None, min_length=1) 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', min_length=1) 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 ¤

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
1409
1410
1411
1412
1413
1414
1415
1416
1417
class RiskLog(OscalBaseModel):
    """
    A log of all risk-related tasks taken.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    entries: list[Entry] = Field(..., min_length=1)
Attributes¤
entries = Field(..., min_length=1) class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤

RiskStatus ¤

Bases: RootModel[TokenDatatype | RiskStatusValidValues]


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

              

              click trestle.oscal.common.RiskStatus href "" "trestle.oscal.common.RiskStatus"
            
Source code in trestle/oscal/common.py
1168
1169
class RiskStatus(RootModel[TokenDatatype | RiskStatusValidValues]):
    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
368
369
370
371
372
373
374
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
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
class Rlink(OscalBaseModel):
    """
    A URL-based pointer to an external resource with an optional hash for verification and change detection.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    href: str = Field(..., description='A resolvable URL pointing to the referenced resource.', title='Hypertext Reference')
    media_type: constr(pattern=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, min_length=1)
hashes = Field(None, min_length=1) 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 ¤
model_config = ConfigDict(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
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
class Role(OscalBaseModel):
    """
    Defines a function, which might be assigned to a party in a specific situation.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    id: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

RoleId ¤

Bases: RootModel[TokenDatatype]


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

              

              click trestle.oscal.common.RoleId href "" "trestle.oscal.common.RoleId"
            
Source code in trestle/oscal/common.py
1232
1233
class RoleId(RootModel[TokenDatatype]):
    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
377
378
379
380
381
382
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
385
386
387
388
389
390
391
392
393
394
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    control_id: constr(pattern=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(pattern=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', min_length=1)
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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
statement_ids = Field(None, alias='statement-ids', min_length=1) 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
397
398
399
400
401
402
403
404
405
406
class SelectObjectiveById(OscalBaseModel):
    """
    Used to select a control objective for inclusion/exclusion based on the control objective's identifier.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    objective_id: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
class SelectSubjectById(OscalBaseModel):
    """
    Identifies a set of assessment subjects to include/exclude by UUID.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    subject_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
409
410
411
412
413
414
415
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
418
419
420
421
422
423
424
425
426
427
428
class SetParameter(OscalBaseModel):
    """
    Identifies the parameter that will be set by the enclosed value.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    param_id: constr(pattern=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(pattern=r'^\S(.*\S)?$')] = Field(..., min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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(..., min_length=1) 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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
class Source(OscalBaseModel):
    """
    Assessment subjects will be identified while conducting the referenced activity-instance.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    task_uuid: constr(pattern=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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
448
449
450
451
452
453
454
455
456
457
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
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
class Status(OscalBaseModel):
    """
    Describes the operational status of the system component.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    state: SystemComponentOperationalStateValidValues = Field(..., description='The operational status.', title='State')
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
state = Field(..., description='The operational status.', title='State') 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
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
class Step(OscalBaseModel):
    """
    Identifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    reviewed_controls: ReviewedControls | None = Field(None, alias='reviewed-controls')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles', min_length=1)
    remarks: str | None = None
Attributes¤
description = Field(..., description='A human-readable description of this step.', title='Step Description') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles', min_length=1) 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 ¤

StringDatatype ¤

Bases: RootModel[constr(pattern='^\\S(.*\\S)?$')]


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

              

              click trestle.oscal.common.StringDatatype href "" "trestle.oscal.common.StringDatatype"
            
Source code in trestle/oscal/common.py
460
461
class StringDatatype(RootModel[constr(pattern=r'^\S(.*\S)?$')]):
    root: constr(pattern=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
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
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.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    subject_uuid: constr(pattern=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(pattern=r'^[^\n]+$') | None = Field(None, description='The title or name for the referenced subject.', title='Subject Reference Title')
    props: list[Property] | None = Field(None, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    remarks: str | None = None
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) 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 ¤

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
464
465
466
467
468
469
470
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
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
class SystemComponent(OscalBaseModel):
    """
    A defined component that can be part of an implemented system.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    status: Status = Field(..., description='Describes the operational status of the system component.', title='Status')
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles', min_length=1)
    protocols: list[Protocol] | None = Field(None, min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
protocols = Field(None, min_length=1) 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', min_length=1) 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 ¤

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
473
474
475
476
477
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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
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
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
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.
    """

    model_config = ConfigDict(
        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(pattern=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 ¤
model_config = ConfigDict(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
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
class SystemUser(OscalBaseModel):
    """
    A type of user that interacts with the system based on an associated role.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    role_ids: list[constr(pattern=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', min_length=1)
    authorized_privileges: list[AuthorizedPrivilege] | None = Field(None, alias='authorized-privileges', min_length=1)
    remarks: str | None = None
Attributes¤
authorized_privileges = Field(None, alias='authorized-privileges', min_length=1) 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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
role_ids = Field(None, alias='role-ids', min_length=1) 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 ¤

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
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
class Task(OscalBaseModel):
    """
    Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    uuid: constr(pattern=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(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    timing: TimingOnDate | TimingWithinDateRange | TimingAtFrequency | None = None
    dependencies: list[Dependency] | None = Field(None, min_length=1)
    tasks: list[Task] | None = None
    associated_activities: list[AssociatedActivity] | None = Field(None, alias='associated-activities', min_length=1)
    subjects: list[AssessmentSubject] | None = Field(None, min_length=1)
    responsible_roles: list[ResponsibleRole] | None = Field(None, alias='responsible-roles', min_length=1)
    remarks: str | None = None
Attributes¤
associated_activities = Field(None, alias='associated-activities', min_length=1) class-attribute instance-attribute ¤
dependencies = Field(None, min_length=1) class-attribute instance-attribute ¤
description = Field(None, description='A human-readable description of this task.', title='Task Description') class-attribute instance-attribute ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_roles = Field(None, alias='responsible-roles', min_length=1) class-attribute instance-attribute ¤
subjects = Field(None, min_length=1) 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 ¤

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
497
498
499
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
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
class TelephoneNumber(OscalBaseModel):
    """
    A telephone service number as defined by ITU-T E.164.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    type: StringDatatype | TelephoneTypeValidValues | None = Field(None, description='Indicates the type of phone number.', title='type flag')
    number: constr(pattern=r'^\S(.*\S)?$')
Attributes¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
number instance-attribute ¤
type = Field(None, description='Indicates the type of phone number.', title='type flag') 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
502
503
504
505
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
508
509
510
511
512
513
514
515
516
517
class Test(OscalBaseModel):
    """
    A test expression which is expected to be evaluated by a tool.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    expression: constr(pattern=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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
remarks = None 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
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
class ThreatId(OscalBaseModel):
    """
    A pointer, by ID, to an externally-defined threat.
    """

    model_config = ConfigDict(
        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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
system = Field(..., description='Specifies the source of the threat information.', title='Threat Type Identification System') 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
520
521
522
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
1760
1761
1762
1763
1764
1765
1766
1767
1768
class TimingAtFrequency(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    model_config = ConfigDict(
        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 ¤
model_config = ConfigDict(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
1771
1772
1773
1774
1775
1776
1777
1778
1779
class TimingOnDate(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    model_config = ConfigDict(
        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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

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
1782
1783
1784
1785
1786
1787
1788
1789
1790
class TimingWithinDateRange(OscalBaseModel):
    """
    The timing under which the task is intended to occur.
    """

    model_config = ConfigDict(
        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¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
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 ¤

TokenDatatype ¤

Bases: RootModel[constr(pattern='^[_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]*$')]


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

              

              click trestle.oscal.common.TokenDatatype href "" "trestle.oscal.common.TokenDatatype"
            
Source code in trestle/oscal/common.py
525
526
class TokenDatatype(RootModel[constr(pattern=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]*$')]):
    root: constr(pattern=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
529
530
531
532
533
534
535
536
537
538
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: RootModel[AnyUrl]


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

              

              click trestle.oscal.common.URIDatatype href "" "trestle.oscal.common.URIDatatype"
            
Source code in trestle/oscal/common.py
541
542
class URIDatatype(RootModel[AnyUrl]):
    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: RootModel[str]


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

              

              click trestle.oscal.common.URIReferenceDatatype href "" "trestle.oscal.common.URIReferenceDatatype"
            
Source code in trestle/oscal/common.py
545
546
class URIReferenceDatatype(RootModel[str]):
    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: RootModel[constr(pattern='^[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}$')]


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

              

              click trestle.oscal.common.UUIDDatatype href "" "trestle.oscal.common.UUIDDatatype"
            
Source code in trestle/oscal/common.py
549
550
class UUIDDatatype(RootModel[constr(pattern=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}$')]):
    root: constr(pattern=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
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
class UsesComponent(OscalBaseModel):
    """
    The set of components that are used by the assessment platform.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    component_uuid: constr(pattern=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, min_length=1)
    links: list[Link] | None = Field(None, min_length=1)
    responsible_parties: list[ResponsibleParty] | None = Field(None, alias='responsible-parties', min_length=1)
    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 ¤
model_config = ConfigDict(extra='forbid') class-attribute instance-attribute ¤
props = Field(None, min_length=1) class-attribute instance-attribute ¤
remarks = None class-attribute instance-attribute ¤
responsible_parties = Field(None, alias='responsible-parties', min_length=1) class-attribute instance-attribute ¤

Version ¤

Bases: RootModel[StringDatatype]


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

              

              click trestle.oscal.common.Version href "" "trestle.oscal.common.Version"
            
Source code in trestle/oscal/common.py
1920
1921
class Version(RootModel[StringDatatype]):
    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: RootModel[TokenDatatype]


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

              

              click trestle.oscal.common.WithId href "" "trestle.oscal.common.WithId"
            
Source code in trestle/oscal/common.py
1924
1925
class WithId(RootModel[TokenDatatype]):
    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
553
554
555
556
557
558
559
560
561
562
563
class WithinDateRange(OscalBaseModel):
    """
    The task is intended to occur within the specified date range.
    """

    model_config = ConfigDict(
        extra='forbid',
    )
    start: AwareDatetime = Field(..., description='The task must occur on or after the specified date.', title='Start Date Condition')
    end: AwareDatetime = 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 ¤
model_config = ConfigDict(extra='forbid') 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 ¤

handler: python