google-apis-retail_v2beta 0.88.0 → 0.90.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: e374b89042fce1fbccde2391a4863872c8cecebd45f58f550bc11e4ea1e964b0
4
- data.tar.gz: 14ddbd48e98aeae1f5d89a89da5b6127e7640f8ac667346f8666901848fafd54
3
+ metadata.gz: 4727b4e317bee8270f99d6328a70540bba14e1a52ecfb91bc5c0abe878af3fa6
4
+ data.tar.gz: 8f1e76be367781c595c9a81fc85e4e958d48ccf0a8858f0b8bd663464c310953
5
5
  SHA512:
6
- metadata.gz: 19088697531d1ef966139b251bc261891129e131da89354242404010435d39787ccab095cfc68c1c681731373660fcfeead1bbc4ac96a5af678a98a1cb777071
7
- data.tar.gz: 9d3c20288cdd815bdbf6c6734f81add847984214e3c8f1e9f9f33e54b4372b77ea46d82c199e611e17039f64bb3f635bb35bec699ba33323d370060d297dd8fb
6
+ metadata.gz: 35c0bf672a44a6ffb23a3d912152e7f7cc2a31f88d879316fbdfd3dba00bc988f71008a31147a32f8b2db2263d31b45bcd52ffa27c7ca606244e22ed1ca6af1e
7
+ data.tar.gz: 01bf16ff49f36a81dccc8c18708e5b19b6a2168ec64164d66359f3d6887a102a1c9fd58fc2fd56165aa95f87d2f6c27e3675e2f72b8133420368ac3c36b7d1e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.90.0 (2024-02-04)
4
+
5
+ * Regenerated from discovery document revision 20240129
6
+ * Regenerated using generator version 0.13.1
7
+
8
+ ### v0.89.0 (2024-01-23)
9
+
10
+ * Regenerated from discovery document revision 20240118
11
+ * Regenerated using generator version 0.13.0
12
+
3
13
  ### v0.88.0 (2023-12-10)
4
14
 
5
15
  * Regenerated from discovery document revision 20231130
@@ -2881,6 +2881,14 @@ module Google
2881
2881
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigIgnoredFacetValues>]
2882
2882
  attr_accessor :ignored_facet_values
2883
2883
 
2884
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
2885
+ # A facet key can have at most one child. The current facet key and the merged
2886
+ # facet key need both to be textual custom attributes or both numerical custom
2887
+ # attributes (same type).
2888
+ # Corresponds to the JSON property `mergedFacet`
2889
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet]
2890
+ attr_accessor :merged_facet
2891
+
2884
2892
  # Each instance replaces a list of facet values by a merged facet value. If a
2885
2893
  # facet value is not in any list, then it will stay the same. To avoid conflicts,
2886
2894
  # only paths of length 1 are accepted. In other words, if "dark_blue" merged
@@ -2892,6 +2900,18 @@ module Google
2892
2900
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue>]
2893
2901
  attr_accessor :merged_facet_values
2894
2902
 
2903
+ # Options to rerank based on facet values engaged by the user for the current
2904
+ # key. That key needs to be a custom textual key and facetable. To use this
2905
+ # control, you also need to pass all the facet keys engaged by the user in the
2906
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
2907
+ # pass the facet keys engaged that you want to rerank on, this control won't be
2908
+ # effective. Moreover, to obtain better results, the facet values that you want
2909
+ # to rerank on should be close to English (ideally made of words, underscores,
2910
+ # and spaces).
2911
+ # Corresponds to the JSON property `rerankConfig`
2912
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig]
2913
+ attr_accessor :rerank_config
2914
+
2895
2915
  def initialize(**args)
2896
2916
  update!(**args)
2897
2917
  end
@@ -2900,7 +2920,9 @@ module Google
2900
2920
  def update!(**args)
2901
2921
  @facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals)
2902
2922
  @ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values)
2923
+ @merged_facet = args[:merged_facet] if args.key?(:merged_facet)
2903
2924
  @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
2925
+ @rerank_config = args[:rerank_config] if args.key?(:rerank_config)
2904
2926
  end
2905
2927
  end
2906
2928
 
@@ -2943,6 +2965,41 @@ module Google
2943
2965
  end
2944
2966
  end
2945
2967
 
