google-apis-discoveryengine_v1beta 0.40.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1beta
18
18
  # Version of the google-apis-discoveryengine_v1beta gem
19
- GEM_VERSION = "0.40.0"
19
+ GEM_VERSION = "0.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240318"
25
+ REVISION = "20240329"
26
26
  end
27
27
  end
28
28
  end
@@ -538,6 +538,12 @@ module Google
538
538
  include Google::Apis::Core::JsonObjectSupport
539
539
  end
540
540
 
541
+ class GoogleCloudDiscoveryengineV1alphaGroundingConfig
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
541
547
  class GoogleCloudDiscoveryengineV1alphaIdpConfig
542
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
543
549
 
@@ -550,6 +556,18 @@ module Google
550
556
  include Google::Apis::Core::JsonObjectSupport
551
557
  end
552
558
 
559
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
565
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
553
571
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
554
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
573
 
@@ -748,6 +766,36 @@ module Google
748
766
  include Google::Apis::Core::JsonObjectSupport
749
767
  end
750
768
 
769
+ class GoogleCloudDiscoveryengineV1betaBigtableOptions
770
+ class Representation < Google::Apis::Core::JsonRepresentation; end
771
+
772
+ include Google::Apis::Core::JsonObjectSupport
773
+ end
774
+
775
+ class GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
781
+ class GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily
782
+ class Representation < Google::Apis::Core::JsonRepresentation; end
783
+
784
+ include Google::Apis::Core::JsonObjectSupport
785
+ end
786
+
787
+ class GoogleCloudDiscoveryengineV1betaBigtableSource
788
+ class Representation < Google::Apis::Core::JsonRepresentation; end
789
+
790
+ include Google::Apis::Core::JsonObjectSupport
791
+ end
792
+
793
+ class GoogleCloudDiscoveryengineV1betaCloudSqlSource
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
751
799
  class GoogleCloudDiscoveryengineV1betaCompleteQueryResponse
752
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
801
 
@@ -994,12 +1042,30 @@ module Google
994
1042
  include Google::Apis::Core::JsonObjectSupport
995
1043
  end
996
1044
 
1045
+ class GoogleCloudDiscoveryengineV1betaFhirStoreSource
1046
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1047
+
1048
+ include Google::Apis::Core::JsonObjectSupport
1049
+ end
1050
+
1051
+ class GoogleCloudDiscoveryengineV1betaFirestoreSource
1052
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1053
+
1054
+ include Google::Apis::Core::JsonObjectSupport
1055
+ end
1056
+
997
1057
  class GoogleCloudDiscoveryengineV1betaGcsSource
998
1058
  class Representation < Google::Apis::Core::JsonRepresentation; end
999
1059
 
1000
1060
  include Google::Apis::Core::JsonObjectSupport
1001
1061
  end
1002
1062
 
1063
+ class GoogleCloudDiscoveryengineV1betaGroundingConfig
1064
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1065
+
1066
+ include Google::Apis::Core::JsonObjectSupport
1067
+ end
1068
+
1003
1069
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
1004
1070
  class Representation < Google::Apis::Core::JsonRepresentation; end
1005
1071
 
@@ -1144,6 +1210,12 @@ module Google
1144
1210
  include Google::Apis::Core::JsonObjectSupport
1145
1211
  end
1146
1212
 
1213
+ class GoogleCloudDiscoveryengineV1betaPauseEngineRequest
1214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1215
+
1216
+ include Google::Apis::Core::JsonObjectSupport
1217
+ end
1218
+
1147
1219
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
1148
1220
  class Representation < Google::Apis::Core::JsonRepresentation; end
1149
1221
 
@@ -1180,6 +1252,24 @@ module Google
1180
1252
  include Google::Apis::Core::JsonObjectSupport
1181
1253
  end
1182
1254
 
1255
+ class GoogleCloudDiscoveryengineV1betaRankRequest
1256
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1257
+
1258
+ include Google::Apis::Core::JsonObjectSupport
1259
+ end
1260
+
1261
+ class GoogleCloudDiscoveryengineV1betaRankResponse
1262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1263
+
1264
+ include Google::Apis::Core::JsonObjectSupport
1265
+ end
1266
+
1267
+ class GoogleCloudDiscoveryengineV1betaRankingRecord
1268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1269
+
1270
+ include Google::Apis::Core::JsonObjectSupport
1271
+ end
1272
+
1183
1273
  class GoogleCloudDiscoveryengineV1betaRecommendRequest
