google-apis-discoveryengine_v1beta 0.11.0 → 0.13.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: e7ddb436563f57dea35c44b8f13a923c7cd532346794aa24575f8983324a3f46
4
- data.tar.gz: b80e34b4b63b4e3bab08f1b006727536decd432f84a2f342ee1d02bc82a4a5a3
3
+ metadata.gz: fd82e65a2718fe6cf2664b8baf510c457f310f541b0081abf0b5f1efacc88c05
4
+ data.tar.gz: 0f11a80e71d3d0e07dc8ff93540c281e9d79857301e29f3ed091c3e9e20ea9f0
5
5
  SHA512:
6
- metadata.gz: 999cbf09de0d533c1e6ad2dbff097a3db1347f87813c22d340b4f8e02995097b479f76107caafee5282df0086ef769f037731b9e1f9ec92404b17091341d81d2
7
- data.tar.gz: b29edf94b92b17ec73ab6fd7d49b61b4396d58b0f1b5cce379f5817f38b029980361915f67a49b283adaeaeb26c58b3838f415fe10e94e10e592c6521cf6bedc
6
+ metadata.gz: daf5b78901c7d9a4c9f62ce6d6b40e7185d0c04c89aadbc9fafcabb7fd9d59a976ce45cb9a65a6c8f228c6c264957eccbf704be06375c14ede267041c0108801
7
+ data.tar.gz: 228de354cd75fc3145de63358763e09470763453d2d6ddbd4f6ff15a0f19d9597cca024b01f19f307a8e1122e11f62badcde4fde285d10d52384712c1d39d2c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-discoveryengine_v1beta
2
2
 
3
+ ### v0.13.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230504
6
+
7
+ ### v0.12.0 (2023-04-16)
8
+
9
+ * Regenerated from discovery document revision 20230408
10
+
3
11
  ### v0.11.0 (2023-03-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230325
@@ -118,6 +118,26 @@ module Google
118
118
  # @return [String]
119
119
  attr_accessor :message
120
120
 
121
+ # The API request payload, represented as a protocol buffer. Most API request
122
+ # types are supported—for example: * `type.googleapis.com/google.cloud.
123
+ # discoveryengine.v1alpha.DocumentService.CreateDocumentRequest` * `type.
124
+ # googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.
125
+ # WriteUserEventRequest`
126
+ # Corresponds to the JSON property `requestPayload`
127
+ # @return [Hash<String,Object>]
128
+ attr_accessor :request_payload
129
+
130
+ # The API response payload, represented as a protocol buffer. This is used to
131
+ # log some "soft errors", where the response is valid but we consider there are
132
+ # some quality issues like unjoined events. The following API responses are
133
+ # supported, and no PII is included: * `google.cloud.discoveryengine.v1alpha.
134
+ # RecommendationService.Recommend` * `google.cloud.discoveryengine.v1alpha.
135
+ # UserEventService.WriteUserEvent` * `google.cloud.discoveryengine.v1alpha.
136
+ # UserEventService.CollectUserEvent`
137
+ # Corresponds to the JSON property `responsePayload`
138
+ # @return [Hash<String,Object>]
139
+ attr_accessor :response_payload
140
+
121
141
  # Describes a running service that sends errors.
122
142
  # Corresponds to the JSON property `serviceContext`
123
143
  # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineLoggingServiceContext]
@@ -142,6 +162,8 @@ module Google
142
162
  @context = args[:context] if args.key?(:context)
143
163
  @import_payload = args[:import_payload] if args.key?(:import_payload)
144
164
  @message = args[:message] if args.key?(:message)
165
+ @request_payload = args[:request_payload] if args.key?(:request_payload)
166
+ @response_payload = args[:response_payload] if args.key?(:response_payload)
145
167
  @service_context = args[:service_context] if args.key?(:service_context)
146
168
  @status = args[:status] if args.key?(:status)
147
169
  end
@@ -420,6 +442,74 @@ module Google
420
442
  end
421
443
  end
422
444
 
445
+ # Metadata related to the progress of the PurgeDocuments operation. This will be
446
+ # returned by the google.longrunning.Operation.metadata field.
447
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # Operation create time.
451
+ # Corresponds to the JSON property `createTime`
452
+ # @return [String]
453
+ attr_accessor :create_time
454
+
455
+ # Count of entries that encountered errors while processing.
456
+ # Corresponds to the JSON property `failureCount`
457
+ # @return [Fixnum]
458
+ attr_accessor :failure_count
459
+
460
+ # Count of entries that were deleted successfully.
461
+ # Corresponds to the JSON property `successCount`
462
+ # @return [Fixnum]
463
+ attr_accessor :success_count
464
+
465
+ # Operation last update time. If the operation is done, this is also the finish
466
+ # time.
467
+ # Corresponds to the JSON property `updateTime`
468
+ # @return [String]
469
+ attr_accessor :update_time
470
+
471
+ def initialize(**args)
472
+ update!(**args)
473
+ end
474
+
475
+ # Update properties of this object
476
+ def update!(**args)
477
+ @create_time = args[:create_time] if args.key?(:create_time)
478
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
479
+ @success_count = args[:success_count] if args.key?(:success_count)
480
+ @update_time = args[:update_time] if args.key?(:update_time)
481
+ end
482
+ end
483
+
484
+ # Response message for DocumentService.PurgeDocuments method. If the long
485
+ # running operation is successfully done, then this message is returned by the
486
+ # google.longrunning.Operations.response field.
487
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
488
+ include Google::Apis::Core::Hashable
489
+
490
+ # The total count of documents purged as a result of the operation.
491
+ # Corresponds to the JSON property `purgeCount`
492
+ # @return [Fixnum]
493
+ attr_accessor :purge_count
494
+
495
+ # A sample of document names that will be deleted. Only populated if `force` is
496
+ # set to false. A max of 100 names will be returned and the names are chosen at
497
+ # random.
498
+ # Corresponds to the JSON property `purgeSample`
499
+ # @return [Array<String>]
500
+ attr_accessor :purge_sample
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
509
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
510
+ end
511
+ end
512
+
423
513
  # Defines the structure and layout of a type of document data.
