# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import cybox
import cybox.bindings.api_object as api_binding
from cybox.common import ObjectProperties, String, HexBinary, StructuredText, PlatformSpecification
[docs]class API(ObjectProperties):
_binding = api_binding
_binding_class = api_binding.APIObjectType
_namespace = "http://cybox.mitre.org/objects#APIObject-2"
_XSI_NS = "APIObj"
_XSI_TYPE = "APIObjectType"
description = cybox.TypedField("Description", StructuredText)
function_name = cybox.TypedField("Function_Name", String)
normalized_function_name = cybox.TypedField("Normalized_Function_Name", String)
platform = cybox.TypedField("Platform", PlatformSpecification)
address = cybox.TypedField("Address", HexBinary)