google-apis-retail_v2alpha 0.21.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/retail_v2alpha/classes.rb +165 -129
- data/lib/google/apis/retail_v2alpha/gem_version.rb +3 -3
- data/lib/google/apis/retail_v2alpha/representations.rb +3 -0
- data/lib/google/apis/retail_v2alpha/service.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b82c9e252804694a1c32980bfd4aec38e363e38b1e0af362762979018fbef16
|
4
|
+
data.tar.gz: fb2dd70fdf3b7a582801c402f5c75f6065d0442360e58c93b7cf34e2b81f156a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 922a1f9b04beb5b2458c46f590af68c101700a32f331b693f3b892d2371ef91886a73e8e710e7c0ce9d65433ef847de65a1016fc8d365348c6600fcd33aa7f8f
|
7
|
+
data.tar.gz: 2a2e227d91987754a404a9b5fbccce5f0f1be960f423b385b9f63b77a072b31f0cc89a5ff54efb553a467198afe06a53426a746b16faf32d0fe5242407766956
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.25.0 (2022-01-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220106
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.24.0 (2021-12-16)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211210
|
11
|
+
|
12
|
+
### v0.23.0 (2021-12-09)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211203
|
15
|
+
|
16
|
+
### v0.22.0 (2021-11-17)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211116
|
19
|
+
|
3
20
|
### v0.21.0 (2021-11-10)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211104
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/retail_v2alpha"
|
|
51
51
|
client = Google::Apis::RetailV2alpha::CloudRetailService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -751,7 +751,7 @@ module Google
|
|
751
751
|
alias_method :allow_missing?, :allow_missing
|
752
752
|
|
753
753
|
# Required. A list of inventory information at difference places. Each place is
|
754
|
-
# identified by its place ID. At most
|
754
|
+
# identified by its place ID. At most 3000 inventories are allowed per request.
|
755
755
|
# Corresponds to the JSON property `localInventories`
|
756
756
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>]
|
757
757
|
attr_accessor :local_inventories
|
@@ -1122,9 +1122,8 @@ module Google
|
|
1122
1122
|
alias_method :indexable?, :indexable
|
1123
1123
|
|
1124
1124
|
# The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
|
1125
|
-
# the key is "lengths_cm".
|
1126
|
-
# INVALID_ARGUMENT error is returned.
|
1127
|
-
# set. Otherwise, an INVALID_ARGUMENT error is returned.
|
1125
|
+
# the key is "lengths_cm". Exactly one of text or numbers should be set.
|
1126
|
+
# Otherwise, an INVALID_ARGUMENT error is returned.
|
1128
1127
|
# Corresponds to the JSON property `numbers`
|
1129
1128
|
# @return [Array<Float>]
|
1130
1129
|
attr_accessor :numbers
|
@@ -1138,11 +1137,8 @@ module Google
|
|
1138
1137
|
alias_method :searchable?, :searchable
|
1139
1138
|
|
1140
1139
|
# The textual values of this custom attribute. For example, `["yellow", "green"]`
|
1141
|
-
# when the key is "color".
|
1142
|
-
#
|
1143
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of
|
1144
|
-
# text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is
|
1145
|
-
# returned.
|
1140
|
+
# when the key is "color". Exactly one of text or numbers should be set.
|
1141
|
+
# Otherwise, an INVALID_ARGUMENT error is returned.
|
1146
1142
|
# Corresponds to the JSON property `text`
|
1147
1143
|
# @return [Array<String>]
|
1148
1144
|
attr_accessor :text
|
@@ -1309,6 +1305,8 @@ module Google
|
|
1309
1305
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
1310
1306
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
1311
1307
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
|
1308
|
+
# Supported values for control imports: * 'control' (default): One JSON Control
|
1309
|
+
# per line.
|
1312
1310
|
# Corresponds to the JSON property `dataSchema`
|
1313
1311
|
# @return [String]
|
1314
1312
|
attr_accessor :data_schema
|
@@ -1777,13 +1775,15 @@ module Google
|
|
1777
1775
|
include Google::Apis::Core::Hashable
|
1778
1776
|
|
1779
1777
|
# Additional local inventory attributes, for example, store name, promotion tags,
|
1780
|
-
# etc.
|
1781
|
-
#
|
1782
|
-
#
|
1783
|
-
#
|
1784
|
-
#
|
1785
|
-
#
|
1786
|
-
#
|
1778
|
+
# etc. This field needs to pass all below criteria, otherwise an
|
1779
|
+
# INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
|
1780
|
+
# key must be a UTF-8 encoded string with a length limit of 32 characters. * The
|
1781
|
+
# key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
|
1782
|
+
# KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
|
1783
|
+
# number). * The max number of values per attribute is 10. * For text values,
|
1784
|
+
# the length limit is 256 UTF-8 characters. * The attribute does not support
|
1785
|
+
# search. The `searchable` field should be unset or set to false. * The max
|
1786
|
+
# summed total bytes of custom attribute keys and values per product is 5MiB.
|
1787
1787
|
# Corresponds to the JSON property `attributes`
|
1788
1788
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
1789
1789
|
attr_accessor :attributes
|
@@ -1827,13 +1827,21 @@ module Google
|
|
1827
1827
|
|
1828
1828
|
# String representing the destination to import for, all if left empty. List of
|
1829
1829
|
# possible values can be found here. [https://support.google.com/merchants/
|
1830
|
-
# answer/7501026] List of allowed string values: "
|
1831
|
-
#
|
1832
|
-
#
|
1830
|
+
# answer/7501026] List of allowed string values: "Shopping_ads", "
|
1831
|
+
# Buy_on_google_listings", "Display_ads", "Local_inventory _ads", "Free_listings"
|
1832
|
+
# , "Free_local_listings" NOTE: The string values are case sensitive.
|
1833
1833
|
# Corresponds to the JSON property `destinations`
|
1834
1834
|
# @return [Array<String>]
|
1835
1835
|
attr_accessor :destinations
|
1836
1836
|
|
1837
|
+
# Language of the title/description and other string attributes. Use language
|
1838
|
+
# tags defined by BCP 47. ISO 639-1. This specifies the language of offers in
|
1839
|
+
# Merchant Center that will be accepted. If empty no language filtering will be
|
1840
|
+
# performed.
|
1841
|
+
# Corresponds to the JSON property `languageCode`
|
1842
|
+
# @return [String]
|
1843
|
+
attr_accessor :language_code
|
1844
|
+
|
1837
1845
|
# Required. The linked [Merchant center account id](https://developers.google.
|
1838
1846
|
# com/shopping-content/guides/accountstatuses). The account must be a standalone
|
1839
1847
|
# account or a sub-account of a MCA.
|
@@ -1841,6 +1849,14 @@ module Google
|
|
1841
1849
|
# @return [Fixnum]
|
1842
1850
|
attr_accessor :merchant_center_account_id
|
1843
1851
|
|
1852
|
+
# Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code.
|
1853
|
+
# List of values can be found here under the `region` tag. [https://www.iana.org/
|
1854
|
+
# assignments/language-subtag-registry/language-subtag-registry]. If left blank
|
1855
|
+
# no region filtering will be performed. Ex. `US`.
|
1856
|
+
# Corresponds to the JSON property `regionCode`
|
1857
|
+
# @return [String]
|
1858
|
+
attr_accessor :region_code
|
1859
|
+
|
1844
1860
|
def initialize(**args)
|
1845
1861
|
update!(**args)
|
1846
1862
|
end
|
@@ -1849,7 +1865,9 @@ module Google
|
|
1849
1865
|
def update!(**args)
|
1850
1866
|
@branch_id = args[:branch_id] if args.key?(:branch_id)
|
1851
1867
|
@destinations = args[:destinations] if args.key?(:destinations)
|
1868
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1852
1869
|
@merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
|
1870
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
1853
1871
|
end
|
1854
1872
|
end
|
1855
1873
|
|
@@ -2072,8 +2090,8 @@ module Google
|
|
2072
2090
|
attr_accessor :original_price
|
2073
2091
|
|
2074
2092
|
# Price of the product. Google Merchant Center property [price](https://support.
|
2075
|
-
# google.com/merchants/answer/6324371). Schema.org property [Offer.
|
2076
|
-
#
|
2093
|
+
# google.com/merchants/answer/6324371). Schema.org property [Offer.price](https:/
|
2094
|
+
# /schema.org/price).
|
2077
2095
|
# Corresponds to the JSON property `price`
|
2078
2096
|
# @return [Float]
|
2079
2097
|
attr_accessor :price
|
@@ -2161,7 +2179,10 @@ module Google
|
|
2161
2179
|
# INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
|
2162
2180
|
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
2163
2181
|
# indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
|
2164
|
-
# key0LikeThis or KEY_1_LIKE_THIS
|
2182
|
+
# `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
|
2183
|
+
# values are allowed. Empty values are not allowed. Each value must be a UTF-8
|
2184
|
+
# encoded string with a length limit of 256 characters. * For number attributes,
|
2185
|
+
# at most 400 values are allowed.
|
2165
2186
|
# Corresponds to the JSON property `attributes`
|
2166
2187
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
2167
2188
|
attr_accessor :attributes
|
@@ -2172,9 +2193,9 @@ module Google
|
|
2172
2193
|
attr_accessor :audience
|
2173
2194
|
|
2174
2195
|
# The online availability of the Product. Default to Availability.IN_STOCK.
|
2175
|
-
# Google Merchant Center
|
2176
|
-
# merchants/answer/6324448). Schema.org
|
2177
|
-
# schema.org/availability).
|
2196
|
+
# Corresponding properties: Google Merchant Center property [availability](https:
|
2197
|
+
# //support.google.com/merchants/answer/6324448). Schema.org property [Offer.
|
2198
|
+
# availability](https://schema.org/availability).
|
2178
2199
|
# Corresponds to the JSON property `availability`
|
2179
2200
|
# @return [String]
|
2180
2201
|
attr_accessor :availability
|
@@ -2191,9 +2212,9 @@ module Google
|
|
2191
2212
|
|
2192
2213
|
# The brands of the product. A maximum of 30 brands are allowed. Each brand must
|
2193
2214
|
# be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
|
2194
|
-
# an INVALID_ARGUMENT error is returned.
|
2195
|
-
# https://support.google.com/merchants/answer/
|
2196
|
-
# Product.brand](https://schema.org/brand).
|
2215
|
+
# an INVALID_ARGUMENT error is returned. Corresponding properties: Google
|
2216
|
+
# Merchant Center property [brand](https://support.google.com/merchants/answer/
|
2217
|
+
# 6324351). Schema.org property [Product.brand](https://schema.org/brand).
|
2197
2218
|
# Corresponds to the JSON property `brands`
|
2198
2219
|
# @return [Array<String>]
|
2199
2220
|
attr_accessor :brands
|
@@ -2210,10 +2231,10 @@ module Google
|
|
2210
2231
|
# INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
|
2211
2232
|
# Empty values are not allowed. Each value must be a UTF-8 encoded string with
|
2212
2233
|
# a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
2213
|
-
# returned. Google Merchant Center property
|
2214
|
-
# property [Product.category] (https://
|
2215
|
-
# mc_google_product_category]: https://support.google.com/
|
2216
|
-
# 6324436
|
2234
|
+
# returned. Corresponding properties: Google Merchant Center property
|
2235
|
+
# google_product_category. Schema.org property [Product.category] (https://
|
2236
|
+
# schema.org/category). [mc_google_product_category]: https://support.google.com/
|
2237
|
+
# merchants/answer/6324436
|
2217
2238
|
# Corresponds to the JSON property `categories`
|
2218
2239
|
# @return [Array<String>]
|
2219
2240
|
attr_accessor :categories
|
@@ -2231,21 +2252,21 @@ module Google
|
|
2231
2252
|
attr_accessor :color_info
|
2232
2253
|
|
2233
2254
|
# The condition of the product. Strongly encouraged to use the standard values: "
|
2234
|
-
# new", "refurbished", "used". A maximum of
|
2235
|
-
#
|
2236
|
-
#
|
2237
|
-
# Center property [condition](https://support.google.com/
|
2238
|
-
# 6324469). Schema.org property [Offer.itemCondition](https://
|
2239
|
-
# itemCondition).
|
2255
|
+
# new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
|
2256
|
+
# value must be a UTF-8 encoded string with a length limit of 128 characters.
|
2257
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
2258
|
+
# Google Merchant Center property [condition](https://support.google.com/
|
2259
|
+
# merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
|
2260
|
+
# schema.org/itemCondition).
|
2240
2261
|
# Corresponds to the JSON property `conditions`
|
2241
2262
|
# @return [Array<String>]
|
2242
2263
|
attr_accessor :conditions
|
2243
2264
|
|
2244
2265
|
# Product description. This field must be a UTF-8 encoded string with a length
|
2245
2266
|
# limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2246
|
-
# Google Merchant Center property [description](https
|
2247
|
-
# merchants/answer/6324468).
|
2248
|
-
# schema.org/description).
|
2267
|
+
# Corresponding properties: Google Merchant Center property [description](https:/
|
2268
|
+
# /support.google.com/merchants/answer/6324468). Schema.org property [Product.
|
2269
|
+
# description](https://schema.org/description).
|
2249
2270
|
# Corresponds to the JSON property `description`
|
2250
2271
|
# @return [String]
|
2251
2272
|
attr_accessor :description
|
@@ -2255,8 +2276,8 @@ module Google
|
|
2255
2276
|
# expire_time. However, the product can still be retrieved by ProductService.
|
2256
2277
|
# GetProduct and ProductService.ListProducts. expire_time must be later than
|
2257
2278
|
# available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
|
2258
|
-
# Google Merchant Center property [expiration_date](
|
2259
|
-
# merchants/answer/6324499).
|
2279
|
+
# Corresponding properties: Google Merchant Center property [expiration_date](
|
2280
|
+
# https://support.google.com/merchants/answer/6324499).
|
2260
2281
|
# Corresponds to the JSON property `expireTime`
|
2261
2282
|
# @return [String]
|
2262
2283
|
attr_accessor :expire_time
|
@@ -2271,12 +2292,13 @@ module Google
|
|
2271
2292
|
# The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
|
2272
2293
|
# encoded string with a length limit of 128 characters. Otherwise, an
|
2273
2294
|
# INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
|
2274
|
-
# an INVALID_ARGUMENT error is returned.
|
2275
|
-
# https://support.google.com/merchants/answer/
|
2276
|
-
#
|
2277
|
-
#
|
2278
|
-
# https://schema.org/gtin13) or [Product.gtin14](
|
2279
|
-
# the value is not a valid GTIN, an
|
2295
|
+
# an INVALID_ARGUMENT error is returned. Corresponding properties: Google
|
2296
|
+
# Merchant Center property [gtin](https://support.google.com/merchants/answer/
|
2297
|
+
# 6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [
|
2298
|
+
# Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/
|
2299
|
+
# gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](
|
2300
|
+
# https://schema.org/gtin14). If the value is not a valid GTIN, an
|
2301
|
+
# INVALID_ARGUMENT error is returned.
|
2280
2302
|
# Corresponds to the JSON property `gtin`
|
2281
2303
|
# @return [String]
|
2282
2304
|
attr_accessor :gtin
|
@@ -2285,27 +2307,28 @@ module Google
|
|
2285
2307
|
# example, this field is "id_1", if name is `projects/*/locations/global/
|
2286
2308
|
# catalogs/default_catalog/branches/default_branch/products/id_1`. This field
|
2287
2309
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
2288
|
-
# Otherwise, an INVALID_ARGUMENT error is returned.
|
2289
|
-
# property [id](https://support.google.com/merchants/
|
2290
|
-
#
|
2310
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
2311
|
+
# Google Merchant Center property [id](https://support.google.com/merchants/
|
2312
|
+
# answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
|
2291
2313
|
# Corresponds to the JSON property `id`
|
2292
2314
|
# @return [String]
|
2293
2315
|
attr_accessor :id
|
2294
2316
|
|
2295
2317
|
# Product images for the product.Highly recommended to put the main image to the
|
2296
|
-
# first. A maximum of 300 images are allowed.
|
2297
|
-
# image_link](https://support.google.com/merchants/
|
2298
|
-
# property [Product.image](https://schema.org/image).
|
2318
|
+
# first. A maximum of 300 images are allowed. Corresponding properties: Google
|
2319
|
+
# Merchant Center property [image_link](https://support.google.com/merchants/
|
2320
|
+
# answer/6324350). Schema.org property [Product.image](https://schema.org/image).
|
2299
2321
|
# Corresponds to the JSON property `images`
|
2300
2322
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage>]
|
2301
2323
|
attr_accessor :images
|
2302
2324
|
|
2303
2325
|
# Language of the title/description and other string attributes. Use language
|
2304
|
-
# tags defined by BCP 47. For
|
2305
|
-
#
|
2306
|
-
#
|
2307
|
-
#
|
2308
|
-
# field is in use. It
|
2326
|
+
# tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For
|
2327
|
+
# product prediction, this field is ignored and the model automatically detects
|
2328
|
+
# the text language. The Product can include text in different languages, but
|
2329
|
+
# duplicating Products to provide text in multiple languages can result in
|
2330
|
+
# degraded model performance. For product search this field is in use. It
|
2331
|
+
# defaults to "en-US" if unset.
|
2309
2332
|
# Corresponds to the JSON property `languageCode`
|
2310
2333
|
# @return [String]
|
2311
2334
|
attr_accessor :language_code
|
@@ -2313,9 +2336,9 @@ module Google
|
|
2313
2336
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
2314
2337
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
2315
2338
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2316
|
-
# Google Merchant Center property [material](https://
|
2317
|
-
# merchants/answer/6324410). Schema.org property [Product.
|
2318
|
-
# schema.org/material).
|
2339
|
+
# Corresponding properties: Google Merchant Center property [material](https://
|
2340
|
+
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
2341
|
+
# material](https://schema.org/material).
|
2319
2342
|
# Corresponds to the JSON property `materials`
|
2320
2343
|
# @return [Array<String>]
|
2321
2344
|
attr_accessor :materials
|
@@ -2329,9 +2352,10 @@ module Google
|
|
2329
2352
|
# The pattern or graphic print of the product. For example, "striped", "polka
|
2330
2353
|
# dot", "paisley". A maximum of 20 values are allowed per Product. Each value
|
2331
2354
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
2332
|
-
# Otherwise, an INVALID_ARGUMENT error is returned.
|
2333
|
-
# property [pattern](https://support.google.com/merchants/
|
2334
|
-
# Schema.org property [Product.pattern](https://schema.org/
|
2355
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
2356
|
+
# Google Merchant Center property [pattern](https://support.google.com/merchants/
|
2357
|
+
# answer/6324483). Schema.org property [Product.pattern](https://schema.org/
|
2358
|
+
# pattern).
|
2335
2359
|
# Corresponds to the JSON property `patterns`
|
2336
2360
|
# @return [Array<String>]
|
2337
2361
|
attr_accessor :patterns
|
@@ -2346,10 +2370,9 @@ module Google
|
|
2346
2370
|
# can only be empty or set to the same value as id. For VARIANT Products, this
|
2347
2371
|
# field cannot be empty. A maximum of 2,000 products are allowed to share the
|
2348
2372
|
# same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned.
|
2349
|
-
# Google Merchant Center
|
2350
|
-
# merchants/answer/6324507). Schema.org
|
2351
|
-
# https://schema.org/inProductGroupWithID).
|
2352
|
-
# can be used. [Learn more](/recommendations-ai/docs/catalog#item-group-id).
|
2373
|
+
# Corresponding properties: Google Merchant Center property [item_group_id](
|
2374
|
+
# https://support.google.com/merchants/answer/6324507). Schema.org property [
|
2375
|
+
# Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
|
2353
2376
|
# Corresponds to the JSON property `primaryProductId`
|
2354
2377
|
# @return [String]
|
2355
2378
|
attr_accessor :primary_product_id
|
@@ -2398,10 +2421,11 @@ module Google
|
|
2398
2421
|
# system and size type are empty, while size value is "32 inches". A maximum of
|
2399
2422
|
# 20 values are allowed per Product. Each value must be a UTF-8 encoded string
|
2400
2423
|
# with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
|
2401
|
-
# returned. Google Merchant Center property [size](
|
2402
|
-
# merchants/answer/6324492), [size_type](https://
|
2403
|
-
# answer/6324497) and [size_system](https://
|
2404
|
-
# 6324502). Schema.org property [Product.
|
2424
|
+
# returned. Corresponding properties: Google Merchant Center property [size](
|
2425
|
+
# https://support.google.com/merchants/answer/6324492), [size_type](https://
|
2426
|
+
# support.google.com/merchants/answer/6324497), and [size_system](https://
|
2427
|
+
# support.google.com/merchants/answer/6324502). Schema.org property [Product.
|
2428
|
+
# size](https://schema.org/size).
|
2405
2429
|
# Corresponds to the JSON property `sizes`
|
2406
2430
|
# @return [Array<String>]
|
2407
2431
|
attr_accessor :sizes
|
@@ -2410,17 +2434,18 @@ module Google
|
|
2410
2434
|
# Product. This value must be a UTF-8 encoded string with a length limit of 1,
|
2411
2435
|
# 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
|
2412
2436
|
# be used for filtering recommendation results by passing the tag as part of the
|
2413
|
-
# PredictRequest.filter. Google Merchant Center
|
2414
|
-
# https://support.google.com/merchants/answer/
|
2437
|
+
# PredictRequest.filter. Corresponding properties: Google Merchant Center
|
2438
|
+
# property [custom_label_0–4](https://support.google.com/merchants/answer/
|
2439
|
+
# 6324473).
|
2415
2440
|
# Corresponds to the JSON property `tags`
|
2416
2441
|
# @return [Array<String>]
|
2417
2442
|
attr_accessor :tags
|
2418
2443
|
|
2419
2444
|
# Required. Product title. This field must be a UTF-8 encoded string with a
|
2420
2445
|
# length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
2421
|
-
# returned. Google Merchant Center property [title](
|
2422
|
-
# merchants/answer/6324415). Schema.org property [
|
2423
|
-
# org/name).
|
2446
|
+
# returned. Corresponding properties: Google Merchant Center property [title](
|
2447
|
+
# https://support.google.com/merchants/answer/6324415). Schema.org property [
|
2448
|
+
# Product.name](https://schema.org/name).
|
2424
2449
|
# Corresponds to the JSON property `title`
|
2425
2450
|
# @return [String]
|
2426
2451
|
attr_accessor :title
|
@@ -2446,9 +2471,9 @@ module Google
|
|
2446
2471
|
# recommended to provide a valid uri for the product, otherwise the service
|
2447
2472
|
# performance could be significantly degraded. This field must be a UTF-8
|
2448
2473
|
# encoded string with a length limit of 5,000 characters. Otherwise, an
|
2449
|
-
# INVALID_ARGUMENT error is returned. Google Merchant
|
2450
|
-
# https://support.google.com/merchants/answer/6324416).
|
2451
|
-
# Offer.url](https://schema.org/url).
|
2474
|
+
# INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
|
2475
|
+
# Center property [link](https://support.google.com/merchants/answer/6324416).
|
2476
|
+
# Schema.org property [Offer.url](https://schema.org/url).
|
2452
2477
|
# Corresponds to the JSON property `uri`
|
2453
2478
|
# @return [String]
|
2454
2479
|
attr_accessor :uri
|
@@ -2974,7 +2999,7 @@ module Google
|
|
2974
2999
|
attr_accessor :allow_missing
|
2975
3000
|
alias_method :allow_missing?, :allow_missing
|
2976
3001
|
|
2977
|
-
# Required. A list of place IDs to have their inventory deleted. At most
|
3002
|
+
# Required. A list of place IDs to have their inventory deleted. At most 3000
|
2978
3003
|
# place IDs are allowed per request.
|
2979
3004
|
# Corresponds to the JSON property `placeIds`
|
2980
3005
|
# @return [Array<String>]
|
@@ -3133,24 +3158,26 @@ module Google
|
|
3133
3158
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo]
|
3134
3159
|
attr_accessor :user_info
|
3135
3160
|
|
3136
|
-
# The keys to fetch and rollup the matching variant Products attributes
|
3137
|
-
#
|
3138
|
-
#
|
3139
|
-
#
|
3140
|
-
#
|
3141
|
-
# fulfillmentId". E.g., in "
|
3142
|
-
# fulfillment type and "store123" is
|
3143
|
-
#
|
3144
|
-
#
|
3145
|
-
#
|
3146
|
-
#
|
3147
|
-
#
|
3148
|
-
#
|
3149
|
-
#
|
3150
|
-
#
|
3151
|
-
#
|
3152
|
-
# FulfillmentInfo.type "
|
3153
|
-
#
|
3161
|
+
# The keys to fetch and rollup the matching variant Products attributes,
|
3162
|
+
# FulfillmentInfo or LocalInventorys attributes. The attributes from all the
|
3163
|
+
# matching variant Products or LocalInventorys are merged and de-duplicated.
|
3164
|
+
# Notice that rollup attributes will lead to extra query latency. Maximum number
|
3165
|
+
# of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID
|
3166
|
+
# must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "
|
3167
|
+
# pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is
|
3168
|
+
# the store ID. Supported keys are: * colorFamilies * price * originalPrice *
|
3169
|
+
# discount * variantId * inventory(place_id,price) * inventory(place_id,
|
3170
|
+
# original_price) * inventory(place_id,attributes.key), where key is any key in
|
3171
|
+
# the Product.inventories.attributes map. * attributes.key, where key is any key
|
3172
|
+
# in the Product.attributes map. * pickupInStore.id, where id is any
|
3173
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
|
3174
|
+
# shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
|
3175
|
+
# type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
|
3176
|
+
# place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
|
3177
|
+
# where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
|
3178
|
+
# delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
|
3179
|
+
# for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
|
3180
|
+
# any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
|
3154
3181
|
# customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
|
3155
3182
|
# FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
|
3156
3183
|
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
|
@@ -3164,9 +3191,9 @@ module Google
|
|
3164
3191
|
# Required. A unique identifier for tracking visitors. For example, this could
|
3165
3192
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
3166
3193
|
# a visitor on a single device. This unique identifier should not change if the
|
3167
|
-
# visitor logs in or out of the website.
|
3168
|
-
#
|
3169
|
-
# error is returned.
|
3194
|
+
# visitor logs in or out of the website. This should be the same identifier as
|
3195
|
+
# UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length
|
3196
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
3170
3197
|
# Corresponds to the JSON property `visitorId`
|
3171
3198
|
# @return [String]
|
3172
3199
|
attr_accessor :visitor_id
|
@@ -3369,9 +3396,10 @@ module Google
|
|
3369
3396
|
# colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
|
3370
3397
|
# * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
|
3371
3398
|
# customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
|
3372
|
-
# customFulfillment4" * "customFulfillment5" *
|
3373
|
-
#
|
3374
|
-
# price)"
|
3399
|
+
# customFulfillment4" * "customFulfillment5" * "inventory(place_id,attributes.
|
3400
|
+
# key)" * numerical_field = * "price" * "discount" * "rating" * "ratingCount" * "
|
3401
|
+
# attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
|
3402
|
+
# original_price)" * "inventory(place_id,attributes.key)"
|
3375
3403
|
# Corresponds to the JSON property `key`
|
3376
3404
|
# @return [String]
|
3377
3405
|
attr_accessor :key
|
@@ -3470,6 +3498,12 @@ module Google
|
|
3470
3498
|
class GoogleCloudRetailV2alphaSearchResponse
|
3471
3499
|
include Google::Apis::Core::Hashable
|
3472
3500
|
|
3501
|
+
# The fully qualified resource name of applied [controls](https://cloud.google.
|
3502
|
+
# com/retail/docs/serving-control-rules).
|
3503
|
+
# Corresponds to the JSON property `appliedControls`
|
3504
|
+
# @return [Array<String>]
|
3505
|
+
attr_accessor :applied_controls
|
3506
|
+
|
3473
3507
|
# A unique search token. This should be included in the UserEvent logs resulting
|
3474
3508
|
# from this search, which enables accurate attribution of search model
|
3475
3509
|
# performance.
|
@@ -3524,6 +3558,7 @@ module Google
|
|
3524
3558
|
|
3525
3559
|
# Update properties of this object
|
3526
3560
|
def update!(**args)
|
3561
|
+
@applied_controls = args[:applied_controls] if args.key?(:applied_controls)
|
3527
3562
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
3528
3563
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
3529
3564
|
@facets = args[:facets] if args.key?(:facets)
|
@@ -3749,10 +3784,9 @@ module Google
|
|
3749
3784
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct]
|
3750
3785
|
attr_accessor :inventory
|
3751
3786
|
|
3752
|
-
# Indicates which inventory fields in the provided Product to update.
|
3753
|
-
#
|
3754
|
-
#
|
3755
|
-
# returned and the entire update will be ignored.
|
3787
|
+
# Indicates which inventory fields in the provided Product to update. At least
|
3788
|
+
# one field must be provided. If an unsupported or unknown field is provided, an
|
3789
|
+
# INVALID_ARGUMENT error is returned and the entire update will be ignored.
|
3756
3790
|
# Corresponds to the JSON property `setMask`
|
3757
3791
|
# @return [String]
|
3758
3792
|
attr_accessor :set_mask
|
@@ -3796,12 +3830,15 @@ module Google
|
|
3796
3830
|
class GoogleCloudRetailV2alphaUserEvent
|
3797
3831
|
include Google::Apis::Core::Hashable
|
3798
3832
|
|
3799
|
-
# Extra user event features to include in the recommendation model.
|
3800
|
-
#
|
3801
|
-
#
|
3802
|
-
#
|
3803
|
-
#
|
3804
|
-
#
|
3833
|
+
# Extra user event features to include in the recommendation model. This field
|
3834
|
+
# needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
|
3835
|
+
# returned: * The key must be a UTF-8 encoded string with a length limit of 5,
|
3836
|
+
# 000 characters. * For text attributes, at most 400 values are allowed. Empty
|
3837
|
+
# values are not allowed. Each value must be a UTF-8 encoded string with a
|
3838
|
+
# length limit of 256 characters. * For number attributes, at most 400 values
|
3839
|
+
# are allowed. For product recommendation, an example of extra user information
|
3840
|
+
# is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
|
3841
|
+
# site by coming to the site directly, or coming through Google search, and etc.
|
3805
3842
|
# Corresponds to the JSON property `attributes`
|
3806
3843
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
3807
3844
|
attr_accessor :attributes
|
@@ -3843,12 +3880,11 @@ module Google
|
|
3843
3880
|
|
3844
3881
|
# Required. User event type. Allowed values are: * `add-to-cart`: Products being
|
3845
3882
|
# added to cart. * `category-page-view`: Special pages such as sale or promotion
|
3846
|
-
# pages viewed. * `
|
3847
|
-
#
|
3848
|
-
#
|
3849
|
-
#
|
3850
|
-
#
|
3851
|
-
# User viewing a shopping cart.
|
3883
|
+
# pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
|
3884
|
+
# view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
|
3885
|
+
# * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
|
3886
|
+
# complete`: User finishing a purchase. * `search`: Product search. * `shopping-
|
3887
|
+
# cart-page-view`: User viewing a shopping cart.
|
3852
3888
|
# Corresponds to the JSON property `eventType`
|
3853
3889
|
# @return [String]
|
3854
3890
|
attr_accessor :event_type
|
@@ -3915,12 +3951,12 @@ module Google
|
|
3915
3951
|
|
3916
3952
|
# The main product details related to the event. This field is required for the
|
3917
3953
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
3918
|
-
# complete` In a `search` event, this field represents the products
|
3919
|
-
# the end user on the current page (the end user may have not
|
3920
|
-
# the whole page yet). When a new page is returned to the end
|
3921
|
-
# pagination/filtering/ordering even for the same query, a new `
|
3922
|
-
# with different product_details is desired. The end user may have
|
3923
|
-
# browsing the whole page yet.
|
3954
|
+
# complete` * `search` In a `search` event, this field represents the products
|
3955
|
+
# returned to the end user on the current page (the end user may have not
|
3956
|
+
# finished browsing the whole page yet). When a new page is returned to the end
|
3957
|
+
# user, after pagination/filtering/ordering even for the same query, a new `
|
3958
|
+
# search` event with different product_details is desired. The end user may have
|
3959
|
+
# not finished browsing the whole page yet.
|
3924
3960
|
# Corresponds to the JSON property `productDetails`
|
3925
3961
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail>]
|
3926
3962
|
attr_accessor :product_details
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1338,7 +1338,9 @@ module Google
|
|
1338
1338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1339
1339
|
property :branch_id, as: 'branchId'
|
1340
1340
|
collection :destinations, as: 'destinations'
|
1341
|
+
property :language_code, as: 'languageCode'
|
1341
1342
|
property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
|
1343
|
+
property :region_code, as: 'regionCode'
|
1342
1344
|
end
|
1343
1345
|
end
|
1344
1346
|
|
@@ -1691,6 +1693,7 @@ module Google
|
|
1691
1693
|
class GoogleCloudRetailV2alphaSearchResponse
|
1692
1694
|
# @private
|
1693
1695
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1696
|
+
collection :applied_controls, as: 'appliedControls'
|
1694
1697
|
property :attribution_token, as: 'attributionToken'
|
1695
1698
|
property :corrected_query, as: 'correctedQuery'
|
1696
1699
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet::Representation
|
@@ -373,7 +373,7 @@ module Google
|
|
373
373
|
# inventory information. If the request is valid, the update will be enqueued
|
374
374
|
# and processed downstream. As a consequence, when a response is returned,
|
375
375
|
# updates are not immediately manifested in the Product queried by GetProduct or
|
376
|
-
# ListProducts.
|
376
|
+
# ListProducts. Local inventory information can only be modified using this
|
377
377
|
# method. CreateProduct and UpdateProduct has no effect on local inventories.
|
378
378
|
# This feature is only available for users who have Retail Search enabled.
|
379
379
|
# Please submit a form [here](https://cloud.google.com/contact) to contact Cloud
|
@@ -729,7 +729,7 @@ module Google
|
|
729
729
|
# removal timestamp. This process is asynchronous. If the request is valid, the
|
730
730
|
# removal will be enqueued and processed downstream. As a consequence, when a
|
731
731
|
# response is returned, removals are not immediately manifested in the Product
|
732
|
-
# queried by GetProduct or ListProducts.
|
732
|
+
# queried by GetProduct or ListProducts. Local inventory information can only be
|
733
733
|
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
734
734
|
# local inventories. This feature is only available for users who have Retail
|
735
735
|
# Search enabled. Please submit a form [here](https://cloud.google.com/contact)
|
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.
|
4
|
+
version: 0.25.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:
|
11
|
+
date: 2022-01-17 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.25.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: []
|
@@ -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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Retail API V2alpha
|