1184
1274
  class Representation < Google::Apis::Core::JsonRepresentation; end
1185
1275
 
@@ -1216,6 +1306,12 @@ module Google
1216
1306
  include Google::Apis::Core::JsonObjectSupport
1217
1307
  end
1218
1308
 
1309
+ class GoogleCloudDiscoveryengineV1betaResumeEngineRequest
1310
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1311
+
1312
+ include Google::Apis::Core::JsonObjectSupport
1313
+ end
1314
+
1219
1315
  class GoogleCloudDiscoveryengineV1betaSchema
1220
1316
  class Representation < Google::Apis::Core::JsonRepresentation; end
1221
1317
 
@@ -1408,6 +1504,12 @@ module Google
1408
1504
  include Google::Apis::Core::JsonObjectSupport
1409
1505
  end
1410
1506
 
1507
+ class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent
1508
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1509
+
1510
+ include Google::Apis::Core::JsonObjectSupport
1511
+ end
1512
+
1411
1513
  class GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
1412
1514
  class Representation < Google::Apis::Core::JsonRepresentation; end
1413
1515
 
@@ -1450,6 +1552,12 @@ module Google
1450
1552
  include Google::Apis::Core::JsonObjectSupport
1451
1553
  end
1452
1554
 
1555
+ class GoogleCloudDiscoveryengineV1betaSpannerSource
1556
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1557
+
1558
+ include Google::Apis::Core::JsonObjectSupport
1559
+ end
1560
+
1453
1561
  class GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry
1454
1562
  class Representation < Google::Apis::Core::JsonRepresentation; end
1455
1563
 
@@ -1510,6 +1618,18 @@ module Google
1510
1618
  include Google::Apis::Core::JsonObjectSupport
1511
1619
  end
1512
1620
 
1621
+ class GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
1622
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1623
+
1624
+ include Google::Apis::Core::JsonObjectSupport
1625
+ end
1626
+
1627
+ class GoogleCloudDiscoveryengineV1betaTuneEngineRequest
1628
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1629
+
1630
+ include Google::Apis::Core::JsonObjectSupport
1631
+ end
1632
+
1513
1633
  class GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
1514
1634
  class Representation < Google::Apis::Core::JsonRepresentation; end
1515
1635
 
@@ -2353,6 +2473,13 @@ module Google
2353
2473
  end
2354
2474
  end
2355
2475
 
2476
+ class GoogleCloudDiscoveryengineV1alphaGroundingConfig
2477
+ # @private
2478
+ class Representation < Google::Apis::Core::JsonRepresentation
2479
+ property :name, as: 'name'
2480
+ end
2481
+ end
2482
+
2356
2483
  class GoogleCloudDiscoveryengineV1alphaIdpConfig
2357
2484
  # @private
2358
2485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2369,6 +2496,24 @@ module Google
2369
2496
  end
2370
2497
  end
2371
2498
 
2499
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
2500
+ # @private
2501
+ class Representation < Google::Apis::Core::JsonRepresentation
2502
+ property :create_time, as: 'createTime'
2503
+ property :update_time, as: 'updateTime'
2504
+ end
2505
+ end
2506
+
2507
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
2508
+ # @private
2509
+ class Representation < Google::Apis::Core::JsonRepresentation
2510
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
2511
+
2512
+ property :failure_count, :numeric_string => true, as: 'failureCount'
2513
+ property :success_count, :numeric_string => true, as: 'successCount'
2514
+ end
2515
+ end
2516
+
2372
2517
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
2373
2518
  # @private
2374
2519
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2594,6 +2739,7 @@ module Google
2594
2739
 
2595
2740
  collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
2596
2741
 
2742
+ hash :metrics, as: 'metrics'
2597
2743
  property :model_status, as: 'modelStatus'
2598
2744
  end
2599
2745
  end
@@ -2670,6 +2816,59 @@ module Google
2670
2816
  end
2671
2817
  end
2672
2818
 
