File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
packages/google-cloud-spanner Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,7 @@ def __init__(
313313 self ._client_certificate = client_certificate
314314 self ._client_key = client_key
315315 credentials = AnonymousCredentials ()
316+ disable_builtin_metrics = True
316317 elif isinstance (credentials , AnonymousCredentials ):
317318 self ._emulator_host = self ._client_options .api_endpoint
318319
@@ -645,6 +646,7 @@ def instance(
645646 self ._emulator_host ,
646647 labels ,
647648 processing_units ,
649+ self ._experimental_host ,
648650 )
649651
650652 @CrossSync .convert
Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ def __init__(
276276 self ._client_certificate = client_certificate
277277 self ._client_key = client_key
278278 credentials = AnonymousCredentials ()
279+ disable_builtin_metrics = True
279280 elif isinstance (credentials , AnonymousCredentials ):
280281 self ._emulator_host = self ._client_options .api_endpoint
281282 super (Client , self ).__init__ (
@@ -547,6 +548,7 @@ def instance(
547548 self ._emulator_host ,
548549 labels ,
549550 processing_units ,
551+ self ._experimental_host ,
550552 )
551553
552554 def list_instances (self , filter_ = "" , page_size = None ):
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ def spanner_client():
3535
3636 credentials = AnonymousCredentials ()
3737 return spanner_v1 .AsyncClient (
38- project = _helpers .EXPERIMENTAL_HOST_PROJECT ,
38+ use_plain_text = _helpers .USE_PLAIN_TEXT ,
39+ ca_certificate = _helpers .CA_CERTIFICATE ,
40+ client_certificate = _helpers .CLIENT_CERTIFICATE ,
41+ client_key = _helpers .CLIENT_KEY ,
3942 credentials = credentials ,
4043 experimental_host = _helpers .EXPERIMENTAL_HOST ,
4144 )
You can’t perform that action at this time.
0 commit comments