google-apis-discoveryengine_v1beta 0.48.0 → 0.49.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: ee5520300f688b808c77dbbd452a8f086a8a21ee72553efa36e7188ae9d7bc52
4
- data.tar.gz: 400d8bbd80011a5b450441dcd718d4564a285e6f23a0402dd7e6bb252004aa72
3
+ metadata.gz: 71a4a309bab71beecc7b68f89313d49cdc72f3d54e494d0fa2cd30dde7800404
4
+ data.tar.gz: 054a9f30323bdf7339717070317cb3a294741eae772a7189450966c5075f8baf
5
5
  SHA512:
6
- metadata.gz: 55ef6e119ca58a5dd5e7e67c6a5f6f92ef6953af2a1caed562febdccbf9837ccf44ce4216153e3c3daccc7ade2ecf95ed4517520347faee063a9cd119b3f9058
7
- data.tar.gz: 4b9244820eb509cad90f053ac9c661461cbb7b457b973667c145eb542b0800acfd333c7f13963f819775d5042248561ee2ec9a4e7d76a09802b1c22ed65c7082
6
+ metadata.gz: d1fd931f96c80d2d75cbf34692c401db12984d8627b9849cf10b5b3bee944cb8eb0fbd30542ca39c7b9fb43915e9cee20177bce69bab653ce02d62ed43aefe20
7
+ data.tar.gz: a9e3b7f80b3fed50f61bf583606b9eb0d212526aa9472d74380f3285a52b713f145a83efc8c9026b77f8c5514ace085c57e3b1a9197cf2cd5dbd1e8e28448fbe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1beta
2
2
 
3
+ ### v0.49.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
3
7
  ### v0.48.0 (2024-06-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20240612
@@ -1394,6 +1394,72 @@ module Google
1394
1394
  end
1395
1395
  end
1396
1396
 
1397
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
1398
+ # This will be returned by the google.longrunning.Operation.metadata field.
1399
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
1400
+ include Google::Apis::Core::Hashable
1401
+
1402
+ # Operation create time.
1403
+ # Corresponds to the JSON property `createTime`
1404
+ # @return [String]
1405
+ attr_accessor :create_time
1406
+
1407
+ # Count of CompletionSuggestions that failed to be imported.
1408
+ # Corresponds to the JSON property `failureCount`
1409
+ # @return [Fixnum]
1410
+ attr_accessor :failure_count
1411
+
1412
+ # Count of CompletionSuggestions successfully imported.
1413
+ # Corresponds to the JSON property `successCount`
1414
+ # @return [Fixnum]
1415
+ attr_accessor :success_count
1416
+
1417
+ # Operation last update time. If the operation is done, this is also the finish
1418
+ # time.
1419
+ # Corresponds to the JSON property `updateTime`
1420
+ # @return [String]
1421
+ attr_accessor :update_time
1422
+
1423
+ def initialize(**args)
1424
+ update!(**args)
1425
+ end
1426
+
1427
+ # Update properties of this object
1428
+ def update!(**args)
1429
+ @create_time = args[:create_time] if args.key?(:create_time)
1430
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
1431
+ @success_count = args[:success_count] if args.key?(:success_count)
1432
+ @update_time = args[:update_time] if args.key?(:update_time)
1433
+ end
1434
+ end
1435
+
1436
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
1437
+ # long running operation is done, this message is returned by the google.
1438
+ # longrunning.Operations.response field if the operation is successful.
1439
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
1440
+ include Google::Apis::Core::Hashable
1441
+
1442
+ # Configuration of destination for Import related errors.
1443
+ # Corresponds to the JSON property `errorConfig`
1444
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig]
1445
+ attr_accessor :error_config
1446
+
1447
+ # A sample of errors encountered while processing the request.
1448
+ # Corresponds to the JSON property `errorSamples`
1449
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
1450
+ attr_accessor :error_samples
1451
+
1452
+ def initialize(**args)
1453
+ update!(**args)
1454
+ end
1455
+
1456
+ # Update properties of this object
1457
+ def update!(**args)
1458
+ @error_config = args[:error_config] if args.key?(:error_config)
1459
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
1460
+ end
1461
+ end
1462
+
1397
1463
  # Metadata related to the progress of the ImportDocuments operation. This is
