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

Class CampaignRef

stix/common/campaign_reference.py:15–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class CampaignRef(stix.Entity):
16 _namespace = "http://docs.oasis-open.org/cti/ns/stix/common-1"
17 _binding = common_binding
18 _binding_class = common_binding.CampaignReferenceType
19
20 idref = fields.TypedField("idref")
21 timestamp = fields.DateTimeField("timestamp")
22 names = fields.TypedField("Names", Names)
23
24 def __init__(self, idref=None, timestamp=None):
25 super(CampaignRef, self).__init__()
26
27 self.idref = idref
28 self.timestamp = timestamp
29
30 def add_name(self, name):
31 self.names.append(name)

Callers 2

_fix_valueMethod · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected