algolia 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/algolia/api/abtesting_client.rb +0 -7
  5. data/lib/algolia/api/analytics_client.rb +0 -168
  6. data/lib/algolia/api/ingestion_client.rb +2 -170
  7. data/lib/algolia/api/insights_client.rb +0 -22
  8. data/lib/algolia/api/monitoring_client.rb +11 -11
  9. data/lib/algolia/api/search_client.rb +3 -58
  10. data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
  11. data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
  12. data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
  13. data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
  14. data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
  15. data/lib/algolia/models/abtesting/variant.rb +0 -18
  16. data/lib/algolia/models/analytics/click_position.rb +0 -32
  17. data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
  18. data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
  19. data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
  20. data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
  21. data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
  22. data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
  23. data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
  24. data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
  25. data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
  26. data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
  27. data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
  28. data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
  29. data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
  30. data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
  31. data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
  32. data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
  33. data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
  34. data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
  35. data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
  36. data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
  37. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
  38. data/lib/algolia/models/ingestion/event.rb +0 -14
  39. data/lib/algolia/models/ingestion/pagination.rb +0 -60
  40. data/lib/algolia/models/ingestion/run.rb +0 -18
  41. data/lib/algolia/models/ingestion/source_csv.rb +0 -21
  42. data/lib/algolia/models/ingestion/task.rb +0 -18
  43. data/lib/algolia/models/ingestion/task_create.rb +0 -18
  44. data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
  45. data/lib/algolia/models/ingestion/task_update.rb +0 -18
  46. data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
  47. data/lib/algolia/models/ingestion/task_v1.rb +0 -18
  48. data/lib/algolia/models/ingestion/transformation.rb +1 -1
  49. data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
  50. data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
  51. data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
  52. data/lib/algolia/models/insights/clicked_filters.rb +0 -105
  53. data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
  54. data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
  55. data/lib/algolia/models/insights/converted_filters.rb +0 -105
  56. data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
  57. data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
  58. data/lib/algolia/models/insights/insights_events.rb +0 -18
  59. data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
  60. data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
  61. data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
  62. data/lib/algolia/models/insights/viewed_filters.rb +0 -105
  63. data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
  64. data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
  65. data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
  66. data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
  67. data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
  68. data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
  69. data/lib/algolia/models/recommend/banner_image.rb +4 -2
  70. data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
  71. data/lib/algolia/models/recommend/condition.rb +0 -15
  72. data/lib/algolia/models/recommend/consequence.rb +0 -28
  73. data/lib/algolia/models/recommend/fallback_params.rb +0 -92
  74. data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
  75. data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
  76. data/lib/algolia/models/recommend/ranking_info.rb +0 -112
  77. data/lib/algolia/models/recommend/recommend_hit.rb +0 -18
  78. data/lib/algolia/models/recommend/recommend_search_params.rb +0 -92
  79. data/lib/algolia/models/recommend/recommendations_results.rb +0 -61
  80. data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
  81. data/lib/algolia/models/recommend/related_query.rb +0 -36
  82. data/lib/algolia/models/recommend/search_recommend_rules_params.rb +0 -50
  83. data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
  84. data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -18
  85. data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
  86. data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
  87. data/lib/algolia/models/recommend/widgets.rb +5 -2
  88. data/lib/algolia/models/search/banner_image.rb +4 -2
  89. data/lib/algolia/models/search/browse_params_object.rb +0 -128
  90. data/lib/algolia/models/search/browse_response.rb +0 -61
  91. data/lib/algolia/models/search/condition.rb +0 -15
  92. data/lib/algolia/models/search/consequence.rb +0 -28
  93. data/lib/algolia/models/search/consequence_params.rb +0 -128
  94. data/lib/algolia/models/search/index_settings.rb +0 -78
  95. data/lib/algolia/models/search/log.rb +0 -34
  96. data/lib/algolia/models/search/promote_object_ids.rb +0 -14
  97. data/lib/algolia/models/search/ranking_info.rb +0 -112
  98. data/lib/algolia/models/search/rule.rb +0 -18
  99. data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
  100. data/lib/algolia/models/search/search_dictionary_entries_response.rb +0 -14
  101. data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
  102. data/lib/algolia/models/search/search_for_facets.rb +0 -128
  103. data/lib/algolia/models/search/search_for_hits.rb +0 -128
  104. data/lib/algolia/models/search/search_params_object.rb +0 -128
  105. data/lib/algolia/models/search/search_response.rb +0 -61
  106. data/lib/algolia/models/search/search_rules_params.rb +0 -32
  107. data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
  108. data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
  109. data/lib/algolia/models/search/search_user_ids_response.rb +0 -32
  110. data/lib/algolia/models/search/settings_response.rb +0 -78
  111. data/lib/algolia/models/search/user_hit.rb +0 -15
  112. data/lib/algolia/models/search/user_id.rb +0 -15
  113. data/lib/algolia/models/search/widgets.rb +5 -2
  114. data/lib/algolia/version.rb +1 -1
  115. metadata +2 -11
  116. data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +0 -230
  117. data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +0 -212
  118. data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +0 -252
  119. data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +0 -263
  120. data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
  121. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
  122. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
  123. data/lib/algolia/models/recommend/banners.rb +0 -209
  124. data/lib/algolia/models/search/banners.rb +0 -209
