google-apis-aiplatform_v1 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9141964c8b63ee520b864bcedb45d82b461e535e37039bbf818e2aaf8e1612b9
4
- data.tar.gz: fcec71c6c746a077cd48f537f6d5f9d04d7e06cbf3dddbe398f759abcf268371
3
+ metadata.gz: ce2b4ed7c3de08c188604c42f8c9f2eefcead348457998b9be9eb27edde30a5d
4
+ data.tar.gz: ada2c6cb5c55a59e528ae776fda483c6ae3f05056d67735d7fb391faa89c13e0
5
5
  SHA512:
6
- metadata.gz: 02f826f20de9de5968fe3f05b29a13f852b4ddd6b84e3b6a058f955c7b25ae87150a7dadcc26fc2feaba31f453229e6a747be8f9810b936ed71ff7f2d283a66e
7
- data.tar.gz: 6a02f4534928c3cb8ad87975690f5c2120879c97e29a67bd33c1578bebde0d4034f395e6b256561a1acedf025ab3f25d87b947c1e427f5fbb9e3c7fc80876094
6
+ metadata.gz: cb314e00ca14b852aa6e1cbc81e3afc2e9dd24385b225b2788daf1e1c9959538fb8e739b88c217f1a9249a1e29d44f675730bc536e71e0768abcbe4feefe52ac
7
+ data.tar.gz: a127fa834faff1da022890916c538c40a455a3d25a47254f2a3898e2ee4217985c02b5d3f93fca8337c0291c88e33c76b7e52bc05b1aab02cae99a197f06ac57
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-aiplatform_v1
2
2
 
3
+ ### v0.53.0 (2025-05-21)
4
+
5
+ * Regenerated from discovery document revision 20250519
6
+
3
7
  ### v0.52.0 (2025-05-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20250502
@@ -913,6 +913,11 @@ module Google
913
913
  # @return [String]
914
914
  attr_accessor :api_key_secret_version
915
915
 
916
+ # The API key string. Either this or `api_key_secret_version` must be set.
917
+ # Corresponds to the JSON property `apiKeyString`
918
+ # @return [String]
919
+ attr_accessor :api_key_string
920
+
916
921
  def initialize(**args)
917
922
  update!(**args)
918
923
  end
@@ -920,6 +925,7 @@ module Google
920
925
  # Update properties of this object
921
926
  def update!(**args)
922
927
  @api_key_secret_version = args[:api_key_secret_version] if args.key?(:api_key_secret_version)
928
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
923
929
  end
924
930
  end
925
931
 
@@ -1260,6 +1266,211 @@ module Google
1260
1266
  end
1261
1267
  end
1262
1268
 