424
514
  class GoogleCloudDiscoveryengineV1alphaSchema
425
515
  include Google::Apis::Core::Hashable
@@ -555,16 +645,18 @@ module Google
555
645
  include Google::Apis::Core::Hashable
556
646
 
557
647
  # The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
558
- # the key is "lengths_cm". Exactly one of text or numbers should be set.
559
- # Otherwise, an INVALID_ARGUMENT error is returned.
648
+ # the key is "lengths_cm". Exactly one of CustomAttribute.text or
649
+ # CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error
650
+ # is returned.
560
651
  # Corresponds to the JSON property `numbers`
561
652
  # @return [Array<Float>]
562
653
  attr_accessor :numbers
563
654
 
564
655
  # The textual values of this custom attribute. For example, `["yellow", "green"]`
565
- # when the key is "color". Empty string is not allowed. Otherwise, an
566
- # INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
567
- # set. Otherwise, an INVALID_ARGUMENT error is returned.
656
+ # when the key is "color". Empty string is not allowed. Otherwise, an `
657
+ # INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text or
658
+ # CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT` error
659
+ # is returned.
568
660
  # Corresponds to the JSON property `text`
569
661
  # @return [Array<String>]
570
662
  attr_accessor :text
@@ -593,7 +685,7 @@ module Google
593
685
  attr_accessor :id
594
686
 
595
687
  # The JSON string representation of the document. It should conform to the
596
- # registered schema or an INVALID_ARGUMENT error is thrown.
688
+ # registered Schema.schema or an `INVALID_ARGUMENT` error is thrown.
597
689
  # Corresponds to the JSON property `jsonData`
598
690
  # @return [String]
599
691
  attr_accessor :json_data
@@ -619,7 +711,7 @@ module Google
619
711
  attr_accessor :schema_id
620
712
 
621
713
  # The structured JSON data for the document. It should conform to the registered
622
- # schema or an INVALID_ARGUMENT error is thrown.
714
+ # Schema.schema or an `INVALID_ARGUMENT` error is thrown.
623
715
  # Corresponds to the JSON property `structData`
624
716
  # @return [Hash<String,Object>]
625
717
  attr_accessor :struct_data
@@ -648,9 +740,9 @@ module Google
648
740
  # @return [String]
649
741
  attr_accessor :id
650
742
 
651
- # Required. The Document resource full name, of the form: projects/`project\_id`/
652
- # locations/`location`/collections/`collection\_id`/dataStores/`data\_store\_id`/
653
- # branches/`branch\_id`/documents/`document\_id`
743
+ # Required. The Document resource full name, of the form: `projects/`project_id`/
744
+ # locations/`location`/collections/`collection_id`/dataStores/`data_store_id`/
745
+ # branches/`branch_id`/documents/`document_id``
654
746
  # Corresponds to the JSON property `name`
655
747
  # @return [String]
656
748
  attr_accessor :name
@@ -669,6 +761,12 @@ module Google
669
761
  # @return [Fixnum]
670
762
  attr_accessor :quantity
671
763
 
764
+ # Required. The Document url - only allowed for DataStores with content_config
765
+ # PUBLIC_WEBSITE.
766
+ # Corresponds to the JSON property `uri`
767
+ # @return [String]
768
+ attr_accessor :uri
769
+
672
770
  def initialize(**args)
673
771
  update!(**args)
674
772
  end
@@ -679,6 +777,7 @@ module Google
679
777
  @name = args[:name] if args.key?(:name)
680
778
  @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
681
779
  @quantity = args[:quantity] if args.key?(:quantity)
780
+ @uri = args[:uri] if args.key?(:uri)
682
781
  end
683
782
  end
684
783
 
@@ -1044,7 +1143,7 @@ module Google
1044
1143
  attr_accessor :media_progress_duration
1045
1144
 
1046
1145
  # Media progress should be computed using only the media_progress_duration
1047
- # relative to the media total length. This value must be between [0, 1.0]
1146
+ # relative to the media total length. This value must be between `[0, 1.0]`
1048
1147
  # inclusive. If this is not a playback or the progress cannot be computed (e.g.
1049
1148
  # ongoing livestream), this field should be unset.
1050
1149
  # Corresponds to the JSON property `mediaProgressPercentage`
@@ -1156,19 +1255,115 @@ module Google
1156
1255
  end
1157
1256
  end
1158
1257
 