1398
1464
  # returned by the google.longrunning.Operation.metadata field.
1399
1465
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
@@ -1726,6 +1792,59 @@ module Google
1726
1792
  end
1727
1793
  end
1728
1794
 
1795
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
1796
+ # This is returned by the google.longrunning.Operation.metadata field.
1797
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
1798
+ include Google::Apis::Core::Hashable
1799
+
1800
+ # Operation create time.
1801
+ # Corresponds to the JSON property `createTime`
1802
+ # @return [String]
1803
+ attr_accessor :create_time
1804
+
1805
+ # Operation last update time. If the operation is done, this is also the finish
1806
+ # time.
1807
+ # Corresponds to the JSON property `updateTime`
1808
+ # @return [String]
1809
+ attr_accessor :update_time
1810
+
1811
+ def initialize(**args)
1812
+ update!(**args)
1813
+ end
1814
+
1815
+ # Update properties of this object
1816
+ def update!(**args)
1817
+ @create_time = args[:create_time] if args.key?(:create_time)
1818
+ @update_time = args[:update_time] if args.key?(:update_time)
1819
+ end
1820
+ end
1821
+
1822
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
1823
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
1824
+ include Google::Apis::Core::Hashable
1825
+
1826
+ # A sample of errors encountered while processing the request.
1827
+ # Corresponds to the JSON property `errorSamples`
1828
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
1829
+ attr_accessor :error_samples
1830
+
1831
+ # Whether the completion suggestions were successfully purged.
1832
+ # Corresponds to the JSON property `purgeSucceeded`
1833
+ # @return [Boolean]
1834
+ attr_accessor :purge_succeeded
1835
+ alias_method :purge_succeeded?, :purge_succeeded
1836
+
1837
+ def initialize(**args)
1838
+ update!(**args)
1839
+ end
1840
+
1841
+ # Update properties of this object
1842
+ def update!(**args)
1843
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
1844
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
1845
+ end
1846
+ end
1847
+
1729
1848
  # Metadata related to the progress of the PurgeDocuments operation. This will be
1730
1849
  # returned by the google.longrunning.Operation.metadata field.
1731
1850
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
@@ -4244,6 +4363,72 @@ module Google
4244
4363
  end
4245
4364
  end
4246
4365
 
4366
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
4367
+ # This will be returned by the google.longrunning.Operation.metadata field.
4368
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
4369
+ include Google::Apis::Core::Hashable
4370
+
4371
+ # Operation create time.
4372
+ # Corresponds to the JSON property `createTime`
4373
+ # @return [String]
4374
+ attr_accessor :create_time
4375
+
4376
+ # Count of CompletionSuggestions that failed to be imported.
4377
+ # Corresponds to the JSON property `failureCount`
4378
+ # @return [Fixnum]
4379
+ attr_accessor :failure_count
4380
+
4381
+ # Count of CompletionSuggestions successfully imported.
4382
+ # Corresponds to the JSON property `successCount`
4383
+ # @return [Fixnum]
4384
+ attr_accessor :success_count
4385
+
4386
+ # Operation last update time. If the operation is done, this is also the finish
4387
+ # time.
4388
+ # Corresponds to the JSON property `updateTime`
4389
+ # @return [String]
4390
+ attr_accessor :update_time
4391
+
4392
+ def initialize(**args)
4393
+ update!(**args)
4394
+ end
4395
+
4396
+ # Update properties of this object
4397
+ def update!(**args)
4398
+ @create_time = args[:create_time] if args.key?(:create_time)
4399
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
4400
+ @success_count = args[:success_count] if args.key?(:success_count)
4401
+ @update_time = args[:update_time] if args.key?(:update_time)
4402
+ end
4403
+ end
4404
+
4405
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
4406
+ # long running operation is done, this message is returned by the google.
4407
+ # longrunning.Operations.response field if the operation is successful.
4408
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
4409
+ include Google::Apis::Core::Hashable
4410
+
4411
+ # Configuration of destination for Import related errors.
4412
+ # Corresponds to the JSON property `errorConfig`
4413
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
4414
+ attr_accessor :error_config
4415
+
4416
+ # A sample of errors encountered while processing the request.
4417
+ # Corresponds to the JSON property `errorSamples`
4418
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
4419
+ attr_accessor :error_samples
4420
+
4421
+ def initialize(**args)
4422
+ update!(**args)
4423
+ end
4424
+
4425
+ # Update properties of this object
4426
+ def update!(**args)
4427
+ @error_config = args[:error_config] if args.key?(:error_config)
4428
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
4429
+ end
4430
+ end
4431
+
4247
4432
  # Metadata related to the progress of the ImportDocuments operation. This is
