Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 597a062

Browse files
yoshi-automationtseaver
authored andcommitted
Allow kwargs to be passed to create_channel (via synth). (#8441)
1 parent ec2bb1b commit 597a062

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

google/cloud/bigquery_storage_v1beta1/gapic/transports/big_query_storage_grpc_transport.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676

7777
@classmethod
7878
def create_channel(
79-
cls, address="bigquerystorage.googleapis.com:443", credentials=None
79+
cls, address="bigquerystorage.googleapis.com:443", credentials=None, **kwargs
8080
):
8181
"""Create and return a gRPC channel object.
8282
@@ -87,6 +87,8 @@ def create_channel(
8787
credentials identify this application to the service. If
8888
none are specified, the client will attempt to ascertain
8989
the credentials from the environment.
90+
kwargs (dict): Keyword arguments, which are passed to the
91+
channel creation.
9092
9193
Returns:
9294
grpc.Channel: A gRPC channel object.
@@ -99,6 +101,7 @@ def create_channel(
99101
"grpc.max_send_message_length": -1,
100102
"grpc.max_receive_message_length": -1,
101103
}.items(),
104+
**kwargs
102105
)
103106

104107
@property

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-15T12:12:20.817643Z",
2+
"updateTime": "2019-06-20T12:12:02.710714Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.26.0",
8-
"dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15"
7+
"version": "0.29.0",
8+
"dockerImage": "googleapis/artman@sha256:b79c8c20ee51e5302686c9d1294672d59290df1489be93749ef17d0172cc508d"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "7b58b37559f6a5337c4c564518e9573d742df225",
16-
"internalRef": "253322136"
15+
"sha": "45e125f9e30dc5d45b52752b3ab78dd4f6084f2d",
16+
"internalRef": "254026509"
1717
}
1818
}
1919
],

0 commit comments

Comments
 (0)