File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
gapic/templates/%namespace/%name_%version/%sub/services/%service Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ class {{ service.client_name }}(metaclass={{ service.client_name }}Meta):
320320 """
321321
322322 warnings.warn("get_mtls_endpoint_and_cert_source is deprecated. Use the api_endpoint property instead.",
323- DeprecationWarning) # pragma: NO COVER
324- if client_options is None: # pragma: NO COVER
325- client_options = client_options_lib.ClientOptions() # pragma: NO COVER
326- use_client_cert = {{ service.client_name }}._use_client_cert_effective() # pragma: NO COVER
327- use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto") # pragma: NO COVER
323+ DeprecationWarning)
324+ if client_options is None:
325+ client_options = client_options_lib.ClientOptions()
326+ use_client_cert = {{ service.client_name }}._use_client_cert_effective()
327+ use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto")
328328 if use_mtls_endpoint not in ("auto", "never", "always"):
329329 raise MutualTLSChannelError("Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`")
330330
You can’t perform that action at this time.
0 commit comments