2819
+ class GoogleCloudDiscoveryengineV1betaBigtableOptions
2820
+ # @private
2821
+ class Representation < Google::Apis::Core::JsonRepresentation
2822
+ hash :families, as: 'families', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily::Representation
2823
+
2824
+ property :key_field_name, as: 'keyFieldName'
2825
+ end
2826
+ end
2827
+
2828
+ class GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn
2829
+ # @private
2830
+ class Representation < Google::Apis::Core::JsonRepresentation
2831
+ property :encoding, as: 'encoding'
2832
+ property :field_name, as: 'fieldName'
2833
+ property :qualifier, :base64 => true, as: 'qualifier'
2834
+ property :type, as: 'type'
2835
+ end
2836
+ end
2837
+
2838
+ class GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily
2839
+ # @private
2840
+ class Representation < Google::Apis::Core::JsonRepresentation
2841
+ collection :columns, as: 'columns', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn::Representation
2842
+
2843
+ property :encoding, as: 'encoding'
2844
+ property :field_name, as: 'fieldName'
2845
+ property :type, as: 'type'
2846
+ end
2847
+ end
2848
+
2849
+ class GoogleCloudDiscoveryengineV1betaBigtableSource
2850
+ # @private
2851
+ class Representation < Google::Apis::Core::JsonRepresentation
2852
+ property :bigtable_options, as: 'bigtableOptions', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptions, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableOptions::Representation
2853
+
2854
+ property :instance_id, as: 'instanceId'
2855
+ property :project_id, as: 'projectId'
2856
+ property :table_id, as: 'tableId'
2857
+ end
2858
+ end
2859
+
2860
+ class GoogleCloudDiscoveryengineV1betaCloudSqlSource
2861
+ # @private
2862
+ class Representation < Google::Apis::Core::JsonRepresentation
2863
+ property :database_id, as: 'databaseId'
2864
+ property :gcs_staging_dir, as: 'gcsStagingDir'
2865
+ property :instance_id, as: 'instanceId'
2866
+ property :offload, as: 'offload'
2867
+ property :project_id, as: 'projectId'
2868
+ property :table_id, as: 'tableId'
2869
+ end
2870
+ end
2871
+
2673
2872
  class GoogleCloudDiscoveryengineV1betaCompleteQueryResponse
2674
2873
  # @private
2675
2874
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3053,6 +3252,24 @@ module Google
3053
3252
  end
3054
3253
  end
3055
3254
 
3255
+ class GoogleCloudDiscoveryengineV1betaFhirStoreSource
3256
+ # @private
3257
+ class Representation < Google::Apis::Core::JsonRepresentation
3258
+ property :fhir_store, as: 'fhirStore'
3259
+ property :gcs_staging_dir, as: 'gcsStagingDir'
3260
+ end
3261
+ end
3262
+
3263
+ class GoogleCloudDiscoveryengineV1betaFirestoreSource
3264
+ # @private
3265
+ class Representation < Google::Apis::Core::JsonRepresentation
3266
+ property :collection_id, as: 'collectionId'
3267
+ property :database_id, as: 'databaseId'
3268
+ property :gcs_staging_dir, as: 'gcsStagingDir'
3269
+ property :project_id, as: 'projectId'
3270
+ end
3271
+ end
3272
+
3056
3273
  class GoogleCloudDiscoveryengineV1betaGcsSource
3057
3274
  # @private
3058
3275
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3061,6 +3278,13 @@ module Google
3061
3278
  end
3062
3279
  end
3063
3280
 
3281
+ class GoogleCloudDiscoveryengineV1betaGroundingConfig
3282
+ # @private
3283
+ class Representation < Google::Apis::Core::JsonRepresentation
3284
+ property :name, as: 'name'
3285
+ end
3286
+ end
3287
+
3064
3288
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
3065
3289
  # @private
3066
3290
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3077,14 +3301,24 @@ module Google
3077
3301
  property :auto_generate_ids, as: 'autoGenerateIds'
3078
3302
  property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource::Representation
3079
3303
 
3304
+ property :bigtable_source, as: 'bigtableSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigtableSource::Representation
3305
+
3306
+ property :cloud_sql_source, as: 'cloudSqlSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCloudSqlSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCloudSqlSource::Representation
3307
+
3080
3308
  property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
