algolia 3.5.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.
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
@@ -210,40 +210,6 @@ module Algolia
210
210
  end
211
211
  end
212
212
 
213
- # Custom attribute writer method with validation
214
- # @param [Object] query_body Value to be assigned
215
- def query_body=(query_body)
216
- if query_body.nil?
217
- raise ArgumentError, "query_body cannot be nil"
218
- end
219
-
220
- if query_body.to_s.length > 1000
221
- raise(
222
- ArgumentError,
223
- "invalid value for \"query_body\", the character length must be smaller than or equal to 1000."
224
- )
225
- end
226
-
227
- @query_body = query_body
228
- end
229
-
230
- # Custom attribute writer method with validation
231
- # @param [Object] answer Value to be assigned
232
- def answer=(answer)
233
- if answer.nil?
234
- raise ArgumentError, "answer cannot be nil"
235
- end
236
-
237
- if answer.to_s.length > 1000
238
- raise(
239
- ArgumentError,
240
- "invalid value for \"answer\", the character length must be smaller than or equal to 1000."
241
- )
242
- end
243
-
244
- @answer = answer
245
- end
246
-
247
213
  # Checks equality by comparing each attribute.
248
214
  # @param [Object] Object to be compared
249
215
  def ==(other)
@@ -79,20 +79,6 @@ module Algolia
79
79
  end
80
80
  end
81
81
 
82
- # Custom attribute writer method with validation
83
- # @param [Object] object_ids Value to be assigned
84
- def object_ids=(object_ids)
85
- if object_ids.nil?
86
- raise ArgumentError, "object_ids cannot be nil"
87
- end
88
-
89
- if object_ids.length > 100
90
- raise ArgumentError, "invalid value for \"object_ids\", number of items must be less than or equal to 100."
91
- end
92
-
93
- @object_ids = object_ids
94
- end
95
-
96
82
  # Checks equality by comparing each attribute.
97
83
  # @param [Object] Object to be compared
98
84
  def ==(other)
@@ -180,118 +180,6 @@ module Algolia
180
180
  end
181
181
  end
182
182
 
183
- # Custom attribute writer method with validation
184
- # @param [Object] filters Value to be assigned
185
- def filters=(filters)
186
- if filters.nil?
187
- raise ArgumentError, "filters cannot be nil"
188
- end
189
-
190
- if filters < 0
191
- raise ArgumentError, "invalid value for \"filters\", must be greater than or equal to 0."
192
- end
193
-
194
- @filters = filters
195
- end
196
-
197
- # Custom attribute writer method with validation
198
- # @param [Object] first_matched_word Value to be assigned
199
- def first_matched_word=(first_matched_word)
200
- if first_matched_word.nil?
201
- raise ArgumentError, "first_matched_word cannot be nil"
202
- end
203
-
204
- if first_matched_word < 0
205
- raise ArgumentError, "invalid value for \"first_matched_word\", must be greater than or equal to 0."
206
- end
207
-
208
- @first_matched_word = first_matched_word
209
- end
210
-
211
- # Custom attribute writer method with validation
212
- # @param [Object] geo_distance Value to be assigned
213
- def geo_distance=(geo_distance)
214
- if geo_distance.nil?
215
- raise ArgumentError, "geo_distance cannot be nil"
216
- end
217
-
218
- if geo_distance < 0
219
- raise ArgumentError, "invalid value for \"geo_distance\", must be greater than or equal to 0."
220
- end
221
-
222
- @geo_distance = geo_distance
223
- end
224
-
225
- # Custom attribute writer method with validation
226
- # @param [Object] geo_precision Value to be assigned
227
- def geo_precision=(geo_precision)
228
- if geo_precision.nil?
229
- raise ArgumentError, "geo_precision cannot be nil"
230
- end
231
-
232
- if geo_precision < 1
233
- raise ArgumentError, "invalid value for \"geo_precision\", must be greater than or equal to 1."
234
- end
235
-
236
- @geo_precision = geo_precision
237
- end
238
-
239
- # Custom attribute writer method with validation
240
- # @param [Object] nb_exact_words Value to be assigned
241
- def nb_exact_words=(nb_exact_words)
242
- if nb_exact_words.nil?
243
- raise ArgumentError, "nb_exact_words cannot be nil"
244
- end
245
-
246
- if nb_exact_words < 0
247
- raise ArgumentError, "invalid value for \"nb_exact_words\", must be greater than or equal to 0."
248
- end
249
-
250
- @nb_exact_words = nb_exact_words
251
- end
252
-
253
- # Custom attribute writer method with validation
254
- # @param [Object] nb_typos Value to be assigned
255
- def nb_typos=(nb_typos)
256
- if nb_typos.nil?
257
- raise ArgumentError, "nb_typos cannot be nil"
258
- end
259
-
260
- if nb_typos < 0
261
- raise ArgumentError, "invalid value for \"nb_typos\", must be greater than or equal to 0."
262
- end
263
-
264
- @nb_typos = nb_typos
265
- end
266
-
267
- # Custom attribute writer method with validation
268
- # @param [Object] proximity_distance Value to be assigned
269
- def proximity_distance=(proximity_distance)
270
- if proximity_distance.nil?
271
- raise ArgumentError, "proximity_distance cannot be nil"
272
- end
273
-
274
- if proximity_distance < 0
275
- raise ArgumentError, "invalid value for \"proximity_distance\", must be greater than or equal to 0."
276
- end
277
-
278
- @proximity_distance = proximity_distance
279
- end
280
-
281
- # Custom attribute writer method with validation
282
- # @param [Object] words Value to be assigned
283
- def words=(words)
284
- if words.nil?
285
- raise ArgumentError, "words cannot be nil"
286
- end
287
-
288
- if words < 1
289
- raise ArgumentError, "invalid value for \"words\", must be greater than or equal to 1."
290
- end
291
-
292
- @words = words
293
- end
294
-
295
183
  # Checks equality by comparing each attribute.
