google-apis-retail_v2alpha 0.70.0 → 0.72.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: bd21aacca9c9aa41ff44f2e729d6ed4a6e3fe4cc6e1e4221b628404ad33ce76c
4
- data.tar.gz: 3b4ed48a1d12e88d7977fbd9c97b03960a128465892c8e0e7edbdb3ae1abd099
3
+ metadata.gz: '0826c11d9c669ef022a9f609f4721474fc17e61b935b3759a5fe790aaee9cc3b'
4
+ data.tar.gz: 94aba8656a48ec89ad0fe24e029eb5a99c9f8eadf4adf7c9d8f062c79304a4ec
5
5
  SHA512:
6
- metadata.gz: a69cf81a604e9dff9657e27063134a6a04ae3232ba811cf2fc167db86379b9a76c0182681f8e4f24dbd2907e5b959f7dc477803472416c66fb852776903b0b44
7
- data.tar.gz: 5999a9d9a26581fdac638d8f6f830fedb32c30e0abd486d1b747cf7766a4c2abbfdd771afadaf0104040dbc1d7c5783011f0cdee5d5dcdfd887bfa3ed64a394b
6
+ metadata.gz: b7ff53530df13273a950e8b576b0b70aecde4fc0e74c1cd5523773d9753c3063ee29ebfbefcbebd2abaae54474838eab76a97c09e3a9422943d59501486e6732
7
+ data.tar.gz: 2f9fea79c9a717b8897c0bd5a4b321c5c581ed66c8eeb95ec477925782adef3979cdb31f9be6930479f9c1ae36abb1d650d5c8b07d01a8b9b86c975b15be8e46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.72.0 (2023-03-26)
4
+
5
+ * Regenerated from discovery document revision 20230321
6
+
7
+ ### v0.71.0 (2023-03-12)
8
+
9
+ * Regenerated from discovery document revision 20230306
10
+
3
11
  ### v0.70.0 (2023-03-05)
4
12
 
5
13
  * Regenerated from discovery document revision 20230223
@@ -1929,6 +1929,32 @@ module Google
1929
1929
  end
1930
1930
  end
1931
1931
 
1932
+ # Common metadata related to the progress of the operations.
1933
+ class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
1934
+ include Google::Apis::Core::Hashable
1935
+
1936
+ # Operation create time.
1937
+ # Corresponds to the JSON property `createTime`
1938
+ # @return [String]
1939
+ attr_accessor :create_time
1940
+
1941
+ # Operation last update time. If the operation is done, this is also the finish
1942
+ # time.
1943
+ # Corresponds to the JSON property `updateTime`
1944
+ # @return [String]
1945
+ attr_accessor :update_time
1946
+
1947
+ def initialize(**args)
1948
+ update!(**args)
1949
+ end
1950
+
1951
+ # Update properties of this object
1952
+ def update!(**args)
1953
+ @create_time = args[:create_time] if args.key?(:create_time)
1954
+ @update_time = args[:update_time] if args.key?(:update_time)
1955
+ end
1956
+ end
1957
+
1932
1958
  # Metadata associated with a create operation.
1933
1959
  class GoogleCloudRetailV2alphaCreateModelMetadata
1934
1960
  include Google::Apis::Core::Hashable
@@ -2717,6 +2743,26 @@ module Google
2717
2743
  end
2718
2744
  end
2719
2745
 
2746
+ # Response for MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks
2747
+ # method.
2748
+ class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
2749
+ include Google::Apis::Core::Hashable
2750
+
2751
+ # The links.
2752
+ # Corresponds to the JSON property `merchantCenterAccountLinks`
2753
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLink>]
2754
+ attr_accessor :merchant_center_account_links
2755
+
2756
+ def initialize(**args)
2757
+ update!(**args)
2758
+ end
2759
+
2760
+ # Update properties of this object
2761
+ def update!(**args)
2762
+ @merchant_center_account_links = args[:merchant_center_account_links] if args.key?(:merchant_center_account_links)
2763
+ end
2764
+ end
2765
+
2720
2766
  # Response to a ListModelRequest.
2721
2767
  class GoogleCloudRetailV2alphaListModelsResponse
2722
2768
  include Google::Apis::Core::Hashable
@@ -2855,6 +2901,120 @@ module Google
2855
2901
  end
2856
2902
  end
2857
2903
 
2904
+ # Represents a link between a Merchant Center account and a branch. Once a link
2905
+ # is established, products from the linked merchant center account will be
2906
+ # streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
2907
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLink
2908
+ include Google::Apis::Core::Hashable
2909
+
2910
+ # Required. The branch id (e.g. 0/1/2) within the catalog that products from
2911
+ # merchant_center_account_id are streamed to. When updating this field, an empty
2912
+ # value will use the currently configured default branch. However, changing the
2913
+ # default branch later on won't change the linked branch here. A single branch
2914
+ # id can only have one linked merchant center account id.
2915
+ # Corresponds to the JSON property `branchId`
2916
+ # @return [String]
2917
+ attr_accessor :branch_id
2918
+
2919
+ # Criteria for the Merchant Center feeds to be ingested via the link. All offers
2920
+ # will be ingested if the list is empty. Otherwise the offers will be ingested
2921
+ # from selected feeds.
2922
+ # Corresponds to the JSON property `feedFilters`
2923
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter>]
2924
+ attr_accessor :feed_filters
2925
+
2926
+ # The FeedLabel used to perform filtering. Note: this replaces [region_id](https:
2927
+ # //developers.google.com/shopping-content/reference/rest/v2.1/products#Product.
2928
+ # FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.
2929
+ # Corresponds to the JSON property `feedLabel`
2930
+ # @return [String]
2931
+ attr_accessor :feed_label
2932
+
2933
+ # Output only. Immutable. MerchantCenterAccountLink identifier, which is the
2934
+ # final component of name. This field is auto generated and follows the
2935
+ # convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/
2936
+ # catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
2937
+ # Corresponds to the JSON property `id`
2938
+ # @return [String]
2939
+ attr_accessor :id
2940
+
2941
+ # Language of the title/description and other string attributes. Use language
2942
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
2943
+ # 639-1. This specifies the language of offers in Merchant Center that will be
2944
+ # accepted. If empty, no language filtering will be performed. Example value: `
2945
+ # en`.
2946
+ # Corresponds to the JSON property `languageCode`
2947
+ # @return [String]
2948
+ attr_accessor :language_code
2949
+
2950
+ # Required. The linked [Merchant center account id](https://developers.google.
2951
+ # com/shopping-content/guides/accountstatuses). The account must be a standalone
2952
+ # account or a sub-account of a MCA.
2953
+ # Corresponds to the JSON property `merchantCenterAccountId`
2954
+ # @return [Fixnum]
2955
+ attr_accessor :merchant_center_account_id
2956
+
2957
+ # Output only. Immutable. Full resource name of the Merchant Center Account Link,
2958
+ # such as `projects/*/locations/global/catalogs/default_catalog/
2959
+ # merchantCenterAccountLinks/merchant_center_account_link`.
2960
+ # Corresponds to the JSON property `name`
2961
+ # @return [String]
2962
+ attr_accessor :name
2963
+
2964
+ # Output only. GCP project ID.
2965
+ # Corresponds to the JSON property `projectId`
2966
+ # @return [String]
2967
+ attr_accessor :project_id
2968
+
2969
+ # Output only. Represents the state of the link.
2970
+ # Corresponds to the JSON property `state`
2971
+ # @return [String]
2972
+ attr_accessor :state
2973
+
2974
+ def initialize(**args)
2975
+ update!(**args)
2976
+ end
2977
+
2978
+ # Update properties of this object
2979
+ def update!(**args)
2980
+ @branch_id = args[:branch_id] if args.key?(:branch_id)
2981
+ @feed_filters = args[:feed_filters] if args.key?(:feed_filters)
2982
+ @feed_label = args[:feed_label] if args.key?(:feed_label)
2983
+ @id = args[:id] if args.key?(:id)
2984
+ @language_code = args[:language_code] if args.key?(:language_code)
2985
+ @merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
2986
+ @name = args[:name] if args.key?(:name)
2987
+ @project_id = args[:project_id] if args.key?(:project_id)
2988
+ @state = args[:state] if args.key?(:state)
2989
+ end
2990
+ end
2991
+
2992
+ # Merchant Center Feed filter criterion.
2993
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
2994
+ include Google::Apis::Core::Hashable
2995
+
2996
+ # Merchant Center primary feed ID.
2997
+ # Corresponds to the JSON property `primaryFeedId`
2998
+ # @return [Fixnum]
2999
+ attr_accessor :primary_feed_id
3000
+
3001
+ # Merchant Center primary feed name. The name is used for the display purposes
3002
+ # only.
3003
+ # Corresponds to the JSON property `primaryFeedName`
3004
+ # @return [String]
3005
+ attr_accessor :primary_feed_name
3006
+
3007
+ def initialize(**args)
3008
+ update!(**args)
3009
+ end
3010
+
3011
+ # Update properties of this object
3012
+ def update!(**args)
3013
+ @primary_feed_id = args[:primary_feed_id] if args.key?(:primary_feed_id)
3014
+ @primary_feed_name = args[:primary_feed_name] if args.key?(:primary_feed_name)
3015
+ end
3016
+ end
3017
+
2858
3018
  # Merchant Center Feed filter criterion.
2859
3019
  class GoogleCloudRetailV2alphaMerchantCenterFeedFilter
2860
3020
  include Google::Apis::Core::Hashable
@@ -3300,9 +3460,9 @@ module Google
3300
3460
  # filterSyntaxV2` is set to true under the `params` field, then attribute-based
3301
3461
  # expressions are expected instead of the above described tag-based syntax.
3302
3462
  # Examples: * (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) *
3303
- # (brands: ANY("Pixel")) AND (colors: ANY("Red") OR categories: ANY("Phones"))
3304
- # For more information, see [Filter recommendations](https://cloud.google.com/
3305
- # retail/docs/filter-recs).
3463
+ # (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR categories: ANY("
3464
+ # Phones")) For more information, see [Filter recommendations](https://cloud.
3465
+ # google.com/retail/docs/filter-recs).
3306
3466
  # Corresponds to the JSON property `filter`
3307
3467
  # @return [String]
3308
3468
  attr_accessor :filter
@@ -4978,6 +5138,13 @@ module Google
4978
5138
  class GoogleCloudRetailV2alphaSearchRequest
4979
5139
  include Google::Apis::Core::Hashable
4980
5140
 
5141
+ # Represents the banner in request, for projects that combine banners. For
5142
+ # example: a retailer can sell products under different banners like retailer-
5143
+ # main, retailer-baby, retailer-meds, etc. under one project.
5144
+ # Corresponds to the JSON property `banner`
5145
+ # @return [String]
5146
+ attr_accessor :banner
5147
+
4981
5148
  # Boost specification to boost certain items.
4982
5149
  # Corresponds to the JSON property `boostSpec`
4983
5150
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpec]
@@ -5167,6 +5334,7 @@ module Google
5167
5334
 
5168
5335
  # Update properties of this object
5169
5336
  def update!(**args)
5337
+ @banner = args[:banner] if args.key?(:banner)
5170
5338
  @boost_spec = args[:boost_spec] if args.key?(:boost_spec)
5171
5339
  @branch = args[:branch] if args.key?(:branch)
5172
5340
  @canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
@@ -5371,9 +5539,13 @@ module Google
5371
5539
  # @return [Array<String>]
5372
5540
  attr_accessor :contains
5373
5541
 
5374
- # Set only if values should be bucketized into intervals. Must be set for facets
5375
- # with numerical values. Must not be set for facet with text values. Maximum
5376
- # number of intervals is 30.
5542
+ # For all numerical facet keys that appear in the list of products from the
5543
+ # catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are computed from their
5544
+ # distribution weekly. If the model assigns a high score to a numerical facet
5545
+ # key and its intervals are not specified in the search request, these
5546
+ # percentiles will become the bounds for its intervals and will be returned in
5547
+ # the response. If the facet key intervals are specified in the request, then
5548
+ # the specified intervals will be returned instead.
5377
5549
  # Corresponds to the JSON property `intervals`
5378
5550
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval>]
5379
5551
  attr_accessor :intervals
@@ -6216,6 +6388,13 @@ module Google
6216
6388
  # @return [String]
6217
6389
  attr_accessor :attribution_token
6218
6390
 
6391
+ # Represents the banner of the user event, for projects that combine banners.
6392
+ # For example: retailer can have events from multiple banners like retailer-main,
6393
+ # retailer-baby, retailer-meds, etc. under one project.
6394
+ # Corresponds to the JSON property `banner`
6395
+ # @return [String]
6396
+ attr_accessor :banner
6397
+
6219
6398
  # The ID or name of the associated shopping cart. This ID is used to associate
6220
6399
  # multiple items added or present in the cart before purchase. This can only be
6221
6400
  # set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
@@ -6383,6 +6562,7 @@ module Google
6383
6562
  def update!(**args)
6384
6563
  @attributes = args[:attributes] if args.key?(:attributes)
6385
6564
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
6565
+ @banner = args[:banner] if args.key?(:banner)
6386
6566
  @cart_id = args[:cart_id] if args.key?(:cart_id)
6387
6567
  @completion_detail = args[:completion_detail] if args.key?(:completion_detail)
6388
6568
  @event_time = args[:event_time] if args.key?(:event_time)
@@ -6624,6 +6804,32 @@ module Google
6624
6804
  end
6625
6805
  end
6626
6806
 
6807
+ # Common metadata related to the progress of the operations.
6808
+ class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
6809
+ include Google::Apis::Core::Hashable
6810
+
6811
+ # Operation create time.
6812
+ # Corresponds to the JSON property `createTime`
6813
+ # @return [String]
6814
+ attr_accessor :create_time
6815
+
6816
+ # Operation last update time. If the operation is done, this is also the finish
6817
+ # time.
6818
+ # Corresponds to the JSON property `updateTime`
6819
+ # @return [String]
6820
+ attr_accessor :update_time
6821
+
6822
+ def initialize(**args)
6823
+ update!(**args)
6824
+ end
6825
+
6826
+ # Update properties of this object
6827
+ def update!(**args)
6828
+ @create_time = args[:create_time] if args.key?(:create_time)
6829
+ @update_time = args[:update_time] if args.key?(:update_time)
6830
+ end
6831
+ end
6832
+
6627
6833
  # Metadata associated with a create operation.
6628
6834
  class GoogleCloudRetailV2betaCreateModelMetadata
6629
6835
  include Google::Apis::Core::Hashable
@@ -6937,6 +7143,120 @@ module Google
6937
7143
  end
6938
7144
  end
6939
7145
 
7146
+ # Represents a link between a Merchant Center account and a branch. Once a link
7147
+ # is established, products from the linked merchant center account will be
7148
+ # streamed to the linked branch. LINT.IfChange(MerchantCenterAccountLink)
7149
+ class GoogleCloudRetailV2betaMerchantCenterAccountLink
7150
+ include Google::Apis::Core::Hashable
7151
+
7152
+ # Required. The branch id (e.g. 0/1/2) within the catalog that products from
7153
+ # merchant_center_account_id are streamed to. When updating this field, an empty
7154
+ # value will use the currently configured default branch. However, changing the
7155
+ # default branch later on won't change the linked branch here. A single branch
7156
+ # id can only have one linked merchant center account id.
7157
+ # Corresponds to the JSON property `branchId`
7158
+ # @return [String]
7159
+ attr_accessor :branch_id
7160
+
7161
+ # Criteria for the Merchant Center feeds to be ingested via the link. All offers
7162
+ # will be ingested if the list is empty. Otherwise the offers will be ingested
7163
+ # from selected feeds.
7164
+ # Corresponds to the JSON property `feedFilters`
7165
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter>]
7166
+ attr_accessor :feed_filters
7167
+
7168
+ # The FeedLabel used to perform filtering. Note: this replaces [region_id](https:
7169
+ # //developers.google.com/shopping-content/reference/rest/v2.1/products#Product.
7170
+ # FIELDS.feed_label). Example value: `US`. Example value: `FeedLabel1`.
7171
+ # Corresponds to the JSON property `feedLabel`
7172
+ # @return [String]
7173
+ attr_accessor :feed_label
7174
+
7175
+ # Output only. Immutable. MerchantCenterAccountLink identifier, which is the
7176
+ # final component of name. This field is auto generated and follows the
7177
+ # convention: `BranchId_MerchantCenterAccountId`. `projects/*/locations/global/
7178
+ # catalogs/default_catalog/merchantCenterAccountLinks/id_1`.
7179
+ # Corresponds to the JSON property `id`
7180
+ # @return [String]
7181
+ attr_accessor :id
7182
+
7183
+ # Language of the title/description and other string attributes. Use language
7184
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
7185
+ # 639-1. This specifies the language of offers in Merchant Center that will be
7186
+ # accepted. If empty, no language filtering will be performed. Example value: `
7187
+ # en`.
7188
+ # Corresponds to the JSON property `languageCode`
7189
+ # @return [String]
7190
+ attr_accessor :language_code
7191
+
7192
+ # Required. The linked [Merchant center account id](https://developers.google.
7193
+ # com/shopping-content/guides/accountstatuses). The account must be a standalone
7194
+ # account or a sub-account of a MCA.
7195
+ # Corresponds to the JSON property `merchantCenterAccountId`
7196
+ # @return [Fixnum]
7197
+ attr_accessor :merchant_center_account_id
7198
+
7199
+ # Output only. Immutable. Full resource name of the Merchant Center Account Link,
7200
+ # such as `projects/*/locations/global/catalogs/default_catalog/
7201
+ # merchantCenterAccountLinks/merchant_center_account_link`.
7202
+ # Corresponds to the JSON property `name`
7203
+ # @return [String]
7204
+ attr_accessor :name
7205
+
7206
+ # Output only. GCP project ID.
7207
+ # Corresponds to the JSON property `projectId`
7208
+ # @return [String]
7209
+ attr_accessor :project_id
7210
+
7211
+ # Output only. Represents the state of the link.
7212
+ # Corresponds to the JSON property `state`
7213
+ # @return [String]
7214
+ attr_accessor :state
7215
+
7216
+ def initialize(**args)
7217
+ update!(**args)
7218
+ end
7219
+
7220
+ # Update properties of this object
7221
+ def update!(**args)
7222
+ @branch_id = args[:branch_id] if args.key?(:branch_id)
7223
+ @feed_filters = args[:feed_filters] if args.key?(:feed_filters)
7224
+ @feed_label = args[:feed_label] if args.key?(:feed_label)
7225
+ @id = args[:id] if args.key?(:id)
7226
+ @language_code = args[:language_code] if args.key?(:language_code)
7227
+ @merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
7228
+ @name = args[:name] if args.key?(:name)
7229
+ @project_id = args[:project_id] if args.key?(:project_id)
7230
+ @state = args[:state] if args.key?(:state)
7231
+ end
7232
+ end
7233
+
7234
+ # Merchant Center Feed filter criterion.
7235
+ class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
7236
+ include Google::Apis::Core::Hashable
7237
+
7238
+ # Merchant Center primary feed ID.
7239
+ # Corresponds to the JSON property `primaryFeedId`
7240
+ # @return [Fixnum]
7241
+ attr_accessor :primary_feed_id
7242
+
7243
+ # Merchant Center primary feed name. The name is used for the display purposes
7244
+ # only.
7245
+ # Corresponds to the JSON property `primaryFeedName`
7246
+ # @return [String]
7247
+ attr_accessor :primary_feed_name
7248
+
7249
+ def initialize(**args)
7250
+ update!(**args)
7251
+ end
7252
+
7253
+ # Update properties of this object
7254
+ def update!(**args)
7255
+ @primary_feed_id = args[:primary_feed_id] if args.key?(:primary_feed_id)
7256
+ @primary_feed_name = args[:primary_feed_name] if args.key?(:primary_feed_name)
7257
+ end
7258
+ end
7259
+
6940
7260
  # Metadata that describes the training and serving parameters of a Model. A
6941
7261
  # Model can be associated with a ServingConfig and then queried through the
6942
7262
  # Predict API.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.70.0"
19
+ GEM_VERSION = "0.72.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 = "20230223"
25
+ REVISION = "20230321"
26
26
  end
27
27
  end
28
28
  end
@@ -382,6 +382,12 @@ module Google
382
382
  include Google::Apis::Core::JsonObjectSupport
383
383
  end
384
384
 
385
+ class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
385
391
  class GoogleCloudRetailV2alphaCreateModelMetadata
386
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
393
 
@@ -526,6 +532,12 @@ module Google
526
532
  include Google::Apis::Core::JsonObjectSupport
527
533
  end
528
534
 
535
+ class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
529
541
  class GoogleCloudRetailV2alphaListModelsResponse
530
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
543
 
@@ -550,6 +562,18 @@ module Google
550
562
  include Google::Apis::Core::JsonObjectSupport
551
563
  end
552
564
 
565
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLink
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
571
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
553
577
  class GoogleCloudRetailV2alphaMerchantCenterFeedFilter
554
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
579
 
@@ -1054,6 +1078,12 @@ module Google
1054
1078
  include Google::Apis::Core::JsonObjectSupport
1055
1079
  end
1056
1080
 
1081
+ class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
1082
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1083
+
1084
+ include Google::Apis::Core::JsonObjectSupport
1085
+ end
1086
+
1057
1087
  class GoogleCloudRetailV2betaCreateModelMetadata
1058
1088
  class Representation < Google::Apis::Core::JsonRepresentation; end
1059
1089
 
@@ -1120,6 +1150,18 @@ module Google
1120
1150
  include Google::Apis::Core::JsonObjectSupport
1121
1151
  end
1122
1152
 
1153
+ class GoogleCloudRetailV2betaMerchantCenterAccountLink
1154
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1155
+
1156
+ include Google::Apis::Core::JsonObjectSupport
1157
+ end
1158
+
1159
+ class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
1160
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1161
+
1162
+ include Google::Apis::Core::JsonObjectSupport
1163
+ end
1164
+
1123
1165
  class GoogleCloudRetailV2betaModel
1124
1166
  class Representation < Google::Apis::Core::JsonRepresentation; end
1125
1167
 
@@ -1769,6 +1811,14 @@ module Google
1769
1811
  end
1770
1812
  end
1771
1813
 
1814
+ class GoogleCloudRetailV2alphaCreateMerchantCenterAccountLinkMetadata
1815
+ # @private
1816
+ class Representation < Google::Apis::Core::JsonRepresentation
1817
+ property :create_time, as: 'createTime'
1818
+ property :update_time, as: 'updateTime'
1819
+ end
1820
+ end
1821
+
1772
1822
  class GoogleCloudRetailV2alphaCreateModelMetadata
1773
1823
  # @private
1774
1824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1996,6 +2046,14 @@ module Google
1996
2046
  end
1997
2047
  end
1998
2048
 
2049
+ class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
2050
+ # @private
2051
+ class Representation < Google::Apis::Core::JsonRepresentation
2052
+ collection :merchant_center_account_links, as: 'merchantCenterAccountLinks', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLink, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLink::Representation
2053
+
2054
+ end
2055
+ end
2056
+
1999
2057
  class GoogleCloudRetailV2alphaListModelsResponse
2000
2058
  # @private
2001
2059
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2036,6 +2094,30 @@ module Google
2036
2094
  end
2037
2095
  end
2038
2096
 
2097
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLink
2098
+ # @private
2099
+ class Representation < Google::Apis::Core::JsonRepresentation
2100
+ property :branch_id, as: 'branchId'
2101
+ collection :feed_filters, as: 'feedFilters', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter::Representation
2102
+
2103
+ property :feed_label, as: 'feedLabel'
2104
+ property :id, as: 'id'
2105
+ property :language_code, as: 'languageCode'
2106
+ property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
2107
+ property :name, as: 'name'
2108
+ property :project_id, as: 'projectId'
2109
+ property :state, as: 'state'
2110
+ end
2111
+ end
2112
+
2113
+ class GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter
2114
+ # @private
2115
+ class Representation < Google::Apis::Core::JsonRepresentation
2116
+ property :primary_feed_id, :numeric_string => true, as: 'primaryFeedId'
2117
+ property :primary_feed_name, as: 'primaryFeedName'
2118
+ end
2119
+ end
2120
+
2039
2121
  class GoogleCloudRetailV2alphaMerchantCenterFeedFilter
2040
2122
  # @private
2041
2123
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2539,6 +2621,7 @@ module Google
2539
2621
  class GoogleCloudRetailV2alphaSearchRequest
2540
2622
  # @private
2541
2623
  class Representation < Google::Apis::Core::JsonRepresentation
2624
+ property :banner, as: 'banner'
2542
2625
  property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpec::Representation
2543
2626
 
2544
2627
  property :branch, as: 'branch'
@@ -2800,6 +2883,7 @@ module Google
2800
2883
  hash :attributes, as: 'attributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute::Representation
2801
2884
 
2802
2885
  property :attribution_token, as: 'attributionToken'
2886
+ property :banner, as: 'banner'
2803
2887
  property :cart_id, as: 'cartId'
2804
2888
  property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompletionDetail, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompletionDetail::Representation
2805
2889
 
@@ -2895,6 +2979,14 @@ module Google
2895
2979
  end
2896
2980
  end
2897
2981
 
2982
+ class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata
2983
+ # @private
2984
+ class Representation < Google::Apis::Core::JsonRepresentation
2985
+ property :create_time, as: 'createTime'
2986
+ property :update_time, as: 'updateTime'
2987
+ end
2988
+ end
2989
+
2898
2990
  class GoogleCloudRetailV2betaCreateModelMetadata
2899
2991
  # @private
2900
2992
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2997,6 +3089,30 @@ module Google
2997
3089
  end
2998
3090
  end
2999
3091
 
3092
+ class GoogleCloudRetailV2betaMerchantCenterAccountLink
3093
+ # @private
3094
+ class Representation < Google::Apis::Core::JsonRepresentation
3095
+ property :branch_id, as: 'branchId'
3096
+ collection :feed_filters, as: 'feedFilters', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter::Representation
3097
+
3098
+ property :feed_label, as: 'feedLabel'
3099
+ property :id, as: 'id'
3100
+ property :language_code, as: 'languageCode'
3101
+ property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
3102
+ property :name, as: 'name'
3103
+ property :project_id, as: 'projectId'
3104
+ property :state, as: 'state'
3105
+ end
3106
+ end
3107
+
3108
+ class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter
3109
+ # @private
3110
+ class Representation < Google::Apis::Core::JsonRepresentation
3111
+ property :primary_feed_id, :numeric_string => true, as: 'primaryFeedId'
3112
+ property :primary_feed_name, as: 'primaryFeedName'
3113
+ end
3114
+ end
3115
+
3000
3116
  class GoogleCloudRetailV2betaModel
3001
3117
  # @private
3002
3118
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -57,6 +57,8 @@ module Google
57
57
  # @param [String] catalog
58
58
  # Required. Catalog for which the completion is performed. Full resource name of
59
59
  # catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
60
+ # @param [String] banner
61
+ # The banner context for completion suggestions.
60
62
  # @param [String] dataset
61
63
  # Determines which dataset to use for fetching completion. "user-data" will use
62
64
  # the imported dataset through CompletionService.ImportCompletionData. "cloud-
@@ -113,11 +115,12 @@ module Google
113
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
116
- def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ def complete_project_location_catalog_query(catalog, banner: nil, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
117
119
  command = make_simple_command(:get, 'v2alpha/{+catalog}:completeQuery', options)
118
120
  command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse::Representation
119
121
  command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse
120
122
  command.params['catalog'] = catalog unless catalog.nil?
123
+ command.query['banner'] = banner unless banner.nil?
121
124
  command.query['dataset'] = dataset unless dataset.nil?
122
125
  command.query['deviceType'] = device_type unless device_type.nil?
123
126
  command.query['enableAttributeSuggestions'] = enable_attribute_suggestions unless enable_attribute_suggestions.nil?
@@ -1438,6 +1441,111 @@ module Google
1438
1441
  execute_or_queue_command(command, &block)
1439
1442
  end
1440
1443
 
1444
+ # Creates a MerchantCenterAccountLink. MerchantCenterAccountLink cannot be set
1445
+ # to a different oneof field, if so an INVALID_ARGUMENT is returned.
1446
+ # @param [String] name
1447
+ # Output only. Immutable. Full resource name of the Merchant Center Account Link,
1448
+ # such as `projects/*/locations/global/catalogs/default_catalog/
1449
+ # merchantCenterAccountLinks/merchant_center_account_link`.
1450
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLink] google_cloud_retail_v2alpha_merchant_center_account_link_object
1451
+ # @param [String] parent
1452
+ # Required. The branch resource where this MerchantCenterAccountLink will be
1453
+ # created. Format: projects/`PROJECT_NUMBER`/locations/global/catalogs/`
1454
+ # CATALOG_ID``
1455
+ # @param [String] fields
1456
+ # Selector specifying which fields to include in a partial response.
1457
+ # @param [String] quota_user
1458
+ # Available to use for quota purposes for server-side applications. Can be any
1459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1460
+ # @param [Google::Apis::RequestOptions] options
1461
+ # Request-specific options
1462
+ #
1463
+ # @yield [result, err] Result & error if block supplied
1464
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1465
+ # @yieldparam err [StandardError] error object if request failed
1466
+ #
1467
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1468
+ #
1469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1472
+ def create_project_location_catalog_merchant_center_account_link_merchant_center_account_link(name, google_cloud_retail_v2alpha_merchant_center_account_link_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1473
+ command = make_simple_command(:post, 'v2alpha/{+name}', options)
1474
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterAccountLink::Representation
1475
+ command.request_object = google_cloud_retail_v2alpha_merchant_center_account_link_object
1476
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1477
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1478
+ command.params['name'] = name unless name.nil?
1479
+ command.query['parent'] = parent unless parent.nil?
1480
+ command.query['fields'] = fields unless fields.nil?
1481
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1482
+ execute_or_queue_command(command, &block)
1483
+ end
1484
+
1485
+ # Deletes a MerchantCenterAccountLink. If the MerchantCenterAccountLink to
1486
+ # delete does not exist, a NOT_FOUND error is returned.
1487
+ # @param [String] name
1488
+ # Required. Full resource name. Format: projects/`project_number`/locations/`
1489
+ # location_id`/catalogs/`catalog_id`/merchantCenterAccountLinks/`
1490
+ # merchant_center_account_link_id`
1491
+ # @param [String] fields
1492
+ # Selector specifying which fields to include in a partial response.
1493
+ # @param [String] quota_user
1494
+ # Available to use for quota purposes for server-side applications. Can be any
1495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1496
+ # @param [Google::Apis::RequestOptions] options
1497
+ # Request-specific options
1498
+ #
1499
+ # @yield [result, err] Result & error if block supplied
1500
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleProtobufEmpty] parsed result object
1501
+ # @yieldparam err [StandardError] error object if request failed
1502
+ #
1503
+ # @return [Google::Apis::RetailV2alpha::GoogleProtobufEmpty]
1504
+ #
1505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1508
+ def delete_project_location_catalog_merchant_center_account_link(name, fields: nil, quota_user: nil, options: nil, &block)
1509
+ command = make_simple_command(:delete, 'v2alpha/{+name}', options)
1510
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleProtobufEmpty::Representation
1511
+ command.response_class = Google::Apis::RetailV2alpha::GoogleProtobufEmpty
1512
+ command.params['name'] = name unless name.nil?
1513
+ command.query['fields'] = fields unless fields.nil?
1514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1515
+ execute_or_queue_command(command, &block)
1516
+ end
1517
+
1518
+ # Lists all MerchantCenterAccountLinks under the specified parent Catalog.
1519
+ # @param [String] parent
1520
+ # Required. The parent Catalog of the resource. It must match this format:
1521
+ # projects/`PROJECT_NUMBER`/locations/global/catalogs/`CATALOG_ID`
1522
+ # @param [String] fields
1523
+ # Selector specifying which fields to include in a partial response.
1524
+ # @param [String] quota_user
1525
+ # Available to use for quota purposes for server-side applications. Can be any
1526
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1527
+ # @param [Google::Apis::RequestOptions] options
1528
+ # Request-specific options
1529
+ #
1530
+ # @yield [result, err] Result & error if block supplied
1531
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse] parsed result object
1532
+ # @yieldparam err [StandardError] error object if request failed
1533
+ #
1534
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse]
1535
+ #
1536
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1537
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1538
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1539
+ def list_project_location_catalog_merchant_center_account_links(parent, fields: nil, quota_user: nil, options: nil, &block)
1540
+ command = make_simple_command(:get, 'v2alpha/{+parent}/merchantCenterAccountLinks', options)
1541
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse::Representation
1542
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse
1543
+ command.params['parent'] = parent unless parent.nil?
1544
+ command.query['fields'] = fields unless fields.nil?
1545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1546
+ execute_or_queue_command(command, &block)
1547
+ end
1548
+
1441
1549
  # Creates a new model.
1442
1550
  # @param [String] parent
1443
1551
  # Required. The parent resource under which to create the model. Format: `
@@ -1755,13 +1863,7 @@ module Google
1755
1863
  end
1756
1864
 
1757
1865
  # Lists operations that match the specified filter in the request. If the server
1758
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1759
- # binding allows API services to override the binding to use different resource
1760
- # name schemes, such as `users/*/operations`. To override the binding, API
1761
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1762
- # service configuration. For backwards compatibility, the default name includes
1763
- # the operations collection id, however overriding users must ensure the name
1764
- # binding is the parent resource, without the operations collection id.
1866
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1765
1867
  # @param [String] name
1766
1868
  # The name of the operation's parent resource.
1767
1869
  # @param [String] filter
@@ -2470,13 +2572,7 @@ module Google
2470
2572
  end
2471
2573
 
2472
2574
  # Lists operations that match the specified filter in the request. If the server
2473
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2474
- # binding allows API services to override the binding to use different resource
2475
- # name schemes, such as `users/*/operations`. To override the binding, API
2476
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2477
- # service configuration. For backwards compatibility, the default name includes
2478
- # the operations collection id, however overriding users must ensure the name
2479
- # binding is the parent resource, without the operations collection id.
2575
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2480
2576
  # @param [String] name
2481
2577
  # The name of the operation's parent resource.
2482
2578
  # @param [String] filter
@@ -2547,13 +2643,7 @@ module Google
2547
2643
  end
2548
2644
 
2549
2645
  # Lists operations that match the specified filter in the request. If the server
2550
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2551
- # binding allows API services to override the binding to use different resource
2552
- # name schemes, such as `users/*/operations`. To override the binding, API
2553
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2554
- # service configuration. For backwards compatibility, the default name includes
2555
- # the operations collection id, however overriding users must ensure the name
2556
- # binding is the parent resource, without the operations collection id.
2646
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2557
2647
  # @param [String] name
2558
2648
  # The name of the operation's parent resource.
2559
2649
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.0
4
+ version: 0.72.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-05 00:00:00.000000000 Z
11
+ date: 2023-03-26 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.70.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.72.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []