async def get200(self): resp = await self._send_request( "get200", _module_lite_types._fbthrift_Raiser_get200_args(), _module_lite_types._fbthrift_Raiser_get200_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def getRandomData(self): resp = self._send_request( "getRandomData", _module_lite_types._fbthrift_MyService_getRandomData_args(), _module_lite_types._fbthrift_MyService_getRandomData_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def hasDataById(self, id): resp = self._send_request( "hasDataById", _module_lite_types._fbthrift_MyService_hasDataById_args( id=id, ), _module_lite_types._fbthrift_MyService_hasDataById_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
async def getDataByKey1(self, key): resp = await self._send_request( "getDataByKey1", _module_lite_types. _fbthrift_DbMixedStackArguments_getDataByKey1_args(key=key, ), _module_lite_types. _fbthrift_DbMixedStackArguments_getDataByKey1_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
async def getDataById(self, id: int) -> str: resp = await self._send_request( "MyService", "getDataById", module.lite_types._fbthrift_MyService_getDataById_args( id=id, ), module.lite_types._fbthrift_MyService_getDataById_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def init(self, int1: int) -> int: resp = self._send_request( "HsTestService", "init", py3lite_module_root.my.namespacing.test.hsmodule.lite_types. _fbthrift_HsTestService_init_args(int1=int1, ), py3lite_module_root.my.namespacing.test.hsmodule.lite_types. _fbthrift_HsTestService_init_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def getDataByKey0(self, key: str) -> bytes: resp = self._send_request( "DbMixedStackArguments", "getDataByKey0", module.lite_types. _fbthrift_DbMixedStackArguments_getDataByKey0_args(key=key, ), module.lite_types. _fbthrift_DbMixedStackArguments_getDataByKey0_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def check( self, struct1: py3lite_module_root.my.namespacing.test.hsmodule. lite_types.HsFoo ) -> bool: resp = self._send_request( "ExtendTestService", "check", py3lite_module_root.my.namespacing.extend.test.extend. lite_types._fbthrift_ExtendTestService_check_args( struct1=struct1, ), py3lite_module_root.my.namespacing.extend.test.extend. lite_types._fbthrift_ExtendTestService_check_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )
def get500(self) -> str: resp = self._send_request( "Raiser", "get500", module.lite_types._fbthrift_Raiser_get500_args(), module.lite_types._fbthrift_Raiser_get500_result, ) # shortcut to success path for non-void returns if resp.success is not None: return resp.success if resp.f is not None: raise resp.f if resp.b is not None: raise resp.b if resp.s is not None: raise resp.s raise _fbthrift_py3lite_exceptions.ApplicationError( _fbthrift_py3lite_exceptions.ApplicationErrorType. MISSING_RESULT, "Empty Response", )