1269
+ # Auth configuration to run the extension.
1270
+ class GoogleCloudAiplatformV1AuthConfig
1271
+ include Google::Apis::Core::Hashable
1272
+
1273
+ # Config for authentication with API key.
1274
+ # Corresponds to the JSON property `apiKeyConfig`
1275
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigApiKeyConfig]
1276
+ attr_accessor :api_key_config
1277
+
1278
+ # Type of auth scheme.
1279
+ # Corresponds to the JSON property `authType`
1280
+ # @return [String]
1281
+ attr_accessor :auth_type
1282
+
1283
+ # Config for Google Service Account Authentication.
1284
+ # Corresponds to the JSON property `googleServiceAccountConfig`
1285
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig]
1286
+ attr_accessor :google_service_account_config
1287
+
1288
+ # Config for HTTP Basic Authentication.
1289
+ # Corresponds to the JSON property `httpBasicAuthConfig`
1290
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig]
1291
+ attr_accessor :http_basic_auth_config
1292
+
1293
+ # Config for user oauth.
1294
+ # Corresponds to the JSON property `oauthConfig`
1295
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOauthConfig]
1296
+ attr_accessor :oauth_config
1297
+
1298
+ # Config for user OIDC auth.
1299
+ # Corresponds to the JSON property `oidcConfig`
1300
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOidcConfig]
1301
+ attr_accessor :oidc_config
1302
+
1303
+ def initialize(**args)
1304
+ update!(**args)
1305
+ end
1306
+
1307
+ # Update properties of this object
1308
+ def update!(**args)
1309
+ @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
1310
+ @auth_type = args[:auth_type] if args.key?(:auth_type)
1311
+ @google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
1312
+ @http_basic_auth_config = args[:http_basic_auth_config] if args.key?(:http_basic_auth_config)
1313
+ @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
1314
+ @oidc_config = args[:oidc_config] if args.key?(:oidc_config)
1315
+ end
1316
+ end
1317
+
1318
+ # Config for authentication with API key.
1319
+ class GoogleCloudAiplatformV1AuthConfigApiKeyConfig
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # Optional. The name of the SecretManager secret version resource storing the
1323
+ # API key. Format: `projects/`project`/secrets/`secrete`/versions/`version`` -
1324
+ # If both `api_key_secret` and `api_key_string` are specified, this field takes
1325
+ # precedence over `api_key_string`. - If specified, the `secretmanager.versions.
1326
+ # access` permission should be granted to Vertex AI Extension Service Agent (
1327
+ # https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
1328
+ # on the specified resource.
1329
+ # Corresponds to the JSON property `apiKeySecret`
1330
+ # @return [String]
1331
+ attr_accessor :api_key_secret
1332
+
1333
+ # Optional. The API key to be used in the request directly.
1334
+ # Corresponds to the JSON property `apiKeyString`
1335
+ # @return [String]
1336
+ attr_accessor :api_key_string
1337
+
1338
+ # Optional. The location of the API key.
1339
+ # Corresponds to the JSON property `httpElementLocation`
1340
+ # @return [String]
1341
+ attr_accessor :http_element_location
1342
+
1343
+ # Optional. The parameter name of the API key. E.g. If the API request is "https:
1344
+ # //example.com/act?api_key=", "api_key" would be the parameter name.
1345
+ # Corresponds to the JSON property `name`
1346
+ # @return [String]
1347
+ attr_accessor :name
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @api_key_secret = args[:api_key_secret] if args.key?(:api_key_secret)
1356
+ @api_key_string = args[:api_key_string] if args.key?(:api_key_string)
1357
+ @http_element_location = args[:http_element_location] if args.key?(:http_element_location)
1358
+ @name = args[:name] if args.key?(:name)
1359
+ end
1360
+ end
1361
+
1362
+ # Config for Google Service Account Authentication.
1363
+ class GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # Optional. The service account that the extension execution service runs as. -
1367
+ # If the service account is specified, the `iam.serviceAccounts.getAccessToken`
1368
+ # permission should be granted to Vertex AI Extension Service Agent (https://
1369
+ # cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the
1370
+ # specified service account. - If not specified, the Vertex AI Extension Service
1371
+ # Agent will be used to execute the Extension.
1372
+ # Corresponds to the JSON property `serviceAccount`
1373
+ # @return [String]
1374
+ attr_accessor :service_account
1375
+
1376
+ def initialize(**args)
1377
+ update!(**args)
1378
+ end
1379
+
1380
+ # Update properties of this object
1381
+ def update!(**args)
1382
+ @service_account = args[:service_account] if args.key?(:service_account)
1383
+ end
1384
+ end
1385
+
1386
+ # Config for HTTP Basic Authentication.
1387
+ class GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig
1388
+ include Google::Apis::Core::Hashable
1389
+
1390
+ # Required. The name of the SecretManager secret version resource storing the
1391
+ # base64 encoded credentials. Format: `projects/`project`/secrets/`secrete`/
1392
+ # versions/`version`` - If specified, the `secretmanager.versions.access`
1393
+ # permission should be granted to Vertex AI Extension Service Agent (https://
1394
+ # cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the
1395
+ # specified resource.
1396
+ # Corresponds to the JSON property `credentialSecret`
1397
+ # @return [String]
1398
+ attr_accessor :credential_secret
1399
+
1400
+ def initialize(**args)
1401
+ update!(**args)
1402
+ end
1403
+
1404
+ # Update properties of this object
1405
+ def update!(**args)
1406
+ @credential_secret = args[:credential_secret] if args.key?(:credential_secret)
1407
+ end
1408
+ end
1409
+
1410
+ # Config for user oauth.
1411
+ class GoogleCloudAiplatformV1AuthConfigOauthConfig
1412
+ include Google::Apis::Core::Hashable
1413
+
1414
+ # Access token for extension endpoint. Only used to propagate token from [[
1415
+ # ExecuteExtensionRequest.runtime_auth_config]] at request time.
1416
+ # Corresponds to the JSON property `accessToken`
1417
+ # @return [String]
1418
+ attr_accessor :access_token
1419
+
1420
+ # The service account used to generate access tokens for executing the Extension.
1421
+ # - If the service account is specified, the `iam.serviceAccounts.
1422
+ # getAccessToken` permission should be granted to Vertex AI Extension Service
1423
+ # Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-
1424
+ # agents) on the provided service account.
1425
+ # Corresponds to the JSON property `serviceAccount`
1426
+ # @return [String]
1427
+ attr_accessor :service_account
1428
+
1429
+ def initialize(**args)
1430
+ update!(**args)
1431
+ end
1432
+
1433
+ # Update properties of this object
1434
+ def update!(**args)
1435
+ @access_token = args[:access_token] if args.key?(:access_token)
1436
+ @service_account = args[:service_account] if args.key?(:service_account)
1437
+ end
1438
+ end
1439
+
1440
+ # Config for user OIDC auth.
1441
+ class GoogleCloudAiplatformV1AuthConfigOidcConfig
1442
+ include Google::Apis::Core::Hashable
1443
+
1444
+ # OpenID Connect formatted ID token for extension endpoint. Only used to
1445
+ # propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at
1446
+ # request time.
1447
+ # Corresponds to the JSON property `idToken`
1448
+ # @return [String]
1449
+ attr_accessor :id_token
1450
+
1451
+ # The service account used to generate an OpenID Connect (OIDC)-compatible JWT
1452
+ # token signed by the Google OIDC Provider (accounts.google.com) for extension
1453
+ # endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-
1454
+ # direct#sa-credentials-oidc). - The audience for the token will be set to the
1455
+ # URL in the server url defined in the OpenApi spec. - If the service account is
1456
+ # provided, the service account should grant `iam.serviceAccounts.getOpenIdToken`
1457
+ # permission to Vertex AI Extension Service Agent (https://cloud.google.com/
1458
+ # vertex-ai/docs/general/access-control#service-agents).
1459
+ # Corresponds to the JSON property `serviceAccount`
1460
+ # @return [String]
1461
+ attr_accessor :service_account
1462
+
1463
+ def initialize(**args)
1464
+ update!(**args)
1465
+ end
1466
+
1467
+ # Update properties of this object
1468
+ def update!(**args)
1469
+ @id_token = args[:id_token] if args.key?(:id_token)
1470
+ @service_account = args[:service_account] if args.key?(:service_account)
1471
+ end
1472
+ end
1473
+
1263
1474
  # A description of resources that to large degree are decided by Vertex AI, and
