Skip to content

Commit

Permalink
add placeholder for client code
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Jun 22, 2024
1 parent 7fe1257 commit 205e6dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test_proxy/protos/cloud_executor_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@
import grpc
from google.spanner.executor.v1 import cloud_executor_pb2
from google.spanner.executor.v1 import cloud_executor_pb2_grpc
from google.cloud.spanner import Client


class TestProxyServer(cloud_executor_pb2_grpc.SpannerExecutorProxyServicer):
def ExecuteActionAsync(self, request, context):
print("Execute action async")
print(f"{request=}")
# TODO: do something with the request
client = Client()
# TODO: Replace with correct client code
client.list_instances()
# TODO: Do something with the request
yield cloud_executor_pb2.SpannerAsyncActionResponse()

def serve():
Expand Down

0 comments on commit 205e6dd

Please sign in to comment.