@@ -206,15 +206,6 @@ module Algolia
206
206
  if @api_client.config.client_side_validation && x_algolia_user_id.nil?
207
207
  raise ArgumentError, "Parameter `x_algolia_user_id` is required when calling `assign_user_id`."
208
208
  end
209
-
210
- pattern = /^[a-zA-Z0-9 \-*.]+$/
211
- if @api_client.config.client_side_validation && x_algolia_user_id !~ pattern
212
- raise(
213
- ArgumentError,
214
- "invalid value for 'x_algolia_user_id' when calling SearchClient.assign_user_id, must conform to the pattern #{pattern}."
215
- )
216
- end
217
-
218
209
  # verify the required parameter 'assign_user_id_params' is set
219
210
  if @api_client.config.client_side_validation && assign_user_id_params.nil?
220
211
  raise ArgumentError, "Parameter `assign_user_id_params` is required when calling `assign_user_id`."
@@ -312,15 +303,6 @@ module Algolia
312
303
  if @api_client.config.client_side_validation && x_algolia_user_id.nil?
313
304
  raise ArgumentError, "Parameter `x_algolia_user_id` is required when calling `batch_assign_user_ids`."
314
305
  end
315
-
316
- pattern = /^[a-zA-Z0-9 \-*.]+$/
317
- if @api_client.config.client_side_validation && x_algolia_user_id !~ pattern
318
- raise(
319
- ArgumentError,
320
- "invalid value for 'x_algolia_user_id' when calling SearchClient.batch_assign_user_ids, must conform to the pattern #{pattern}."
321
- )
322
- end
323
-
324
306
  # verify the required parameter 'batch_assign_user_ids_params' is set
325
307
  if @api_client.config.client_side_validation && batch_assign_user_ids_params.nil?
326
308
  raise(
@@ -449,7 +431,7 @@ module Algolia
449
431
  :header_params => header_params,
450
432
  :query_params => query_params,
451
433
  :body => post_body,
452
- :use_read_transporter => false
434
+ :use_read_transporter => true
453
435
  )
454
436
 
455
437
  @api_client.call_api(:POST, path, new_options)
@@ -1245,7 +1227,7 @@ module Algolia
1245
1227
  # @return [Hash<String, Languages>]
1246
1228
  def get_dictionary_languages(request_options = {})
1247
1229
  response = get_dictionary_languages_with_http_info(request_options)
1248
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::Hash<String, Languages>")
1230
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Hash<String, Languages>")
1249
1231
  end
1250
1232
 
1251
1233
  # Retrieves the languages for which standard dictionary entries are turned off.
@@ -1299,13 +1281,6 @@ module Algolia
1299
1281
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1300
1282
  # @return [Http::Response] the response
1301
1283
  def get_logs_with_http_info(offset = nil, length = nil, index_name = nil, type = nil, request_options = {})