1264
1475
  # require only a modest additional configuration. Each Model supporting these
1265
1476
  # resources documents its specific guidelines.
@@ -9245,6 +9456,104 @@ module Google
9245
9456
  end
9246
9457
  end
9247
9458
 
9459
+ # Retrieve from data source powered by external API for grounding. The external
9460
+ # API is not owned by Google, but need to follow the pre-defined API spec.
9461
+ class GoogleCloudAiplatformV1ExternalApi
9462
+ include Google::Apis::Core::Hashable
9463
+
9464
+ # The generic reusable api auth config. Deprecated. Please use AuthConfig (
9465
+ # google/cloud/aiplatform/master/auth.proto) instead.
9466
+ # Corresponds to the JSON property `apiAuth`
9467
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth]
9468
+ attr_accessor :api_auth
9469
+
9470
+ # The API spec that the external API implements.
9471
+ # Corresponds to the JSON property `apiSpec`
9472
+ # @return [String]
9473
+ attr_accessor :api_spec
9474
+
9475
+ # Auth configuration to run the extension.
9476
+ # Corresponds to the JSON property `authConfig`
9477
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig]
9478
+ attr_accessor :auth_config
9479
+
9480
+ # The search parameters to use for the ELASTIC_SEARCH spec.
9481
+ # Corresponds to the JSON property `elasticSearchParams`
9482
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams]
9483
+ attr_accessor :elastic_search_params
9484
+
9485
+ # The endpoint of the external API. The system will call the API at this
9486
+ # endpoint to retrieve the data for grounding. Example: https://acme.com:443/
9487
+ # search
9488
+ # Corresponds to the JSON property `endpoint`
9489
+ # @return [String]
9490
+ attr_accessor :endpoint
9491
+
9492
+ # The search parameters to use for SIMPLE_SEARCH spec.
9493
+ # Corresponds to the JSON property `simpleSearchParams`
9494
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams]
9495
+ attr_accessor :simple_search_params
9496
+
9497
+ def initialize(**args)
9498
+ update!(**args)
9499
+ end
9500
+
9501
+ # Update properties of this object
9502
+ def update!(**args)
9503
+ @api_auth = args[:api_auth] if args.key?(:api_auth)
9504
+ @api_spec = args[:api_spec] if args.key?(:api_spec)
9505
+ @auth_config = args[:auth_config] if args.key?(:auth_config)
9506
+ @elastic_search_params = args[:elastic_search_params] if args.key?(:elastic_search_params)
9507
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
9508
+ @simple_search_params = args[:simple_search_params] if args.key?(:simple_search_params)
9509
+ end
9510
+ end
9511
+
9512
+ # The search parameters to use for the ELASTIC_SEARCH spec.
9513
+ class GoogleCloudAiplatformV1ExternalApiElasticSearchParams
9514
+ include Google::Apis::Core::Hashable
9515
+
9516
+ # The ElasticSearch index to use.
9517
+ # Corresponds to the JSON property `index`
9518
+ # @return [String]
9519
+ attr_accessor :index
9520
+
9521
+ # Optional. Number of hits (chunks) to request. When specified, it is passed to
9522
+ # Elasticsearch as the `num_hits` param.
9523
+ # Corresponds to the JSON property `numHits`
9524
+ # @return [Fixnum]
9525
+ attr_accessor :num_hits
9526
+
9527
+ # The ElasticSearch search template to use.
9528
+ # Corresponds to the JSON property `searchTemplate`
9529
+ # @return [String]
9530
+ attr_accessor :search_template
9531
+
9532
+ def initialize(**args)
9533
+ update!(**args)
9534
+ end
9535
+
9536
+ # Update properties of this object
9537
+ def update!(**args)
9538
+ @index = args[:index] if args.key?(:index)
9539
+ @num_hits = args[:num_hits] if args.key?(:num_hits)
9540
+ @search_template = args[:search_template] if args.key?(:search_template)
9541
+ end
9542
+ end
9543
+
9544
+ # The search parameters to use for SIMPLE_SEARCH spec.
9545
+ class GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
9546
+ include Google::Apis::Core::Hashable
9547
+
9548
+ def initialize(**args)
9549
+ update!(**args)
9550
+ end
9551
+
9552
+ # Update properties of this object
9553
+ def update!(**args)
9554
+ end
9555
+ end
9556
+
9248
9557
  # The fact used in grounding.
9249
9558
  class GoogleCloudAiplatformV1Fact
9250
9559
  include Google::Apis::Core::Hashable
@@ -13335,6 +13644,16 @@ module Google
13335
13644
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig]
13336
13645
  attr_accessor :rag_file_transformation_config
13337
13646
 
13647
+ # Rebuilds the ANN index to optimize for recall on the imported data. Only
13648
+ # applicable for RagCorpora running on RagManagedDb with `retrieval_strategy`
13649
+ # set to `ANN`. The rebuild will be performed using the existing ANN config set
13650
+ # on the RagCorpus. To change the ANN config, please use the UpdateRagCorpus API.
13651
+ # Default is false, i.e., index is not rebuilt.
13652
+ # Corresponds to the JSON property `rebuildAnnIndex`
13653
+ # @return [Boolean]
13654
+ attr_accessor :rebuild_ann_index
13655
+ alias_method :rebuild_ann_index?, :rebuild_ann_index
13656
+
13338
13657
  # The SharePointSources to pass to ImportRagFiles.
13339
13658
  # Corresponds to the JSON property `sharePointSources`
13340
13659
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources]
@@ -13361,6 +13680,7 @@ module Google
13361
13680
  @partial_failure_gcs_sink = args[:partial_failure_gcs_sink] if args.key?(:partial_failure_gcs_sink)
13362
13681
  @rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
13363
13682
  @rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
13683
+ @rebuild_ann_index = args[:rebuild_ann_index] if args.key?(:rebuild_ann_index)
13364
13684
  @share_point_sources = args[:share_point_sources] if args.key?(:share_point_sources)
13365
13685
  @slack_source = args[:slack_source] if args.key?(:slack_source)
13366
13686
  end
@@ -20675,6 +20995,12 @@ module Google
20675
20995
  # @return [String]
20676
20996
  attr_accessor :text
20677
20997
 
20998
+ # Output only. Indicates if the part is thought from the model.
20999
+ # Corresponds to the JSON property `thought`
21000
+ # @return [Boolean]
21001
+ attr_accessor :thought
21002
+ alias_method :thought?, :thought
21003
+
20678
21004
  # Metadata describes the input video content.
20679
21005
  # Corresponds to the JSON property `videoMetadata`
20680
21006
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata]
@@ -20693,6 +21019,7 @@ module Google
20693
21019
  @function_response = args[:function_response] if args.key?(:function_response)
