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

Commit 1df4a39

Browse files
fix: disable always_use_jwt_access (#91)
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
1 parent e7fba11 commit 1df4a39

File tree

16 files changed

+124
-28
lines changed

16 files changed

+124
-28
lines changed

google/cloud/servicedirectory_v1/services/lookup_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(
9898
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)
9999

100100
# Save the scopes.
101-
self._scopes = scopes or self.AUTH_SCOPES
101+
self._scopes = scopes
102102

103103
# If no credentials are provided, then determine the appropriate
104104
# defaults.

google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(
5757
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
5858
quota_project_id: Optional[str] = None,
5959
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
60+
always_use_jwt_access: Optional[bool] = False,
6061
) -> None:
6162
"""Instantiate the transport.
6263
@@ -97,6 +98,8 @@ def __init__(
9798
API requests. If ``None``, then default info will be used.
9899
Generally, you only need to set this if you're developing
99100
your own client library.
101+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
102+
be used for service account credentials.
100103
101104
Raises:
102105
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
@@ -149,7 +152,7 @@ def __init__(
149152
scopes=scopes,
150153
quota_project_id=quota_project_id,
151154
client_info=client_info,
152-
always_use_jwt_access=True,
155+
always_use_jwt_access=always_use_jwt_access,
153156
)
154157

155158
if not self._grpc_channel:

google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def __init__(
103103
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
104104
quota_project_id=None,
105105
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
106+
always_use_jwt_access: Optional[bool] = False,
106107
) -> None:
107108
"""Instantiate the transport.
108109
@@ -144,6 +145,8 @@ def __init__(
144145
API requests. If ``None``, then default info will be used.
145146
Generally, you only need to set this if you're developing
146147
your own client library.
148+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
149+
be used for service account credentials.
147150
148151
Raises:
149152
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
@@ -195,7 +198,7 @@ def __init__(
195198
scopes=scopes,
196199
quota_project_id=quota_project_id,
197200
client_info=client_info,
198-
always_use_jwt_access=True,
201+
always_use_jwt_access=always_use_jwt_access,
199202
)
200203

201204
if not self._grpc_channel:

google/cloud/servicedirectory_v1/services/registration_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(
107107
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)
108108

109109
# Save the scopes.
110-
self._scopes = scopes or self.AUTH_SCOPES
110+
self._scopes = scopes
111111

112112
# If no credentials are provided, then determine the appropriate
113113
# defaults.

google/cloud/servicedirectory_v1/services/registration_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(
8080
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
8181
quota_project_id: Optional[str] = None,
8282
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
83+
always_use_jwt_access: Optional[bool] = False,
8384
) -> None:
8485
"""Instantiate the transport.
8586
@@ -120,6 +121,8 @@ def __init__(
120121
API requests. If ``None``, then default info will be used.
121122
Generally, you only need to set this if you're developing
122123
your own client library.
124+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
125+
be used for service account credentials.
123126
124127
Raises:
125128
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
@@ -172,7 +175,7 @@ def __init__(
172175
scopes=scopes,
173176
quota_project_id=quota_project_id,
174177
client_info=client_info,
175-
always_use_jwt_access=True,
178+
always_use_jwt_access=always_use_jwt_access,
176179
)
177180

178181
if not self._grpc_channel:

google/cloud/servicedirectory_v1/services/registration_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def __init__(
126126
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
127127
quota_project_id=None,
128128
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
129+
always_use_jwt_access: Optional[bool] = False,
129130
) -> None:
130131
"""Instantiate the transport.
131132
@@ -167,6 +168,8 @@ def __init__(
167168
API requests. If ``None``, then default info will be used.
168169
Generally, you only need to set this if you're developing
169170
your own client library.
171+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
172+
be used for service account credentials.
170173
171174
Raises:
172175
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
@@ -218,7 +221,7 @@ def __init__(
218221
scopes=scopes,
219222
quota_project_id=quota_project_id,
220223
client_info=client_info,
221-
always_use_jwt_access=True,
224+
always_use_jwt_access=always_use_jwt_access,
222225
)
223226

224227
if not self._grpc_channel:

google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(
9898
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)
9999

100100
# Save the scopes.
101-
self._scopes = scopes or self.AUTH_SCOPES
101+
self._scopes = scopes
102102

103103
# If no credentials are provided, then determine the appropriate
104104
# defaults.

google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(
5757
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
5858
quota_project_id: Optional[str] = None,
5959
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
60+
always_use_jwt_access: Optional[bool] = False,
6061
) -> None:
6162
"""Instantiate the transport.
6263
@@ -97,6 +98,8 @@ def __init__(
9798
API requests. If ``None``, then default info will be used.
9899
Generally, you only need to set this if you're developing
99100
your own client library.
101+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
102+
be used for service account credentials.
100103
101104
Raises:
102105
google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
@@ -149,7 +152,7 @@ def __init__(
149152
scopes=scopes,
150153
quota_project_id=quota_project_id,
151154
client_info=client_info,
152-
always_use_jwt_access=True,
155+
always_use_jwt_access=always_use_jwt_access,
153156
)
154157

155158
if not self._grpc_channel:

google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def __init__(
103103
client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None,
104104
quota_project_id=None,
105105
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
106+
always_use_jwt_access: Optional[bool] = False,
106107
) -> None:
107108
"""Instantiate the transport.
108109
@@ -144,6 +145,8 @@ def __init__(
144145
API requests. If ``None``, then default info will be used.
145146
Generally, you only need to set this if you're developing
146147
your own client library.
148+
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
149+
be used for service account credentials.
147150
148151
Raises:
149152
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
@@ -195,7 +198,7 @@ def __init__(
195198
scopes=scopes,
196199
quota_project_id=quota_project_id,
197200
client_info=client_info,
198-
always_use_jwt_access=True,
201+
always_use_jwt_access=always_use_jwt_access,
199202
)
200203

201204
if not self._grpc_channel:

google/cloud/servicedirectory_v1beta1/services/registration_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(
107107
scopes_kwargs = self._get_scopes_kwargs(self._host, scopes)
108108

109109
# Save the scopes.
110-
self._scopes = scopes or self.AUTH_SCOPES
110+
self._scopes = scopes
111111

112112
# If no credentials are provided, then determine the appropriate
113113
# defaults.

0 commit comments

Comments
 (0)