google-apis-retail_v2 0.48.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.51.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 = "20220722"
25
+ REVISION = "20220811"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class GoogleCloudRetailV2AddCatalogAttributeRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class GoogleCloudRetailV2AddFulfillmentPlacesMetadata
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -100,6 +106,12 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class GoogleCloudRetailV2AttributesConfig
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class GoogleCloudRetailV2Audience
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -118,6 +130,12 @@ module Google
118
130
  include Google::Apis::Core::JsonObjectSupport
119
131
  end
120
132
 
133
+ class GoogleCloudRetailV2CatalogAttribute
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
121
139
  class GoogleCloudRetailV2ColorInfo
122
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
141
 
@@ -142,6 +160,12 @@ module Google
142
160
  include Google::Apis::Core::JsonObjectSupport
143
161
  end
144
162
 
163
+ class GoogleCloudRetailV2CompletionConfig
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudRetailV2CompletionDataInputConfig
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
@@ -370,6 +394,12 @@ module Google
370
394
  include Google::Apis::Core::JsonObjectSupport
371
395
  end
372
396
 
397
+ class GoogleCloudRetailV2RemoveCatalogAttributeRequest
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
373
403
  class GoogleCloudRetailV2RemoveFulfillmentPlacesMetadata
374
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
405
 
@@ -742,6 +772,12 @@ module Google
742
772
  include Google::Apis::Core::JsonObjectSupport
743
773
  end
744
774
 
775
+ class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
745
781
  class GoogleCloudRetailV2alphaTuneModelMetadata
746
782
  class Representation < Google::Apis::Core::JsonRepresentation; end
747
783
 
@@ -1015,6 +1051,14 @@ module Google
1015
1051
  end
1016
1052
  end
1017
1053
 
1054
+ class GoogleCloudRetailV2AddCatalogAttributeRequest
1055
+ # @private
1056
+ class Representation < Google::Apis::Core::JsonRepresentation
1057
+ property :catalog_attribute, as: 'catalogAttribute', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute::Representation
1058
+
1059
+ end
1060
+ end
1061
+
1018
1062
  class GoogleCloudRetailV2AddFulfillmentPlacesMetadata
1019
1063
  # @private
1020
1064
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1060,6 +1104,16 @@ module Google
1060
1104
  end
1061
1105
  end
1062
1106
 
1107
+ class GoogleCloudRetailV2AttributesConfig
1108
+ # @private
1109
+ class Representation < Google::Apis::Core::JsonRepresentation
1110
+ property :attribute_config_level, as: 'attributeConfigLevel'
1111
+ hash :catalog_attributes, as: 'catalogAttributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute::Representation
1112
+
1113
+ property :name, as: 'name'
1114
+ end
1115
+ end
1116
+
1063
1117
  class GoogleCloudRetailV2Audience
1064
1118
  # @private
1065
1119
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1091,6 +1145,18 @@ module Google
1091
1145
  end
1092
1146
  end
1093
1147
 
1148
+ class GoogleCloudRetailV2CatalogAttribute
1149
+ # @private
1150
+ class Representation < Google::Apis::Core::JsonRepresentation
1151
+ property :dynamic_facetable_option, as: 'dynamicFacetableOption'
1152
+ property :in_use, as: 'inUse'
1153
+ property :indexable_option, as: 'indexableOption'
1154
+ property :key, as: 'key'
1155
+ property :searchable_option, as: 'searchableOption'
1156
+ property :type, as: 'type'
1157
+ end
1158
+ end
1159
+
1094
1160
  class GoogleCloudRetailV2ColorInfo
1095
1161
  # @private
1096
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1126,6 +1192,26 @@ module Google
1126
1192
  end
1127
1193
  end
1128
1194
 
