google-apis-retail_v2alpha 0.35.0 → 0.38.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba10e95f3d815683efb03c3323757ae9d7dc0269f79538bafbd756f94860ad5a
|
4
|
+
data.tar.gz: 6c74625a3f65698985a51145dd3e3d67acf93964cd37549b266abb443b791f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '04878e1823e9576c8a5ea36b9de1fbb577b68e8137a4a23deeed3548c0d6f55e00f3e8d418de2e27c23560927422b08625e756c98c0d96c61f2b82b51c7a0c96'
|
7
|
+
data.tar.gz: '09aa565835ca273ab0058290cb62a688cc058c2117d71dd053be92283ccfb848d98877277e1e3671e4ab043ac0b6621a9958c4df61b06c7fad3fdda44bdda3d1'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.38.0 (2022-04-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220421
|
6
|
+
|
7
|
+
### v0.37.0 (2022-04-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220414
|
10
|
+
|
11
|
+
### v0.36.0 (2022-04-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220408
|
14
|
+
|
3
15
|
### v0.35.0 (2022-03-31)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220324
|
@@ -1540,14 +1540,6 @@ module Google
|
|
1540
1540
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule]
|
1541
1541
|
attr_accessor :rule
|
1542
1542
|
|
1543
|
-
# Required. Specifies the use case for the control. Affects what condition
|
1544
|
-
# fields can be set. Only settable by search controls. Will default to
|
1545
|
-
# SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
|
1546
|
-
# search_solution_use_case per control.
|
1547
|
-
# Corresponds to the JSON property `searchSolutionUseCase`
|
1548
|
-
# @return [Array<String>]
|
1549
|
-
attr_accessor :search_solution_use_case
|
1550
|
-
|
1551
1543
|
# Required. Immutable. The solution types that the serving config is used for.
|
1552
1544
|
# Currently we support setting only one type of solution at creation time. Only `
|
1553
1545
|
# SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
|
@@ -1567,7 +1559,6 @@ module Google
|
|
1567
1559
|
@facet_spec = args[:facet_spec] if args.key?(:facet_spec)
|
1568
1560
|
@name = args[:name] if args.key?(:name)
|
1569
1561
|
@rule = args[:rule] if args.key?(:rule)
|
1570
|
-
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
1571
1562
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
1572
1563
|
end
|
1573
1564
|
end
|
@@ -1576,12 +1567,13 @@ module Google
|
|
1576
1567
|
class GoogleCloudRetailV2alphaCustomAttribute
|
1577
1568
|
include Google::Apis::Core::Hashable
|
1578
1569
|
|
1579
|
-
# This field
|
1580
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
1581
|
-
#
|
1582
|
-
#
|
1583
|
-
#
|
1584
|
-
#
|
1570
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
1571
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
1572
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
1573
|
+
# docs/attribute-config#config-modes). if true, custom attribute values are
|
1574
|
+
# indexed, so that it can be filtered, faceted or boosted in SearchService.
|
1575
|
+
# Search. This field is ignored in a UserEvent. See SearchRequest.filter,
|
1576
|
+
# SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
|
1585
1577
|
# Corresponds to the JSON property `indexable`
|
1586
1578
|
# @return [Boolean]
|
1587
1579
|
attr_accessor :indexable
|
@@ -1594,11 +1586,13 @@ module Google
|
|
1594
1586
|
# @return [Array<Float>]
|
1595
1587
|
attr_accessor :numbers
|
1596
1588
|
|
1597
|
-
# This field
|
1598
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
1599
|
-
#
|
1600
|
-
#
|
1601
|
-
#
|
1589
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
1590
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
1591
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
1592
|
+
# docs/attribute-config#config-modes). If true, custom attribute values are
|
1593
|
+
# searchable by text queries in SearchService.Search. This field is ignored in a
|
1594
|
+
# UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
|
1595
|
+
# is returned.
|
1602
1596
|
# Corresponds to the JSON property `searchable`
|
1603
1597
|
# @return [Boolean]
|
1604
1598
|
attr_accessor :searchable
|
@@ -2013,11 +2007,15 @@ module Google
|
|
2013
2007
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig]
|
2014
2008
|
attr_accessor :input_config
|
2015
2009
|
|
2016
|
-
# Pub/Sub topic for receiving notification. If this field is set, when
|
2017
|
-
# import is finished, a notification will be sent to specified Pub/Sub topic.
|
2010
|
+
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
2011
|
+
# the import is finished, a notification will be sent to specified Pub/Sub topic.
|
2018
2012
|
# The message data will be JSON string of a Operation. Format of the Pub/Sub
|
2019
|
-
# topic is `projects/`project`/topics/`topic``.
|
2020
|
-
# ImportProductsRequest.
|
2013
|
+
# topic is `projects/`project`/topics/`topic``. It has to be within the same
|
2014
|
+
# project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
|
2015
|
+
# customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
|
2016
|
+
# iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
|
2017
|
+
# the topic. Only supported when ImportProductsRequest.reconciliation_mode is
|
2018
|
+
# set to `FULL`.
|
2021
2019
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2022
2020
|
# @return [String]
|
2023
2021
|
attr_accessor :notification_pubsub_topic
|
@@ -2033,6 +2031,15 @@ module Google
|
|
2033
2031
|
# @return [String]
|
2034
2032
|
attr_accessor :request_id
|
2035
2033
|
|
2034
|
+
# If true, will perform the FULL import even if it would delete a large
|
2035
|
+
# proportion of the products in the default branch, which could potentially
|
2036
|
+
# cause outages if you have live predict/search traffic. Only supported when
|
2037
|
+
# ImportProductsRequest.reconciliation_mode is set to `FULL`.
|
2038
|
+
# Corresponds to the JSON property `skipDefaultBranchProtection`
|
2039
|
+
# @return [Boolean]
|
2040
|
+
attr_accessor :skip_default_branch_protection
|
2041
|
+
alias_method :skip_default_branch_protection?, :skip_default_branch_protection
|
2042
|
+
|
2036
2043
|
# Indicates which fields in the provided imported 'products' to update. If not
|
2037
2044
|
# set, will by default update all fields.
|
2038
2045
|
# Corresponds to the JSON property `updateMask`
|
@@ -2050,6 +2057,7 @@ module Google
|
|
2050
2057
|
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
|
2051
2058
|
@reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
|
2052
2059
|
@request_id = args[:request_id] if args.key?(:request_id)
|
2060
|
+
@skip_default_branch_protection = args[:skip_default_branch_protection] if args.key?(:skip_default_branch_protection)
|
2053
2061
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
2054
2062
|
end
|
2055
2063
|
end
|
@@ -2618,7 +2626,8 @@ module Google
|
|
2618
2626
|
attr_accessor :currency_code
|
2619
2627
|
|
2620
2628
|
# Price of the product without any discount. If zero, by default set to be the
|
2621
|
-
# price.
|
2629
|
+
# price. If set, original_price should be greater than or equal to price,
|
2630
|
+
# otherwise an INVALID_ARGUMENT error is thrown.
|
2622
2631
|
# Corresponds to the JSON property `originalPrice`
|
2623
2632
|
# @return [Float]
|
2624
2633
|
attr_accessor :original_price
|
@@ -3154,13 +3163,13 @@ module Google
|
|
3154
3163
|
# The type of Products allowed to be ingested into the catalog. Acceptable
|
3155
3164
|
# values are: * `primary` (default): You can ingest Products of all types. When
|
3156
3165
|
# ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
|
3157
|
-
# `variant
|
3158
|
-
# Product.primary_product_id cannot be empty. If
|
3159
|
-
# value other than these, an INVALID_ARGUMENT
|
3160
|
-
# is
|
3161
|
-
#
|
3162
|
-
# google.com/retail/
|
3163
|
-
# details.
|
3166
|
+
# `variant` (incompatible with Retail Search): You can only ingest Product.Type.
|
3167
|
+
# VARIANT Products. This means Product.primary_product_id cannot be empty. If
|
3168
|
+
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
3169
|
+
# error is returned. If this field is `variant` and
|
3170
|
+
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
3171
|
+
# is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
|
3172
|
+
# product-levels) for more details.
|
3164
3173
|
# Corresponds to the JSON property `ingestionProductType`
|
3165
3174
|
# @return [String]
|
3166
3175
|
attr_accessor :ingestion_product_type
|
@@ -3173,8 +3182,8 @@ module Google
|
|
3173
3182
|
# the item group. If this field is set to an invalid value other than these, an
|
3174
3183
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
3175
3184
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
3176
|
-
# See [
|
3177
|
-
#
|
3185
|
+
# See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
|
3186
|
+
# levels) for more details.
|
3178
3187
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
3179
3188
|
# @return [String]
|
3180
3189
|
attr_accessor :merchant_center_product_id_field
|
@@ -3323,7 +3332,7 @@ module Google
|
|
3323
3332
|
# `availability`: Double quoted Product.availability string. * `create_time` :
|
3324
3333
|
# in ISO 8601 "zulu" format. Supported syntax: * Comparators (">", "<", ">=", "<=
|
3325
3334
|
# ", "="). Examples: * create_time <= "2015-02-13T17:05:46Z" * availability = "
|
3326
|
-
# IN_STOCK
|
3335
|
+
# IN_STOCK" * Conjunctions ("AND") Examples: * create_time <= "2015-02-13T17:05:
|
3327
3336
|
# 46Z" AND availability = "PREORDER" * Disjunctions ("OR") Examples: *
|
3328
3337
|
# create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" * Can
|
3329
3338
|
# support nested queries. Examples: * (create_time <= "2015-02-13T17:05:46Z" AND
|
@@ -3331,7 +3340,7 @@ module Google
|
|
3331
3340
|
# availability = "IN_STOCK") * Filter Limits: * Filter should not contain more
|
3332
3341
|
# than 6 conditions. * Max nesting depth should not exceed 2 levels. Examples
|
3333
3342
|
# queries: * Delete back order products created before a timestamp. create_time <
|
3334
|
-
# = "2015-02-13T17:05:46Z" OR availability = "BACKORDER
|
3343
|
+
# = "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
|
3335
3344
|
# Corresponds to the JSON property `filter`
|
3336
3345
|
# @return [String]
|
3337
3346
|
attr_accessor :filter
|
@@ -4126,6 +4135,21 @@ module Google
|
|
4126
4135
|
# @return [String]
|
4127
4136
|
attr_accessor :filter
|
4128
4137
|
|
4138
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
4139
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
4140
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
4141
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
4142
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
4143
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
4144
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
4145
|
+
# a label must be unique. However, you can use the same key with multiple
|
4146
|
+
# resources. * Keys must start with a lowercase letter or international
|
4147
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
4148
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
4149
|
+
# Corresponds to the JSON property `labels`
|
4150
|
+
# @return [Hash<String,String>]
|
4151
|
+
attr_accessor :labels
|
4152
|
+
|
4129
4153
|
# A 0-indexed integer that specifies the current offset (that is, starting
|
4130
4154
|
# result location, amongst the Products deemed by the API as relevant) in search
|
4131
4155
|
# results. This field is only considered if page_token is unset. If this field
|
@@ -4175,7 +4199,8 @@ module Google
|
|
4175
4199
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestPersonalizationSpec]
|
4176
4200
|
attr_accessor :personalization_spec
|
4177
4201
|
|
4178
|
-
# Raw search query.
|
4202
|
+
# Raw search query. If this field is empty, the request is considered a category
|
4203
|
+
# browsing request and returned results are based on filter and page_categories.
|
4179
4204
|
# Corresponds to the JSON property `query`
|
4180
4205
|
# @return [String]
|
4181
4206
|
attr_accessor :query
|
@@ -4256,6 +4281,7 @@ module Google
|
|
4256
4281
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
4257
4282
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
4258
4283
|
@filter = args[:filter] if args.key?(:filter)
|
4284
|
+
@labels = args[:labels] if args.key?(:labels)
|
4259
4285
|
@offset = args[:offset] if args.key?(:offset)
|
4260
4286
|
@order_by = args[:order_by] if args.key?(:order_by)
|
4261
4287
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
@@ -4586,7 +4612,9 @@ module Google
|
|
4586
4612
|
# @return [String]
|
4587
4613
|
attr_accessor :attribution_token
|
4588
4614
|
|
4589
|
-
#
|
4615
|
+
# Contains the spell corrected query, if found. If the spell correction type is
|
4616
|
+
# AUTOMATIC, then the search results will be based on corrected_query, otherwise
|
4617
|
+
# the original query will be used for search.
|
4590
4618
|
# Corresponds to the JSON property `correctedQuery`
|
4591
4619
|
# @return [String]
|
4592
4620
|
attr_accessor :corrected_query
|
@@ -5224,9 +5252,9 @@ module Google
|
|
5224
5252
|
# @return [String]
|
5225
5253
|
attr_accessor :page_view_id
|
5226
5254
|
|
5227
|
-
# The main product details related to the event. This field is
|
5228
|
-
# following event types: * `add-to-cart` * `detail-page-view` * `
|
5229
|
-
# complete`
|
5255
|
+
# The main product details related to the event. This field is optional except
|
5256
|
+
# for the following event types: * `add-to-cart` * `detail-page-view` * `
|
5257
|
+
# purchase-complete` In a `search` event, this field represents the products
|
5230
5258
|
# returned to the end user on the current page (the end user may have not
|
5231
5259
|
# finished browsing the whole page yet). When a new page is returned to the end
|
5232
5260
|
# user, after pagination/filtering/ordering even for the same query, a new `
|
@@ -5281,10 +5309,12 @@ module Google
|
|
5281
5309
|
# Required. A unique identifier for tracking visitors. For example, this could
|
5282
5310
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
5283
5311
|
# a visitor on a single device. This unique identifier should not change if the
|
5284
|
-
# visitor log in/out of the website.
|
5285
|
-
#
|
5286
|
-
#
|
5287
|
-
#
|
5312
|
+
# visitor log in/out of the website. Don't set the field to the same fixed ID
|
5313
|
+
# for different users. This mixes the event history of those users together,
|
5314
|
+
# which results in degraded model quality. The field must be a UTF-8 encoded
|
5315
|
+
# string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
|
5316
|
+
# error is returned. The field should not contain PII or user-data. We recommend
|
5317
|
+
# to use Google Analystics [Client ID](https://developers.google.com/analytics/
|
5288
5318
|
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
5289
5319
|
# Corresponds to the JSON property `visitorId`
|
5290
5320
|
# @return [String]
|
@@ -5432,9 +5462,11 @@ module Google
|
|
5432
5462
|
attr_accessor :user_agent
|
5433
5463
|
|
5434
5464
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
5435
|
-
# such as a user name.
|
5436
|
-
#
|
5437
|
-
#
|
5465
|
+
# such as a user name. Don't set for anonymous users. Always use a hashed value
|
5466
|
+
# for this ID. Don't set the field to the same fixed ID for different users.
|
5467
|
+
# This mixes the event history of those users together, which results in
|
5468
|
+
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
5469
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
5438
5470
|
# Corresponds to the JSON property `userId`
|
5439
5471
|
# @return [String]
|
5440
5472
|
attr_accessor :user_id
|
@@ -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.38.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220421"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1465,7 +1465,6 @@ module Google
|
|
1465
1465
|
property :name, as: 'name'
|
1466
1466
|
property :rule, as: 'rule', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRule::Representation
|
1467
1467
|
|
1468
|
-
collection :search_solution_use_case, as: 'searchSolutionUseCase'
|
1469
1468
|
collection :solution_types, as: 'solutionTypes'
|
1470
1469
|
end
|
1471
1470
|
end
|
@@ -1595,6 +1594,7 @@ module Google
|
|
1595
1594
|
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
|
1596
1595
|
property :reconciliation_mode, as: 'reconciliationMode'
|
1597
1596
|
property :request_id, as: 'requestId'
|
1597
|
+
property :skip_default_branch_protection, as: 'skipDefaultBranchProtection'
|
1598
1598
|
property :update_mask, as: 'updateMask'
|
1599
1599
|
end
|
1600
1600
|
end
|
@@ -2110,6 +2110,7 @@ module Google
|
|
2110
2110
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec::Representation
|
2111
2111
|
|
2112
2112
|
property :filter, as: 'filter'
|
2113
|
+
hash :labels, as: 'labels'
|
2113
2114
|
property :offset, as: 'offset'
|
2114
2115
|
property :order_by, as: 'orderBy'
|
2115
2116
|
collection :page_categories, as: 'pageCategories'
|
@@ -896,7 +896,9 @@ module Google
|
|
896
896
|
# output only fields are NOT supported. If not set, all supported fields (the
|
897
897
|
# fields that are neither immutable nor output only) are updated. If an
|
898
898
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
899
|
-
# returned.
|
899
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
900
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
901
|
+
# patching product from the request, this key will be deleted after the update.
|
900
902
|
# @param [String] fields
|
901
903
|
# Selector specifying which fields to include in a partial response.
|
902
904
|
# @param [String] quota_user
|
@@ -1417,8 +1419,7 @@ module Google
|
|
1417
1419
|
# Makes a recommendation prediction.
|
1418
1420
|
# @param [String] placement
|
1419
1421
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1420
|
-
# catalogs/default_catalog/placements/*`
|
1421
|
-
# catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
|
1422
|
+
# catalogs/default_catalog/placements/*` The ID of the Recommendations AI
|
1422
1423
|
# placement. Before you can request predictions from your model, you must create
|
1423
1424
|
# at least one placement for it. For more information, see [Managing placements](
|
1424
1425
|
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
@@ -1459,10 +1460,9 @@ module Google
|
|
1459
1460
|
# feature.
|
1460
1461
|
# @param [String] placement
|
1461
1462
|
# Required. The resource name of the search engine placement, such as `projects/*
|
1462
|
-
# /locations/global/catalogs/default_catalog/placements/default_search
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
# configuration name and the set of models that will be used to make the search.
|
1463
|
+
# /locations/global/catalogs/default_catalog/placements/default_search`. This
|
1464
|
+
# field is used to identify the serving configuration name and the set of models
|
1465
|
+
# that will be used to make the search.
|
1466
1466
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
1467
1467
|
# @param [String] fields
|
1468
1468
|
# Selector specifying which fields to include in a partial response.
|
@@ -1717,46 +1717,6 @@ module Google
|
|
1717
1717
|
execute_or_queue_command(command, &block)
|
1718
1718
|
end
|
1719
1719
|
|
1720
|
-
# Makes a recommendation prediction.
|
1721
|
-
# @param [String] placement
|
1722
|
-
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1723
|
-
# catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
|
1724
|
-
# catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
|
1725
|
-
# placement. Before you can request predictions from your model, you must create
|
1726
|
-
# at least one placement for it. For more information, see [Managing placements](
|
1727
|
-
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
1728
|
-
# The full list of available placements can be seen at https://console.cloud.
|
1729
|
-
# google.com/recommendation/catalogs/default_catalog/placements
|
1730
|
-
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_predict_request_object
|
1731
|
-
# @param [String] fields
|
1732
|
-
# Selector specifying which fields to include in a partial response.
|
1733
|
-
# @param [String] quota_user
|
1734
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1735
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1736
|
-
# @param [Google::Apis::RequestOptions] options
|
1737
|
-
# Request-specific options
|
1738
|
-
#
|
1739
|
-
# @yield [result, err] Result & error if block supplied
|
1740
|
-
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse] parsed result object
|
1741
|
-
# @yieldparam err [StandardError] error object if request failed
|
1742
|
-
#
|
1743
|
-
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse]
|
1744
|
-
#
|
1745
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1746
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1747
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1748
|
-
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2alpha_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1749
|
-
command = make_simple_command(:post, 'v2alpha/{+placement}:predict', options)
|
1750
|
-
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest::Representation
|
1751
|
-
command.request_object = google_cloud_retail_v2alpha_predict_request_object
|
1752
|
-
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse::Representation
|
1753
|
-
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPredictResponse
|
1754
|
-
command.params['placement'] = placement unless placement.nil?
|
1755
|
-
command.query['fields'] = fields unless fields.nil?
|
1756
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1757
|
-
execute_or_queue_command(command, &block)
|
1758
|
-
end
|
1759
|
-
|
1760
1720
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1761
1721
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1762
1722
|
# the ServingConfig.
|
@@ -1794,45 +1754,6 @@ module Google
|
|
1794
1754
|
execute_or_queue_command(command, &block)
|
1795
1755
|
end
|
1796
1756
|
|
1797
|
-
# Performs a search. This feature is only available for users who have Retail
|
1798
|
-
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1799
|
-
# feature.
|
1800
|
-
# @param [String] placement
|
1801
|
-
# Required. The resource name of the search engine placement, such as `projects/*
|
1802
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1803
|
-
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1804
|
-
# default_serving_config` This field is used to identify the serving
|
1805
|
-
# configuration name and the set of models that will be used to make the search.
|
1806
|
-
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest] google_cloud_retail_v2alpha_search_request_object
|
1807
|
-
# @param [String] fields
|
1808
|
-
# Selector specifying which fields to include in a partial response.
|
1809
|
-
# @param [String] quota_user
|
1810
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1811
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1812
|
-
# @param [Google::Apis::RequestOptions] options
|
1813
|
-
# Request-specific options
|
1814
|
-
#
|
1815
|
-
# @yield [result, err] Result & error if block supplied
|
1816
|
-
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse] parsed result object
|
1817
|
-
# @yieldparam err [StandardError] error object if request failed
|
1818
|
-
#
|
1819
|
-
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse]
|
1820
|
-
#
|
1821
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1822
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1823
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1824
|
-
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2alpha_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1825
|
-
command = make_simple_command(:post, 'v2alpha/{+placement}:search', options)
|
1826
|
-
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequest::Representation
|
1827
|
-
command.request_object = google_cloud_retail_v2alpha_search_request_object
|
1828
|
-
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse::Representation
|
1829
|
-
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponse
|
1830
|
-
command.params['placement'] = placement unless placement.nil?
|
1831
|
-
command.query['fields'] = fields unless fields.nil?
|
1832
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1833
|
-
execute_or_queue_command(command, &block)
|
1834
|
-
end
|
1835
|
-
|
1836
1757
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1837
1758
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1838
1759
|
# only by the Retail API JavaScript pixel and Google Tag Manager. Users should
|
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.38.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: 2022-
|
11
|
+
date: 2022-05-02 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.38.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: []
|