google-apis-discoveryengine_v1alpha 0.21.0 → 0.22.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: 1d83f6143023b0103165c9f92dd11536614f64fc9e03381e382dd9e0ce0dd8aa
4
- data.tar.gz: a819bb70236be5504b446a4e6bfc550549e341cd69b48946b3de2a2fc8e89bd6
3
+ metadata.gz: 1c13ca72d119cad12e2e1445c5e2d48878a34269026159691976b315eaed78dd
4
+ data.tar.gz: f953015892fb521e7f2ab068397fb92d637ded26976d1728d89d634db4daef3a
5
5
  SHA512:
6
- metadata.gz: fe78f3e396644098b6d3390f0cc8171c65d3a4ee50806828b90b7f78c75c8bb6c629e2817ab64d8a3eb534514a4e40375d92c92df527d479d8cc4bfd1d8884bf
7
- data.tar.gz: ca9e3fce00239cdc0755d120eb8cecfd8c3106b0fbb76f4c1fb3be204c761914b929e261f94e06f49f3ce5e133493f0b73f5940db1443e2209bff44d6611af05
6
+ metadata.gz: d53093596560775764fcf708f9f11c564dd25fe44c46acce53175654e90eb5824bf38f4b9d60eae9c377e47d364ae5f034878125490bee25a20b1d162bae75c9
7
+ data.tar.gz: aa294cdfd80c35f7ec4407485d5a1bfd31fc84f2e4631e4c557cc3f1a40082ec07bfbd589f7e4445299330cb7efdb908dc5594d6499d70c6f93c598f9788b735
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.22.0 (2023-10-01)
4
+
5
+ * Regenerated from discovery document revision 20230925
6
+
3
7
  ### v0.21.0 (2023-09-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20230914
@@ -762,7 +762,7 @@ module Google
762
762
  # imported search events. * `document-completable` - Using suggestions taken
763
763
  # directly from user-imported document fields marked as completable. Default
764
764
  # values: * `document` is the default model for regular dataStores. * `search-
765
- # history` is the default model for IndustryVertical.SITE_SEARCH dataStores.
765
+ # history` is the default model for site search dataStores.
766
766
  # Corresponds to the JSON property `queryModel`
767
767
  # @return [String]
768
768
  attr_accessor :query_model
@@ -2475,6 +2475,164 @@ module Google
2475
2475
  end
2476
2476
  end
2477
2477
 
2478
+ # Metadata related to the progress of the SiteSearchEngineService.RecrawlUris
2479
+ # operation. This will be returned by the google.longrunning.Operation.metadata
2480
+ # field.
2481
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
2482
+ include Google::Apis::Core::Hashable
2483
+
2484
+ # Operation create time.
2485
+ # Corresponds to the JSON property `createTime`
2486
+ # @return [String]
2487
+ attr_accessor :create_time
2488
+
2489
+ # Unique URIs in the request that don't match any TargetSite in the DataStore,
2490
+ # only match TargetSites that haven't been fully indexed, or match a TargetSite
2491
+ # with type EXCLUDE.
2492
+ # Corresponds to the JSON property `invalidUris`
2493
+ # @return [Array<String>]
2494
+ attr_accessor :invalid_uris
2495
+
2496
+ # Total number of URIs that have yet to be crawled.
2497
+ # Corresponds to the JSON property `pendingCount`
2498
+ # @return [Fixnum]
2499
+ attr_accessor :pending_count
2500
+
2501
+ # Total number of URIs that were rejected due to insufficient indexing resources.
2502
+ # Corresponds to the JSON property `quotaExceededCount`
2503
+ # @return [Fixnum]
2504
+ attr_accessor :quota_exceeded_count
2505
+
2506
+ # Total number of URIs that have been crawled so far.
2507
+ # Corresponds to the JSON property `successCount`
2508
+ # @return [Fixnum]
2509
+ attr_accessor :success_count
2510
+
2511
+ # Operation last update time. If the operation is done, this is also the finish
2512
+ # time.
2513
+ # Corresponds to the JSON property `updateTime`
2514
+ # @return [String]
2515
+ attr_accessor :update_time
2516
+
2517
+ # Total number of unique URIs in the request that are not in invalid_uris.
2518
+ # Corresponds to the JSON property `validUrisCount`
2519
+ # @return [Fixnum]
2520
+ attr_accessor :valid_uris_count
2521
+
2522
+ def initialize(**args)
2523
+ update!(**args)
2524
+ end
2525
+
2526
+ # Update properties of this object
2527
+ def update!(**args)
2528
+ @create_time = args[:create_time] if args.key?(:create_time)
2529
+ @invalid_uris = args[:invalid_uris] if args.key?(:invalid_uris)
2530
+ @pending_count = args[:pending_count] if args.key?(:pending_count)
2531
+ @quota_exceeded_count = args[:quota_exceeded_count] if args.key?(:quota_exceeded_count)
2532
+ @success_count = args[:success_count] if args.key?(:success_count)
2533
+ @update_time = args[:update_time] if args.key?(:update_time)
2534
+ @valid_uris_count = args[:valid_uris_count] if args.key?(:valid_uris_count)
2535
+ end
2536
+ end
2537
+
2538
+ # Request message for SiteSearchEngineService.RecrawlUris method.
2539
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
2540
+ include Google::Apis::Core::Hashable
2541
+
2542
+ # Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an
2543
+ # INVALID_ARGUMENT error is thrown. Each URI should match at least one
2544
+ # TargetSite in `site_search_engine`.
2545
+ # Corresponds to the JSON property `uris`
2546
+ # @return [Array<String>]
2547
+ attr_accessor :uris
2548
+
2549
+ def initialize(**args)
2550
+ update!(**args)
2551
+ end
2552
+
2553
+ # Update properties of this object
2554
+ def update!(**args)
2555
+ @uris = args[:uris] if args.key?(:uris)
2556
+ end
2557
+ end
2558
+
2559
+ # Response message for SiteSearchEngineService.RecrawlUris method.
2560
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
2561
+ include Google::Apis::Core::Hashable
2562
+
2563
+ # URIs that were not crawled before the LRO terminated.
2564
+ # Corresponds to the JSON property `failedUris`
2565
+ # @return [Array<String>]
2566
+ attr_accessor :failed_uris
2567
+
2568
+ # Details for a sample of up to 10 `failed_uris`.
2569
+ # Corresponds to the JSON property `failureSamples`
2570
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo>]
2571
+ attr_accessor :failure_samples
2572
+
2573
+ def initialize(**args)
2574
+ update!(**args)
2575
+ end
2576
+
2577
+ # Update properties of this object
2578
+ def update!(**args)
2579
+ @failed_uris = args[:failed_uris] if args.key?(:failed_uris)
2580
+ @failure_samples = args[:failure_samples] if args.key?(:failure_samples)
2581
+ end
2582
+ end
2583
+
2584
+ # Details about why a particular URI failed to be crawled. Each FailureInfo
2585
+ # contains one FailureReason per CorpusType.
2586
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
2587
+ include Google::Apis::Core::Hashable
2588
+
2589
+ # List of failure reasons by corpus type (e.g. desktop, mobile).
2590
+ # Corresponds to the JSON property `failureReasons`
2591
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason>]
2592
+ attr_accessor :failure_reasons
2593
+
2594
+ # URI that failed to be crawled.
2595
+ # Corresponds to the JSON property `uri`
2596
+ # @return [String]
2597
+ attr_accessor :uri
2598
+
2599
+ def initialize(**args)
2600
+ update!(**args)
2601
+ end
2602
+
2603
+ # Update properties of this object
2604
+ def update!(**args)
2605
+ @failure_reasons = args[:failure_reasons] if args.key?(:failure_reasons)
2606
+ @uri = args[:uri] if args.key?(:uri)
2607
+ end
2608
+ end
2609
+
2610
+ # Details about why crawling failed for a particular CorpusType, e.g. DESKTOP
2611
+ # and MOBILE crawling may fail for different reasons.
2612
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
2613
+ include Google::Apis::Core::Hashable
2614
+
2615
+ # DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
2616
+ # Corresponds to the JSON property `corpusType`
2617
+ # @return [String]
2618
+ attr_accessor :corpus_type
2619
+
2620
+ # Reason why the URI was not crawled.
2621
+ # Corresponds to the JSON property `errorMessage`
2622
+ # @return [String]
2623
+ attr_accessor :error_message
2624
+
2625
+ def initialize(**args)
2626
+ update!(**args)
2627
+ end
2628
+
2629
+ # Update properties of this object
2630
+ def update!(**args)
2631
+ @corpus_type = args[:corpus_type] if args.key?(:corpus_type)
2632
+ @error_message = args[:error_message] if args.key?(:error_message)
2633
+ end
2634
+ end
2635
+
2478
2636
  # Defines a reply message to user.
2479
2637
  class GoogleCloudDiscoveryengineV1alphaReply
2480
2638
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.22.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 = "20230914"
25
+ REVISION = "20230925"
26
26
  end
27
27
  end
28
28
  end
@@ -418,6 +418,36 @@ module Google
418
418
  include Google::Apis::Core::JsonObjectSupport
419
419
  end
420
420
 
421
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
427
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
433
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
421
451
  class GoogleCloudDiscoveryengineV1alphaReply
422
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
453
 
@@ -1433,6 +1463,52 @@ module Google
1433
1463
  end
1434
1464
  end
1435
1465
 
1466
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
1467
+ # @private
1468
+ class Representation < Google::Apis::Core::JsonRepresentation
1469
+ property :create_time, as: 'createTime'
1470
+ collection :invalid_uris, as: 'invalidUris'
1471
+ property :pending_count, as: 'pendingCount'
1472
+ property :quota_exceeded_count, as: 'quotaExceededCount'
1473
+ property :success_count, as: 'successCount'
1474
+ property :update_time, as: 'updateTime'
1475
+ property :valid_uris_count, as: 'validUrisCount'
1476
+ end
1477
+ end
1478
+
1479
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
1480
+ # @private
1481
+ class Representation < Google::Apis::Core::JsonRepresentation
1482
+ collection :uris, as: 'uris'
1483
+ end
1484
+ end
1485
+
1486
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
1487
+ # @private
1488
+ class Representation < Google::Apis::Core::JsonRepresentation
1489
+ collection :failed_uris, as: 'failedUris'
1490
+ collection :failure_samples, as: 'failureSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo::Representation
1491
+
1492
+ end
1493
+ end
1494
+
1495
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
1496
+ # @private
1497
+ class Representation < Google::Apis::Core::JsonRepresentation
1498
+ collection :failure_reasons, as: 'failureReasons', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason::Representation
1499
+
1500
+ property :uri, as: 'uri'
1501
+ end
1502
+ end
1503
+
1504
+ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
1505
+ # @private
1506
+ class Representation < Google::Apis::Core::JsonRepresentation
1507
+ property :corpus_type, as: 'corpusType'
1508
+ property :error_message, as: 'errorMessage'
1509
+ end
1510
+ end
1511
+
1436
1512
  class GoogleCloudDiscoveryengineV1alphaReply
1437
1513
  # @private
1438
1514
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -211,7 +211,7 @@ module Google
211
211
  # imported search events. * `document-completable` - Using suggestions taken
212
212
  # directly from user-imported document fields marked as completable. Default
213
213
  # values: * `document` is the default model for regular dataStores. * `search-
214
- # history` is the default model for IndustryVertical.SITE_SEARCH dataStores.
214
+ # history` is the default model for site search dataStores.
215
215
  # @param [String] user_pseudo_id
216
216
  # A unique identifier for tracking visitors. For example, this could be
217
217
  # implemented with an HTTP cookie, which should be able to uniquely identify a
@@ -1298,6 +1298,40 @@ module Google
1298
1298
  execute_or_queue_command(command, &block)
1299
1299
  end
1300
1300
 