20694
21020
  @inline_data = args[:inline_data] if args.key?(:inline_data)
20695
21021
  @text = args[:text] if args.key?(:text)
21022
+ @thought = args[:thought] if args.key?(:thought)
20696
21023
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
20697
21024
  end
20698
21025
  end
@@ -23953,7 +24280,7 @@ module Google
23953
24280
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser]
23954
24281
  attr_accessor :layout_parser
23955
24282
 
23956
- # Specifies the advanced parsing for RagFiles.
24283
+ # Specifies the LLM parsing for RagFiles.
23957
24284
  # Corresponds to the JSON property `llmParser`
23958
24285
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLlmParser]
23959
24286
  attr_accessor :llm_parser
@@ -24002,7 +24329,7 @@ module Google
24002
24329
  end
24003
24330
  end
24004
24331
 
24005
- # Specifies the advanced parsing for RagFiles.
24332
+ # Specifies the LLM parsing for RagFiles.
24006
24333
  class GoogleCloudAiplatformV1RagFileParsingConfigLlmParser
24007
24334
  include Google::Apis::Core::Hashable
24008
24335
 
@@ -24278,6 +24605,67 @@ module Google
24278
24605
  class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb
24279
24606
  include Google::Apis::Core::Hashable
24280
24607
 
24608
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
24609
+ # data and facilitate faster searches. As a tradeoff, it requires longer
24610
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
24611
+ # and UpdateRagCorpus API.
24612
+ # Corresponds to the JSON property `ann`
24613
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn]
24614
+ attr_accessor :ann
24615
+
24616
+ # Config for KNN search.
24617
+ # Corresponds to the JSON property `knn`
24618
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn]
24619
+ attr_accessor :knn
24620
+
24621
+ def initialize(**args)
24622
+ update!(**args)
24623
+ end
24624
+
24625
+ # Update properties of this object
24626
+ def update!(**args)
24627
+ @ann = args[:ann] if args.key?(:ann)
24628
+ @knn = args[:knn] if args.key?(:knn)
24629
+ end
24630
+ end
24631
+
24632
+ # Config for ANN search. RagManagedDb uses a tree-based structure to partition
24633
+ # data and facilitate faster searches. As a tradeoff, it requires longer
24634
+ # indexing time and manual triggering of index rebuild via the ImportRagFiles
24635
+ # and UpdateRagCorpus API.
24636
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn
24637
+ include Google::Apis::Core::Hashable
24638
+
24639
+ # Number of leaf nodes in the tree-based structure. Each leaf node contains
24640
+ # groups of closely related vectors along with their corresponding centroid.
24641
+ # Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default
24642
+ # value is 500.
24643
+ # Corresponds to the JSON property `leafCount`
24644
+ # @return [Fixnum]
24645
+ attr_accessor :leaf_count
24646
+
24647
+ # The depth of the tree-based structure. Only depth values of 2 and 3 are
24648
+ # supported. Recommended value is 2 if you have if you have O(10K) files in the
24649
+ # RagCorpus and set this to 3 if more than that. Default value is 2.
24650
+ # Corresponds to the JSON property `treeDepth`
24651
+ # @return [Fixnum]
24652
+ attr_accessor :tree_depth
24653
+
24654
+ def initialize(**args)
24655
+ update!(**args)
24656
+ end
24657
+
24658
+ # Update properties of this object
24659
+ def update!(**args)
24660
+ @leaf_count = args[:leaf_count] if args.key?(:leaf_count)
24661
+ @tree_depth = args[:tree_depth] if args.key?(:tree_depth)
24662
+ end
24663
+ end
24664
+
24665
+ # Config for KNN search.
24666
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn
24667
+ include Google::Apis::Core::Hashable
24668
+
24281
24669
  def initialize(**args)
24282
24670
  update!(**args)
24283
24671
  end
@@ -25345,6 +25733,12 @@ module Google
25345
25733
  attr_accessor :disable_attribution
25346
25734
  alias_method :disable_attribution?, :disable_attribution
25347
25735
 
25736
+ # Retrieve from data source powered by external API for grounding. The external
25737
+ # API is not owned by Google, but need to follow the pre-defined API spec.
25738
+ # Corresponds to the JSON property `externalApi`
25739
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi]
25740
+ attr_accessor :external_api
25741
+
25348
25742
  # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
25349
25743
  # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
25350
25744
  # builder
@@ -25364,6 +25758,7 @@ module Google
25364
25758
  # Update properties of this object
