google-apis-retail_v2beta 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b6586f000f86cc93e11b5d076cc0b7b641eef61594465c6327a0091e8b1909
|
4
|
+
data.tar.gz: dd20fdf5ea5967348dfc0e621ab1ac790fbf7fa87e9e149a3df20dbb375a087f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a79e6a3ee1a0d481ca8a57d9e6993068a974f312a2933113888c309e54d72d939e416c717e6e6cfc8a316e7dc5b54b0627ea0abd4e1ecaff9041a8809d078507
|
7
|
+
data.tar.gz: b758269f1d180056a7fdd7739559548942f832929e1276194883cd04c3dea7d35a7bd6124defcc09ec91dbb7d561ec2dbc99dd343f2c35b0e0afccf365c3b5d9
|
data/CHANGELOG.md
CHANGED
@@ -1270,7 +1270,11 @@ module Google
|
|
1270
1270
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
1271
1271
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
1272
1272
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
1273
|
-
# user_event_ga360`:
|
1273
|
+
# user_event_ga360`: The schema is available here: https://support.google.com/
|
1274
|
+
# analytics/answer/3437719. * `user_event_ga4`: This feature is in private
|
1275
|
+
# preview. Please contact the support team for importing Google Analytics 4
|
1276
|
+
# events. The schema is available here: https://support.google.com/analytics/
|
1277
|
+
# answer/7029846.
|
1274
1278
|
# Corresponds to the JSON property `dataSchema`
|
1275
1279
|
# @return [String]
|
1276
1280
|
attr_accessor :data_schema
|
@@ -1292,10 +1296,10 @@ module Google
|
|
1292
1296
|
# day and time zone are either specified elsewhere or are insignificant. The
|
1293
1297
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
1294
1298
|
# following: * A full date, with non-zero year, month, and day values * A month
|
1295
|
-
# and day
|
1296
|
-
#
|
1297
|
-
#
|
1298
|
-
# google.protobuf.Timestamp
|
1299
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
1300
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
1301
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
1302
|
+
# DateTime * google.protobuf.Timestamp
|
1299
1303
|
# Corresponds to the JSON property `partitionDate`
|
1300
1304
|
# @return [Google::Apis::RetailV2beta::GoogleTypeDate]
|
1301
1305
|
attr_accessor :partition_date
|
@@ -1691,10 +1695,12 @@ module Google
|
|
1691
1695
|
class GoogleCloudRetailV2betaCustomAttribute
|
1692
1696
|
include Google::Apis::Core::Hashable
|
1693
1697
|
|
1694
|
-
#
|
1695
|
-
#
|
1696
|
-
#
|
1697
|
-
#
|
1698
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
1699
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
1700
|
+
# values are indexed, so that it can be filtered, faceted or boosted in
|
1701
|
+
# SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
|
1702
|
+
# filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
|
1703
|
+
# details.
|
1698
1704
|
# Corresponds to the JSON property `indexable`
|
1699
1705
|
# @return [Boolean]
|
1700
1706
|
attr_accessor :indexable
|
@@ -1707,9 +1713,11 @@ module Google
|
|
1707
1713
|
# @return [Array<Float>]
|
1708
1714
|
attr_accessor :numbers
|
1709
1715
|
|
1710
|
-
#
|
1711
|
-
#
|
1712
|
-
# text
|
1716
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
1717
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
1718
|
+
# values are searchable by text queries in SearchService.Search. This field is
|
1719
|
+
# ignored in a UserEvent. Only set if type text is set. Otherwise, a
|
1720
|
+
# INVALID_ARGUMENT error is returned.
|
1713
1721
|
# Corresponds to the JSON property `searchable`
|
1714
1722
|
# @return [Boolean]
|
1715
1723
|
attr_accessor :searchable
|
@@ -2837,7 +2845,7 @@ module Google
|
|
2837
2845
|
|
2838
2846
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
2839
2847
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
2840
|
-
# limit of
|
2848
|
+
# limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2841
2849
|
# Corresponding properties: Google Merchant Center property [material](https://
|
2842
2850
|
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
2843
2851
|
# material](https://schema.org/material).
|
@@ -4016,6 +4024,14 @@ module Google
|
|
4016
4024
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec>]
|
4017
4025
|
attr_accessor :condition_boost_specs
|
4018
4026
|
|
4027
|
+
# Whether to skip boostspec validation. If this field is set to true, invalid
|
4028
|
+
# BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
|
4029
|
+
# condition_boost_specs will still be applied.
|
4030
|
+
# Corresponds to the JSON property `skipBoostSpecValidation`
|
4031
|
+
# @return [Boolean]
|
4032
|
+
attr_accessor :skip_boost_spec_validation
|
4033
|
+
alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
|
4034
|
+
|
4019
4035
|
def initialize(**args)
|
4020
4036
|
update!(**args)
|
4021
4037
|
end
|
@@ -4023,6 +4039,7 @@ module Google
|
|
4023
4039
|
# Update properties of this object
|
4024
4040
|
def update!(**args)
|
4025
4041
|
@condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
|
4042
|
+
@skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
|
4026
4043
|
end
|
4027
4044
|
end
|
4028
4045
|
|
@@ -4320,6 +4337,12 @@ module Google
|
|
4320
4337
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet>]
|
4321
4338
|
attr_accessor :facets
|
4322
4339
|
|
4340
|
+
# The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
|
4341
|
+
# during serving.
|
4342
|
+
# Corresponds to the JSON property `invalidConditionBoostSpecs`
|
4343
|
+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec>]
|
4344
|
+
attr_accessor :invalid_condition_boost_specs
|
4345
|
+
|
4323
4346
|
# A token that can be sent as SearchRequest.page_token to retrieve the next page.
|
4324
4347
|
# If this field is omitted, there are no subsequent pages.
|
4325
4348
|
# Corresponds to the JSON property `nextPageToken`
|
@@ -4361,6 +4384,7 @@ module Google
|
|
4361
4384
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
4362
4385
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
4363
4386
|
@facets = args[:facets] if args.key?(:facets)
|
4387
|
+
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
|
4364
4388
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
4365
4389
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
4366
4390
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
@@ -5300,10 +5324,10 @@ module Google
|
|
5300
5324
|
# day and time zone are either specified elsewhere or are insignificant. The
|
5301
5325
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
5302
5326
|
# following: * A full date, with non-zero year, month, and day values * A month
|
5303
|
-
# and day
|
5304
|
-
#
|
5305
|
-
#
|
5306
|
-
# google.protobuf.Timestamp
|
5327
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
5328
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
5329
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
5330
|
+
# DateTime * google.protobuf.Timestamp
|
5307
5331
|
class GoogleTypeDate
|
5308
5332
|
include Google::Apis::Core::Hashable
|
5309
5333
|
|
@@ -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.28.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 = "20220210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1984,6 +1984,7 @@ module Google
|
|
1984
1984
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1985
1985
|
collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec::Representation
|
1986
1986
|
|
1987
|
+
property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
|
1987
1988
|
end
|
1988
1989
|
end
|
1989
1990
|
|
@@ -2050,6 +2051,8 @@ module Google
|
|
2050
2051
|
property :corrected_query, as: 'correctedQuery'
|
2051
2052
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet::Representation
|
2052
2053
|
|
2054
|
+
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec::Representation
|
2055
|
+
|
2053
2056
|
property :next_page_token, as: 'nextPageToken'
|
2054
2057
|
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo::Representation
|
2055
2058
|
|
@@ -124,10 +124,7 @@ module Google
|
|
124
124
|
end
|
125
125
|
|
126
126
|
# Get which branch is currently default branch set by CatalogService.
|
127
|
-
# SetDefaultBranch method under a specified parent catalog.
|
128
|
-
# available for users who have Retail Search enabled. Please submit a form [here]
|
129
|
-
# (https://cloud.google.com/contact) to contact cloud sales if you are
|
130
|
-
# interested in using Retail Search.
|
127
|
+
# SetDefaultBranch method under a specified parent catalog.
|
131
128
|
# @param [String] catalog
|
132
129
|
# The parent catalog resource name, such as `projects/*/locations/global/
|
133
130
|
# catalogs/default_catalog`.
|
@@ -256,9 +253,7 @@ module Google
|
|
256
253
|
# PredictionService will only return product IDs from branch `newBranch`. *
|
257
254
|
# SearchService will only return product IDs from branch `newBranch` (if branch
|
258
255
|
# is not explicitly set). * UserEventService will only join events with products
|
259
|
-
# from branch `newBranch`.
|
260
|
-
# Retail Search enabled. Please submit a form [here](https://cloud.google.com/
|
261
|
-
# contact) to contact cloud sales if you are interested in using Retail Search.
|
256
|
+
# from branch `newBranch`.
|
262
257
|
# @param [String] catalog
|
263
258
|
# Full resource name of the catalog, such as `projects/*/locations/global/
|
264
259
|
# catalogs/default_catalog`.
|
@@ -1642,6 +1637,83 @@ module Google
|
|
1642
1637
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1643
1638
|
execute_or_queue_command(command, &block)
|
1644
1639
|
end
|
1640
|
+
|
1641
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1642
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1643
|
+
# @param [String] name
|
1644
|
+
# The name of the operation resource.
|
1645
|
+
# @param [String] fields
|
1646
|
+
# Selector specifying which fields to include in a partial response.
|
1647
|
+
# @param [String] quota_user
|
1648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1650
|
+
# @param [Google::Apis::RequestOptions] options
|
1651
|
+
# Request-specific options
|
1652
|
+
#
|
1653
|
+
# @yield [result, err] Result & error if block supplied
|
1654
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
1655
|
+
# @yieldparam err [StandardError] error object if request failed
|
1656
|
+
#
|
1657
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
1658
|
+
#
|
1659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1662
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1663
|
+
command = make_simple_command(:get, 'v2beta/{+name}', options)
|
1664
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
1665
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
1666
|
+
command.params['name'] = name unless name.nil?
|
1667
|
+
command.query['fields'] = fields unless fields.nil?
|
1668
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1669
|
+
execute_or_queue_command(command, &block)
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
# Lists operations that match the specified filter in the request. If the server
|
1673
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1674
|
+
# binding allows API services to override the binding to use different resource
|
1675
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
1676
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1677
|
+
# service configuration. For backwards compatibility, the default name includes
|
1678
|
+
# the operations collection id, however overriding users must ensure the name
|
1679
|
+
# binding is the parent resource, without the operations collection id.
|
1680
|
+
# @param [String] name
|
1681
|
+
# The name of the operation's parent resource.
|
1682
|
+
# @param [String] filter
|
1683
|
+
# The standard list filter.
|
1684
|
+
# @param [Fixnum] page_size
|
1685
|
+
# The standard list page size.
|
1686
|
+
# @param [String] page_token
|
1687
|
+
# The standard list page token.
|
1688
|
+
# @param [String] fields
|
1689
|
+
# Selector specifying which fields to include in a partial response.
|
1690
|
+
# @param [String] quota_user
|
1691
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1692
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1693
|
+
# @param [Google::Apis::RequestOptions] options
|
1694
|
+
# Request-specific options
|
1695
|
+
#
|
1696
|
+
# @yield [result, err] Result & error if block supplied
|
1697
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse] parsed result object
|
1698
|
+
# @yieldparam err [StandardError] error object if request failed
|
1699
|
+
#
|
1700
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse]
|
1701
|
+
#
|
1702
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1703
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1704
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1705
|
+
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1706
|
+
command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
|
1707
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse::Representation
|
1708
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
|
1709
|
+
command.params['name'] = name unless name.nil?
|
1710
|
+
command.query['filter'] = filter unless filter.nil?
|
1711
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1712
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1713
|
+
command.query['fields'] = fields unless fields.nil?
|
1714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1715
|
+
execute_or_queue_command(command, &block)
|
1716
|
+
end
|
1645
1717
|
|
1646
1718
|
protected
|
1647
1719
|
|
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.28.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-02-
|
11
|
+
date: 2022-02-14 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.28.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: []
|