296
184
  # @param [Object] Object to be compared
297
185
  def ==(other)
@@ -111,24 +111,6 @@ module Algolia
111
111
  end
112
112
  end
113
113
 
114
- # Custom attribute writer method with validation
115
- # @param [Object] conditions Value to be assigned
116
- def conditions=(conditions)
117
- if conditions.nil?
118
- raise ArgumentError, "conditions cannot be nil"
119
- end
120
-
121
- if conditions.length > 25
122
- raise ArgumentError, "invalid value for \"conditions\", number of items must be less than or equal to 25."
123
- end
124
-
125
- if conditions.length < 0
126
- raise ArgumentError, "invalid value for \"conditions\", number of items must be greater than or equal to 0."
127
- end
128
-
129
- @conditions = conditions
130
- end
131
-
132
114
  # Checks equality by comparing each attribute.
133
115
  # @param [Object] Object to be compared
134
116
  def ==(other)
@@ -92,38 +92,6 @@ module Algolia
92
92
  end
93
93
  end
94
94
 
95
- # Custom attribute writer method with validation
96
- # @param [Object] page Value to be assigned
97
- def page=(page)
98
- if page.nil?
99
- raise ArgumentError, "page cannot be nil"
100
- end
101
-
102
- if page < 0
103
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
104
- end
105
-
106
- @page = page
107
- end
108
-
109
- # Custom attribute writer method with validation
110
- # @param [Object] hits_per_page Value to be assigned
111
- def hits_per_page=(hits_per_page)
112
- if hits_per_page.nil?
113
- raise ArgumentError, "hits_per_page cannot be nil"
114
- end
115
-
116
- if hits_per_page > 1000
117
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
118
- end
119
-
120
- if hits_per_page < 1
121
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
122
- end
123
-
124
- @hits_per_page = hits_per_page
125
- end
126
-
127
95
  # Checks equality by comparing each attribute.
128
96
  # @param [Object] Object to be compared
129
97
  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] page Value to be assigned
105
- def page=(page)
106
- if page.nil?
107
- raise ArgumentError, "page cannot be nil"
108
- end
109
-
110
- if page < 0
111
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
112
- end
113
-
114
- @page = page
115
- end
116
-
117
103
  # Checks equality by comparing each attribute.
118
104
  # @param [Object] Object to be compared
119
105
  def ==(other)
@@ -81,20 +81,6 @@ module Algolia
81
81
  end
82
82
  end
83
83
 
84
- # Custom attribute writer method with validation
85
- # @param [Object] max_facet_hits Value to be assigned
86
- def max_facet_hits=(max_facet_hits)
87
- if max_facet_hits.nil?
88
- raise ArgumentError, "max_facet_hits cannot be nil"
89
- end
90
-
91
- if max_facet_hits > 100
92
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
93
- end
94
-
95
- @max_facet_hits = max_facet_hits
96
- end
97
-
98
84
  # Checks equality by comparing each attribute.
