google-apis-retail_v2 0.5.0 → 0.10.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 +22 -0
- data/lib/google/apis/retail_v2.rb +1 -1
- data/lib/google/apis/retail_v2/classes.rb +42 -25
- data/lib/google/apis/retail_v2/gem_version.rb +3 -3
- data/lib/google/apis/retail_v2/service.rb +2 -4
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 179aee4191d5ed180874e4f0bf1fd128e6767d1456a3235d7fcc0667fd32d0b9
|
4
|
+
data.tar.gz: db056efc0584666c5ed9338ff34455949acd063cd3ed7ad144683208ed558a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03440fe5f55343c6f461caa64c5084fbc48bf08c31766a2ead76f18fdb2453c52d4fe63bb968194e10915a63ef5b3b526476865953a9c5affb3a8548af3637ae
|
7
|
+
data.tar.gz: c7033cef9e66081dc8816a5a147df757d0fd9f0b81d37658ff3a79d87549b46483ce3a62d3c83b07946f3b2594c94dbdee3c96f929f553433af06836ba03e4b3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.10.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210614
|
6
|
+
|
7
|
+
### v0.9.0 (2021-06-07)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210528
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.8.0 (2021-05-22)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210514
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.7.0 (2021-05-11)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210430
|
20
|
+
|
21
|
+
### v0.6.0 (2021-04-02)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210326
|
24
|
+
|
3
25
|
### v0.5.0 (2021-03-20)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210312
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# This is NOT the gem version.
|
32
32
|
VERSION = 'V2'
|
33
33
|
|
34
|
-
#
|
34
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
35
35
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
36
|
end
|
37
37
|
end
|
@@ -197,7 +197,8 @@ module Google
|
|
197
197
|
# @return [String]
|
198
198
|
attr_accessor :catalog_item
|
199
199
|
|
200
|
-
#
|
200
|
+
# Cloud Storage file path of the import source. Can be set for batch operation
|
201
|
+
# error.
|
201
202
|
# Corresponds to the JSON property `gcsPath`
|
202
203
|
# @return [String]
|
203
204
|
attr_accessor :gcs_path
|
@@ -307,8 +308,8 @@ module Google
|
|
307
308
|
# @return [String]
|
308
309
|
attr_accessor :gcs_staging_dir
|
309
310
|
|
310
|
-
# The project
|
311
|
-
# length limit of 128 characters. If not specified, inherits the project
|
311
|
+
# The project ID (can be project # or ID) that the BigQuery source is in with a
|
312
|
+
# length limit of 128 characters. If not specified, inherits the project ID from
|
312
313
|
# the parent request.
|
313
314
|
# Corresponds to the JSON property `projectId`
|
314
315
|
# @return [String]
|
@@ -409,7 +410,7 @@ module Google
|
|
409
410
|
# product imports: * `product` (default): One JSON Product per line. Each
|
410
411
|
# product must have a valid Product.id. * `product_merchant_center`: See [
|
411
412
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
412
|
-
# recommendations-ai/docs/upload-catalog#
|
413
|
+
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
413
414
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
414
415
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719?
|
415
416
|
# hl=en.
|
@@ -422,8 +423,8 @@ module Google
|
|
422
423
|
# bucket/directory/object.json`) or a pattern matching one or more files, such
|
423
424
|
# as `gs://bucket/directory/*.json`. A request can contain at most 100 files,
|
424
425
|
# and each file can be up to 2 GB. See [Importing product information](https://
|
425
|
-
# cloud.google.com/recommendations-ai/docs/upload-catalog) for the
|
426
|
-
# format and setup instructions.
|
426
|
+
# cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the
|
427
|
+
# expected file format and setup instructions.
|
427
428
|
# Corresponds to the JSON property `inputUris`
|
428
429
|
# @return [Array<String>]
|
429
430
|
attr_accessor :input_uris
|
@@ -703,12 +704,17 @@ module Google
|
|
703
704
|
# @return [String]
|
704
705
|
attr_accessor :filter
|
705
706
|
|
706
|
-
# The labels
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
707
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
708
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
709
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
710
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
711
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
712
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
713
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
714
|
+
# a label must be unique. However, you can use the same key with multiple
|
715
|
+
# resources. * Keys must start with a lowercase letter or international
|
716
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
717
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
712
718
|
# Corresponds to the JSON property `labels`
|
713
719
|
# @return [Hash<String,String>]
|
714
720
|
attr_accessor :labels
|
@@ -735,7 +741,14 @@ module Google
|
|
735
741
|
# being clicked/purchased given the user's context and history. * `
|
736
742
|
# strictFiltering`: Boolean. True by default. If set to false, the service will
|
737
743
|
# return generic (unfiltered) popular products instead of empty if your filter
|
738
|
-
# blocks all prediction results.
|
744
|
+
# blocks all prediction results. * `priceRerankLevel`: String. Default empty. If
|
745
|
+
# set to be non-empty, then it needs to be one of `'no-price-reranking', 'low-
|
746
|
+
# price-reranking', 'medium-price-reranking', 'high-price-reranking'`. This
|
747
|
+
# gives request level control and adjust prediction results based on product
|
748
|
+
# price. * `diversityLevel`: String. Default empty. If set to be non-empty, then
|
749
|
+
# it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
|
750
|
+
# high-diversity', 'auto-diversity'`. This gives request level control and
|
751
|
+
# adjust prediction results based on product category.
|
739
752
|
# Corresponds to the JSON property `params`
|
740
753
|
# @return [Hash<String,Object>]
|
741
754
|
attr_accessor :params
|
@@ -899,7 +912,7 @@ module Google
|
|
899
912
|
# product, or age of a customer. For example: `` "vendor": `"text": ["vendor123",
|
900
913
|
# "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
|
901
914
|
# :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
|
902
|
-
# INVALID_ARGUMENT error is returned: * Max entries count:
|
915
|
+
# INVALID_ARGUMENT error is returned: * Max entries count: 200 by default; 100
|
903
916
|
# for Type.VARIANT. * The key must be a UTF-8 encoded string with a length limit
|
904
917
|
# of 128 characters.
|
905
918
|
# Corresponds to the JSON property `attributes`
|
@@ -1016,7 +1029,8 @@ module Google
|
|
1016
1029
|
# @return [String]
|
1017
1030
|
attr_accessor :title
|
1018
1031
|
|
1019
|
-
# Immutable. The type of the product.
|
1032
|
+
# Immutable. The type of the product. Default to Catalog.product_level_config.
|
1033
|
+
# ingestion_product_type if unset.
|
1020
1034
|
# Corresponds to the JSON property `type`
|
1021
1035
|
# @return [String]
|
1022
1036
|
attr_accessor :type
|
@@ -1149,8 +1163,8 @@ module Google
|
|
1149
1163
|
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
1150
1164
|
# error is returned. If this field is `variant` and
|
1151
1165
|
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
1152
|
-
# is returned. See [Using
|
1153
|
-
# catalog#
|
1166
|
+
# is returned. See [Using product levels](https://cloud.google.com/retail/
|
1167
|
+
# recommendations-ai/docs/catalog#product-levels) for more details.
|
1154
1168
|
# Corresponds to the JSON property `ingestionProductType`
|
1155
1169
|
# @return [String]
|
1156
1170
|
attr_accessor :ingestion_product_type
|
@@ -1163,8 +1177,8 @@ module Google
|
|
1163
1177
|
# the item group. If this field is set to an invalid value other than these, an
|
1164
1178
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
1165
1179
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
1166
|
-
# See [Using
|
1167
|
-
# levels) for more details.
|
1180
|
+
# See [Using product levels](https://cloud.google.com/retail/recommendations-ai/
|
1181
|
+
# docs/catalog#product-levels) for more details.
|
1168
1182
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
1169
1183
|
# @return [String]
|
1170
1184
|
attr_accessor :merchant_center_product_id_field
|
@@ -1399,11 +1413,12 @@ module Google
|
|
1399
1413
|
|
1400
1414
|
# Required. User event type. Allowed values are: * `add-to-cart`: Products being
|
1401
1415
|
# added to cart. * `category-page-view`: Special pages such as sale or promotion
|
1402
|
-
# pages viewed. * `
|
1403
|
-
# view`:
|
1404
|
-
# * `promotion-
|
1405
|
-
#
|
1406
|
-
#
|
1416
|
+
# pages viewed. * `completion`: Completion query result showed/clicked. * `
|
1417
|
+
# detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
|
1418
|
+
# viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
|
1419
|
+
# not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
|
1420
|
+
# finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
|
1421
|
+
# User viewing a shopping cart.
|
1407
1422
|
# Corresponds to the JSON property `eventType`
|
1408
1423
|
# @return [String]
|
1409
1424
|
attr_accessor :event_type
|
@@ -1490,7 +1505,9 @@ module Google
|
|
1490
1505
|
# a visitor on a single device. This unique identifier should not change if the
|
1491
1506
|
# visitor log in/out of the website. The field must be a UTF-8 encoded string
|
1492
1507
|
# with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
|
1493
|
-
# returned.
|
1508
|
+
# returned. The field should not contain PII or user-data. We recommend to use
|
1509
|
+
# Google Analystics [Client ID](https://developers.google.com/analytics/
|
1510
|
+
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
1494
1511
|
# Corresponds to the JSON property `visitorId`
|
1495
1512
|
# @return [String]
|
1496
1513
|
attr_accessor :visitor_id
|
@@ -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.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210614"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,10 +100,8 @@ module Google
|
|
100
100
|
# Required. Immutable. The fully qualified resource name of the catalog.
|
101
101
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Catalog] google_cloud_retail_v2_catalog_object
|
102
102
|
# @param [String] update_mask
|
103
|
-
# Indicates which fields in the provided Catalog to update. If
|
104
|
-
#
|
105
|
-
# currently supported field to update. If an unsupported or unknown field is
|
106
|
-
# provided, an INVALID_ARGUMENT error is returned.
|
103
|
+
# Indicates which fields in the provided Catalog to update. If an unsupported or
|
104
|
+
# unknown field is provided, an INVALID_ARGUMENT error is returned.
|
107
105
|
# @param [String] fields
|
108
106
|
# Selector specifying which fields to include in a partial response.
|
109
107
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.10.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-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Retail API V2. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.10.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Retail API V2
|