1301
+ # Request on-demand recrawl for a list of URIs.
1302
+ # @param [String] site_search_engine
1303
+ # Required. Full resource name of the SiteSearchEngine, such as `projects/*/
1304
+ # locations/*/collections/*/dataStores/*/siteSearchEngine`.
1305
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest] google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object
1306
+ # @param [String] fields
1307
+ # Selector specifying which fields to include in a partial response.
1308
+ # @param [String] quota_user
1309
+ # Available to use for quota purposes for server-side applications. Can be any
1310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1311
+ # @param [Google::Apis::RequestOptions] options
1312
+ # Request-specific options
1313
+ #
1314
+ # @yield [result, err] Result & error if block supplied
1315
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
1316
+ # @yieldparam err [StandardError] error object if request failed
1317
+ #
1318
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
1319
+ #
1320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1323
+ def recrawl_project_location_collection_data_store_site_search_engine_uris(site_search_engine, google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1324
+ command = make_simple_command(:post, 'v1alpha/{+siteSearchEngine}:recrawlUris', options)
1325
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest::Representation
1326
+ command.request_object = google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object
1327
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
1328
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
1329
+ command.params['siteSearchEngine'] = site_search_engine unless site_search_engine.nil?
1330
+ command.query['fields'] = fields unless fields.nil?
1331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1332
+ execute_or_queue_command(command, &block)
1333
+ end
1334
+
1301
1335
  # Gets the latest state of a long-running operation. Clients can use this method
1302
1336
  # to poll the operation result at intervals as recommended by the API service.
1303
1337
  # @param [String] name
@@ -1761,7 +1795,7 @@ module Google
1761
1795
  # imported search events. * `document-completable` - Using suggestions taken
1762
1796
  # directly from user-imported document fields marked as completable. Default
1763
1797
  # values: * `document` is the default model for regular dataStores. * `search-
1764
- # history` is the default model for IndustryVertical.SITE_SEARCH dataStores.
1798
+ # history` is the default model for site search dataStores.
1765
1799
  # @param [String] user_pseudo_id
1766
1800
  # A unique identifier for tracking visitors. For example, this could be
1767
1801
  # implemented with an HTTP cookie, which should be able to uniquely identify a
@@ -2777,6 +2811,40 @@ module Google
2777
2811
  execute_or_queue_command(command, &block)
2778
2812
  end
2779
2813
 
2814
+ # Request on-demand recrawl for a list of URIs.
2815
+ # @param [String] site_search_engine
2816
+ # Required. Full resource name of the SiteSearchEngine, such as `projects/*/
2817
+ # locations/*/collections/*/dataStores/*/siteSearchEngine`.
2818
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest] google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object
2819
+ # @param [String] fields
2820
+ # Selector specifying which fields to include in a partial response.
2821
+ # @param [String] quota_user
2822
+ # Available to use for quota purposes for server-side applications. Can be any
2823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2824
+ # @param [Google::Apis::RequestOptions] options
2825
+ # Request-specific options
2826
+ #
2827
+ # @yield [result, err] Result & error if block supplied
2828
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
2829
+ # @yieldparam err [StandardError] error object if request failed
2830
+ #
2831
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
2832
+ #
2833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2836
+ def recrawl_project_location_data_store_site_search_engine_uris(site_search_engine, google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2837
+ command = make_simple_command(:post, 'v1alpha/{+siteSearchEngine}:recrawlUris', options)
2838
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest::Representation
2839
+ command.request_object = google_cloud_discoveryengine_v1alpha_recrawl_uris_request_object
2840
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
2841
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
2842
+ command.params['siteSearchEngine'] = site_search_engine unless site_search_engine.nil?
2843
+ command.query['fields'] = fields unless fields.nil?
2844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2845
+ execute_or_queue_command(command, &block)
2846
+ end
2847
+
2780
2848
  # Writes a single user event from the browser. This uses a GET request to due to
2781
2849
  # browser restriction of POST-ing to a third-party domain. This method is used
2782
2850
  # only by the Discovery Engine API JavaScript pixel and Google Tag Manager.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.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-09-24 00:00:00.000000000 Z
11
+ date: 2023-10-01 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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []