#NEWLINE# def api_server( api_services , **kwargs ) : #NEWLINE# #INDENT# "Create an api_server.\n\n  The primary function of this method is to set up the WSGIApplication\n  instance for the service handlers described by the services passed in.\n  Additionally, it registers each API in ApiConfigRegistry for later use\n  in the BackendService.getApiConfigs() (API config enumeration service).\n\n  Args:\n    api_services: List of protorpc.remote.Service classes implementing the API\n    **kwargs: Passed through to protorpc.wsgi.service.service_handlers except:\n      protocols - ProtoRPC protocols are not supported, and are disallowed.\n      restricted - If True or unset, the API will only be allowed to serve to\n        Google's API serving infrastructure once deployed.  Set to False to\n        allow other clients.  Under dev_appserver, all clients are accepted.\n        NOTE! Under experimental launch, this is not a secure restriction and\n        other authentication mechanisms *must* be used to control access to\n        the API.  The restriction is only intended to notify developers of\n        a possible upcoming feature to securely restrict access to the API.\n\n  Returns:\n    A new WSGIApplication that serves the API backend and config registry.\n\n  Raises:\n    TypeError: if protocols are configured (this feature is not supported).\n  " #NEWLINE# if ( 'protocols' in kwargs ) : #NEWLINE# #INDENT# raise TypeError ( "__init__() got an unexpected keyword argument 'protocols'" ) #NEWLINE# #UNINDENT# return _ApiServer ( kwargs , ** kwargs )