google-apis-retail_v2 0.87.0 → 0.89.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f955a2116199d0020d8d7fa1a31d9f3a9530a3345077b13a1a14512d564d8ef2
4
- data.tar.gz: 0b47e9ce274392ad9339ef2ed95b69f1508bd756a1bdfae2f9f85ae821771f0d
3
+ metadata.gz: b5afe8ba40c38222eed4bca1d27f3ee9c9db1ef56c9c566eabd84b2f6fbe4c77
4
+ data.tar.gz: d2c5fb5c82b21f617f30afe3b118db31ad4d44c6cb5f919d19c137c6f04d850b
5
5
  SHA512:
6
- metadata.gz: 47cf0ae95d3738f20a7050d5bef1598aec06e598de1d30d03363bfb0077ba2dffb40a3086b8609accedb3fadecc9f5f147410e9da3751a1884ebf9bd6a506cb4
7
- data.tar.gz: e61cee1be25b125ee7060b440555490bddf9cd03bbc22197c0bda4dfc74ec0cdb2dc34ecaded290d8fd5102477f3cc43dce1067b8b63b44dd6a4a98ae32c0fd1
6
+ metadata.gz: f3dfa09013c2e0b02b8971a2851a88880bd8f982b4e7547250115f523dd6bb36b3a1aae7b9b01d4ba8bd562a77186f4a3fce994886d3ce70c2eb18d9e0266d62
7
+ data.tar.gz: 359736fc92f917bc890b36da4cb8958b38dbe1eabc68f2165899724cd2f432c311b9d3e644d5c22265d2c8c9a1e295c498ef81e90d219fea5d9d2a88aca21d58
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.89.0 (2024-02-11)
4
+
5
+ * Regenerated from discovery document revision 20240205
6
+
7
+ ### v0.88.0 (2024-02-04)
8
+
9
+ * Regenerated from discovery document revision 20240129
10
+ * Regenerated using generator version 0.13.1
11
+
3
12
  ### v0.87.0 (2024-01-23)
4
13
 
5
14
  * Regenerated from discovery document revision 20240118
@@ -560,6 +560,31 @@ module Google
560
560
  end
561
561
  end
562
562
 
563
+ # A BigQuery output result.
564
+ class GoogleCloudRetailV2BigQueryOutputResult
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # The ID of a BigQuery Dataset.
568
+ # Corresponds to the JSON property `datasetId`
569
+ # @return [String]
570
+ attr_accessor :dataset_id
571
+
572
+ # The ID of a BigQuery Table.
573
+ # Corresponds to the JSON property `tableId`
574
+ # @return [String]
575
+ attr_accessor :table_id
576
+
577
+ def initialize(**args)
578
+ update!(**args)
579
+ end
580
+
581
+ # Update properties of this object
582
+ def update!(**args)
583
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
584
+ @table_id = args[:table_id] if args.key?(:table_id)
585
+ end
586
+ end
587
+
563
588
  # BigQuery source import data from.
564
589
  class GoogleCloudRetailV2BigQuerySource
565
590
  include Google::Apis::Core::Hashable
@@ -795,6 +820,14 @@ module Google
795
820
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues>]
796
821
  attr_accessor :ignored_facet_values
797
822
 
823
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
824
+ # A facet key can have at most one child. The current facet key and the merged
825
+ # facet key need both to be textual custom attributes or both numerical custom
826
+ # attributes (same type).
827
+ # Corresponds to the JSON property `mergedFacet`
828
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet]
829
+ attr_accessor :merged_facet
830
+
798
831
  # Each instance replaces a list of facet values by a merged facet value. If a
799
832
  # facet value is not in any list, then it will stay the same. To avoid conflicts,
800
833
  # only paths of length 1 are accepted. In other words, if "dark_blue" merged
@@ -826,6 +859,7 @@ module Google
826
859
  def update!(**args)
827
860
  @facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
828
861
  @ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
862
+ @merged_facet = args[:merged_facet] if args.key?(:merged_facet)
829
863
  @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
830
864
  @rerank_config = args[:rerank_config] if args.key?(:rerank_config)
831
865
  end
@@ -870,6 +904,41 @@ module Google
870
904
  end
871
905
  end
872
906
 
907
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
908
+ # A facet key can have at most one child. The current facet key and the merged
909
+ # facet key need both to be textual custom attributes or both numerical custom
910
+ # attributes (same type).
911
+ class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
912
+ include Google::Apis::Core::Hashable
913
+
914
+ # The merged facet key should be a valid facet key that is different than the
915
+ # facet key of the current catalog attribute. We refer this is merged facet key
916
+ # as the child of the current catalog attribute. This merged facet key can't be
917
+ # a parent of another facet key (i.e. no directed path of length 2). This merged
918
+ # facet key needs to be either a textual custom attribute or a numerical custom
919
+ # attribute.
920
+ # Corresponds to the JSON property `mergedFacetKey`
921
+ # @return [String]
922
+ attr_accessor :merged_facet_key
923
+
924
+ # Each instance is a list of facet values that map into the same (possibly
925
+ # different) merged facet value. For the current attribute config, each facet
926
+ # value should map to at most one merged facet value.
927
+ # Corresponds to the JSON property `mergedFacetValues`
928
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue>]
929
+ attr_accessor :merged_facet_values
930
+
931
+ def initialize(**args)
932
+ update!(**args)
933
+ end
934
+
935
+ # Update properties of this object
936
+ def update!(**args)
937
+ @merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key)
938
+ @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
939
+ end
940
+ end
941
+
873
942
  # Replaces a set of textual facet values by the same (possibly different) merged
874
943
  # facet value. Each facet value should appear at most once as a value per
875
944
  # CatalogAttribute. This feature is available only for textual custom attributes.
@@ -1507,6 +1576,94 @@ module Google
1507
1576
  end
1508
1577
  end
1509
1578
 
1579
+ # Request message for the `ExportAnalyticsMetrics` method.
1580
+ class GoogleCloudRetailV2ExportAnalyticsMetricsRequest
1581
+ include Google::Apis::Core::Hashable
1582
+
1583
+ # A filtering expression to specify restrictions on returned metrics. The
1584
+ # expression is a sequence of terms. Each term applies a restriction to the
1585
+ # returned metrics. Use this expression to restrict results to a specific time
1586
+ # range. Currently we expect only one types of fields: * `timestamp`: This can
1587
+ # be specified twice, once with a less than operator and once with a greater
1588
+ # than operator. The `timestamp` restriction should result in one, contiguous,
1589
+ # valid, `timestamp` range. Some examples of valid filters expressions: *
1590
+ # Example 1: `timestamp > "2012-04-23T18:25:43.511Z" timestamp < "2012-04-23T18:
1591
+ # 30:43.511Z"` * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
1592
+ # Corresponds to the JSON property `filter`
1593
+ # @return [String]
1594
+ attr_accessor :filter
1595
+
1596
+ # The output configuration setting.
1597
+ # Corresponds to the JSON property `outputConfig`
1598
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfig]
1599
+ attr_accessor :output_config
1600
+
1601
+ def initialize(**args)
1602
+ update!(**args)
1603
+ end
1604
+
1605
+ # Update properties of this object
1606
+ def update!(**args)
1607
+ @filter = args[:filter] if args.key?(:filter)
1608
+ @output_config = args[:output_config] if args.key?(:output_config)
1609
+ end
1610
+ end
1611
+
1612
+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
1613
+ # was successful, then this message is returned by the google.longrunning.
1614
+ # Operations.response field if the operation was successful.
1615
+ class GoogleCloudRetailV2ExportAnalyticsMetricsResponse
1616
+ include Google::Apis::Core::Hashable
1617
+
1618
+ # A sample of errors encountered while processing the request.
1619
+ # Corresponds to the JSON property `errorSamples`
1620
+ # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
1621
+ attr_accessor :error_samples
1622
+
1623
+ # Configuration of destination for Export related errors.
1624
+ # Corresponds to the JSON property `errorsConfig`
1625
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2ExportErrorsConfig]
1626
+ attr_accessor :errors_config
1627
+
1628
+ # Output result that stores the information about where the exported data is
1629
+ # stored.
1630
+ # Corresponds to the JSON property `outputResult`
1631
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2OutputResult]
1632
+ attr_accessor :output_result
1633
+
1634
+ def initialize(**args)
1635
+ update!(**args)
1636
+ end
1637
+
1638
+ # Update properties of this object
1639
+ def update!(**args)
1640
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
1641
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
1642
+ @output_result = args[:output_result] if args.key?(:output_result)
1643
+ end
1644
+ end
1645
+
1646
+ # Configuration of destination for Export related errors.
1647
+ class GoogleCloudRetailV2ExportErrorsConfig
1648
+ include Google::Apis::Core::Hashable
1649
+
1650
+ # Google Cloud Storage path for import errors. This must be an empty, existing
1651
+ # Cloud Storage bucket. Export errors will be written to a file in this bucket,
1652
+ # one per line, as a JSON-encoded `google.rpc.Status` message.
1653
+ # Corresponds to the JSON property `gcsPrefix`
1654
+ # @return [String]
1655
+ attr_accessor :gcs_prefix
1656
+
1657
+ def initialize(**args)
1658
+ update!(**args)
1659
+ end
1660
+
1661
+ # Update properties of this object
1662
+ def update!(**args)
1663
+ @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
1664
+ end
1665
+ end
1666
+
1510
1667
  # Fulfillment information, such as the store IDs for in-store pickup or region
1511
1668
  # IDs for different shipping methods.
1512
1669
  class GoogleCloudRetailV2FulfillmentInfo
@@ -1543,6 +1700,25 @@ module Google
1543
1700
  end
1544
1701
  end
1545
1702
 
1703
+ # A Gcs output result.
1704
+ class GoogleCloudRetailV2GcsOutputResult
1705
+ include Google::Apis::Core::Hashable
1706
+
1707
+ # The uri of Gcs output
1708
+ # Corresponds to the JSON property `outputUri`
1709
+ # @return [String]
1710
+ attr_accessor :output_uri
1711
+
1712
+ def initialize(**args)
1713
+ update!(**args)
1714
+ end
1715
+
1716
+ # Update properties of this object
1717
+ def update!(**args)
1718
+ @output_uri = args[:output_uri] if args.key?(:output_uri)
1719
+ end
1720
+ end
1721
+
1546
1722
  # Google Cloud Storage location for input content.
1547
1723
  class GoogleCloudRetailV2GcsSource
1548
1724
  include Google::Apis::Core::Hashable
@@ -1818,7 +1994,8 @@ module Google
1818
1994
  attr_accessor :request_id
1819
1995
 
1820
1996
  # Indicates which fields in the provided imported `products` to update. If not
1821
- # set, all fields are updated.
1997
+ # set, all fields are updated. If provided, only the existing product fields are
1998
+ # updated. Missing products will not be created.
1822
1999
  # Corresponds to the JSON property `updateMask`
1823
2000
  # @return [String]
1824
2001
  attr_accessor :update_mask
@@ -2347,6 +2524,113 @@ module Google
2347
2524
  end
2348
2525
  end
2349
2526
 
2527
+ # The output configuration setting.
2528
+ class GoogleCloudRetailV2OutputConfig
2529
+ include Google::Apis::Core::Hashable
2530
+
2531
+ # The BigQuery output destination configuration.
2532
+ # Corresponds to the JSON property `bigqueryDestination`
2533
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigBigQueryDestination]
2534
+ attr_accessor :bigquery_destination
2535
+
2536
+ # The Google Cloud Storage output destination configuration.
2537
+ # Corresponds to the JSON property `gcsDestination`
2538
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigGcsDestination]
2539
+ attr_accessor :gcs_destination
2540
+
2541
+ def initialize(**args)
2542
+ update!(**args)
2543
+ end
2544
+
2545
+ # Update properties of this object
2546
+ def update!(**args)
2547
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
2548
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
2549
+ end
2550
+ end
2551
+
2552
+ # The BigQuery output destination configuration.
2553
+ class GoogleCloudRetailV2OutputConfigBigQueryDestination
2554
+ include Google::Apis::Core::Hashable
2555
+
2556
+ # Required. The ID of a BigQuery Dataset.
2557
+ # Corresponds to the JSON property `datasetId`
2558
+ # @return [String]
2559
+ attr_accessor :dataset_id
2560
+
2561
+ # Required. The prefix of exported BigQuery tables.
2562
+ # Corresponds to the JSON property `tableIdPrefix`
2563
+ # @return [String]
2564
+ attr_accessor :table_id_prefix
2565
+
2566
+ # Required. Describes the table type. The following values are supported: * `
2567
+ # table`: A BigQuery native table. * `view`: A virtual table defined by a SQL
2568
+ # query.
2569
+ # Corresponds to the JSON property `tableType`
2570
+ # @return [String]
2571
+ attr_accessor :table_type
2572
+
2573
+ def initialize(**args)
2574
+ update!(**args)
2575
+ end
2576
+
2577
+ # Update properties of this object
2578
+ def update!(**args)
2579
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
2580
+ @table_id_prefix = args[:table_id_prefix] if args.key?(:table_id_prefix)
2581
+ @table_type = args[:table_type] if args.key?(:table_type)
2582
+ end
2583
+ end
2584
+
2585
+ # The Google Cloud Storage output destination configuration.
2586
+ class GoogleCloudRetailV2OutputConfigGcsDestination
2587
+ include Google::Apis::Core::Hashable
2588
+
2589
+ # Required. The output uri prefix for saving output data to json files. Some
2590
+ # mapping examples are as follows: output_uri_prefix sample output(assuming the
2591
+ # object is foo.json) ======================== ==================================
2592
+ # =========== gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/
2593
+ # folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
2594
+ # Corresponds to the JSON property `outputUriPrefix`
2595
+ # @return [String]
2596
+ attr_accessor :output_uri_prefix
2597
+
2598
+ def initialize(**args)
2599
+ update!(**args)
2600
+ end
2601
+
2602
+ # Update properties of this object
2603
+ def update!(**args)
2604
+ @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
2605
+ end
2606
+ end
2607
+
2608
+ # Output result that stores the information about where the exported data is
2609
+ # stored.
2610
+ class GoogleCloudRetailV2OutputResult
2611
+ include Google::Apis::Core::Hashable
2612
+
2613
+ # The BigQuery location where the result is stored.
2614
+ # Corresponds to the JSON property `bigqueryResult`
2615
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2BigQueryOutputResult>]
2616
+ attr_accessor :bigquery_result
2617
+
2618
+ # The Google Cloud Storage location where the result is stored.
2619
+ # Corresponds to the JSON property `gcsResult`
2620
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GcsOutputResult>]
2621
+ attr_accessor :gcs_result
2622
+
2623
+ def initialize(**args)
2624
+ update!(**args)
2625
+ end
2626
+
2627
+ # Update properties of this object
2628
+ def update!(**args)
2629
+ @bigquery_result = args[:bigquery_result] if args.key?(:bigquery_result)
2630
+ @gcs_result = args[:gcs_result] if args.key?(:gcs_result)
2631
+ end
2632
+ end
2633
+
2350
2634
  # Request for pausing training of a model.
2351
2635
  class GoogleCloudRetailV2PauseModelRequest
2352
2636
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.87.0"
19
+ GEM_VERSION = "0.89.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240118"
25
+ REVISION = "20240205"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class GoogleCloudRetailV2BigQueryOutputResult
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class GoogleCloudRetailV2BigQuerySource
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -256,12 +268,36 @@ module Google
256
268
  include Google::Apis::Core::JsonObjectSupport
257
269
  end
258
270
 
271
+ class GoogleCloudRetailV2ExportAnalyticsMetricsRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class GoogleCloudRetailV2ExportAnalyticsMetricsResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class GoogleCloudRetailV2ExportErrorsConfig
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
259
289
  class GoogleCloudRetailV2FulfillmentInfo
260
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
291
 
262
292
  include Google::Apis::Core::JsonObjectSupport
263
293
  end
264
294
 
295
+ class GoogleCloudRetailV2GcsOutputResult
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
265
301
  class GoogleCloudRetailV2GcsSource
266
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
303
 
@@ -394,6 +430,30 @@ module Google
394
430
  include Google::Apis::Core::JsonObjectSupport
395
431
  end
396
432
 
433
+ class GoogleCloudRetailV2OutputConfig
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class GoogleCloudRetailV2OutputConfigBigQueryDestination
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class GoogleCloudRetailV2OutputConfigGcsDestination
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
451
+ class GoogleCloudRetailV2OutputResult
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
397
457
  class GoogleCloudRetailV2PauseModelRequest
398
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
459
 
@@ -1519,6 +1579,14 @@ module Google
1519
1579
  end
1520
1580
  end
1521
1581
 
1582
+ class GoogleCloudRetailV2BigQueryOutputResult
1583
+ # @private
1584
+ class Representation < Google::Apis::Core::JsonRepresentation
1585
+ property :dataset_id, as: 'datasetId'
1586
+ property :table_id, as: 'tableId'
1587
+ end
1588
+ end
1589
+
1522
1590
  class GoogleCloudRetailV2BigQuerySource
1523
1591
  # @private
1524
1592
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1565,6 +1633,8 @@ module Google
1565
1633
 
1566
1634
  collection :ignored_facet_values, as: 'ignoredFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues::Representation
1567
1635
 
1636
+ property :merged_facet, as: 'mergedFacet', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet::Representation
1637
+
1568
1638
  collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
1569
1639
 
1570
1640
  property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig::Representation
@@ -1581,6 +1651,15 @@ module Google
1581
1651
  end
1582
1652
  end
1583
1653
 
1654
+ class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
1655
+ # @private
1656
+ class Representation < Google::Apis::Core::JsonRepresentation
1657
+ property :merged_facet_key, as: 'mergedFacetKey'
1658
+ collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue::Representation
1659
+
1660
+ end
1661
+ end
1662
+
1584
1663
  class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
1585
1664
  # @private
1586
1665
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1743,6 +1822,34 @@ module Google
1743
1822
  end
1744
1823
  end
1745
1824
 
1825
+ class GoogleCloudRetailV2ExportAnalyticsMetricsRequest
1826
+ # @private
1827
+ class Representation < Google::Apis::Core::JsonRepresentation
1828
+ property :filter, as: 'filter'
1829
+ property :output_config, as: 'outputConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfig::Representation
1830
+
1831
+ end
1832
+ end
1833
+
1834
+ class GoogleCloudRetailV2ExportAnalyticsMetricsResponse
1835
+ # @private
1836
+ class Representation < Google::Apis::Core::JsonRepresentation
1837
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
1838
+
1839
+ property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2ExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ExportErrorsConfig::Representation
1840
+
1841
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2OutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2OutputResult::Representation
1842
+
1843
+ end
1844
+ end
1845
+
1846
+ class GoogleCloudRetailV2ExportErrorsConfig
1847
+ # @private
1848
+ class Representation < Google::Apis::Core::JsonRepresentation
1849
+ property :gcs_prefix, as: 'gcsPrefix'
1850
+ end
1851
+ end
1852
+
1746
1853
  class GoogleCloudRetailV2FulfillmentInfo
1747
1854
  # @private