99
85
  # @param [Object] Object to be compared
100
86
  def ==(other)
@@ -817,134 +817,6 @@ module Algolia
817
817
  end
818
818
  end
819
819
 
820
- # Custom attribute writer method with validation
821
- # @param [Object] page Value to be assigned
822
- def page=(page)
823
- if page.nil?
824
- raise ArgumentError, "page cannot be nil"
825
- end
826
-
827
- if page < 0
828
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
829
- end
830
-
831
- @page = page
832
- end
833
-
834
- # Custom attribute writer method with validation
835
- # @param [Object] length Value to be assigned
836
- def length=(length)
837
- if length.nil?
838
- raise ArgumentError, "length cannot be nil"
839
- end
840
-
841
- if length > 1000
842
- raise ArgumentError, "invalid value for \"length\", must be smaller than or equal to 1000."
843
- end
844
-
845
- if length < 0
846
- raise ArgumentError, "invalid value for \"length\", must be greater than or equal to 0."
847
- end
848
-
849
- @length = length
850
- end
851
-
852
- # Custom attribute writer method with validation
853
- # @param [Object] minimum_around_radius Value to be assigned
854
- def minimum_around_radius=(minimum_around_radius)
855
- if minimum_around_radius.nil?
856
- raise ArgumentError, "minimum_around_radius cannot be nil"
857
- end
858
-
859
- if minimum_around_radius < 1
860
- raise ArgumentError, "invalid value for \"minimum_around_radius\", must be greater than or equal to 1."
861
- end
862
-
863
- @minimum_around_radius = minimum_around_radius
864
- end
865
-
866
- # Custom attribute writer method with validation
867
- # @param [Object] personalization_impact Value to be assigned
868
- def personalization_impact=(personalization_impact)
869
- if personalization_impact.nil?
870
- raise ArgumentError, "personalization_impact cannot be nil"
871
- end
872
-
873
- if personalization_impact > 100
874
- raise ArgumentError, "invalid value for \"personalization_impact\", must be smaller than or equal to 100."
875
- end
876
-
877
- if personalization_impact < 0
878
- raise ArgumentError, "invalid value for \"personalization_impact\", must be greater than or equal to 0."
879
- end
880
-
881
- @personalization_impact = personalization_impact
882
- end
883
-
884
- # Custom attribute writer method with validation
885
- # @param [Object] hits_per_page Value to be assigned
886
- def hits_per_page=(hits_per_page)
887
- if hits_per_page.nil?
888
- raise ArgumentError, "hits_per_page cannot be nil"
889
- end
890
-
891
- if hits_per_page > 1000
892
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
893
- end
894
-
895
- if hits_per_page < 1
896
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
897
- end
898
-
899
- @hits_per_page = hits_per_page
900
- end
901
-
902
- # Custom attribute writer method with validation
903
- # @param [Object] min_proximity Value to be assigned
904
- def min_proximity=(min_proximity)
905
- if min_proximity.nil?
906
- raise ArgumentError, "min_proximity cannot be nil"
907
- end
908
-
909
- if min_proximity > 7
910
- raise ArgumentError, "invalid value for \"min_proximity\", must be smaller than or equal to 7."
911
- end
912
-
913
- if min_proximity < 1
914
- raise ArgumentError, "invalid value for \"min_proximity\", must be greater than or equal to 1."
915
- end
916
-
917
- @min_proximity = min_proximity
918
- end
919
-
920
- # Custom attribute writer method with validation
921
- # @param [Object] max_facet_hits Value to be assigned
922
- def max_facet_hits=(max_facet_hits)
923
- if max_facet_hits.nil?
924
- raise ArgumentError, "max_facet_hits cannot be nil"
925
- end
926
-
927
- if max_facet_hits > 100
928
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
929
- end
930
-
931
- @max_facet_hits = max_facet_hits
932
- end
933
-
934
- # Custom attribute writer method with validation
935
- # @param [Object] max_values_per_facet Value to be assigned
936
- def max_values_per_facet=(max_values_per_facet)
937
- if max_values_per_facet.nil?
938
- raise ArgumentError, "max_values_per_facet cannot be nil"
939
- end
940
-
941
- if max_values_per_facet > 1000
942
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
943
- end
944
-
945
- @max_values_per_facet = max_values_per_facet
946
- end
947
-
948
820
  # Checks equality by comparing each attribute.