2968
+ # The current facet key (i.e. attribute config) maps into the merged_facet_key.
2969
+ # A facet key can have at most one child. The current facet key and the merged
2970
+ # facet key need both to be textual custom attributes or both numerical custom
2971
+ # attributes (same type).
2972
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet
2973
+ include Google::Apis::Core::Hashable
2974
+
2975
+ # The merged facet key should be a valid facet key that is different than the
2976
+ # facet key of the current catalog attribute. We refer this is merged facet key
2977
+ # as the child of the current catalog attribute. This merged facet key can't be
2978
+ # a parent of another facet key (i.e. no directed path of length 2). This merged
2979
+ # facet key needs to be either a textual custom attribute or a numerical custom
2980
+ # attribute.
2981
+ # Corresponds to the JSON property `mergedFacetKey`
2982
+ # @return [String]
2983
+ attr_accessor :merged_facet_key
2984
+
2985
+ # Each instance is a list of facet values that map into the same (possibly
2986
+ # different) merged facet value. For the current attribute config, each facet
2987
+ # value should map to at most one merged facet value.
2988
+ # Corresponds to the JSON property `mergedFacetValues`
2989
+ # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue>]
2990
+ attr_accessor :merged_facet_values
2991
+
2992
+ def initialize(**args)
2993
+ update!(**args)
2994
+ end
2995
+
2996
+ # Update properties of this object
2997
+ def update!(**args)
2998
+ @merged_facet_key = args[:merged_facet_key] if args.key?(:merged_facet_key)
2999
+ @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values)
3000
+ end
3001
+ end
3002
+
2946
3003
  # Replaces a set of textual facet values by the same (possibly different) merged
2947
3004
  # facet value. Each facet value should appear at most once as a value per
2948
3005
  # CatalogAttribute. This feature is available only for textual custom attributes.
@@ -2973,6 +3030,41 @@ module Google
2973
3030
  end
2974
3031
  end
2975
3032
 
3033
+ # Options to rerank based on facet values engaged by the user for the current
3034
+ # key. That key needs to be a custom textual key and facetable. To use this
3035
+ # control, you also need to pass all the facet keys engaged by the user in the
3036
+ # request using the field [SearchRequest.FacetSpec]. In particular, if you don't
3037
+ # pass the facet keys engaged that you want to rerank on, this control won't be
3038
+ # effective. Moreover, to obtain better results, the facet values that you want
3039
+ # to rerank on should be close to English (ideally made of words, underscores,
3040
+ # and spaces).
3041
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig
3042
+ include Google::Apis::Core::Hashable
3043
+
3044
+ # If empty, rerank on all facet values for the current key. Otherwise, will
3045
+ # rerank on the facet values from this list only.
3046
+ # Corresponds to the JSON property `facetValues`
3047
+ # @return [Array<String>]
3048
+ attr_accessor :facet_values
3049
+
3050
+ # If set to true, then we also rerank the dynamic facets based on the facet
3051
+ # values engaged by the user for the current attribute key during serving.
3052
+ # Corresponds to the JSON property `rerankFacet`
3053
+ # @return [Boolean]
3054
+ attr_accessor :rerank_facet
3055
+ alias_method :rerank_facet?, :rerank_facet
3056
+
3057
+ def initialize(**args)
3058
+ update!(**args)
3059
+ end
3060
+
3061
+ # Update properties of this object
3062
+ def update!(**args)
3063
+ @facet_values = args[:facet_values] if args.key?(:facet_values)
3064
+ @rerank_facet = args[:rerank_facet] if args.key?(:rerank_facet)
3065
+ end
3066
+ end
3067
+
2976
3068
  # The color information of a Product.
2977
3069
  class GoogleCloudRetailV2betaColorInfo
2978
3070
  include Google::Apis::Core::Hashable
@@ -3577,6 +3669,73 @@ module Google
3577
3669
  end
3578
3670
  end
3579
3671
 
3672
+ # Request message for the `ExportAnalyticsMetrics` method.
3673
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsRequest
3674
+ include Google::Apis::Core::Hashable
3675
+
3676
+ # A filtering expression to specify restrictions on returned metrics. The
3677
+ # expression is a sequence of terms. Each term applies a restriction to the
3678
+ # returned metrics. Use this expression to restrict results to a specific time
3679
+ # range. Currently we expect only one types of fields: * `timestamp`: This can
3680
+ # be specified twice, once with a less than operator and once with a greater
3681
+ # than operator. The `timestamp` restriction should result in one, contiguous,
3682
+ # valid, `timestamp` range. Some examples of valid filters expressions: *
3683
+ # Example 1: `timestamp > "2012-04-23T18:25:43.511Z" timestamp < "2012-04-23T18:
3684
+ # 30:43.511Z"` * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
3685
+ # Corresponds to the JSON property `filter`
3686
+ # @return [String]
3687
+ attr_accessor :filter
3688
+
3689
+ # The output configuration setting.
3690
+ # Corresponds to the JSON property `outputConfig`
3691
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfig]
3692
+ attr_accessor :output_config
3693
+
3694
+ def initialize(**args)
3695
+ update!(**args)
3696
+ end
3697
+
3698
+ # Update properties of this object
3699
+ def update!(**args)
3700
+ @filter = args[:filter] if args.key?(:filter)
3701
+ @output_config = args[:output_config] if args.key?(:output_config)
3702
+ end
3703
+ end
3704
+
3705
+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
3706
+ # was successful, then this message is returned by the google.longrunning.
3707
+ # Operations.response field if the operation was successful.
3708
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
3709
+ include Google::Apis::Core::Hashable
3710
+
3711
+ # A sample of errors encountered while processing the request.
3712
+ # Corresponds to the JSON property `errorSamples`
3713
+ # @return [Array<Google::Apis::RetailV2beta::GoogleRpcStatus>]
3714
+ attr_accessor :error_samples
3715
+
3716
+ # Configuration of destination for Export related errors.
3717
+ # Corresponds to the JSON property `errorsConfig`
3718
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportErrorsConfig]
3719
+ attr_accessor :errors_config
3720
+
3721
+ # Output result that stores the information about where the exported data is
3722
+ # stored.
3723
+ # Corresponds to the JSON property `outputResult`
3724
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputResult]
3725
+ attr_accessor :output_result
3726
+
3727
+ def initialize(**args)
3728
+ update!(**args)
3729
+ end
3730
+
3731
+ # Update properties of this object
3732
+ def update!(**args)
3733
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
3734
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
3735
+ @output_result = args[:output_result] if args.key?(:output_result)
3736
+ end
3737
+ end
3738
+
3580
3739
  # Configuration of destination for Export related errors.
3581
3740
  class GoogleCloudRetailV2betaExportErrorsConfig
3582
3741
  include Google::Apis::Core::Hashable
@@ -4023,7 +4182,8 @@ module Google
4023
4182
  attr_accessor :request_id
4024
4183
 
4025
4184
  # Indicates which fields in the provided imported `products` to update. If not
4026
- # set, all fields are updated.
4185
+ # set, all fields are updated. If provided, only the existing product fields are
4186
+ # updated. Missing products will not be created.
4027
4187
  # Corresponds to the JSON property `updateMask`
4028
4188
  # @return [String]
4029
4189
  attr_accessor :update_mask
@@ -4789,6 +4949,87 @@ module Google
4789
4949
  end
4790
4950
  end
4791
4951
 
4952
+ # The output configuration setting.
4953
+ class GoogleCloudRetailV2betaOutputConfig
4954
+ include Google::Apis::Core::Hashable
4955
+
4956
+ # The BigQuery output destination configuration.
4957
+ # Corresponds to the JSON property `bigqueryDestination`
4958
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigBigQueryDestination]
4959
+ attr_accessor :bigquery_destination
4960
+
4961
+ # The Google Cloud Storage output destination configuration.
4962
+ # Corresponds to the JSON property `gcsDestination`
4963
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigGcsDestination]
4964
+ attr_accessor :gcs_destination
4965
+
4966
+ def initialize(**args)
4967
+ update!(**args)
4968
+ end
4969
+
4970
+ # Update properties of this object
4971
+ def update!(**args)
4972
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
4973
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
4974
+ end
4975
+ end
4976
+
4977
+ # The BigQuery output destination configuration.
4978
+ class GoogleCloudRetailV2betaOutputConfigBigQueryDestination
4979
+ include Google::Apis::Core::Hashable
4980
+
4981
+ # Required. The ID of a BigQuery Dataset.
4982
+ # Corresponds to the JSON property `datasetId`
4983
+ # @return [String]
4984
+ attr_accessor :dataset_id
4985
+
4986
+ # Required. The prefix of exported BigQuery tables.
4987
+ # Corresponds to the JSON property `tableIdPrefix`
4988
+ # @return [String]
4989
+ attr_accessor :table_id_prefix
4990
+
4991
+ # Required. Describes the table type. The following values are supported: * `
4992
+ # table`: A BigQuery native table. * `view`: A virtual table defined by a SQL
4993
+ # query.
4994
+ # Corresponds to the JSON property `tableType`
4995
+ # @return [String]
4996
+ attr_accessor :table_type
4997
+
4998
+ def initialize(**args)
4999
+ update!(**args)
5000
+ end
5001
+
5002
+ # Update properties of this object
5003
+ def update!(**args)
5004
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
5005
+ @table_id_prefix = args[:table_id_prefix] if args.key?(:table_id_prefix)
5006
+ @table_type = args[:table_type] if args.key?(:table_type)
5007
+ end
5008
+ end
5009
+
5010
+ # The Google Cloud Storage output destination configuration.
5011
+ class GoogleCloudRetailV2betaOutputConfigGcsDestination
5012
+ include Google::Apis::Core::Hashable
5013
+
5014
+ # Required. The output uri prefix for saving output data to json files. Some
5015
+ # mapping examples are as follows: output_uri_prefix sample output(assuming the
5016
+ # object is foo.json) ======================== ==================================
5017
+ # =========== gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/
5018
+ # folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
5019
+ # Corresponds to the JSON property `outputUriPrefix`
5020
+ # @return [String]
5021
+ attr_accessor :output_uri_prefix
5022
+
5023
+ def initialize(**args)
5024
+ update!(**args)
5025
+ end
5026
+
5027
+ # Update properties of this object
5028
+ def update!(**args)
5029
+ @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
5030
+ end
5031
+ end
5032
+
4792
5033
  # Output result that stores the information about where the exported data is
4793
5034
  # stored.
4794
5035
  class GoogleCloudRetailV2betaOutputResult
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.88.0"
19
+ GEM_VERSION = "0.90.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231130"
25
+ REVISION = "20240129"
26
26
  end
27
27
  end
28
28
  end
@@ -622,12 +622,24 @@ module Google
622
622
  include Google::Apis::Core::JsonObjectSupport
623
623
  end
624
624
 
625
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
625
631
  class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue
626
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
627
633
 
628
634
  include Google::Apis::Core::JsonObjectSupport
629
635
  end
630
636
 
637
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
631
643
  class GoogleCloudRetailV2betaColorInfo
632
644
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
645
 
@@ -724,6 +736,18 @@ module Google
724
736
  include Google::Apis::Core::JsonObjectSupport
725
737
  end
726
738
 
739
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsRequest
740
+ class Representation < Google::Apis::Core::JsonRepresentation; end
741
+
742
+ include Google::Apis::Core::JsonObjectSupport
743
+ end
744
+
745
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
727
751
  class GoogleCloudRetailV2betaExportErrorsConfig
728
752
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
753
 
@@ -922,6 +946,24 @@ module Google
922
946
  include Google::Apis::Core::JsonObjectSupport
923
947
  end
924
948
 
949
+ class GoogleCloudRetailV2betaOutputConfig
950
+ class Representation < Google::Apis::Core::JsonRepresentation; end
951
+
952
+ include Google::Apis::Core::JsonObjectSupport
953
+ end
954
+
955
+ class GoogleCloudRetailV2betaOutputConfigBigQueryDestination
956
+ class Representation < Google::Apis::Core::JsonRepresentation; end
957
+
958
+ include Google::Apis::Core::JsonObjectSupport
959
+ end
960
+
961
+ class GoogleCloudRetailV2betaOutputConfigGcsDestination
962
+ class Representation < Google::Apis::Core::JsonRepresentation; end
963
+
964
+ include Google::Apis::Core::JsonObjectSupport
965
+ end
966
+
925
967
  class GoogleCloudRetailV2betaOutputResult
926
968
  class Representation < Google::Apis::Core::JsonRepresentation; end
927
969
 
@@ -2223,8 +2265,12 @@ module Google
2223
2265
 
2224
2266
  collection :ignored_facet_values, as: 'ignoredFacetValues', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigIgnoredFacetValues, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigIgnoredFacetValues::Representation
2225
2267
 
2268
+ property :merged_facet, as: 'mergedFacet', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet::Representation
2269
+
2226
2270
  collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue::Representation
2227
2271
 
2272
+ property :rerank_config, as: 'rerankConfig', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig::Representation
2273
+
2228
2274
  end
2229
2275
  end
2230
2276
 
@@ -2237,6 +2283,15 @@ module Google
2237
2283
  end
2238
2284
  end
2239
2285
 
2286
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet
2287
+ # @private
2288
+ class Representation < Google::Apis::Core::JsonRepresentation
2289
+ property :merged_facet_key, as: 'mergedFacetKey'
2290
+ collection :merged_facet_values, as: 'mergedFacetValues', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue::Representation
2291
+
2292
+ end
2293
+ end
2294
+
2240
2295
  class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue
2241
2296
  # @private
2242
2297
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2245,6 +2300,14 @@ module Google
2245
2300
  end
2246
2301
  end
2247
2302
 
2303
+ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig
2304
+ # @private
2305
+ class Representation < Google::Apis::Core::JsonRepresentation
2306
+ collection :facet_values, as: 'facetValues'
2307
+ property :rerank_facet, as: 'rerankFacet'
2308
+ end
2309
+ end
2310
+
2248
2311
  class GoogleCloudRetailV2betaColorInfo
2249
2312
  # @private
2250
2313
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2401,6 +2464,27 @@ module Google
2401
2464
  end
2402
2465
  end
2403
2466
 
2467
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsRequest
2468
+ # @private
2469
+ class Representation < Google::Apis::Core::JsonRepresentation
2470
+ property :filter, as: 'filter'
2471
+ property :output_config, as: 'outputConfig', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfig, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfig::Representation
2472
+
2473
+ end
2474
+ end
2475
+
2476
+ class GoogleCloudRetailV2betaExportAnalyticsMetricsResponse
2477
+ # @private
2478
+ class Representation < Google::Apis::Core::JsonRepresentation
2479
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2beta::GoogleRpcStatus, decorator: Google::Apis::RetailV2beta::GoogleRpcStatus::Representation
2480
+
2481
+ property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportErrorsConfig::Representation
2482
+
2483
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputResult::Representation
2484
+
2485
+ end
2486
+ end
2487
+
2404
2488
  class GoogleCloudRetailV2betaExportErrorsConfig
2405
2489
  # @private
2406
2490
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2729,6 +2813,32 @@ module Google
2729
2813
  end
2730
2814
  end
2731
2815
 
2816
+ class GoogleCloudRetailV2betaOutputConfig
2817
+ # @private
2818
+ class Representation < Google::Apis::Core::JsonRepresentation
2819
+ property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigBigQueryDestination, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigBigQueryDestination::Representation
2820
+
2821
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigGcsDestination, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaOutputConfigGcsDestination::Representation
2822
+
2823
+ end
2824
+ end
2825
+
2826
+ class GoogleCloudRetailV2betaOutputConfigBigQueryDestination
2827
+ # @private
2828
+ class Representation < Google::Apis::Core::JsonRepresentation
2829
+ property :dataset_id, as: 'datasetId'
2830
+ property :table_id_prefix, as: 'tableIdPrefix'
2831
+ property :table_type, as: 'tableType'
2832
+ end
2833
+ end
2834
+
2835
+ class GoogleCloudRetailV2betaOutputConfigGcsDestination
2836
+ # @private
2837
+ class Representation < Google::Apis::Core::JsonRepresentation
2838
+ property :output_uri_prefix, as: 'outputUriPrefix'
2839
+ end
2840
+ end
2841
+
2732
2842
  class GoogleCloudRetailV2betaOutputResult
2733
2843
  # @private
2734
2844
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -34,6 +34,8 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/recommendations
36
36
  class CloudRetailService < Google::Apis::Core::BaseService
37
+ DEFAULT_ENDPOINT_TEMPLATE = "https://retail.$UNIVERSE_DOMAIN$/"
38
+
37
39
  # @return [String]
38
40
  # API key. Your API key identifies your project and provides you with API access,
39
41
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -45,7 +47,7 @@ module Google
45
47
  attr_accessor :quota_user
46
48
 
47
49
  def initialize
48
- super('https://retail.googleapis.com/', '',
50
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
49
51
  client_name: 'google-apis-retail_v2beta',
50
52
  client_version: Google::Apis::RetailV2beta::GEM_VERSION)
51
53
  @batch_path = 'batch'
@@ -132,6 +134,42 @@ module Google
132
134
  execute_or_queue_command(command, &block)
133
135
  end
134
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::RetailV2beta::GoogleCloudRetailV2betaExportAnalyticsMetricsRequest] google_cloud_retail_v2beta_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::RetailV2beta::GoogleLongrunningOperation] parsed result object
154
+ # @yieldparam err [StandardError] error object if request failed
155
+ #
156
+ # @return [Google::Apis::RetailV2beta::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_v2beta_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:post, 'v2beta/{+catalog}:exportAnalyticsMetrics', options)
163
+ command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportAnalyticsMetricsRequest::Representation
164
+ command.request_object = google_cloud_retail_v2beta_export_analytics_metrics_request_object
165
+ command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
166
+ command.response_class = Google::Apis::RetailV2beta::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
+
135
173
  # Gets an AttributesConfig.
136
174
  # @param [String] name
137
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_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.88.0
4
+ version: 0.90.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-12-10 00:00:00.000000000 Z
11
+ date: 2024-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.88.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.90.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2beta