Skip to content

Commit 816a607

Browse files
gcf-owl-bot[bot]copybara-github
authored andcommitted
Copybara import of the project:
-- a114e98 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add EnterpriseWebSearch tool option PiperOrigin-RevId: 731486257 Source-Link: googleapis/googleapis@2862c1e Source-Link: googleapis/googleapis-gen@1cf5c64 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWNmNWM2NGQwZDliNjBkNzdlNTFmNzRmYTJkNmJjOWYxNzA5YzZkZiJ9 -- bd79dd7 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 78c2cac by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: chore: update copyright year for auto-generated protos PiperOrigin-RevId: 731704647 Source-Link: googleapis/googleapis@c15e2b1 Source-Link: googleapis/googleapis-gen@249ed8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5ZWQ4ZTBiNDJjZDQ5OTkwNmIyNDc3NWZkYjEzYTVlMzAzMGY3OCJ9 -- 3d774e6 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 04d78b6 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: chore: update copyright year for auto-generated protos PiperOrigin-RevId: 731723933 Source-Link: googleapis/googleapis@dd0271c Source-Link: googleapis/googleapis-gen@ce1427e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2UxNDI3ZTZiYmM0YjY5M2YyMmUwMzc0YjQ5ODg3M2JmOWZlYjA5NSJ9 -- 1db7fac by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- d05d64a by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: chore: update copyright year for auto-generated protos PiperOrigin-RevId: 732130682 Source-Link: googleapis/googleapis@9415ba0 Source-Link: googleapis/googleapis-gen@2905f83 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwNWY4MzM3NTZjMmIyMGIzMjgyYmU4NGI1MTFlMDQwZmU1NGYzMyJ9 -- ca8ddba by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- f61fc11 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: feat: add VertexAISearch.engine option PiperOrigin-RevId: 732246835 Source-Link: googleapis/googleapis@56d4e62 Source-Link: googleapis/googleapis-gen@c03cc44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzAzY2M0NDUxYmE3MDE1NzI3Zjc1NDU2ODI5YzM0M2RkZDMwNGZhZiJ9 -- 2189139 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 2d59eab by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 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 -- cb470ce by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 6f7c596 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: fix!: An existing google.api.http annotation `http_uri` is changed for method `DeployPublisherModel` in service `ModelGardenService` docs: A comment for field `model` in message `.google.cloud.aiplatform.v1beta1.DeployPublisherModelRequest` is changed feat: A new field `include_equivalent_model_garden_model_deployment_configs` is added to message `.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest` PiperOrigin-RevId: 732302115 Source-Link: googleapis/googleapis@abfda69 Source-Link: googleapis/googleapis-gen@1b6a813 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWI2YTgxM2YxZjMwZGZkMTkxM2YyMjEzMzBhYzRkOTk2MzI5ZjEwNiJ9 -- 496aa68 by Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>: 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md COPYBARA_INTEGRATE_REVIEW=#4987 from googleapis:owl-bot-copy 1d29ef0 PiperOrigin-RevId: 733079900
1 parent 82bbb67 commit 816a607

File tree

137 files changed

+5358
-1391
lines changed

Some content is hidden

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

137 files changed

+5358
-1391
lines changed

Diff for: google/cloud/aiplatform_v1/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@
929929
from .types.tensorboard_time_series import TensorboardTimeSeries
930930
from .types.tool import CodeExecutionResult
931931
from .types.tool import DynamicRetrievalConfig
932+
from .types.tool import EnterpriseWebSearch
932933
from .types.tool import ExecutableCode
933934
from .types.tool import FunctionCall
934935
from .types.tool import FunctionCallingConfig
@@ -1302,6 +1303,7 @@
13021303
"EncryptionSpec",
13031304
"Endpoint",
13041305
"EndpointServiceClient",
1306+
"EnterpriseWebSearch",
13051307
"EntityIdSelector",
13061308
"EntityType",
13071309
"EnvVar",

Diff for: google/cloud/aiplatform_v1/services/dataset_service/async_client.py