4248
4433
  # returned by the google.longrunning.Operation.metadata field.
4249
4434
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
@@ -4636,6 +4821,59 @@ module Google
4636
4821
  end
4637
4822
  end
4638
4823
 
4824
+ # Metadata related to the progress of the PurgeCompletionSuggestions operation.
4825
+ # This is returned by the google.longrunning.Operation.metadata field.
4826
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
4827
+ include Google::Apis::Core::Hashable
4828
+
4829
+ # Operation create time.
4830
+ # Corresponds to the JSON property `createTime`
4831
+ # @return [String]
4832
+ attr_accessor :create_time
4833
+
4834
+ # Operation last update time. If the operation is done, this is also the finish
4835
+ # time.
4836
+ # Corresponds to the JSON property `updateTime`
4837
+ # @return [String]
4838
+ attr_accessor :update_time
4839
+
4840
+ def initialize(**args)
4841
+ update!(**args)
4842
+ end
4843
+
4844
+ # Update properties of this object
4845
+ def update!(**args)
4846
+ @create_time = args[:create_time] if args.key?(:create_time)
4847
+ @update_time = args[:update_time] if args.key?(:update_time)
4848
+ end
4849
+ end
4850
+
4851
+ # Response message for CompletionService.PurgeCompletionSuggestions method.
4852
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
4853
+ include Google::Apis::Core::Hashable
4854
+
4855
+ # A sample of errors encountered while processing the request.
4856
+ # Corresponds to the JSON property `errorSamples`
4857
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
4858
+ attr_accessor :error_samples
4859
+
4860
+ # Whether the completion suggestions were successfully purged.
4861
+ # Corresponds to the JSON property `purgeSucceeded`
4862
+ # @return [Boolean]
4863
+ attr_accessor :purge_succeeded
4864
+ alias_method :purge_succeeded?, :purge_succeeded
4865
+
4866
+ def initialize(**args)
4867
+ update!(**args)
4868
+ end
4869
+
4870
+ # Update properties of this object
4871
+ def update!(**args)
4872
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
4873
+ @purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
4874
+ end
4875
+ end
4876
+
4639
4877
  # Metadata related to the progress of the PurgeDocuments operation. This will be
4640
4878
  # returned by the google.longrunning.Operation.metadata field.
4641
4879
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
@@ -7431,6 +7669,65 @@ module Google
7431
7669
  end
7432
7670
  end
7433
7671
 
