google-apis-discoveryengine_v1alpha 0.11.0 → 0.12.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: 0e5f62beaee63a0258f435152c39a2967b06725b2b49bfe53f6b555cf7576577
4
- data.tar.gz: '074792302de6b1b6de7a484874561a75050c3ff62c5e80c3882fbb57068b6eb8'
3
+ metadata.gz: ec8f8082c4de03bd947d1459c082a886341d7488b998a2e560d26f635825b3e5
4
+ data.tar.gz: eaa59bc81d66de1a4adec80a727289bc1df3a1f443d62cc02377da136f8bf209
5
5
  SHA512:
6
- metadata.gz: 03f8a6f63eba89efaa2173c4679cca4c0b894df3076825490417d192764a287e6a71fa2a9011d18bd623834e74c1b0283f7b5769f45ed5bd4bb8c9b1131c32c9
7
- data.tar.gz: cc375b36d1b821557e4632387c21a31b8a7e5f2609669821081ce060bd7840c85cd6a2c7bb1076947bace18fd430787b598de6f0e1c9113d58e44a7921916cde
6
+ metadata.gz: 85a336a82551c5e970170ae86df7992da40e655267244bde1371e9388150dc62fa7000b44d3b1d2019e30faed99e3a6451cde0f3873e9be685379488b4e56408
7
+ data.tar.gz: 8696b24aada09bc7a4f430bc9f9d50083d007801e93b8fd0a512b9d360becbabb7bdb287eac2ccfa6130d866643bacb4d6fc86188be9ff3cd13980eabd03a781
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.12.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230525
6
+
3
7
  ### v0.11.0 (2023-05-14)
4
8
 
5
9
  * Regenerated from discovery document revision 20230504
@@ -276,6 +276,293 @@ module Google
276
276
  end
277
277
  end
278
278
 