3081
3309
 
3310
+ property :fhir_store_source, as: 'fhirStoreSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaFhirStoreSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaFhirStoreSource::Representation
3311
+
3312
+ property :firestore_source, as: 'firestoreSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaFirestoreSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaFirestoreSource::Representation
3313
+
3082
3314
  property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource::Representation
3083
3315
 
3084
3316
  property :id_field, as: 'idField'
3085
3317
  property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource::Representation
3086
3318
 
3087
3319
  property :reconciliation_mode, as: 'reconciliationMode'
3320
+ property :spanner_source, as: 'spannerSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSpannerSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSpannerSource::Representation
3321
+
3088
3322
  end
3089
3323
  end
3090
3324
 
@@ -3295,6 +3529,12 @@ module Google
3295
3529
  end
3296
3530
  end
3297
3531
 
3532
+ class GoogleCloudDiscoveryengineV1betaPauseEngineRequest
3533
+ # @private
3534
+ class Representation < Google::Apis::Core::JsonRepresentation
3535
+ end
3536
+ end
3537
+
3298
3538
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
3299
3539
  # @private
3300
3540
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3345,6 +3585,36 @@ module Google
3345
3585
  end
3346
3586
  end
3347
3587
 
3588
+ class GoogleCloudDiscoveryengineV1betaRankRequest
3589
+ # @private
3590
+ class Representation < Google::Apis::Core::JsonRepresentation
3591
+ property :ignore_record_details_in_response, as: 'ignoreRecordDetailsInResponse'
3592
+ property :model, as: 'model'
3593
+ property :query, as: 'query'
3594
+ collection :records, as: 'records', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord::Representation
3595
+
3596
+ property :top_n, as: 'topN'
3597
+ end
3598
+ end
3599
+
3600
+ class GoogleCloudDiscoveryengineV1betaRankResponse
3601
+ # @private
3602
+ class Representation < Google::Apis::Core::JsonRepresentation
3603
+ collection :records, as: 'records', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankingRecord::Representation
3604
+
3605
+ end
3606
+ end
3607
+
3608
+ class GoogleCloudDiscoveryengineV1betaRankingRecord
3609
+ # @private
3610
+ class Representation < Google::Apis::Core::JsonRepresentation
3611
+ property :content, as: 'content'
3612
+ property :id, as: 'id'
3613
+ property :score, as: 'score'
3614
+ property :title, as: 'title'
3615
+ end
3616
+ end
3617
+
3348
3618
  class GoogleCloudDiscoveryengineV1betaRecommendRequest
3349
3619
  # @private
3350
3620
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3407,6 +3677,12 @@ module Google
3407
3677
  end
3408
3678
  end
3409
3679
 
3680
+ class GoogleCloudDiscoveryengineV1betaResumeEngineRequest
3681
+ # @private
3682
+ class Representation < Google::Apis::Core::JsonRepresentation
3683
+ end
3684
+ end
3685
+
3410
3686
  class GoogleCloudDiscoveryengineV1betaSchema
3411
3687
  # @private
3412
3688
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3738,12 +4014,22 @@ module Google
3738
4014
  class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference
3739
4015
  # @private
3740
4016
  class Representation < Google::Apis::Core::JsonRepresentation
4017
+ collection :chunk_contents, as: 'chunkContents', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent::Representation
4018
+
3741
4019
  property :document, as: 'document'
3742
4020
  property :title, as: 'title'
3743
4021
  property :uri, as: 'uri'
3744
4022
  end
3745
4023
  end
3746
4024
 
4025
+ class GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent
4026
+ # @private
4027
+ class Representation < Google::Apis::Core::JsonRepresentation
4028
+ property :content, as: 'content'
4029
+ property :page_identifier, as: 'pageIdentifier'
4030
+ end
4031
+ end
4032
+
3747
4033
  class GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
3748
4034
  # @private
3749
4035
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3824,6 +4110,17 @@ module Google
3824
4110
  end
3825
4111
  end
3826
4112
 
