Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit f3bf440

Browse files
chore: use gapic-generator-python 0.62.1 (#244)
- [ ] Regenerate this pull request now. 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
1 parent cf95791 commit f3bf440

File tree

160 files changed

+2958
-522
lines changed

Some content is hidden

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

160 files changed

+2958
-522
lines changed

google/cloud/dialogflowcx_v3/services/agents/async_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async def list_agents(
257257
258258
"""
259259
# Create or coerce a protobuf request object.
260-
# Sanity check: If we got a request object, we should *not* have
260+
# Quick check: If we got a request object, we should *not* have
261261
# gotten any keyword arguments that map to the request.
262262
has_flattened_params = any([parent])
263263
if request is not None and has_flattened_params:
@@ -346,7 +346,7 @@ async def get_agent(
346346
347347
"""
348348
# Create or coerce a protobuf request object.
349-
# Sanity check: If we got a request object, we should *not* have
349+
# Quick check: If we got a request object, we should *not* have
350350
# gotten any keyword arguments that map to the request.
351351
has_flattened_params = any([name])
352352
if request is not None and has_flattened_params:
@@ -439,7 +439,7 @@ async def create_agent(
439439
440440
"""
441441
# Create or coerce a protobuf request object.
442-
# Sanity check: If we got a request object, we should *not* have
442+
# Quick check: If we got a request object, we should *not* have
443443
# gotten any keyword arguments that map to the request.
444444
has_flattened_params = any([parent, agent])
445445
if request is not None and has_flattened_params:
@@ -535,7 +535,7 @@ async def update_agent(
535535
536536
"""
537537
# Create or coerce a protobuf request object.
538-
# Sanity check: If we got a request object, we should *not* have
538+
# Quick check: If we got a request object, we should *not* have
539539
# gotten any keyword arguments that map to the request.
540540
has_flattened_params = any([agent, update_mask])
541541
if request is not None and has_flattened_params:
@@ -604,7 +604,7 @@ async def delete_agent(
604604
sent along with the request as metadata.
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([name])
610610
if request is not None and has_flattened_params:
@@ -886,7 +886,7 @@ async def get_agent_validation_result(
886886
887887
"""
888888
# Create or coerce a protobuf request object.
889-
# Sanity check: If we got a request object, we should *not* have
889+
# Quick check: If we got a request object, we should *not* have
890890
# gotten any keyword arguments that map to the request.
891891
has_flattened_params = any([name])
892892
if request is not None and has_flattened_params:

google/cloud/dialogflowcx_v3/services/agents/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def list_agents(
530530
531531
"""
532532
# Create or coerce a protobuf request object.
533-
# Sanity check: If we got a request object, we should *not* have
533+
# Quick check: If we got a request object, we should *not* have
534534
# gotten any keyword arguments that map to the request.
535535
has_flattened_params = any([parent])
536536
if request is not None and has_flattened_params:
@@ -619,7 +619,7 @@ def get_agent(
619619
620620
"""
621621
# Create or coerce a protobuf request object.
622-
# Sanity check: If we got a request object, we should *not* have
622+
# Quick check: If we got a request object, we should *not* have
623623
# gotten any keyword arguments that map to the request.
624624
has_flattened_params = any([name])
625625
if request is not None and has_flattened_params:
@@ -712,7 +712,7 @@ def create_agent(
712712
713713
"""
714714
# Create or coerce a protobuf request object.
715-
# Sanity check: If we got a request object, we should *not* have
715+
# Quick check: If we got a request object, we should *not* have
716716
# gotten any keyword arguments that map to the request.
717717
has_flattened_params = any([parent, agent])
718718
if request is not None and has_flattened_params:
@@ -808,7 +808,7 @@ def update_agent(
808808
809809
"""
810810
# Create or coerce a protobuf request object.
811-
# Sanity check: If we got a request object, we should *not* have
811+
# Quick check: If we got a request object, we should *not* have
812812
# gotten any keyword arguments that map to the request.
813813
has_flattened_params = any([agent, update_mask])
814814
if request is not None and has_flattened_params:
@@ -877,7 +877,7 @@ def delete_agent(
877877
sent along with the request as metadata.
878878
"""
879879
# Create or coerce a protobuf request object.
880-
# Sanity check: If we got a request object, we should *not* have
880+
# Quick check: If we got a request object, we should *not* have
881881
# gotten any keyword arguments that map to the request.
882882
has_flattened_params = any([name])
883883
if request is not None and has_flattened_params:
@@ -1162,7 +1162,7 @@ def get_agent_validation_result(
11621162
11631163
"""
11641164
# Create or coerce a protobuf request object.
1165-
# Sanity check: If we got a request object, we should *not* have
1165+
# Quick check: If we got a request object, we should *not* have
11661166
# gotten any keyword arguments that map to the request.
11671167
has_flattened_params = any([name])
11681168
if request is not None and has_flattened_params:

google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ def __init__(
163163
if not self._grpc_channel:
164164
self._grpc_channel = type(self).create_channel(
165165
self._host,
166+
# use the credentials which are saved
166167
credentials=self._credentials,
167-
credentials_file=credentials_file,
168+
# Set ``credentials_file`` to ``None`` here as
169+
# the credentials that we saved earlier should be used.
170+
credentials_file=None,
168171
scopes=self._scopes,
169172
ssl_credentials=self._ssl_channel_credentials,
170173
quota_project_id=quota_project_id,
@@ -237,7 +240,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
237240
This property caches on the instance; repeated calls return the same
238241
client.
239242
"""
240-
# Sanity check: Only create a new client if we do not already have one.
243+
# Quick check: Only create a new client if we do not already have one.
241244
if self._operations_client is None:
242245
self._operations_client = operations_v1.OperationsClient(self.grpc_channel)
243246

google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,11 @@ def __init__(
208208
if not self._grpc_channel:
209209
self._grpc_channel = type(self).create_channel(
210210
self._host,
211+
# use the credentials which are saved
211212
credentials=self._credentials,
212-
credentials_file=credentials_file,
213+
# Set ``credentials_file`` to ``None`` here as
214+
# the credentials that we saved earlier should be used.
215+
credentials_file=None,
213216
scopes=self._scopes,
214217
ssl_credentials=self._ssl_channel_credentials,
215218
quota_project_id=quota_project_id,
@@ -239,7 +242,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
239242
This property caches on the instance; repeated calls return the same
240243
client.
241244
"""
242-
# Sanity check: Only create a new client if we do not already have one.
245+
# Quick check: Only create a new client if we do not already have one.
243246
if self._operations_client is None:
244247
self._operations_client = operations_v1.OperationsAsyncClient(
245248
self.grpc_channel

google/cloud/dialogflowcx_v3/services/changelogs/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ async def list_changelogs(
237237
238238
"""
239239
# Create or coerce a protobuf request object.
240-
# Sanity check: If we got a request object, we should *not* have
240+
# Quick check: If we got a request object, we should *not* have
241241
# gotten any keyword arguments that map to the request.
242242
has_flattened_params = any([parent])
243243
if request is not None and has_flattened_params:
@@ -314,7 +314,7 @@ async def get_changelog(
314314
315315
"""
316316
# Create or coerce a protobuf request object.
317-
# Sanity check: If we got a request object, we should *not* have
317+
# Quick check: If we got a request object, we should *not* have
318318
# gotten any keyword arguments that map to the request.
319319
has_flattened_params = any([name])
320320
if request is not None and has_flattened_params:

google/cloud/dialogflowcx_v3/services/changelogs/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def list_changelogs(
438438
439439
"""
440440
# Create or coerce a protobuf request object.
441-
# Sanity check: If we got a request object, we should *not* have
441+
# Quick check: If we got a request object, we should *not* have
442442
# gotten any keyword arguments that map to the request.
443443
has_flattened_params = any([parent])
444444
if request is not None and has_flattened_params:
@@ -515,7 +515,7 @@ def get_changelog(
515515
516516
"""
517517
# Create or coerce a protobuf request object.
518-
# Sanity check: If we got a request object, we should *not* have
518+
# Quick check: If we got a request object, we should *not* have
519519
# gotten any keyword arguments that map to the request.
520520
has_flattened_params = any([name])
521521
if request is not None and has_flattened_params:

google/cloud/dialogflowcx_v3/services/changelogs/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@ def __init__(
159159
if not self._grpc_channel:
160160
self._grpc_channel = type(self).create_channel(
161161
self._host,
162+
# use the credentials which are saved
162163
credentials=self._credentials,
163-
credentials_file=credentials_file,
164+
# Set ``credentials_file`` to ``None`` here as
165+
# the credentials that we saved earlier should be used.
166+
credentials_file=None,
164167
scopes=self._scopes,
165168
ssl_credentials=self._ssl_channel_credentials,
166169
quota_project_id=quota_project_id,

google/cloud/dialogflowcx_v3/services/changelogs/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ def __init__(
204204
if not self._grpc_channel:
205205
self._grpc_channel = type(self).create_channel(
206206
self._host,
207+
# use the credentials which are saved
207208
credentials=self._credentials,
208-
credentials_file=credentials_file,
209+
# Set ``credentials_file`` to ``None`` here as
210+
# the credentials that we saved earlier should be used.
211+
credentials_file=None,
209212
scopes=self._scopes,
210213
ssl_credentials=self._ssl_channel_credentials,
211214
quota_project_id=quota_project_id,

google/cloud/dialogflowcx_v3/services/deployments/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def list_deployments(
250250
251251
"""
252252
# Create or coerce a protobuf request object.
253-
# Sanity check: If we got a request object, we should *not* have
253+
# Quick check: If we got a request object, we should *not* have
254254
# gotten any keyword arguments that map to the request.
255255
has_flattened_params = any([parent])
256256
if request is not None and has_flattened_params:
@@ -335,7 +335,7 @@ async def get_deployment(
335335
336336
"""
337337
# Create or coerce a protobuf request object.
338-
# Sanity check: If we got a request object, we should *not* have
338+
# Quick check: If we got a request object, we should *not* have
339339
# gotten any keyword arguments that map to the request.
340340
has_flattened_params = any([name])
341341
if request is not None and has_flattened_params:

google/cloud/dialogflowcx_v3/services/deployments/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def list_deployments(
509509
510510
"""
511511
# Create or coerce a protobuf request object.
512-
# Sanity check: If we got a request object, we should *not* have
512+
# Quick check: If we got a request object, we should *not* have
513513
# gotten any keyword arguments that map to the request.
514514
has_flattened_params = any([parent])
515515
if request is not None and has_flattened_params:
@@ -594,7 +594,7 @@ def get_deployment(
594594
595595
"""
596596
# Create or coerce a protobuf request object.
597-
# Sanity check: If we got a request object, we should *not* have
597+
# Quick check: If we got a request object, we should *not* have
598598
# gotten any keyword arguments that map to the request.
599599
has_flattened_params = any([name])
600600
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)