Skip to content

Commit f053382

Browse files
yoshi-automationtseaver
authored andcommitted
Allow kwargs to be passed to create_channel (via synth). (googleapis#8442)
1 parent 4fd18c8 commit f053382

9 files changed

Lines changed: 18 additions & 11 deletions

File tree

containeranalysis/.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

containeranalysis/.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 =

containeranalysis/google/cloud/devtools/containeranalysis_v1/gapic/container_analysis_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ContainerAnalysisClient(object):
5151
"""
5252
Retrieves analysis results of Cloud components such as Docker container
5353
images. The Container Analysis API is an implementation of the
54-
`Grafeas <grafeas.io>`__ API.
54+
`Grafeas <https://grafeas.io>`__ API.
5555
5656
Analysis results are stored as a series of occurrences. An
5757
``Occurrence`` contains information about a specific analysis instance

containeranalysis/google/cloud/devtools/containeranalysis_v1/gapic/transports/container_analysis_grpc_transport.py

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

7676
@classmethod
7777
def create_channel(
78-
cls, address="containeranalysis.googleapis.com:443", credentials=None
78+
cls, address="containeranalysis.googleapis.com:443", credentials=None, **kwargs
7979
):
8080
"""Create and return a gRPC channel object.
8181
@@ -86,12 +86,14 @@ def create_channel(
8686
credentials identify this application to the service. If
8787
none are specified, the client will attempt to ascertain
8888
the credentials from the environment.
89+
kwargs (dict): Keyword arguments, which are passed to the
90+
channel creation.
8991
9092
Returns:
9193
grpc.Channel: A gRPC channel object.
9294
"""
9395
return google.api_core.grpc_helpers.create_channel(
94-
address, credentials=credentials, scopes=cls._OAUTH_SCOPES
96+
address, credentials=credentials, scopes=cls._OAUTH_SCOPES, **kwargs
9597
)
9698

9799
@property

containeranalysis/google/cloud/devtools/containeranalysis_v1/proto/containeranalysis.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ option ruby_package = "Google::Cloud::ContainerAnalysis::V1";
3131

3232
// Retrieves analysis results of Cloud components such as Docker container
3333
// images. The Container Analysis API is an implementation of the
34-
// [Grafeas](grafeas.io) API.
34+
// [Grafeas](https://grafeas.io) API.
3535
//
3636
// Analysis results are stored as a series of occurrences. An `Occurrence`
3737
// contains information about a specific analysis instance on a resource. An

containeranalysis/google/cloud/devtools/containeranalysis_v1/proto/containeranalysis_pb2_grpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class ContainerAnalysisStub(object):
99
"""Retrieves analysis results of Cloud components such as Docker container
1010
images. The Container Analysis API is an implementation of the
11-
[Grafeas](grafeas.io) API.
11+
[Grafeas](https://grafeas.io) API.
1212
1313
Analysis results are stored as a series of occurrences. An `Occurrence`
1414
contains information about a specific analysis instance on a resource. An
@@ -47,7 +47,7 @@ def __init__(self, channel):
4747
class ContainerAnalysisServicer(object):
4848
"""Retrieves analysis results of Cloud components such as Docker container
4949
images. The Container Analysis API is an implementation of the
50-
[Grafeas](grafeas.io) API.
50+
[Grafeas](https://grafeas.io) API.
5151
5252
Analysis results are stored as a series of occurrences. An `Occurrence`
5353
contains information about a specific analysis instance on a resource. An

containeranalysis/noxfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# Generated by synthtool. DO NOT EDIT!
18+
1719
from __future__ import absolute_import
1820
import os
1921
import shutil

containeranalysis/setup.cfg

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

containeranalysis/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-18T00:23:56.692141Z",
2+
"updateTime": "2019-06-20T12:13:51.436607Z",
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": "384aa843867c4d17756d14a01f047b6368494d32",
16-
"internalRef": "253675319"
15+
"sha": "45e125f9e30dc5d45b52752b3ab78dd4f6084f2d",
16+
"internalRef": "254026509"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)