Skip to content

Commit 205e6dd

Browse files
committed
add placeholder for client code
1 parent 7fe1257 commit 205e6dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_proxy/protos/cloud_executor_server.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
import grpc
2020
from google.spanner.executor.v1 import cloud_executor_pb2
2121
from google.spanner.executor.v1 import cloud_executor_pb2_grpc
22+
from google.cloud.spanner import Client
2223

2324

2425
class TestProxyServer(cloud_executor_pb2_grpc.SpannerExecutorProxyServicer):
2526
def ExecuteActionAsync(self, request, context):
2627
print("Execute action async")
2728
print(f"{request=}")
28-
# TODO: do something with the request
29+
client = Client()
30+
# TODO: Replace with correct client code
31+
client.list_instances()
32+
# TODO: Do something with the request
2933
yield cloud_executor_pb2.SpannerAsyncActionResponse()
3034

3135
def serve():

0 commit comments

Comments
 (0)