7672
+ # Autocomplete suggestions that are imported from Customer.
7673
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
7674
+ include Google::Apis::Core::Hashable
7675
+
7676
+ # Alternative matching phrases for this suggestion.
7677
+ # Corresponds to the JSON property `alternativePhrases`
7678
+ # @return [Array<String>]
7679
+ attr_accessor :alternative_phrases
7680
+
7681
+ # Frequency of this suggestion. Will be used to rank suggestions when score is
7682
+ # not available.
7683
+ # Corresponds to the JSON property `frequency`
7684
+ # @return [Fixnum]
7685
+ attr_accessor :frequency
7686
+
7687
+ # Global score of this suggestion. Control how this suggestion would be scored /
7688
+ # ranked.
7689
+ # Corresponds to the JSON property `globalScore`
7690
+ # @return [Float]
7691
+ attr_accessor :global_score
7692
+
7693
+ # If two suggestions have the same groupId, they will not be returned together.
7694
+ # Instead the one ranked higher will be returned. This can be used to
7695
+ # deduplicate semantically identical suggestions.
7696
+ # Corresponds to the JSON property `groupId`
7697
+ # @return [String]
7698
+ attr_accessor :group_id
7699
+
7700
+ # The score of this suggestion within its group.
7701
+ # Corresponds to the JSON property `groupScore`
7702
+ # @return [Float]
7703
+ attr_accessor :group_score
7704
+
7705
+ # BCP-47 language code of this suggestion.
7706
+ # Corresponds to the JSON property `languageCode`
7707
+ # @return [String]
7708
+ attr_accessor :language_code
7709
+
7710
+ # Required. The suggestion text.
7711
+ # Corresponds to the JSON property `suggestion`
7712
+ # @return [String]
7713
+ attr_accessor :suggestion
7714
+
7715
+ def initialize(**args)
7716
+ update!(**args)
7717
+ end
7718
+
7719
+ # Update properties of this object
7720
+ def update!(**args)
7721
+ @alternative_phrases = args[:alternative_phrases] if args.key?(:alternative_phrases)
7722
+ @frequency = args[:frequency] if args.key?(:frequency)
7723
+ @global_score = args[:global_score] if args.key?(:global_score)
7724
+ @group_id = args[:group_id] if args.key?(:group_id)
7725
+ @group_score = args[:group_score] if args.key?(:group_score)
7726
+ @language_code = args[:language_code] if args.key?(:language_code)
7727
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
7728
+ end
7729
+ end
7730
+
7434
7731
  # Defines circumstances to be checked before allowing a behavior
7435
7732
  class GoogleCloudDiscoveryengineV1betaCondition
7436
7733
  include Google::Apis::Core::Hashable
@@ -8513,7 +8810,7 @@ module Google
8513
8810
 
8514
8811
  # The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
8515
8812
  # to/file`) are supported. The maximum file size is 2.5 MB for text-based
8516
- # formats, 100 MB for other formats.
8813
+ # formats, 200 MB for other formats.
8517
8814
  # Corresponds to the JSON property `uri`
8518
8815
  # @return [String]
8519
8816
  attr_accessor :uri
@@ -9302,6 +9599,128 @@ module Google
9302
9599
  end
9303
9600
  end
9304
9601
 