1195
+ class GoogleCloudRetailV2CompletionConfig
1196
+ # @private
1197
+ class Representation < Google::Apis::Core::JsonRepresentation
1198
+ property :allowlist_input_config, as: 'allowlistInputConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig::Representation
1199
+
1200
+ property :auto_learning, as: 'autoLearning'
1201
+ property :denylist_input_config, as: 'denylistInputConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig::Representation
1202
+
1203
+ property :last_allowlist_import_operation, as: 'lastAllowlistImportOperation'
1204
+ property :last_denylist_import_operation, as: 'lastDenylistImportOperation'
1205
+ property :last_suggestions_import_operation, as: 'lastSuggestionsImportOperation'
1206
+ property :matching_order, as: 'matchingOrder'
1207
+ property :max_suggestions, as: 'maxSuggestions'
1208
+ property :min_prefix_length, as: 'minPrefixLength'
1209
+ property :name, as: 'name'
1210
+ property :suggestions_input_config, as: 'suggestionsInputConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CompletionDataInputConfig::Representation
1211
+
1212
+ end
1213
+ end
1214
+
1129
1215
  class GoogleCloudRetailV2CompletionDataInputConfig
1130
1216
  # @private
1131
1217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1519,6 +1605,13 @@ module Google
1519
1605
  end
1520
1606
  end
1521
1607
 
1608
+ class GoogleCloudRetailV2RemoveCatalogAttributeRequest
1609
+ # @private
1610
+ class Representation < Google::Apis::Core::JsonRepresentation
1611
+ property :key, as: 'key'
1612
+ end
1613
+ end
1614
+
1522
1615
  class GoogleCloudRetailV2RemoveFulfillmentPlacesMetadata
1523
1616
  # @private
1524
1617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1642,6 +1735,7 @@ module Google
1642
1735
  collection :prefixes, as: 'prefixes'
1643
1736
  property :query, as: 'query'
1644
1737
  collection :restricted_values, as: 'restrictedValues'
1738
+ property :return_min_max, as: 'returnMinMax'
1645
1739
  end
1646
1740
  end
1647
1741
 
@@ -1703,6 +1797,8 @@ module Google
1703
1797
  property :count, :numeric_string => true, as: 'count'
1704
1798
  property :interval, as: 'interval', class: Google::Apis::RetailV2::GoogleCloudRetailV2Interval, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Interval::Representation
1705
1799
 
1800
+ property :max_value, as: 'maxValue'
1801
+ property :min_value, as: 'minValue'
1706
1802
  property :value, as: 'value'
1707
1803
  end
1708
1804
  end
@@ -1721,6 +1817,7 @@ module Google
1721
1817
  property :id, as: 'id'
1722
1818
  property :matching_variant_count, as: 'matchingVariantCount'
1723
1819
  hash :matching_variant_fields, as: 'matchingVariantFields'
1820
+ collection :personal_labels, as: 'personalLabels'
1724
1821
  property :product, as: 'product', class: Google::Apis::RetailV2::GoogleCloudRetailV2Product, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
1725
1822
 
1726
1823
  hash :variant_rollup_values, as: 'variantRollupValues'
@@ -1929,6 +2026,8 @@ module Google
1929
2026
  property :notification_pubsub_topic, as: 'notificationPubsubTopic'
1930
2027
  property :request_id, as: 'requestId'
1931
2028
  property :success_count, :numeric_string => true, as: 'successCount'
2029
+ property :transformed_user_events_metadata, as: 'transformedUserEventsMetadata', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaTransformedUserEventsMetadata, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaTransformedUserEventsMetadata::Representation
2030
+
1932
2031
  property :update_time, as: 'updateTime'
1933
2032
  end
1934
2033
  end
@@ -2101,6 +2200,14 @@ module Google
2101
2200
  end
2102
2201
  end
2103
2202
 
2203
+ class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
2204
+ # @private
2205
+ class Representation < Google::Apis::Core::JsonRepresentation
2206
+ property :source_events_count, :numeric_string => true, as: 'sourceEventsCount'
2207
+ property :transformed_events_count, :numeric_string => true, as: 'transformedEventsCount'
2208
+ end
2209
+ end
2210
+
2104
2211
  class GoogleCloudRetailV2alphaTuneModelMetadata
2105
2212
  # @private
2106
2213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -126,6 +126,68 @@ module Google
126
126
  execute_or_queue_command(command, &block)
127
127
  end
128
128
 
