def create_rest_client_class(name, apis, BaseClass=RestClient):
apis_with_actions = list(itertools.chain.from_iterable([ zip([api] * len(api.actions), api.actions) for api in apis]))<EOL>api_funcs = [create_api_call_func(api, verb) for api, verb in apis_with_actions]<EOL>api_funcs.extend([create_async_api_call_func(api, verb) for api, verb in apis_with_actions])<EOL>api_mapper = dict([ (f.__name__, f) for f in api_funcs ])<EOL>def __init__(self, thread_count=_ASYNC_WORKER_THREAD_COUNT, **reqargs):<EOL><INDENT>BaseClass.__init__(self)<EOL>setattr(self, '<STR_LIT>', read_only_dict(reqargs))<EOL>self._executor = concurrent.futures.ThreadPoolExecutor(thread_count)<EOL><DEDENT>api_mapper['<STR_LIT>'] =  __init__<EOL>ClientClass = type(_CLIENT_NAME_FMT.format(name), (BaseClass,), api_mapper)<EOL>return ClientClass<EOL>
Generate the api call functions and attach them to the generated
RestClient subclass with the name <Service>Client.