1# Copyright (c) 2017, The MITRE Corporation. All rights reserved. 2# See LICENSE.txt for complete terms. 3 4from mixbox import fields 5 6import cybox.bindings.api_object as api_binding 7from cybox.common import ObjectProperties, String, HexBinary, StructuredText, PlatformSpecification 8 9 10class API(ObjectProperties): 11 _binding = api_binding 12 _binding_class = api_binding.APIObjectType 13 _namespace = "http://cybox.mitre.org/objects#APIObject-2" 14 _XSI_NS = "APIObj" 15 _XSI_TYPE = "APIObjectType" 16 17 description = fields.TypedField("Description", StructuredText) 18 function_name = fields.TypedField("Function_Name", String) 19 normalized_function_name = fields.TypedField("Normalized_Function_Name", String) 20 platform = fields.TypedField("Platform", PlatformSpecification) 21 address = fields.TypedField("Address", HexBinary) 22