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
@@ -73,21 +73,6 @@ module Algolia
73
73
  end
74
74
  end
75
75
 
76
- # Custom attribute writer method with validation
77
- # @param [Object] context Value to be assigned
78
- def context=(context)
79
- if context.nil?
80
- raise ArgumentError, "context cannot be nil"
81
- end
82
-
83
- pattern = /[A-Za-z0-9_-]+/
84
- if context !~ pattern
85
- raise ArgumentError, "invalid value for \"context\", must conform to the pattern #{pattern}."
86
- end
87
-
88
- @context = context
89
- end
90
-
91
76
  # Checks equality by comparing each attribute.
92
77
  # @param [Object] Object to be compared
93
78
  def ==(other)
@@ -85,34 +85,6 @@ module Algolia
85
85
  end
86
86
  end
87
87
 
88
- # Custom attribute writer method with validation
89
- # @param [Object] hide Value to be assigned
90
- def hide=(hide)
91
- if hide.nil?
92
- raise ArgumentError, "hide cannot be nil"
93
- end
94
-
95
- if hide.length < 1
96
- raise ArgumentError, "invalid value for \"hide\", number of items must be greater than or equal to 1."
97
- end
98
-
99
- @hide = hide
100
- end
101
-
102
- # Custom attribute writer method with validation
103
- # @param [Object] promote Value to be assigned
104
- def promote=(promote)
105
- if promote.nil?
106
- raise ArgumentError, "promote cannot be nil"
107
- end
108
-
109
- if promote.length < 1
110
- raise ArgumentError, "invalid value for \"promote\", number of items must be greater than or equal to 1."
111
- end
112
-
113
- @promote = promote
114
- end
115
-
116
88
  # Checks equality by comparing each attribute.
117
89
  # @param [Object] Object to be compared
118
90
  def ==(other)
@@ -869,98 +869,6 @@ module Algolia
869
869
  end
870
870
  end
871
871
 
872
- # Custom attribute writer method with validation
873
- # @param [Object] minimum_around_radius Value to be assigned
874
- def minimum_around_radius=(minimum_around_radius)
875
- if minimum_around_radius.nil?
876
- raise ArgumentError, "minimum_around_radius cannot be nil"
877
- end
878
-
879
- if minimum_around_radius < 1
880
- raise ArgumentError, "invalid value for \"minimum_around_radius\", must be greater than or equal to 1."
881
- end
882
-
883
- @minimum_around_radius = minimum_around_radius
884
- end
885
-
886
- # Custom attribute writer method with validation
887
- # @param [Object] personalization_impact Value to be assigned
888
- def personalization_impact=(personalization_impact)
889
- if personalization_impact.nil?
890
- raise ArgumentError, "personalization_impact cannot be nil"
891
- end
892
-
893
- if personalization_impact > 100
894
- raise ArgumentError, "invalid value for \"personalization_impact\", must be smaller than or equal to 100."
895
- end
896
-
897
- if personalization_impact < 0
898
- raise ArgumentError, "invalid value for \"personalization_impact\", must be greater than or equal to 0."
899
- end
900
-
901
- @personalization_impact = personalization_impact
902
- end
903
-
904
- # Custom attribute writer method with validation
905
- # @param [Object] pagination_limited_to Value to be assigned
906
- def pagination_limited_to=(pagination_limited_to)
907
- if pagination_limited_to.nil?
908
- raise ArgumentError, "pagination_limited_to cannot be nil"
909
- end
910
-
911
- if pagination_limited_to > 20000
912
- raise ArgumentError, "invalid value for \"pagination_limited_to\", must be smaller than or equal to 20000."
913
- end
914
-
915
- @pagination_limited_to = pagination_limited_to
916
- end
917
-
918
- # Custom attribute writer method with validation
919
- # @param [Object] min_proximity Value to be assigned
920
- def min_proximity=(min_proximity)
921
- if min_proximity.nil?
922
- raise ArgumentError, "min_proximity cannot be nil"
923
- end
924
-
925
- if min_proximity > 7
926
- raise ArgumentError, "invalid value for \"min_proximity\", must be smaller than or equal to 7."
927
- end
928
-
929
- if min_proximity < 1
930
- raise ArgumentError, "invalid value for \"min_proximity\", must be greater than or equal to 1."
931
- end
932
-
933
- @min_proximity = min_proximity
934
- end
935
-
936
- # Custom attribute writer method with validation
937
- # @param [Object] max_facet_hits Value to be assigned
938
- def max_facet_hits=(max_facet_hits)
939
- if max_facet_hits.nil?
940
- raise ArgumentError, "max_facet_hits cannot be nil"
941
- end
942
-
943
- if max_facet_hits > 100
944
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
945
- end
946
-
947
- @max_facet_hits = max_facet_hits
948
- end
949
-
950
- # Custom attribute writer method with validation
951
- # @param [Object] max_values_per_facet Value to be assigned
952
- def max_values_per_facet=(max_values_per_facet)
953
- if max_values_per_facet.nil?
954
- raise ArgumentError, "max_values_per_facet cannot be nil"
955
- end
956
-
957
- if max_values_per_facet > 1000
958
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
959
- end
960
-
961
- @max_values_per_facet = max_values_per_facet
962
- end
963
-
964
872
  # Checks equality by comparing each attribute.