1302
- if @api_client.config.client_side_validation && !length.nil? && length > 1000
1303
- raise(
1304
- ArgumentError,
1305
- "invalid value for \"\"length\"\" when calling SearchClient.get_logs, must be smaller than or equal to 1000."
1306
- )
1307
- end
1308
-
1309
1284
  path = "/1/logs"
1310
1285
  query_params = {}
1311
1286
  query_params[:offset] = offset unless offset.nil?
@@ -1400,7 +1375,7 @@ module Algolia
1400
1375
  # @return [Object]
1401
1376
  def get_object(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
1402
1377
  response = get_object_with_http_info(index_name, object_id, attributes_to_retrieve, request_options)
1403
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::Object")
1378
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
1404
1379
  end
1405
1380
 
1406
1381
  # Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
@@ -1734,14 +1709,6 @@ module Algolia
1734
1709
  raise ArgumentError, "Parameter `user_id` is required when calling `get_user_id`."
1735
1710
  end
1736
1711
 
1737
- pattern = /^[a-zA-Z0-9 \-*.]+$/
1738
- if @api_client.config.client_side_validation && user_id !~ pattern
1739
- raise(
1740
- ArgumentError,
1741
- "invalid value for 'user_id' when calling SearchClient.get_user_id, must conform to the pattern #{pattern}."
1742
- )
1743
- end
1744
-
1745
1712
  path = "/1/clusters/mapping/{userID}".sub("{" + "userID" + "}", Transport.encode_uri(user_id.to_s))
1746
1713
  query_params = {}
1747
1714
  query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
@@ -1899,13 +1866,6 @@ module Algolia
1899
1866
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1900
1867
  # @return [Http::Response] the response
1901
1868
  def list_indices_with_http_info(page = nil, hits_per_page = nil, request_options = {})
1902
- if @api_client.config.client_side_validation && !page.nil? && page < 0
1903
- raise(
1904
- ArgumentError,
1905
- "invalid value for \"\"page\"\" when calling SearchClient.list_indices, must be greater than or equal to 0."
1906
- )
1907
- end
1908
-
1909
1869
  path = "/1/indexes"
1910
1870
  query_params = {}
1911
1871
  query_params[:page] = page unless page.nil?
@@ -1949,13 +1909,6 @@ module Algolia
1949
1909
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1950
1910
  # @return [Http::Response] the response
1951
1911
  def list_user_ids_with_http_info(page = nil, hits_per_page = nil, request_options = {})
1952
- if @api_client.config.client_side_validation && !page.nil? && page < 0
1953
- raise(
1954
- ArgumentError,
1955
- "invalid value for \"\"page\"\" when calling SearchClient.list_user_ids, must be greater than or equal to 0."
1956
- )
1957
- end
1958
-
1959
1912
  path = "/1/clusters/mapping"
1960
1913
  query_params = {}
1961
1914
  query_params[:page] = page unless page.nil?
@@ -2175,14 +2128,6 @@ module Algolia
2175
2128
  raise ArgumentError, "Parameter `user_id` is required when calling `remove_user_id`."
2176
2129
  end
2177
2130
 
2178
- pattern = /^[a-zA-Z0-9 \-*.]+$/
2179
- if @api_client.config.client_side_validation && user_id !~ pattern
2180
- raise(
2181
- ArgumentError,
2182
- "invalid value for 'user_id' when calling SearchClient.remove_user_id, must conform to the pattern #{pattern}."
2183
- )
2184
- end
2185
-
2186
2131
  path = "/1/clusters/mapping/{userID}".sub("{" + "userID" + "}", Transport.encode_uri(user_id.to_s))
2187
2132
  query_params = {}
2188
2133
  query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
@@ -85,24 +85,6 @@ module Algolia
85
85
  end
86
86
  end
87
87
 
88
- # Custom attribute writer method with validation
89
- # @param [Object] traffic_percentage Value to be assigned
90
- def traffic_percentage=(traffic_percentage)
91
- if traffic_percentage.nil?
92
- raise ArgumentError, "traffic_percentage cannot be nil"
93
- end
94
-
95
- if traffic_percentage > 100
96
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be smaller than or equal to 100."
97
- end
98
-
99
- if traffic_percentage < 0
100
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be greater than or equal to 0."
101
- end
102
-
103
- @traffic_percentage = traffic_percentage
104
- end
105
-
106
88
  # Checks equality by comparing each attribute.
107
89
  # @param [Object] Object to be compared
108
90
  def ==(other)
@@ -103,24 +103,6 @@ module Algolia
103
103
  end
104
104
  end
105
105
 
106
- # Custom attribute writer method with validation
107
- # @param [Object] traffic_percentage Value to be assigned
108
- def traffic_percentage=(traffic_percentage)
109
- if traffic_percentage.nil?
110
- raise ArgumentError, "traffic_percentage cannot be nil"
111
- end
112
-
113
- if traffic_percentage > 100
114
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be smaller than or equal to 100."
115
- end
116
-
117
- if traffic_percentage < 0
118
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be greater than or equal to 0."
119
- end
120
-
121
- @traffic_percentage = traffic_percentage
122
- end
123
-
124
106
  # Checks equality by comparing each attribute.
125
107
  # @param [Object] Object to be compared
126
108
  def ==(other)
@@ -89,24 +89,6 @@ module Algolia
89
89
  end
90
90
  end
91
91
 
92
- # Custom attribute writer method with validation
93
- # @param [Object] variants Value to be assigned
94
- def variants=(variants)
95
- if variants.nil?
96
- raise ArgumentError, "variants cannot be nil"
97
- end
98
-
99
- if variants.length > 2
100
- raise ArgumentError, "invalid value for \"variants\", number of items must be less than or equal to 2."
101
- end
102
-
103
- if variants.length < 2
104
- raise ArgumentError, "invalid value for \"variants\", number of items must be greater than or equal to 2."
105
- end
106
-
107
- @variants = variants
108
- end
109
-
110
92
  # Checks equality by comparing each attribute.
111
93
  # @param [Object] Object to be compared
112
94
  def ==(other)
@@ -72,24 +72,6 @@ module Algolia
72
72
  end
73
73
  end
74
74
 
75
- # Custom attribute writer method with validation
76
- # @param [Object] size Value to be assigned
77
- def size=(size)
78
- if size.nil?
79
- raise ArgumentError, "size cannot be nil"
80
- end
81
-
82
- if size > 1
83
- raise ArgumentError, "invalid value for \"size\", must be smaller than or equal to 1."
84
- end
85
-
86
- if size < 0
87
- raise ArgumentError, "invalid value for \"size\", must be greater than or equal to 0."
88
- end
89
-
90
- @size = size
91
- end
92
-
93
75
  # Checks equality by comparing each attribute.
94
76
  # @param [Object] Object to be compared
95
77
  def ==(other)
@@ -100,24 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] variants Value to be assigned
105
- def variants=(variants)
106
- if variants.nil?
107
- raise ArgumentError, "variants cannot be nil"
108
- end
109
-
110
- if variants.length > 2
111
- raise ArgumentError, "invalid value for \"variants\", number of items must be less than or equal to 2."
112
- end
113
-
114
- if variants.length < 2
115
- raise ArgumentError, "invalid value for \"variants\", number of items must be greater than or equal to 2."
116
- end
117
-
118
- @variants = variants
119
- end
120
-
121
103
  # Checks equality by comparing each attribute.
