def __init__(self, id_=None, idref=None, title=None, description=None, short_description=None): super(Infrastructure, self).__init__() self.id_ = id_ self.idref = idref self.title = title self.description = StructuredTextList(description) self.short_description = StructuredTextList(short_description)
def __init__(self, package_intents=None, description=None, handling=None, information_source=None, title=None, short_description=None): super(STIXHeader, self).__init__() self.package_intents = package_intents self.title = title self.description = StructuredTextList(description) self.short_description = StructuredTextList(short_description) self.handling = handling self.information_source = information_source self.profiles = None
def add_description(self, description): """Adds a description to the ``descriptions`` collection. This is the same as calling "foo.descriptions.add(bar)". """ if self.descriptions is None: self.descriptions = StructuredTextList() self.descriptions.add(description)
def __init__(self, id_=None, idref=None, timestamp=None, title=None, description=None, short_description=None): from stix.common import StructuredTextList super(BaseCoreComponent, self).__init__() self.id_ = id_ or idgen.create_id(self._ID_PREFIX) self.idref = idref self.title = title self.descriptions = StructuredTextList(description) self.short_descriptions = StructuredTextList(short_description) if timestamp: self.timestamp = timestamp else: self.timestamp = utils.dates.now() if not idref else None
def description(self): """A single description about the contents or purpose of this object. Default Value: ``None`` Note: If this object has more than one description set, this will return the description with the lowest ordinality value. Returns: An instance of :class:`.StructuredText` """ if self.descriptions is None: self.descriptions = StructuredTextList() return next(iter(self.descriptions), None)
def descriptions(self, value): self._description = StructuredTextList(value)
def __init__(self, title=None, description=None, short_description=None): super(Vulnerability, self).__init__() self.title = title self.descriptions = StructuredTextList(description) self.short_descriptions = StructuredTextList(short_description)
def __init__(self, description=None, short_description=None): super(Objective, self).__init__() self.description = StructuredTextList(description) self.short_description = StructuredTextList(short_description)
def description(self, value): self.descriptions = StructuredTextList(value)
def __init__(self, id_=None, idref=None): super(GenericTestMechanism, self).__init__(id_=id_, idref=idref) self.descriptions = StructuredTextList()
def __init__(self, description=None, short_description=None, cce_id=None): super(Configuration, self).__init__() self.description = StructuredTextList(description) self.short_description = StructuredTextList(short_description) self.cce_id = cce_id
def short_descriptions(self, value): deprecated(value) self._short_description = StructuredTextList(value)
def short_descriptions(self, value): from stix.common import StructuredTextList self._short_description = StructuredTextList(value)
def descriptions_of_effect(self, value): self._description_of_effect = StructuredTextList(value)
def __init__(self): super(PropertyAffected, self).__init__() self.descriptions_of_effect = StructuredTextList()
def __init__(self): super(AffectedAsset, self).__init__() self.description = StructuredTextList() self.business_function_or_role = StructuredTextList()
def short_description(self, value): self.short_descriptions = StructuredTextList(value)
def __init__(self, description=None, cwe_id=None): super(Weakness, self).__init__() self.description = StructuredTextList(description) self.cwe_id = cwe_id
def business_functions_or_roles(self, value): self._business_function_or_role = StructuredTextList(value)