25365
25759
  def update!(**args)
25366
25760
  @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
25761
+ @external_api = args[:external_api] if args.key?(:external_api)
25367
25762
  @vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
25368
25763
  @vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
25369
25764
  end
@@ -39105,6 +39500,13 @@ module Google
39105
39500
  class GoogleCloudAiplatformV1VertexAiSearch
39106
39501
  include Google::Apis::Core::Hashable
39107
39502
 
39503
+ # Specifications that define the specific DataStores to be searched, along with
39504
+ # configurations for those data stores. This is only considered for Engines with
39505
+ # multiple data stores. It should only be set if engine is used.
39506
+ # Corresponds to the JSON property `dataStoreSpecs`
39507
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec>]
39508
+ attr_accessor :data_store_specs
39509
+
39108
39510
  # Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `
39109
39511
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
39110
39512
  # dataStore``
@@ -39136,6 +39538,7 @@ module Google
39136
39538
 
39137
39539
  # Update properties of this object
39138
39540
  def update!(**args)
39541
+ @data_store_specs = args[:data_store_specs] if args.key?(:data_store_specs)
39139
39542
  @datastore = args[:datastore] if args.key?(:datastore)
39140
39543
  @engine = args[:engine] if args.key?(:engine)
39141
39544
  @filter = args[:filter] if args.key?(:filter)
@@ -39143,6 +39546,37 @@ module Google
39143
39546
  end
39144
39547
  end
39145
39548
 
39549
+ # Define data stores within engine to filter on in a search call and
39550
+ # configurations for those data stores. For more information, see https://cloud.
39551
+ # google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.
39552
+ # discoveryengine.v1#datastorespec
39553
+ class GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec
39554
+ include Google::Apis::Core::Hashable
39555
+
39556
+ # Full resource name of DataStore, such as Format: `projects/`project`/locations/
39557
+ # `location`/collections/`collection`/dataStores/`dataStore``
39558
+ # Corresponds to the JSON property `dataStore`
39559
+ # @return [String]
39560
+ attr_accessor :data_store
39561
+
39562
+ # Optional. Filter specification to filter documents in the data store specified
39563
+ # by data_store field. For more information on filtering, see [Filtering](https:/
39564
+ # /cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
39565
+ # Corresponds to the JSON property `filter`
39566
+ # @return [String]
39567
+ attr_accessor :filter
39568
+
39569
+ def initialize(**args)
39570
+ update!(**args)
39571
+ end
39572
+
39573
+ # Update properties of this object
39574
+ def update!(**args)
39575
+ @data_store = args[:data_store] if args.key?(:data_store)
39576
+ @filter = args[:filter] if args.key?(:filter)
39577
+ end
39578
+ end
39579
+
39146
39580
  # Config for the Vertex AI Search.
39147
39581
  class GoogleCloudAiplatformV1VertexAiSearchConfig
39148
39582
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1
18
18
  # Version of the google-apis-aiplatform_v1 gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.53.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250502"
25
+ REVISION = "20250519"
26
26
  end
27
27
  end
28
28
  end
@@ -226,6 +226,42 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class GoogleCloudAiplatformV1AuthConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class GoogleCloudAiplatformV1AuthConfigApiKeyConfig
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class GoogleCloudAiplatformV1AuthConfigOauthConfig
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class GoogleCloudAiplatformV1AuthConfigOidcConfig
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
229
265
  class GoogleCloudAiplatformV1AutomaticResources
230
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
267
 
@@ -1528,6 +1564,24 @@ module Google
1528
1564
  include Google::Apis::Core::JsonObjectSupport
1529
1565
  end
1530
1566
 
1567
+ class GoogleCloudAiplatformV1ExternalApi
1568
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1569
+
1570
+ include Google::Apis::Core::JsonObjectSupport
1571
+ end
1572
+
1573
+ class GoogleCloudAiplatformV1ExternalApiElasticSearchParams
1574
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1575
+
1576
+ include Google::Apis::Core::JsonObjectSupport
1577
+ end
1578
+
1579
+ class GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
1580
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1581
+
1582
+ include Google::Apis::Core::JsonObjectSupport
1583
+ end
1584
+
1531
1585
  class GoogleCloudAiplatformV1Fact
1532
1586
  class Representation < Google::Apis::Core::JsonRepresentation; end
1533
1587
 
@@ -3946,6 +4000,18 @@ module Google
3946
4000
  include Google::Apis::Core::JsonObjectSupport
3947
4001
  end
