File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 4343
4444@serializable .serializable_enum
4545class LifecyclePhase (str , Enum ):
46+ """
47+ Enum object that defines the permissible 'phase' for a Lifecycle according to the CycloneDX schema.
48+
49+ .. note::
50+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.3/#type_classification
51+ """
4652 DESIGN = 'design'
47- PREBUILD = 'pre-build'
53+ PRE_BUILD = 'pre-build'
4854 BUILD = 'build'
49- POSTBUILD = 'post-build'
55+ POST_BUILD = 'post-build'
5056 OPERATIONS = 'operations'
5157 DISCOVERY = 'discovery'
52- DECOMISSION = 'decommission'
58+ DECOMMISSION = 'decommission'
5359
5460
5561@serializable .serializable_class
@@ -93,6 +99,13 @@ def __repr__(self) -> str:
9399
94100@serializable .serializable_class
95101class NamedLifecycle :
102+ """
103+ Object that defines custom state in the product lifecycle.
104+
105+ .. note::
106+ See the CycloneDX Schema definition: https://cyclonedx.org/docs/1.5/#metadata_lifecycles
107+ """
108+
96109 def __init__ (self , name : str , * , description : Optional [str ] = None ) -> None :
97110 self ._name = name
98111 self ._description = description
You can’t perform that action at this time.
0 commit comments