def getServiceResponseTypeDefRecursive(servicetype): """ Returns a list of typedef dicts for this type and all contained type fields """ # Get an instance of the service response class and get its typedef instance = registry.getServiceResponseInstance(servicetype) typedef = _getTypeDef(instance) # Return the list of sub-typedefs return _getSubTypeDefsRecursive(typedef, [])
def getServiceResponseTypeDef(servicetype): """ Returns a typedef dict for the service response class for the specified service type """ # Get an instance of the service response class and return its typedef instance = registry.getServiceResponseInstance(servicetype) return _getTypeDef(instance)