MCPcopy Create free account
hub / github.com/STIXProject/python-stix / CourseOfAction

Class CourseOfAction

stix/coa/__init__.py:39–88  ·  view source on GitHub ↗

Implementation of the STIX Course of Action. Args: id_ (optional): An identifier. If ``None``, a value will be generated via ``mixbox.idgen.create_id()``. If set, this will unset the ``idref`` property. idref (optional): An identifier reference. If set th

Source from the content-addressed store, hash-verified

37
38
39class CourseOfAction(stix.BaseCoreComponent):
40 """Implementation of the STIX Course of Action.
41
42 Args:
43 id_ (optional): An identifier. If ``None``, a value will be generated
44 via ``mixbox.idgen.create_id()``. If set, this will unset the
45 ``idref`` property.
46 idref (optional): An identifier reference. If set this will unset the
47 ``id_`` property.
48 timestamp (optional): A timestamp value. Can be an instance of
49 ``datetime.datetime`` or ``str``.
50 description: A description of the purpose or intent of this object.
51 short_description: A short description of the intent
52 or purpose of this object.
53 title: The title of this object.
54
55 """
56 _binding = coa_binding
57 _binding_class = coa_binding.CourseOfActionType
58 _namespace = "http://docs.oasis-open.org/cti/ns/stix/course-of-action-1"
59 _version = "1.2.1"
60 _ALL_VERSIONS = ("1.0", "1.0.1", "1.1", "1.1.1", "1.2", "1.2.1")
61 _ID_PREFIX = 'coa'
62
63 stage = VocabField("Stage", Stage)
64 type_ = VocabField("Type", COAType)
65 objective = fields.TypedField("Objective", Objective)
66 parameter_observables = fields.TypedField("Parameter_Observables", Observables)
67 structured_coa = fields.TypedField("Structured_COA", type_=_BaseStructuredCOA, factory=StructuredCOAFactory)
68 impact = fields.TypedField("Impact", Statement)
69 cost = fields.TypedField("Cost", Statement)
70 efficacy = fields.TypedField("Efficacy", Statement)
71 related_coas = fields.TypedField("Related_COAs", RelatedCOAs)
72 related_packages = fields.TypedField("Related_Packages", RelatedPackageRefs)
73 information_source = fields.TypedField("Information_Source", InformationSource)
74
75 def __init__(self, id_=None, idref=None, timestamp=None, title=None,
76 description=None, short_description=None):
77
78 super(CourseOfAction, self).__init__(
79 id_=id_,
80 idref=idref,
81 timestamp=timestamp,
82 title=title,
83 description=description,
84 short_description=short_description
85 )
86
87 self.related_coas = RelatedCOAs()
88 self.related_packages = RelatedPackageRefs()
89
90# alias for CourseOfAction
91COA = CourseOfAction

Callers 1

Calls 1

VocabFieldClass · 0.90

Tested by 1