1748
1855
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1751,6 +1858,13 @@ module Google
1751
1858
  end
1752
1859
  end
1753
1860
 
1861
+ class GoogleCloudRetailV2GcsOutputResult
1862
+ # @private
1863
+ class Representation < Google::Apis::Core::JsonRepresentation
1864
+ property :output_uri, as: 'outputUri'
1865
+ end
1866
+ end
1867
+
1754
1868
  class GoogleCloudRetailV2GcsSource
1755
1869
  # @private
1756
1870
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1971,6 +2085,42 @@ module Google
1971
2085
  end
1972
2086
  end
1973
2087
 
2088
+ class GoogleCloudRetailV2OutputConfig
2089
+ # @private
2090
+ class Representation < Google::Apis::Core::JsonRepresentation
2091
+ property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigBigQueryDestination, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigBigQueryDestination::Representation
2092
+
2093
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigGcsDestination, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2OutputConfigGcsDestination::Representation
2094
+
2095
+ end
2096
+ end
2097
+
2098
+ class GoogleCloudRetailV2OutputConfigBigQueryDestination
2099
+ # @private
2100
+ class Representation < Google::Apis::Core::JsonRepresentation
2101
+ property :dataset_id, as: 'datasetId'
2102
+ property :table_id_prefix, as: 'tableIdPrefix'
2103
+ property :table_type, as: 'tableType'
2104
+ end
2105
+ end
2106
+
2107
+ class GoogleCloudRetailV2OutputConfigGcsDestination
2108
+ # @private
2109
+ class Representation < Google::Apis::Core::JsonRepresentation
2110
+ property :output_uri_prefix, as: 'outputUriPrefix'
2111
+ end
2112
+ end
2113
+
2114
+ class GoogleCloudRetailV2OutputResult
2115
+ # @private
2116
+ class Representation < Google::Apis::Core::JsonRepresentation
2117
+ collection :bigquery_result, as: 'bigqueryResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2BigQueryOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2BigQueryOutputResult::Representation
2118
+
2119
+ collection :gcs_result, as: 'gcsResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2GcsOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2GcsOutputResult::Representation
2120
+
2121
+ end
2122
+ end
2123
+
1974
2124
  class GoogleCloudRetailV2PauseModelRequest
1975
2125
  # @private
1976
2126
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -134,6 +134,42 @@ module Google
134
134
  execute_or_queue_command(command, &block)
135
135
  end
136
136
 
137
+ # Exports analytics metrics. `Operation.response` is of type `
138
+ # ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `
139
+ # ExportMetadata`.
140
+ # @param [String] catalog
141
+ # Required. Full resource name of the parent catalog. Expected format: `projects/
142
+ # */locations/*/catalogs/*`
143
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2ExportAnalyticsMetricsRequest] google_cloud_retail_v2_export_analytics_metrics_request_object
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
146
+ # @param [String] quota_user
147
+ # Available to use for quota purposes for server-side applications. Can be any
148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
149
+ # @param [Google::Apis::RequestOptions] options
150
+ # Request-specific options
151
+ #
152
+ # @yield [result, err] Result & error if block supplied
153
+ # @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
157
+ #
158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
161
+ def export_project_location_catalog_analytics_metrics(catalog, google_cloud_retail_v2_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:post, 'v2/{+catalog}:exportAnalyticsMetrics', options)
163
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ExportAnalyticsMetricsRequest::Representation
164
+ command.request_object = google_cloud_retail_v2_export_analytics_metrics_request_object
165
+ command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
166
+ command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
167
+ command.params['catalog'] = catalog unless catalog.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ execute_or_queue_command(command, &block)
171
+ end
172
+
137
173
  # Gets an AttributesConfig.
138
174
  # @param [String] name
139
175
  # Required. Full AttributesConfig resource name. Format: `projects/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.87.0
4
+ version: 0.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-23 00:00:00.000000000 Z
11
+ date: 2024-02-11 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-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.87.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.89.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []