<s> from twilio . rest . base import TwilioClient <EOL> from twilio . rest . resources import ( <EOL> UNSET_TIMEOUT , <EOL> Activities , <EOL> Events , <EOL> Reservations , <EOL> TaskQueues , <EOL> Tasks , <EOL> Workers , <EOL> Workflows , <EOL> Workspaces , <EOL> ) <EOL> class TwilioTaskRouterClient ( TwilioClient ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , account = None , token = None , <EOL> base = "<STR_LIT>" , version = "<STR_LIT>" , <EOL> timeout = UNSET_TIMEOUT , request_account = None ) : <EOL> """<STR_LIT>""" <EOL> super ( TwilioTaskRouterClient , self ) . __init__ ( account , token , base , <EOL> version , timeout , <EOL> request_account ) <EOL> self . base_uri = "<STR_LIT>" . format ( base , version ) <EOL> self . workspace_uri = "<STR_LIT>" . format ( self . base_uri ) <EOL> self . workspaces = Workspaces ( self . base_uri , self . auth , timeout ) <EOL> def activities ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return Activities ( base_uri , self . auth , self . timeout ) <EOL> def events ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return Events ( base_uri , self . auth , self . timeout ) <EOL> def reservations ( self , workspace_sid , task_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , <EOL> workspace_sid , task_sid ) <EOL> return Reservations ( base_uri , self . auth , self . timeout ) <EOL> def worker_reservations ( self , workspace_sid , worker_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , <EOL> workspace_sid , worker_sid ) <EOL> return Reservations ( base_uri , self . auth , self . timeout ) <EOL> def task_queues ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return TaskQueues ( base_uri , self . auth , self . timeout ) <EOL> def tasks ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return Tasks ( base_uri , self . auth , self . timeout ) <EOL> def workers ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return Workers ( base_uri , self . auth , self . timeout ) <EOL> def workflows ( self , workspace_sid ) : <EOL> """<STR_LIT>""" <EOL> base_uri = "<STR_LIT>" . format ( self . workspace_uri , workspace_sid ) <EOL> return Workflows ( base_uri , self . auth , self . timeout ) </s>