1258
+ # Metadata related to the progress of the PurgeDocuments operation. This will be
1259
+ # returned by the google.longrunning.Operation.metadata field.
1260
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
1261
+ include Google::Apis::Core::Hashable
1262
+
1263
+ # Operation create time.
1264
+ # Corresponds to the JSON property `createTime`
1265
+ # @return [String]
1266
+ attr_accessor :create_time
1267
+
1268
+ # Count of entries that encountered errors while processing.
1269
+ # Corresponds to the JSON property `failureCount`
1270
+ # @return [Fixnum]
1271
+ attr_accessor :failure_count
1272
+
1273
+ # Count of entries that were deleted successfully.
1274
+ # Corresponds to the JSON property `successCount`
1275
+ # @return [Fixnum]
1276
+ attr_accessor :success_count
1277
+
1278
+ # Operation last update time. If the operation is done, this is also the finish
1279
+ # time.
1280
+ # Corresponds to the JSON property `updateTime`
1281
+ # @return [String]
1282
+ attr_accessor :update_time
1283
+
1284
+ def initialize(**args)
1285
+ update!(**args)
1286
+ end
1287
+
1288
+ # Update properties of this object
1289
+ def update!(**args)
1290
+ @create_time = args[:create_time] if args.key?(:create_time)
1291
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
1292
+ @success_count = args[:success_count] if args.key?(:success_count)
1293
+ @update_time = args[:update_time] if args.key?(:update_time)
1294
+ end
1295
+ end
1296
+
1297
+ # Request message for DocumentService.PurgeDocuments method.
1298
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
1299
+ include Google::Apis::Core::Hashable
1300
+
1301
+ # Required. Filter matching documents to purge. Only currently supported value
1302
+ # is `*` (all items).
1303
+ # Corresponds to the JSON property `filter`
1304
+ # @return [String]
1305
+ attr_accessor :filter
1306
+
1307
+ # Actually performs the purge. If `force` is set to false, return the expected
1308
+ # purge count without deleting any documents.
1309
+ # Corresponds to the JSON property `force`
1310
+ # @return [Boolean]
1311
+ attr_accessor :force
1312
+ alias_method :force?, :force
1313
+
1314
+ def initialize(**args)
1315
+ update!(**args)
1316
+ end
1317
+
1318
+ # Update properties of this object
1319
+ def update!(**args)
1320
+ @filter = args[:filter] if args.key?(:filter)
1321
+ @force = args[:force] if args.key?(:force)
1322
+ end
1323
+ end
1324
+
1325
+ # Response message for DocumentService.PurgeDocuments method. If the long
1326
+ # running operation is successfully done, then this message is returned by the
1327
+ # google.longrunning.Operations.response field.
1328
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
1329
+ include Google::Apis::Core::Hashable
1330
+
1331
+ # The total count of documents purged as a result of the operation.
1332
+ # Corresponds to the JSON property `purgeCount`
1333
+ # @return [Fixnum]
1334
+ attr_accessor :purge_count
1335
+
1336
+ # A sample of document names that will be deleted. Only populated if `force` is
1337
+ # set to false. A max of 100 names will be returned and the names are chosen at
1338
+ # random.
1339
+ # Corresponds to the JSON property `purgeSample`
1340
+ # @return [Array<String>]
1341
+ attr_accessor :purge_sample
1342
+
1343
+ def initialize(**args)
1344
+ update!(**args)
1345
+ end
1346
+
1347
+ # Update properties of this object
1348
+ def update!(**args)
1349
+ @purge_count = args[:purge_count] if args.key?(:purge_count)
1350
+ @purge_sample = args[:purge_sample] if args.key?(:purge_sample)
1351
+ end
1352
+ end
1353
+
1159
1354
  # Request message for Recommend method.
1160
1355
  class GoogleCloudDiscoveryengineV1betaRecommendRequest
1161
1356
  include Google::Apis::Core::Hashable
1162
1357
 
1163
1358
  # Filter for restricting recommendation results with a length limit of 5,000
1164
1359
  # characters. Currently, only filter expressions on the `filter_tags` attribute
1165
- # is supported. Examples: * (filter_tags: ANY("Red", "Blue") OR filter_tags: ANY(
1166
- # "Hot", "Cold")) * (filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("
1167
- # Green")) If your filter blocks all results, the API will return generic (
1168
- # unfiltered) popular Documents. If you only want results strictly matching the
1360
+ # is supported. Examples: * `(filter_tags: ANY("Red", "Blue") OR filter_tags:
1361
+ # ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags:
1362
+ # ANY("Green"))` If your filter blocks all results, the API will return generic
1363
+ # (unfiltered) popular Documents. If you only want results strictly matching the
1169
1364
  # filters, set `strictFiltering` to True in RecommendRequest.params to receive
1170
- # empty results instead. Note that the API will never return Documents with
1171
- # storageStatus of "EXPIRED" or "DELETED" regardless of filter choices.
1365
+ # empty results instead. Note that the API will never return Documents with `
1366
+ # storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
1172
1367
  # Corresponds to the JSON property `filter`
1173
1368
  # @return [String]
1174
1369
  attr_accessor :filter
@@ -1183,17 +1378,17 @@ module Google
1183
1378
 
1184
1379
  # Additional domain specific parameters for the recommendations. Allowed values:
1185
1380
  # * `returnDocument`: Boolean. If set to true, the associated Document object