279
+ # Metadata related to the progress of the ImportDocuments operation. This will
280
+ # be returned by the google.longrunning.Operation.metadata field.
281
+ class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
282
+ include Google::Apis::Core::Hashable
283
+
284
+ # Operation create time.
285
+ # Corresponds to the JSON property `createTime`
286
+ # @return [String]
287
+ attr_accessor :create_time
288
+
289
+ # Count of entries that encountered errors while processing.
290
+ # Corresponds to the JSON property `failureCount`
291
+ # @return [Fixnum]
292
+ attr_accessor :failure_count
293
+
294
+ # Count of entries that were processed successfully.
295
+ # Corresponds to the JSON property `successCount`
296
+ # @return [Fixnum]
297
+ attr_accessor :success_count
298
+
299
+ # Operation last update time. If the operation is done, this is also the finish
300
+ # time.
301
+ # Corresponds to the JSON property `updateTime`
302
+ # @return [String]
303
+ attr_accessor :update_time
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @create_time = args[:create_time] if args.key?(:create_time)
312
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
313
+ @success_count = args[:success_count] if args.key?(:success_count)
314
+ @update_time = args[:update_time] if args.key?(:update_time)
315
+ end
316
+ end
317
+
318
+ # Response of the ImportDocumentsRequest. If the long running operation is done,
319
+ # then this message is returned by the google.longrunning.Operations.response
320
+ # field if the operation was successful.
321
+ class GoogleCloudDiscoveryengineV1ImportDocumentsResponse
322
+ include Google::Apis::Core::Hashable
323
+
324
+ # Configuration of destination for Import related errors.
325
+ # Corresponds to the JSON property `errorConfig`
326
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig]
327
+ attr_accessor :error_config
328
+
329
+ # A sample of errors encountered while processing the request.
330
+ # Corresponds to the JSON property `errorSamples`
331
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
332
+ attr_accessor :error_samples
333
+
334
+ def initialize(**args)
335
+ update!(**args)
336
+ end
337
+
338
+ # Update properties of this object
339
+ def update!(**args)
340
+ @error_config = args[:error_config] if args.key?(:error_config)
341
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
342
+ end
343
+ end
344
+
345
+ # Configuration of destination for Import related errors.
346
+ class GoogleCloudDiscoveryengineV1ImportErrorConfig
347
+ include Google::Apis::Core::Hashable
348
+
349
+ # Cloud Storage prefix for import errors. This must be an empty, existing Cloud
350
+ # Storage directory. Import errors will be written to sharded files in this
351
+ # directory, one per line, as a JSON-encoded `google.rpc.Status` message.
352
+ # Corresponds to the JSON property `gcsPrefix`
353
+ # @return [String]
354
+ attr_accessor :gcs_prefix
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
363
+ end
364
+ end
365
+
366
+ # Metadata related to the progress of the Import operation. This will be
367
+ # returned by the google.longrunning.Operation.metadata field.
368
+ class GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # Operation create time.
372
+ # Corresponds to the JSON property `createTime`
373
+ # @return [String]
374
+ attr_accessor :create_time
375
+
376
+ # Count of entries that encountered errors while processing.
377
+ # Corresponds to the JSON property `failureCount`
378
+ # @return [Fixnum]
379
+ attr_accessor :failure_count
380
+
381
+ # Count of entries that were processed successfully.
382
+ # Corresponds to the JSON property `successCount`
383
+ # @return [Fixnum]
384
+ attr_accessor :success_count
385
+
386
+ # Operation last update time. If the operation is done, this is also the finish
387
+ # time.
388
+ # Corresponds to the JSON property `updateTime`
389
+ # @return [String]
390
+ attr_accessor :update_time
391
+
392
+ def initialize(**args)
393
+ update!(**args)
394
+ end
395
+
396
+ # Update properties of this object
397
+ def update!(**args)
398
+ @create_time = args[:create_time] if args.key?(:create_time)
399
+ @failure_count = args[:failure_count] if args.key?(:failure_count)
400
+ @success_count = args[:success_count] if args.key?(:success_count)
401
+ @update_time = args[:update_time] if args.key?(:update_time)
402
+ end
403
+ end
404
+
405
+ # Response of the ImportUserEventsRequest. If the long running operation was
406
+ # successful, then this message is returned by the google.longrunning.Operations.
407
+ # response field if the operation was successful.
408
+ class GoogleCloudDiscoveryengineV1ImportUserEventsResponse
409
+ include Google::Apis::Core::Hashable
410
+
411
+ # Configuration of destination for Import related errors.
412
+ # Corresponds to the JSON property `errorConfig`
413
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig]
414
+ attr_accessor :error_config
415
+
416
+ # A sample of errors encountered while processing the request.
417
+ # Corresponds to the JSON property `errorSamples`
418
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
419
+ attr_accessor :error_samples
420
+
421
+ # Count of user events imported with complete existing Documents.
422
+ # Corresponds to the JSON property `joinedEventsCount`
423
+ # @return [Fixnum]
424
+ attr_accessor :joined_events_count
425
+
426
+ # Count of user events imported, but with Document information not found in the
427
+ # existing Branch.
428
+ # Corresponds to the JSON property `unjoinedEventsCount`
429
+ # @return [Fixnum]
430
+ attr_accessor :unjoined_events_count
431
+
432
+ def initialize(**args)
433
+ update!(**args)
434
+ end
435
+
436
+ # Update properties of this object
437
+ def update!(**args)
438
+ @error_config = args[:error_config] if args.key?(:error_config)
439
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
440
+ @joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
441
+ @unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
442
+ end
443
+ end
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 GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
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 GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
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
+
513
+ # Defines the structure and layout of a type of document data.
514
+ class GoogleCloudDiscoveryengineV1Schema
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # The JSON representation of the schema.
518
+ # Corresponds to the JSON property `jsonSchema`
519
+ # @return [String]
520
+ attr_accessor :json_schema
521
+
522
+ # Immutable. The full resource name of the schema, in the format of `projects/`
523
+ # project`/locations/`location`/collections/`collection`/dataStores/`data_store`/
524
+ # schemas/`schema``. This field must be a UTF-8 encoded string with a length
525
+ # limit of 1024 characters.
526
+ # Corresponds to the JSON property `name`
527
+ # @return [String]
528
+ attr_accessor :name
529
+
530
+ # The structured representation of the schema.
531
+ # Corresponds to the JSON property `structSchema`
532
+ # @return [Hash<String,Object>]
533
+ attr_accessor :struct_schema
534
+
535
+ def initialize(**args)
536
+ update!(**args)
537
+ end
538
+
539
+ # Update properties of this object
540
+ def update!(**args)
541
+ @json_schema = args[:json_schema] if args.key?(:json_schema)
542
+ @name = args[:name] if args.key?(:name)
543
+ @struct_schema = args[:struct_schema] if args.key?(:struct_schema)
544
+ end
545
+ end
546
+
547
+ # Response message for SiteSearchEngineService.BatchCreateTargetSites method.
548
+ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
549
+ include Google::Apis::Core::Hashable
550
+
551
+ # TargetSites created.
552
+ # Corresponds to the JSON property `targetSites`
553
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTargetSite>]
554
+ attr_accessor :target_sites
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @target_sites = args[:target_sites] if args.key?(:target_sites)
563
+ end
564
+ end
565
+
279
566
  # BigQuery source import data from.
