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

Commit

Permalink
fix: disable always_use_jwt_access (#123)
Browse files Browse the repository at this point in the history
* 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: googleapis/googleapis-gen@7b1e2c3

* 🦉 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>
  • Loading branch information
3 people committed Jun 30, 2021
1 parent 5962e0e commit c1c9608
Show file tree
Hide file tree
Showing 9 changed files with 189 additions and 39 deletions.
2 changes: 2 additions & 0 deletions google/cloud/devtools/cloudbuild/__init__.py
Expand Up @@ -83,6 +83,7 @@
)
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import UpdateWorkerPoolRequest
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import Volume
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WebhookConfig
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WorkerConfig
from google.cloud.devtools.cloudbuild_v1.types.cloudbuild import WorkerPool

Expand Down Expand Up @@ -137,6 +138,7 @@
"UpdateBuildTriggerRequest",
"UpdateWorkerPoolRequest",
"Volume",
"WebhookConfig",
"WorkerConfig",
"WorkerPool",
)
2 changes: 2 additions & 0 deletions google/cloud/devtools/cloudbuild_v1/__init__.py
Expand Up @@ -65,6 +65,7 @@
from .types.cloudbuild import UpdateBuildTriggerRequest
from .types.cloudbuild import UpdateWorkerPoolRequest
from .types.cloudbuild import Volume
from .types.cloudbuild import WebhookConfig
from .types.cloudbuild import WorkerConfig
from .types.cloudbuild import WorkerPool

Expand Down Expand Up @@ -119,6 +120,7 @@
"UpdateBuildTriggerRequest",
"UpdateWorkerPoolRequest",
"Volume",
"WebhookConfig",
"WorkerConfig",
"WorkerPool",
)
Expand Up @@ -101,7 +101,7 @@ def __init__(
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)

# Save the scopes.
self._scopes = scopes or self.AUTH_SCOPES
self._scopes = scopes

# If no credentials are provided, then determine the appropriate
# defaults.
Expand Down
Expand Up @@ -67,6 +67,7 @@ def __init__(
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
quota_project_id: Optional[str] = None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
) -> None:
"""Instantiate the transport.
Expand Down Expand Up @@ -107,6 +108,8 @@ def __init__(
API requests. If ``None``, then default info will be used.
Generally, you only need to set this if you're developing
your own client library.
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
Raises:
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
Expand Down Expand Up @@ -160,7 +163,7 @@ def __init__(
scopes=scopes,
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=True,
always_use_jwt_access=always_use_jwt_access,
)

if not self._grpc_channel:
Expand Down
Expand Up @@ -113,6 +113,7 @@ def __init__(
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
quota_project_id=None,
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
always_use_jwt_access: Optional[bool] = False,
) -> None:
"""Instantiate the transport.
Expand Down Expand Up @@ -154,6 +155,8 @@ def __init__(
API requests. If ``None``, then default info will be used.
Generally, you only need to set this if you're developing
your own client library.
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
Raises:
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
Expand Down Expand Up @@ -206,7 +209,7 @@ def __init__(
scopes=scopes,
quota_project_id=quota_project_id,
client_info=client_info,
always_use_jwt_access=True,
always_use_jwt_access=always_use_jwt_access,
)

if not self._grpc_channel:
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/devtools/cloudbuild_v1/types/__init__.py
Expand Up @@ -62,6 +62,7 @@
UpdateBuildTriggerRequest,
UpdateWorkerPoolRequest,
Volume,
WebhookConfig,
WorkerConfig,
WorkerPool,
)
Expand Down Expand Up @@ -115,6 +116,7 @@
"UpdateBuildTriggerRequest",
"UpdateWorkerPoolRequest",
"Volume",
"WebhookConfig",
"WorkerConfig",
"WorkerPool",
)

0 comments on commit c1c9608

Please sign in to comment.