949
821
  # @param [Object] Object to be compared
950
822
  def ==(other)
@@ -795,134 +795,6 @@ module Algolia
795
795
  end
796
796
  end
797
797
 
798
- # Custom attribute writer method with validation
799
- # @param [Object] page Value to be assigned
800
- def page=(page)
801
- if page.nil?
802
- raise ArgumentError, "page cannot be nil"
803
- end
804
-
805
- if page < 0
806
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
807
- end
808
-
809
- @page = page
810
- end
811
-
812
- # Custom attribute writer method with validation
813
- # @param [Object] length Value to be assigned
814
- def length=(length)
815
- if length.nil?
816
- raise ArgumentError, "length cannot be nil"
817
- end
818
-
819
- if length > 1000
820
- raise ArgumentError, "invalid value for \"length\", must be smaller than or equal to 1000."
821
- end
822
-
823
- if length < 0
824
- raise ArgumentError, "invalid value for \"length\", must be greater than or equal to 0."
825
- end
826
-
827
- @length = length
828
- end
829
-
830
- # Custom attribute writer method with validation
831
- # @param [Object] minimum_around_radius Value to be assigned
832
- def minimum_around_radius=(minimum_around_radius)
833
- if minimum_around_radius.nil?
834
- raise ArgumentError, "minimum_around_radius cannot be nil"
835
- end
836
-
837
- if minimum_around_radius < 1
838
- raise ArgumentError, "invalid value for \"minimum_around_radius\", must be greater than or equal to 1."
839
- end
840
-
841
- @minimum_around_radius = minimum_around_radius
842
- end
843
-
844
- # Custom attribute writer method with validation
845
- # @param [Object] personalization_impact Value to be assigned
846
- def personalization_impact=(personalization_impact)
847
- if personalization_impact.nil?
848
- raise ArgumentError, "personalization_impact cannot be nil"
849
- end
850
-
851
- if personalization_impact > 100
852
- raise ArgumentError, "invalid value for \"personalization_impact\", must be smaller than or equal to 100."
853
- end
854
-
855
- if personalization_impact < 0
856
- raise ArgumentError, "invalid value for \"personalization_impact\", must be greater than or equal to 0."
857
- end
858
-
859
- @personalization_impact = personalization_impact
860
- end
861
-
862
- # Custom attribute writer method with validation
863
- # @param [Object] hits_per_page Value to be assigned
864
- def hits_per_page=(hits_per_page)
865
- if hits_per_page.nil?
866
- raise ArgumentError, "hits_per_page cannot be nil"
867
- end
868
-
869
- if hits_per_page > 1000
870
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
871
- end
872
-
873
- if hits_per_page < 1
874
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
875
- end
876
-
877
- @hits_per_page = hits_per_page
878
- end
879
-
880
- # Custom attribute writer method with validation
881
- # @param [Object] min_proximity Value to be assigned
882
- def min_proximity=(min_proximity)
883
- if min_proximity.nil?
884
- raise ArgumentError, "min_proximity cannot be nil"
885
- end
886
-
887
- if min_proximity > 7
888
- raise ArgumentError, "invalid value for \"min_proximity\", must be smaller than or equal to 7."
889
- end
890
-
891
- if min_proximity < 1
892
- raise ArgumentError, "invalid value for \"min_proximity\", must be greater than or equal to 1."
893
- end
894
-
895
- @min_proximity = min_proximity
896
- end
897
-
898
- # Custom attribute writer method with validation
899
- # @param [Object] max_facet_hits Value to be assigned
900
- def max_facet_hits=(max_facet_hits)
901
- if max_facet_hits.nil?
902
- raise ArgumentError, "max_facet_hits cannot be nil"
903
- end
904
-
905
- if max_facet_hits > 100
906
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
907
- end
908
-
909
- @max_facet_hits = max_facet_hits
910
- end
911
-
912
- # Custom attribute writer method with validation
913
- # @param [Object] max_values_per_facet Value to be assigned
914
- def max_values_per_facet=(max_values_per_facet)
915
- if max_values_per_facet.nil?
916
- raise ArgumentError, "max_values_per_facet cannot be nil"
917
- end
918
-
919
- if max_values_per_facet > 1000
920
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
921
- end
922
-
923
- @max_values_per_facet = max_values_per_facet
924
- end
925
-
926
798
  # Checks equality by comparing each attribute.
