Skip to content

Commit f9da067

Browse files
chore: [Many APIs] Update gapic-generator-python to v1.17.1 (googleapis#12643)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 629071173 Source-Link: googleapis/googleapis@4afa392 Source-Link: https://github.com/googleapis/googleapis-gen/commit/16dbbb4d0457db5e61ac9f99b0d52a46154455ac Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdvcmtmbG93cy8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdvcmtzdGF0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtYWRkcmVzc3ZhbGlkYXRpb24vLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUtZGVsaXZlcnkvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtZmxlZXRlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtbWFwc3BsYXRmb3JtZGF0YXNldHMvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIxNmRiYmI0ZDA0NTdkYjVlNjFhYzlmOTliMGQ1MmE0NjE1NDQ1NWFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtc29sYXIvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLWNzcy8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWNvbnZlcnNpb25zLy5Pd2xCb3QueWFtbCIsImgiOiIxNmRiYmI0ZDA0NTdkYjVlNjFhYzlmOTliMGQ1MmE0NjE1NDQ1NWFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWludmVudG9yaWVzLy5Pd2xCb3QueWFtbCIsImgiOiIxNmRiYmI0ZDA0NTdkYjVlNjFhYzlmOTliMGQ1MmE0NjE1NDQ1NWFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWxmcC8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXF1b3RhLy5Pd2xCb3QueWFtbCIsImgiOiIxNmRiYmI0ZDA0NTdkYjVlNjFhYzlmOTliMGQ1MmE0NjE1NDQ1NWFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJlcG9ydHMvLk93bEJvdC55YW1sIiwiaCI6IjE2ZGJiYjRkMDQ1N2RiNWU2MWFjOWY5OWIwZDUyYTQ2MTU0NDU1YWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ3JhZmVhcy8uT3dsQm90LnlhbWwiLCJoIjoiMTZkYmJiNGQwNDU3ZGI1ZTYxYWM5Zjk5YjBkNTJhNDYxNTQ0NTVhYyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent ed8918f commit f9da067

150 files changed

Lines changed: 20688 additions & 2860 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-workflows/google/cloud/workflows/executions_v1/services/executions/async_client.py

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import functools
1818
import re
1919
from typing import (
20+
Callable,
2021
Dict,
2122
Mapping,
2223
MutableMapping,
@@ -195,7 +196,9 @@ def __init__(
195196
self,
196197
*,
197198
credentials: Optional[ga_credentials.Credentials] = None,
198-
transport: Union[str, ExecutionsTransport] = "grpc_asyncio",
199+
transport: Optional[
200+
Union[str, ExecutionsTransport, Callable[..., ExecutionsTransport]]
201+
] = "grpc_asyncio",
199202
client_options: Optional[ClientOptions] = None,
200203
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
201204
) -> None:
@@ -207,9 +210,11 @@ def __init__(
207210
credentials identify the application to the service; if none
208211
are specified, the client will attempt to ascertain the
209212
credentials from the environment.
210-
transport (Union[str, ~.ExecutionsTransport]): The
211-
transport to use. If set to None, a transport is chosen
212-
automatically.
213+
transport (Optional[Union[str,ExecutionsTransport,Callable[..., ExecutionsTransport]]]):
214+
The transport to use, or a Callable that constructs and returns a new transport to use.
215+
If a Callable is given, it will be called with the same set of initialization
216+
arguments as used in the ExecutionsTransport constructor.
217+
If set to None, a transport is chosen automatically.
213218
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
214219
Custom options for the client.
215220
@@ -324,16 +329,19 @@ async def sample_list_executions():
324329
325330
"""
326331
# Create or coerce a protobuf request object.
327-
# Quick check: If we got a request object, we should *not* have
328-
# gotten any keyword arguments that map to the request.
332+
# - Quick check: If we got a request object, we should *not* have
333+
# gotten any keyword arguments that map to the request.
329334
has_flattened_params = any([parent])
330335
if request is not None and has_flattened_params:
331336
raise ValueError(
332337
"If the `request` argument is set, then none of "
333338
"the individual field arguments should be set."
334339
)
335340

336-
request = executions.ListExecutionsRequest(request)
341+
# - Use the request object if provided (there's no risk of modifying the input as
342+
# there are no flattened fields), or create one.
343+
if not isinstance(request, executions.ListExecutionsRequest):
344+
request = executions.ListExecutionsRequest(request)
337345

338346
# If we have keyword arguments corresponding to fields on the
339347
# request, apply these.
@@ -342,11 +350,9 @@ async def sample_list_executions():
342350

343351
# Wrap the RPC method; this adds retry and timeout information,
344352
# and friendly error handling.
345-
rpc = gapic_v1.method_async.wrap_method(
346-
self._client._transport.list_executions,
347-
default_timeout=None,
348-
client_info=DEFAULT_CLIENT_INFO,
349-
)
353+
rpc = self._client._transport._wrapped_methods[
354+
self._client._transport.list_executions
355+
]
350356

351357
# Certain fields should be provided within the metadata header;
352358
# add these here.
@@ -450,16 +456,19 @@ async def sample_create_execution():
450456
451457
"""
452458
# Create or coerce a protobuf request object.
453-
# Quick check: If we got a request object, we should *not* have
454-
# gotten any keyword arguments that map to the request.
459+
# - Quick check: If we got a request object, we should *not* have
460+
# gotten any keyword arguments that map to the request.
455461
has_flattened_params = any([parent, execution])
456462
if request is not None and has_flattened_params:
457463
raise ValueError(
458464
"If the `request` argument is set, then none of "
459465
"the individual field arguments should be set."
460466
)
461467

462-
request = executions.CreateExecutionRequest(request)
468+
# - Use the request object if provided (there's no risk of modifying the input as
469+
# there are no flattened fields), or create one.
470+
if not isinstance(request, executions.CreateExecutionRequest):
471+
request = executions.CreateExecutionRequest(request)
463472

464473
# If we have keyword arguments corresponding to fields on the
465474
# request, apply these.
@@ -470,11 +479,9 @@ async def sample_create_execution():
470479

471480
# Wrap the RPC method; this adds retry and timeout information,
472481
# and friendly error handling.
473-
rpc = gapic_v1.method_async.wrap_method(
474-
self._client._transport.create_execution,
475-
default_timeout=None,
476-
client_info=DEFAULT_CLIENT_INFO,
477-
)
482+
rpc = self._client._transport._wrapped_methods[
483+
self._client._transport.create_execution
484+
]
478485

479486
# Certain fields should be provided within the metadata header;
480487
# add these here.
@@ -560,16 +567,19 @@ async def sample_get_execution():
560567
561568
"""
562569
# Create or coerce a protobuf request object.
563-
# Quick check: If we got a request object, we should *not* have
564-
# gotten any keyword arguments that map to the request.
570+
# - Quick check: If we got a request object, we should *not* have
571+
# gotten any keyword arguments that map to the request.
565572
has_flattened_params = any([name])
566573
if request is not None and has_flattened_params:
567574
raise ValueError(
568575
"If the `request` argument is set, then none of "
569576
"the individual field arguments should be set."
570577
)
571578

572-
request = executions.GetExecutionRequest(request)
579+
# - Use the request object if provided (there's no risk of modifying the input as
580+
# there are no flattened fields), or create one.
581+
if not isinstance(request, executions.GetExecutionRequest):
582+
request = executions.GetExecutionRequest(request)
573583

574584
# If we have keyword arguments corresponding to fields on the
575585
# request, apply these.
@@ -578,11 +588,9 @@ async def sample_get_execution():
578588

579589
# Wrap the RPC method; this adds retry and timeout information,
580590
# and friendly error handling.
581-
rpc = gapic_v1.method_async.wrap_method(
582-
self._client._transport.get_execution,
583-
default_timeout=None,
584-
client_info=DEFAULT_CLIENT_INFO,
585-
)
591+
rpc = self._client._transport._wrapped_methods[
592+
self._client._transport.get_execution
593+
]
586594

587595
# Certain fields should be provided within the metadata header;
588596
# add these here.
@@ -668,16 +676,19 @@ async def sample_cancel_execution():
668676
669677
"""
670678
# Create or coerce a protobuf request object.
671-
# Quick check: If we got a request object, we should *not* have
672-
# gotten any keyword arguments that map to the request.
679+
# - Quick check: If we got a request object, we should *not* have
680+
# gotten any keyword arguments that map to the request.
673681
has_flattened_params = any([name])
674682
if request is not None and has_flattened_params:
675683
raise ValueError(
676684
"If the `request` argument is set, then none of "
677685
"the individual field arguments should be set."
678686
)
679687

680-
request = executions.CancelExecutionRequest(request)
688+
# - Use the request object if provided (there's no risk of modifying the input as
689+
# there are no flattened fields), or create one.
690+
if not isinstance(request, executions.CancelExecutionRequest):
691+
request = executions.CancelExecutionRequest(request)
681692

682693
# If we have keyword arguments corresponding to fields on the
683694
# request, apply these.
@@ -686,11 +697,9 @@ async def sample_cancel_execution():
686697

687698
# Wrap the RPC method; this adds retry and timeout information,
688699
# and friendly error handling.
689-
rpc = gapic_v1.method_async.wrap_method(
690-
self._client._transport.cancel_execution,
691-
default_timeout=None,
692-
client_info=DEFAULT_CLIENT_INFO,
693-
)
700+
rpc = self._client._transport._wrapped_methods[
701+
self._client._transport.cancel_execution
702+
]
694703

695704
# Certain fields should be provided within the metadata header;
696705
# add these here.

packages/google-cloud-workflows/google/cloud/workflows/executions_v1/services/executions/client.py

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import os
1818
import re
1919
from typing import (
20+
Callable,
2021
Dict,
2122
Mapping,
2223
MutableMapping,
@@ -554,7 +555,9 @@ def __init__(
554555
self,
555556
*,
556557
credentials: Optional[ga_credentials.Credentials] = None,
557-
transport: Optional[Union[str, ExecutionsTransport]] = None,
558+
transport: Optional[
559+
Union[str, ExecutionsTransport, Callable[..., ExecutionsTransport]]
560+
] = None,
558561
client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
559562
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
560563
) -> None:
@@ -566,9 +569,11 @@ def __init__(
566569
credentials identify the application to the service; if none
567570
are specified, the client will attempt to ascertain the
568571
credentials from the environment.
569-
transport (Union[str, ExecutionsTransport]): The
570-
transport to use. If set to None, a transport is chosen
571-
automatically.
572+
transport (Optional[Union[str,ExecutionsTransport,Callable[..., ExecutionsTransport]]]):
573+
The transport to use, or a Callable that constructs and returns a new transport.
574+
If a Callable is given, it will be called with the same set of initialization
575+
arguments as used in the ExecutionsTransport constructor.
576+
If set to None, a transport is chosen automatically.
572577
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
573578
Custom options for the client.
574579
@@ -674,8 +679,15 @@ def __init__(
674679
api_key_value
675680
)
676681

677-
Transport = type(self).get_transport_class(cast(str, transport))
678-
self._transport = Transport(
682+
transport_init: Union[
683+
Type[ExecutionsTransport], Callable[..., ExecutionsTransport]
684+
] = (
685+
type(self).get_transport_class(transport)
686+
if isinstance(transport, str) or transport is None
687+
else cast(Callable[..., ExecutionsTransport], transport)
688+
)
689+
# initialize with the provided callable or the passed in class
690+
self._transport = transport_init(
679691
credentials=credentials,
680692
credentials_file=self._client_options.credentials_file,
681693
host=self._api_endpoint,
@@ -758,19 +770,17 @@ def sample_list_executions():
758770
759771
"""
760772
# Create or coerce a protobuf request object.
761-
# Quick check: If we got a request object, we should *not* have
762-
# gotten any keyword arguments that map to the request.
773+
# - Quick check: If we got a request object, we should *not* have
774+
# gotten any keyword arguments that map to the request.
763775
has_flattened_params = any([parent])
764776
if request is not None and has_flattened_params:
765777
raise ValueError(
766778
"If the `request` argument is set, then none of "
767779
"the individual field arguments should be set."
768780
)
769781

770-
# Minor optimization to avoid making a copy if the user passes
771-
# in a executions.ListExecutionsRequest.
772-
# There's no risk of modifying the input as we've already verified
773-
# there are no flattened fields.
782+
# - Use the request object if provided (there's no risk of modifying the input as
783+
# there are no flattened fields), or create one.
774784
if not isinstance(request, executions.ListExecutionsRequest):
775785
request = executions.ListExecutionsRequest(request)
776786
# If we have keyword arguments corresponding to fields on the
@@ -884,19 +894,17 @@ def sample_create_execution():
884894
885895
"""
886896
# Create or coerce a protobuf request object.
887-
# Quick check: If we got a request object, we should *not* have
888-
# gotten any keyword arguments that map to the request.
897+
# - Quick check: If we got a request object, we should *not* have
898+
# gotten any keyword arguments that map to the request.
889899
has_flattened_params = any([parent, execution])
890900
if request is not None and has_flattened_params:
891901
raise ValueError(
892902
"If the `request` argument is set, then none of "
893903
"the individual field arguments should be set."
894904
)
895905

896-
# Minor optimization to avoid making a copy if the user passes
897-
# in a executions.CreateExecutionRequest.
898-
# There's no risk of modifying the input as we've already verified
899-
# there are no flattened fields.
906+
# - Use the request object if provided (there's no risk of modifying the input as
907+
# there are no flattened fields), or create one.
900908
if not isinstance(request, executions.CreateExecutionRequest):
901909
request = executions.CreateExecutionRequest(request)
902910
# If we have keyword arguments corresponding to fields on the
@@ -994,19 +1002,17 @@ def sample_get_execution():
9941002
9951003
"""
9961004
# Create or coerce a protobuf request object.
997-
# Quick check: If we got a request object, we should *not* have
998-
# gotten any keyword arguments that map to the request.
1005+
# - Quick check: If we got a request object, we should *not* have
1006+
# gotten any keyword arguments that map to the request.
9991007
has_flattened_params = any([name])
10001008
if request is not None and has_flattened_params:
10011009
raise ValueError(
10021010
"If the `request` argument is set, then none of "
10031011
"the individual field arguments should be set."
10041012
)
10051013

1006-
# Minor optimization to avoid making a copy if the user passes
1007-
# in a executions.GetExecutionRequest.
1008-
# There's no risk of modifying the input as we've already verified
1009-
# there are no flattened fields.
1014+
# - Use the request object if provided (there's no risk of modifying the input as
1015+
# there are no flattened fields), or create one.
10101016
if not isinstance(request, executions.GetExecutionRequest):
10111017
request = executions.GetExecutionRequest(request)
10121018
# If we have keyword arguments corresponding to fields on the
@@ -1102,19 +1108,17 @@ def sample_cancel_execution():
11021108
11031109
"""
11041110
# Create or coerce a protobuf request object.
1105-
# Quick check: If we got a request object, we should *not* have
1106-
# gotten any keyword arguments that map to the request.
1111+
# - Quick check: If we got a request object, we should *not* have
1112+
# gotten any keyword arguments that map to the request.
11071113
has_flattened_params = any([name])
11081114
if request is not None and has_flattened_params:
11091115
raise ValueError(
11101116
"If the `request` argument is set, then none of "
11111117
"the individual field arguments should be set."
11121118
)
11131119

1114-
# Minor optimization to avoid making a copy if the user passes
1115-
# in a executions.CancelExecutionRequest.
1116-
# There's no risk of modifying the input as we've already verified
1117-
# there are no flattened fields.
1120+
# - Use the request object if provided (there's no risk of modifying the input as
1121+
# there are no flattened fields), or create one.
11181122
if not isinstance(request, executions.CancelExecutionRequest):
11191123
request = executions.CancelExecutionRequest(request)
11201124
# If we have keyword arguments corresponding to fields on the

packages/google-cloud-workflows/google/cloud/workflows/executions_v1/services/executions/transports/grpc.py

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(
5050
credentials: Optional[ga_credentials.Credentials] = None,
5151
credentials_file: Optional[str] = None,
5252
scopes: Optional[Sequence[str]] = None,
53-
channel: Optional[grpc.Channel] = None,
53+
channel: Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]] = None,
5454
api_mtls_endpoint: Optional[str] = None,
5555
client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
5656
ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
@@ -70,14 +70,17 @@ def __init__(
7070
credentials identify the application to the service; if none
7171
are specified, the client will attempt to ascertain the
7272
credentials from the environment.
73-
This argument is ignored if ``channel`` is provided.
73+
This argument is ignored if a ``channel`` instance is provided.
7474
credentials_file (Optional[str]): A file with credentials that can
7575
be loaded with :func:`google.auth.load_credentials_from_file`.
76-
This argument is ignored if ``channel`` is provided.
76+
This argument is ignored if a ``channel`` instance is provided.
7777
scopes (Optional(Sequence[str])): A list of scopes. This argument is
78-
ignored if ``channel`` is provided.
79-
channel (Optional[grpc.Channel]): A ``Channel`` instance through
80-
which to make calls.
78+
ignored if a ``channel`` instance is provided.
79+
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
80+
A ``Channel`` instance through which to make calls, or a Callable
81+
that constructs and returns one. If set to None, ``self.create_channel``
82+
is used to create the channel. If a Callable is given, it will be called
83+
with the same arguments as used in ``self.create_channel``.
8184
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8285
If provided, it overrides the ``host`` argument and tries to create
8386
a mutual TLS channel with client SSL credentials from
@@ -87,11 +90,11 @@ def __init__(
8790
private key bytes, both in PEM format. It is ignored if
8891
``api_mtls_endpoint`` is None.
8992
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
90-
for the grpc channel. It is ignored if ``channel`` is provided.
93+
for the grpc channel. It is ignored if a ``channel`` instance is provided.
9194
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9295
A callback to provide client certificate bytes and private key bytes,
9396
both in PEM format. It is used to configure a mutual TLS channel. It is
94-
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
97+
ignored if a ``channel`` instance or ``ssl_channel_credentials`` is provided.
9598
quota_project_id (Optional[str]): An optional project to use for billing
9699
and quota.
97100
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
@@ -117,7 +120,7 @@ def __init__(
117120
if client_cert_source:
118121
warnings.warn("client_cert_source is deprecated", DeprecationWarning)
119122

120-
if channel:
123+
if isinstance(channel, grpc.Channel):
121124
# Ignore credentials if a channel was passed.
122125
credentials = False
123126
# If a channel was explicitly provided, set it.
@@ -158,7 +161,9 @@ def __init__(
158161
)
159162

160163
if not self._grpc_channel:
161-
self._grpc_channel = type(self).create_channel(
164+
# initialize with the provided callable or the default channel
165+
channel_init = channel or type(self).create_channel
166+
self._grpc_channel = channel_init(
162167
self._host,
163168
# use the credentials which are saved
164169
credentials=self._credentials,

0 commit comments

Comments
 (0)