280
567
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
281
568
  include Google::Apis::Core::Hashable
@@ -594,6 +881,20 @@ module Google
594
881
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
595
882
  include Google::Apis::Core::Hashable
596
883
 
884
+ # Whether to automatically generate IDs for the documents if absent. If set to `
885
+ # true`, Document.ids are automatically generated based on the hash of the
886
+ # payload, where IDs may not be consistent during multiple imports. In which
887
+ # case ReconciliationMode.FULL is highly recommended to avoid duplicate contents.
888
+ # If unset or set to `false`, Document.ids have to be specified using id_field,
889
+ # otherwises, documents without IDs will fail to be imported. Only set this
890
+ # field when using GcsSource or BigQuerySource, and when GcsSource.data_schema
891
+ # or BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT
892
+ # error is thrown.
893
+ # Corresponds to the JSON property `autoGenerateIds`
894
+ # @return [Boolean]
895
+ attr_accessor :auto_generate_ids
896
+ alias_method :auto_generate_ids?, :auto_generate_ids
897
+
597
898
  # BigQuery source import data from.
598
899
  # Corresponds to the JSON property `bigquerySource`
599
900
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource]
@@ -609,6 +910,23 @@ module Google
609
910
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource]
610
911
  attr_accessor :gcs_source
611
912
 
913
+ # The field in the Cloud Storage and BigQuery sources that indicates the unique
914
+ # IDs of the documents. For GcsSource it is the key of the JSON field. For
915
+ # instance, `my_id` for JSON ``"my_id": "some_uuid"``. For BigQuerySource it is
916
+ # the column name of the BigQuery table where the unique ids are stored. The
917
+ # values of the JSON field or the BigQuery column will be used as the Document.
918
+ # ids. The JSON field or the BigQuery column must be of string type, and the
919
+ # values must be set as valid strings conform to [RFC-1034](https://tools.ietf.
920
+ # org/html/rfc1034) with 1-63 characters. Otherwise, documents without valid IDs
921
+ # will fail to be imported. Only set this field when using GcsSource or
922
+ # BigQuerySource, and when GcsSource.data_schema or BigQuerySource.data_schema
923
+ # is `custom`. And only set this field when auto_generate_ids is unset or set as
924
+ # `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
925
+ # default value `_id` is used when importing from the allowed data sources.
926
+ # Corresponds to the JSON property `idField`
927
+ # @return [String]
928
+ attr_accessor :id_field
929
+
612
930
  # The inline source for the input config for ImportDocuments method.