9602
+ # Metadata related to the progress of the ImportCompletionSuggestions operation.
9603
+ # This will be returned by the google.longrunning.Operation.metadata field.
9604
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
9605
+ include Google::Apis::Core::Hashable
9606
+
9607
+ # Operation create time.
9608
+ # Corresponds to the JSON property `createTime`
9609
+ # @return [String]
9610
+ attr_accessor :create_time
9611
+
9612
+ # Count of CompletionSuggestions that failed to be imported.
9613
+ # Corresponds to the JSON property `failureCount`
9614
+ # @return [Fixnum]
9615
+ attr_accessor :failure_count
9616
+
9617
+ # Count of CompletionSuggestions successfully imported.
9618
+ # Corresponds to the JSON property `successCount`
9619
+ # @return [Fixnum]
9620
+ attr_accessor :success_count
9621
+
9622
+ # Operation last update time. If the operation is done, this is also the finish
9623
+ # time.
9624
+ # Corresponds to the JSON property `updateTime`
9625
+ # @return [String]
9626
+ attr_accessor :update_time
9627
+
9628
+ def initialize(**args)
9629
+ update!(**args)
9630
+ end
9631
+
9632
+ # Update properties of this object
9633
+ def update!(**args)
9634
+ @create_time = args[:create_time] if args.key?(:create_time)
9635
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
9636
+ @success_count = args[:success_count] if args.key?(:success_count)
9637
+ @update_time = args[:update_time] if args.key?(:update_time)
9638
+ end
9639
+ end
9640
+
9641
+ # Request message for CompletionService.ImportCompletionSuggestions method.
9642
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
9643
+ include Google::Apis::Core::Hashable
9644
+
9645
+ # BigQuery source import data from.
9646
+ # Corresponds to the JSON property `bigquerySource`
9647
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource]
9648
+ attr_accessor :bigquery_source
9649
+
9650
+ # Configuration of destination for Import related errors.
9651
+ # Corresponds to the JSON property `errorConfig`
9652
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
9653
+ attr_accessor :error_config
9654
+
9655
+ # Cloud Storage location for input content.
9656
+ # Corresponds to the JSON property `gcsSource`
9657
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource]
9658
+ attr_accessor :gcs_source
9659
+
9660
+ # The inline source for CompletionSuggestions.
9661
+ # Corresponds to the JSON property `inlineSource`
9662
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource]
9663
+ attr_accessor :inline_source
9664
+
9665
+ def initialize(**args)
9666
+ update!(**args)
9667
+ end
9668
+
9669
+ # Update properties of this object
9670
+ def update!(**args)
9671
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
9672
+ @error_config = args[:error_config] if args.key?(:error_config)
9673
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
9674
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
9675
+ end
9676
+ end
9677
+
9678
+ # The inline source for CompletionSuggestions.
9679
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
9680
+ include Google::Apis::Core::Hashable
9681
+
9682
+ # Required. A list of all denylist entries to import. Max of 1000 items.
9683
+ # Corresponds to the JSON property `suggestions`
9684
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion>]
9685
+ attr_accessor :suggestions
9686
+
9687
+ def initialize(**args)
9688
+ update!(**args)
9689
+ end
9690
+
9691
+ # Update properties of this object
9692
+ def update!(**args)
9693
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
9694
+ end
9695
+ end
9696
+
9697
+ # Response of the CompletionService.ImportCompletionSuggestions method. If the
9698
+ # long running operation is done, this message is returned by the google.
9699
+ # longrunning.Operations.response field if the operation is successful.
9700
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
9701
+ include Google::Apis::Core::Hashable
9702
+
9703
+ # Configuration of destination for Import related errors.
9704
+ # Corresponds to the JSON property `errorConfig`
9705
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
9706
+ attr_accessor :error_config
9707
+
9708
+ # A sample of errors encountered while processing the request.
9709
+ # Corresponds to the JSON property `errorSamples`
9710
+ # @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
9711
+ attr_accessor :error_samples
9712
+
9713
+ def initialize(**args)
9714
+ update!(**args)
9715
+ end
9716
+
9717
+ # Update properties of this object
9718
+ def update!(**args)
9719
+ @error_config = args[:error_config] if args.key?(:error_config)
9720
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
9721
+ end
9722
+ end
9723
+
9305
9724
  # Metadata related to the progress of the ImportDocuments operation. This is
9306
9725
  # returned by the google.longrunning.Operation.metadata field.
9307
9726
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
@@ -10377,6 +10796,19 @@ module Google
10377
10796
  end
10378
10797
  end
10379
10798
 
10799
+ # Request message for CompletionService.PurgeCompletionSuggestions method.
10800
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
10801
+ include Google::Apis::Core::Hashable
10802
+
10803
+ def initialize(**args)
10804
+ update!(**args)
10805
+ end
10806
+
10807
+ # Update properties of this object
10808
+ def update!(**args)
10809
+ end
10810
+ end
10811
+
10380
10812
  # Metadata related to the progress of the PurgeDocuments operation. This will be
10381
10813
  # returned by the google.longrunning.Operation.metadata field.
10382
10814
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
@@ -11865,7 +12297,10 @@ module Google
11865
12297
 
11866
12298
  # Maximum facet values that are returned for this facet. If unspecified,
11867
12299
  # defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
11868
- # to 300. If this field is negative, an `INVALID_ARGUMENT` is returned.
12300
+ # to 300. For aggregation in healthcare search, when the [FacetKey.key] is "
12301
+ # healthcare_aggregation_key", the limit will be overridden to 10,000 internally,
12302
+ # regardless of the value set here. If this field is negative, an `
12303
+ # INVALID_ARGUMENT` is returned.
11869
12304
  # Corresponds to the JSON property `limit`
11870
12305
  # @return [Fixnum]
11871
12306
  attr_accessor :limit
@@ -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.48.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240612"
25
+ REVISION = "20240617"
26
26
  end
27
27
  end
28
28
  end
@@ -280,6 +280,18 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
282
 
283
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -340,6 +352,18 @@ module Google
340
352
  include Google::Apis::Core::JsonObjectSupport
341
353
  end
342
354
 
355
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
343
367
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
344
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
369
 
@@ -790,6 +814,18 @@ module Google
790
814
  include Google::Apis::Core::JsonObjectSupport
791
815
  end
792
816
 
817
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
818
+ class Representation < Google::Apis::Core::JsonRepresentation; end
819
+
820
+ include Google::Apis::Core::JsonObjectSupport
821
+ end
822
+
823
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
793
829
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
794
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
831
 
@@ -862,6 +898,18 @@ module Google
862
898
  include Google::Apis::Core::JsonObjectSupport
863
899
  end
864
900
 
901
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
865
913
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
866
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
867
915
 
@@ -1354,6 +1402,12 @@ module Google
1354
1402
  include Google::Apis::Core::JsonObjectSupport
1355
1403
  end
1356
1404
 
1405
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
1406
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1407
+
1408
+ include Google::Apis::Core::JsonObjectSupport
1409
+ end
1410
+
1357
1411
  class GoogleCloudDiscoveryengineV1betaCondition
1358
1412
  class Representation < Google::Apis::Core::JsonRepresentation; end
1359
1413
 
@@ -1684,6 +1738,30 @@ module Google
1684
1738
  include Google::Apis::Core::JsonObjectSupport
1685
1739
  end
1686
1740
 
1741
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
1742
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1743
+
1744
+ include Google::Apis::Core::JsonObjectSupport
1745
+ end
1746
+
1747
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1753
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
1754
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1755
+
1756
+ include Google::Apis::Core::JsonObjectSupport
1757
+ end
1758
+
1759
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
1760
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1761
+
1762
+ include Google::Apis::Core::JsonObjectSupport
1763
+ end
1764
+
1687
1765
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
1688
1766
  class Representation < Google::Apis::Core::JsonRepresentation; end
1689
1767
 
@@ -1882,6 +1960,12 @@ module Google
1882
1960
  include Google::Apis::Core::JsonObjectSupport
1883
1961
  end
1884
1962
 
1963
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
1964
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1965
+
1966
+ include Google::Apis::Core::JsonObjectSupport
1967
+ end
1968
+
1885
1969
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
1886
1970
  class Representation < Google::Apis::Core::JsonRepresentation; end
1887
1971
 
@@ -2792,6 +2876,26 @@ module Google
2792
2876
  end
2793
2877
  end
2794
2878
 
2879
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
2880
+ # @private
2881
+ class Representation < Google::Apis::Core::JsonRepresentation
2882
+ property :create_time, as: 'createTime'
2883
+ property :failure_count, :numeric_string => true, as: 'failureCount'
2884
+ property :success_count, :numeric_string => true, as: 'successCount'
2885
+ property :update_time, as: 'updateTime'
2886
+ end
2887
+ end
2888
+
2889
+ class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
2890
+ # @private
2891
+ class Representation < Google::Apis::Core::JsonRepresentation
2892
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
2893
+
2894
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
2895
+
2896
+ end
2897
+ end
2898
+
2795
2899
  class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
2796
2900
  # @private
2797
2901
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2888,6 +2992,23 @@ module Google
2888
2992
  end
2889
2993
  end
2890
2994
 
2995
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
2996
+ # @private
2997
+ class Representation < Google::Apis::Core::JsonRepresentation
2998
+ property :create_time, as: 'createTime'
2999
+ property :update_time, as: 'updateTime'
3000
+ end
3001
+ end
3002
+
3003
+ class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
3004
+ # @private
3005
+ class Representation < Google::Apis::Core::JsonRepresentation
3006
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3007
+
3008
+ property :purge_succeeded, as: 'purgeSucceeded'
3009
+ end
3010
+ end
3011
+
2891
3012
  class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
2892
3013
  # @private
2893
3014
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3603,6 +3724,26 @@ module Google
3603
3724
  end
3604
3725
  end
3605
3726
 
3727
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
3728
+ # @private
3729
+ class Representation < Google::Apis::Core::JsonRepresentation
3730
+ property :create_time, as: 'createTime'
3731
+ property :failure_count, :numeric_string => true, as: 'failureCount'
3732
+ property :success_count, :numeric_string => true, as: 'successCount'
3733
+ property :update_time, as: 'updateTime'
3734
+ end
3735
+ end
3736
+
3737
+ class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
3738
+ # @private
3739
+ class Representation < Google::Apis::Core::JsonRepresentation
3740
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
3741
+
3742
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3743
+
3744
+ end
3745
+ end
3746
+
3606
3747
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
3607
3748
  # @private
3608
3749
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3717,6 +3858,23 @@ module Google
3717
3858
  end
3718
3859
  end
3719
3860
 
3861
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
3862
+ # @private
3863
+ class Representation < Google::Apis::Core::JsonRepresentation
3864
+ property :create_time, as: 'createTime'
3865
+ property :update_time, as: 'updateTime'
3866
+ end
3867
+ end
3868
+
3869
+ class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
3870
+ # @private
3871
+ class Representation < Google::Apis::Core::JsonRepresentation
3872
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
3873
+
3874
+ property :purge_succeeded, as: 'purgeSucceeded'
3875
+ end
3876
+ end
3877
+
3720
3878
  class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
3721
3879
  # @private
3722
3880
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4521,6 +4679,19 @@ module Google
4521
4679
  end
4522
4680
  end
4523
4681
 
4682
+ class GoogleCloudDiscoveryengineV1betaCompletionSuggestion
4683
+ # @private
4684
+ class Representation < Google::Apis::Core::JsonRepresentation
4685
+ collection :alternative_phrases, as: 'alternativePhrases'
4686
+ property :frequency, :numeric_string => true, as: 'frequency'
4687
+ property :global_score, as: 'globalScore'
4688
+ property :group_id, as: 'groupId'
4689
+ property :group_score, as: 'groupScore'
4690
+ property :language_code, as: 'languageCode'
4691
+ property :suggestion, as: 'suggestion'
4692
+ end
4693
+ end
4694
+
4524
4695
  class GoogleCloudDiscoveryengineV1betaCondition
4525
4696
  # @private
4526
4697
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5041,6 +5212,48 @@ module Google
5041
5212
  end
5042
5213
  end
5043
5214
 
5215
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
5216
+ # @private
5217
+ class Representation < Google::Apis::Core::JsonRepresentation
5218
+ property :create_time, as: 'createTime'
5219
+ property :failure_count, :numeric_string => true, as: 'failureCount'
5220
+ property :success_count, :numeric_string => true, as: 'successCount'
5221
+ property :update_time, as: 'updateTime'
5222
+ end
5223
+ end
5224
+
5225
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest
5226
+ # @private
5227
+ class Representation < Google::Apis::Core::JsonRepresentation
5228
+ property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaBigQuerySource::Representation
5229
+
5230
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
5231
+
5232
+ property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGcsSource::Representation
5233
+
5234
+ property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource::Representation
5235
+
5236
+ end
5237
+ end
5238
+
5239
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource
5240
+ # @private
5241
+ class Representation < Google::Apis::Core::JsonRepresentation
5242
+ collection :suggestions, as: 'suggestions', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompletionSuggestion::Representation
5243
+
5244
+ end
5245
+ end
5246
+
5247
+ class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
5248
+ # @private
5249
+ class Representation < Google::Apis::Core::JsonRepresentation
5250
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
5251
+
5252
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
5253
+
5254
+ end
5255
+ end
5256
+
5044
5257
  class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
5045
5258
  # @private
5046
5259
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5367,6 +5580,12 @@ module Google
5367
5580
  end
5368
5581
  end
5369
5582
 
5583
+ class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest
5584
+ # @private
5585
+ class Representation < Google::Apis::Core::JsonRepresentation
5586
+ end
5587
+ end
5588
+
5370
5589
  class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
5371
5590
  # @private
5372
5591
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -887,6 +887,75 @@ module Google
887
887
  execute_or_queue_command(command, &block)
888
888
  end
889
889
 
