Skip to content

Commit 1a08c4b

Browse files
gcf-owl-bot[bot]gkevinzheng
authored andcommitted
chore: Update gapic-generator-python to v1.23.2 (#1024)
* chore: Update gapic-generator-python to v1.23.2 PiperOrigin-RevId: 732281673 Source-Link: googleapis/googleapis@2f37e0a Source-Link: googleapis/googleapis-gen@016b753 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDE2Yjc1MzhiYTVhNzk4ZjJhZTQyM2Q0Y2NkN2Y4MmIwNmNkZjZkMiJ9 * 🦉 Updates from OwlBot post-processor 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 1fcb218 commit 1a08c4b

File tree

4 files changed

+232
-58
lines changed

4 files changed

+232
-58
lines changed

google/cloud/firestore_admin_v1/services/firestore_admin/async_client.py

Lines changed: 92 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@ async def sample_create_index():
435435
# Create or coerce a protobuf request object.
436436
# - Quick check: If we got a request object, we should *not* have
437437
# gotten any keyword arguments that map to the request.
438-
has_flattened_params = any([parent, index])
438+
flattened_params = [parent, index]
439+
has_flattened_params = (
440+
len([param for param in flattened_params if param is not None]) > 0
441+
)
439442
if request is not None and has_flattened_params:
440443
raise ValueError(
441444
"If the `request` argument is set, then none of "
@@ -557,7 +560,10 @@ async def sample_list_indexes():
557560
# Create or coerce a protobuf request object.
558561
# - Quick check: If we got a request object, we should *not* have
559562
# gotten any keyword arguments that map to the request.
560-
has_flattened_params = any([parent])
563+
flattened_params = [parent]
564+
has_flattened_params = (
565+
len([param for param in flattened_params if param is not None]) > 0
566+
)
561567
if request is not None and has_flattened_params:
562568
raise ValueError(
563569
"If the `request` argument is set, then none of "
@@ -677,7 +683,10 @@ async def sample_get_index():
677683
# Create or coerce a protobuf request object.
678684
# - Quick check: If we got a request object, we should *not* have
679685
# gotten any keyword arguments that map to the request.
680-
has_flattened_params = any([name])
686+
flattened_params = [name]
687+
has_flattened_params = (
688+
len([param for param in flattened_params if param is not None]) > 0
689+
)
681690
if request is not None and has_flattened_params:
682691
raise ValueError(
683692
"If the `request` argument is set, then none of "
@@ -776,7 +785,10 @@ async def sample_delete_index():
776785
# Create or coerce a protobuf request object.
777786
# - Quick check: If we got a request object, we should *not* have
778787
# gotten any keyword arguments that map to the request.
779-
has_flattened_params = any([name])
788+
flattened_params = [name]
789+
has_flattened_params = (
790+
len([param for param in flattened_params if param is not None]) > 0
791+
)
780792
if request is not None and has_flattened_params:
781793
raise ValueError(
782794
"If the `request` argument is set, then none of "
@@ -884,7 +896,10 @@ async def sample_get_field():
884896
# Create or coerce a protobuf request object.
885897
# - Quick check: If we got a request object, we should *not* have
886898
# gotten any keyword arguments that map to the request.
887-
has_flattened_params = any([name])
899+
flattened_params = [name]
900+
has_flattened_params = (
901+
len([param for param in flattened_params if param is not None]) > 0
902+
)
888903
if request is not None and has_flattened_params:
889904
raise ValueError(
890905
"If the `request` argument is set, then none of "
@@ -1019,7 +1034,10 @@ async def sample_update_field():
10191034
# Create or coerce a protobuf request object.
10201035
# - Quick check: If we got a request object, we should *not* have
10211036
# gotten any keyword arguments that map to the request.
1022-
has_flattened_params = any([field])
1037+
flattened_params = [field]
1038+
has_flattened_params = (
1039+
len([param for param in flattened_params if param is not None]) > 0
1040+
)
10231041
if request is not None and has_flattened_params:
10241042
raise ValueError(
10251043
"If the `request` argument is set, then none of "
@@ -1149,7 +1167,10 @@ async def sample_list_fields():
11491167
# Create or coerce a protobuf request object.
11501168
# - Quick check: If we got a request object, we should *not* have
11511169
# gotten any keyword arguments that map to the request.
1152-
has_flattened_params = any([parent])
1170+
flattened_params = [parent]
1171+
has_flattened_params = (
1172+
len([param for param in flattened_params if param is not None]) > 0
1173+
)
11531174
if request is not None and has_flattened_params:
11541175
raise ValueError(
11551176
"If the `request` argument is set, then none of "
@@ -1288,7 +1309,10 @@ async def sample_export_documents():
12881309
# Create or coerce a protobuf request object.
12891310
# - Quick check: If we got a request object, we should *not* have
12901311
# gotten any keyword arguments that map to the request.
1291-
has_flattened_params = any([name])
1312+
flattened_params = [name]
1313+
has_flattened_params = (
1314+
len([param for param in flattened_params if param is not None]) > 0
1315+
)
12921316
if request is not None and has_flattened_params:
12931317
raise ValueError(
12941318
"If the `request` argument is set, then none of "
@@ -1424,7 +1448,10 @@ async def sample_import_documents():
14241448
# Create or coerce a protobuf request object.
14251449
# - Quick check: If we got a request object, we should *not* have
14261450
# gotten any keyword arguments that map to the request.
1427-
has_flattened_params = any([name])
1451+
flattened_params = [name]
1452+
has_flattened_params = (
1453+
len([param for param in flattened_params if param is not None]) > 0
1454+
)
14281455
if request is not None and has_flattened_params:
14291456
raise ValueError(
14301457
"If the `request` argument is set, then none of "
@@ -1565,7 +1592,10 @@ async def sample_bulk_delete_documents():
15651592
# Create or coerce a protobuf request object.
15661593
# - Quick check: If we got a request object, we should *not* have
15671594
# gotten any keyword arguments that map to the request.
1568-
has_flattened_params = any([name])
1595+
flattened_params = [name]
1596+
has_flattened_params = (
1597+
len([param for param in flattened_params if param is not None]) > 0
1598+
)
15691599
if request is not None and has_flattened_params:
15701600
raise ValueError(
15711601
"If the `request` argument is set, then none of "
@@ -1711,7 +1741,10 @@ async def sample_create_database():
17111741
# Create or coerce a protobuf request object.
17121742
# - Quick check: If we got a request object, we should *not* have
17131743
# gotten any keyword arguments that map to the request.
1714-
has_flattened_params = any([parent, database, database_id])
1744+
flattened_params = [parent, database, database_id]
1745+
has_flattened_params = (
1746+
len([param for param in flattened_params if param is not None]) > 0
1747+
)
17151748
if request is not None and has_flattened_params:
17161749
raise ValueError(
17171750
"If the `request` argument is set, then none of "
@@ -1829,7 +1862,10 @@ async def sample_get_database():
18291862
# Create or coerce a protobuf request object.
18301863
# - Quick check: If we got a request object, we should *not* have
18311864
# gotten any keyword arguments that map to the request.
1832-
has_flattened_params = any([name])
1865+
flattened_params = [name]
1866+
has_flattened_params = (
1867+
len([param for param in flattened_params if param is not None]) > 0
1868+
)
18331869
if request is not None and has_flattened_params:
18341870
raise ValueError(
18351871
"If the `request` argument is set, then none of "
@@ -1936,7 +1972,10 @@ async def sample_list_databases():
19361972
# Create or coerce a protobuf request object.
19371973
# - Quick check: If we got a request object, we should *not* have
19381974
# gotten any keyword arguments that map to the request.
1939-
has_flattened_params = any([parent])
1975+
flattened_params = [parent]
1976+
has_flattened_params = (
1977+
len([param for param in flattened_params if param is not None]) > 0
1978+
)
19401979
if request is not None and has_flattened_params:
19411980
raise ValueError(
19421981
"If the `request` argument is set, then none of "
@@ -2054,7 +2093,10 @@ async def sample_update_database():
20542093
# Create or coerce a protobuf request object.
20552094
# - Quick check: If we got a request object, we should *not* have
20562095
# gotten any keyword arguments that map to the request.
2057-
has_flattened_params = any([database, update_mask])
2096+
flattened_params = [database, update_mask]
2097+
has_flattened_params = (
2098+
len([param for param in flattened_params if param is not None]) > 0
2099+
)
20582100
if request is not None and has_flattened_params:
20592101
raise ValueError(
20602102
"If the `request` argument is set, then none of "
@@ -2181,7 +2223,10 @@ async def sample_delete_database():
21812223
# Create or coerce a protobuf request object.
21822224
# - Quick check: If we got a request object, we should *not* have
21832225
# gotten any keyword arguments that map to the request.
2184-
has_flattened_params = any([name])
2226+
flattened_params = [name]
2227+
has_flattened_params = (
2228+
len([param for param in flattened_params if param is not None]) > 0
2229+
)
21852230
if request is not None and has_flattened_params:
21862231
raise ValueError(
21872232
"If the `request` argument is set, then none of "
@@ -2302,7 +2347,10 @@ async def sample_get_backup():
23022347
# Create or coerce a protobuf request object.
23032348
# - Quick check: If we got a request object, we should *not* have
23042349
# gotten any keyword arguments that map to the request.
2305-
has_flattened_params = any([name])
2350+
flattened_params = [name]
2351+
has_flattened_params = (
2352+
len([param for param in flattened_params if param is not None]) > 0
2353+
)
23062354
if request is not None and has_flattened_params:
23072355
raise ValueError(
23082356
"If the `request` argument is set, then none of "
@@ -2414,7 +2462,10 @@ async def sample_list_backups():
24142462
# Create or coerce a protobuf request object.
24152463
# - Quick check: If we got a request object, we should *not* have
24162464
# gotten any keyword arguments that map to the request.
2417-
has_flattened_params = any([parent])
2465+
flattened_params = [parent]
2466+
has_flattened_params = (
2467+
len([param for param in flattened_params if param is not None]) > 0
2468+
)
24182469
if request is not None and has_flattened_params:
24192470
raise ValueError(
24202471
"If the `request` argument is set, then none of "
@@ -2515,7 +2566,10 @@ async def sample_delete_backup():
25152566
# Create or coerce a protobuf request object.
25162567
# - Quick check: If we got a request object, we should *not* have
25172568
# gotten any keyword arguments that map to the request.
2518-
has_flattened_params = any([name])
2569+
flattened_params = [name]
2570+
has_flattened_params = (
2571+
len([param for param in flattened_params if param is not None]) > 0
2572+
)
25192573
if request is not None and has_flattened_params:
25202574
raise ValueError(
25212575
"If the `request` argument is set, then none of "
@@ -2759,7 +2813,10 @@ async def sample_create_backup_schedule():
27592813
# Create or coerce a protobuf request object.
27602814
# - Quick check: If we got a request object, we should *not* have
27612815
# gotten any keyword arguments that map to the request.
2762-
has_flattened_params = any([parent, backup_schedule])
2816+
flattened_params = [parent, backup_schedule]
2817+
has_flattened_params = (
2818+
len([param for param in flattened_params if param is not None]) > 0
2819+
)
27632820
if request is not None and has_flattened_params:
27642821
raise ValueError(
27652822
"If the `request` argument is set, then none of "
@@ -2875,7 +2932,10 @@ async def sample_get_backup_schedule():
28752932
# Create or coerce a protobuf request object.
28762933
# - Quick check: If we got a request object, we should *not* have
28772934
# gotten any keyword arguments that map to the request.
2878-
has_flattened_params = any([name])
2935+
flattened_params = [name]
2936+
has_flattened_params = (
2937+
len([param for param in flattened_params if param is not None]) > 0
2938+
)
28792939
if request is not None and has_flattened_params:
28802940
raise ValueError(
28812941
"If the `request` argument is set, then none of "
@@ -2986,7 +3046,10 @@ async def sample_list_backup_schedules():
29863046
# Create or coerce a protobuf request object.
29873047
# - Quick check: If we got a request object, we should *not* have
29883048
# gotten any keyword arguments that map to the request.
2989-
has_flattened_params = any([parent])
3049+
flattened_params = [parent]
3050+
has_flattened_params = (
3051+
len([param for param in flattened_params if param is not None]) > 0
3052+
)
29903053
if request is not None and has_flattened_params:
29913054
raise ValueError(
29923055
"If the `request` argument is set, then none of "
@@ -3105,7 +3168,10 @@ async def sample_update_backup_schedule():
31053168
# Create or coerce a protobuf request object.
31063169
# - Quick check: If we got a request object, we should *not* have
31073170
# gotten any keyword arguments that map to the request.
3108-
has_flattened_params = any([backup_schedule, update_mask])
3171+
flattened_params = [backup_schedule, update_mask]
3172+
has_flattened_params = (
3173+
len([param for param in flattened_params if param is not None]) > 0
3174+
)
31093175
if request is not None and has_flattened_params:
31103176
raise ValueError(
31113177
"If the `request` argument is set, then none of "
@@ -3212,7 +3278,10 @@ async def sample_delete_backup_schedule():
32123278
# Create or coerce a protobuf request object.
32133279
# - Quick check: If we got a request object, we should *not* have
32143280
# gotten any keyword arguments that map to the request.
3215-
has_flattened_params = any([name])
3281+
flattened_params = [name]
3282+
has_flattened_params = (
3283+
len([param for param in flattened_params if param is not None]) > 0
3284+
)
32163285
if request is not None and has_flattened_params:
32173286
raise ValueError(
32183287
"If the `request` argument is set, then none of "

0 commit comments

Comments
 (0)