Skip to content

Commit 9c0f40c

Browse files
yoshi-automationbusunkim96
authored andcommitted
Allow kwargs to be passed to create_channel, update templates (via synth). (#8391)
1 parent 92129e6 commit 9c0f40c

File tree

17 files changed

+29
-9
lines changed

17 files changed

+29
-9
lines changed

grafeas/.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[run]
23
branch = True
34

grafeas/.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Generated by synthtool. DO NOT EDIT!
12
[flake8]
23
ignore = E203, E266, E501, W503
34
exclude =

grafeas/grafeas/grafeas_v1/gapic/transports/grafeas_grpc_transport.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, address, scopes, channel=None, credentials=None):
6363
self._stubs = {"grafeas_stub": grafeas_pb2_grpc.GrafeasStub(channel)}
6464

6565
@classmethod
66-
def create_channel(cls, address, scopes, credentials=None):
66+
def create_channel(cls, address, scopes, credentials=None, **kwargs):
6767
"""Create and return a gRPC channel object.
6868
6969
Args:
@@ -74,12 +74,14 @@ def create_channel(cls, address, scopes, credentials=None):
7474
credentials identify this application to the service. If
7575
none are specified, the client will attempt to ascertain
7676
the credentials from the environment.
77+
kwargs (dict): Keyword arguments, which are passed to the
78+
channel creation.
7779
7880
Returns:
7981
grpc.Channel: A gRPC channel object.
8082
"""
8183
return google.api_core.grpc_helpers.create_channel(
82-
address, credentials=credentials, scopes=scopes
84+
address, credentials=credentials, scopes=scopes, **kwargs
8385
)
8486

8587
@property

grafeas/grafeas/grafeas_v1/proto/attestation_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/build_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/common_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/cvss_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/deployment_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/discovery_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grafeas/grafeas/grafeas_v1/proto/grafeas_pb2.py

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)