122
104
  # @param [Object] Object to be compared
123
105
  def ==(other)
@@ -264,24 +264,6 @@ module Algolia
264
264
  end
265
265
  end
266
266
 
267
- # Custom attribute writer method with validation
268
- # @param [Object] traffic_percentage Value to be assigned
269
- def traffic_percentage=(traffic_percentage)
270
- if traffic_percentage.nil?
271
- raise ArgumentError, "traffic_percentage cannot be nil"
272
- end
273
-
274
- if traffic_percentage > 100
275
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be smaller than or equal to 100."
276
- end
277
-
278
- if traffic_percentage < 0
279
- raise ArgumentError, "invalid value for \"traffic_percentage\", must be greater than or equal to 0."
280
- end
281
-
282
- @traffic_percentage = traffic_percentage
283
- end
284
-
285
267
  # Checks equality by comparing each attribute.
286
268
  # @param [Object] Object to be compared
287
269
  def ==(other)
@@ -75,38 +75,6 @@ module Algolia
75
75
  end
76
76
  end
77
77
 
78
- # Custom attribute writer method with validation
79
- # @param [Object] position Value to be assigned
80
- def position=(position)
81
- if position.nil?
82
- raise ArgumentError, "position cannot be nil"
83
- end
84
-
85
- if position.length > 2
86
- raise ArgumentError, "invalid value for \"position\", number of items must be less than or equal to 2."
87
- end
88
-
89
- if position.length < 2
90
- raise ArgumentError, "invalid value for \"position\", number of items must be greater than or equal to 2."
91
- end
92
-
93
- @position = position
94
- end
95
-
96
- # Custom attribute writer method with validation
97
- # @param [Object] click_count Value to be assigned
98
- def click_count=(click_count)
99
- if click_count.nil?
100
- raise ArgumentError, "click_count cannot be nil"
101
- end
102
-
103
- if click_count < 0
104
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
105
- end
106
-
107
- @click_count = click_count
108
- end
109
-
110
78
  # Checks equality by comparing each attribute.