927
799
  # @param [Object] Object to be compared
928
800
  def ==(other)
@@ -768,134 +768,6 @@ module Algolia
768
768
  end
769
769
  end
770
770
 
771
- # Custom attribute writer method with validation
772
- # @param [Object] page Value to be assigned
773
- def page=(page)
774
- if page.nil?
775
- raise ArgumentError, "page cannot be nil"
776
- end
777
-
778
- if page < 0
779
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
780
- end
781
-
782
- @page = page
783
- end
784
-
785
- # Custom attribute writer method with validation
786
- # @param [Object] length Value to be assigned
787
- def length=(length)
788
- if length.nil?
789
- raise ArgumentError, "length cannot be nil"
790
- end
791
-
792
- if length > 1000
793
- raise ArgumentError, "invalid value for \"length\", must be smaller than or equal to 1000."
794
- end
795
-
796
- if length < 0
797
- raise ArgumentError, "invalid value for \"length\", must be greater than or equal to 0."
798
- end
799
-
800
- @length = length
801
- end
802
-
803
- # Custom attribute writer method with validation
804
- # @param [Object] minimum_around_radius Value to be assigned
805
- def minimum_around_radius=(minimum_around_radius)
806
- if minimum_around_radius.nil?
807
- raise ArgumentError, "minimum_around_radius cannot be nil"
808
- end
809
-
810
- if minimum_around_radius < 1
811
- raise ArgumentError, "invalid value for \"minimum_around_radius\", must be greater than or equal to 1."
812
- end
813
-
814
- @minimum_around_radius = minimum_around_radius
815
- end
816
-
817
- # Custom attribute writer method with validation
818
- # @param [Object] personalization_impact Value to be assigned
819
- def personalization_impact=(personalization_impact)
820
- if personalization_impact.nil?
821
- raise ArgumentError, "personalization_impact cannot be nil"
822
- end
823
-
824
- if personalization_impact > 100
825
- raise ArgumentError, "invalid value for \"personalization_impact\", must be smaller than or equal to 100."
826
- end
827
-
828
- if personalization_impact < 0
829
- raise ArgumentError, "invalid value for \"personalization_impact\", must be greater than or equal to 0."
830
- end
831
-
832
- @personalization_impact = personalization_impact
833
- end
834
-
835
- # Custom attribute writer method with validation
836
- # @param [Object] hits_per_page Value to be assigned
837
- def hits_per_page=(hits_per_page)
838
- if hits_per_page.nil?
839
- raise ArgumentError, "hits_per_page cannot be nil"
840
- end
841
-
842
- if hits_per_page > 1000
843
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
844
- end
845
-
846
- if hits_per_page < 1
847
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
848
- end
849
-
850
- @hits_per_page = hits_per_page
851
- end
852
-
853
- # Custom attribute writer method with validation
854
- # @param [Object] min_proximity Value to be assigned
855
- def min_proximity=(min_proximity)
856
- if min_proximity.nil?
857
- raise ArgumentError, "min_proximity cannot be nil"
858
- end
859
-
860
- if min_proximity > 7
861
- raise ArgumentError, "invalid value for \"min_proximity\", must be smaller than or equal to 7."
862
- end
863
-
864
- if min_proximity < 1
865
- raise ArgumentError, "invalid value for \"min_proximity\", must be greater than or equal to 1."
866
- end
867
-
868
- @min_proximity = min_proximity
869
- end
870
-
871
- # Custom attribute writer method with validation
872
- # @param [Object] max_facet_hits Value to be assigned
873
- def max_facet_hits=(max_facet_hits)
874
- if max_facet_hits.nil?
875
- raise ArgumentError, "max_facet_hits cannot be nil"
876
- end
877
-
878
- if max_facet_hits > 100
879
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
880
- end
881
-
882
- @max_facet_hits = max_facet_hits
883
- end
884
-
885
- # Custom attribute writer method with validation
886
- # @param [Object] max_values_per_facet Value to be assigned
887
- def max_values_per_facet=(max_values_per_facet)
888
- if max_values_per_facet.nil?
889
- raise ArgumentError, "max_values_per_facet cannot be nil"
890
- end
891
-
892
- if max_values_per_facet > 1000
893
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
894
- end
895
-
896
- @max_values_per_facet = max_values_per_facet
897
- end
898
-
899
771
  # Checks equality by comparing each attribute.
900
772
  # @param [Object] Object to be compared
901
773
  def ==(other)