openc2lib.types.data.target_enum
1from openc2lib.types.base import Enumerated 2 3class TargetEnum(Enumerated): 4 """ OpenC2 Targets names 5 6 The Language Specification defines a *Targets* subtypes only used in Sec. 3.4.2.1. 7 The openc2lib uses this class to keep a record of all registered Target names, while 8 the *Targets* type is never defined (it is build in an unnamed way to create the 9 `ActionTargets`. 10 11 This class is only expected to be used internally by the openc2lib. 12 """ 13 def __repr__(self): 14 return self.name
4class TargetEnum(Enumerated): 5 """ OpenC2 Targets names 6 7 The Language Specification defines a *Targets* subtypes only used in Sec. 3.4.2.1. 8 The openc2lib uses this class to keep a record of all registered Target names, while 9 the *Targets* type is never defined (it is build in an unnamed way to create the 10 `ActionTargets`. 11 12 This class is only expected to be used internally by the openc2lib. 13 """ 14 def __repr__(self): 15 return self.name
OpenC2 Targets names
The Language Specification defines a Targets subtypes only used in Sec. 3.4.2.1.
The openc2lib uses this class to keep a record of all registered Target names, while
the Targets type is never defined (it is build in an unnamed way to create the
ActionTargets.
This class is only expected to be used internally by the openc2lib.
Inherited Members
- aenum._enum.Enum
- name
- value
- values