+72-18
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ async def sample_create_dataset():
407407
# Create or coerce a protobuf request object.
408408
# - Quick check: If we got a request object, we should *not* have
409409
# gotten any keyword arguments that map to the request.
410-
has_flattened_params = any([parent, dataset])
410+
flattened_params = [parent, dataset]
411+
has_flattened_params = (
412+
len([param for param in flattened_params if param is not None]) > 0
413+
)
411414
if request is not None and has_flattened_params:
412415
raise ValueError(
413416
"If the `request` argument is set, then none of "
@@ -526,7 +529,10 @@ async def sample_get_dataset():
526529
# Create or coerce a protobuf request object.
527530
# - Quick check: If we got a request object, we should *not* have
528531
# gotten any keyword arguments that map to the request.
529-
has_flattened_params = any([name])
532+
flattened_params = [name]
533+
has_flattened_params = (
534+
len([param for param in flattened_params if param is not None]) > 0
535+
)
530536
if request is not None and has_flattened_params:
531537
raise ValueError(
532538
"If the `request` argument is set, then none of "
@@ -653,7 +659,10 @@ async def sample_update_dataset():
653659
# Create or coerce a protobuf request object.
654660
# - Quick check: If we got a request object, we should *not* have
655661
# gotten any keyword arguments that map to the request.
656-
has_flattened_params = any([dataset, update_mask])
662+
flattened_params = [dataset, update_mask]
663+
has_flattened_params = (
664+
len([param for param in flattened_params if param is not None]) > 0
665+
)
657666
if request is not None and has_flattened_params:
658667
raise ValueError(
659668
"If the `request` argument is set, then none of "
@@ -769,7 +778,10 @@ async def sample_list_datasets():
769778
# Create or coerce a protobuf request object.
770779
# - Quick check: If we got a request object, we should *not* have
771780
# gotten any keyword arguments that map to the request.
772-
has_flattened_params = any([parent])
781+
flattened_params = [parent]
782+
has_flattened_params = (
783+
len([param for param in flattened_params if param is not None]) > 0
784+
)
773785
if request is not None and has_flattened_params:
774786
raise ValueError(
775787
"If the `request` argument is set, then none of "
@@ -903,7 +915,10 @@ async def sample_delete_dataset():
903915
# Create or coerce a protobuf request object.
904916
# - Quick check: If we got a request object, we should *not* have
905917
# gotten any keyword arguments that map to the request.
906-
has_flattened_params = any([name])
918+
flattened_params = [name]
919+
has_flattened_params = (
920+
len([param for param in flattened_params if param is not None]) > 0
921+
)
907922
if request is not None and has_flattened_params:
908923
raise ValueError(
909924
"If the `request` argument is set, then none of "
@@ -1039,7 +1054,10 @@ async def sample_import_data():
10391054
# Create or coerce a protobuf request object.
10401055
# - Quick check: If we got a request object, we should *not* have
10411056
# gotten any keyword arguments that map to the request.
1042-
has_flattened_params = any([name, import_configs])
1057+
flattened_params = [name, import_configs]
1058+
has_flattened_params = (
1059+
len([param for param in flattened_params if param is not None]) > 0
1060+
)
10431061
if request is not None and has_flattened_params:
10441062
raise ValueError(
10451063
"If the `request` argument is set, then none of "
@@ -1175,7 +1193,10 @@ async def sample_export_data():
11751193
# Create or coerce a protobuf request object.
11761194
# - Quick check: If we got a request object, we should *not* have
11771195
# gotten any keyword arguments that map to the request.
1178-
has_flattened_params = any([name, export_config])
1196+
flattened_params = [name, export_config]
1197+
has_flattened_params = (
1198+
len([param for param in flattened_params if param is not None]) > 0
1199+
)
11791200
if request is not None and has_flattened_params:
11801201
raise ValueError(
11811202
"If the `request` argument is set, then none of "
@@ -1317,7 +1338,10 @@ async def sample_create_dataset_version():
13171338
# Create or coerce a protobuf request object.
13181339
# - Quick check: If we got a request object, we should *not* have
13191340
# gotten any keyword arguments that map to the request.
1320-
has_flattened_params = any([parent, dataset_version])
1341+
flattened_params = [parent, dataset_version]
1342+
has_flattened_params = (
1343+
len([param for param in flattened_params if param is not None]) > 0
1344+
)
13211345
if request is not None and has_flattened_params:
13221346
raise ValueError(
13231347
"If the `request` argument is set, then none of "
@@ -1450,7 +1474,10 @@ async def sample_update_dataset_version():
14501474
# Create or coerce a protobuf request object.
14511475
# - Quick check: If we got a request object, we should *not* have
14521476
# gotten any keyword arguments that map to the request.
1453-
has_flattened_params = any([dataset_version, update_mask])
1477+
flattened_params = [dataset_version, update_mask]
1478+
has_flattened_params = (
1479+
len([param for param in flattened_params if param is not None]) > 0
1480+
)
14541481
if request is not None and has_flattened_params:
14551482
raise ValueError(
14561483
"If the `request` argument is set, then none of "
@@ -1579,7 +1606,10 @@ async def sample_delete_dataset_version():
15791606
# Create or coerce a protobuf request object.
15801607
# - Quick check: If we got a request object, we should *not* have
15811608
# gotten any keyword arguments that map to the request.
1582-
has_flattened_params = any([name])
1609+
flattened_params = [name]
1610+
has_flattened_params = (
1611+
len([param for param in flattened_params if param is not None]) > 0
1612+
)
15831613
if request is not None and has_flattened_params:
15841614
raise ValueError(
15851615
"If the `request` argument is set, then none of "
@@ -1695,7 +1725,10 @@ async def sample_get_dataset_version():
16951725
# Create or coerce a protobuf request object.
16961726
# - Quick check: If we got a request object, we should *not* have
16971727
# gotten any keyword arguments that map to the request.
1698-
has_flattened_params = any([name])
1728+
flattened_params = [name]
1729+
has_flattened_params = (
1730+
len([param for param in flattened_params if param is not None]) > 0
1731+
)
16991732
if request is not None and has_flattened_params:
17001733
raise ValueError(
17011734
"If the `request` argument is set, then none of "
@@ -1810,7 +1843,10 @@ async def sample_list_dataset_versions():
18101843
# Create or coerce a protobuf request object.
18111844
# - Quick check: If we got a request object, we should *not* have
18121845
# gotten any keyword arguments that map to the request.
1813-
has_flattened_params = any([parent])
1846+
flattened_params = [parent]
1847+
has_flattened_params = (
1848+
len([param for param in flattened_params if param is not None]) > 0
1849+
)
18141850
if request is not None and has_flattened_params:
18151851
raise ValueError(
18161852
"If the `request` argument is set, then none of "
@@ -1939,7 +1975,10 @@ async def sample_restore_dataset_version():
19391975
# Create or coerce a protobuf request object.
19401976
# - Quick check: If we got a request object, we should *not* have
19411977
# gotten any keyword arguments that map to the request.
1942-
has_flattened_params = any([name])
1978+
flattened_params = [name]
1979+
has_flattened_params = (
1980+
len([param for param in flattened_params if param is not None]) > 0
1981+
)
19431982
if request is not None and has_flattened_params:
19441983
raise ValueError(
19451984
"If the `request` argument is set, then none of "
@@ -2060,7 +2099,10 @@ async def sample_list_data_items():
20602099
# Create or coerce a protobuf request object.
20612100
# - Quick check: If we got a request object, we should *not* have
20622101
# gotten any keyword arguments that map to the request.
2063-
has_flattened_params = any([parent])
2102+
flattened_params = [parent]
2103+
has_flattened_params = (
2104+
len([param for param in flattened_params if param is not None]) > 0
2105+
)
20642106
if request is not None and has_flattened_params:
20652107
raise ValueError(
20662108
"If the `request` argument is set, then none of "
@@ -2286,7 +2328,10 @@ async def sample_list_saved_queries():
22862328
# Create or coerce a protobuf request object.
22872329
# - Quick check: If we got a request object, we should *not* have
22882330
# gotten any keyword arguments that map to the request.
2289-
has_flattened_params = any([parent])
2331+
flattened_params = [parent]
2332+
has_flattened_params = (
2333+
len([param for param in flattened_params if param is not None]) > 0
2334+
)
22902335
if request is not None and has_flattened_params:
22912336
raise ValueError(
22922337
"If the `request` argument is set, then none of "
@@ -2420,7 +2465,10 @@ async def sample_delete_saved_query():
24202465
# Create or coerce a protobuf request object.
24212466
# - Quick check: If we got a request object, we should *not* have
24222467
# gotten any keyword arguments that map to the request.
2423-
has_flattened_params = any([name])
2468+
flattened_params = [name]
2469+
has_flattened_params = (
2470+
len([param for param in flattened_params if param is not None]) > 0
2471+
)
24242472
if request is not None and has_flattened_params:
24252473
raise ValueError(
24262474
"If the `request` argument is set, then none of "
@@ -2537,7 +2585,10 @@ async def sample_get_annotation_spec():
25372585
# Create or coerce a protobuf request object.
25382586
# - Quick check: If we got a request object, we should *not* have
25392587
# gotten any keyword arguments that map to the request.
2540-
has_flattened_params = any([name])
2588+
flattened_params = [name]
2589+
has_flattened_params = (
2590+
len([param for param in flattened_params if param is not None]) > 0
2591+
)
25412592
if request is not None and has_flattened_params:
25422593
raise ValueError(
25432594
"If the `request` argument is set, then none of "
@@ -2653,7 +2704,10 @@ async def sample_list_annotations():
26532704
# Create or coerce a protobuf request object.
26542705
# - Quick check: If we got a request object, we should *not* have
26552706
# gotten any keyword arguments that map to the request.
2656-
has_flattened_params = any([parent])
2707+
flattened_params = [parent]
2708+
has_flattened_params = (
2709+
len([param for param in flattened_params if param is not None]) > 0
2710+
)
26572711
if request is not None and has_flattened_params:
26582712
raise ValueError(
26592713
"If the `request` argument is set, then none of "

0 commit comments

Comments
 (0)