1186
- # will be returned in RecommendResponse.results.document. * `returnScore`:
1187
- # Boolean. If set to true, the recommendation 'score' corresponding to each
1188
- # returned Document will be set in RecommendResponse.results.metadata. The given
1189
- # 'score' indicates the probability of a Document conversion given the user's
1190
- # context and history. * `strictFiltering`: Boolean. True by default. If set to
1191
- # false, the service will return generic (unfiltered) popular Documents instead
1192
- # of empty if your filter blocks all recommendation results. * `diversityLevel`:
1193
- # String. Default empty. If set to be non-empty, then it needs to be one of: * '
1194
- # no-diversity' * 'low-diversity' * 'medium-diversity' * 'high-diversity' * '
1195
- # auto-diversity' This gives request-level control and adjusts recommendation
1196
- # results based on Document category.
1381
+ # will be returned in RecommendResponse.RecommendationResult.document. * `
1382
+ # returnScore`: Boolean. If set to true, the recommendation 'score'
1383
+ # corresponding to each returned Document will be set in RecommendResponse.
1384
+ # RecommendationResult.metadata. The given 'score' indicates the probability of
1385
+ # a Document conversion given the user's context and history. * `strictFiltering`
1386
+ # : Boolean. True by default. If set to false, the service will return generic (
1387
+ # unfiltered) popular Documents instead of empty if your filter blocks all
1388
+ # recommendation results. * `diversityLevel`: String. Default empty. If set to
1389
+ # be non-empty, then it needs to be one of: * `no-diversity` * `low-diversity` *
1390
+ # `medium-diversity` * `high-diversity` * `auto-diversity` This gives request-
1391
+ # level control and adjusts recommendation results based on Document category.
1197
1392
  # Corresponds to the JSON property `params`
1198
1393
  # @return [Hash<String,Object>]
1199
1394
  attr_accessor :params
@@ -1380,8 +1575,8 @@ module Google
1380
1575
  # The user's search query. See SearchRequest.query for definition. The value
1381
1576
  # must be a UTF-8 encoded string with a length limit of 5,000 characters.
1382
1577
  # Otherwise, an INVALID_ARGUMENT error is returned. At least one of search_query
1383
- # or page_categories is required for `search` events. Other event types should
1384
- # not set this field. Otherwise, an INVALID_ARGUMENT error is returned.
1578
+ # or PageInfo.page_category is required for `search` events. Other event types
1579
+ # should not set this field. Otherwise, an INVALID_ARGUMENT error is returned.
1385
1580
  # Corresponds to the JSON property `searchQuery`
1386
1581
  # @return [String]
1387
1582
  attr_accessor :search_query
@@ -1470,33 +1665,33 @@ module Google
1470
1665
  # imported events and events provided with prediction requests. This lets the
1471
1666
  # Discovery Engine API use those custom attributes when training models and
1472
1667
  # serving predictions, which helps improve recommendation quality. This field
1473
- # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
1668
+ # needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is
1474
1669
  # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
1475
1670
  # 000 characters. * For text attributes, at most 400 values are allowed. Empty
1476
1671
  # values are not allowed. Each value must be a UTF-8 encoded string with a
1477
1672
  # length limit of 256 characters. * For number attributes, at most 400 values
1478
1673
  # are allowed. For product recommendations, an example of extra user information
1479
- # is traffic_channel, which is how a user arrives at the site. Users can arrive
1480
- # at the site by coming to the site directly, coming through Google search, or
1481
- # in other ways.
1674
+ # is ` traffic_channel`, which is how a user arrives at the site. Users can
1675
+ # arrive at the site by coming to the site directly, coming through Google
1676
+ # search, or in other ways.
1482
1677
  # Corresponds to the JSON property `attributes`
1483
1678
  # @return [Hash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCustomAttribute>]
1484
1679
  attr_accessor :attributes
1485
1680
 
1486
1681
  # Token to attribute an API response to user action(s) to trigger the event.
1487
- # Highly recommended for user events that are the result of PredictionService.
1488
- # Predict. This field enables accurate attribution of recommendation model
1489
- # performance. The value must be one of: * PredictResponse.attribution_token for
1490
- # events that are the result of PredictionService.Predict. * SearchResponse.
1491
- # attribution_token for events that are the result of SearchService.Search. *
1492
- # CompleteQueryResponse.attribution_token for events that are the result of
1493
- # SearchService.CompleteQuery. This token enables us to accurately attribute
1494
- # page view or conversion completion back to the event and the particular
1495
- # predict response containing this clicked/purchased product. If user clicks on
1496
- # product K in the recommendation results, pass PredictResponse.
1497
- # attribution_token as a URL parameter to product K's page. When recording
1498
- # events on product K's page, log the PredictResponse.attribution_token to this
1499
- # field.
1682
+ # Highly recommended for user events that are the result of
1683
+ # RecommendationService.Recommend. This field enables accurate attribution of
1684
+ # recommendation model performance. The value must be one of: * PredictResponse.
1685
+ # attribution_token for events that are the result of RecommendationService.
1686
+ # Recommend. * SearchResponse.attribution_token for events that are the result
1687
+ # of SearchService.Search. * CompleteQueryResponse.attribution_token for events
1688
+ # that are the result of CompletionService.CompleteQuery. This token enables us
1689
+ # to accurately attribute page view or conversion completion back to the event
1690
+ # and the particular predict response containing this clicked/purchased product.
1691
+ # If user clicks on product K in the recommendation results, pass
1692
+ # PredictResponse.attribution_token as a URL parameter to product K's page. When
1693
+ # recording events on product K's page, log the PredictResponse.
1694
+ # attribution_token to this field.
1500
1695
  # Corresponds to the JSON property `attributionToken`
1501
1696
  # @return [String]
1502
1697
  attr_accessor :attribution_token
@@ -1549,11 +1744,11 @@ module Google
1549
1744
 
1550
1745
  # The filter syntax consists of an expression language for constructing a
1551
1746
  # predicate from one or more fields of the documents being filtered. One example
1552
- # is for `search` events, the associated SearchService.SearchRequest may contain
1553
- # a filter expression in SearchService.SearchRequest.filter conforming to https:/
1554
- # /google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are
1555
- # generated from a PredictionService.PredictRequest, this field may be populated
1556
- # directly from PredictionService.PredictRequest.filter conforming to https://
1747
+ # is for `search` events, the associated SearchRequest may contain a filter
1748
+ # expression in SearchRequest.filter conforming to https://google.aip.dev/160#
1749
+ # filtering. Similarly, for `view-item-list` events that are generated from a
1750
+ # RecommendationService.RecommendRequest, this field may be populated directly
1751
+ # from RecommendationService.RecommendRequest.filter conforming to https://
1557
1752
  # google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a
1558
1753
  # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
1559
1754
  # returned.
@@ -1661,10 +1856,10 @@ module Google
1661
1856
 
1662
1857
  # User agent as included in the HTTP header. Required for getting SearchResponse.
1663
1858
  # sponsored_results. The field must be a UTF-8 encoded string with a length
1664
- # limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
1859
+ # limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
1665
1860
  # This should not be set when using the client side event reporting with GTM or
1666
- # JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request
1667
- # is set.
1861
+ # JavaScript tag in UserEventService.CollectUserEvent or if UserEvent.
1862
+ # direct_user_request is set.
1668
1863
  # Corresponds to the JSON property `userAgent`
1669
1864
  # @return [String]
1670
1865
  attr_accessor :user_agent
@@ -1674,7 +1869,7 @@ module Google
1674
1869
  # for this ID. Don't set the field to the same fixed ID for different users.
1675
1870
  # This mixes the event history of those users together, which results in
1676
1871
  # degraded model quality. The field must be a UTF-8 encoded string with a length
1677
- # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
1872
+ # limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
1678
1873
  # Corresponds to the JSON property `userId`
1679
1874
  # @return [String]
1680
1875
  attr_accessor :user_id
@@ -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.11.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230325"
25
+ REVISION = "20230504"
26
26
  end
27
27
  end
28
28
  end
@@ -94,6 +94,18 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
97
109
  class GoogleCloudDiscoveryengineV1alphaSchema
98
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
111
 
@@ -214,6 +226,24 @@ module Google
214
226
  include Google::Apis::Core::JsonObjectSupport
215
227
  end
216
228
 
229
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
217
247
  class GoogleCloudDiscoveryengineV1betaRecommendRequest
218
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
249
 
@@ -319,6 +349,8 @@ module Google
319
349
  property :import_payload, as: 'importPayload', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineLoggingImportErrorContext, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineLoggingImportErrorContext::Representation
320
350
 
321
351
  property :message, as: 'message'
352
+ hash :request_payload, as: 'requestPayload'
353
+ hash :response_payload, as: 'responsePayload'
322
354
  property :service_context, as: 'serviceContext', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineLoggingServiceContext, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineLoggingServiceContext::Representation
323
355
 
324
356
  property :status, as: 'status', class: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus::Representation
@@ -407,6 +439,24 @@ module Google
407
439
  end
408
440
  end
409
441
 
442
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ property :create_time, as: 'createTime'
446
+ property :failure_count, :numeric_string => true, as: 'failureCount'
447
+ property :success_count, :numeric_string => true, as: 'successCount'
448
+ property :update_time, as: 'updateTime'
449
+ end
450
+ end
451
+
452
+ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
456
+ collection :purge_sample, as: 'purgeSample'
457
+ end
458
+ end
459
+
410
460
  class GoogleCloudDiscoveryengineV1alphaSchema
411
461
  # @private
412
462
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -464,6 +514,7 @@ module Google
464
514
  property :name, as: 'name'
465
515
  collection :promotion_ids, as: 'promotionIds'
466
516
  property :quantity, as: 'quantity'
517
+ property :uri, as: 'uri'
467
518
  end
468
519
  end
469
520
 
@@ -606,6 +657,32 @@ module Google
606
657
  end
607
658
  end
608
659
 
660
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ property :create_time, as: 'createTime'
664
+ property :failure_count, :numeric_string => true, as: 'failureCount'
665
+ property :success_count, :numeric_string => true, as: 'successCount'
666
+ property :update_time, as: 'updateTime'
667
+ end
668
+ end
669
+
670
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
671
+ # @private
672
+ class Representation < Google::Apis::Core::JsonRepresentation
673
+ property :filter, as: 'filter'
674
+ property :force, as: 'force'
675
+ end
676
+ end
677
+
678
+ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
679
+ # @private
680
+ class Representation < Google::Apis::Core::JsonRepresentation
681
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
682
+ collection :purge_sample, as: 'purgeSample'
683
+ end
684
+ end
685
+
609
686
  class GoogleCloudDiscoveryengineV1betaRecommendRequest
610
687
  # @private
611
688
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -57,12 +57,12 @@ module Google
57
57
  # @param [String] document_id