613
931
  # Corresponds to the JSON property `inlineSource`
614
932
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource]
@@ -626,9 +944,11 @@ module Google
626
944
 
627
945
  # Update properties of this object
628
946
  def update!(**args)
947
+ @auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids)
629
948
  @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
630
949
  @error_config = args[:error_config] if args.key?(:error_config)
631
950
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
951
+ @id_field = args[:id_field] if args.key?(:id_field)
632
952
  @inline_source = args[:inline_source] if args.key?(:inline_source)
633
953
  @reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
634
954
  end
@@ -1325,6 +1645,66 @@ module Google
1325
1645
  end
1326
1646
  end
1327
1647
 
1648
+ # A target site for the SiteSearchEngine.
1649
+ class GoogleCloudDiscoveryengineV1alphaTargetSite
1650
+ include Google::Apis::Core::Hashable
1651
+
1652
+ # Input only. If set to false, an uri_pattern will be generated to include all
1653
+ # pages whose address contains the provided_uri_pattern. If set to true, an
1654
+ # uri_pattern will be generated to try to be an exact match of the
1655
+ # provided_uri_pattern or just the specific page if the provided_uri_pattern is
1656
+ # a specific one. provided_uri_pattern will always be normalized to generate the
1657
+ # uri pattern to be used by the search engine.
1658
+ # Corresponds to the JSON property `exactMatch`
1659
+ # @return [Boolean]
1660
+ attr_accessor :exact_match
1661
+ alias_method :exact_match?, :exact_match
1662
+
1663
+ # Output only. This is system-generated based on the provided_uri_pattern.
1664
+ # Corresponds to the JSON property `generatedUriPattern`
1665
+ # @return [String]
1666
+ attr_accessor :generated_uri_pattern
1667
+
1668
+ # Output only. The fully qualified resource name of the target site. `projects/`
1669
+ # project`/locations/`location`/collections/`collection`/dataStores/`data_store`/
1670
+ # siteSearchEngine/targetSites/`target_site`` The `target_site_id` is system-
1671
+ # generated.
1672
+ # Corresponds to the JSON property `name`
1673
+ # @return [String]
1674
+ attr_accessor :name
1675
+
1676
+ # Required. Input only. The user provided uri pattern from which the `
1677
+ # generated_uri_pattern` is generated.
1678
+ # Corresponds to the JSON property `providedUriPattern`
1679
+ # @return [String]
1680
+ attr_accessor :provided_uri_pattern
1681
+
1682
+ # The type of the target site, e.g. whether the site is to be included or
1683
+ # excluded.
1684
+ # Corresponds to the JSON property `type`
1685
+ # @return [String]
1686
+ attr_accessor :type
1687
+
1688
+ # Output only. The target site's last updated time.
1689
+ # Corresponds to the JSON property `updateTime`
1690
+ # @return [String]
1691
+ attr_accessor :update_time
1692
+
1693
+ def initialize(**args)
1694
+ update!(**args)
1695
+ end
1696
+
1697
+ # Update properties of this object
1698
+ def update!(**args)
1699
+ @exact_match = args[:exact_match] if args.key?(:exact_match)
1700
+ @generated_uri_pattern = args[:generated_uri_pattern] if args.key?(:generated_uri_pattern)
1701
+ @name = args[:name] if args.key?(:name)
1702
+ @provided_uri_pattern = args[:provided_uri_pattern] if args.key?(:provided_uri_pattern)
1703
+ @type = args[:type] if args.key?(:type)
1704
+ @update_time = args[:update_time] if args.key?(:update_time)
1705
+ end
1706
+ end
1707
+
1328
1708
  # A transaction represents the entire purchase transaction.
1329
1709
  class GoogleCloudDiscoveryengineV1alphaTransactionInfo
1330
1710
  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.11.0"
19
+ GEM_VERSION = "0.12.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 = "20230504"
25
+ REVISION = "20230525"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,60 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudDiscoveryengineV1ImportDocumentsResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudDiscoveryengineV1ImportErrorConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudDiscoveryengineV1ImportUserEventsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudDiscoveryengineV1Schema
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
67
121
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
68
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
123
 
@@ -226,6 +280,12 @@ module Google
226
280
  include Google::Apis::Core::JsonObjectSupport
227
281
  end
228
282
 
283
+ class GoogleCloudDiscoveryengineV1alphaTargetSite
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
229
289
  class GoogleCloudDiscoveryengineV1alphaTransactionInfo
230
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
291
 
@@ -390,6 +450,90 @@ module Google
390
450
  end
391
451
  end
392
452
 
453
+ class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
454
+ # @private
455
+ class Representation < Google::Apis::Core::JsonRepresentation
456
+ property :create_time, as: 'createTime'
457
+ property :failure_count, :numeric_string => true, as: 'failureCount'
458
+ property :success_count, :numeric_string => true, as: 'successCount'
459
+ property :update_time, as: 'updateTime'
460
+ end
461
+ end
462
+
463
+ class GoogleCloudDiscoveryengineV1ImportDocumentsResponse
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
467
+
468
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
469
+
470
+ end
471
+ end
472
+
473
+ class GoogleCloudDiscoveryengineV1ImportErrorConfig
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ property :gcs_prefix, as: 'gcsPrefix'
477
+ end
478
+ end
479
+
480
+ class GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :create_time, as: 'createTime'
484
+ property :failure_count, :numeric_string => true, as: 'failureCount'
485
+ property :success_count, :numeric_string => true, as: 'successCount'
486
+ property :update_time, as: 'updateTime'
487
+ end
488
+ end
489
+
490
+ class GoogleCloudDiscoveryengineV1ImportUserEventsResponse
491
+ # @private
492
+ class Representation < Google::Apis::Core::JsonRepresentation
493
+ property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
494
+
495
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
496
+
497
+ property :joined_events_count, :numeric_string => true, as: 'joinedEventsCount'
498
+ property :unjoined_events_count, :numeric_string => true, as: 'unjoinedEventsCount'
499
+ end
500
+ end
501
+
502
+ class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
503
+ # @private
504
+ class Representation < Google::Apis::Core::JsonRepresentation
505
+ property :create_time, as: 'createTime'
506
+ property :failure_count, :numeric_string => true, as: 'failureCount'
507
+ property :success_count, :numeric_string => true, as: 'successCount'
508
+ property :update_time, as: 'updateTime'
509
+ end
510
+ end
511
+
512
+ class GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ property :purge_count, :numeric_string => true, as: 'purgeCount'
516
+ collection :purge_sample, as: 'purgeSample'
517
+ end
518
+ end
519
+
520
+ class GoogleCloudDiscoveryengineV1Schema
521
+ # @private
522
+ class Representation < Google::Apis::Core::JsonRepresentation
523
+ property :json_schema, as: 'jsonSchema'
524
+ property :name, as: 'name'
525
+ hash :struct_schema, as: 'structSchema'
526
+ end
527
+ end
528
+
529
+ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
530
+ # @private
531
+ class Representation < Google::Apis::Core::JsonRepresentation
532
+ collection :target_sites, as: 'targetSites', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTargetSite, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTargetSite::Representation
533
+
534
+ end
535
+ end
536
+
393
537
  class GoogleCloudDiscoveryengineV1alphaBigQuerySource
394
538
  # @private
395
539
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -463,12 +607,14 @@ module Google
463
607
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
464
608
  # @private
465
609
  class Representation < Google::Apis::Core::JsonRepresentation
610
+ property :auto_generate_ids, as: 'autoGenerateIds'
466
611
  property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource::Representation
467
612
 
468
613
  property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
469
614
 
470
615
  property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource::Representation
471
616
 
617
+ property :id_field, as: 'idField'
472
618
  property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource::Representation
473
619
 
474
620
  property :reconciliation_mode, as: 'reconciliationMode'
@@ -659,6 +805,18 @@ module Google
659
805
  end
660
806
  end
661
807
 
808
+ class GoogleCloudDiscoveryengineV1alphaTargetSite
809
+ # @private
810
+ class Representation < Google::Apis::Core::JsonRepresentation
811
+ property :exact_match, as: 'exactMatch'
812
+ property :generated_uri_pattern, as: 'generatedUriPattern'
813
+ property :name, as: 'name'
814
+ property :provided_uri_pattern, as: 'providedUriPattern'
815
+ property :type, as: 'type'
816
+ property :update_time, as: 'updateTime'
817
+ end
818
+ end
819
+
662
820
  class GoogleCloudDiscoveryengineV1alphaTransactionInfo
663
821
  # @private
664
822
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -538,6 +538,77 @@ module Google
538
538
  execute_or_queue_command(command, &block)
539
539
  end
540
540
 
541
+ # Gets the latest state of a long-running operation. Clients can use this method
542
+ # to poll the operation result at intervals as recommended by the API service.
543
+ # @param [String] name
544
+ # The name of the operation resource.
545
+ # @param [String] fields
546
+ # Selector specifying which fields to include in a partial response.
547
+ # @param [String] quota_user
548
+ # Available to use for quota purposes for server-side applications. Can be any
549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
550
+ # @param [Google::Apis::RequestOptions] options
551
+ # Request-specific options
552
+ #
553
+ # @yield [result, err] Result & error if block supplied
554
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
555
+ # @yieldparam err [StandardError] error object if request failed
556
+ #
557
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
558
+ #
559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
562
+ def get_project_location_collection_data_store_schema_operation(name, fields: nil, quota_user: nil, options: nil, &block)
563
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
564
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
565
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
566
+ command.params['name'] = name unless name.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ execute_or_queue_command(command, &block)
570
+ end
571
+
572
+ # Lists operations that match the specified filter in the request. If the server
573
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
574
+ # @param [String] name
575
+ # The name of the operation's parent resource.
576
+ # @param [String] filter
577
+ # The standard list filter.
578
+ # @param [Fixnum] page_size
579
+ # The standard list page size.
580
+ # @param [String] page_token
581
+ # The standard list page token.
582
+ # @param [String] fields
583
+ # Selector specifying which fields to include in a partial response.
584
+ # @param [String] quota_user
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
587
+ # @param [Google::Apis::RequestOptions] options
588
+ # Request-specific options
589
+ #
590
+ # @yield [result, err] Result & error if block supplied
591
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningListOperationsResponse] parsed result object
592
+ # @yieldparam err [StandardError] error object if request failed
593
+ #
594
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningListOperationsResponse]
595
+ #
596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
599
+ def list_project_location_collection_data_store_schema_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
600
+ command = make_simple_command(:get, 'v1alpha/{+name}/operations', options)
601
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningListOperationsResponse::Representation
602
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningListOperationsResponse
603
+ command.params['name'] = name unless name.nil?
604
+ command.query['filter'] = filter unless filter.nil?
605
+ command.query['pageSize'] = page_size unless page_size.nil?
606
+ command.query['pageToken'] = page_token unless page_token.nil?
607
+ command.query['fields'] = fields unless fields.nil?
608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
609
+ execute_or_queue_command(command, &block)
610
+ end
611
+
541
612
  # Makes a recommendation, which requires a contextual user event.
542
613
  # @param [String] serving_config
543
614
  # Required. Full resource name of the format: `projects/*/locations/global/
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.11.0
4
+ version: 0.12.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-05-21 00:00:00.000000000 Z
11
+ date: 2023-05-28 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.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.12.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: []