Skip to content

Commit 698c073

Browse files
yoshi-automationbusunkim96
authored andcommitted
Allow kwargs to be passed to create_channel (via synth). (googleapis#8389)
1 parent b988d28 commit 698c073

4 files changed

Lines changed: 26 additions & 11 deletions

File tree

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/error_group_service_grpc_transport.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def __init__(
7575

7676
@classmethod
7777
def create_channel(
78-
cls, address="clouderrorreporting.googleapis.com:443", credentials=None
78+
cls,
79+
address="clouderrorreporting.googleapis.com:443",
80+
credentials=None,
81+
**kwargs
7982
):
8083
"""Create and return a gRPC channel object.
8184
@@ -86,12 +89,14 @@ def create_channel(
8689
credentials identify this application to the service. If
8790
none are specified, the client will attempt to ascertain
8891
the credentials from the environment.
92+
kwargs (dict): Keyword arguments, which are passed to the
93+
channel creation.
8994
9095
Returns:
9196
grpc.Channel: A gRPC channel object.
9297
"""
9398
return google.api_core.grpc_helpers.create_channel(
94-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
99+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
95100
)
96101

97102
@property

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/error_stats_service_grpc_transport.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def __init__(
7575

7676
@classmethod
7777
def create_channel(
78-
cls, address="clouderrorreporting.googleapis.com:443", credentials=None
78+
cls,
79+
address="clouderrorreporting.googleapis.com:443",
80+
credentials=None,
81+
**kwargs
7982
):
8083
"""Create and return a gRPC channel object.
8184
@@ -86,12 +89,14 @@ def create_channel(
8689
credentials identify this application to the service. If
8790
none are specified, the client will attempt to ascertain
8891
the credentials from the environment.
92+
kwargs (dict): Keyword arguments, which are passed to the
93+
channel creation.
8994
9095
Returns:
9196
grpc.Channel: A gRPC channel object.
9297
"""
9398
return google.api_core.grpc_helpers.create_channel(
94-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
99+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
95100
)
96101

97102
@property

error_reporting/google/cloud/errorreporting_v1beta1/gapic/transports/report_errors_service_grpc_transport.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ def __init__(
7575

7676
@classmethod
7777
def create_channel(
78-
cls, address="clouderrorreporting.googleapis.com:443", credentials=None
78+
cls,
79+
address="clouderrorreporting.googleapis.com:443",
80+
credentials=None,
81+
**kwargs
7982
):
8083
"""Create and return a gRPC channel object.
8184
@@ -86,12 +89,14 @@ def create_channel(
8689
credentials identify this application to the service. If
8790
none are specified, the client will attempt to ascertain
8891
the credentials from the environment.
92+
kwargs (dict): Keyword arguments, which are passed to the
93+
channel creation.
8994
9095
Returns:
9196
grpc.Channel: A gRPC channel object.
9297
"""
9398
return google.api_core.grpc_helpers.create_channel(
94-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
99+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
95100
)
96101

97102
@property

error_reporting/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:18:00.028978Z",
2+
"updateTime": "2019-06-18T12:16:52.238099Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.26.0",
8-
"dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15"
7+
"version": "0.27.0",
8+
"dockerImage": "googleapis/artman@sha256:b036a7f4278d9deb5796f065e5c7f608d47d75369985ca7ab5039998120e972d"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "7b58b37559f6a5337c4c564518e9573d742df225",
16-
"internalRef": "253322136"
15+
"sha": "384aa843867c4d17756d14a01f047b6368494d32",
16+
"internalRef": "253675319"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)