def rpc_thread(): """RPC Server to serve PATCH requests.""" LOG.info(f"Starting RPC server. Port: {Config.SOURCES_CLIENT_RPC_PORT}") with SimpleXMLRPCServer(("0.0.0.0", Config.SOURCES_CLIENT_RPC_PORT), allow_none=True) as server: server.register_introspection_functions() server.register_instance(SourcesPatchHandler()) server.serve_forever()
def update_authentication(self, source_id, authentication): return SourcesPatchHandler().update_authentication( source_id, authentication)
def update_billing_source(self, source_id, billing_source): return SourcesPatchHandler().update_billing_source( source_id, billing_source)