Fix stix2.1 course-of-action SDO class properties action_reference
and action_bin to have the correct types.master
parent
b8c5bec101
commit
de93a2ee32
|
@ -8,9 +8,10 @@ from six.moves.urllib.parse import quote_plus
|
||||||
from ..core import STIXDomainObject
|
from ..core import STIXDomainObject
|
||||||
from ..custom import _custom_object_builder
|
from ..custom import _custom_object_builder
|
||||||
from ..properties import (
|
from ..properties import (
|
||||||
BooleanProperty, EnumProperty, FloatProperty, IDProperty, IntegerProperty,
|
BinaryProperty, BooleanProperty, EmbeddedObjectProperty, EnumProperty,
|
||||||
ListProperty, ObservableProperty, PatternProperty, ReferenceProperty,
|
FloatProperty, IDProperty, IntegerProperty, ListProperty,
|
||||||
StringProperty, TimestampProperty, TypeProperty,
|
ObservableProperty, PatternProperty, ReferenceProperty, StringProperty,
|
||||||
|
TimestampProperty, TypeProperty,
|
||||||
)
|
)
|
||||||
from ..utils import NOW
|
from ..utils import NOW
|
||||||
from .common import ExternalReference, GranularMarking, KillChainPhase
|
from .common import ExternalReference, GranularMarking, KillChainPhase
|
||||||
|
@ -101,8 +102,8 @@ class CourseOfAction(STIXDomainObject):
|
||||||
('description', StringProperty()),
|
('description', StringProperty()),
|
||||||
('action_type', StringProperty()),
|
('action_type', StringProperty()),
|
||||||
('os_execution_envs', ListProperty(StringProperty)),
|
('os_execution_envs', ListProperty(StringProperty)),
|
||||||
('action_bin', StringProperty()),
|
('action_bin', BinaryProperty()),
|
||||||
('action_reference', StringProperty()),
|
('action_reference', EmbeddedObjectProperty(ExternalReference)),
|
||||||
('revoked', BooleanProperty(default=lambda: False)),
|
('revoked', BooleanProperty(default=lambda: False)),
|
||||||
('labels', ListProperty(StringProperty)),
|
('labels', ListProperty(StringProperty)),
|
||||||
('confidence', IntegerProperty()),
|
('confidence', IntegerProperty()),
|
||||||
|
|
Loading…
Reference in New Issue