3948
4002
 
4003
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn
4004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4005
+
4006
+ include Google::Apis::Core::JsonObjectSupport
4007
+ end
4008
+
4009
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn
4010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4011
+
4012
+ include Google::Apis::Core::JsonObjectSupport
4013
+ end
4014
+
3949
4015
  class GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch
3950
4016
  class Representation < Google::Apis::Core::JsonRepresentation; end
3951
4017
 
@@ -6622,6 +6688,12 @@ module Google
6622
6688
  include Google::Apis::Core::JsonObjectSupport
6623
6689
  end
6624
6690
 
6691
+ class GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec
6692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
6693
+
6694
+ include Google::Apis::Core::JsonObjectSupport
6695
+ end
6696
+
6625
6697
  class GoogleCloudAiplatformV1VertexAiSearchConfig
6626
6698
  class Representation < Google::Apis::Core::JsonRepresentation; end
6627
6699
 
@@ -7060,6 +7132,7 @@ module Google
7060
7132
  # @private
7061
7133
  class Representation < Google::Apis::Core::JsonRepresentation
7062
7134
  property :api_key_secret_version, as: 'apiKeySecretVersion'
7135
+ property :api_key_string, as: 'apiKeyString'
7063
7136
  end
7064
7137
  end
7065
7138
 
@@ -7143,6 +7216,63 @@ module Google
7143
7216
  end
7144
7217
  end
7145
7218
 
7219
+ class GoogleCloudAiplatformV1AuthConfig
7220
+ # @private
7221
+ class Representation < Google::Apis::Core::JsonRepresentation
7222
+ property :api_key_config, as: 'apiKeyConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigApiKeyConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigApiKeyConfig::Representation
7223
+
7224
+ property :auth_type, as: 'authType'
7225
+ property :google_service_account_config, as: 'googleServiceAccountConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig::Representation
7226
+
7227
+ property :http_basic_auth_config, as: 'httpBasicAuthConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig::Representation
7228
+
7229
+ property :oauth_config, as: 'oauthConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOauthConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOauthConfig::Representation
7230
+
7231
+ property :oidc_config, as: 'oidcConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOidcConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfigOidcConfig::Representation
7232
+
7233
+ end
7234
+ end
7235
+
7236
+ class GoogleCloudAiplatformV1AuthConfigApiKeyConfig
7237
+ # @private
7238
+ class Representation < Google::Apis::Core::JsonRepresentation
7239
+ property :api_key_secret, as: 'apiKeySecret'
7240
+ property :api_key_string, as: 'apiKeyString'
7241
+ property :http_element_location, as: 'httpElementLocation'
7242
+ property :name, as: 'name'
7243
+ end
7244
+ end
7245
+
7246
+ class GoogleCloudAiplatformV1AuthConfigGoogleServiceAccountConfig
7247
+ # @private
7248
+ class Representation < Google::Apis::Core::JsonRepresentation
7249
+ property :service_account, as: 'serviceAccount'
7250
+ end
7251
+ end
7252
+
7253
+ class GoogleCloudAiplatformV1AuthConfigHttpBasicAuthConfig
7254
+ # @private
7255
+ class Representation < Google::Apis::Core::JsonRepresentation
7256
+ property :credential_secret, as: 'credentialSecret'
7257
+ end
7258
+ end
7259
+
7260
+ class GoogleCloudAiplatformV1AuthConfigOauthConfig
7261
+ # @private
7262
+ class Representation < Google::Apis::Core::JsonRepresentation
7263
+ property :access_token, as: 'accessToken'
7264
+ property :service_account, as: 'serviceAccount'
7265
+ end
7266
+ end
7267
+
7268
+ class GoogleCloudAiplatformV1AuthConfigOidcConfig
7269
+ # @private
7270
+ class Representation < Google::Apis::Core::JsonRepresentation
7271
+ property :id_token, as: 'idToken'
7272
+ property :service_account, as: 'serviceAccount'
7273
+ end
7274
+ end
7275
+
7146
7276
  class GoogleCloudAiplatformV1AutomaticResources
7147
7277
  # @private
7148
7278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9429,6 +9559,37 @@ module Google
9429
9559
  end
9430
9560
  end
9431
9561
 