965
873
  # @param [Object] Object to be compared
966
874
  def ==(other)
@@ -130,42 +130,6 @@ module Algolia
130
130
  end
131
131
  end
132
132
 
133
- # Custom attribute writer method with validation
134
- # @param [Object] threshold Value to be assigned
135
- def threshold=(threshold)
136
- if threshold.nil?
137
- raise ArgumentError, "threshold cannot be nil"
138
- end
139
-
140
- if threshold > 100
141
- raise ArgumentError, "invalid value for \"threshold\", must be smaller than or equal to 100."
142
- end
143
-
144
- if threshold < 0
145
- raise ArgumentError, "invalid value for \"threshold\", must be greater than or equal to 0."
146
- end
147
-
148
- @threshold = threshold
149
- end
150
-
151
- # Custom attribute writer method with validation
152
- # @param [Object] max_recommendations Value to be assigned
153
- def max_recommendations=(max_recommendations)
154
- if max_recommendations.nil?
155
- raise ArgumentError, "max_recommendations cannot be nil"
156
- end
157
-
158
- if max_recommendations > 1000
159
- raise ArgumentError, "invalid value for \"max_recommendations\", must be smaller than or equal to 1000."
160
- end
161
-
162
- if max_recommendations < 1
163
- raise ArgumentError, "invalid value for \"max_recommendations\", must be greater than or equal to 1."
164
- end
165
-
166
- @max_recommendations = max_recommendations
167
- end
168
-
169
133
  # Checks equality by comparing each attribute.
170
134
  # @param [Object] Object to be compared
171
135
  def ==(other)
@@ -73,20 +73,6 @@ module Algolia
73
73
  end
74
74
  end
75
75
 
76
- # Custom attribute writer method with validation
77
- # @param [Object] position Value to be assigned
78
- def position=(position)
79
- if position.nil?
80
- raise ArgumentError, "position cannot be nil"
81
- end
82
-
83
- if position < 0
84
- raise ArgumentError, "invalid value for \"position\", must be greater than or equal to 0."
85
- end
86
-
87
- @position = position
88
- end
89
-
90
76
  # Checks equality by comparing each attribute.
91
77
  # @param [Object] Object to be compared
92
78
  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)
@@ -108,24 +108,6 @@ module Algolia
108
108
  self.additional_properties.merge!(attributes.reject { |k, _| self.class.attribute_map.key?(k.to_sym) })
109
109
  end
110
110
 
111
- # Custom attribute writer method with validation
112
- # @param [Object] _score Value to be assigned
113
- def _score=(_score)
114
- if _score.nil?
115
- raise ArgumentError, "_score cannot be nil"
116
- end
117
-
118
- if _score > 100
119
- raise ArgumentError, "invalid value for \"_score\", must be smaller than or equal to 100."
120
- end
121
-
122
- if _score < 0
123
- raise ArgumentError, "invalid value for \"_score\", must be greater than or equal to 0."
124
- end
125
-
126
- @_score = _score
127
- end
128
-
129
111
  # Checks equality by comparing each attribute.
130
112
  # @param [Object] Object to be compared
131
113
  def ==(other)
@@ -872,98 +872,6 @@ module Algolia
872
872
  end
873
873
  end
874
874
 