890
+ # Imports CompletionSuggestions for a DataStore.
891
+ # @param [String] parent
892
+ # Required. The parent data store resource name for which to import customer
893
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
894
+ # /dataStores/*`
895
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
898
+ # @param [String] quota_user
899
+ # Available to use for quota purposes for server-side applications. Can be any
900
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
901
+ # @param [Google::Apis::RequestOptions] options
902
+ # Request-specific options
903
+ #
904
+ # @yield [result, err] Result & error if block supplied
905
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
906
+ # @yieldparam err [StandardError] error object if request failed
907
+ #
908
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
909
+ #
910
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
911
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
912
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
913
+ def import_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
914
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:import', options)
915
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest::Representation
916
+ command.request_object = google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
917
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
918
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
919
+ command.params['parent'] = parent unless parent.nil?
920
+ command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
+ execute_or_queue_command(command, &block)
923
+ end
924
+
925
+ # Permanently deletes all CompletionSuggestions for a DataStore.
926
+ # @param [String] parent
927
+ # Required. The parent data store resource name for which to purge completion
928
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
929
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
930
+ # @param [String] fields
931
+ # Selector specifying which fields to include in a partial response.
932
+ # @param [String] quota_user
933
+ # Available to use for quota purposes for server-side applications. Can be any
934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def purge_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
948
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:purge', options)
949
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest::Representation
950
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
951
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
952
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
953
+ command.params['parent'] = parent unless parent.nil?
954
+ command.query['fields'] = fields unless fields.nil?
955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
956
+ execute_or_queue_command(command, &block)
957
+ end
958
+
890
959
  # Creates a Control. By default 1000 controls are allowed for a data store. A
891
960
  # request can be submitted to adjust this limit. If the Control to create
892
961
  # already exists, an ALREADY_EXISTS error is returned.
@@ -4934,6 +5003,75 @@ module Google
4934
5003
  execute_or_queue_command(command, &block)
4935
5004
  end
4936
5005
 
5006
+ # Imports CompletionSuggestions for a DataStore.
5007
+ # @param [String] parent
5008
+ # Required. The parent data store resource name for which to import customer
5009
+ # autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
5010
+ # /dataStores/*`
5011
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
5012
+ # @param [String] fields
5013
+ # Selector specifying which fields to include in a partial response.
5014
+ # @param [String] quota_user
5015
+ # Available to use for quota purposes for server-side applications. Can be any
5016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5017
+ # @param [Google::Apis::RequestOptions] options
5018
+ # Request-specific options
5019
+ #
5020
+ # @yield [result, err] Result & error if block supplied
5021
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
5022
+ # @yieldparam err [StandardError] error object if request failed
5023
+ #
5024
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
5025
+ #
5026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5029
+ def import_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5030
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:import', options)
5031
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest::Representation
5032
+ command.request_object = google_cloud_discoveryengine_v1beta_import_completion_suggestions_request_object
5033
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
5034
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
5035
+ command.params['parent'] = parent unless parent.nil?
5036
+ command.query['fields'] = fields unless fields.nil?
5037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5038
+ execute_or_queue_command(command, &block)
5039
+ end
5040
+
5041
+ # Permanently deletes all CompletionSuggestions for a DataStore.
5042
+ # @param [String] parent
5043
+ # Required. The parent data store resource name for which to purge completion
5044
+ # suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
5045
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
5046
+ # @param [String] fields
5047
+ # Selector specifying which fields to include in a partial response.
5048
+ # @param [String] quota_user
5049
+ # Available to use for quota purposes for server-side applications. Can be any
5050
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5051
+ # @param [Google::Apis::RequestOptions] options
5052
+ # Request-specific options
5053
+ #
5054
+ # @yield [result, err] Result & error if block supplied
5055
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
5056
+ # @yieldparam err [StandardError] error object if request failed
5057
+ #
5058
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
5059
+ #
5060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5063
+ def purge_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5064
+ command = make_simple_command(:post, 'v1beta/{+parent}/completionSuggestions:purge', options)
5065
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest::Representation
5066
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_completion_suggestions_request_object
5067
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
5068
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
5069
+ command.params['parent'] = parent unless parent.nil?
5070
+ command.query['fields'] = fields unless fields.nil?
5071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5072
+ execute_or_queue_command(command, &block)
5073
+ end
5074
+
4937
5075
  # Creates a Control. By default 1000 controls are allowed for a data store. A
4938
5076
  # request can be submitted to adjust this limit. If the Control to create
4939
5077
  # already exists, an ALREADY_EXISTS error is returned.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []