google-apis-retail_v2beta 0.27.0 → 0.30.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: a2df3785ace31021412e5fac53adf93b519d513ab42459c3fcd199e18a1f5458
|
4
|
+
data.tar.gz: 7637e54664187741870607f18a0c82205b46d2986c9f956b298e8b55706d98cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7e4827aa2c18caaf5ba07116074a4d23635ad1e3310a77fb2cdb1dcf7acd6cd97dbbc99736c1e823fad03baa5111ce2bf8b8f0d10628ae3b78be8a6c36de52c
|
7
|
+
data.tar.gz: 2628047242dba3a8de6076231ab53d2af9abc4398fb5d4936c87f087d0267677d05474ebc5185ebb519d232b14e824b5b443f2f9f014587b75c861ad8856ae9d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.30.0 (2022-03-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220224
|
6
|
+
|
7
|
+
### v0.29.0 (2022-02-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220217
|
10
|
+
|
11
|
+
### v0.28.0 (2022-02-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220210
|
14
|
+
|
3
15
|
### v0.27.0 (2022-02-03)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220127
|
@@ -333,9 +333,9 @@ module Google
|
|
333
333
|
class GoogleCloudRetailV2ImportErrorsConfig
|
334
334
|
include Google::Apis::Core::Hashable
|
335
335
|
|
336
|
-
# Google Cloud Storage
|
337
|
-
# Cloud Storage
|
338
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
336
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
337
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
338
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
339
339
|
# Corresponds to the JSON property `gcsPrefix`
|
340
340
|
# @return [String]
|
341
341
|
attr_accessor :gcs_prefix
|
@@ -803,9 +803,9 @@ module Google
|
|
803
803
|
class GoogleCloudRetailV2alphaImportErrorsConfig
|
804
804
|
include Google::Apis::Core::Hashable
|
805
805
|
|
806
|
-
# Google Cloud Storage
|
807
|
-
# Cloud Storage
|
808
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
806
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
807
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
808
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
809
809
|
# Corresponds to the JSON property `gcsPrefix`
|
810
810
|
# @return [String]
|
811
811
|
attr_accessor :gcs_prefix
|
@@ -1117,6 +1117,26 @@ module Google
|
|
1117
1117
|
end
|
1118
1118
|
end
|
1119
1119
|
|
1120
|
+
# Request for CatalogService.AddCatalogAttribute method.
|
1121
|
+
class GoogleCloudRetailV2betaAddCatalogAttributeRequest
|
1122
|
+
include Google::Apis::Core::Hashable
|
1123
|
+
|
1124
|
+
# Catalog level attribute config for an attribute. For example, if customers
|
1125
|
+
# want to enable/disable facet for a specific attribute.
|
1126
|
+
# Corresponds to the JSON property `catalogAttribute`
|
1127
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute]
|
1128
|
+
attr_accessor :catalog_attribute
|
1129
|
+
|
1130
|
+
def initialize(**args)
|
1131
|
+
update!(**args)
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Update properties of this object
|
1135
|
+
def update!(**args)
|
1136
|
+
@catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute)
|
1137
|
+
end
|
1138
|
+
end
|
1139
|
+
|
1120
1140
|
# Request for AddControl method.
|
1121
1141
|
class GoogleCloudRetailV2betaAddControlRequest
|
1122
1142
|
include Google::Apis::Core::Hashable
|
@@ -1222,6 +1242,42 @@ module Google
|
|
1222
1242
|
end
|
1223
1243
|
end
|
1224
1244
|
|
1245
|
+
# Catalog level attribute config.
|
1246
|
+
class GoogleCloudRetailV2betaAttributesConfig
|
1247
|
+
include Google::Apis::Core::Hashable
|
1248
|
+
|
1249
|
+
# Output only. The AttributeConfigLevel used for this catalog.
|
1250
|
+
# Corresponds to the JSON property `attributeConfigLevel`
|
1251
|
+
# @return [String]
|
1252
|
+
attr_accessor :attribute_config_level
|
1253
|
+
|
1254
|
+
# Enable attribute(s) config at catalog level. For example, indexable,
|
1255
|
+
# dynamic_facetable, or searchable for each attribute. The key is catalog
|
1256
|
+
# attribute's name. For example: `color`, `brands`, `attributes.custom_attribute`
|
1257
|
+
# , such as `attributes.xyz`. The maximum number of catalog attributes allowed
|
1258
|
+
# in a request is 1000.
|
1259
|
+
# Corresponds to the JSON property `catalogAttributes`
|
1260
|
+
# @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute>]
|
1261
|
+
attr_accessor :catalog_attributes
|
1262
|
+
|
1263
|
+
# Required. Immutable. The fully qualified resource name of the attribute config.
|
1264
|
+
# Format: "projects/*/locations/*/catalogs/*/attributesConfig"
|
1265
|
+
# Corresponds to the JSON property `name`
|
1266
|
+
# @return [String]
|
1267
|
+
attr_accessor :name
|
1268
|
+
|
1269
|
+
def initialize(**args)
|
1270
|
+
update!(**args)
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# Update properties of this object
|
1274
|
+
def update!(**args)
|
1275
|
+
@attribute_config_level = args[:attribute_config_level] if args.key?(:attribute_config_level)
|
1276
|
+
@catalog_attributes = args[:catalog_attributes] if args.key?(:catalog_attributes)
|
1277
|
+
@name = args[:name] if args.key?(:name)
|
1278
|
+
end
|
1279
|
+
end
|
1280
|
+
|
1225
1281
|
# An intended audience of the Product for whom it's sold.
|
1226
1282
|
class GoogleCloudRetailV2betaAudience
|
1227
1283
|
include Google::Apis::Core::Hashable
|
@@ -1270,7 +1326,11 @@ module Google
|
|
1270
1326
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
1271
1327
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
1272
1328
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
1273
|
-
# user_event_ga360`:
|
1329
|
+
# user_event_ga360`: The schema is available here: https://support.google.com/
|
1330
|
+
# analytics/answer/3437719. * `user_event_ga4`: This feature is in private
|
1331
|
+
# preview. Please contact the support team for importing Google Analytics 4
|
1332
|
+
# events. The schema is available here: https://support.google.com/analytics/
|
1333
|
+
# answer/7029846.
|
1274
1334
|
# Corresponds to the JSON property `dataSchema`
|
1275
1335
|
# @return [String]
|
1276
1336
|
attr_accessor :data_schema
|
@@ -1292,10 +1352,10 @@ module Google
|
|
1292
1352
|
# day and time zone are either specified elsewhere or are insignificant. The
|
1293
1353
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
1294
1354
|
# following: * A full date, with non-zero year, month, and day values * A month
|
1295
|
-
# and day
|
1296
|
-
#
|
1297
|
-
#
|
1298
|
-
# google.protobuf.Timestamp
|
1355
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
1356
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
1357
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
1358
|
+
# DateTime * google.protobuf.Timestamp
|
1299
1359
|
# Corresponds to the JSON property `partitionDate`
|
1300
1360
|
# @return [Google::Apis::RetailV2beta::GoogleTypeDate]
|
1301
1361
|
attr_accessor :partition_date
|
@@ -1362,6 +1422,75 @@ module Google
|
|
1362
1422
|
end
|
1363
1423
|
end
|
1364
1424
|
|
1425
|
+
# Catalog level attribute config for an attribute. For example, if customers
|
1426
|
+
# want to enable/disable facet for a specific attribute.
|
1427
|
+
class GoogleCloudRetailV2betaCatalogAttribute
|
1428
|
+
include Google::Apis::Core::Hashable
|
1429
|
+
|
1430
|
+
# If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet.
|
1431
|
+
# Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option
|
1432
|
+
# is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.
|
1433
|
+
# Corresponds to the JSON property `dynamicFacetableOption`
|
1434
|
+
# @return [String]
|
1435
|
+
attr_accessor :dynamic_facetable_option
|
1436
|
+
|
1437
|
+
# Output only. Indicates whether this attribute has been used by any products. `
|
1438
|
+
# True` if at least one Product is using this attribute in Product.attributes.
|
1439
|
+
# Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
|
1440
|
+
# AddCatalogAttribute, ImportCatalogAttributes, or UpdateAttributesConfig APIs.
|
1441
|
+
# This field is `False` for pre-loaded CatalogAttributes. Only CatalogAttributes
|
1442
|
+
# that are not in use by products can be deleted. CatalogAttributes that are in
|
1443
|
+
# use by products cannot be deleted; however, their configuration properties
|
1444
|
+
# will reset to default values upon removal request. After catalog changes, it
|
1445
|
+
# takes about 10 minutes for this field to update.
|
1446
|
+
# Corresponds to the JSON property `inUse`
|
1447
|
+
# @return [Boolean]
|
1448
|
+
attr_accessor :in_use
|
1449
|
+
alias_method :in_use?, :in_use
|
1450
|
+
|
1451
|
+
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1452
|
+
# if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered,
|
1453
|
+
# faceted, or boosted in SearchService.Search.
|
1454
|
+
# Corresponds to the JSON property `indexableOption`
|
1455
|
+
# @return [String]
|
1456
|
+
attr_accessor :indexable_option
|
1457
|
+
|
1458
|
+
# Required. Attribute name. For example: `color`, `brands`, `attributes.
|
1459
|
+
# custom_attribute`, such as `attributes.xyz`.
|
1460
|
+
# Corresponds to the JSON property `key`
|
1461
|
+
# @return [String]
|
1462
|
+
attr_accessor :key
|
1463
|
+
|
1464
|
+
# When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG,
|
1465
|
+
# if SEARCHABLE_ENABLED, attribute values are searchable by text queries in
|
1466
|
+
# SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical,
|
1467
|
+
# attribute values will not be searchable by text queries in SearchService.
|
1468
|
+
# Search, as there are no text values associated to numerical attributes.
|
1469
|
+
# Corresponds to the JSON property `searchableOption`
|
1470
|
+
# @return [String]
|
1471
|
+
attr_accessor :searchable_option
|
1472
|
+
|
1473
|
+
# Output only. The type of this attribute. This is derived from the attribute in
|
1474
|
+
# Product.attributes.
|
1475
|
+
# Corresponds to the JSON property `type`
|
1476
|
+
# @return [String]
|
1477
|
+
attr_accessor :type
|
1478
|
+
|
1479
|
+
def initialize(**args)
|
1480
|
+
update!(**args)
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
# Update properties of this object
|
1484
|
+
def update!(**args)
|
1485
|
+
@dynamic_facetable_option = args[:dynamic_facetable_option] if args.key?(:dynamic_facetable_option)
|
1486
|
+
@in_use = args[:in_use] if args.key?(:in_use)
|
1487
|
+
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
1488
|
+
@key = args[:key] if args.key?(:key)
|
1489
|
+
@searchable_option = args[:searchable_option] if args.key?(:searchable_option)
|
1490
|
+
@type = args[:type] if args.key?(:type)
|
1491
|
+
end
|
1492
|
+
end
|
1493
|
+
|
1365
1494
|
# The color information of a Product.
|
1366
1495
|
class GoogleCloudRetailV2betaColorInfo
|
1367
1496
|
include Google::Apis::Core::Hashable
|
@@ -1667,7 +1796,8 @@ module Google
|
|
1667
1796
|
|
1668
1797
|
# Required. Immutable. The solution types that the serving config is used for.
|
1669
1798
|
# Currently we support setting only one type of solution at creation time. Only `
|
1670
|
-
# SOLUTION_TYPE_SEARCH` value is supported at the moment.
|
1799
|
+
# SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
|
1800
|
+
# provided at creation time, will default to SOLUTION_TYPE_SEARCH.
|
1671
1801
|
# Corresponds to the JSON property `solutionTypes`
|
1672
1802
|
# @return [Array<String>]
|
1673
1803
|
attr_accessor :solution_types
|
@@ -1691,10 +1821,12 @@ module Google
|
|
1691
1821
|
class GoogleCloudRetailV2betaCustomAttribute
|
1692
1822
|
include Google::Apis::Core::Hashable
|
1693
1823
|
|
1694
|
-
#
|
1695
|
-
#
|
1696
|
-
#
|
1697
|
-
#
|
1824
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
1825
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
1826
|
+
# values are indexed, so that it can be filtered, faceted or boosted in
|
1827
|
+
# SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
|
1828
|
+
# filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
|
1829
|
+
# details.
|
1698
1830
|
# Corresponds to the JSON property `indexable`
|
1699
1831
|
# @return [Boolean]
|
1700
1832
|
attr_accessor :indexable
|
@@ -1707,17 +1839,20 @@ module Google
|
|
1707
1839
|
# @return [Array<Float>]
|
1708
1840
|
attr_accessor :numbers
|
1709
1841
|
|
1710
|
-
#
|
1711
|
-
#
|
1712
|
-
# text
|
1842
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
1843
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
1844
|
+
# values are searchable by text queries in SearchService.Search. This field is
|
1845
|
+
# ignored in a UserEvent. Only set if type text is set. Otherwise, a
|
1846
|
+
# INVALID_ARGUMENT error is returned.
|
1713
1847
|
# Corresponds to the JSON property `searchable`
|
1714
1848
|
# @return [Boolean]
|
1715
1849
|
attr_accessor :searchable
|
1716
1850
|
alias_method :searchable?, :searchable
|
1717
1851
|
|
1718
1852
|
# The textual values of this custom attribute. For example, `["yellow", "green"]`
|
1719
|
-
# when the key is "color".
|
1720
|
-
#
|
1853
|
+
# when the key is "color". Empty string is not allowed. Otherwise, an
|
1854
|
+
# INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
|
1855
|
+
# set. Otherwise, an INVALID_ARGUMENT error is returned.
|
1721
1856
|
# Corresponds to the JSON property `text`
|
1722
1857
|
# @return [Array<String>]
|
1723
1858
|
attr_accessor :text
|
@@ -2035,9 +2170,9 @@ module Google
|
|
2035
2170
|
class GoogleCloudRetailV2betaImportErrorsConfig
|
2036
2171
|
include Google::Apis::Core::Hashable
|
2037
2172
|
|
2038
|
-
# Google Cloud Storage
|
2039
|
-
# Cloud Storage
|
2040
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
2173
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
2174
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
2175
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
2041
2176
|
# Corresponds to the JSON property `gcsPrefix`
|
2042
2177
|
# @return [String]
|
2043
2178
|
attr_accessor :gcs_prefix
|
@@ -2680,9 +2815,9 @@ module Google
|
|
2680
2815
|
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
2681
2816
|
# indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
|
2682
2817
|
# `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
|
2683
|
-
# values are allowed. Empty values are not allowed. Each value must be a
|
2684
|
-
# encoded string with a length limit of 256 characters. * For number
|
2685
|
-
# at most 400 values are allowed.
|
2818
|
+
# values are allowed. Empty values are not allowed. Each value must be a non-
|
2819
|
+
# empty UTF-8 encoded string with a length limit of 256 characters. * For number
|
2820
|
+
# attributes, at most 400 values are allowed.
|
2686
2821
|
# Corresponds to the JSON property `attributes`
|
2687
2822
|
# @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
|
2688
2823
|
attr_accessor :attributes
|
@@ -2837,7 +2972,7 @@ module Google
|
|
2837
2972
|
|
2838
2973
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
2839
2974
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
2840
|
-
# limit of
|
2975
|
+
# limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2841
2976
|
# Corresponding properties: Google Merchant Center property [material](https://
|
2842
2977
|
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
2843
2978
|
# material](https://schema.org/material).
|
@@ -3391,6 +3526,25 @@ module Google
|
|
3391
3526
|
end
|
3392
3527
|
end
|
3393
3528
|
|
3529
|
+
# Request for CatalogService.RemoveCatalogAttribute method.
|
3530
|
+
class GoogleCloudRetailV2betaRemoveCatalogAttributeRequest
|
3531
|
+
include Google::Apis::Core::Hashable
|
3532
|
+
|
3533
|
+
# Required. The attribute name key of the CatalogAttribute to remove.
|
3534
|
+
# Corresponds to the JSON property `key`
|
3535
|
+
# @return [String]
|
3536
|
+
attr_accessor :key
|
3537
|
+
|
3538
|
+
def initialize(**args)
|
3539
|
+
update!(**args)
|
3540
|
+
end
|
3541
|
+
|
3542
|
+
# Update properties of this object
|
3543
|
+
def update!(**args)
|
3544
|
+
@key = args[:key] if args.key?(:key)
|
3545
|
+
end
|
3546
|
+
end
|
3547
|
+
|
3394
3548
|
# Request for RemoveControl method.
|
3395
3549
|
class GoogleCloudRetailV2betaRemoveControlRequest
|
3396
3550
|
include Google::Apis::Core::Hashable
|
@@ -3494,6 +3648,34 @@ module Google
|
|
3494
3648
|
end
|
3495
3649
|
end
|
3496
3650
|
|
3651
|
+
# Request for CatalogService.ReplaceCatalogAttribute method.
|
3652
|
+
class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
|
3653
|
+
include Google::Apis::Core::Hashable
|
3654
|
+
|
3655
|
+
# Catalog level attribute config for an attribute. For example, if customers
|
3656
|
+
# want to enable/disable facet for a specific attribute.
|
3657
|
+
# Corresponds to the JSON property `catalogAttribute`
|
3658
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute]
|
3659
|
+
attr_accessor :catalog_attribute
|
3660
|
+
|
3661
|
+
# Indicates which fields in the provided CatalogAttribute to update. The
|
3662
|
+
# following are NOT supported: * CatalogAttribute.key If not set, all supported
|
3663
|
+
# fields are updated.
|
3664
|
+
# Corresponds to the JSON property `updateMask`
|
3665
|
+
# @return [String]
|
3666
|
+
attr_accessor :update_mask
|
3667
|
+
|
3668
|
+
def initialize(**args)
|
3669
|
+
update!(**args)
|
3670
|
+
end
|
3671
|
+
|
3672
|
+
# Update properties of this object
|
3673
|
+
def update!(**args)
|
3674
|
+
@catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute)
|
3675
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
3676
|
+
end
|
3677
|
+
end
|
3678
|
+
|
3497
3679
|
# A rule is a condition-action pair * A condition defines when a rule is to be
|
3498
3680
|
# triggered. * An action specifies what occurs on that trigger. Currently only
|
3499
3681
|
# boost rules are supported. Currently only supported by the search endpoint.
|
@@ -4016,6 +4198,14 @@ module Google
|
|
4016
4198
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec>]
|
4017
4199
|
attr_accessor :condition_boost_specs
|
4018
4200
|
|
4201
|
+
# Whether to skip boostspec validation. If this field is set to true, invalid
|
4202
|
+
# BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
|
4203
|
+
# condition_boost_specs will still be applied.
|
4204
|
+
# Corresponds to the JSON property `skipBoostSpecValidation`
|
4205
|
+
# @return [Boolean]
|
4206
|
+
attr_accessor :skip_boost_spec_validation
|
4207
|
+
alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
|
4208
|
+
|
4019
4209
|
def initialize(**args)
|
4020
4210
|
update!(**args)
|
4021
4211
|
end
|
@@ -4023,6 +4213,7 @@ module Google
|
|
4023
4213
|
# Update properties of this object
|
4024
4214
|
def update!(**args)
|
4025
4215
|
@condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
|
4216
|
+
@skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
|
4026
4217
|
end
|
4027
4218
|
end
|
4028
4219
|
|
@@ -4320,6 +4511,12 @@ module Google
|
|
4320
4511
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet>]
|
4321
4512
|
attr_accessor :facets
|
4322
4513
|
|
4514
|
+
# The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
|
4515
|
+
# during serving.
|
4516
|
+
# Corresponds to the JSON property `invalidConditionBoostSpecs`
|
4517
|
+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec>]
|
4518
|
+
attr_accessor :invalid_condition_boost_specs
|
4519
|
+
|
4323
4520
|
# A token that can be sent as SearchRequest.page_token to retrieve the next page.
|
4324
4521
|
# If this field is omitted, there are no subsequent pages.
|
4325
4522
|
# Corresponds to the JSON property `nextPageToken`
|
@@ -4361,6 +4558,7 @@ module Google
|
|
4361
4558
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
4362
4559
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
4363
4560
|
@facets = args[:facets] if args.key?(:facets)
|
4561
|
+
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
|
4364
4562
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
4365
4563
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
4366
4564
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
@@ -4529,7 +4727,7 @@ module Google
|
|
4529
4727
|
|
4530
4728
|
# Condition boost specifications. If a product matches multiple conditions in
|
4531
4729
|
# the specifications, boost scores from these specifications are all applied and
|
4532
|
-
# combined in a non-linear way. Maximum number of specifications is
|
4730
|
+
# combined in a non-linear way. Maximum number of specifications is 100. Notice
|
4533
4731
|
# that if both ServingConfig.boost_control_ids and [SearchRequest.boost_spec]
|
4534
4732
|
# are set, the boost conditions from both places are evaluated. If a search
|
4535
4733
|
# request matches multiple boost conditions, the final boost score is equal to
|
@@ -4643,7 +4841,7 @@ module Google
|
|
4643
4841
|
attr_accessor :price_reranking_level
|
4644
4842
|
|
4645
4843
|
# Condition redirect specifications. Only the first triggered redirect action is
|
4646
|
-
# applied, even if multiple apply. Maximum number of specifications is
|
4844
|
+
# applied, even if multiple apply. Maximum number of specifications is 1000. Can
|
4647
4845
|
# only be set if solution_types is SOLUTION_TYPE_SEARCH.
|
4648
4846
|
# Corresponds to the JSON property `redirectControlIds`
|
4649
4847
|
# @return [Array<String>]
|
@@ -4702,11 +4900,20 @@ module Google
|
|
4702
4900
|
include Google::Apis::Core::Hashable
|
4703
4901
|
|
4704
4902
|
# The final component of the resource name of a branch. This field must be one
|
4705
|
-
# of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned.
|
4903
|
+
# of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there
|
4904
|
+
# are no sufficient active products in the targeted branch and force is not set,
|
4905
|
+
# a FAILED_PRECONDITION error is returned.
|
4706
4906
|
# Corresponds to the JSON property `branchId`
|
4707
4907
|
# @return [String]
|
4708
4908
|
attr_accessor :branch_id
|
4709
4909
|
|
4910
|
+
# If set to true, it permits switching to a branch with branch_id even if it has
|
4911
|
+
# no sufficient active products.
|
4912
|
+
# Corresponds to the JSON property `force`
|
4913
|
+
# @return [Boolean]
|
4914
|
+
attr_accessor :force
|
4915
|
+
alias_method :force?, :force
|
4916
|
+
|
4710
4917
|
# Some note on this request, this can be retrieved by CatalogService.
|
4711
4918
|
# GetDefaultBranch before next valid default branch set occurs. This field must
|
4712
4919
|
# be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
|
@@ -4722,6 +4929,7 @@ module Google
|
|
4722
4929
|
# Update properties of this object
|
4723
4930
|
def update!(**args)
|
4724
4931
|
@branch_id = args[:branch_id] if args.key?(:branch_id)
|
4932
|
+
@force = args[:force] if args.key?(:force)
|
4725
4933
|
@note = args[:note] if args.key?(:note)
|
4726
4934
|
end
|
4727
4935
|
end
|
@@ -5300,10 +5508,10 @@ module Google
|
|
5300
5508
|
# day and time zone are either specified elsewhere or are insignificant. The
|
5301
5509
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
5302
5510
|
# following: * A full date, with non-zero year, month, and day values * A month
|
5303
|
-
# and day
|
5304
|
-
#
|
5305
|
-
#
|
5306
|
-
# google.protobuf.Timestamp
|
5511
|
+
# and day, with a zero year (e.g., an anniversary) * A year on its own, with a
|
5512
|
+
# zero month and a zero day * A year and month, with a zero day (e.g., a credit
|
5513
|
+
# card expiration date) Related types: * google.type.TimeOfDay * google.type.
|
5514
|
+
# DateTime * google.protobuf.Timestamp
|
5307
5515
|
class GoogleTypeDate
|
5308
5516
|
include Google::Apis::Core::Hashable
|
5309
5517
|
|
@@ -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.30.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 = "20220224"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -304,6 +304,12 @@ module Google
|
|
304
304
|
include Google::Apis::Core::JsonObjectSupport
|
305
305
|
end
|
306
306
|
|
307
|
+
class GoogleCloudRetailV2betaAddCatalogAttributeRequest
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
307
313
|
class GoogleCloudRetailV2betaAddControlRequest
|
308
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
315
|
|
@@ -328,6 +334,12 @@ module Google
|
|
328
334
|
include Google::Apis::Core::JsonObjectSupport
|
329
335
|
end
|
330
336
|
|
337
|
+
class GoogleCloudRetailV2betaAttributesConfig
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
331
343
|
class GoogleCloudRetailV2betaAudience
|
332
344
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
345
|
|
@@ -346,6 +358,12 @@ module Google
|
|
346
358
|
include Google::Apis::Core::JsonObjectSupport
|
347
359
|
end
|
348
360
|
|
361
|
+
class GoogleCloudRetailV2betaCatalogAttribute
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
349
367
|
class GoogleCloudRetailV2betaColorInfo
|
350
368
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
369
|
|
@@ -652,6 +670,12 @@ module Google
|
|
652
670
|
include Google::Apis::Core::JsonObjectSupport
|
653
671
|
end
|
654
672
|
|
673
|
+
class GoogleCloudRetailV2betaRemoveCatalogAttributeRequest
|
674
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
675
|
+
|
676
|
+
include Google::Apis::Core::JsonObjectSupport
|
677
|
+
end
|
678
|
+
|
655
679
|
class GoogleCloudRetailV2betaRemoveControlRequest
|
656
680
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
657
681
|
|
@@ -676,6 +700,12 @@ module Google
|
|
676
700
|
include Google::Apis::Core::JsonObjectSupport
|
677
701
|
end
|
678
702
|
|
703
|
+
class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
679
709
|
class GoogleCloudRetailV2betaRule
|
680
710
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
711
|
|
@@ -1264,6 +1294,14 @@ module Google
|
|
1264
1294
|
end
|
1265
1295
|
end
|
1266
1296
|
|
1297
|
+
class GoogleCloudRetailV2betaAddCatalogAttributeRequest
|
1298
|
+
# @private
|
1299
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1300
|
+
property :catalog_attribute, as: 'catalogAttribute', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute::Representation
|
1301
|
+
|
1302
|
+
end
|
1303
|
+
end
|
1304
|
+
|
1267
1305
|
class GoogleCloudRetailV2betaAddControlRequest
|
1268
1306
|
# @private
|
1269
1307
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1293,6 +1331,16 @@ module Google
|
|
1293
1331
|
end
|
1294
1332
|
end
|
1295
1333
|
|
1334
|
+
class GoogleCloudRetailV2betaAttributesConfig
|
1335
|
+
# @private
|
1336
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1337
|
+
property :attribute_config_level, as: 'attributeConfigLevel'
|
1338
|
+
hash :catalog_attributes, as: 'catalogAttributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute::Representation
|
1339
|
+
|
1340
|
+
property :name, as: 'name'
|
1341
|
+
end
|
1342
|
+
end
|
1343
|
+
|
1296
1344
|
class GoogleCloudRetailV2betaAudience
|
1297
1345
|
# @private
|
1298
1346
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1324,6 +1372,18 @@ module Google
|
|
1324
1372
|
end
|
1325
1373
|
end
|
1326
1374
|
|
1375
|
+
class GoogleCloudRetailV2betaCatalogAttribute
|
1376
|
+
# @private
|
1377
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1378
|
+
property :dynamic_facetable_option, as: 'dynamicFacetableOption'
|
1379
|
+
property :in_use, as: 'inUse'
|
1380
|
+
property :indexable_option, as: 'indexableOption'
|
1381
|
+
property :key, as: 'key'
|
1382
|
+
property :searchable_option, as: 'searchableOption'
|
1383
|
+
property :type, as: 'type'
|
1384
|
+
end
|
1385
|
+
end
|
1386
|
+
|
1327
1387
|
class GoogleCloudRetailV2betaColorInfo
|
1328
1388
|
# @private
|
1329
1389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1833,6 +1893,13 @@ module Google
|
|
1833
1893
|
end
|
1834
1894
|
end
|
1835
1895
|
|
1896
|
+
class GoogleCloudRetailV2betaRemoveCatalogAttributeRequest
|
1897
|
+
# @private
|
1898
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1899
|
+
property :key, as: 'key'
|
1900
|
+
end
|
1901
|
+
end
|
1902
|
+
|
1836
1903
|
class GoogleCloudRetailV2betaRemoveControlRequest
|
1837
1904
|
# @private
|
1838
1905
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1862,6 +1929,15 @@ module Google
|
|
1862
1929
|
end
|
1863
1930
|
end
|
1864
1931
|
|
1932
|
+
class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
|
1933
|
+
# @private
|
1934
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1935
|
+
property :catalog_attribute, as: 'catalogAttribute', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute::Representation
|
1936
|
+
|
1937
|
+
property :update_mask, as: 'updateMask'
|
1938
|
+
end
|
1939
|
+
end
|
1940
|
+
|
1865
1941
|
class GoogleCloudRetailV2betaRule
|
1866
1942
|
# @private
|
1867
1943
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1984,6 +2060,7 @@ module Google
|
|
1984
2060
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1985
2061
|
collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec::Representation
|
1986
2062
|
|
2063
|
+
property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
|
1987
2064
|
end
|
1988
2065
|
end
|
1989
2066
|
|
@@ -2050,6 +2127,8 @@ module Google
|
|
2050
2127
|
property :corrected_query, as: 'correctedQuery'
|
2051
2128
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet::Representation
|
2052
2129
|
|
2130
|
+
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec::Representation
|
2131
|
+
|
2053
2132
|
property :next_page_token, as: 'nextPageToken'
|
2054
2133
|
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo::Representation
|
2055
2134
|
|
@@ -2128,6 +2207,7 @@ module Google
|
|
2128
2207
|
# @private
|
2129
2208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2130
2209
|
property :branch_id, as: 'branchId'
|
2210
|
+
property :force, as: 'force'
|
2131
2211
|
property :note, as: 'note'
|
2132
2212
|
end
|
2133
2213
|
end
|
@@ -123,11 +123,39 @@ module Google
|
|
123
123
|
execute_or_queue_command(command, &block)
|
124
124
|
end
|
125
125
|
|
126
|
+
# Gets an AttributesConfig.
|
127
|
+
# @param [String] name
|
128
|
+
# Required. Full AttributesConfig resource name. Format: projects/`
|
129
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
130
|
+
# @param [String] fields
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
132
|
+
# @param [String] quota_user
|
133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
+
# @param [Google::Apis::RequestOptions] options
|
136
|
+
# Request-specific options
|
137
|
+
#
|
138
|
+
# @yield [result, err] Result & error if block supplied
|
139
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] parsed result object
|
140
|
+
# @yieldparam err [StandardError] error object if request failed
|
141
|
+
#
|
142
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig]
|
143
|
+
#
|
144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
+
def get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:get, 'v2beta/{+name}', options)
|
149
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
150
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
|
151
|
+
command.params['name'] = name unless name.nil?
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
+
execute_or_queue_command(command, &block)
|
155
|
+
end
|
156
|
+
|
126
157
|
# 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.
|
158
|
+
# SetDefaultBranch method under a specified parent catalog.
|
131
159
|
# @param [String] catalog
|
132
160
|
# The parent catalog resource name, such as `projects/*/locations/global/
|
133
161
|
# catalogs/default_catalog`.
|
@@ -256,9 +284,7 @@ module Google
|
|
256
284
|
# PredictionService will only return product IDs from branch `newBranch`. *
|
257
285
|
# SearchService will only return product IDs from branch `newBranch` (if branch
|
258
286
|
# 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.
|
287
|
+
# from branch `newBranch`.
|
262
288
|
# @param [String] catalog
|
263
289
|
# Full resource name of the catalog, such as `projects/*/locations/global/
|
264
290
|
# catalogs/default_catalog`.
|
@@ -292,6 +318,157 @@ module Google
|
|
292
318
|
execute_or_queue_command(command, &block)
|
293
319
|
end
|
294
320
|
|
321
|
+
# Updates the AttributesConfig. The catalog attributes in the request will be
|
322
|
+
# updated in the catalog, or inserted if they do not exist. Existing catalog
|
323
|
+
# attributes not included in the request will remain unchanged. Attributes that
|
324
|
+
# are assigned to products, but do not exist at the catalog level, are always
|
325
|
+
# included in the response. The product attribute is assigned default values for
|
326
|
+
# missing catalog attribute fields, e.g., searchable and dynamic facetable
|
327
|
+
# options.
|
328
|
+
# @param [String] name
|
329
|
+
# Required. Immutable. The fully qualified resource name of the attribute config.
|
330
|
+
# Format: "projects/*/locations/*/catalogs/*/attributesConfig"
|
331
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] google_cloud_retail_v2beta_attributes_config_object
|
332
|
+
# @param [String] update_mask
|
333
|
+
# Indicates which fields in the provided AttributesConfig to update. The
|
334
|
+
# following is the only supported field: * AttributesConfig.catalog_attributes
|
335
|
+
# If not set, all supported fields are updated.
|
336
|
+
# @param [String] fields
|
337
|
+
# Selector specifying which fields to include in a partial response.
|
338
|
+
# @param [String] quota_user
|
339
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
340
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
341
|
+
# @param [Google::Apis::RequestOptions] options
|
342
|
+
# Request-specific options
|
343
|
+
#
|
344
|
+
# @yield [result, err] Result & error if block supplied
|
345
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] parsed result object
|
346
|
+
# @yieldparam err [StandardError] error object if request failed
|
347
|
+
#
|
348
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig]
|
349
|
+
#
|
350
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
351
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
352
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
353
|
+
def update_project_location_catalog_attributes_config(name, google_cloud_retail_v2beta_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
354
|
+
command = make_simple_command(:patch, 'v2beta/{+name}', options)
|
355
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
356
|
+
command.request_object = google_cloud_retail_v2beta_attributes_config_object
|
357
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
358
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
|
359
|
+
command.params['name'] = name unless name.nil?
|
360
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
361
|
+
command.query['fields'] = fields unless fields.nil?
|
362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
363
|
+
execute_or_queue_command(command, &block)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Adds the specified CatalogAttribute to the AttributesConfig. If the
|
367
|
+
# CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
|
368
|
+
# @param [String] attributes_config
|
369
|
+
# Required. Full AttributesConfig resource name. Format: projects/`
|
370
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
371
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddCatalogAttributeRequest] google_cloud_retail_v2beta_add_catalog_attribute_request_object
|
372
|
+
# @param [String] fields
|
373
|
+
# Selector specifying which fields to include in a partial response.
|
374
|
+
# @param [String] quota_user
|
375
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
376
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
377
|
+
# @param [Google::Apis::RequestOptions] options
|
378
|
+
# Request-specific options
|
379
|
+
#
|
380
|
+
# @yield [result, err] Result & error if block supplied
|
381
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] parsed result object
|
382
|
+
# @yieldparam err [StandardError] error object if request failed
|
383
|
+
#
|
384
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig]
|
385
|
+
#
|
386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
389
|
+
def add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
390
|
+
command = make_simple_command(:post, 'v2beta/{+attributesConfig}:addCatalogAttribute', options)
|
391
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddCatalogAttributeRequest::Representation
|
392
|
+
command.request_object = google_cloud_retail_v2beta_add_catalog_attribute_request_object
|
393
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
394
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
|
395
|
+
command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
|
396
|
+
command.query['fields'] = fields unless fields.nil?
|
397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
398
|
+
execute_or_queue_command(command, &block)
|
399
|
+
end
|
400
|
+
|
401
|
+
# Removes the specified CatalogAttribute from the AttributesConfig. If the
|
402
|
+
# CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
|
403
|
+
# @param [String] attributes_config
|
404
|
+
# Required. Full AttributesConfig resource name. Format: projects/`
|
405
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
406
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveCatalogAttributeRequest] google_cloud_retail_v2beta_remove_catalog_attribute_request_object
|
407
|
+
# @param [String] fields
|
408
|
+
# Selector specifying which fields to include in a partial response.
|
409
|
+
# @param [String] quota_user
|
410
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
411
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
412
|
+
# @param [Google::Apis::RequestOptions] options
|
413
|
+
# Request-specific options
|
414
|
+
#
|
415
|
+
# @yield [result, err] Result & error if block supplied
|
416
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] parsed result object
|
417
|
+
# @yieldparam err [StandardError] error object if request failed
|
418
|
+
#
|
419
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig]
|
420
|
+
#
|
421
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
422
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
423
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
424
|
+
def remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
425
|
+
command = make_simple_command(:post, 'v2beta/{+attributesConfig}:removeCatalogAttribute', options)
|
426
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveCatalogAttributeRequest::Representation
|
427
|
+
command.request_object = google_cloud_retail_v2beta_remove_catalog_attribute_request_object
|
428
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
429
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
|
430
|
+
command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
433
|
+
execute_or_queue_command(command, &block)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Replaces the specified CatalogAttribute in the AttributesConfig by updating
|
437
|
+
# the catalog attribute with the same CatalogAttribute.key. If the
|
438
|
+
# CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.
|
439
|
+
# @param [String] attributes_config
|
440
|
+
# Required. Full AttributesConfig resource name. Format: projects/`
|
441
|
+
# project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig
|
442
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest] google_cloud_retail_v2beta_replace_catalog_attribute_request_object
|
443
|
+
# @param [String] fields
|
444
|
+
# Selector specifying which fields to include in a partial response.
|
445
|
+
# @param [String] quota_user
|
446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
448
|
+
# @param [Google::Apis::RequestOptions] options
|
449
|
+
# Request-specific options
|
450
|
+
#
|
451
|
+
# @yield [result, err] Result & error if block supplied
|
452
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] parsed result object
|
453
|
+
# @yieldparam err [StandardError] error object if request failed
|
454
|
+
#
|
455
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig]
|
456
|
+
#
|
457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
460
|
+
def replace_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_replace_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
461
|
+
command = make_simple_command(:post, 'v2beta/{+attributesConfig}:replaceCatalogAttribute', options)
|
462
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest::Representation
|
463
|
+
command.request_object = google_cloud_retail_v2beta_replace_catalog_attribute_request_object
|
464
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation
|
465
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
|
466
|
+
command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
|
467
|
+
command.query['fields'] = fields unless fields.nil?
|
468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
469
|
+
execute_or_queue_command(command, &block)
|
470
|
+
end
|
471
|
+
|
295
472
|
# Gets the latest state of a long-running operation. Clients can use this method
|
296
473
|
# to poll the operation result at intervals as recommended by the API service.
|
297
474
|
# @param [String] name
|
@@ -687,7 +864,7 @@ module Google
|
|
687
864
|
# CreateProduct or UpdateProduct request. If no inventory fields are set in
|
688
865
|
# CreateProductRequest.product, then any pre-existing inventory information for
|
689
866
|
# this product will be used. If no inventory fields are set in
|
690
|
-
#
|
867
|
+
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
691
868
|
# preserved. Pre-existing inventory information can only be updated with
|
692
869
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
693
870
|
# is only available for users who have Retail Search enabled. Please submit a
|
@@ -1642,6 +1819,83 @@ module Google
|
|
1642
1819
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1643
1820
|
execute_or_queue_command(command, &block)
|
1644
1821
|
end
|
1822
|
+
|
1823
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1824
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1825
|
+
# @param [String] name
|
1826
|
+
# The name of the operation resource.
|
1827
|
+
# @param [String] fields
|
1828
|
+
# Selector specifying which fields to include in a partial response.
|
1829
|
+
# @param [String] quota_user
|
1830
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1831
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1832
|
+
# @param [Google::Apis::RequestOptions] options
|
1833
|
+
# Request-specific options
|
1834
|
+
#
|
1835
|
+
# @yield [result, err] Result & error if block supplied
|
1836
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
1837
|
+
# @yieldparam err [StandardError] error object if request failed
|
1838
|
+
#
|
1839
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
1840
|
+
#
|
1841
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1842
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1843
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1844
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1845
|
+
command = make_simple_command(:get, 'v2beta/{+name}', options)
|
1846
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
1847
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
1848
|
+
command.params['name'] = name unless name.nil?
|
1849
|
+
command.query['fields'] = fields unless fields.nil?
|
1850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1851
|
+
execute_or_queue_command(command, &block)
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
# Lists operations that match the specified filter in the request. If the server
|
1855
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1856
|
+
# binding allows API services to override the binding to use different resource
|
1857
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
1858
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1859
|
+
# service configuration. For backwards compatibility, the default name includes
|
1860
|
+
# the operations collection id, however overriding users must ensure the name
|
1861
|
+
# binding is the parent resource, without the operations collection id.
|
1862
|
+
# @param [String] name
|
1863
|
+
# The name of the operation's parent resource.
|
1864
|
+
# @param [String] filter
|
1865
|
+
# The standard list filter.
|
1866
|
+
# @param [Fixnum] page_size
|
1867
|
+
# The standard list page size.
|
1868
|
+
# @param [String] page_token
|
1869
|
+
# The standard list page token.
|
1870
|
+
# @param [String] fields
|
1871
|
+
# Selector specifying which fields to include in a partial response.
|
1872
|
+
# @param [String] quota_user
|
1873
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1874
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1875
|
+
# @param [Google::Apis::RequestOptions] options
|
1876
|
+
# Request-specific options
|
1877
|
+
#
|
1878
|
+
# @yield [result, err] Result & error if block supplied
|
1879
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse] parsed result object
|
1880
|
+
# @yieldparam err [StandardError] error object if request failed
|
1881
|
+
#
|
1882
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse]
|
1883
|
+
#
|
1884
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1885
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1886
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1887
|
+
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1888
|
+
command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
|
1889
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse::Representation
|
1890
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
|
1891
|
+
command.params['name'] = name unless name.nil?
|
1892
|
+
command.query['filter'] = filter unless filter.nil?
|
1893
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1894
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1895
|
+
command.query['fields'] = fields unless fields.nil?
|
1896
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1897
|
+
execute_or_queue_command(command, &block)
|
1898
|
+
end
|
1645
1899
|
|
1646
1900
|
protected
|
1647
1901
|
|
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.30.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-03-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_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.30.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: []
|