111
79
  # @param [Object] Object to be compared
112
80
  def ==(other)
@@ -100,34 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] add_to_cart_count Value to be assigned
119
- def add_to_cart_count=(add_to_cart_count)
120
- if add_to_cart_count.nil?
121
- raise ArgumentError, "add_to_cart_count cannot be nil"
122
- end
123
-
124
- if add_to_cart_count < 0
125
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
126
- end
127
-
128
- @add_to_cart_count = add_to_cart_count
129
- end
130
-
131
103
  # Checks equality by comparing each attribute.
132
104
  # @param [Object] Object to be compared
133
105
  def ==(other)
@@ -89,30 +89,6 @@ module Algolia
89
89
  end
90
90
  end
91
91
 
92
- # Custom attribute writer method with validation
93
- # @param [Object] average Value to be assigned
94
- def average=(average)
95
- if !average.nil? && average < 1
96
- raise ArgumentError, "invalid value for \"average\", must be greater than or equal to 1."
97
- end
98
-
99
- @average = average
100
- end
101
-
102
- # Custom attribute writer method with validation
103
- # @param [Object] click_count Value to be assigned
104
- def click_count=(click_count)
105
- if click_count.nil?
106
- raise ArgumentError, "click_count cannot be nil"
107
- end
108
-
109
- if click_count < 0
110
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
111
- end
112
-
113
- @click_count = click_count
114
- end
115
-
116
92
  # Checks equality by comparing each attribute.
117
93
  # @param [Object] Object to be compared
118
94
  def ==(other)
@@ -100,34 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] click_count Value to be assigned
119
- def click_count=(click_count)
120
- if click_count.nil?
121
- raise ArgumentError, "click_count cannot be nil"
122
- end
123
-
124
- if click_count < 0
125
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
126
- end
127
-
128
- @click_count = click_count
129
- end
130
-
131
103
  # Checks equality by comparing each attribute.
132
104
  # @param [Object] Object to be compared
133
105
  def ==(other)
@@ -100,34 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] conversion_count Value to be assigned
119
- def conversion_count=(conversion_count)
120
- if conversion_count.nil?
121
- raise ArgumentError, "conversion_count cannot be nil"
122
- end
123
-
124
- if conversion_count < 0
125
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
126
- end
127
-
128
- @conversion_count = conversion_count
129
- end
130
-
131
103
  # Checks equality by comparing each attribute.
132
104
  # @param [Object] Object to be compared
133
105
  def ==(other)
@@ -98,38 +98,6 @@ module Algolia
98
98
  end
99
99
  end
100
100
 
101
- # Custom attribute writer method with validation
102
- # @param [Object] rate Value to be assigned
103
- def rate=(rate)
104
- if rate.nil?
105
- raise ArgumentError, "rate cannot be nil"
106
- end
107
-
108
- if rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] no_click_count Value to be assigned
121
- def no_click_count=(no_click_count)
122
- if no_click_count.nil?
123
- raise ArgumentError, "no_click_count cannot be nil"
124
- end
125
-
126
- if no_click_count < 1
127
- raise ArgumentError, "invalid value for \"no_click_count\", must be greater than or equal to 1."
128
- end
129
-
130
- @no_click_count = no_click_count
131
- end
132
-
133
101
  # Checks equality by comparing each attribute.
