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

Commit 36a4f52

Browse files
fix: resolve DuplicateCredentialArgs error when using credentials_file (#200)
* chore: use gapic-generator-python 0.62.1 fix: restore 100% coverage for generated clients feat: adds REST server-streaming support fix: add special method parameters to set of reserved module names feat: expose extended operations annotations within generator fix: resolve DuplicateCredentialArgs error when using credentials_file committer: parthea PiperOrigin-RevId: 425964861 Source-Link: googleapis/googleapis@84b1a5a Source-Link: https://github.com/googleapis/googleapis-gen/commit/4fb761bbd8506ac156f49bac5f18306aa8eb3aa8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8109720 commit 36a4f52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1134
-188
lines changed

google/cloud/talent_v4/services/company_service/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def create_company(
259259
260260
"""
261261
# Create or coerce a protobuf request object.
262-
# Sanity check: If we got a request object, we should *not* have
262+
# Quick check: If we got a request object, we should *not* have
263263
# gotten any keyword arguments that map to the request.
264264
has_flattened_params = any([parent, company])
265265
if request is not None and has_flattened_params:
@@ -341,7 +341,7 @@ async def get_company(
341341
342342
"""
343343
# Create or coerce a protobuf request object.
344-
# Sanity check: If we got a request object, we should *not* have
344+
# Quick check: If we got a request object, we should *not* have
345345
# gotten any keyword arguments that map to the request.
346346
has_flattened_params = any([name])
347347
if request is not None and has_flattened_params:
@@ -444,7 +444,7 @@ async def update_company(
444444
445445
"""
446446
# Create or coerce a protobuf request object.
447-
# Sanity check: If we got a request object, we should *not* have
447+
# Quick check: If we got a request object, we should *not* have
448448
# gotten any keyword arguments that map to the request.
449449
has_flattened_params = any([company, update_mask])
450450
if request is not None and has_flattened_params:
@@ -518,7 +518,7 @@ async def delete_company(
518518
sent along with the request as metadata.
519519
"""
520520
# Create or coerce a protobuf request object.
521-
# Sanity check: If we got a request object, we should *not* have
521+
# Quick check: If we got a request object, we should *not* have
522522
# gotten any keyword arguments that map to the request.
523523
has_flattened_params = any([name])
524524
if request is not None and has_flattened_params:
@@ -604,7 +604,7 @@ async def list_companies(
604604
605605
"""
606606
# Create or coerce a protobuf request object.
607-
# Sanity check: If we got a request object, we should *not* have
607+
# Quick check: If we got a request object, we should *not* have
608608
# gotten any keyword arguments that map to the request.
609609
has_flattened_params = any([parent])
610610
if request is not None and has_flattened_params:

google/cloud/talent_v4/services/company_service/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def create_company(
467467
468468
"""
469469
# Create or coerce a protobuf request object.
470-
# Sanity check: If we got a request object, we should *not* have
470+
# Quick check: If we got a request object, we should *not* have
471471
# gotten any keyword arguments that map to the request.
472472
has_flattened_params = any([parent, company])
473473
if request is not None and has_flattened_params:
@@ -549,7 +549,7 @@ def get_company(
549549
550550
"""
551551
# Create or coerce a protobuf request object.
552-
# Sanity check: If we got a request object, we should *not* have
552+
# Quick check: If we got a request object, we should *not* have
553553
# gotten any keyword arguments that map to the request.
554554
has_flattened_params = any([name])
555555
if request is not None and has_flattened_params:
@@ -642,7 +642,7 @@ def update_company(
642642
643643
"""
644644
# Create or coerce a protobuf request object.
645-
# Sanity check: If we got a request object, we should *not* have
645+
# Quick check: If we got a request object, we should *not* have
646646
# gotten any keyword arguments that map to the request.
647647
has_flattened_params = any([company, update_mask])
648648
if request is not None and has_flattened_params:
@@ -716,7 +716,7 @@ def delete_company(
716716
sent along with the request as metadata.
717717
"""
718718
# Create or coerce a protobuf request object.
719-
# Sanity check: If we got a request object, we should *not* have
719+
# Quick check: If we got a request object, we should *not* have
720720
# gotten any keyword arguments that map to the request.
721721
has_flattened_params = any([name])
722722
if request is not None and has_flattened_params:
@@ -792,7 +792,7 @@ def list_companies(
792792
793793
"""
794794
# Create or coerce a protobuf request object.
795-
# Sanity check: If we got a request object, we should *not* have
795+
# Quick check: If we got a request object, we should *not* have
796796
# gotten any keyword arguments that map to the request.
797797
has_flattened_params = any([parent])
798798
if request is not None and has_flattened_params:

google/cloud/talent_v4/services/company_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def __init__(
162162
if not self._grpc_channel:
163163
self._grpc_channel = type(self).create_channel(
164164
self._host,
165+
# use the credentials which are saved
165166
credentials=self._credentials,
166-
credentials_file=credentials_file,
167+
# Set ``credentials_file`` to ``None`` here as
168+
# the credentials that we saved earlier should be used.
169+
credentials_file=None,
167170
scopes=self._scopes,
168171
ssl_credentials=self._ssl_channel_credentials,
169172
quota_project_id=quota_project_id,

google/cloud/talent_v4/services/company_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ def __init__(
207207
if not self._grpc_channel:
208208
self._grpc_channel = type(self).create_channel(
209209
self._host,
210+
# use the credentials which are saved
210211
credentials=self._credentials,
211-
credentials_file=credentials_file,
212+
# Set ``credentials_file`` to ``None`` here as
213+
# the credentials that we saved earlier should be used.
214+
credentials_file=None,
212215
scopes=self._scopes,
213216
ssl_credentials=self._ssl_channel_credentials,
214217
quota_project_id=quota_project_id,

google/cloud/talent_v4/services/completion/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ async def complete_query(
207207
metadata: Sequence[Tuple[str, str]] = (),
208208
) -> completion_service.CompleteQueryResponse:
209209
r"""Completes the specified prefix with keyword
210-
suggestions. Intended for use by a job search auto-
211-
complete search box.
210+
suggestions. Intended for use by a job search
211+
auto-complete search box.
212212
213213
Args:
214214
request (Union[google.cloud.talent_v4.types.CompleteQueryRequest, dict]):

google/cloud/talent_v4/services/completion/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ def complete_query(
419419
metadata: Sequence[Tuple[str, str]] = (),
420420
) -> completion_service.CompleteQueryResponse:
421421
r"""Completes the specified prefix with keyword
422-
suggestions. Intended for use by a job search auto-
423-
complete search box.
422+
suggestions. Intended for use by a job search
423+
auto-complete search box.
424424
425425
Args:
426426
request (Union[google.cloud.talent_v4.types.CompleteQueryRequest, dict]):

google/cloud/talent_v4/services/completion/transports/grpc.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ def __init__(
158158
if not self._grpc_channel:
159159
self._grpc_channel = type(self).create_channel(
160160
self._host,
161+
# use the credentials which are saved
161162
credentials=self._credentials,
162-
credentials_file=credentials_file,
163+
# Set ``credentials_file`` to ``None`` here as
164+
# the credentials that we saved earlier should be used.
165+
credentials_file=None,
163166
scopes=self._scopes,
164167
ssl_credentials=self._ssl_channel_credentials,
165168
quota_project_id=quota_project_id,
@@ -235,8 +238,8 @@ def complete_query(
235238
r"""Return a callable for the complete query method over gRPC.
236239
237240
Completes the specified prefix with keyword
238-
suggestions. Intended for use by a job search auto-
239-
complete search box.
241+
suggestions. Intended for use by a job search
242+
auto-complete search box.
240243
241244
Returns:
242245
Callable[[~.CompleteQueryRequest],

google/cloud/talent_v4/services/completion/transports/grpc_asyncio.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,11 @@ def __init__(
203203
if not self._grpc_channel:
204204
self._grpc_channel = type(self).create_channel(
205205
self._host,
206+
# use the credentials which are saved
206207
credentials=self._credentials,
207-
credentials_file=credentials_file,
208+
# Set ``credentials_file`` to ``None`` here as
209+
# the credentials that we saved earlier should be used.
210+
credentials_file=None,
208211
scopes=self._scopes,
209212
ssl_credentials=self._ssl_channel_credentials,
210213
quota_project_id=quota_project_id,
@@ -237,8 +240,8 @@ def complete_query(
237240
r"""Return a callable for the complete query method over gRPC.
238241
239242
Completes the specified prefix with keyword
240-
suggestions. Intended for use by a job search auto-
241-
complete search box.
243+
suggestions. Intended for use by a job search
244+
auto-complete search box.
242245
243246
Returns:
244247
Callable[[~.CompleteQueryRequest],

google/cloud/talent_v4/services/event_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ async def create_client_event(
260260
261261
"""
262262
# Create or coerce a protobuf request object.
263-
# Sanity check: If we got a request object, we should *not* have
263+
# Quick check: If we got a request object, we should *not* have
264264
# gotten any keyword arguments that map to the request.
265265
has_flattened_params = any([parent, client_event])
266266
if request is not None and has_flattened_params:

google/cloud/talent_v4/services/event_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def create_client_event(
456456
457457
"""
458458
# Create or coerce a protobuf request object.
459-
# Sanity check: If we got a request object, we should *not* have
459+
# Quick check: If we got a request object, we should *not* have
460460
# gotten any keyword arguments that map to the request.
461461
has_flattened_params = any([parent, client_event])
462462
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)