We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe1257 commit 205e6ddCopy full SHA for 205e6dd
test_proxy/protos/cloud_executor_server.py
@@ -19,13 +19,17 @@
19
import grpc
20
from google.spanner.executor.v1 import cloud_executor_pb2
21
from google.spanner.executor.v1 import cloud_executor_pb2_grpc
22
+from google.cloud.spanner import Client
23
24
25
class TestProxyServer(cloud_executor_pb2_grpc.SpannerExecutorProxyServicer):
26
def ExecuteActionAsync(self, request, context):
27
print("Execute action async")
28
print(f"{request=}")
- # 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
33
yield cloud_executor_pb2.SpannerAsyncActionResponse()
34
35
def serve():
0 commit comments