google-apis-retail_v2 0.15.0 → 0.19.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/retail_v2/classes.rb +45 -34
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +1 -0
- data/lib/google/apis/retail_v2/service.rb +2 -5
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc744b4883f63b65feb4b5398dac6d8367d0462bccf1ad3077f0e604f5664a5
|
4
|
+
data.tar.gz: 2595bda7d65085f010819b881ffac7f12e19904c669dba0a96e30a107f5a4861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeed8321fe4915ef9ea7e82c90b912c0f30f1f7fb669c1fd39dcc24ceafef1be15246e9f82b83d02ee52e70a64ea0d40337d8d1491d6e20eb8e28dcd8e03e40a
|
7
|
+
data.tar.gz: b26e24a2e0721114e12707ede5a8d97ffe5c1b39dda615451dcc03b840250a36a9f5140f227498db058368090484bfcefaf80ee2379dbc64c2d0aeca47d822c6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.19.0 (2021-10-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211021
|
6
|
+
|
7
|
+
### v0.18.0 (2021-10-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211011
|
10
|
+
|
11
|
+
### v0.17.0 (2021-10-05)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210930
|
14
|
+
|
15
|
+
### v0.16.0 (2021-09-25)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210924
|
18
|
+
|
3
19
|
### v0.15.0 (2021-09-08)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210906
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Retail service in particular.)
|
67
67
|
|
@@ -307,8 +307,8 @@ module Google
|
|
307
307
|
|
308
308
|
# If set to true, and the Product is not found, the fulfillment information will
|
309
309
|
# still be processed and retained for at most 1 day and processed once the
|
310
|
-
# Product is created. If set to false,
|
311
|
-
#
|
310
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
311
|
+
# Product is not found.
|
312
312
|
# Corresponds to the JSON property `allowMissing`
|
313
313
|
# @return [Boolean]
|
314
314
|
attr_accessor :allow_missing
|
@@ -350,8 +350,8 @@ module Google
|
|
350
350
|
end
|
351
351
|
end
|
352
352
|
|
353
|
-
# Response of the
|
354
|
-
#
|
353
|
+
# Response of the AddFulfillmentPlacesRequest. Currently empty because there is
|
354
|
+
# no meaningful response populated from the AddFulfillmentPlaces method.
|
355
355
|
class GoogleCloudRetailV2AddFulfillmentPlacesResponse
|
356
356
|
include Google::Apis::Core::Hashable
|
357
357
|
|
@@ -524,8 +524,8 @@ module Google
|
|
524
524
|
# The color display names, which may be different from standard color family
|
525
525
|
# names, such as the color aliases used in the website frontend. Normally it is
|
526
526
|
# expected to have only 1 color. May consider using single "Mixed" instead of
|
527
|
-
# multiple values. A maximum of
|
528
|
-
# encoded string with a length limit of 128 characters. Otherwise, an
|
527
|
+
# multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-
|
528
|
+
# 8 encoded string with a length limit of 128 characters. Otherwise, an
|
529
529
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
|
530
530
|
# https://support.google.com/merchants/answer/6324487). Schema.org property [
|
531
531
|
# Product.color](https://schema.org/color).
|
@@ -1615,8 +1615,10 @@ module Google
|
|
1615
1615
|
# The timestamp when this product becomes unavailable for SearchService.Search.
|
1616
1616
|
# If it is set, the Product is not available for SearchService.Search after
|
1617
1617
|
# expire_time. However, the product can still be retrieved by ProductService.
|
1618
|
-
# GetProduct and ProductService.ListProducts.
|
1619
|
-
#
|
1618
|
+
# GetProduct and ProductService.ListProducts. expire_time must be later than
|
1619
|
+
# available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
|
1620
|
+
# Google Merchant Center property [expiration_date](https://support.google.com/
|
1621
|
+
# merchants/answer/6324499).
|
1620
1622
|
# Corresponds to the JSON property `expireTime`
|
1621
1623
|
# @return [String]
|
1622
1624
|
attr_accessor :expire_time
|
@@ -1682,7 +1684,6 @@ module Google
|
|
1682
1684
|
|
1683
1685
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
1684
1686
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
1685
|
-
# The branch ID must be "default_branch".
|
1686
1687
|
# Corresponds to the JSON property `name`
|
1687
1688
|
# @return [String]
|
1688
1689
|
attr_accessor :name
|
@@ -1786,12 +1787,13 @@ module Google
|
|
1786
1787
|
# @return [String]
|
1787
1788
|
attr_accessor :title
|
1788
1789
|
|
1789
|
-
# Input only. The TTL (time to live) of the product. If it is set,
|
1790
|
-
# is set as current timestamp plus ttl. The
|
1791
|
-
# the output and ttl is left blank when
|
1792
|
-
# the product is not available for
|
1793
|
-
# plus ttl. However, the product
|
1794
|
-
# GetProduct and ProductService.
|
1790
|
+
# Input only. The TTL (time to live) of the product. If it is set, it must be a
|
1791
|
+
# non-negative value, and expire_time is set as current timestamp plus ttl. The
|
1792
|
+
# derived expire_time is returned in the output and ttl is left blank when
|
1793
|
+
# retrieving the Product. If it is set, the product is not available for
|
1794
|
+
# SearchService.Search after current timestamp plus ttl. However, the product
|
1795
|
+
# can still be retrieved by ProductService.GetProduct and ProductService.
|
1796
|
+
# ListProducts.
|
1795
1797
|
# Corresponds to the JSON property `ttl`
|
1796
1798
|
# @return [String]
|
1797
1799
|
attr_accessor :ttl
|
@@ -2244,8 +2246,8 @@ module Google
|
|
2244
2246
|
|
2245
2247
|
# If set to true, and the Product is not found, the fulfillment information will
|
2246
2248
|
# still be processed and retained for at most 1 day and processed once the
|
2247
|
-
# Product is created. If set to false,
|
2248
|
-
#
|
2249
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
2250
|
+
# Product is not found.
|
2249
2251
|
# Corresponds to the JSON property `allowMissing`
|
2250
2252
|
# @return [Boolean]
|
2251
2253
|
attr_accessor :allow_missing
|
@@ -2407,6 +2409,12 @@ module Google
|
|
2407
2409
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec]
|
2408
2410
|
attr_accessor :query_expansion_spec
|
2409
2411
|
|
2412
|
+
# The search mode of the search request. If not specified, a single search
|
2413
|
+
# request triggers both product search and faceted search.
|
2414
|
+
# Corresponds to the JSON property `searchMode`
|
2415
|
+
# @return [String]
|
2416
|
+
attr_accessor :search_mode
|
2417
|
+
|
2410
2418
|
# Information of an end user.
|
2411
2419
|
# Corresponds to the JSON property `userInfo`
|
2412
2420
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
|
@@ -2419,16 +2427,17 @@ module Google
|
|
2419
2427
|
# and a fulfillment ID must be provided in the format of "fulfillmentType.
|
2420
2428
|
# fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
|
2421
2429
|
# fulfillment type and "store123" is the store ID. Supported keys are: *
|
2422
|
-
# colorFamilies * price * originalPrice * discount *
|
2423
|
-
# is any key in the Product.attributes map. *
|
2424
|
-
#
|
2425
|
-
# shipToStore.id, where id is any
|
2426
|
-
# type "ship-to-store". *
|
2427
|
-
#
|
2428
|
-
#
|
2429
|
-
#
|
2430
|
-
#
|
2431
|
-
#
|
2430
|
+
# colorFamilies * price * originalPrice * discount * inventory(place_id,price) *
|
2431
|
+
# attributes.key, where key is any key in the Product.attributes map. *
|
2432
|
+
# pickupInStore.id, where id is any FulfillmentInfo.place_ids for
|
2433
|
+
# FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where id is any
|
2434
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". *
|
2435
|
+
# sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for
|
2436
|
+
# FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is
|
2437
|
+
# any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". *
|
2438
|
+
# customFulfillment1.id, where id is any FulfillmentInfo.place_ids for
|
2439
|
+
# FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any
|
2440
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
|
2432
2441
|
# customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
|
2433
2442
|
# FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
|
2434
2443
|
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
|
@@ -2468,6 +2477,7 @@ module Google
|
|
2468
2477
|
@page_token = args[:page_token] if args.key?(:page_token)
|
2469
2478
|
@query = args[:query] if args.key?(:query)
|
2470
2479
|
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
|
2480
|
+
@search_mode = args[:search_mode] if args.key?(:search_mode)
|
2471
2481
|
@user_info = args[:user_info] if args.key?(:user_info)
|
2472
2482
|
@variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
|
2473
2483
|
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
|
@@ -2646,7 +2656,8 @@ module Google
|
|
2646
2656
|
# * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
|
2647
2657
|
# customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
|
2648
2658
|
# customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
|
2649
|
-
# discount" * "rating" * "ratingCount" * "attributes.key"
|
2659
|
+
# discount" * "rating" * "ratingCount" * "attributes.key" * "inventory(place_id,
|
2660
|
+
# price)"
|
2650
2661
|
# Corresponds to the JSON property `key`
|
2651
2662
|
# @return [String]
|
2652
2663
|
attr_accessor :key
|
@@ -3011,8 +3022,8 @@ module Google
|
|
3011
3022
|
|
3012
3023
|
# If set to true, and the Product with name Product.name is not found, the
|
3013
3024
|
# inventory update will still be processed and retained for at most 1 day until
|
3014
|
-
# the Product is created. If set to false,
|
3015
|
-
#
|
3025
|
+
# the Product is created. If set to false, a NOT_FOUND error is returned if the
|
3026
|
+
# Product is not found.
|
3016
3027
|
# Corresponds to the JSON property `allowMissing`
|
3017
3028
|
# @return [Boolean]
|
3018
3029
|
attr_accessor :allow_missing
|
@@ -3431,8 +3442,8 @@ module Google
|
|
3431
3442
|
end
|
3432
3443
|
end
|
3433
3444
|
|
3434
|
-
# Response of the
|
3435
|
-
#
|
3445
|
+
# Response of the AddFulfillmentPlacesRequest. Currently empty because there is
|
3446
|
+
# no meaningful response populated from the AddFulfillmentPlaces method.
|
3436
3447
|
class GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse
|
3437
3448
|
include Google::Apis::Core::Hashable
|
3438
3449
|
|
@@ -3872,8 +3883,8 @@ module Google
|
|
3872
3883
|
end
|
3873
3884
|
end
|
3874
3885
|
|
3875
|
-
# Response of the
|
3876
|
-
#
|
3886
|
+
# Response of the AddFulfillmentPlacesRequest. Currently empty because there is
|
3887
|
+
# no meaningful response populated from the AddFulfillmentPlaces method.
|
3877
3888
|
class GoogleCloudRetailV2betaAddFulfillmentPlacesResponse
|
3878
3889
|
include Google::Apis::Core::Hashable
|
3879
3890
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211021"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1340,6 +1340,7 @@ module Google
|
|
1340
1340
|
property :query, as: 'query'
|
1341
1341
|
property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
|
1342
1342
|
|
1343
|
+
property :search_mode, as: 'searchMode'
|
1343
1344
|
property :user_info, as: 'userInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo::Representation
|
1344
1345
|
|
1345
1346
|
collection :variant_rollup_keys, as: 'variantRollupKeys'
|
@@ -589,7 +589,6 @@ module Google
|
|
589
589
|
# @param [String] name
|
590
590
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
591
591
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
592
|
-
# The branch ID must be "default_branch".
|
593
592
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Product] google_cloud_retail_v2_product_object
|
594
593
|
# @param [Boolean] allow_missing
|
595
594
|
# If set to true, and the Product is not found, a new Product will be created.
|
@@ -697,7 +696,6 @@ module Google
|
|
697
696
|
# @param [String] name
|
698
697
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
699
698
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
700
|
-
# The branch ID must be "default_branch".
|
701
699
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SetInventoryRequest] google_cloud_retail_v2_set_inventory_request_object
|
702
700
|
# @param [String] fields
|
703
701
|
# Selector specifying which fields to include in a partial response.
|
@@ -888,9 +886,8 @@ module Google
|
|
888
886
|
# @param [String] placement
|
889
887
|
# Required. The resource name of the search engine placement, such as `projects/*
|
890
888
|
# /locations/global/catalogs/default_catalog/placements/default_search`. This
|
891
|
-
# field is used to identify the
|
892
|
-
#
|
893
|
-
# default_search`.
|
889
|
+
# field is used to identify the serving configuration name and the set of models
|
890
|
+
# that will be used to make the search.
|
894
891
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
895
892
|
# @param [String] fields
|
896
893
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.19.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|