4113
+ class GoogleCloudDiscoveryengineV1betaSpannerSource
4114
+ # @private
4115
+ class Representation < Google::Apis::Core::JsonRepresentation
4116
+ property :database_id, as: 'databaseId'
4117
+ property :enable_data_boost, as: 'enableDataBoost'
4118
+ property :instance_id, as: 'instanceId'
4119
+ property :project_id, as: 'projectId'
4120
+ property :table_id, as: 'tableId'
4121
+ end
4122
+ end
4123
+
3827
4124
  class GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry
3828
4125
  # @private
3829
4126
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3909,6 +4206,7 @@ module Google
3909
4206
 
3910
4207
  collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3911
4208
 
4209
+ hash :metrics, as: 'metrics'
3912
4210
  property :model_status, as: 'modelStatus'
3913
4211
  end
3914
4212
  end
@@ -3925,6 +4223,19 @@ module Google
3925
4223
  end
3926
4224
  end
3927
4225
 
4226
+ class GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
4227
+ # @private
4228
+ class Representation < Google::Apis::Core::JsonRepresentation
4229
+ property :engine, as: 'engine'
4230
+ end
4231
+ end
4232
+
4233
+ class GoogleCloudDiscoveryengineV1betaTuneEngineRequest
4234
+ # @private
4235
+ class Representation < Google::Apis::Core::JsonRepresentation
4236
+ end
4237
+ end
4238
+
3928
4239
  class GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
3929
4240
  # @private
3930
4241
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2547,6 +2547,112 @@ module Google
2547
2547
  execute_or_queue_command(command, &block)
2548
2548
  end
2549
2549
 
2550
+ # Pauses the training of an existing engine. Only applicable if SolutionType is
2551
+ # SOLUTION_TYPE_RECOMMENDATION.
2552
+ # @param [String] name
2553
+ # Required. The name of the engine to pause. Format: `projects/`project_number`/
2554
+ # locations/`location_id`/collections/`collection_id`/engines/`engine_id``
2555
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPauseEngineRequest] google_cloud_discoveryengine_v1beta_pause_engine_request_object
2556
+ # @param [String] fields
2557
+ # Selector specifying which fields to include in a partial response.
2558
+ # @param [String] quota_user
2559
+ # Available to use for quota purposes for server-side applications. Can be any
2560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2561
+ # @param [Google::Apis::RequestOptions] options
2562
+ # Request-specific options
2563
+ #
2564
+ # @yield [result, err] Result & error if block supplied
2565
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine] parsed result object
2566
+ # @yieldparam err [StandardError] error object if request failed
2567
+ #
2568
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine]
2569
+ #
2570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2573
+ def pause_project_location_collection_engine(name, google_cloud_discoveryengine_v1beta_pause_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2574
+ command = make_simple_command(:post, 'v1beta/{+name}:pause', options)
2575
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPauseEngineRequest::Representation
2576
+ command.request_object = google_cloud_discoveryengine_v1beta_pause_engine_request_object
2577
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine::Representation
2578
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine
2579
+ command.params['name'] = name unless name.nil?
2580
+ command.query['fields'] = fields unless fields.nil?
2581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2582
+ execute_or_queue_command(command, &block)
2583
+ end
2584
+
2585
+ # Resumes the training of an existing engine. Only applicable if SolutionType is
2586
+ # SOLUTION_TYPE_RECOMMENDATION.
2587
+ # @param [String] name
2588
+ # Required. The name of the engine to resume. Format: `projects/`project_number`/
2589
+ # locations/`location_id`/collections/`collection_id`/engines/`engine_id``
2590
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaResumeEngineRequest] google_cloud_discoveryengine_v1beta_resume_engine_request_object
2591
+ # @param [String] fields
2592
+ # Selector specifying which fields to include in a partial response.
2593
+ # @param [String] quota_user
2594
+ # Available to use for quota purposes for server-side applications. Can be any
2595
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2596
+ # @param [Google::Apis::RequestOptions] options
2597
+ # Request-specific options
2598
+ #
2599
+ # @yield [result, err] Result & error if block supplied
2600
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine] parsed result object
2601
+ # @yieldparam err [StandardError] error object if request failed
2602
+ #
2603
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine]
2604
+ #
2605
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2606
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2607
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2608
+ def resume_project_location_collection_engine(name, google_cloud_discoveryengine_v1beta_resume_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2609
+ command = make_simple_command(:post, 'v1beta/{+name}:resume', options)
2610
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaResumeEngineRequest::Representation
2611
+ command.request_object = google_cloud_discoveryengine_v1beta_resume_engine_request_object
2612
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine::Representation
2613
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEngine
2614
+ command.params['name'] = name unless name.nil?
2615
+ command.query['fields'] = fields unless fields.nil?
2616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2617
+ execute_or_queue_command(command, &block)
2618
+ end
2619
+
2620
+ # Tunes an existing engine. Only applicable if SolutionType is
2621
+ # SOLUTION_TYPE_RECOMMENDATION.
2622
+ # @param [String] name
2623
+ # Required. The resource name of the engine to tune. Format: `projects/`
2624
+ # project_number`/locations/`location_id`/collections/`collection_id`/engines/`
2625
+ # engine_id``
2626
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTuneEngineRequest] google_cloud_discoveryengine_v1beta_tune_engine_request_object
2627
+ # @param [String] fields
2628
+ # Selector specifying which fields to include in a partial response.
2629
+ # @param [String] quota_user
2630
+ # Available to use for quota purposes for server-side applications. Can be any
2631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2632
+ # @param [Google::Apis::RequestOptions] options
2633
+ # Request-specific options
2634
+ #
2635
+ # @yield [result, err] Result & error if block supplied
2636
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
2637
+ # @yieldparam err [StandardError] error object if request failed
2638
+ #
2639
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
2640
+ #
2641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2644
+ def tune_project_location_collection_engine(name, google_cloud_discoveryengine_v1beta_tune_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2645
+ command = make_simple_command(:post, 'v1beta/{+name}:tune', options)
2646
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTuneEngineRequest::Representation
2647
+ command.request_object = google_cloud_discoveryengine_v1beta_tune_engine_request_object
2648
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
2649
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
2650
+ command.params['name'] = name unless name.nil?
2651
+ command.query['fields'] = fields unless fields.nil?
2652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2653
+ execute_or_queue_command(command, &block)
2654
+ end
2655
+
2550
2656
  # Converses a conversation.
2551
2657
  # @param [String] name
2552
2658
  # Required. The resource name of the Conversation to get. Format: `projects/`
@@ -5088,6 +5194,40 @@ module Google
5088
5194
  execute_or_queue_command(command, &block)
5089
5195
  end
5090
5196
 
5197
+ # Ranks a list of text records based on the given input query.
5198
+ # @param [String] ranking_config
5199
+ # Required. The resource name of the rank service config, such as `projects/`
5200
+ # project_num`/locations/`location_id`/rankingConfigs/default_ranking_config`.
5201
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankRequest] google_cloud_discoveryengine_v1beta_rank_request_object
5202
+ # @param [String] fields
5203
+ # Selector specifying which fields to include in a partial response.
5204
+ # @param [String] quota_user
5205
+ # Available to use for quota purposes for server-side applications. Can be any
5206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5207
+ # @param [Google::Apis::RequestOptions] options
5208
+ # Request-specific options
5209
+ #
5210
+ # @yield [result, err] Result & error if block supplied
5211
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankResponse] parsed result object
5212
+ # @yieldparam err [StandardError] error object if request failed
5213
+ #
5214
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankResponse]
5215
+ #
5216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5219
+ def rank_project_location_ranking_config(ranking_config, google_cloud_discoveryengine_v1beta_rank_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5220
+ command = make_simple_command(:post, 'v1beta/{+rankingConfig}:rank', options)
5221
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankRequest::Representation
5222
+ command.request_object = google_cloud_discoveryengine_v1beta_rank_request_object
5223
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankResponse::Representation
5224
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRankResponse
5225
+ command.params['rankingConfig'] = ranking_config unless ranking_config.nil?
5226
+ command.query['fields'] = fields unless fields.nil?
5227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5228
+ execute_or_queue_command(command, &block)
5229
+ end
5230
+
5091
5231
  # Gets the latest state of a long-running operation. Clients can use this method
5092
5232
  # to poll the operation result at intervals as recommended by the API service.
5093
5233
  # @param [String] name