9562
+ class GoogleCloudAiplatformV1ExternalApi
9563
+ # @private
9564
+ class Representation < Google::Apis::Core::JsonRepresentation
9565
+ property :api_auth, as: 'apiAuth', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth::Representation
9566
+
9567
+ property :api_spec, as: 'apiSpec'
9568
+ property :auth_config, as: 'authConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig::Representation
9569
+
9570
+ property :elastic_search_params, as: 'elasticSearchParams', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams::Representation
9571
+
9572
+ property :endpoint, as: 'endpoint'
9573
+ property :simple_search_params, as: 'simpleSearchParams', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams::Representation
9574
+
9575
+ end
9576
+ end
9577
+
9578
+ class GoogleCloudAiplatformV1ExternalApiElasticSearchParams
9579
+ # @private
9580
+ class Representation < Google::Apis::Core::JsonRepresentation
9581
+ property :index, as: 'index'
9582
+ property :num_hits, as: 'numHits'
9583
+ property :search_template, as: 'searchTemplate'
9584
+ end
9585
+ end
9586
+
9587
+ class GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
9588
+ # @private
9589
+ class Representation < Google::Apis::Core::JsonRepresentation
9590
+ end
9591
+ end
9592
+
9432
9593
  class GoogleCloudAiplatformV1Fact
9433
9594
  # @private
9434
9595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10572,6 +10733,7 @@ module Google
10572
10733
 
10573
10734
  property :rag_file_transformation_config, as: 'ragFileTransformationConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig::Representation
10574
10735
 
10736
+ property :rebuild_ann_index, as: 'rebuildAnnIndex'
10575
10737
  property :share_point_sources, as: 'sharePointSources', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources::Representation
10576
10738
 
10577
10739
  property :slack_source, as: 'slackSource', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSource, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSource::Representation
@@ -12633,6 +12795,7 @@ module Google
12633
12795
  property :inline_data, as: 'inlineData', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob::Representation
12634
12796
 
12635
12797
  property :text, as: 'text'
12798
+ property :thought, as: 'thought'
12636
12799
  property :video_metadata, as: 'videoMetadata', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata::Representation
12637
12800
 
12638
12801
  end
@@ -13675,6 +13838,24 @@ module Google
13675
13838
  end
13676
13839
 
13677
13840
  class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb
13841
+ # @private
13842
+ class Representation < Google::Apis::Core::JsonRepresentation
13843
+ property :ann, as: 'ann', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn::Representation
13844
+
13845
+ property :knn, as: 'knn', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn::Representation
13846
+
13847
+ end
13848
+ end
13849
+
13850
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbAnn
13851
+ # @private
13852
+ class Representation < Google::Apis::Core::JsonRepresentation
13853
+ property :leaf_count, as: 'leafCount'
13854
+ property :tree_depth, as: 'treeDepth'
13855
+ end
13856
+ end
13857
+
13858
+ class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDbKnn
13678
13859
  # @private
13679
13860
  class Representation < Google::Apis::Core::JsonRepresentation
13680
13861
  end
@@ -14028,6 +14209,8 @@ module Google
14028
14209
  # @private
14029
14210
  class Representation < Google::Apis::Core::JsonRepresentation
14030
14211
  property :disable_attribution, as: 'disableAttribution'
14212
+ property :external_api, as: 'externalApi', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi::Representation
14213
+
14031
14214
  property :vertex_ai_search, as: 'vertexAiSearch', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearch::Representation
14032
14215
 
14033
14216
  property :vertex_rag_store, as: 'vertexRagStore', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexRagStore::Representation
@@ -17949,6 +18132,8 @@ module Google
17949
18132
  class GoogleCloudAiplatformV1VertexAiSearch
17950
18133
  # @private
17951
18134
  class Representation < Google::Apis::Core::JsonRepresentation
18135
+ collection :data_store_specs, as: 'dataStoreSpecs', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec::Representation
18136
+
17952
18137
  property :datastore, as: 'datastore'
17953
18138
  property :engine, as: 'engine'
17954
18139
  property :filter, as: 'filter'
@@ -17956,6 +18141,14 @@ module Google
17956
18141
  end
17957
18142
  end
17958
18143
 
18144
+ class GoogleCloudAiplatformV1VertexAiSearchDataStoreSpec
18145
+ # @private
18146
+ class Representation < Google::Apis::Core::JsonRepresentation
18147
+ property :data_store, as: 'dataStore'
18148
+ property :filter, as: 'filter'
18149
+ end
18150
+ end
18151
+
17959
18152
  class GoogleCloudAiplatformV1VertexAiSearchConfig
17960
18153
  # @private
17961
18154
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.52.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1/v0.53.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for Vertex AI API V1
79
79
  test_files: []