google-apis-retail_v2alpha 0.50.0 → 0.53.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: 21b93df1e143e62ad68aaf507f3bd12656e2a5db1f4cc5a9fda9ee3e03cc2bb7
|
4
|
+
data.tar.gz: 809c137f35f36feae0a9e988caa7518399a4aa5bfe9009dab87c78a1a6babdb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d513e46213cdc51515262aaf664e9319d97ad4cdd49fb3afd517572138f2559a6428c2e2eb13ca1b6d9b12a88fbf1037d0df81264d5005a1b22c6f8c5998d476
|
7
|
+
data.tar.gz: 5ae30acff83cfd78f4b6eb545e75ae0867c50e08db663dffa294a7da0c5e46aa4342427a47cdc07aee12ab1680bf0a7770abaa8678362d4f11a39c39670fb2b0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.53.0 (2022-08-21)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.52.0 (2022-08-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220811
|
10
|
+
|
11
|
+
### v0.51.0 (2022-08-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220729
|
14
|
+
|
3
15
|
### v0.50.0 (2022-07-26)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220722
|
@@ -365,8 +365,8 @@ module Google
|
|
365
365
|
include Google::Apis::Core::Hashable
|
366
366
|
|
367
367
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
368
|
-
# Cloud Storage directory. Import errors
|
369
|
-
#
|
368
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
369
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
370
370
|
# Corresponds to the JSON property `gcsPrefix`
|
371
371
|
# @return [String]
|
372
372
|
attr_accessor :gcs_prefix
|
@@ -381,8 +381,8 @@ module Google
|
|
381
381
|
end
|
382
382
|
end
|
383
383
|
|
384
|
-
# Metadata related to the progress of the Import operation. This
|
385
|
-
#
|
384
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
385
|
+
# the google.longrunning.Operation.metadata field.
|
386
386
|
class GoogleCloudRetailV2ImportMetadata
|
387
387
|
include Google::Apis::Core::Hashable
|
388
388
|
|
@@ -397,9 +397,9 @@ module Google
|
|
397
397
|
attr_accessor :failure_count
|
398
398
|
|
399
399
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
400
|
-
# import is finished, a notification
|
401
|
-
#
|
402
|
-
#
|
400
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
401
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
402
|
+
# projects/`project`/topics/`topic``.
|
403
403
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
404
404
|
# @return [String]
|
405
405
|
attr_accessor :notification_pubsub_topic
|
@@ -960,6 +960,54 @@ module Google
|
|
960
960
|
end
|
961
961
|
end
|
962
962
|
|
963
|
+
# Request for CatalogService.BatchRemoveCatalogAttributes method.
|
964
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest
|
965
|
+
include Google::Apis::Core::Hashable
|
966
|
+
|
967
|
+
# Required. The attribute name keys of the CatalogAttributes to delete. A
|
968
|
+
# maximum of 1000 catalog attributes can be deleted in a batch.
|
969
|
+
# Corresponds to the JSON property `attributeKeys`
|
970
|
+
# @return [Array<String>]
|
971
|
+
attr_accessor :attribute_keys
|
972
|
+
|
973
|
+
def initialize(**args)
|
974
|
+
update!(**args)
|
975
|
+
end
|
976
|
+
|
977
|
+
# Update properties of this object
|
978
|
+
def update!(**args)
|
979
|
+
@attribute_keys = args[:attribute_keys] if args.key?(:attribute_keys)
|
980
|
+
end
|
981
|
+
end
|
982
|
+
|
983
|
+
# Response of the CatalogService.BatchRemoveCatalogAttributes.
|
984
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse
|
985
|
+
include Google::Apis::Core::Hashable
|
986
|
+
|
987
|
+
# Catalog attributes that were deleted. Only attributes that are not in use by
|
988
|
+
# products can be deleted.
|
989
|
+
# Corresponds to the JSON property `deletedCatalogAttributes`
|
990
|
+
# @return [Array<String>]
|
991
|
+
attr_accessor :deleted_catalog_attributes
|
992
|
+
|
993
|
+
# Catalog attributes that were reset. Attributes that are in use by products
|
994
|
+
# cannot be deleted, however their configuration properties will reset to
|
995
|
+
# default values upon removal request.
|
996
|
+
# Corresponds to the JSON property `resetCatalogAttributes`
|
997
|
+
# @return [Array<String>]
|
998
|
+
attr_accessor :reset_catalog_attributes
|
999
|
+
|
1000
|
+
def initialize(**args)
|
1001
|
+
update!(**args)
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
# Update properties of this object
|
1005
|
+
def update!(**args)
|
1006
|
+
@deleted_catalog_attributes = args[:deleted_catalog_attributes] if args.key?(:deleted_catalog_attributes)
|
1007
|
+
@reset_catalog_attributes = args[:reset_catalog_attributes] if args.key?(:reset_catalog_attributes)
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
963
1011
|
# A BigQuery output result.
|
964
1012
|
class GoogleCloudRetailV2alphaBigQueryOutputResult
|
965
1013
|
include Google::Apis::Core::Hashable
|
@@ -996,12 +1044,11 @@ module Google
|
|
996
1044
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
997
1045
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
998
1046
|
# user_event_ga360`: The schema is available here: https://support.google.com/
|
999
|
-
# analytics/answer/3437719. * `user_event_ga4`:
|
1000
|
-
#
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
#
|
1004
|
-
# suggestion per line. * `allowlist`: One JSON allow suggestion per line.
|
1047
|
+
# analytics/answer/3437719. * `user_event_ga4`: The schema is available here:
|
1048
|
+
# https://support.google.com/analytics/answer/7029846. Supported values for auto-
|
1049
|
+
# completion imports: * `suggestions` (default): One JSON completion suggestion
|
1050
|
+
# per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One
|
1051
|
+
# JSON allow suggestion per line.
|
1005
1052
|
# Corresponds to the JSON property `dataSchema`
|
1006
1053
|
# @return [String]
|
1007
1054
|
attr_accessor :data_schema
|
@@ -1112,6 +1159,13 @@ module Google
|
|
1112
1159
|
# @return [String]
|
1113
1160
|
attr_accessor :dynamic_facetable_option
|
1114
1161
|
|
1162
|
+
# If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This
|
1163
|
+
# property only applies to textual custom attributes and requires indexable set
|
1164
|
+
# to enabled to enable exact-searchable.
|
1165
|
+
# Corresponds to the JSON property `exactSearchableOption`
|
1166
|
+
# @return [String]
|
1167
|
+
attr_accessor :exact_searchable_option
|
1168
|
+
|
1115
1169
|
# Output only. Indicates whether this attribute has been used by any products. `
|
1116
1170
|
# True` if at least one Product is using this attribute in Product.attributes.
|
1117
1171
|
# Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
|
@@ -1173,6 +1227,7 @@ module Google
|
|
1173
1227
|
# Update properties of this object
|
1174
1228
|
def update!(**args)
|
1175
1229
|
@dynamic_facetable_option = args[:dynamic_facetable_option] if args.key?(:dynamic_facetable_option)
|
1230
|
+
@exact_searchable_option = args[:exact_searchable_option] if args.key?(:exact_searchable_option)
|
1176
1231
|
@in_use = args[:in_use] if args.key?(:in_use)
|
1177
1232
|
@indexable_option = args[:indexable_option] if args.key?(:indexable_option)
|
1178
1233
|
@key = args[:key] if args.key?(:key)
|
@@ -1245,7 +1300,7 @@ module Google
|
|
1245
1300
|
# CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The
|
1246
1301
|
# recent searches satisfy the follow rules: * They are ordered from latest to
|
1247
1302
|
# oldest. * They are matched with CompleteQueryRequest.query case insensitively.
|
1248
|
-
# * They are transformed to lower
|
1303
|
+
# * They are transformed to lower case. * They are UTF-8 safe. Recent searches
|
1249
1304
|
# are deduplicated. More recent searches will be reserved when duplication
|
1250
1305
|
# happens.
|
1251
1306
|
# Corresponds to the JSON property `recentSearchResults`
|
@@ -1365,16 +1420,16 @@ module Google
|
|
1365
1420
|
# @return [String]
|
1366
1421
|
attr_accessor :matching_order
|
1367
1422
|
|
1368
|
-
# The maximum number of autocomplete suggestions returned per term.
|
1369
|
-
#
|
1370
|
-
#
|
1423
|
+
# The maximum number of autocomplete suggestions returned per term. Default
|
1424
|
+
# value is 20. If left unset or set to 0, then will fallback to default value.
|
1425
|
+
# Value range is 1 to 20.
|
1371
1426
|
# Corresponds to the JSON property `maxSuggestions`
|
1372
1427
|
# @return [Fixnum]
|
1373
1428
|
attr_accessor :max_suggestions
|
1374
1429
|
|
1375
1430
|
# The minimum number of characters needed to be typed in order to get
|
1376
1431
|
# suggestions. Default value is 2. If left unset or set to 0, then will fallback
|
1377
|
-
# to default value.
|
1432
|
+
# to default value. Value range is 1 to 20.
|
1378
1433
|
# Corresponds to the JSON property `minPrefixLength`
|
1379
1434
|
# @return [Fixnum]
|
1380
1435
|
attr_accessor :min_prefix_length
|
@@ -1837,7 +1892,7 @@ module Google
|
|
1837
1892
|
end
|
1838
1893
|
end
|
1839
1894
|
|
1840
|
-
# Google Cloud Storage location for input content.
|
1895
|
+
# Google Cloud Storage location for input content.
|
1841
1896
|
class GoogleCloudRetailV2alphaGcsSource
|
1842
1897
|
include Google::Apis::Core::Hashable
|
1843
1898
|
|
@@ -1848,8 +1903,8 @@ module Google
|
|
1848
1903
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
1849
1904
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
1850
1905
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
|
1851
|
-
# Supported values for control imports: *
|
1852
|
-
# per line. Supported values for catalog attribute imports: *
|
1906
|
+
# Supported values for control imports: * `control` (default): One JSON Control
|
1907
|
+
# per line. Supported values for catalog attribute imports: * `catalog_attribute`
|
1853
1908
|
# (default): One CSV CatalogAttribute per line.
|
1854
1909
|
# Corresponds to the JSON property `dataSchema`
|
1855
1910
|
# @return [String]
|
@@ -1959,9 +2014,9 @@ module Google
|
|
1959
2014
|
attr_accessor :input_config
|
1960
2015
|
|
1961
2016
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
1962
|
-
# import is finished, a notification
|
1963
|
-
#
|
1964
|
-
#
|
2017
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
2018
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
2019
|
+
# projects/`project`/topics/`topic``.
|
1965
2020
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
1966
2021
|
# @return [String]
|
1967
2022
|
attr_accessor :notification_pubsub_topic
|
@@ -2003,8 +2058,8 @@ module Google
|
|
2003
2058
|
include Google::Apis::Core::Hashable
|
2004
2059
|
|
2005
2060
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
2006
|
-
# Cloud Storage directory. Import errors
|
2007
|
-
#
|
2061
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
2062
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
2008
2063
|
# Corresponds to the JSON property `gcsPrefix`
|
2009
2064
|
# @return [String]
|
2010
2065
|
attr_accessor :gcs_prefix
|
@@ -2019,8 +2074,8 @@ module Google
|
|
2019
2074
|
end
|
2020
2075
|
end
|
2021
2076
|
|
2022
|
-
# Metadata related to the progress of the Import operation. This
|
2023
|
-
#
|
2077
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
2078
|
+
# the google.longrunning.Operation.metadata field.
|
2024
2079
|
class GoogleCloudRetailV2alphaImportMetadata
|
2025
2080
|
include Google::Apis::Core::Hashable
|
2026
2081
|
|
@@ -2035,9 +2090,9 @@ module Google
|
|
2035
2090
|
attr_accessor :failure_count
|
2036
2091
|
|
2037
2092
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
2038
|
-
# import is finished, a notification
|
2039
|
-
#
|
2040
|
-
#
|
2093
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
2094
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
2095
|
+
# projects/`project`/topics/`topic``.
|
2041
2096
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2042
2097
|
# @return [String]
|
2043
2098
|
attr_accessor :notification_pubsub_topic
|
@@ -2052,6 +2107,11 @@ module Google
|
|
2052
2107
|
# @return [Fixnum]
|
2053
2108
|
attr_accessor :success_count
|
2054
2109
|
|
2110
|
+
# Metadata related to transform user events operation.
|
2111
|
+
# Corresponds to the JSON property `transformedUserEventsMetadata`
|
2112
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTransformedUserEventsMetadata]
|
2113
|
+
attr_accessor :transformed_user_events_metadata
|
2114
|
+
|
2055
2115
|
# Operation last update time. If the operation is done, this is also the finish
|
2056
2116
|
# time.
|
2057
2117
|
# Corresponds to the JSON property `updateTime`
|
@@ -2069,6 +2129,7 @@ module Google
|
|
2069
2129
|
@notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
|
2070
2130
|
@request_id = args[:request_id] if args.key?(:request_id)
|
2071
2131
|
@success_count = args[:success_count] if args.key?(:success_count)
|
2132
|
+
@transformed_user_events_metadata = args[:transformed_user_events_metadata] if args.key?(:transformed_user_events_metadata)
|
2072
2133
|
@update_time = args[:update_time] if args.key?(:update_time)
|
2073
2134
|
end
|
2074
2135
|
end
|
@@ -2088,14 +2149,12 @@ module Google
|
|
2088
2149
|
attr_accessor :input_config
|
2089
2150
|
|
2090
2151
|
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
2091
|
-
# the import is finished, a notification
|
2092
|
-
#
|
2093
|
-
#
|
2094
|
-
#
|
2095
|
-
#
|
2096
|
-
#
|
2097
|
-
# the topic. Only supported when ImportProductsRequest.reconciliation_mode is
|
2098
|
-
# set to `FULL`.
|
2152
|
+
# the import is finished, a notification is sent to specified Pub/Sub topic. The
|
2153
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
2154
|
+
# projects/`project`/topics/`topic``. It has to be within the same project as
|
2155
|
+
# ImportProductsRequest.parent. Make sure that `service-@gcp-sa-retail.iam.
|
2156
|
+
# gserviceaccount.com` has the `pubsub.topics.publish` IAM permission on the
|
2157
|
+
# topic.
|
2099
2158
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2100
2159
|
# @return [String]
|
2101
2160
|
attr_accessor :notification_pubsub_topic
|
@@ -2111,7 +2170,7 @@ module Google
|
|
2111
2170
|
# @return [String]
|
2112
2171
|
attr_accessor :request_id
|
2113
2172
|
|
2114
|
-
# If true,
|
2173
|
+
# If true, this performs the FULL import even if it would delete a large
|
2115
2174
|
# proportion of the products in the default branch, which could potentially
|
2116
2175
|
# cause outages if you have live predict/search traffic. Only supported when
|
2117
2176
|
# ImportProductsRequest.reconciliation_mode is set to `FULL`.
|
@@ -2120,8 +2179,8 @@ module Google
|
|
2120
2179
|
attr_accessor :skip_default_branch_protection
|
2121
2180
|
alias_method :skip_default_branch_protection?, :skip_default_branch_protection
|
2122
2181
|
|
2123
|
-
# Indicates which fields in the provided imported
|
2124
|
-
# set,
|
2182
|
+
# Indicates which fields in the provided imported `products` to update. If not
|
2183
|
+
# set, all fields are updated.
|
2125
2184
|
# Corresponds to the JSON property `updateMask`
|
2126
2185
|
# @return [String]
|
2127
2186
|
attr_accessor :update_mask
|
@@ -2470,8 +2529,8 @@ module Google
|
|
2470
2529
|
attr_accessor :branch_id
|
2471
2530
|
|
2472
2531
|
# String representing the destination to import for, all if left empty. List of
|
2473
|
-
# possible values
|
2474
|
-
# answer/7501026
|
2532
|
+
# possible values is given in [Included destination](https://support.google.com/
|
2533
|
+
# merchants/answer/7501026). List of allowed string values: "Shopping_ads", "
|
2475
2534
|
# Buy_on_google_listings", "Display_ads", "Local_inventory _ads", "Free_listings"
|
2476
2535
|
# , "Free_local_listings" NOTE: The string values are case sensitive.
|
2477
2536
|
# Corresponds to the JSON property `destinations`
|
@@ -2538,7 +2597,7 @@ module Google
|
|
2538
2597
|
|
2539
2598
|
# Metadata that describes the training and serving parameters of a Model. A
|
2540
2599
|
# Model can be associated with a ServingConfig and then queried through the
|
2541
|
-
# Predict
|
2600
|
+
# Predict API.
|
2542
2601
|
class GoogleCloudRetailV2alphaModel
|
2543
2602
|
include Google::Apis::Core::Hashable
|
2544
2603
|
|
@@ -2547,23 +2606,23 @@ module Google
|
|
2547
2606
|
# @return [String]
|
2548
2607
|
attr_accessor :create_time
|
2549
2608
|
|
2550
|
-
# Output only. The state of data requirements for this model: DATA_OK and
|
2551
|
-
# DATA_ERROR
|
2552
|
-
# DATA_ERROR state. Recommendation model can have DATA_ERROR state even if
|
2553
|
-
# serving state is ACTIVE
|
2609
|
+
# Output only. The state of data requirements for this model: `DATA_OK` and `
|
2610
|
+
# DATA_ERROR`. Recommendation model cannot be trained if the data is in `
|
2611
|
+
# DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if
|
2612
|
+
# serving state is `ACTIVE`: models were trained successfully before, but cannot
|
2554
2613
|
# be refreshed because model no longer has sufficient data for training.
|
2555
2614
|
# Corresponds to the JSON property `dataState`
|
2556
2615
|
# @return [String]
|
2557
2616
|
attr_accessor :data_state
|
2558
2617
|
|
2559
2618
|
# Required. The display name of the model. Should be human readable, used to
|
2560
|
-
# display Recommendation Models in the Retail
|
2561
|
-
# string with limit of 1024 characters.
|
2619
|
+
# display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8
|
2620
|
+
# encoded string with limit of 1024 characters.
|
2562
2621
|
# Corresponds to the JSON property `displayName`
|
2563
2622
|
# @return [String]
|
2564
2623
|
attr_accessor :display_name
|
2565
2624
|
|
2566
|
-
# Optional. If RECOMMENDATIONS_FILTERING_ENABLED
|
2625
|
+
# Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by
|
2567
2626
|
# attributes is enabled for the model.
|
2568
2627
|
# Corresponds to the JSON property `filteringOption`
|
2569
2628
|
# @return [String]
|
@@ -2574,9 +2633,10 @@ module Google
|
|
2574
2633
|
# @return [String]
|
2575
2634
|
attr_accessor :last_tune_time
|
2576
2635
|
|
2577
|
-
# Required. The fully qualified resource name of the model. Format: projects/`
|
2636
|
+
# Required. The fully qualified resource name of the model. Format: `projects/`
|
2578
2637
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
2579
|
-
# catalog_id has char limit of 50. recommendation_model_id has char limit of
|
2638
|
+
# ` catalog_id has char limit of 50. recommendation_model_id has char limit of
|
2639
|
+
# 40.
|
2580
2640
|
# Corresponds to the JSON property `name`
|
2581
2641
|
# @return [String]
|
2582
2642
|
attr_accessor :name
|
@@ -2599,8 +2659,8 @@ module Google
|
|
2599
2659
|
attr_accessor :page_optimization_config
|
2600
2660
|
|
2601
2661
|
# Optional. The state of periodic tuning. The period we use is 3 months - to do
|
2602
|
-
# a one-off tune earlier use the TuneModel method. Default value is
|
2603
|
-
# PERIODIC_TUNING_ENABLED
|
2662
|
+
# a one-off tune earlier use the `TuneModel` method. Default value is `
|
2663
|
+
# PERIODIC_TUNING_ENABLED`.
|
2604
2664
|
# Corresponds to the JSON property `periodicTuningState`
|
2605
2665
|
# @return [String]
|
2606
2666
|
attr_accessor :periodic_tuning_state
|
@@ -2611,16 +2671,16 @@ module Google
|
|
2611
2671
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModelServingConfigList>]
|
2612
2672
|
attr_accessor :serving_config_lists
|
2613
2673
|
|
2614
|
-
# Output only. The serving state of the model: ACTIVE
|
2674
|
+
# Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
|
2615
2675
|
# Corresponds to the JSON property `servingState`
|
2616
2676
|
# @return [String]
|
2617
2677
|
attr_accessor :serving_state
|
2618
2678
|
|
2619
|
-
# Optional. The training state that the model is in (e.g. TRAINING or PAUSED)
|
2620
|
-
# Since part of the cost of running the service is frequency of training -
|
2621
|
-
# can be used to determine when to train model in order to control cost. If
|
2622
|
-
# specified: the default value for CreateModel method is TRAINING
|
2623
|
-
# value for UpdateModel method is to keep the state the same as before.
|
2679
|
+
# Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`)
|
2680
|
+
# . Since part of the cost of running the service is frequency of training -
|
2681
|
+
# this can be used to determine when to train model in order to control cost. If
|
2682
|
+
# not specified: the default value for `CreateModel` method is `TRAINING`. The
|
2683
|
+
# default value for `UpdateModel` method is to keep the state the same as before.
|
2624
2684
|
# Corresponds to the JSON property `trainingState`
|
2625
2685
|
# @return [String]
|
2626
2686
|
attr_accessor :training_state
|
@@ -2634,7 +2694,7 @@ module Google
|
|
2634
2694
|
|
2635
2695
|
# Required. The type of model e.g. `home-page`. Currently supported values: `
|
2636
2696
|
# recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
|
2637
|
-
# page-optimization`,
|
2697
|
+
# page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
|
2638
2698
|
# readonly value).
|
2639
2699
|
# Corresponds to the JSON property `type`
|
2640
2700
|
# @return [String]
|
@@ -2719,9 +2779,10 @@ module Google
|
|
2719
2779
|
class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
|
2720
2780
|
include Google::Apis::Core::Hashable
|
2721
2781
|
|
2722
|
-
# This has to be a valid ServingConfig identifier.
|
2723
|
-
# full name: `projects/*/locations/global/catalogs/
|
2724
|
-
# servingConfigs/my_candidate_config
|
2782
|
+
# This has to be a valid ServingConfig identifier. For example, for a
|
2783
|
+
# ServingConfig with full name: `projects/*/locations/global/catalogs/
|
2784
|
+
# default_catalog/servingConfigs/my_candidate_config`, this would be `
|
2785
|
+
# my_candidate_config`.
|
2725
2786
|
# Corresponds to the JSON property `servingConfigId`
|
2726
2787
|
# @return [String]
|
2727
2788
|
attr_accessor :serving_config_id
|
@@ -2768,13 +2829,13 @@ module Google
|
|
2768
2829
|
end
|
2769
2830
|
end
|
2770
2831
|
|
2771
|
-
# Represents an ordered combination of valid serving configs, which
|
2772
|
-
#
|
2832
|
+
# Represents an ordered combination of valid serving configs, which can be used
|
2833
|
+
# for `PAGE_OPTIMIZATION` recommendations.
|
2773
2834
|
class GoogleCloudRetailV2alphaModelServingConfigList
|
2774
2835
|
include Google::Apis::Core::Hashable
|
2775
2836
|
|
2776
|
-
# Optional. A set of valid serving configs that may be used for
|
2777
|
-
# PAGE_OPTIMIZATION
|
2837
|
+
# Optional. A set of valid serving configs that may be used for `
|
2838
|
+
# PAGE_OPTIMIZATION`.
|
2778
2839
|
# Corresponds to the JSON property `servingConfigIds`
|
2779
2840
|
# @return [Array<String>]
|
2780
2841
|
attr_accessor :serving_config_ids
|
@@ -2865,15 +2926,15 @@ module Google
|
|
2865
2926
|
# @return [Hash<String,String>]
|
2866
2927
|
attr_accessor :labels
|
2867
2928
|
|
2868
|
-
# Maximum number of results to return
|
2869
|
-
#
|
2929
|
+
# Maximum number of results to return. Set this property to the number of
|
2930
|
+
# prediction results needed. If zero, the service will choose a reasonable
|
2870
2931
|
# default. The maximum allowed value is 100. Values above 100 will be coerced to
|
2871
2932
|
# 100.
|
2872
2933
|
# Corresponds to the JSON property `pageSize`
|
2873
2934
|
# @return [Fixnum]
|
2874
2935
|
attr_accessor :page_size
|
2875
2936
|
|
2876
|
-
# This field is not used
|
2937
|
+
# This field is not used; leave it unset.
|
2877
2938
|
# Corresponds to the JSON property `pageToken`
|
2878
2939
|
# @return [String]
|
2879
2940
|
attr_accessor :page_token
|
@@ -3180,7 +3241,7 @@ module Google
|
|
3180
3241
|
|
3181
3242
|
# The id of the collection members when type is Type.COLLECTION. Non-existent
|
3182
3243
|
# product ids are allowed. The type of the members must be either Type.PRIMARY
|
3183
|
-
# or Type.VARIANT otherwise
|
3244
|
+
# or Type.VARIANT otherwise an INVALID_ARGUMENT error is thrown. Should not set
|
3184
3245
|
# it for other types. A maximum of 1000 values are allowed. Otherwise, an
|
3185
3246
|
# INVALID_ARGUMENT error is return.
|
3186
3247
|
# Corresponds to the JSON property `collectionMemberIds`
|
@@ -3529,7 +3590,7 @@ module Google
|
|
3529
3590
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBigQuerySource]
|
3530
3591
|
attr_accessor :big_query_source
|
3531
3592
|
|
3532
|
-
# Google Cloud Storage location for input content.
|
3593
|
+
# Google Cloud Storage location for input content.
|
3533
3594
|
# Corresponds to the JSON property `gcsSource`
|
3534
3595
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGcsSource]
|
3535
3596
|
attr_accessor :gcs_source
|
@@ -4201,7 +4262,7 @@ module Google
|
|
4201
4262
|
attr_accessor :do_not_associate_action
|
4202
4263
|
|
4203
4264
|
# * Rule Condition: - No Condition.query_terms provided is a global match. - 1
|
4204
|
-
# or more Condition.query_terms provided
|
4265
|
+
# or more Condition.query_terms provided are combined with OR operator. * Action
|
4205
4266
|
# Input: The request query and filter that are applied to the retrieved products,
|
4206
4267
|
# in addition to any filters already provided with the SearchRequest. The AND
|
4207
4268
|
# operator is used to combine the query's existing filters with the filter rule(
|
@@ -4338,7 +4399,7 @@ module Google
|
|
4338
4399
|
end
|
4339
4400
|
|
4340
4401
|
# * Rule Condition: - No Condition.query_terms provided is a global match. - 1
|
4341
|
-
# or more Condition.query_terms provided
|
4402
|
+
# or more Condition.query_terms provided are combined with OR operator. * Action
|
4342
4403
|
# Input: The request query and filter that are applied to the retrieved products,
|
4343
4404
|
# in addition to any filters already provided with the SearchRequest. The AND
|
4344
4405
|
# operator is used to combine the query's existing filters with the filter rule(
|
@@ -4967,6 +5028,13 @@ module Google
|
|
4967
5028
|
# @return [Array<String>]
|
4968
5029
|
attr_accessor :restricted_values
|
4969
5030
|
|
5031
|
+
# Returns the min and max value for each numerical facet intervals. Ignored for
|
5032
|
+
# textual facets.
|
5033
|
+
# Corresponds to the JSON property `returnMinMax`
|
5034
|
+
# @return [Boolean]
|
5035
|
+
attr_accessor :return_min_max
|
5036
|
+
alias_method :return_min_max?, :return_min_max
|
5037
|
+
|
4970
5038
|
def initialize(**args)
|
4971
5039
|
update!(**args)
|
4972
5040
|
end
|
@@ -4981,6 +5049,7 @@ module Google
|
|
4981
5049
|
@prefixes = args[:prefixes] if args.key?(:prefixes)
|
4982
5050
|
@query = args[:query] if args.key?(:query)
|
4983
5051
|
@restricted_values = args[:restricted_values] if args.key?(:restricted_values)
|
5052
|
+
@return_min_max = args[:return_min_max] if args.key?(:return_min_max)
|
4984
5053
|
end
|
4985
5054
|
end
|
4986
5055
|
|
@@ -5183,6 +5252,18 @@ module Google
|
|
5183
5252
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval]
|
5184
5253
|
attr_accessor :interval
|
5185
5254
|
|
5255
|
+
# The maximum value in the FacetValue.interval. Only supported on numerical
|
5256
|
+
# facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
|
5257
|
+
# Corresponds to the JSON property `maxValue`
|
5258
|
+
# @return [Float]
|
5259
|
+
attr_accessor :max_value
|
5260
|
+
|
5261
|
+
# The minimum value in the FacetValue.interval. Only supported on numerical
|
5262
|
+
# facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
|
5263
|
+
# Corresponds to the JSON property `minValue`
|
5264
|
+
# @return [Float]
|
5265
|
+
attr_accessor :min_value
|
5266
|
+
|
5186
5267
|
# Text value of a facet, such as "Black" for facet "colorFamilies".
|
5187
5268
|
# Corresponds to the JSON property `value`
|
5188
5269
|
# @return [String]
|
@@ -5196,6 +5277,8 @@ module Google
|
|
5196
5277
|
def update!(**args)
|
5197
5278
|
@count = args[:count] if args.key?(:count)
|
5198
5279
|
@interval = args[:interval] if args.key?(:interval)
|
5280
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
5281
|
+
@min_value = args[:min_value] if args.key?(:min_value)
|
5199
5282
|
@value = args[:value] if args.key?(:value)
|
5200
5283
|
end
|
5201
5284
|
end
|
@@ -5251,6 +5334,15 @@ module Google
|
|
5251
5334
|
# @return [Hash<String,String>]
|
5252
5335
|
attr_accessor :matching_variant_fields
|
5253
5336
|
|
5337
|
+
# Specifies previous events related to this product for this user based on
|
5338
|
+
# UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set
|
5339
|
+
# only when SearchRequest.PersonalizationSpec.mode is SearchRequest.
|
5340
|
+
# PersonalizationSpec.Mode.AUTO. Possible values: * `purchased`: Indicates that
|
5341
|
+
# this product has been purchased before.
|
5342
|
+
# Corresponds to the JSON property `personalLabels`
|
5343
|
+
# @return [Array<String>]
|
5344
|
+
attr_accessor :personal_labels
|
5345
|
+
|
5254
5346
|
# Product captures all metadata information of items to be recommended or
|
5255
5347
|
# searched.
|
5256
5348
|
# Corresponds to the JSON property `product`
|
@@ -5283,6 +5375,7 @@ module Google
|
|
5283
5375
|
@id = args[:id] if args.key?(:id)
|
5284
5376
|
@matching_variant_count = args[:matching_variant_count] if args.key?(:matching_variant_count)
|
5285
5377
|
@matching_variant_fields = args[:matching_variant_fields] if args.key?(:matching_variant_fields)
|
5378
|
+
@personal_labels = args[:personal_labels] if args.key?(:personal_labels)
|
5286
5379
|
@product = args[:product] if args.key?(:product)
|
5287
5380
|
@variant_rollup_values = args[:variant_rollup_values] if args.key?(:variant_rollup_values)
|
5288
5381
|
end
|
@@ -5579,6 +5672,32 @@ module Google
|
|
5579
5672
|
end
|
5580
5673
|
end
|
5581
5674
|
|
5675
|
+
# Metadata related to transform user events operation.
|
5676
|
+
class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
|
5677
|
+
include Google::Apis::Core::Hashable
|
5678
|
+
|
5679
|
+
# Count of entries in the source user events BigQuery table.
|
5680
|
+
# Corresponds to the JSON property `sourceEventsCount`
|
5681
|
+
# @return [Fixnum]
|
5682
|
+
attr_accessor :source_events_count
|
5683
|
+
|
5684
|
+
# Count of entries in the transformed user events BigQuery table, which could be
|
5685
|
+
# different from the actually imported number of user events.
|
5686
|
+
# Corresponds to the JSON property `transformedEventsCount`
|
5687
|
+
# @return [Fixnum]
|
5688
|
+
attr_accessor :transformed_events_count
|
5689
|
+
|
5690
|
+
def initialize(**args)
|
5691
|
+
update!(**args)
|
5692
|
+
end
|
5693
|
+
|
5694
|
+
# Update properties of this object
|
5695
|
+
def update!(**args)
|
5696
|
+
@source_events_count = args[:source_events_count] if args.key?(:source_events_count)
|
5697
|
+
@transformed_events_count = args[:transformed_events_count] if args.key?(:transformed_events_count)
|
5698
|
+
end
|
5699
|
+
end
|
5700
|
+
|
5582
5701
|
# Metadata associated with a tune operation.
|
5583
5702
|
class GoogleCloudRetailV2alphaTuneModelMetadata
|
5584
5703
|
include Google::Apis::Core::Hashable
|
@@ -5908,7 +6027,7 @@ module Google
|
|
5908
6027
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBigQuerySource]
|
5909
6028
|
attr_accessor :big_query_source
|
5910
6029
|
|
5911
|
-
# Google Cloud Storage location for input content.
|
6030
|
+
# Google Cloud Storage location for input content.
|
5912
6031
|
# Corresponds to the JSON property `gcsSource`
|
5913
6032
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGcsSource]
|
5914
6033
|
attr_accessor :gcs_source
|
@@ -6213,8 +6332,8 @@ module Google
|
|
6213
6332
|
include Google::Apis::Core::Hashable
|
6214
6333
|
|
6215
6334
|
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
6216
|
-
# Cloud Storage directory. Import errors
|
6217
|
-
#
|
6335
|
+
# Cloud Storage directory. Import errors are written to sharded files in this
|
6336
|
+
# directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
6218
6337
|
# Corresponds to the JSON property `gcsPrefix`
|
6219
6338
|
# @return [String]
|
6220
6339
|
attr_accessor :gcs_prefix
|
@@ -6229,8 +6348,8 @@ module Google
|
|
6229
6348
|
end
|
6230
6349
|
end
|
6231
6350
|
|
6232
|
-
# Metadata related to the progress of the Import operation. This
|
6233
|
-
#
|
6351
|
+
# Metadata related to the progress of the Import operation. This is returned by
|
6352
|
+
# the google.longrunning.Operation.metadata field.
|
6234
6353
|
class GoogleCloudRetailV2betaImportMetadata
|
6235
6354
|
include Google::Apis::Core::Hashable
|
6236
6355
|
|
@@ -6245,9 +6364,9 @@ module Google
|
|
6245
6364
|
attr_accessor :failure_count
|
6246
6365
|
|
6247
6366
|
# Pub/Sub topic for receiving notification. If this field is set, when the
|
6248
|
-
# import is finished, a notification
|
6249
|
-
#
|
6250
|
-
#
|
6367
|
+
# import is finished, a notification is sent to specified Pub/Sub topic. The
|
6368
|
+
# message data is JSON string of a Operation. Format of the Pub/Sub topic is `
|
6369
|
+
# projects/`project`/topics/`topic``.
|
6251
6370
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
6252
6371
|
# @return [String]
|
6253
6372
|
attr_accessor :notification_pubsub_topic
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2alpha
|
18
18
|
# Version of the google-apis-retail_v2alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.53.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220811"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -244,6 +244,18 @@ module Google
|
|
244
244
|
include Google::Apis::Core::JsonObjectSupport
|
245
245
|
end
|
246
246
|
|
247
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class GoogleCloudRetailV2alphaBigQueryOutputResult
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -898,6 +910,12 @@ module Google
|
|
898
910
|
include Google::Apis::Core::JsonObjectSupport
|
899
911
|
end
|
900
912
|
|
913
|
+
class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
|
914
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
915
|
+
|
916
|
+
include Google::Apis::Core::JsonObjectSupport
|
917
|
+
end
|
918
|
+
|
901
919
|
class GoogleCloudRetailV2alphaTuneModelMetadata
|
902
920
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
903
921
|
|
@@ -1422,6 +1440,21 @@ module Google
|
|
1422
1440
|
end
|
1423
1441
|
end
|
1424
1442
|
|
1443
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest
|
1444
|
+
# @private
|
1445
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1446
|
+
collection :attribute_keys, as: 'attributeKeys'
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse
|
1451
|
+
# @private
|
1452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1453
|
+
collection :deleted_catalog_attributes, as: 'deletedCatalogAttributes'
|
1454
|
+
collection :reset_catalog_attributes, as: 'resetCatalogAttributes'
|
1455
|
+
end
|
1456
|
+
end
|
1457
|
+
|
1425
1458
|
class GoogleCloudRetailV2alphaBigQueryOutputResult
|
1426
1459
|
# @private
|
1427
1460
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1459,6 +1492,7 @@ module Google
|
|
1459
1492
|
# @private
|
1460
1493
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1461
1494
|
property :dynamic_facetable_option, as: 'dynamicFacetableOption'
|
1495
|
+
property :exact_searchable_option, as: 'exactSearchableOption'
|
1462
1496
|
property :in_use, as: 'inUse'
|
1463
1497
|
property :indexable_option, as: 'indexableOption'
|
1464
1498
|
property :key, as: 'key'
|
@@ -1702,6 +1736,8 @@ module Google
|
|
1702
1736
|
property :notification_pubsub_topic, as: 'notificationPubsubTopic'
|
1703
1737
|
property :request_id, as: 'requestId'
|
1704
1738
|
property :success_count, :numeric_string => true, as: 'successCount'
|
1739
|
+
property :transformed_user_events_metadata, as: 'transformedUserEventsMetadata', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTransformedUserEventsMetadata, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTransformedUserEventsMetadata::Representation
|
1740
|
+
|
1705
1741
|
property :update_time, as: 'updateTime'
|
1706
1742
|
end
|
1707
1743
|
end
|
@@ -2388,6 +2424,7 @@ module Google
|
|
2388
2424
|
collection :prefixes, as: 'prefixes'
|
2389
2425
|
property :query, as: 'query'
|
2390
2426
|
collection :restricted_values, as: 'restrictedValues'
|
2427
|
+
property :return_min_max, as: 'returnMinMax'
|
2391
2428
|
end
|
2392
2429
|
end
|
2393
2430
|
|
@@ -2449,6 +2486,8 @@ module Google
|
|
2449
2486
|
property :count, :numeric_string => true, as: 'count'
|
2450
2487
|
property :interval, as: 'interval', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval::Representation
|
2451
2488
|
|
2489
|
+
property :max_value, as: 'maxValue'
|
2490
|
+
property :min_value, as: 'minValue'
|
2452
2491
|
property :value, as: 'value'
|
2453
2492
|
end
|
2454
2493
|
end
|
@@ -2467,6 +2506,7 @@ module Google
|
|
2467
2506
|
property :id, as: 'id'
|
2468
2507
|
property :matching_variant_count, as: 'matchingVariantCount'
|
2469
2508
|
hash :matching_variant_fields, as: 'matchingVariantFields'
|
2509
|
+
collection :personal_labels, as: 'personalLabels'
|
2470
2510
|
property :product, as: 'product', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct::Representation
|
2471
2511
|
|
2472
2512
|
hash :variant_rollup_values, as: 'variantRollupValues'
|
@@ -2529,6 +2569,14 @@ module Google
|
|
2529
2569
|
end
|
2530
2570
|
end
|
2531
2571
|
|
2572
|
+
class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
|
2573
|
+
# @private
|
2574
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2575
|
+
property :source_events_count, :numeric_string => true, as: 'sourceEventsCount'
|
2576
|
+
property :transformed_events_count, :numeric_string => true, as: 'transformedEventsCount'
|
2577
|
+
end
|
2578
|
+
end
|
2579
|
+
|
2532
2580
|
class GoogleCloudRetailV2alphaTuneModelMetadata
|
2533
2581
|
# @private
|
2534
2582
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -472,6 +472,41 @@ module Google
|
|
472
472
|
execute_or_queue_command(command, &block)
|
473
473
|
end
|
474
474
|
|
475
|
+
# Removes all specified CatalogAttributes from the AttributesConfig.
|
476
|
+
# @param [String] attributes_config
|
477
|
+
# Required. The attributes config resource shared by all catalog attributes
|
478
|
+
# being deleted. Format: `projects/`project_number`/locations/`location_id`/
|
479
|
+
# catalogs/`catalog_id`/attributesConfig`
|
480
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest] google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object
|
481
|
+
# @param [String] fields
|
482
|
+
# Selector specifying which fields to include in a partial response.
|
483
|
+
# @param [String] quota_user
|
484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
486
|
+
# @param [Google::Apis::RequestOptions] options
|
487
|
+
# Request-specific options
|
488
|
+
#
|
489
|
+
# @yield [result, err] Result & error if block supplied
|
490
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse] parsed result object
|
491
|
+
# @yieldparam err [StandardError] error object if request failed
|
492
|
+
#
|
493
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse]
|
494
|
+
#
|
495
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
496
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
497
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
498
|
+
def batch_project_location_catalog_attributes_config_remove_catalog_attributes(attributes_config, google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
499
|
+
command = make_simple_command(:post, 'v2alpha/{+attributesConfig}:batchRemoveCatalogAttributes', options)
|
500
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesRequest::Representation
|
501
|
+
command.request_object = google_cloud_retail_v2alpha_batch_remove_catalog_attributes_request_object
|
502
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse::Representation
|
503
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse
|
504
|
+
command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
|
505
|
+
command.query['fields'] = fields unless fields.nil?
|
506
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
507
|
+
execute_or_queue_command(command, &block)
|
508
|
+
end
|
509
|
+
|
475
510
|
# Removes the specified CatalogAttribute from the AttributesConfig. If the
|
476
511
|
# CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
|
477
512
|
# @param [String] attributes_config
|
@@ -579,9 +614,13 @@ module Google
|
|
579
614
|
# updating fulfillment information. If the request is valid, the update will be
|
580
615
|
# enqueued and processed downstream. As a consequence, when a response is
|
581
616
|
# returned, the added place IDs are not immediately manifested in the Product
|
582
|
-
# queried by ProductService.GetProduct or ProductService.ListProducts.
|
583
|
-
#
|
584
|
-
#
|
617
|
+
# queried by ProductService.GetProduct or ProductService.ListProducts. The
|
618
|
+
# returned Operations will be obsolete after 1 day, and GetOperation API will
|
619
|
+
# return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
|
620
|
+
# associated with the stale updates will not be marked as done until being
|
621
|
+
# obsolete. This feature is only available for users who have Retail Search
|
622
|
+
# enabled. Please enable Retail Search on Cloud Console before using this
|
623
|
+
# feature.
|
585
624
|
# @param [String] product
|
586
625
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
587
626
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -626,9 +665,12 @@ module Google
|
|
626
665
|
# ProductService.GetProduct or ProductService.ListProducts. Local inventory
|
627
666
|
# information can only be modified using this method. ProductService.
|
628
667
|
# CreateProduct and ProductService.UpdateProduct has no effect on local
|
629
|
-
# inventories.
|
630
|
-
#
|
631
|
-
#
|
668
|
+
# inventories. The returned Operations will be obsolete after 1 day, and
|
669
|
+
# GetOperation API will return NOT_FOUND afterwards. If conflicting updates are
|
670
|
+
# issued, the Operations associated with the stale updates will not be marked as
|
671
|
+
# done until being obsolete. This feature is only available for users who have
|
672
|
+
# Retail Search enabled. Please enable Retail Search on Cloud Console before
|
673
|
+
# using this feature.
|
632
674
|
# @param [String] product
|
633
675
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
634
676
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -981,9 +1023,13 @@ module Google
|
|
981
1023
|
# updating fulfillment information. If the request is valid, the update will be
|
982
1024
|
# enqueued and processed downstream. As a consequence, when a response is
|
983
1025
|
# returned, the removed place IDs are not immediately manifested in the Product
|
984
|
-
# queried by ProductService.GetProduct or ProductService.ListProducts.
|
985
|
-
#
|
986
|
-
#
|
1026
|
+
# queried by ProductService.GetProduct or ProductService.ListProducts. The
|
1027
|
+
# returned Operations will be obsolete after 1 day, and GetOperation API will
|
1028
|
+
# return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
|
1029
|
+
# associated with the stale updates will not be marked as done until being
|
1030
|
+
# obsolete. This feature is only available for users who have Retail Search
|
1031
|
+
# enabled. Please enable Retail Search on Cloud Console before using this
|
1032
|
+
# feature.
|
987
1033
|
# @param [String] product
|
988
1034
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
989
1035
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -1026,9 +1072,12 @@ module Google
|
|
1026
1072
|
# queried by ProductService.GetProduct or ProductService.ListProducts. Local
|
1027
1073
|
# inventory information can only be removed using this method. ProductService.
|
1028
1074
|
# CreateProduct and ProductService.UpdateProduct has no effect on local
|
1029
|
-
# inventories.
|
1030
|
-
#
|
1031
|
-
#
|
1075
|
+
# inventories. The returned Operations will be obsolete after 1 day, and
|
1076
|
+
# GetOperation API will return NOT_FOUND afterwards. If conflicting updates are
|
1077
|
+
# issued, the Operations associated with the stale updates will not be marked as
|
1078
|
+
# done until being obsolete. This feature is only available for users who have
|
1079
|
+
# Retail Search enabled. Please enable Retail Search on Cloud Console before
|
1080
|
+
# using this feature.
|
1032
1081
|
# @param [String] product
|
1033
1082
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
1034
1083
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -1081,9 +1130,12 @@ module Google
|
|
1081
1130
|
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
1082
1131
|
# preserved. Pre-existing inventory information can only be updated with
|
1083
1132
|
# ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and
|
1084
|
-
# ProductService.RemoveFulfillmentPlaces.
|
1085
|
-
#
|
1086
|
-
#
|
1133
|
+
# ProductService.RemoveFulfillmentPlaces. The returned Operations will be
|
1134
|
+
# obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards.
|
1135
|
+
# If conflicting updates are issued, the Operations associated with the stale
|
1136
|
+
# updates will not be marked as done until being obsolete. This feature is only
|
1137
|
+
# available for users who have Retail Search enabled. Please enable Retail
|
1138
|
+
# Search on Cloud Console before using this feature.
|
1087
1139
|
# @param [String] name
|
1088
1140
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
1089
1141
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
@@ -1353,7 +1405,7 @@ module Google
|
|
1353
1405
|
# projects/`project_number`/locations/`location_id`/catalogs/`catalog_id`
|
1354
1406
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
|
1355
1407
|
# @param [Boolean] dry_run
|
1356
|
-
# Optional. Whether to run a
|
1408
|
+
# Optional. Whether to run a dry run to validate the request (without actually
|
1357
1409
|
# creating the model).
|
1358
1410
|
# @param [String] fields
|
1359
1411
|
# Selector specifying which fields to include in a partial response.
|
@@ -1387,7 +1439,7 @@ module Google
|
|
1387
1439
|
|
1388
1440
|
# Deletes an existing model.
|
1389
1441
|
# @param [String] name
|
1390
|
-
# Required. The resource name of the
|
1442
|
+
# Required. The resource name of the Model to delete. Format: projects/`
|
1391
1443
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
1392
1444
|
# @param [String] fields
|
1393
1445
|
# Selector specifying which fields to include in a partial response.
|
@@ -1455,17 +1507,18 @@ module Google
|
|
1455
1507
|
execute_or_queue_command(command, &block)
|
1456
1508
|
end
|
1457
1509
|
|
1458
|
-
# Update of model metadata. Only fields that currently can be updated are:
|
1459
|
-
# filtering_option
|
1460
|
-
# API method
|
1510
|
+
# Update of model metadata. Only fields that currently can be updated are: `
|
1511
|
+
# filtering_option` and `periodic_tuning_state`. If other values are provided,
|
1512
|
+
# this API method ignores them.
|
1461
1513
|
# @param [String] name
|
1462
|
-
# Required. The fully qualified resource name of the model. Format: projects/`
|
1514
|
+
# Required. The fully qualified resource name of the model. Format: `projects/`
|
1463
1515
|
# project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
|
1464
|
-
# catalog_id has char limit of 50. recommendation_model_id has char limit of
|
1516
|
+
# ` catalog_id has char limit of 50. recommendation_model_id has char limit of
|
1517
|
+
# 40.
|
1465
1518
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaModel] google_cloud_retail_v2alpha_model_object
|
1466
1519
|
# @param [String] update_mask
|
1467
1520
|
# Optional. Indicates which fields in the provided 'model' to update. If not set,
|
1468
|
-
#
|
1521
|
+
# by default updates all fields.
|
1469
1522
|
# @param [String] fields
|
1470
1523
|
# Selector specifying which fields to include in a partial response.
|
1471
1524
|
# @param [String] quota_user
|
@@ -2150,9 +2203,9 @@ module Google
|
|
2150
2203
|
|
2151
2204
|
# Bulk import of User events. Request processing might be synchronous. Events
|
2152
2205
|
# that already exist are skipped. Use this method for backfilling historical
|
2153
|
-
# user events. Operation.response is of type ImportResponse
|
2154
|
-
# possible for a subset of the items to be successfully inserted. Operation.
|
2155
|
-
# metadata is of type ImportMetadata
|
2206
|
+
# user events. `Operation.response` is of type `ImportResponse`. Note that it is
|
2207
|
+
# possible for a subset of the items to be successfully inserted. `Operation.
|
2208
|
+
# metadata` is of type `ImportMetadata`.
|
2156
2209
|
# @param [String] parent
|
2157
2210
|
# Required. `projects/1234/locations/global/catalogs/default_catalog`
|
2158
2211
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportUserEventsRequest] google_cloud_retail_v2alpha_import_user_events_request_object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.53.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-08-
|
11
|
+
date: 2022-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.53.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|