875
- # Custom attribute writer method with validation
876
- # @param [Object] minimum_around_radius Value to be assigned
877
- def minimum_around_radius=(minimum_around_radius)
878
- if minimum_around_radius.nil?
879
- raise ArgumentError, "minimum_around_radius cannot be nil"
880
- end
881
-
882
- if minimum_around_radius < 1
883
- raise ArgumentError, "invalid value for \"minimum_around_radius\", must be greater than or equal to 1."
884
- end
885
-
886
- @minimum_around_radius = minimum_around_radius
887
- end
888
-
889
- # Custom attribute writer method with validation
890
- # @param [Object] personalization_impact Value to be assigned
891
- def personalization_impact=(personalization_impact)
892
- if personalization_impact.nil?
893
- raise ArgumentError, "personalization_impact cannot be nil"
894
- end
895
-
896
- if personalization_impact > 100
897
- raise ArgumentError, "invalid value for \"personalization_impact\", must be smaller than or equal to 100."
898
- end
899
-
900
- if personalization_impact < 0
901
- raise ArgumentError, "invalid value for \"personalization_impact\", must be greater than or equal to 0."
902
- end
903
-
904
- @personalization_impact = personalization_impact
905
- end
906
-
907
- # Custom attribute writer method with validation
908
- # @param [Object] pagination_limited_to Value to be assigned
909
- def pagination_limited_to=(pagination_limited_to)
910
- if pagination_limited_to.nil?
911
- raise ArgumentError, "pagination_limited_to cannot be nil"
912
- end
913
-
914
- if pagination_limited_to > 20000
915
- raise ArgumentError, "invalid value for \"pagination_limited_to\", must be smaller than or equal to 20000."
916
- end
917
-
918
- @pagination_limited_to = pagination_limited_to
919
- end
920
-
921
- # Custom attribute writer method with validation
922
- # @param [Object] min_proximity Value to be assigned
923
- def min_proximity=(min_proximity)
924
- if min_proximity.nil?
925
- raise ArgumentError, "min_proximity cannot be nil"
926
- end
927
-
928
- if min_proximity > 7
929
- raise ArgumentError, "invalid value for \"min_proximity\", must be smaller than or equal to 7."
930
- end
931
-
932
- if min_proximity < 1
933
- raise ArgumentError, "invalid value for \"min_proximity\", must be greater than or equal to 1."
934
- end
935
-
936
- @min_proximity = min_proximity
937
- end
938
-
939
- # Custom attribute writer method with validation
940
- # @param [Object] max_facet_hits Value to be assigned
941
- def max_facet_hits=(max_facet_hits)
942
- if max_facet_hits.nil?
943
- raise ArgumentError, "max_facet_hits cannot be nil"
944
- end
945
-
946
- if max_facet_hits > 100
947
- raise ArgumentError, "invalid value for \"max_facet_hits\", must be smaller than or equal to 100."
948
- end
949
-
950
- @max_facet_hits = max_facet_hits
951
- end
952
-
953
- # Custom attribute writer method with validation
954
- # @param [Object] max_values_per_facet Value to be assigned
955
- def max_values_per_facet=(max_values_per_facet)
956
- if max_values_per_facet.nil?
957
- raise ArgumentError, "max_values_per_facet cannot be nil"
958
- end
959
-
960
- if max_values_per_facet > 1000
961
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
962
- end
963
-
964
- @max_values_per_facet = max_values_per_facet
965
- end
966
-
967
875
  # Checks equality by comparing each attribute.
968
876
  # @param [Object] Object to be compared
969
877
  def ==(other)
@@ -339,67 +339,6 @@ module Algolia
339
339
  end
340
340
  end
341
341
 
342
- # Custom attribute writer method with validation
343
- # @param [Object] ab_test_variant_id Value to be assigned
344
- def ab_test_variant_id=(ab_test_variant_id)
345
- if ab_test_variant_id.nil?
346
- raise ArgumentError, "ab_test_variant_id cannot be nil"
347
- end
348
-
349
- if ab_test_variant_id < 1
350
- raise ArgumentError, "invalid value for \"ab_test_variant_id\", must be greater than or equal to 1."
351
- end
352
-
353
- @ab_test_variant_id = ab_test_variant_id
354
- end
355
-
356
- # Custom attribute writer method with validation
357
- # @param [Object] around_lat_lng Value to be assigned
358
- def around_lat_lng=(around_lat_lng)
359
- if around_lat_lng.nil?
360
- raise ArgumentError, "around_lat_lng cannot be nil"
361
- end
362
-
363
- pattern = /^(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)$/
364
- if around_lat_lng !~ pattern
365
- raise ArgumentError, "invalid value for \"around_lat_lng\", must conform to the pattern #{pattern}."
366
- end
367
-
368
- @around_lat_lng = around_lat_lng
369
- end
370
-
371
- # Custom attribute writer method with validation
372
- # @param [Object] page Value to be assigned
373
- def page=(page)
374
- if page.nil?
375
- raise ArgumentError, "page cannot be nil"
376
- end
377
-
378
- if page < 0
379
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
380
- end
381
-
382
- @page = page
383
- end
384
-
385
- # Custom attribute writer method with validation
386
- # @param [Object] hits_per_page Value to be assigned
387
- def hits_per_page=(hits_per_page)
388
- if hits_per_page.nil?
389
- raise ArgumentError, "hits_per_page cannot be nil"
390
- end
391
-
392
- if hits_per_page > 1000
393
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
394
- end
395
-
396
- if hits_per_page < 1
397
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
398
- end
399
-
400
- @hits_per_page = hits_per_page
401
- end
402
-
403
342
  # Checks equality by comparing each attribute.
404
343
  # @param [Object] Object to be compared
405
344
  def ==(other)
@@ -119,42 +119,6 @@ module Algolia
119
119
  end
120
120
  end
121
121
 
122
- # Custom attribute writer method with validation
123
- # @param [Object] threshold Value to be assigned
124
- def threshold=(threshold)
125
- if threshold.nil?
126
- raise ArgumentError, "threshold cannot be nil"
127
- end
128
-
129
- if threshold > 100
130
- raise ArgumentError, "invalid value for \"threshold\", must be smaller than or equal to 100."
131
- end
132
-
133
- if threshold < 0
134
- raise ArgumentError, "invalid value for \"threshold\", must be greater than or equal to 0."
135
- end
136
-
137
- @threshold = threshold
138
- end
139
-
140
- # Custom attribute writer method with validation
141
- # @param [Object] max_recommendations Value to be assigned
142
- def max_recommendations=(max_recommendations)
143
- if max_recommendations.nil?
144
- raise ArgumentError, "max_recommendations cannot be nil"
145
- end
146
-
147
- if max_recommendations > 1000
148
- raise ArgumentError, "invalid value for \"max_recommendations\", must be smaller than or equal to 1000."
149
- end
150
-
151
- if max_recommendations < 1
152
- raise ArgumentError, "invalid value for \"max_recommendations\", must be greater than or equal to 1."
153
- end
154
-
155
- @max_recommendations = max_recommendations
156
- end
157
-
158
122
  # Checks equality by comparing each attribute.
159
123
  # @param [Object] Object to be compared
160
124
  def ==(other)
@@ -130,42 +130,6 @@ module Algolia
130
130
  end
131
131
  end
132
132
 
133
- # Custom attribute writer method with validation
134
- # @param [Object] threshold Value to be assigned
135
- def threshold=(threshold)
136
- if threshold.nil?
137
- raise ArgumentError, "threshold cannot be nil"
138
- end
139
-
140
- if threshold > 100
141
- raise ArgumentError, "invalid value for \"threshold\", must be smaller than or equal to 100."
142
- end
143
-
144
- if threshold < 0
145
- raise ArgumentError, "invalid value for \"threshold\", must be greater than or equal to 0."
146
- end
147
-
148
- @threshold = threshold
149
- end
150
-
151
- # Custom attribute writer method with validation
152
- # @param [Object] max_recommendations Value to be assigned
153
- def max_recommendations=(max_recommendations)
154
- if max_recommendations.nil?
155
- raise ArgumentError, "max_recommendations cannot be nil"
156
- end
157
-
158
- if max_recommendations > 1000
159
- raise ArgumentError, "invalid value for \"max_recommendations\", must be smaller than or equal to 1000."
160
- end
161
-
162
- if max_recommendations < 1
163
- raise ArgumentError, "invalid value for \"max_recommendations\", must be greater than or equal to 1."
164
- end
165
-
166
- @max_recommendations = max_recommendations
167
- end
168
-
169
133
  # Checks equality by comparing each attribute.
170
134
  # @param [Object] Object to be compared
171
135
  def ==(other)
@@ -129,56 +129,6 @@ module Algolia
129
129
  end
130
130
  end
131
131
 
132
- # Custom attribute writer method with validation
133
- # @param [Object] page Value to be assigned
134
- def page=(page)
135
- if page.nil?
136
- raise ArgumentError, "page cannot be nil"
137
- end
138
-
139
- if page < 0
140
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 0."
141
- end
142
-
143
- @page = page
144
- end
145
-
146
- # Custom attribute writer method with validation
147
- # @param [Object] hits_per_page Value to be assigned
148
- def hits_per_page=(hits_per_page)
149
- if hits_per_page.nil?
150
- raise ArgumentError, "hits_per_page cannot be nil"
151
- end
152
-
153
- if hits_per_page > 1000
154
- raise ArgumentError, "invalid value for \"hits_per_page\", must be smaller than or equal to 1000."
155
- end
156
-
157
- if hits_per_page < 1
158
- raise ArgumentError, "invalid value for \"hits_per_page\", must be greater than or equal to 1."
159
- end
160
-
161
- @hits_per_page = hits_per_page
162
- end
163
-
164
- # Custom attribute writer method with validation
165
- # @param [Object] max_values_per_facet Value to be assigned
166
- def max_values_per_facet=(max_values_per_facet)
167
- if max_values_per_facet.nil?
168
- raise ArgumentError, "max_values_per_facet cannot be nil"
169
- end
170
-
171
- if max_values_per_facet > 1000
172
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be smaller than or equal to 1000."
173
- end
174
-
175
- if max_values_per_facet < 1
176
- raise ArgumentError, "invalid value for \"max_values_per_facet\", must be greater than or equal to 1."
177
- end
178
-
179
- @max_values_per_facet = max_values_per_facet
180
- end
181
-
182
132
  # Checks equality by comparing each attribute.
183
133
  # @param [Object] Object to be compared
184
134
  def ==(other)