129
+ # Gets an AttributesConfig.
130
+ # @param [String] name
131
+ # Required. Full AttributesConfig resource name. Format: `projects/`
132
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:get, 'v2/{+name}', options)
152
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig::Representation
153
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
154
+ command.params['name'] = name unless name.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
160
+ # Gets a CompletionConfig.
161
+ # @param [String] name
162
+ # Required. Full CompletionConfig resource name. Format: projects/`
163
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/completionConfig
164
+ # @param [String] fields
165
+ # Selector specifying which fields to include in a partial response.
166
+ # @param [String] quota_user
167
+ # Available to use for quota purposes for server-side applications. Can be any
168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [Google::Apis::RequestOptions] options
170
+ # Request-specific options
171
+ #
172
+ # @yield [result, err] Result & error if block supplied
173
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig] parsed result object
174
+ # @yieldparam err [StandardError] error object if request failed
175
+ #
176
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig]
177
+ #
178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
181
+ def get_project_location_catalog_completion_config(name, fields: nil, quota_user: nil, options: nil, &block)
182
+ command = make_simple_command(:get, 'v2/{+name}', options)
183
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig::Representation
184
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig
185
+ command.params['name'] = name unless name.nil?
186
+ command.query['fields'] = fields unless fields.nil?
187
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
188
+ execute_or_queue_command(command, &block)
189
+ end
190
+
129
191
  # Get which branch is currently default branch set by CatalogService.
130
192
  # SetDefaultBranch method under a specified parent catalog.
131
193
  # @param [String] catalog
@@ -290,6 +352,161 @@ module Google
290
352
  execute_or_queue_command(command, &block)
291
353
  end
292
354
 
355
+ # Updates the AttributesConfig. The catalog attributes in the request will be
356
+ # updated in the catalog, or inserted if they do not exist. Existing catalog
357
+ # attributes not included in the request will remain unchanged. Attributes that
358
+ # are assigned to products, but do not exist at the catalog level, are always
359
+ # included in the response. The product attribute is assigned default values for
360
+ # missing catalog attribute fields, e.g., searchable and dynamic facetable
361
+ # options.
362
+ # @param [String] name
363
+ # Required. Immutable. The fully qualified resource name of the attribute config.
364
+ # Format: `projects/*/locations/*/catalogs/*/attributesConfig`
365
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig] google_cloud_retail_v2_attributes_config_object
366
+ # @param [String] update_mask
367
+ # Indicates which fields in the provided AttributesConfig to update. The
368
+ # following is the only supported field: * AttributesConfig.catalog_attributes
369
+ # If not set, all supported fields are updated.
370
+ # @param [String] fields
371
+ # Selector specifying which fields to include in a partial response.
372
+ # @param [String] quota_user
373
+ # Available to use for quota purposes for server-side applications. Can be any
374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
375
+ # @param [Google::Apis::RequestOptions] options
376
+ # Request-specific options
377
+ #
378
+ # @yield [result, err] Result & error if block supplied
379
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig] parsed result object
380
+ # @yieldparam err [StandardError] error object if request failed
381
+ #
382
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig]
383
+ #
384
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
387
+ def update_project_location_catalog_attributes_config(name, google_cloud_retail_v2_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
388
+ command = make_simple_command(:patch, 'v2/{+name}', options)
389
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig::Representation
390
+ command.request_object = google_cloud_retail_v2_attributes_config_object
391
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig::Representation
392
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
393
+ command.params['name'] = name unless name.nil?
394
+ command.query['updateMask'] = update_mask unless update_mask.nil?
395
+ command.query['fields'] = fields unless fields.nil?
396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
397
+ execute_or_queue_command(command, &block)
398
+ end
399
+
400
+ # Updates the CompletionConfigs.
401
+ # @param [String] name
402
+ # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
403
+ # completionConfig`
404
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig] google_cloud_retail_v2_completion_config_object
405
+ # @param [String] update_mask
406
+ # Indicates which fields in the provided CompletionConfig to update. The
407
+ # following are the only supported fields: * CompletionConfig.matching_order *
408
+ # CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length *
409
+ # CompletionConfig.auto_learning If not set, all supported fields are updated.
410
+ # @param [String] fields
411
+ # Selector specifying which fields to include in a partial response.
412
+ # @param [String] quota_user
413
+ # Available to use for quota purposes for server-side applications. Can be any
414
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
415
+ # @param [Google::Apis::RequestOptions] options
416
+ # Request-specific options
417
+ #
418
+ # @yield [result, err] Result & error if block supplied
419
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig] parsed result object
420
+ # @yieldparam err [StandardError] error object if request failed
421
+ #
422
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig]
423
+ #
424
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
427
+ def update_project_location_catalog_completion_config(name, google_cloud_retail_v2_completion_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
428
+ command = make_simple_command(:patch, 'v2/{+name}', options)
429
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig::Representation
430
+ command.request_object = google_cloud_retail_v2_completion_config_object
431
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig::Representation
432
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2CompletionConfig
433
+ command.params['name'] = name unless name.nil?
434
+ command.query['updateMask'] = update_mask unless update_mask.nil?
435
+ command.query['fields'] = fields unless fields.nil?
436
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ execute_or_queue_command(command, &block)
438
+ end
439
+
440
+ # Adds the specified CatalogAttribute to the AttributesConfig. If the
441
+ # CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
442
+ # @param [String] attributes_config
443
+ # Required. Full AttributesConfig resource name. Format: `projects/`
444
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
445
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2AddCatalogAttributeRequest] google_cloud_retail_v2_add_catalog_attribute_request_object
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:post, 'v2/{+attributesConfig}:addCatalogAttribute', options)
465
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AddCatalogAttributeRequest::Representation
466
+ command.request_object = google_cloud_retail_v2_add_catalog_attribute_request_object
467
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig::Representation
468
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
469
+ command.params['attributesConfig'] = attributes_config unless attributes_config.nil?
470
+ command.query['fields'] = fields unless fields.nil?
471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
+ execute_or_queue_command(command, &block)
473
+ end
474
+
475
+ # Removes the specified CatalogAttribute from the AttributesConfig. If the
476
+ # CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
477
+ # @param [String] attributes_config
478
+ # Required. Full AttributesConfig resource name. Format: `projects/`
479
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/attributesConfig`
480
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2RemoveCatalogAttributeRequest] google_cloud_retail_v2_remove_catalog_attribute_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::RetailV2::GoogleCloudRetailV2AttributesConfig] parsed result object
491
+ # @yieldparam err [StandardError] error object if request failed
492
+ #
493
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig]
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 remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:post, 'v2/{+attributesConfig}:removeCatalogAttribute', options)
500
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2RemoveCatalogAttributeRequest::Representation
501
+ command.request_object = google_cloud_retail_v2_remove_catalog_attribute_request_object
502
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig::Representation
503
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
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
+
293
510
  # Gets the latest state of a long-running operation. Clients can use this method
294
511
  # to poll the operation result at intervals as recommended by the API service.
295
512
  # @param [String] name
@@ -326,9 +543,13 @@ module Google
326
543
  # updating fulfillment information. If the request is valid, the update will be
327
544
  # enqueued and processed downstream. As a consequence, when a response is
328
545
  # returned, the added place IDs are not immediately manifested in the Product
329
- # queried by ProductService.GetProduct or ProductService.ListProducts. This
330
- # feature is only available for users who have Retail Search enabled. Please
331
- # enable Retail Search on Cloud Console before using this feature.
546
+ # queried by ProductService.GetProduct or ProductService.ListProducts. The
547
+ # returned Operations will be obsolete after 1 day, and GetOperation API will
548
+ # return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
549
+ # associated with the stale updates will not be marked as done until being
550
+ # obsolete. This feature is only available for users who have Retail Search
551
+ # enabled. Please enable Retail Search on Cloud Console before using this
552
+ # feature.
332
553
  # @param [String] product
333
554
  # Required. Full resource name of Product, such as `projects/*/locations/global/
334
555
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -373,9 +594,12 @@ module Google
373
594
  # ProductService.GetProduct or ProductService.ListProducts. Local inventory
374
595
  # information can only be modified using this method. ProductService.
375
596
  # CreateProduct and ProductService.UpdateProduct has no effect on local
376
- # inventories. This feature is only available for users who have Retail Search
377
- # enabled. Please enable Retail Search on Cloud Console before using this
378
- # feature.
597
+ # inventories. The returned Operations will be obsolete after 1 day, and
598
+ # GetOperation API will return NOT_FOUND afterwards. If conflicting updates are
599
+ # issued, the Operations associated with the stale updates will not be marked as
600
+ # done until being obsolete. This feature is only available for users who have
601
+ # Retail Search enabled. Please enable Retail Search on Cloud Console before
602
+ # using this feature.
379
603
  # @param [String] product
380
604
  # Required. Full resource name of Product, such as `projects/*/locations/global/
381
605
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -681,9 +905,13 @@ module Google
681
905
  # updating fulfillment information. If the request is valid, the update will be
682
906
  # enqueued and processed downstream. As a consequence, when a response is
683
907
  # returned, the removed place IDs are not immediately manifested in the Product
684
- # queried by ProductService.GetProduct or ProductService.ListProducts. This
685
- # feature is only available for users who have Retail Search enabled. Please
686
- # enable Retail Search on Cloud Console before using this feature.
908
+ # queried by ProductService.GetProduct or ProductService.ListProducts. The
909
+ # returned Operations will be obsolete after 1 day, and GetOperation API will
910
+ # return NOT_FOUND afterwards. If conflicting updates are issued, the Operations
911
+ # associated with the stale updates will not be marked as done until being
912
+ # obsolete. This feature is only available for users who have Retail Search
913
+ # enabled. Please enable Retail Search on Cloud Console before using this
914
+ # feature.
687
915
  # @param [String] product
688
916
  # Required. Full resource name of Product, such as `projects/*/locations/global/
689
917
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -726,9 +954,12 @@ module Google
726
954
  # queried by ProductService.GetProduct or ProductService.ListProducts. Local
727
955
  # inventory information can only be removed using this method. ProductService.
728
956
  # CreateProduct and ProductService.UpdateProduct has no effect on local
729
- # inventories. This feature is only available for users who have Retail Search
730
- # enabled. Please enable Retail Search on Cloud Console before using this
731
- # feature.
957
+ # inventories. The returned Operations will be obsolete after 1 day, and
958
+ # GetOperation API will return NOT_FOUND afterwards. If conflicting updates are
959
+ # issued, the Operations associated with the stale updates will not be marked as
960
+ # done until being obsolete. This feature is only available for users who have
961
+ # Retail Search enabled. Please enable Retail Search on Cloud Console before
962
+ # using this feature.
732
963
  # @param [String] product
733
964
  # Required. Full resource name of Product, such as `projects/*/locations/global/
734
965
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -781,9 +1012,12 @@ module Google
781
1012
  # SetInventoryRequest.set_mask, then any existing inventory information will be
782
1013
  # preserved. Pre-existing inventory information can only be updated with
783
1014
  # ProductService.SetInventory, ProductService.AddFulfillmentPlaces, and
784
- # ProductService.RemoveFulfillmentPlaces. This feature is only available for
785
- # users who have Retail Search enabled. Please enable Retail Search on Cloud
786
- # Console before using this feature.
1015
+ # ProductService.RemoveFulfillmentPlaces. The returned Operations will be
1016
+ # obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards.
1017
+ # If conflicting updates are issued, the Operations associated with the stale
1018
+ # updates will not be marked as done until being obsolete. This feature is only
1019
+ # available for users who have Retail Search enabled. Please enable Retail
1020
+ # Search on Cloud Console before using this feature.
787
1021
  # @param [String] name
788
1022
  # Immutable. Full resource name of the product, such as `projects/*/locations/
789
1023
  # global/catalogs/default_catalog/branches/default_branch/products/product_id`.
@@ -1147,9 +1381,9 @@ module Google
1147
1381
 
1148
1382
  # Bulk import of User events. Request processing might be synchronous. Events
1149
1383
  # that already exist are skipped. Use this method for backfilling historical
1150
- # user events. Operation.response is of type ImportResponse. Note that it is
1151
- # possible for a subset of the items to be successfully inserted. Operation.
1152
- # metadata is of type ImportMetadata.
1384
+ # user events. `Operation.response` is of type `ImportResponse`. Note that it is
1385
+ # possible for a subset of the items to be successfully inserted. `Operation.
1386
+ # metadata` is of type `ImportMetadata`.
1153
1387
  # @param [String] parent
1154
1388
  # Required. `projects/1234/locations/global/catalogs/default_catalog`
1155
1389
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2ImportUserEventsRequest] google_cloud_retail_v2_import_user_events_request_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.51.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-01 00:00:00.000000000 Z
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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.48.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.51.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []