Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit c1c9608

Browse files
fix: disable always_use_jwt_access (#123)
* chore: use gapic-generator-python 0.50.3 fix: disable always_use_jwt_access Committer: @busunkim96 PiperOrigin-RevId: 382142900 Source-Link: googleapis/googleapis@513440f Source-Link: https://github.com/googleapis/googleapis-gen/commit/7b1e2c31233f79a704ec21ca410bf661d6bc68d0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Dina Graves Portman <dinagraves@google.com>
1 parent 5962e0e commit c1c9608

File tree

9 files changed

+189
-39
lines changed

9 files changed

+189
-39
lines changed

google/cloud/devtools/cloudbuild/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
)
8484
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import UpdateWorkerPoolRequest
8585
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import Volume
86+
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WebhookConfig
8687
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WorkerConfig
8788
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WorkerPool
8889

@@ -137,6 +138,7 @@
137138
"UpdateBuildTriggerRequest",
138139
"UpdateWorkerPoolRequest",
139140
"Volume",
141+
"WebhookConfig",
140142
"WorkerConfig",
141143
"WorkerPool",
142144
)

google/cloud/devtools/cloudbuild_v1/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from .types.cloudbuild import UpdateBuildTriggerRequest
6666
from .types.cloudbuild import UpdateWorkerPoolRequest
6767
from .types.cloudbuild import Volume
68+
from .types.cloudbuild import WebhookConfig
6869
from .types.cloudbuild import WorkerConfig
6970
from .types.cloudbuild import WorkerPool
7071

@@ -119,6 +120,7 @@
119120
"UpdateBuildTriggerRequest",
120121
"UpdateWorkerPoolRequest",
121122
"Volume",
123+
"WebhookConfig",
122124
"WorkerConfig",
123125
"WorkerPool",
124126
)

google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)
102102

103103
# Save the scopes.
104-
self._scopes = scopes or self.AUTH_SCOPES
104+
self._scopes = scopes
105105

106106
# If no credentials are provided, then determine the appropriate
107107
# defaults.

google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/grpc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def __init__(
6767
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
6868
quota_project_id: Optional[str] = None,
6969
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
70+
always_use_jwt_access: Optional[bool] = False,
7071
) -> None:
7172
"""Instantiate the transport.
7273
@@ -107,6 +108,8 @@ def __init__(
107108
API requests. If ``None``, then default info will be used.
108109
Generally, you only need to set this if you're developing
109110
your own client library.
111+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
112+
be used for service account credentials.
110113
111114
Raises:
112115
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
@@ -160,7 +163,7 @@ def __init__(
160163
scopes=scopes,
161164
quota_project_id=quota_project_id,
162165
client_info=client_info,
163-
always_use_jwt_access=True,
166+
always_use_jwt_access=always_use_jwt_access,
164167
)
165168

166169
if not self._grpc_channel:

google/cloud/devtools/cloudbuild_v1/services/cloud_build/transports/grpc_asyncio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def __init__(
113113
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
114114
quota_project_id=None,
115115
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
116+
always_use_jwt_access: Optional[bool] = False,
116117
) -> None:
117118
"""Instantiate the transport.
118119
@@ -154,6 +155,8 @@ def __init__(
154155
API requests. If ``None``, then default info will be used.
155156
Generally, you only need to set this if you're developing
156157
your own client library.
158+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
159+
be used for service account credentials.
157160
158161
Raises:
159162
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
@@ -206,7 +209,7 @@ def __init__(
206209
scopes=scopes,
207210
quota_project_id=quota_project_id,
208211
client_info=client_info,
209-
always_use_jwt_access=True,
212+
always_use_jwt_access=always_use_jwt_access,
210213
)
211214

212215
if not self._grpc_channel:

google/cloud/devtools/cloudbuild_v1/types/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
UpdateBuildTriggerRequest,
6363
UpdateWorkerPoolRequest,
6464
Volume,
65+
WebhookConfig,
6566
WorkerConfig,
6667
WorkerPool,
6768
)
@@ -115,6 +116,7 @@
115116
"UpdateBuildTriggerRequest",
116117
"UpdateWorkerPoolRequest",
117118
"Volume",
119+
"WebhookConfig",
118120
"WorkerConfig",
119121
"WorkerPool",
120122
)

0 commit comments

Comments
 (0)