Remove unnecessary TODO comments.
parent
79554a6491
commit
c1a59265ae
|
@ -13,6 +13,9 @@ COMMON_PROPERTIES = {
|
|||
'external_references': Property(),
|
||||
'revoked': BooleanProperty(),
|
||||
'created_by_ref': ReferenceProperty(),
|
||||
# TODO:
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
}
|
||||
|
||||
|
||||
|
|
166
stix2/sdo.py
166
stix2/sdo.py
|
@ -18,18 +18,6 @@ class AttackPattern(_STIXBase):
|
|||
'kill_chain_phases': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - kill_chain_phases
|
||||
|
||||
super(AttackPattern, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Campaign(_STIXBase):
|
||||
|
||||
|
@ -46,21 +34,6 @@ class Campaign(_STIXBase):
|
|||
'objective': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - aliases
|
||||
# - first_seen
|
||||
# - last_seen
|
||||
# - objective
|
||||
|
||||
super(Campaign, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class CourseOfAction(_STIXBase):
|
||||
|
||||
|
@ -73,17 +46,6 @@ class CourseOfAction(_STIXBase):
|
|||
'description': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
|
||||
super(CourseOfAction, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Identity(_STIXBase):
|
||||
|
||||
|
@ -99,20 +61,6 @@ class Identity(_STIXBase):
|
|||
'contact_information': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - identity_class
|
||||
# - sectors
|
||||
# - contact_information
|
||||
|
||||
super(Identity, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Indicator(_STIXBase):
|
||||
|
||||
|
@ -130,20 +78,6 @@ class Indicator(_STIXBase):
|
|||
'kill_chain_phases': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - name
|
||||
# - description
|
||||
# - valid_until
|
||||
# - kill_chain_phases
|
||||
|
||||
super(Indicator, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class IntrusionSet(_STIXBase):
|
||||
|
||||
|
@ -163,24 +97,6 @@ class IntrusionSet(_STIXBase):
|
|||
'secondary_motivations': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - aliases
|
||||
# - first_seen
|
||||
# - last_seen
|
||||
# - goals
|
||||
# - resource_level
|
||||
# - primary_motivation
|
||||
# - secondary_motivations
|
||||
|
||||
super(IntrusionSet, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Malware(_STIXBase):
|
||||
|
||||
|
@ -195,18 +111,6 @@ class Malware(_STIXBase):
|
|||
'kill_chain_phases': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - kill_chain_phases
|
||||
|
||||
super(Malware, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class ObservedData(_STIXBase):
|
||||
|
||||
|
@ -221,20 +125,6 @@ class ObservedData(_STIXBase):
|
|||
'objects': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - first_observed
|
||||
# - last_observed
|
||||
# - number_observed
|
||||
# - objects
|
||||
|
||||
super(ObservedData, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Report(_STIXBase):
|
||||
|
||||
|
@ -250,19 +140,6 @@ class Report(_STIXBase):
|
|||
'object_refs': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - published
|
||||
# - object_refs
|
||||
|
||||
super(Report, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class ThreatActor(_STIXBase):
|
||||
|
||||
|
@ -284,25 +161,6 @@ class ThreatActor(_STIXBase):
|
|||
'personal_motivations': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - aliases
|
||||
# - roles
|
||||
# - goals
|
||||
# - sophistication
|
||||
# - resource_level
|
||||
# - primary_motivation
|
||||
# - secondary_motivations
|
||||
# - personal_motivations
|
||||
|
||||
super(ThreatActor, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Tool(_STIXBase):
|
||||
|
||||
|
@ -318,19 +176,6 @@ class Tool(_STIXBase):
|
|||
'tool_version': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
# - kill_chain_phases
|
||||
# - tool_version
|
||||
|
||||
super(Tool, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class Vulnerability(_STIXBase):
|
||||
|
||||
|
@ -342,14 +187,3 @@ class Vulnerability(_STIXBase):
|
|||
'name': Property(required=True),
|
||||
'description': Property(),
|
||||
})
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
|
||||
super(Vulnerability, self).__init__(**kwargs)
|
||||
|
|
|
@ -21,12 +21,6 @@ class Relationship(_STIXBase):
|
|||
def __init__(self, source_ref=None, relationship_type=None, target_ref=None,
|
||||
**kwargs):
|
||||
# TODO:
|
||||
# - created_by_ref
|
||||
# - revoked
|
||||
# - external_references
|
||||
# - object_marking_refs
|
||||
# - granular_markings
|
||||
|
||||
# - description
|
||||
|
||||
# Allow (source_ref, relationship_type, target_ref) as positional args.
|
||||
|
|
Loading…
Reference in New Issue