Remove unnecessary TODO comments.

stix2.1
Greg Back 2017-03-21 20:20:05 -04:00
parent 79554a6491
commit c1a59265ae
3 changed files with 3 additions and 172 deletions

View File

@ -13,6 +13,9 @@ COMMON_PROPERTIES = {
'external_references': Property(), 'external_references': Property(),
'revoked': BooleanProperty(), 'revoked': BooleanProperty(),
'created_by_ref': ReferenceProperty(), 'created_by_ref': ReferenceProperty(),
# TODO:
# - object_marking_refs
# - granular_markings
} }

View File

@ -18,18 +18,6 @@ class AttackPattern(_STIXBase):
'kill_chain_phases': Property(), '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): class Campaign(_STIXBase):
@ -46,21 +34,6 @@ class Campaign(_STIXBase):
'objective': Property(), '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): class CourseOfAction(_STIXBase):
@ -73,17 +46,6 @@ class CourseOfAction(_STIXBase):
'description': Property(), '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): class Identity(_STIXBase):
@ -99,20 +61,6 @@ class Identity(_STIXBase):
'contact_information': Property(), '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): class Indicator(_STIXBase):
@ -130,20 +78,6 @@ class Indicator(_STIXBase):
'kill_chain_phases': Property(), '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): class IntrusionSet(_STIXBase):
@ -163,24 +97,6 @@ class IntrusionSet(_STIXBase):
'secondary_motivations': Property(), '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): class Malware(_STIXBase):
@ -195,18 +111,6 @@ class Malware(_STIXBase):
'kill_chain_phases': Property(), '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): class ObservedData(_STIXBase):
@ -221,20 +125,6 @@ class ObservedData(_STIXBase):
'objects': Property(), '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): class Report(_STIXBase):
@ -250,19 +140,6 @@ class Report(_STIXBase):
'object_refs': Property(), '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): class ThreatActor(_STIXBase):
@ -284,25 +161,6 @@ class ThreatActor(_STIXBase):
'personal_motivations': Property(), '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): class Tool(_STIXBase):
@ -318,19 +176,6 @@ class Tool(_STIXBase):
'tool_version': Property(), '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): class Vulnerability(_STIXBase):
@ -342,14 +187,3 @@ class Vulnerability(_STIXBase):
'name': Property(required=True), 'name': Property(required=True),
'description': Property(), 'description': Property(),
}) })
def __init__(self, **kwargs):
# TODO:
# - created_by_ref
# - external_references
# - object_marking_refs
# - granular_markings
# - description
super(Vulnerability, self).__init__(**kwargs)

View File

@ -21,12 +21,6 @@ class Relationship(_STIXBase):
def __init__(self, source_ref=None, relationship_type=None, target_ref=None, def __init__(self, source_ref=None, relationship_type=None, target_ref=None,
**kwargs): **kwargs):
# TODO: # TODO:
# - created_by_ref
# - revoked
# - external_references
# - object_marking_refs
# - granular_markings
# - description # - description
# Allow (source_ref, relationship_type, target_ref) as positional args. # Allow (source_ref, relationship_type, target_ref) as positional args.