58
58
  # Required. The ID to use for the Document, which will become the final
59
59
  # component of the Document.name. If the caller does not have permission to
60
- # create the Document, regardless of whether or not it exists, a
61
- # PERMISSION_DENIED error is returned. This field must be unique among all
62
- # Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned.
63
- # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
64
- # standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT
65
- # error is returned.
60
+ # create the Document, regardless of whether or not it exists, a `
61
+ # PERMISSION_DENIED` error is returned. This field must be unique among all
62
+ # Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
63
+ # returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/
64
+ # rfc1034) standard with a length limit of 63 characters. Otherwise, an `
65
+ # INVALID_ARGUMENT` error is returned.
66
66
  # @param [String] fields
67
67
  # Selector specifying which fields to include in a partial response.
68
68
  # @param [String] quota_user
@@ -98,9 +98,9 @@ module Google
98
98
  # Required. Full resource name of Document, such as `projects/`project`/
99
99
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
100
100
  # `branch`/documents/`document``. If the caller does not have permission to
101
- # delete the Document, regardless of whether or not it exists, a
102
- # PERMISSION_DENIED error is returned. If the Document to delete does not exist,
103
- # a NOT_FOUND error is returned.
101
+ # delete the Document, regardless of whether or not it exists, a `
102
+ # PERMISSION_DENIED` error is returned. If the Document to delete does not exist,
103
+ # a `NOT_FOUND` error is returned.
104
104
  # @param [String] fields
105
105
  # Selector specifying which fields to include in a partial response.
106
106
  # @param [String] quota_user
@@ -133,9 +133,9 @@ module Google
133
133
  # Required. Full resource name of Document, such as `projects/`project`/
134
134
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
135
135
  # `branch`/documents/`document``. If the caller does not have permission to
136
- # access the Document, regardless of whether or not it exists, a
137
- # PERMISSION_DENIED error is returned. If the requested Document does not exist,
138
- # a NOT_FOUND error is returned.
136
+ # access the Document, regardless of whether or not it exists, a `
137
+ # PERMISSION_DENIED` error is returned. If the requested Document does not exist,
138
+ # a `NOT_FOUND` error is returned.
139
139
  # @param [String] fields
140
140
  # Selector specifying which fields to include in a partial response.
141
141
  # @param [String] quota_user
@@ -206,18 +206,18 @@ module Google
206
206
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
207
207
  # `branch``. Use `default_branch` as the branch ID, to list documents under the
208
208
  # default branch. If the caller does not have permission to list Documentss
209
- # under this branch, regardless of whether or not this branch exists, a
210
- # PERMISSION_DENIED error is returned.
209
+ # under this branch, regardless of whether or not this branch exists, a `
210
+ # PERMISSION_DENIED` error is returned.
211
211
  # @param [Fixnum] page_size
212
212
  # Maximum number of Documents to return. If unspecified, defaults to 100. The
213
213
  # maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If
214
- # this field is negative, an INVALID_ARGUMENT error is returned.
214
+ # this field is negative, an `INVALID_ARGUMENT` error is returned.
215
215
  # @param [String] page_token
216
216
  # A page token ListDocumentsResponse.next_page_token, received from a previous
217
217
  # DocumentService.ListDocuments call. Provide this to retrieve the subsequent
218
218
  # page. When paginating, all other parameters provided to DocumentService.
219
- # ListDocuments must match the call that provided the page token. Otherwise, an
220
- # INVALID_ARGUMENT error is returned.
219
+ # ListDocuments must match the call that provided the page token. Otherwise, an `
220
+ # INVALID_ARGUMENT` error is returned.
221
221
  # @param [String] fields
222
222
  # Selector specifying which fields to include in a partial response.
223
223
  # @param [String] quota_user
@@ -286,6 +286,45 @@ module Google
286
286
  execute_or_queue_command(command, &block)
287
287
  end
288
288
 
289
+ # Permanently deletes all selected Documents in a branch. This process is
290
+ # asynchronous. Depending on the number of Documents to be deleted, this
291
+ # operation can take hours to complete. Before the delete operation completes,
292
+ # some Documents might still be returned by DocumentService.GetDocument or
293
+ # DocumentService.ListDocuments. To get a list of the Documents to be deleted,
294
+ # set PurgeDocumentsRequest.force to false.
295
+ # @param [String] parent
296
+ # Required. The parent resource name, such as `projects/`project`/locations/`
297
+ # location`/collections/`collection`/dataStores/`data_store`/branches/`branch``.
298
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest] google_cloud_discoveryengine_v1beta_purge_documents_request_object
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
301
+ # @param [String] quota_user
302
+ # Available to use for quota purposes for server-side applications. Can be any
303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
304
+ # @param [Google::Apis::RequestOptions] options
305
+ # Request-specific options
306
+ #
307
+ # @yield [result, err] Result & error if block supplied
308
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
309
+ # @yieldparam err [StandardError] error object if request failed
310
+ #
311
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
312
+ #
313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
316
+ def purge_project_location_collection_data_store_branch_document(parent, google_cloud_discoveryengine_v1beta_purge_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
317
+ command = make_simple_command(:post, 'v1beta/{+parent}/documents:purge', options)
318
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest::Representation
319
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_documents_request_object
320
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
321
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
322
+ command.params['parent'] = parent unless parent.nil?
323
+ command.query['fields'] = fields unless fields.nil?
324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ execute_or_queue_command(command, &block)
326
+ end
327
+
289
328
  # Gets the latest state of a long-running operation. Clients can use this method
290
329
  # to poll the operation result at intervals as recommended by the API service.
291
330
  # @param [String] name
@@ -501,8 +540,8 @@ module Google
501
540
 
502
541
  # Makes a recommendation, which requires a contextual user event.
503
542
  # @param [String] serving_config
504
- # Required. Full resource name of the format: projects/*/locations/global/
505
- # collections/*/dataStores/*/servingConfigs/* Before you can request
543
+ # Required. Full resource name of the format: `projects/*/locations/global/
544
+ # collections/*/dataStores/*/servingConfigs/*` Before you can request
506
545
  # recommendations from your model, you must create at least one serving config
507
546
  # for it.
508
547
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRecommendRequest] google_cloud_discoveryengine_v1beta_recommend_request_object
@@ -655,6 +694,77 @@ module Google
655
694
  execute_or_queue_command(command, &block)
