google-apis-retail_v2 0.47.0 → 0.50.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.47.0"
19
+ GEM_VERSION = "0.50.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 = "20220716"
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
 
@@ -568,6 +598,12 @@ module Google
568
598
  include Google::Apis::Core::JsonObjectSupport
569
599
  end
570
600
 
601
+ class GoogleCloudRetailV2alphaBigQueryOutputResult
602
+ class Representation < Google::Apis::Core::JsonRepresentation; end
603
+
604
+ include Google::Apis::Core::JsonObjectSupport
605
+ end
606
+
571
607
  class GoogleCloudRetailV2alphaCreateModelMetadata
572
608
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
609
 
@@ -652,6 +688,18 @@ module Google
652
688
  include Google::Apis::Core::JsonObjectSupport
653
689
  end
654
690
 
691
+ class GoogleCloudRetailV2alphaModelServingConfigList
692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
693
+
694
+ include Google::Apis::Core::JsonObjectSupport
695
+ end
696
+
697
+ class GoogleCloudRetailV2alphaOutputResult
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
655
703
  class GoogleCloudRetailV2alphaPurgeMetadata
656
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
657
705
 
@@ -724,6 +772,12 @@ module Google
724
772
  include Google::Apis::Core::JsonObjectSupport
725
773
  end
726
774
 
775
+ class GoogleCloudRetailV2alphaTransformedUserEventsMetadata
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
727
781
  class GoogleCloudRetailV2alphaTuneModelMetadata
728
782
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
783
 
@@ -766,6 +820,12 @@ module Google
766
820
  include Google::Apis::Core::JsonObjectSupport
767
821
  end
768
822
 
823
+ class GoogleCloudRetailV2betaBigQueryOutputResult
824
+ class Representation < Google::Apis::Core::JsonRepresentation; end
825
+
826
+ include Google::Apis::Core::JsonObjectSupport
827
+ end
828
+
769
829
  class GoogleCloudRetailV2betaExportErrorsConfig
770
830
  class Representation < Google::Apis::Core::JsonRepresentation; end
771
831
 
@@ -820,6 +880,12 @@ module Google
820
880
  include Google::Apis::Core::JsonObjectSupport
821
881
  end
822
882
 
883
+ class GoogleCloudRetailV2betaOutputResult
884
+ class Representation < Google::Apis::Core::JsonRepresentation; end
885
+
886
+ include Google::Apis::Core::JsonObjectSupport
887
+ end
888
+
823
889
  class GoogleCloudRetailV2betaPurgeMetadata
824
890
  class Representation < Google::Apis::Core::JsonRepresentation; end
825
891
 
@@ -985,6 +1051,14 @@ module Google
985
1051
  end
986
1052
  end
987
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
+
988
1062
  class GoogleCloudRetailV2AddFulfillmentPlacesMetadata
989
1063
  # @private
990
1064
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1030,6 +1104,16 @@ module Google
1030
1104
  end
1031
1105
  end
1032
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
+
1033
1117
  class GoogleCloudRetailV2Audience
1034
1118
  # @private
1035
1119
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1061,6 +1145,18 @@ module Google
1061
1145
  end
1062
1146
  end
1063
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
+
1064
1160
  class GoogleCloudRetailV2ColorInfo
1065
1161
  # @private
1066
1162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1096,6 +1192,26 @@ module Google
1096
1192
  end
1097
1193
  end
1098
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
+
1099
1215
  class GoogleCloudRetailV2CompletionDataInputConfig
1100
1216
  # @private
1101
1217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1489,6 +1605,13 @@ module Google
1489
1605
  end
1490
1606
  end
1491
1607
 
1608
+ class GoogleCloudRetailV2RemoveCatalogAttributeRequest
1609
+ # @private
1610
+ class Representation < Google::Apis::Core::JsonRepresentation
1611
+ property :key, as: 'key'
1612
+ end
1613
+ end
1614
+
1492
1615
  class GoogleCloudRetailV2RemoveFulfillmentPlacesMetadata
1493
1616
  # @private
1494
1617
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1612,6 +1735,7 @@ module Google
1612
1735
  collection :prefixes, as: 'prefixes'
1613
1736
  property :query, as: 'query'
1614
1737
  collection :restricted_values, as: 'restrictedValues'
1738
+ property :return_min_max, as: 'returnMinMax'
1615
1739
  end
1616
1740
  end
1617
1741
 
@@ -1673,6 +1797,8 @@ module Google
1673
1797
  property :count, :numeric_string => true, as: 'count'
1674
1798
  property :interval, as: 'interval', class: Google::Apis::RetailV2::GoogleCloudRetailV2Interval, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Interval::Representation
1675
1799
 
1800
+ property :max_value, as: 'maxValue'
1801
+ property :min_value, as: 'minValue'
1676
1802
  property :value, as: 'value'
1677
1803
  end
1678
1804
  end
@@ -1691,6 +1817,7 @@ module Google
1691
1817
  property :id, as: 'id'
1692
1818
  property :matching_variant_count, as: 'matchingVariantCount'
1693
1819
  hash :matching_variant_fields, as: 'matchingVariantFields'
1820
+ collection :personal_labels, as: 'personalLabels'
1694
1821
  property :product, as: 'product', class: Google::Apis::RetailV2::GoogleCloudRetailV2Product, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
1695
1822
 
1696
1823
  hash :variant_rollup_values, as: 'variantRollupValues'
@@ -1822,6 +1949,14 @@ module Google
1822
1949
  end
1823
1950
  end
1824
1951
 
1952
+ class GoogleCloudRetailV2alphaBigQueryOutputResult
1953
+ # @private
1954
+ class Representation < Google::Apis::Core::JsonRepresentation
1955
+ property :dataset_id, as: 'datasetId'
1956
+ property :table_id, as: 'tableId'
1957
+ end
1958
+ end
1959
+
1825
1960
  class GoogleCloudRetailV2alphaCreateModelMetadata
1826
1961
  # @private
1827
1962
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1851,6 +1986,8 @@ module Google
1851
1986
 
1852
1987
  property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig::Representation
1853
1988
 
1989
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult::Representation
1990
+
1854
1991
  end
1855
1992
  end
1856
1993
 
@@ -1861,6 +1998,8 @@ module Google
1861
1998
 
1862
1999
  property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaExportErrorsConfig::Representation
1863
2000
 
2001
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaOutputResult::Representation
2002
+
1864
2003
  end
1865
2004
  end
1866
2005
 
@@ -1887,6 +2026,8 @@ module Google
1887
2026
  property :notification_pubsub_topic, as: 'notificationPubsubTopic'
1888
2027
  property :request_id, as: 'requestId'
1889
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
+
1890
2031
  property :update_time, as: 'updateTime'
1891
2032
  end
1892
2033
  end
@@ -1926,6 +2067,8 @@ module Google
1926
2067
  property :page_optimization_config, as: 'pageOptimizationConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig::Representation
1927
2068
 
1928
2069
  property :periodic_tuning_state, as: 'periodicTuningState'
2070
+ collection :serving_config_lists, as: 'servingConfigLists', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelServingConfigList, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelServingConfigList::Representation
2071
+
1929
2072
  property :serving_state, as: 'servingState'
1930
2073
  property :training_state, as: 'trainingState'
1931
2074
  property :tuning_operation, as: 'tuningOperation'
@@ -1962,6 +2105,21 @@ module Google
1962
2105
  end
1963
2106
  end
1964
2107
 
2108
+ class GoogleCloudRetailV2alphaModelServingConfigList
2109
+ # @private
2110
+ class Representation < Google::Apis::Core::JsonRepresentation
2111
+ collection :serving_config_ids, as: 'servingConfigIds'
2112
+ end
2113
+ end
2114
+
2115
+ class GoogleCloudRetailV2alphaOutputResult
2116
+ # @private
2117
+ class Representation < Google::Apis::Core::JsonRepresentation
2118
+ collection :bigquery_result, as: 'bigqueryResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaBigQueryOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaBigQueryOutputResult::Representation
2119
+
2120
+ end
2121
+ end
2122
+
1965
2123
  class GoogleCloudRetailV2alphaPurgeMetadata
1966
2124
  # @private
1967
2125
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2042,6 +2200,14 @@ module Google
2042
2200
  end
2043
2201
  end
2044
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
+
2045
2211
  class GoogleCloudRetailV2alphaTuneModelMetadata
2046
2212
  # @private
2047
2213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2087,6 +2253,14 @@ module Google
2087
2253
  end
2088
2254
  end
2089
2255
 
2256
+ class GoogleCloudRetailV2betaBigQueryOutputResult
2257
+ # @private
2258
+ class Representation < Google::Apis::Core::JsonRepresentation
2259
+ property :dataset_id, as: 'datasetId'
2260
+ property :table_id, as: 'tableId'
2261
+ end
2262
+ end
2263
+
2090
2264
  class GoogleCloudRetailV2betaExportErrorsConfig
2091
2265
  # @private
2092
2266
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2109,6 +2283,8 @@ module Google
2109
2283
 
2110
2284
  property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig::Representation
2111
2285
 
2286
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult::Representation
2287
+
2112
2288
  end
2113
2289
  end
2114
2290
 
@@ -2119,6 +2295,8 @@ module Google
2119
2295
 
2120
2296
  property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaExportErrorsConfig::Representation
2121
2297
 
2298
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaOutputResult::Representation
2299
+
2122
2300
  end
2123
2301
  end
2124
2302
 
@@ -2171,6 +2349,14 @@ module Google
2171
2349
  end
2172
2350
  end
2173
2351
 
2352
+ class GoogleCloudRetailV2betaOutputResult
2353
+ # @private
2354
+ class Representation < Google::Apis::Core::JsonRepresentation
2355
+ collection :bigquery_result, as: 'bigqueryResult', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaBigQueryOutputResult, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaBigQueryOutputResult::Representation
2356
+
2357
+ end
2358
+ end
2359
+
2174
2360
  class GoogleCloudRetailV2betaPurgeMetadata
2175
2361
  # @private
2176
2362
  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
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.47.0
4
+ version: 0.50.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-07-25 00:00:00.000000000 Z
11
+ date: 2022-08-15 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.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.50.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: []