algolia 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +0 -7
- data/lib/algolia/api/analytics_client.rb +32 -88
- data/lib/algolia/api/ingestion_client.rb +2 -170
- data/lib/algolia/api/insights_client.rb +0 -22
- data/lib/algolia/api/monitoring_client.rb +11 -11
- data/lib/algolia/api/search_client.rb +19 -74
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/variant.rb +0 -18
- data/lib/algolia/models/analytics/click_position.rb +0 -32
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
- data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
- data/lib/algolia/models/ingestion/event.rb +0 -14
- data/lib/algolia/models/ingestion/pagination.rb +0 -60
- data/lib/algolia/models/ingestion/run.rb +0 -18
- data/lib/algolia/models/ingestion/source_csv.rb +0 -21
- data/lib/algolia/models/ingestion/task.rb +0 -18
- data/lib/algolia/models/ingestion/task_create.rb +0 -18
- data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_update.rb +0 -18
- data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_v1.rb +0 -18
- data/lib/algolia/models/ingestion/transformation.rb +1 -1
- data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/clicked_filters.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/converted_filters.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
- data/lib/algolia/models/insights/insights_events.rb +0 -18
- data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
- data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
- data/lib/algolia/models/insights/viewed_filters.rb +0 -105
- data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
- data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
- data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
- data/lib/algolia/models/recommend/banner.rb +218 -0
- data/lib/algolia/models/{query-suggestions/base_query_suggestions_configuration_response.rb → recommend/banner_image.rb} +31 -38
- data/lib/algolia/models/{query-suggestions/base_query_suggestions_configuration_with_index.rb → recommend/banner_image_url.rb} +23 -23
- data/lib/algolia/models/{query-suggestions/get_config_status200_response.rb → recommend/banner_link.rb} +13 -53
- data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
- data/lib/algolia/models/recommend/condition.rb +0 -15
- data/lib/algolia/models/recommend/consequence.rb +0 -28
- data/lib/algolia/models/recommend/fallback_params.rb +8 -100
- data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
- data/lib/algolia/models/recommend/numeric_filters.rb +1 -1
- data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
- data/lib/algolia/models/recommend/ranking_info.rb +0 -112
- data/lib/algolia/models/recommend/recommend_hit.rb +0 -18
- data/lib/algolia/models/recommend/recommend_search_params.rb +8 -100
- data/lib/algolia/models/recommend/recommendations_results.rb +0 -61
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
- data/lib/algolia/models/recommend/related_query.rb +0 -36
- data/lib/algolia/models/recommend/rendering_content.rb +14 -5
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +0 -50
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
- data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -18
- data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
- data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
- data/lib/algolia/models/recommend/typo_tolerance.rb +1 -1
- data/lib/algolia/models/recommend/widgets.rb +212 -0
- data/lib/algolia/models/search/api_key.rb +1 -1
- data/lib/algolia/models/search/banner.rb +218 -0
- data/lib/algolia/models/{query-suggestions/get_log_file200_response.rb → search/banner_image.rb} +21 -61
- data/lib/algolia/models/search/banner_image_url.rb +212 -0
- data/lib/algolia/models/search/banner_link.rb +212 -0
- data/lib/algolia/models/search/browse_params_object.rb +4 -132
- data/lib/algolia/models/search/browse_response.rb +0 -61
- data/lib/algolia/models/search/condition.rb +0 -15
- data/lib/algolia/models/search/consequence.rb +0 -28
- data/lib/algolia/models/search/consequence_params.rb +4 -132
- data/lib/algolia/models/search/delete_by_params.rb +1 -1
- data/lib/algolia/models/search/get_api_key_response.rb +1 -1
- data/lib/algolia/models/search/index_settings.rb +7 -85
- data/lib/algolia/models/search/log.rb +0 -34
- data/lib/algolia/models/search/numeric_filters.rb +1 -1
- data/lib/algolia/models/search/promote_object_ids.rb +0 -14
- data/lib/algolia/models/search/ranking_info.rb +0 -112
- data/lib/algolia/models/search/rendering_content.rb +14 -5
- data/lib/algolia/models/search/rule.rb +0 -18
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +0 -14
- data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
- data/lib/algolia/models/search/search_for_facets.rb +4 -132
- data/lib/algolia/models/search/search_for_hits.rb +4 -132
- data/lib/algolia/models/search/search_params_object.rb +4 -132
- data/lib/algolia/models/search/search_response.rb +0 -61
- data/lib/algolia/models/search/search_rules_params.rb +0 -32
- data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_response.rb +0 -32
- data/lib/algolia/models/search/settings_response.rb +7 -85
- data/lib/algolia/models/search/typo_tolerance.rb +1 -1
- data/lib/algolia/models/search/user_hit.rb +0 -15
- data/lib/algolia/models/search/user_id.rb +0 -15
- data/lib/algolia/models/search/widgets.rb +212 -0
- data/lib/algolia/version.rb +1 -1
- metadata +12 -9
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
|
@@ -170,96 +170,6 @@ module Algolia
|
|
|
170
170
|
end
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
# Custom attribute writer method with validation
|
|
174
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
175
|
-
def click_through_rate=(click_through_rate)
|
|
176
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
177
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
181
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
@click_through_rate = click_through_rate
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# Custom attribute writer method with validation
|
|
188
|
-
# @param [Object] average_click_position Value to be assigned
|
|
189
|
-
def average_click_position=(average_click_position)
|
|
190
|
-
if !average_click_position.nil? && average_click_position < 1
|
|
191
|
-
raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
@average_click_position = average_click_position
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# Custom attribute writer method with validation
|
|
198
|
-
# @param [Object] click_positions Value to be assigned
|
|
199
|
-
def click_positions=(click_positions)
|
|
200
|
-
if click_positions.nil?
|
|
201
|
-
raise ArgumentError, "click_positions cannot be nil"
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
if click_positions.length > 12
|
|
205
|
-
raise(
|
|
206
|
-
ArgumentError,
|
|
207
|
-
"invalid value for \"click_positions\", number of items must be less than or equal to 12."
|
|
208
|
-
)
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
if click_positions.length < 12
|
|
212
|
-
raise(
|
|
213
|
-
ArgumentError,
|
|
214
|
-
"invalid value for \"click_positions\", number of items must be greater than or equal to 12."
|
|
215
|
-
)
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
@click_positions = click_positions
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# Custom attribute writer method with validation
|
|
222
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
223
|
-
def conversion_rate=(conversion_rate)
|
|
224
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
225
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
229
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
@conversion_rate = conversion_rate
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Custom attribute writer method with validation
|
|
236
|
-
# @param [Object] click_count Value to be assigned
|
|
237
|
-
def click_count=(click_count)
|
|
238
|
-
if click_count.nil?
|
|
239
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
if click_count < 0
|
|
243
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
@click_count = click_count
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# Custom attribute writer method with validation
|
|
250
|
-
# @param [Object] conversion_count Value to be assigned
|
|
251
|
-
def conversion_count=(conversion_count)
|
|
252
|
-
if conversion_count.nil?
|
|
253
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
if conversion_count < 0
|
|
257
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
@conversion_count = conversion_count
|
|
261
|
-
end
|
|
262
|
-
|
|
263
173
|
# Checks equality by comparing each attribute.
|
|
264
174
|
# @param [Object] Object to be compared
|
|
265
175
|
def ==(other)
|
|
@@ -229,138 +229,6 @@ module Algolia
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
# Custom attribute writer method with validation
|
|
233
|
-
# @param [Object] click_through_rate Value to be assigned
|
|
234
|
-
def click_through_rate=(click_through_rate)
|
|
235
|
-
if !click_through_rate.nil? && click_through_rate > 1
|
|
236
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
if !click_through_rate.nil? && click_through_rate < 0
|
|
240
|
-
raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
@click_through_rate = click_through_rate
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# Custom attribute writer method with validation
|
|
247
|
-
# @param [Object] average_click_position Value to be assigned
|
|
248
|
-
def average_click_position=(average_click_position)
|
|
249
|
-
if !average_click_position.nil? && average_click_position < 1
|
|
250
|
-
raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
@average_click_position = average_click_position
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
# Custom attribute writer method with validation
|
|
257
|
-
# @param [Object] click_positions Value to be assigned
|
|
258
|
-
def click_positions=(click_positions)
|
|
259
|
-
if click_positions.nil?
|
|
260
|
-
raise ArgumentError, "click_positions cannot be nil"
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
if click_positions.length > 12
|
|
264
|
-
raise(
|
|
265
|
-
ArgumentError,
|
|
266
|
-
"invalid value for \"click_positions\", number of items must be less than or equal to 12."
|
|
267
|
-
)
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
if click_positions.length < 12
|
|
271
|
-
raise(
|
|
272
|
-
ArgumentError,
|
|
273
|
-
"invalid value for \"click_positions\", number of items must be greater than or equal to 12."
|
|
274
|
-
)
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
@click_positions = click_positions
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Custom attribute writer method with validation
|
|
281
|
-
# @param [Object] conversion_rate Value to be assigned
|
|
282
|
-
def conversion_rate=(conversion_rate)
|
|
283
|
-
if !conversion_rate.nil? && conversion_rate > 1
|
|
284
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
if !conversion_rate.nil? && conversion_rate < 0
|
|
288
|
-
raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
@conversion_rate = conversion_rate
|
|
292
|
-
end
|
|
293
|
-
|
|
294
|
-
# Custom attribute writer method with validation
|
|
295
|
-
# @param [Object] click_count Value to be assigned
|
|
296
|
-
def click_count=(click_count)
|
|
297
|
-
if click_count.nil?
|
|
298
|
-
raise ArgumentError, "click_count cannot be nil"
|
|
299
|
-
end
|
|
300
|
-
|
|
301
|
-
if click_count < 0
|
|
302
|
-
raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
@click_count = click_count
|
|
306
|
-
end
|
|
307
|
-
|
|
308
|
-
# Custom attribute writer method with validation
|
|
309
|
-
# @param [Object] conversion_count Value to be assigned
|
|
310
|
-
def conversion_count=(conversion_count)
|
|
311
|
-
if conversion_count.nil?
|
|
312
|
-
raise ArgumentError, "conversion_count cannot be nil"
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
if conversion_count < 0
|
|
316
|
-
raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
@conversion_count = conversion_count
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
# Custom attribute writer method with validation
|
|
323
|
-
# @param [Object] add_to_cart_rate Value to be assigned
|
|
324
|
-
def add_to_cart_rate=(add_to_cart_rate)
|
|
325
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate > 1
|
|
326
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
if !add_to_cart_rate.nil? && add_to_cart_rate < 0
|
|
330
|
-
raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
@add_to_cart_rate = add_to_cart_rate
|
|
334
|
-
end
|
|
335
|
-
|
|
336
|
-
# Custom attribute writer method with validation
|
|
337
|
-
# @param [Object] add_to_cart_count Value to be assigned
|
|
338
|
-
def add_to_cart_count=(add_to_cart_count)
|
|
339
|
-
if add_to_cart_count.nil?
|
|
340
|
-
raise ArgumentError, "add_to_cart_count cannot be nil"
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
if add_to_cart_count < 0
|
|
344
|
-
raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
|
|
345
|
-
end
|
|
346
|
-
|
|
347
|
-
@add_to_cart_count = add_to_cart_count
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
# Custom attribute writer method with validation
|
|
351
|
-
# @param [Object] purchase_rate Value to be assigned
|
|
352
|
-
def purchase_rate=(purchase_rate)
|
|
353
|
-
if !purchase_rate.nil? && purchase_rate > 1
|
|
354
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
if !purchase_rate.nil? && purchase_rate < 0
|
|
358
|
-
raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
@purchase_rate = purchase_rate
|
|
362
|
-
end
|
|
363
|
-
|
|
364
232
|
# Checks equality by comparing each attribute.
|
|
365
233
|
# @param [Object] Object to be compared
|
|
366
234
|
def ==(other)
|
|
@@ -135,20 +135,6 @@ module Algolia
|
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Custom attribute writer method with validation
|
|
139
|
-
# @param [Object] batch_size Value to be assigned
|
|
140
|
-
def batch_size=(batch_size)
|
|
141
|
-
if batch_size.nil?
|
|
142
|
-
raise ArgumentError, "batch_size cannot be nil"
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if batch_size < 0
|
|
146
|
-
raise ArgumentError, "invalid value for \"batch_size\", must be greater than or equal to 0."
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
@batch_size = batch_size
|
|
150
|
-
end
|
|
151
|
-
|
|
152
138
|
# Checks equality by comparing each attribute.
|
|
153
139
|
# @param [Object] Object to be compared
|
|
154
140
|
def ==(other)
|
|
@@ -99,66 +99,6 @@ module Algolia
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] nb_pages Value to be assigned
|
|
104
|
-
def nb_pages=(nb_pages)
|
|
105
|
-
if nb_pages.nil?
|
|
106
|
-
raise ArgumentError, "nb_pages cannot be nil"
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if nb_pages < 1
|
|
110
|
-
raise ArgumentError, "invalid value for \"nb_pages\", must be greater than or equal to 1."
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
@nb_pages = nb_pages
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
# Custom attribute writer method with validation
|
|
117
|
-
# @param [Object] page Value to be assigned
|
|
118
|
-
def page=(page)
|
|
119
|
-
if page.nil?
|
|
120
|
-
raise ArgumentError, "page cannot be nil"
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if page < 1
|
|
124
|
-
raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 1."
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@page = page
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object] nb_items Value to be assigned
|
|
132
|
-
def nb_items=(nb_items)
|
|
133
|
-
if nb_items.nil?
|
|
134
|
-
raise ArgumentError, "nb_items cannot be nil"
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if nb_items < 0
|
|
138
|
-
raise ArgumentError, "invalid value for \"nb_items\", must be greater than or equal to 0."
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@nb_items = nb_items
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object] items_per_page Value to be assigned
|
|
146
|
-
def items_per_page=(items_per_page)
|
|
147
|
-
if items_per_page.nil?
|
|
148
|
-
raise ArgumentError, "items_per_page cannot be nil"
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
if items_per_page > 100
|
|
152
|
-
raise ArgumentError, "invalid value for \"items_per_page\", must be smaller than or equal to 100."
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if items_per_page < 1
|
|
156
|
-
raise ArgumentError, "invalid value for \"items_per_page\", must be greater than or equal to 1."
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@items_per_page = items_per_page
|
|
160
|
-
end
|
|
161
|
-
|
|
162
102
|
# Checks equality by comparing each attribute.
|
|
163
103
|
# @param [Object] Object to be compared
|
|
164
104
|
def ==(other)
|
|
@@ -174,24 +174,6 @@ module Algolia
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
# Custom attribute writer method with validation
|
|
178
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
179
|
-
def failure_threshold=(failure_threshold)
|
|
180
|
-
if failure_threshold.nil?
|
|
181
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if failure_threshold > 100
|
|
185
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
if failure_threshold < 0
|
|
189
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
@failure_threshold = failure_threshold
|
|
193
|
-
end
|
|
194
|
-
|
|
195
177
|
# Checks equality by comparing each attribute.
|
|
196
178
|
# @param [Object] Object to be compared
|
|
197
179
|
def ==(other)
|
|
@@ -102,27 +102,6 @@ module Algolia
|
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] delimiter Value to be assigned
|
|
107
|
-
def delimiter=(delimiter)
|
|
108
|
-
if delimiter.nil?
|
|
109
|
-
raise ArgumentError, "delimiter cannot be nil"
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if delimiter.to_s.length > 1
|
|
113
|
-
raise(
|
|
114
|
-
ArgumentError,
|
|
115
|
-
"invalid value for \"delimiter\", the character length must be smaller than or equal to 1."
|
|
116
|
-
)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if delimiter.to_s.length < 1
|
|
120
|
-
raise ArgumentError, "invalid value for \"delimiter\", the character length must be great than or equal to 1."
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
@delimiter = delimiter
|
|
124
|
-
end
|
|
125
|
-
|
|
126
105
|
# Checks equality by comparing each attribute.
|
|
127
106
|
# @param [Object] Object to be compared
|
|
128
107
|
def ==(other)
|
|
@@ -178,24 +178,6 @@ module Algolia
|
|
|
178
178
|
end
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
-
# Custom attribute writer method with validation
|
|
182
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
183
|
-
def failure_threshold=(failure_threshold)
|
|
184
|
-
if failure_threshold.nil?
|
|
185
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
if failure_threshold > 100
|
|
189
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
if failure_threshold < 0
|
|
193
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
@failure_threshold = failure_threshold
|
|
197
|
-
end
|
|
198
|
-
|
|
199
181
|
# Checks equality by comparing each attribute.
|
|
200
182
|
# @param [Object] Object to be compared
|
|
201
183
|
def ==(other)
|
|
@@ -131,24 +131,6 @@ module Algolia
|
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
136
|
-
def failure_threshold=(failure_threshold)
|
|
137
|
-
if failure_threshold.nil?
|
|
138
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if failure_threshold > 100
|
|
142
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
if failure_threshold < 0
|
|
146
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
@failure_threshold = failure_threshold
|
|
150
|
-
end
|
|
151
|
-
|
|
152
134
|
# Checks equality by comparing each attribute.
|
|
153
135
|
# @param [Object] Object to be compared
|
|
154
136
|
def ==(other)
|
|
@@ -132,24 +132,6 @@ module Algolia
|
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
# Custom attribute writer method with validation
|
|
136
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
137
|
-
def failure_threshold=(failure_threshold)
|
|
138
|
-
if failure_threshold.nil?
|
|
139
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if failure_threshold > 100
|
|
143
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if failure_threshold < 0
|
|
147
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
@failure_threshold = failure_threshold
|
|
151
|
-
end
|
|
152
|
-
|
|
153
135
|
# Checks equality by comparing each attribute.
|
|
154
136
|
# @param [Object] Object to be compared
|
|
155
137
|
def ==(other)
|
|
@@ -99,24 +99,6 @@ module Algolia
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
104
|
-
def failure_threshold=(failure_threshold)
|
|
105
|
-
if failure_threshold.nil?
|
|
106
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if failure_threshold > 100
|
|
110
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
if failure_threshold < 0
|
|
114
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@failure_threshold = failure_threshold
|
|
118
|
-
end
|
|
119
|
-
|
|
120
102
|
# Checks equality by comparing each attribute.
|
|
121
103
|
# @param [Object] Object to be compared
|
|
122
104
|
def ==(other)
|
|
@@ -98,24 +98,6 @@ module Algolia
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
# Custom attribute writer method with validation
|
|
102
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
103
|
-
def failure_threshold=(failure_threshold)
|
|
104
|
-
if failure_threshold.nil?
|
|
105
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if failure_threshold > 100
|
|
109
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if failure_threshold < 0
|
|
113
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
@failure_threshold = failure_threshold
|
|
117
|
-
end
|
|
118
|
-
|
|
119
101
|
# Checks equality by comparing each attribute.
|
|
120
102
|
# @param [Object] Object to be compared
|
|
121
103
|
def ==(other)
|
|
@@ -162,24 +162,6 @@ module Algolia
|
|
|
162
162
|
end
|
|
163
163
|
end
|
|
164
164
|
|
|
165
|
-
# Custom attribute writer method with validation
|
|
166
|
-
# @param [Object] failure_threshold Value to be assigned
|
|
167
|
-
def failure_threshold=(failure_threshold)
|
|
168
|
-
if failure_threshold.nil?
|
|
169
|
-
raise ArgumentError, "failure_threshold cannot be nil"
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if failure_threshold > 100
|
|
173
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if failure_threshold < 0
|
|
177
|
-
raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
@failure_threshold = failure_threshold
|
|
181
|
-
end
|
|
182
|
-
|
|
183
165
|
# Checks equality by comparing each attribute.
|
|
184
166
|
# @param [Object] Object to be compared
|
|
185
167
|
def ==(other)
|
|
@@ -9,7 +9,7 @@ module Algolia
|
|
|
9
9
|
# Universally unique identifier (UUID) of a transformation.
|
|
10
10
|
attr_accessor :transformation_id
|
|
11
11
|
|
|
12
|
-
# The authentications associated
|
|
12
|
+
# The authentications associated with the current transformation.
|
|
13
13
|
attr_accessor :authentication_ids
|
|
14
14
|
|
|
15
15
|
# The source code of the transformation.
|
|
@@ -16,7 +16,7 @@ module Algolia
|
|
|
16
16
|
# A descriptive name for your transformation of what it does.
|
|
17
17
|
attr_accessor :description
|
|
18
18
|
|
|
19
|
-
# The authentications associated
|
|
19
|
+
# The authentications associated with the current transformation.
|
|
20
20
|
attr_accessor :authentication_ids
|
|
21
21
|
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -167,129 +167,6 @@ module Algolia
|
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
# Custom attribute writer method with validation
|
|
171
|
-
# @param [Object] event_name Value to be assigned
|
|
172
|
-
def event_name=(event_name)
|
|
173
|
-
if event_name.nil?
|
|
174
|
-
raise ArgumentError, "event_name cannot be nil"
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if event_name.to_s.length > 64
|
|
178
|
-
raise(
|
|
179
|
-
ArgumentError,
|
|
180
|
-
"invalid value for \"event_name\", the character length must be smaller than or equal to 64."
|
|
181
|
-
)
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if event_name.to_s.length < 1
|
|
185
|
-
raise(
|
|
186
|
-
ArgumentError,
|
|
187
|
-
"invalid value for \"event_name\", the character length must be great than or equal to 1."
|
|
188
|
-
)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
pattern = /[\x20-\x7E]{1,64}/
|
|
192
|
-
if event_name !~ pattern
|
|
193
|
-
raise ArgumentError, "invalid value for \"event_name\", must conform to the pattern #{pattern}."
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
@event_name = event_name
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
# Custom attribute writer method with validation
|
|
200
|
-
# @param [Object] object_ids Value to be assigned
|
|
201
|
-
def object_ids=(object_ids)
|
|
202
|
-
if object_ids.nil?
|
|
203
|
-
raise ArgumentError, "object_ids cannot be nil"
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
if object_ids.length > 20
|
|
207
|
-
raise ArgumentError, "invalid value for \"object_ids\", number of items must be less than or equal to 20."
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
if object_ids.length < 1
|
|
211
|
-
raise ArgumentError, "invalid value for \"object_ids\", number of items must be greater than or equal to 1."
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
@object_ids = object_ids
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Custom attribute writer method with validation
|
|
218
|
-
# @param [Object] user_token Value to be assigned
|
|
219
|
-
def user_token=(user_token)
|
|
220
|
-
if user_token.nil?
|
|
221
|
-
raise ArgumentError, "user_token cannot be nil"
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
if user_token.to_s.length > 129
|
|
225
|
-
raise(
|
|
226
|
-
ArgumentError,
|
|
227
|
-
"invalid value for \"user_token\", the character length must be smaller than or equal to 129."
|
|
228
|
-
)
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
if user_token.to_s.length < 1
|
|
232
|
-
raise(
|
|
233
|
-
ArgumentError,
|
|
234
|
-
"invalid value for \"user_token\", the character length must be great than or equal to 1."
|
|
235
|
-
)
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
pattern = /[a-zA-Z0-9_=\/+-]{1,129}/
|
|
239
|
-
if user_token !~ pattern
|
|
240
|
-
raise ArgumentError, "invalid value for \"user_token\", must conform to the pattern #{pattern}."
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
@user_token = user_token
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# Custom attribute writer method with validation
|
|
247
|
-
# @param [Object] authenticated_user_token Value to be assigned
|
|
248
|
-
def authenticated_user_token=(authenticated_user_token)
|
|
249
|
-
if authenticated_user_token.nil?
|
|
250
|
-
raise ArgumentError, "authenticated_user_token cannot be nil"
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
if authenticated_user_token.to_s.length > 129
|
|
254
|
-
raise(
|
|
255
|
-
ArgumentError,
|
|
256
|
-
"invalid value for \"authenticated_user_token\", the character length must be smaller than or equal to 129."
|
|
257
|
-
)
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
if authenticated_user_token.to_s.length < 1
|
|
261
|
-
raise(
|
|
262
|
-
ArgumentError,
|
|
263
|
-
"invalid value for \"authenticated_user_token\", the character length must be great than or equal to 1."
|
|
264
|
-
)
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
pattern = /[a-zA-Z0-9_=\/+-]{1,129}/
|
|
268
|
-
if authenticated_user_token !~ pattern
|
|
269
|
-
raise ArgumentError, "invalid value for \"authenticated_user_token\", must conform to the pattern #{pattern}."
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
@authenticated_user_token = authenticated_user_token
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# Custom attribute writer method with validation
|
|
276
|
-
# @param [Object] object_data Value to be assigned
|
|
277
|
-
def object_data=(object_data)
|
|
278
|
-
if object_data.nil?
|
|
279
|
-
raise ArgumentError, "object_data cannot be nil"
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
if object_data.length > 20
|
|
283
|
-
raise ArgumentError, "invalid value for \"object_data\", number of items must be less than or equal to 20."
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
if object_data.length < 1
|
|
287
|
-
raise ArgumentError, "invalid value for \"object_data\", number of items must be greater than or equal to 1."
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
@object_data = object_data
|
|
291
|
-
end
|
|
292
|
-
|
|
293
170
|
# Checks equality by comparing each attribute.
|
|
294
171
|
# @param [Object] Object to be compared
|
|
295
172
|
def ==(other)
|