656
695
  end
657
696
 
697
+ # Gets the latest state of a long-running operation. Clients can use this method
698
+ # to poll the operation result at intervals as recommended by the API service.
699
+ # @param [String] name
700
+ # The name of the operation resource.
701
+ # @param [String] fields
702
+ # Selector specifying which fields to include in a partial response.
703
+ # @param [String] quota_user
704
+ # Available to use for quota purposes for server-side applications. Can be any
705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
706
+ # @param [Google::Apis::RequestOptions] options
707
+ # Request-specific options
708
+ #
709
+ # @yield [result, err] Result & error if block supplied
710
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
711
+ # @yieldparam err [StandardError] error object if request failed
712
+ #
713
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
714
+ #
715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
718
+ def get_project_location_collection_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
719
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
720
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
721
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
722
+ command.params['name'] = name unless name.nil?
723
+ command.query['fields'] = fields unless fields.nil?
724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ execute_or_queue_command(command, &block)
726
+ end
727
+
728
+ # Lists operations that match the specified filter in the request. If the server
729
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
730
+ # @param [String] name
731
+ # The name of the operation's parent resource.
732
+ # @param [String] filter
733
+ # The standard list filter.
734
+ # @param [Fixnum] page_size
735
+ # The standard list page size.
736
+ # @param [String] page_token
737
+ # The standard list page token.
738
+ # @param [String] fields
739
+ # Selector specifying which fields to include in a partial response.
740
+ # @param [String] quota_user
741
+ # Available to use for quota purposes for server-side applications. Can be any
742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
743
+ # @param [Google::Apis::RequestOptions] options
744
+ # Request-specific options
745
+ #
746
+ # @yield [result, err] Result & error if block supplied
747
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningListOperationsResponse] parsed result object
748
+ # @yieldparam err [StandardError] error object if request failed
749
+ #
750
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningListOperationsResponse]
751
+ #
752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
755
+ def list_project_location_collection_engine_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
756
+ command = make_simple_command(:get, 'v1beta/{+name}/operations', options)
757
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningListOperationsResponse::Representation
758
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningListOperationsResponse
759
+ command.params['name'] = name unless name.nil?
760
+ command.query['filter'] = filter unless filter.nil?
761
+ command.query['pageSize'] = page_size unless page_size.nil?
762
+ command.query['pageToken'] = page_token unless page_token.nil?
763
+ command.query['fields'] = fields unless fields.nil?
764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
765
+ execute_or_queue_command(command, &block)
766
+ end
767
+
658
768
  # Gets the latest state of a long-running operation. Clients can use this method
659
769
  # to poll the operation result at intervals as recommended by the API service.
660
770
  # @param [String] name
@@ -734,12 +844,12 @@ module Google
734
844
  # @param [String] document_id
735
845
  # Required. The ID to use for the Document, which will become the final
736
846
  # component of the Document.name. If the caller does not have permission to
737
- # create the Document, regardless of whether or not it exists, a
738
- # PERMISSION_DENIED error is returned. This field must be unique among all
739
- # Documents with the same parent. Otherwise, an ALREADY_EXISTS error is returned.
740
- # This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
741
- # standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT
742
- # error is returned.
847
+ # create the Document, regardless of whether or not it exists, a `
848
+ # PERMISSION_DENIED` error is returned. This field must be unique among all
849
+ # Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is
850
+ # returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/
851
+ # rfc1034) standard with a length limit of 63 characters. Otherwise, an `
852
+ # INVALID_ARGUMENT` error is returned.
743
853
  # @param [String] fields
744
854
  # Selector specifying which fields to include in a partial response.
745
855
  # @param [String] quota_user
@@ -775,9 +885,9 @@ module Google
775
885
  # Required. Full resource name of Document, such as `projects/`project`/
776
886
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
777
887
  # `branch`/documents/`document``. If the caller does not have permission to
778
- # delete the Document, regardless of whether or not it exists, a
779
- # PERMISSION_DENIED error is returned. If the Document to delete does not exist,
780
- # a NOT_FOUND error is returned.
888
+ # delete the Document, regardless of whether or not it exists, a `
889
+ # PERMISSION_DENIED` error is returned. If the Document to delete does not exist,
890
+ # a `NOT_FOUND` error is returned.
781
891
  # @param [String] fields
782
892
  # Selector specifying which fields to include in a partial response.
783
893
  # @param [String] quota_user
@@ -810,9 +920,9 @@ module Google
810
920
  # Required. Full resource name of Document, such as `projects/`project`/
811
921
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
812
922
  # `branch`/documents/`document``. If the caller does not have permission to
813
- # access the Document, regardless of whether or not it exists, a
814
- # PERMISSION_DENIED error is returned. If the requested Document does not exist,
815
- # a NOT_FOUND error is returned.
923
+ # access the Document, regardless of whether or not it exists, a `
924
+ # PERMISSION_DENIED` error is returned. If the requested Document does not exist,
925
+ # a `NOT_FOUND` error is returned.
816
926
  # @param [String] fields
817
927
  # Selector specifying which fields to include in a partial response.
818
928
  # @param [String] quota_user
@@ -883,18 +993,18 @@ module Google
883
993
  # locations/`location`/collections/`collection`/dataStores/`data_store`/branches/
884
994
  # `branch``. Use `default_branch` as the branch ID, to list documents under the
885
995
  # default branch. If the caller does not have permission to list Documentss
886
- # under this branch, regardless of whether or not this branch exists, a
887
- # PERMISSION_DENIED error is returned.
996
+ # under this branch, regardless of whether or not this branch exists, a `
997
+ # PERMISSION_DENIED` error is returned.
888
998
  # @param [Fixnum] page_size
889
999
  # Maximum number of Documents to return. If unspecified, defaults to 100. The
890
1000
  # maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If
891
- # this field is negative, an INVALID_ARGUMENT error is returned.
1001
+ # this field is negative, an `INVALID_ARGUMENT` error is returned.
892
1002
  # @param [String] page_token
893
1003
  # A page token ListDocumentsResponse.next_page_token, received from a previous
894
1004
  # DocumentService.ListDocuments call. Provide this to retrieve the subsequent
895
1005
  # page. When paginating, all other parameters provided to DocumentService.
896
- # ListDocuments must match the call that provided the page token. Otherwise, an
897
- # INVALID_ARGUMENT error is returned.
1006
+ # ListDocuments must match the call that provided the page token. Otherwise, an `
1007
+ # INVALID_ARGUMENT` error is returned.
898
1008
  # @param [String] fields
899
1009
  # Selector specifying which fields to include in a partial response.
900
1010
  # @param [String] quota_user
@@ -963,6 +1073,45 @@ module Google
963
1073
  execute_or_queue_command(command, &block)
964
1074
  end
965
1075
 
1076
+ # Permanently deletes all selected Documents in a branch. This process is
1077
+ # asynchronous. Depending on the number of Documents to be deleted, this
1078
+ # operation can take hours to complete. Before the delete operation completes,
1079
+ # some Documents might still be returned by DocumentService.GetDocument or
1080
+ # DocumentService.ListDocuments. To get a list of the Documents to be deleted,
1081
+ # set PurgeDocumentsRequest.force to false.
1082
+ # @param [String] parent
1083
+ # Required. The parent resource name, such as `projects/`project`/locations/`
1084
+ # location`/collections/`collection`/dataStores/`data_store`/branches/`branch``.
1085
+ # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest] google_cloud_discoveryengine_v1beta_purge_documents_request_object
1086
+ # @param [String] fields
1087
+ # Selector specifying which fields to include in a partial response.
1088
+ # @param [String] quota_user
1089
+ # Available to use for quota purposes for server-side applications. Can be any
1090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
+ # @param [Google::Apis::RequestOptions] options
1092
+ # Request-specific options
1093
+ #
1094
+ # @yield [result, err] Result & error if block supplied
1095
+ # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation] parsed result object
1096
+ # @yieldparam err [StandardError] error object if request failed
1097
+ #
1098
+ # @return [Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation]
1099
+ #
1100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1103
+ def purge_project_location_data_store_branch_document(parent, google_cloud_discoveryengine_v1beta_purge_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1104
+ command = make_simple_command(:post, 'v1beta/{+parent}/documents:purge', options)
1105
+ command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest::Representation
1106
+ command.request_object = google_cloud_discoveryengine_v1beta_purge_documents_request_object
1107
+ command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation::Representation
1108
+ command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleLongrunningOperation
1109
+ command.params['parent'] = parent unless parent.nil?
1110
+ command.query['fields'] = fields unless fields.nil?
1111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1112
+ execute_or_queue_command(command, &block)
1113
+ end
1114
+
966
1115
  # Gets the latest state of a long-running operation. Clients can use this method
967
1116
  # to poll the operation result at intervals as recommended by the API service.
968
1117
  # @param [String] name
@@ -1178,8 +1327,8 @@ module Google
1178
1327
 
1179
1328
  # Makes a recommendation, which requires a contextual user event.
1180
1329
  # @param [String] serving_config
1181
- # Required. Full resource name of the format: projects/*/locations/global/
1182
- # collections/*/dataStores/*/servingConfigs/* Before you can request
1330
+ # Required. Full resource name of the format: `projects/*/locations/global/
1331
+ # collections/*/dataStores/*/servingConfigs/*` Before you can request
1183
1332
  # recommendations from your model, you must create at least one serving config
1184
1333
  # for it.
1185
1334
  # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaRecommendRequest] google_cloud_discoveryengine_v1beta_recommend_request_object
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.11.0
4
+ version: 0.13.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: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-05-14 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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.13.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: []