本文整理汇总了Python中stix.data_marking.MarkingStructure.to_dict方法的典型用法代码示例。如果您正苦于以下问题:Python MarkingStructure.to_dict方法的具体用法?Python MarkingStructure.to_dict怎么用?Python MarkingStructure.to_dict使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类stix.data_marking.MarkingStructure
的用法示例。
在下文中一共展示了MarkingStructure.to_dict方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: to_dict
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_dict [as 别名]
def to_dict(self):
d = MarkingStructure.to_dict(self)
if self.terms_of_use:
d['terms_of_use'] = self.terms_of_use
return d
示例2: to_dict
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_dict [as 别名]
def to_dict(self):
d = MarkingStructure.to_dict(self)
if self.isam_version:
d['isam_version'] = self.isam_version
if self.identifier:
d['identifier'] = self.identifier.to_dict()
if self.createdatetime:
d['createdatetime'] = self.createdatetime.to_dict()
if self.responsibleentity:
d['responsibleentity'] = self.responsibleentity.to_dict()
if self.authref:
d['authref'] = self.authref.to_dict()
return d
示例3: to_dict
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_dict [as 别名]
def to_dict(self):
d = MarkingStructure.to_dict(self)
if self.statement:
d['statement'] = self.statement
return d
示例4: to_dict
# 需要导入模块: from stix.data_marking import MarkingStructure [as 别名]
# 或者: from stix.data_marking.MarkingStructure import to_dict [as 别名]
def to_dict(self):
d = MarkingStructure.to_dict(self)
if self.color:
d['color'] = self.color
return d