google-apis-retail_v2 0.23.0 → 0.27.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_v2/classes.rb +54 -53
- data/lib/google/apis/retail_v2/gem_version.rb +3 -3
- data/lib/google/apis/retail_v2/representations.rb +15 -24
- 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: aabae2c3c0eeb2902db7cc0ae776090140f88f54b756fc48582afac856df59f6
|
4
|
+
data.tar.gz: ac7abf0ce698c0d6dad2d95d368086a865d956e3a74d8b68173e5da72a54fda5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e14fd09be344914f7c2c1b48d0949e2f3b1f97f2b16de37d05086c1881356c915e54736a6905004e97c96be036dea07556cdf220b44910d94d1796eb86fa4c6
|
7
|
+
data.tar.gz: 992e443e049a016f75e9422319aa953eb045fe19e87bd6e3c0a2a60f28425be44d1cf4549699119d630c00f0ede33de8d61a15bb1c46b22aa1fef107fb7e672a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.27.0 (2022-02-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220127
|
6
|
+
|
7
|
+
### v0.26.0 (2022-01-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220121
|
10
|
+
|
11
|
+
### v0.25.0 (2022-01-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220106
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
16
|
+
### v0.24.0 (2021-12-16)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211210
|
19
|
+
|
3
20
|
### v0.23.0 (2021-12-09)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20211203
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/retail_v2"
|
|
51
51
|
client = Google::Apis::RetailV2::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.
|
@@ -777,6 +777,9 @@ module Google
|
|
777
777
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
778
778
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
779
779
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
|
780
|
+
# Supported values for control imports: * 'control' (default): One JSON Control
|
781
|
+
# per line. Supported values for catalog attribute imports: * 'catalog_attribute'
|
782
|
+
# (default): One CSV CatalogAttribute per line.
|
780
783
|
# Corresponds to the JSON property `dataSchema`
|
781
784
|
# @return [String]
|
782
785
|
attr_accessor :data_schema
|
@@ -1430,8 +1433,8 @@ module Google
|
|
1430
1433
|
attr_accessor :original_price
|
1431
1434
|
|
1432
1435
|
# Price of the product. Google Merchant Center property [price](https://support.
|
1433
|
-
# google.com/merchants/answer/6324371). Schema.org property [Offer.
|
1434
|
-
#
|
1436
|
+
# google.com/merchants/answer/6324371). Schema.org property [Offer.price](https:/
|
1437
|
+
# /schema.org/price).
|
1435
1438
|
# Corresponds to the JSON property `price`
|
1436
1439
|
# @return [Float]
|
1437
1440
|
attr_accessor :price
|
@@ -1579,7 +1582,9 @@ module Google
|
|
1579
1582
|
# @return [Array<String>]
|
1580
1583
|
attr_accessor :categories
|
1581
1584
|
|
1582
|
-
# The id of the collection members when type is Type.COLLECTION.
|
1585
|
+
# The id of the collection members when type is Type.COLLECTION. Non-existent
|
1586
|
+
# product ids are allowed. The type of the members must be either Type.PRIMARY
|
1587
|
+
# or Type.VARIANT otherwise and INVALID_ARGUMENT error is thrown. Should not set
|
1583
1588
|
# it for other types. A maximum of 1000 values are allowed. Otherwise, an
|
1584
1589
|
# INVALID_ARGUMENT error is return.
|
1585
1590
|
# Corresponds to the JSON property `collectionMemberIds`
|
@@ -1592,12 +1597,12 @@ module Google
|
|
1592
1597
|
attr_accessor :color_info
|
1593
1598
|
|
1594
1599
|
# The condition of the product. Strongly encouraged to use the standard values: "
|
1595
|
-
# new", "refurbished", "used". A maximum of
|
1596
|
-
#
|
1597
|
-
#
|
1598
|
-
#
|
1599
|
-
#
|
1600
|
-
#
|
1600
|
+
# new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
|
1601
|
+
# value must be a UTF-8 encoded string with a length limit of 128 characters.
|
1602
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
1603
|
+
# Google Merchant Center property [condition](https://support.google.com/
|
1604
|
+
# merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
|
1605
|
+
# schema.org/itemCondition).
|
1601
1606
|
# Corresponds to the JSON property `conditions`
|
1602
1607
|
# @return [Array<String>]
|
1603
1608
|
attr_accessor :conditions
|
@@ -1718,7 +1723,8 @@ module Google
|
|
1718
1723
|
attr_accessor :primary_product_id
|
1719
1724
|
|
1720
1725
|
# The promotions applied to the product. A maximum of 10 values are allowed per
|
1721
|
-
# Product.
|
1726
|
+
# Product. Only Promotion.promotion_id will be used, other fields will be
|
1727
|
+
# ignored if set.
|
1722
1728
|
# Corresponds to the JSON property `promotions`
|
1723
1729
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Promotion>]
|
1724
1730
|
attr_accessor :promotions
|
@@ -1997,7 +2003,7 @@ module Google
|
|
1997
2003
|
class GoogleCloudRetailV2Promotion
|
1998
2004
|
include Google::Apis::Core::Hashable
|
1999
2005
|
|
2000
|
-
# ID of the promotion. For example, "free gift". The value
|
2006
|
+
# ID of the promotion. For example, "free gift". The value must be a UTF-8
|
2001
2007
|
# encoded string with a length limit of 128 characters, and match the pattern: `
|
2002
2008
|
# a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
|
2003
2009
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
|
@@ -2402,6 +2408,11 @@ module Google
|
|
2402
2408
|
# @return [String]
|
2403
2409
|
attr_accessor :page_token
|
2404
2410
|
|
2411
|
+
# The specification for personalization.
|
2412
|
+
# Corresponds to the JSON property `personalizationSpec`
|
2413
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec]
|
2414
|
+
attr_accessor :personalization_spec
|
2415
|
+
|
2405
2416
|
# Raw search query.
|
2406
2417
|
# Corresponds to the JSON property `query`
|
2407
2418
|
# @return [String]
|
@@ -2456,9 +2467,9 @@ module Google
|
|
2456
2467
|
# Required. A unique identifier for tracking visitors. For example, this could
|
2457
2468
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
2458
2469
|
# a visitor on a single device. This unique identifier should not change if the
|
2459
|
-
# visitor logs in or out of the website.
|
2460
|
-
#
|
2461
|
-
# error is returned.
|
2470
|
+
# visitor logs in or out of the website. This should be the same identifier as
|
2471
|
+
# UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length
|
2472
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2462
2473
|
# Corresponds to the JSON property `visitorId`
|
2463
2474
|
# @return [String]
|
2464
2475
|
attr_accessor :visitor_id
|
@@ -2480,6 +2491,7 @@ module Google
|
|
2480
2491
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
2481
2492
|
@page_size = args[:page_size] if args.key?(:page_size)
|
2482
2493
|
@page_token = args[:page_token] if args.key?(:page_token)
|
2494
|
+
@personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
|
2483
2495
|
@query = args[:query] if args.key?(:query)
|
2484
2496
|
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
|
2485
2497
|
@search_mode = args[:search_mode] if args.key?(:search_mode)
|
@@ -2729,6 +2741,25 @@ module Google
|
|
2729
2741
|
end
|
2730
2742
|
end
|
2731
2743
|
|
2744
|
+
# The specification for personalization.
|
2745
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
2746
|
+
include Google::Apis::Core::Hashable
|
2747
|
+
|
2748
|
+
# Defaults to Mode.AUTO.
|
2749
|
+
# Corresponds to the JSON property `mode`
|
2750
|
+
# @return [String]
|
2751
|
+
attr_accessor :mode
|
2752
|
+
|
2753
|
+
def initialize(**args)
|
2754
|
+
update!(**args)
|
2755
|
+
end
|
2756
|
+
|
2757
|
+
# Update properties of this object
|
2758
|
+
def update!(**args)
|
2759
|
+
@mode = args[:mode] if args.key?(:mode)
|
2760
|
+
end
|
2761
|
+
end
|
2762
|
+
|
2732
2763
|
# Specification to determine under which conditions query expansion should occur.
|
2733
2764
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
2734
2765
|
include Google::Apis::Core::Hashable
|
@@ -3048,10 +3079,9 @@ module Google
|
|
3048
3079
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2Product]
|
3049
3080
|
attr_accessor :inventory
|
3050
3081
|
|
3051
|
-
# Indicates which inventory fields in the provided Product to update.
|
3052
|
-
#
|
3053
|
-
#
|
3054
|
-
# returned and the entire update will be ignored.
|
3082
|
+
# Indicates which inventory fields in the provided Product to update. At least
|
3083
|
+
# one field must be provided. If an unsupported or unknown field is provided, an
|
3084
|
+
# INVALID_ARGUMENT error is returned and the entire update will be ignored.
|
3055
3085
|
# Corresponds to the JSON property `setMask`
|
3056
3086
|
# @return [String]
|
3057
3087
|
attr_accessor :set_mask
|
@@ -3216,12 +3246,12 @@ module Google
|
|
3216
3246
|
|
3217
3247
|
# The main product details related to the event. This field is required for the
|
3218
3248
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
3219
|
-
# complete` In a `search` event, this field represents the products
|
3220
|
-
# the end user on the current page (the end user may have not
|
3221
|
-
# the whole page yet). When a new page is returned to the end
|
3222
|
-
# pagination/filtering/ordering even for the same query, a new `
|
3223
|
-
# with different product_details is desired. The end user may have
|
3224
|
-
# browsing the whole page yet.
|
3249
|
+
# complete` * `search` In a `search` event, this field represents the products
|
3250
|
+
# returned to the end user on the current page (the end user may have not
|
3251
|
+
# finished browsing the whole page yet). When a new page is returned to the end
|
3252
|
+
# user, after pagination/filtering/ordering even for the same query, a new `
|
3253
|
+
# search` event with different product_details is desired. The end user may have
|
3254
|
+
# not finished browsing the whole page yet.
|
3225
3255
|
# Corresponds to the JSON property `productDetails`
|
3226
3256
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail>]
|
3227
3257
|
attr_accessor :product_details
|
@@ -3914,35 +3944,6 @@ module Google
|
|
3914
3944
|
end
|
3915
3945
|
end
|
3916
3946
|
|
3917
|
-
# Metadata related to the progress of the SetLocalInventories operation.
|
3918
|
-
# Currently empty because there is no meaningful metadata populated from the
|
3919
|
-
# SetLocalInventories method.
|
3920
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
3921
|
-
include Google::Apis::Core::Hashable
|
3922
|
-
|
3923
|
-
def initialize(**args)
|
3924
|
-
update!(**args)
|
3925
|
-
end
|
3926
|
-
|
3927
|
-
# Update properties of this object
|
3928
|
-
def update!(**args)
|
3929
|
-
end
|
3930
|
-
end
|
3931
|
-
|
3932
|
-
# Response of the SetLocalInventories API. Currently empty because there is no
|
3933
|
-
# meaningful response populated from the SetLocalInventories method.
|
3934
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
3935
|
-
include Google::Apis::Core::Hashable
|
3936
|
-
|
3937
|
-
def initialize(**args)
|
3938
|
-
update!(**args)
|
3939
|
-
end
|
3940
|
-
|
3941
|
-
# Update properties of this object
|
3942
|
-
def update!(**args)
|
3943
|
-
end
|
3944
|
-
end
|
3945
|
-
|
3946
3947
|
# A summary of import result. The UserEventImportSummary summarizes the import
|
3947
3948
|
# status for user events.
|
3948
3949
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
@@ -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.27.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 = "20220127"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -400,6 +400,12 @@ module Google
|
|
400
400
|
include Google::Apis::Core::JsonObjectSupport
|
401
401
|
end
|
402
402
|
|
403
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
403
409
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
404
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
411
|
|
@@ -628,18 +634,6 @@ module Google
|
|
628
634
|
include Google::Apis::Core::JsonObjectSupport
|
629
635
|
end
|
630
636
|
|
631
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
632
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
-
|
634
|
-
include Google::Apis::Core::JsonObjectSupport
|
635
|
-
end
|
636
|
-
|
637
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
638
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
-
|
640
|
-
include Google::Apis::Core::JsonObjectSupport
|
641
|
-
end
|
642
|
-
|
643
637
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
644
638
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
645
639
|
|
@@ -1373,6 +1367,8 @@ module Google
|
|
1373
1367
|
collection :page_categories, as: 'pageCategories'
|
1374
1368
|
property :page_size, as: 'pageSize'
|
1375
1369
|
property :page_token, as: 'pageToken'
|
1370
|
+
property :personalization_spec, as: 'personalizationSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec::Representation
|
1371
|
+
|
1376
1372
|
property :query, as: 'query'
|
1377
1373
|
property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
|
1378
1374
|
|
@@ -1432,6 +1428,13 @@ module Google
|
|
1432
1428
|
end
|
1433
1429
|
end
|
1434
1430
|
|
1431
|
+
class GoogleCloudRetailV2SearchRequestPersonalizationSpec
|
1432
|
+
# @private
|
1433
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1434
|
+
property :mode, as: 'mode'
|
1435
|
+
end
|
1436
|
+
end
|
1437
|
+
|
1435
1438
|
class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
|
1436
1439
|
# @private
|
1437
1440
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1768,18 +1771,6 @@ module Google
|
|
1768
1771
|
end
|
1769
1772
|
end
|
1770
1773
|
|
1771
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
1772
|
-
# @private
|
1773
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1774
|
-
end
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
1778
|
-
# @private
|
1779
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1780
|
-
end
|
1781
|
-
end
|
1782
|
-
|
1783
1774
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
1784
1775
|
# @private
|
1785
1776
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.27.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-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -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 V2
|