google-apis-retail_v2beta 0.34.0 → 0.37.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: 9c8872e66072015b11b4854acf22e54e1b125ad2326b60212ce0165cfca56c6d
|
4
|
+
data.tar.gz: ac888547e2334f0e518a0df0fda257ab1a4b4acb0779b950e64e5d759bd151e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85eb21cb8589e762e47d5c3c1dc8bb8458734844b815240d25b10f4cdfa7d03dccbff90174c1c588cff13c920560e287882fe351c6b04aa325b6a73b6c38bb8c
|
7
|
+
data.tar.gz: 2b74eb8ed82ee65563f01ec19ac8d123422f2099bc85c4e57df01df9c1788b92604cdab9bc7eb72c01697b75b3dee61853f819d6d0ba859985a5312e0c0a99a5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.37.0 (2022-04-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220421
|
6
|
+
|
7
|
+
### v0.36.0 (2022-04-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220414
|
10
|
+
|
11
|
+
### v0.35.0 (2022-04-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220408
|
14
|
+
|
3
15
|
### v0.34.0 (2022-03-31)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220324
|
@@ -2106,14 +2106,6 @@ module Google
|
|
2106
2106
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule]
|
2107
2107
|
attr_accessor :rule
|
2108
2108
|
|
2109
|
-
# Required. Specifies the use case for the control. Affects what condition
|
2110
|
-
# fields can be set. Only settable by search controls. Will default to
|
2111
|
-
# SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
|
2112
|
-
# search_solution_use_case per control.
|
2113
|
-
# Corresponds to the JSON property `searchSolutionUseCase`
|
2114
|
-
# @return [Array<String>]
|
2115
|
-
attr_accessor :search_solution_use_case
|
2116
|
-
|
2117
2109
|
# Required. Immutable. The solution types that the serving config is used for.
|
2118
2110
|
# Currently we support setting only one type of solution at creation time. Only `
|
2119
2111
|
# SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
|
@@ -2133,7 +2125,6 @@ module Google
|
|
2133
2125
|
@facet_spec = args[:facet_spec] if args.key?(:facet_spec)
|
2134
2126
|
@name = args[:name] if args.key?(:name)
|
2135
2127
|
@rule = args[:rule] if args.key?(:rule)
|
2136
|
-
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
2137
2128
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
2138
2129
|
end
|
2139
2130
|
end
|
@@ -2142,12 +2133,13 @@ module Google
|
|
2142
2133
|
class GoogleCloudRetailV2betaCustomAttribute
|
2143
2134
|
include Google::Apis::Core::Hashable
|
2144
2135
|
|
2145
|
-
# This field
|
2146
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
2147
|
-
#
|
2148
|
-
#
|
2149
|
-
#
|
2150
|
-
#
|
2136
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
2137
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
2138
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
2139
|
+
# docs/attribute-config#config-modes). if true, custom attribute values are
|
2140
|
+
# indexed, so that it can be filtered, faceted or boosted in SearchService.
|
2141
|
+
# Search. This field is ignored in a UserEvent. See SearchRequest.filter,
|
2142
|
+
# SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
|
2151
2143
|
# Corresponds to the JSON property `indexable`
|
2152
2144
|
# @return [Boolean]
|
2153
2145
|
attr_accessor :indexable
|
@@ -2160,11 +2152,13 @@ module Google
|
|
2160
2152
|
# @return [Array<Float>]
|
2161
2153
|
attr_accessor :numbers
|
2162
2154
|
|
2163
|
-
# This field
|
2164
|
-
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG'
|
2165
|
-
#
|
2166
|
-
#
|
2167
|
-
#
|
2155
|
+
# This field is normally ignored unless AttributesConfig.attribute_config_level
|
2156
|
+
# of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
|
2157
|
+
# You may learn more on [configuration mode] (https://cloud.google.com/retail/
|
2158
|
+
# docs/attribute-config#config-modes). If true, custom attribute values are
|
2159
|
+
# searchable by text queries in SearchService.Search. This field is ignored in a
|
2160
|
+
# UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
|
2161
|
+
# is returned.
|
2168
2162
|
# Corresponds to the JSON property `searchable`
|
2169
2163
|
# @return [Boolean]
|
2170
2164
|
attr_accessor :searchable
|
@@ -2579,11 +2573,15 @@ module Google
|
|
2579
2573
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInputConfig]
|
2580
2574
|
attr_accessor :input_config
|
2581
2575
|
|
2582
|
-
# Pub/Sub topic for receiving notification. If this field is set, when
|
2583
|
-
# import is finished, a notification will be sent to specified Pub/Sub topic.
|
2576
|
+
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
2577
|
+
# the import is finished, a notification will be sent to specified Pub/Sub topic.
|
2584
2578
|
# The message data will be JSON string of a Operation. Format of the Pub/Sub
|
2585
|
-
# topic is `projects/`project`/topics/`topic``.
|
2586
|
-
# ImportProductsRequest.
|
2579
|
+
# topic is `projects/`project`/topics/`topic``. It has to be within the same
|
2580
|
+
# project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
|
2581
|
+
# customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
|
2582
|
+
# iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
|
2583
|
+
# the topic. Only supported when ImportProductsRequest.reconciliation_mode is
|
2584
|
+
# set to `FULL`.
|
2587
2585
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2588
2586
|
# @return [String]
|
2589
2587
|
attr_accessor :notification_pubsub_topic
|
@@ -3175,7 +3173,8 @@ module Google
|
|
3175
3173
|
attr_accessor :currency_code
|
3176
3174
|
|
3177
3175
|
# Price of the product without any discount. If zero, by default set to be the
|
3178
|
-
# price.
|
3176
|
+
# price. If set, original_price should be greater than or equal to price,
|
3177
|
+
# otherwise an INVALID_ARGUMENT error is thrown.
|
3179
3178
|
# Corresponds to the JSON property `originalPrice`
|
3180
3179
|
# @return [Float]
|
3181
3180
|
attr_accessor :original_price
|
@@ -3711,13 +3710,13 @@ module Google
|
|
3711
3710
|
# The type of Products allowed to be ingested into the catalog. Acceptable
|
3712
3711
|
# values are: * `primary` (default): You can ingest Products of all types. When
|
3713
3712
|
# ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
|
3714
|
-
# `variant
|
3715
|
-
# Product.primary_product_id cannot be empty. If
|
3716
|
-
# value other than these, an INVALID_ARGUMENT
|
3717
|
-
# is
|
3718
|
-
#
|
3719
|
-
# google.com/retail/
|
3720
|
-
# details.
|
3713
|
+
# `variant` (incompatible with Retail Search): You can only ingest Product.Type.
|
3714
|
+
# VARIANT Products. This means Product.primary_product_id cannot be empty. If
|
3715
|
+
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
3716
|
+
# error is returned. If this field is `variant` and
|
3717
|
+
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
3718
|
+
# is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
|
3719
|
+
# product-levels) for more details.
|
3721
3720
|
# Corresponds to the JSON property `ingestionProductType`
|
3722
3721
|
# @return [String]
|
3723
3722
|
attr_accessor :ingestion_product_type
|
@@ -3730,8 +3729,8 @@ module Google
|
|
3730
3729
|
# the item group. If this field is set to an invalid value other than these, an
|
3731
3730
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
3732
3731
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
3733
|
-
# See [
|
3734
|
-
#
|
3732
|
+
# See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
|
3733
|
+
# levels) for more details.
|
3735
3734
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
3736
3735
|
# @return [String]
|
3737
3736
|
attr_accessor :merchant_center_product_id_field
|
@@ -4574,6 +4573,21 @@ module Google
|
|
4574
4573
|
# @return [String]
|
4575
4574
|
attr_accessor :filter
|
4576
4575
|
|
4576
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
4577
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
4578
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
4579
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
4580
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
4581
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
4582
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
4583
|
+
# a label must be unique. However, you can use the same key with multiple
|
4584
|
+
# resources. * Keys must start with a lowercase letter or international
|
4585
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
4586
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
4587
|
+
# Corresponds to the JSON property `labels`
|
4588
|
+
# @return [Hash<String,String>]
|
4589
|
+
attr_accessor :labels
|
4590
|
+
|
4577
4591
|
# A 0-indexed integer that specifies the current offset (that is, starting
|
4578
4592
|
# result location, amongst the Products deemed by the API as relevant) in search
|
4579
4593
|
# results. This field is only considered if page_token is unset. If this field
|
@@ -4623,7 +4637,8 @@ module Google
|
|
4623
4637
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec]
|
4624
4638
|
attr_accessor :personalization_spec
|
4625
4639
|
|
4626
|
-
# Raw search query.
|
4640
|
+
# Raw search query. If this field is empty, the request is considered a category
|
4641
|
+
# browsing request and returned results are based on filter and page_categories.
|
4627
4642
|
# Corresponds to the JSON property `query`
|
4628
4643
|
# @return [String]
|
4629
4644
|
attr_accessor :query
|
@@ -4696,6 +4711,7 @@ module Google
|
|
4696
4711
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
4697
4712
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
4698
4713
|
@filter = args[:filter] if args.key?(:filter)
|
4714
|
+
@labels = args[:labels] if args.key?(:labels)
|
4699
4715
|
@offset = args[:offset] if args.key?(:offset)
|
4700
4716
|
@order_by = args[:order_by] if args.key?(:order_by)
|
4701
4717
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
@@ -5025,7 +5041,9 @@ module Google
|
|
5025
5041
|
# @return [String]
|
5026
5042
|
attr_accessor :attribution_token
|
5027
5043
|
|
5028
|
-
#
|
5044
|
+
# Contains the spell corrected query, if found. If the spell correction type is
|
5045
|
+
# AUTOMATIC, then the search results will be based on corrected_query, otherwise
|
5046
|
+
# the original query will be used for search.
|
5029
5047
|
# Corresponds to the JSON property `correctedQuery`
|
5030
5048
|
# @return [String]
|
5031
5049
|
attr_accessor :corrected_query
|
@@ -5663,9 +5681,9 @@ module Google
|
|
5663
5681
|
# @return [String]
|
5664
5682
|
attr_accessor :page_view_id
|
5665
5683
|
|
5666
|
-
# The main product details related to the event. This field is
|
5667
|
-
# following event types: * `add-to-cart` * `detail-page-view` * `
|
5668
|
-
# complete`
|
5684
|
+
# The main product details related to the event. This field is optional except
|
5685
|
+
# for the following event types: * `add-to-cart` * `detail-page-view` * `
|
5686
|
+
# purchase-complete` In a `search` event, this field represents the products
|
5669
5687
|
# returned to the end user on the current page (the end user may have not
|
5670
5688
|
# finished browsing the whole page yet). When a new page is returned to the end
|
5671
5689
|
# user, after pagination/filtering/ordering even for the same query, a new `
|
@@ -5720,10 +5738,12 @@ module Google
|
|
5720
5738
|
# Required. A unique identifier for tracking visitors. For example, this could
|
5721
5739
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
5722
5740
|
# a visitor on a single device. This unique identifier should not change if the
|
5723
|
-
# visitor log in/out of the website.
|
5724
|
-
#
|
5725
|
-
#
|
5726
|
-
#
|
5741
|
+
# visitor log in/out of the website. Don't set the field to the same fixed ID
|
5742
|
+
# for different users. This mixes the event history of those users together,
|
5743
|
+
# which results in degraded model quality. The field must be a UTF-8 encoded
|
5744
|
+
# string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
|
5745
|
+
# error is returned. The field should not contain PII or user-data. We recommend
|
5746
|
+
# to use Google Analystics [Client ID](https://developers.google.com/analytics/
|
5727
5747
|
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
5728
5748
|
# Corresponds to the JSON property `visitorId`
|
5729
5749
|
# @return [String]
|
@@ -5871,9 +5891,11 @@ module Google
|
|
5871
5891
|
attr_accessor :user_agent
|
5872
5892
|
|
5873
5893
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
5874
|
-
# such as a user name.
|
5875
|
-
#
|
5876
|
-
#
|
5894
|
+
# such as a user name. Don't set for anonymous users. Always use a hashed value
|
5895
|
+
# for this ID. Don't set the field to the same fixed ID for different users.
|
5896
|
+
# This mixes the event history of those users together, which results in
|
5897
|
+
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
5898
|
+
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
5877
5899
|
# Corresponds to the JSON property `userId`
|
5878
5900
|
# @return [String]
|
5879
5901
|
attr_accessor :user_id
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2beta
|
18
18
|
# Version of the google-apis-retail_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.37.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
|
@@ -1655,7 +1655,6 @@ module Google
|
|
1655
1655
|
property :name, as: 'name'
|
1656
1656
|
property :rule, as: 'rule', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule::Representation
|
1657
1657
|
|
1658
|
-
collection :search_solution_use_case, as: 'searchSolutionUseCase'
|
1659
1658
|
collection :solution_types, as: 'solutionTypes'
|
1660
1659
|
end
|
1661
1660
|
end
|
@@ -2273,6 +2272,7 @@ module Google
|
|
2273
2272
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec::Representation
|
2274
2273
|
|
2275
2274
|
property :filter, as: 'filter'
|
2275
|
+
hash :labels, as: 'labels'
|
2276
2276
|
property :offset, as: 'offset'
|
2277
2277
|
property :order_by, as: 'orderBy'
|
2278
2278
|
collection :page_categories, as: 'pageCategories'
|
@@ -891,7 +891,9 @@ module Google
|
|
891
891
|
# output only fields are NOT supported. If not set, all supported fields (the
|
892
892
|
# fields that are neither immutable nor output only) are updated. If an
|
893
893
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
894
|
-
# returned.
|
894
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
895
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
896
|
+
# patching product from the request, this key will be deleted after the update.
|
895
897
|
# @param [String] fields
|
896
898
|
# Selector specifying which fields to include in a partial response.
|
897
899
|
# @param [String] quota_user
|
@@ -1371,8 +1373,7 @@ module Google
|
|
1371
1373
|
# Makes a recommendation prediction.
|
1372
1374
|
# @param [String] placement
|
1373
1375
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1374
|
-
# catalogs/default_catalog/placements/*`
|
1375
|
-
# catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
|
1376
|
+
# catalogs/default_catalog/placements/*` The ID of the Recommendations AI
|
1376
1377
|
# placement. Before you can request predictions from your model, you must create
|
1377
1378
|
# at least one placement for it. For more information, see [Managing placements](
|
1378
1379
|
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
@@ -1413,10 +1414,9 @@ module Google
|
|
1413
1414
|
# feature.
|
1414
1415
|
# @param [String] placement
|
1415
1416
|
# Required. The resource name of the search engine placement, such as `projects/*
|
1416
|
-
# /locations/global/catalogs/default_catalog/placements/default_search
|
1417
|
-
#
|
1418
|
-
#
|
1419
|
-
# configuration name and the set of models that will be used to make the search.
|
1417
|
+
# /locations/global/catalogs/default_catalog/placements/default_search`. This
|
1418
|
+
# field is used to identify the serving configuration name and the set of models
|
1419
|
+
# that will be used to make the search.
|
1420
1420
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1421
1421
|
# @param [String] fields
|
1422
1422
|
# Selector specifying which fields to include in a partial response.
|
@@ -1671,46 +1671,6 @@ module Google
|
|
1671
1671
|
execute_or_queue_command(command, &block)
|
1672
1672
|
end
|
1673
1673
|
|
1674
|
-
# Makes a recommendation prediction.
|
1675
|
-
# @param [String] placement
|
1676
|
-
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1677
|
-
# catalogs/default_catalog/placements/*` or `name=projects/*/locations/global/
|
1678
|
-
# catalogs/default_catalog/servingConfigs/*` The ID of the Recommendations AI
|
1679
|
-
# placement. Before you can request predictions from your model, you must create
|
1680
|
-
# at least one placement for it. For more information, see [Managing placements](
|
1681
|
-
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
1682
|
-
# The full list of available placements can be seen at https://console.cloud.
|
1683
|
-
# google.com/recommendation/catalogs/default_catalog/placements
|
1684
|
-
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1685
|
-
# @param [String] fields
|
1686
|
-
# Selector specifying which fields to include in a partial response.
|
1687
|
-
# @param [String] quota_user
|
1688
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1689
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1690
|
-
# @param [Google::Apis::RequestOptions] options
|
1691
|
-
# Request-specific options
|
1692
|
-
#
|
1693
|
-
# @yield [result, err] Result & error if block supplied
|
1694
|
-
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse] parsed result object
|
1695
|
-
# @yieldparam err [StandardError] error object if request failed
|
1696
|
-
#
|
1697
|
-
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse]
|
1698
|
-
#
|
1699
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1700
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1701
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1702
|
-
def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1703
|
-
command = make_simple_command(:post, 'v2beta/{+placement}:predict', options)
|
1704
|
-
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation
|
1705
|
-
command.request_object = google_cloud_retail_v2beta_predict_request_object
|
1706
|
-
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation
|
1707
|
-
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
|
1708
|
-
command.params['placement'] = placement unless placement.nil?
|
1709
|
-
command.query['fields'] = fields unless fields.nil?
|
1710
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1711
|
-
execute_or_queue_command(command, &block)
|
1712
|
-
end
|
1713
|
-
|
1714
1674
|
# Disables a Control on the specified ServingConfig. The control is removed from
|
1715
1675
|
# the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for
|
1716
1676
|
# the ServingConfig.
|
@@ -1748,45 +1708,6 @@ module Google
|
|
1748
1708
|
execute_or_queue_command(command, &block)
|
1749
1709
|
end
|
1750
1710
|
|
1751
|
-
# Performs a search. This feature is only available for users who have Retail
|
1752
|
-
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1753
|
-
# feature.
|
1754
|
-
# @param [String] placement
|
1755
|
-
# Required. The resource name of the search engine placement, such as `projects/*
|
1756
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1757
|
-
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1758
|
-
# default_serving_config` This field is used to identify the serving
|
1759
|
-
# configuration name and the set of models that will be used to make the search.
|
1760
|
-
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1761
|
-
# @param [String] fields
|
1762
|
-
# Selector specifying which fields to include in a partial response.
|
1763
|
-
# @param [String] quota_user
|
1764
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1765
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1766
|
-
# @param [Google::Apis::RequestOptions] options
|
1767
|
-
# Request-specific options
|
1768
|
-
#
|
1769
|
-
# @yield [result, err] Result & error if block supplied
|
1770
|
-
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse] parsed result object
|
1771
|
-
# @yieldparam err [StandardError] error object if request failed
|
1772
|
-
#
|
1773
|
-
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse]
|
1774
|
-
#
|
1775
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1776
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1777
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1778
|
-
def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1779
|
-
command = make_simple_command(:post, 'v2beta/{+placement}:search', options)
|
1780
|
-
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation
|
1781
|
-
command.request_object = google_cloud_retail_v2beta_search_request_object
|
1782
|
-
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation
|
1783
|
-
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
|
1784
|
-
command.params['placement'] = placement unless placement.nil?
|
1785
|
-
command.query['fields'] = fields unless fields.nil?
|
1786
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1787
|
-
execute_or_queue_command(command, &block)
|
1788
|
-
end
|
1789
|
-
|
1790
1711
|
# Writes a single user event from the browser. This uses a GET request to due to
|
1791
1712
|
# browser restriction of POST-ing to a 3rd party domain. This method is used
|
1792
1713
|
# 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_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.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_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.37.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|