134
102
  # @param [Object] Object to be compared
135
103
  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] rate Value to be assigned
103
- def rate=(rate)
104
- if rate.nil?
105
- raise ArgumentError, "rate cannot be nil"
106
- end
107
-
108
- if rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
101
  # Checks equality by comparing each attribute.
120
102
  # @param [Object] Object to be compared
121
103
  def ==(other)
@@ -100,20 +100,6 @@ module Algolia
100
100
  end
101
101
  end
102
102
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] rate Value to be assigned
105
- def rate=(rate)
106
- if !rate.nil? && rate > 1
107
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
108
- end
109
-
110
- if !rate.nil? && rate < 0
111
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
112
- end
113
-
114
- @rate = rate
115
- end
116
-
117
103
  # Checks equality by comparing each attribute.
118
104
  # @param [Object] Object to be compared
119
105
  def ==(other)
@@ -87,20 +87,6 @@ module Algolia
87
87
  end
88
88
  end
89
89
 
90
- # Custom attribute writer method with validation
91
- # @param [Object] count Value to be assigned
92
- def count=(count)
93
- if count.nil?
94
- raise ArgumentError, "count cannot be nil"
95
- end
96
-
97
- if count < 1
98
- raise ArgumentError, "invalid value for \"count\", must be greater than or equal to 1."
99
- end
100
-
101
- @count = count
102
- end
103
-
104
90
  # Checks equality by comparing each attribute.
105
91
  # @param [Object] Object to be compared
106
92
  def ==(other)
@@ -87,20 +87,6 @@ module Algolia
87
87
  end
88
88
  end
89
89
 
90
- # Custom attribute writer method with validation
91
- # @param [Object] with_filter_count Value to be assigned
92
- def with_filter_count=(with_filter_count)
93
- if with_filter_count.nil?
94
- raise ArgumentError, "with_filter_count cannot be nil"
95
- end
96
-
97
- if with_filter_count < 0
98
- raise ArgumentError, "invalid value for \"with_filter_count\", must be greater than or equal to 0."
99
- end
100
-
101
- @with_filter_count = with_filter_count
102
- end
103
-
104
90
  # Checks equality by comparing each attribute.
105
91
  # @param [Object] Object to be compared
106
92
  def ==(other)
@@ -102,34 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] rate Value to be assigned
107
- def rate=(rate)
108
- if !rate.nil? && rate > 1
109
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
110
- end
111
-
112
- if !rate.nil? && rate < 0
113
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
114
- end
115
-
116
- @rate = rate
117
- end
118
-
119
- # Custom attribute writer method with validation
120
- # @param [Object] add_to_cart_count Value to be assigned
121
- def add_to_cart_count=(add_to_cart_count)
122
- if add_to_cart_count.nil?
123
- raise ArgumentError, "add_to_cart_count cannot be nil"
124
- end
125
-
126
- if add_to_cart_count < 0
127
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
128
- end
129
-
130
- @add_to_cart_count = add_to_cart_count
131
- end
132
-
133
105
  # Checks equality by comparing each attribute.
134
106
  # @param [Object] Object to be compared
135
107
  def ==(other)
@@ -91,30 +91,6 @@ module Algolia
91
91
  end
92
92
  end
93
93
 
94
- # Custom attribute writer method with validation
95
- # @param [Object] average Value to be assigned
96
- def average=(average)
97
- if !average.nil? && average < 1
98
- raise ArgumentError, "invalid value for \"average\", must be greater than or equal to 1."
99
- end
100
-
101
- @average = average
102
- end
103
-
104
- # Custom attribute writer method with validation
105
- # @param [Object] click_count Value to be assigned
106
- def click_count=(click_count)
107
- if click_count.nil?
108
- raise ArgumentError, "click_count cannot be nil"
109
- end
110
-
111
- if click_count < 0
112
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
113
- end
114
-
115
- @click_count = click_count
116
- end
117
-
118
94
  # Checks equality by comparing each attribute.
119
95
  # @param [Object] Object to be compared
120
96
  def ==(other)