algolia 3.5.0 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/algolia/api/abtesting_client.rb +17 -16
  5. data/lib/algolia/api/analytics_client.rb +173 -333
  6. data/lib/algolia/api/ingestion_client.rb +40 -200
  7. data/lib/algolia/api/insights_client.rb +18 -32
  8. data/lib/algolia/api/monitoring_client.rb +33 -25
  9. data/lib/algolia/api/personalization_client.rb +16 -8
  10. data/lib/algolia/api/query_suggestions_client.rb +17 -9
  11. data/lib/algolia/api/recommend_client.rb +17 -9
  12. data/lib/algolia/api/search_client.rb +63 -110
  13. data/lib/algolia/configuration.rb +16 -1
  14. data/lib/algolia/models/abtesting/ab_test_configuration.rb +0 -2
  15. data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
  16. data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
  17. data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
  18. data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
  19. data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
  20. data/lib/algolia/models/abtesting/variant.rb +0 -20
  21. data/lib/algolia/models/analytics/click_position.rb +0 -32
  22. data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
  23. data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
  24. data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
  25. data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
  26. data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
  27. data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
  28. data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
  29. data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
  30. data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
  31. data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
  32. data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
  33. data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
  34. data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
  35. data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
  36. data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
  37. data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
  38. data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
  39. data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
  40. data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
  41. data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
  42. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
  43. data/lib/algolia/models/ingestion/event.rb +1 -25
  44. data/lib/algolia/models/ingestion/pagination.rb +0 -60
  45. data/lib/algolia/models/ingestion/run.rb +0 -18
  46. data/lib/algolia/models/ingestion/source_csv.rb +0 -21
  47. data/lib/algolia/models/ingestion/task.rb +0 -18
  48. data/lib/algolia/models/ingestion/task_create.rb +0 -18
  49. data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
  50. data/lib/algolia/models/ingestion/task_update.rb +0 -18
  51. data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
  52. data/lib/algolia/models/ingestion/task_v1.rb +0 -18
  53. data/lib/algolia/models/ingestion/transformation.rb +1 -1
  54. data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
  55. data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
  56. data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
  57. data/lib/algolia/models/insights/clicked_filters.rb +0 -105
  58. data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
  59. data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
  60. data/lib/algolia/models/insights/converted_filters.rb +0 -105
  61. data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
  62. data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
  63. data/lib/algolia/models/insights/insights_events.rb +0 -18
  64. data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
  65. data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
  66. data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
  67. data/lib/algolia/models/insights/viewed_filters.rb +0 -105
  68. data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
  69. data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
  70. data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
  71. data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
  72. data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
  73. data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
  74. data/lib/algolia/models/recommend/banner_image.rb +4 -2
  75. data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
  76. data/lib/algolia/models/recommend/condition.rb +0 -15
  77. data/lib/algolia/models/recommend/consequence.rb +0 -28
  78. data/lib/algolia/models/recommend/fallback_params.rb +3 -95
  79. data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
  80. data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
  81. data/lib/algolia/models/recommend/ranking_info.rb +0 -112
  82. data/lib/algolia/models/recommend/recommend_hit.rb +0 -20
  83. data/lib/algolia/models/recommend/recommend_search_params.rb +3 -95
  84. data/lib/algolia/models/recommend/recommendations_results.rb +13 -61
  85. data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
  86. data/lib/algolia/models/recommend/related_query.rb +0 -36
  87. data/lib/algolia/models/recommend/search_recommend_rules_params.rb +2 -52
  88. data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
  89. data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -20
  90. data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
  91. data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
  92. data/lib/algolia/models/recommend/widgets.rb +5 -2
  93. data/lib/algolia/models/search/banner_image.rb +4 -2
  94. data/lib/algolia/models/search/browse_params_object.rb +1 -129
  95. data/lib/algolia/models/search/browse_response.rb +13 -61
  96. data/lib/algolia/models/search/condition.rb +0 -15
  97. data/lib/algolia/models/search/consequence.rb +0 -28
  98. data/lib/algolia/models/search/consequence_params.rb +1 -129
  99. data/lib/algolia/models/search/get_api_key_response.rb +2 -0
  100. data/lib/algolia/models/search/get_objects_response.rb +0 -2
  101. data/lib/algolia/models/search/index_settings.rb +3 -81
  102. data/lib/algolia/models/search/log.rb +0 -34
  103. data/lib/algolia/models/search/promote_object_ids.rb +0 -14
  104. data/lib/algolia/models/search/ranking_info.rb +0 -112
  105. data/lib/algolia/models/search/rule.rb +0 -18
  106. data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
  107. data/lib/algolia/models/search/search_dictionary_entries_response.rb +1 -15
  108. data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
  109. data/lib/algolia/models/search/search_for_facets.rb +1 -129
  110. data/lib/algolia/models/search/search_for_hits.rb +1 -129
  111. data/lib/algolia/models/search/search_params_object.rb +1 -129
  112. data/lib/algolia/models/search/search_response.rb +13 -61
  113. data/lib/algolia/models/search/search_rules_params.rb +2 -34
  114. data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
  115. data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
  116. data/lib/algolia/models/search/search_user_ids_response.rb +1 -33
  117. data/lib/algolia/models/search/settings_response.rb +3 -81
  118. data/lib/algolia/models/search/user_hit.rb +0 -15
  119. data/lib/algolia/models/search/user_id.rb +0 -15
  120. data/lib/algolia/models/search/widgets.rb +5 -2
  121. data/lib/algolia/user_agent.rb +8 -2
  122. data/lib/algolia/version.rb +1 -1
  123. metadata +2 -11
  124. data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +0 -230
  125. data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +0 -212
  126. data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +0 -252
  127. data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +0 -263
  128. data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
  129. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
  130. data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
  131. data/lib/algolia/models/recommend/banners.rb +0 -209
  132. data/lib/algolia/models/search/banners.rb +0 -209
@@ -100,38 +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?
107
- raise ArgumentError, "rate cannot be nil"
108
- end
109
-
110
- if rate > 1
111
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
112
- end
113
-
114
- if rate < 0
115
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
116
- end
117
-
118
- @rate = rate
119
- end
120
-
121
- # Custom attribute writer method with validation
122
- # @param [Object] no_click_count Value to be assigned
123
- def no_click_count=(no_click_count)
124
- if no_click_count.nil?
125
- raise ArgumentError, "no_click_count cannot be nil"
126
- end
127
-
128
- if no_click_count < 1
129
- raise ArgumentError, "invalid value for \"no_click_count\", must be greater than or equal to 1."
130
- end
131
-
132
- @no_click_count = no_click_count
133
- end
134
-
135
103
  # Checks equality by comparing each attribute.
136
104
  # @param [Object] Object to be compared
137
105
  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] rate Value to be assigned
105
- def rate=(rate)
106
- if rate.nil?
107
- raise ArgumentError, "rate cannot be nil"
108
- end
109
-
110
- if rate > 1
111
- raise ArgumentError, "invalid value for \"rate\", must be smaller than or equal to 1."
112
- end
113
-
114
- if rate < 0
115
- raise ArgumentError, "invalid value for \"rate\", must be greater than or equal to 0."
116
- end
117
-
118
- @rate = rate
119
- end
120
-
121
103
  # Checks equality by comparing each attribute.
122
104
  # @param [Object] Object to be compared
123
105
  def ==(other)
@@ -102,20 +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
105
  # Checks equality by comparing each attribute.
120
106
  # @param [Object] Object to be compared
121
107
  def ==(other)
@@ -134,62 +134,6 @@ module Algolia
134
134
  end
135
135
  end
136
136
 
137
- # Custom attribute writer method with validation
138
- # @param [Object] click_through_rate Value to be assigned
139
- def click_through_rate=(click_through_rate)
140
- if !click_through_rate.nil? && click_through_rate > 1
141
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
142
- end
143
-
144
- if !click_through_rate.nil? && click_through_rate < 0
145
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
146
- end
147
-
148
- @click_through_rate = click_through_rate
149
- end
150
-
151
- # Custom attribute writer method with validation
152
- # @param [Object] conversion_rate Value to be assigned
153
- def conversion_rate=(conversion_rate)
154
- if !conversion_rate.nil? && conversion_rate > 1
155
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
156
- end
157
-
158
- if !conversion_rate.nil? && conversion_rate < 0
159
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
160
- end
161
-
162
- @conversion_rate = conversion_rate
163
- end
164
-
165
- # Custom attribute writer method with validation
166
- # @param [Object] click_count Value to be assigned
167
- def click_count=(click_count)
168
- if click_count.nil?
169
- raise ArgumentError, "click_count cannot be nil"
170
- end
171
-
172
- if click_count < 0
173
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
174
- end
175
-
176
- @click_count = click_count
177
- end
178
-
179
- # Custom attribute writer method with validation
180
- # @param [Object] conversion_count Value to be assigned
181
- def conversion_count=(conversion_count)
182
- if conversion_count.nil?
183
- raise ArgumentError, "conversion_count cannot be nil"
184
- end
185
-
186
- if conversion_count < 0
187
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
188
- end
189
-
190
- @conversion_count = conversion_count
191
- end
192
-
193
137
  # Checks equality by comparing each attribute.
194
138
  # @param [Object] Object to be compared
195
139
  def ==(other)
@@ -193,104 +193,6 @@ module Algolia
193
193
  end
194
194
  end
195
195
 
196
- # Custom attribute writer method with validation
197
- # @param [Object] click_through_rate Value to be assigned
198
- def click_through_rate=(click_through_rate)
199
- if !click_through_rate.nil? && click_through_rate > 1
200
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
201
- end
202
-
203
- if !click_through_rate.nil? && click_through_rate < 0
204
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
205
- end
206
-
207
- @click_through_rate = click_through_rate
208
- end
209
-
210
- # Custom attribute writer method with validation
211
- # @param [Object] conversion_rate Value to be assigned
212
- def conversion_rate=(conversion_rate)
213
- if !conversion_rate.nil? && conversion_rate > 1
214
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
215
- end
216
-
217
- if !conversion_rate.nil? && conversion_rate < 0
218
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
219
- end
220
-
221
- @conversion_rate = conversion_rate
222
- end
223
-
224
- # Custom attribute writer method with validation
225
- # @param [Object] click_count Value to be assigned
226
- def click_count=(click_count)
227
- if click_count.nil?
228
- raise ArgumentError, "click_count cannot be nil"
229
- end
230
-
231
- if click_count < 0
232
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
233
- end
234
-
235
- @click_count = click_count
236
- end
237
-
238
- # Custom attribute writer method with validation
239
- # @param [Object] conversion_count Value to be assigned
240
- def conversion_count=(conversion_count)
241
- if conversion_count.nil?
242
- raise ArgumentError, "conversion_count cannot be nil"
243
- end
244
-
245
- if conversion_count < 0
246
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
247
- end
248
-
249
- @conversion_count = conversion_count
250
- end
251
-
252
- # Custom attribute writer method with validation
253
- # @param [Object] add_to_cart_rate Value to be assigned
254
- def add_to_cart_rate=(add_to_cart_rate)
255
- if !add_to_cart_rate.nil? && add_to_cart_rate > 1
256
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
257
- end
258
-
259
- if !add_to_cart_rate.nil? && add_to_cart_rate < 0
260
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
261
- end
262
-
263
- @add_to_cart_rate = add_to_cart_rate
264
- end
265
-
266
- # Custom attribute writer method with validation
267
- # @param [Object] add_to_cart_count Value to be assigned
268
- def add_to_cart_count=(add_to_cart_count)
269
- if add_to_cart_count.nil?
270
- raise ArgumentError, "add_to_cart_count cannot be nil"
271
- end
272
-
273
- if add_to_cart_count < 0
274
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
275
- end
276
-
277
- @add_to_cart_count = add_to_cart_count
278
- end
279
-
280
- # Custom attribute writer method with validation
281
- # @param [Object] purchase_rate Value to be assigned
282
- def purchase_rate=(purchase_rate)
283
- if !purchase_rate.nil? && purchase_rate > 1
284
- raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
285
- end
286
-
287
- if !purchase_rate.nil? && purchase_rate < 0
288
- raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
289
- end
290
-
291
- @purchase_rate = purchase_rate
292
- end
293
-
294
196
  # Checks equality by comparing each attribute.
295
197
  # @param [Object] Object to be compared
296
198
  def ==(other)
@@ -170,96 +170,6 @@ module Algolia
170
170
  end
171
171
  end
172
172
 
173
- # Custom attribute writer method with validation
174
- # @param [Object] click_through_rate Value to be assigned
175
- def click_through_rate=(click_through_rate)
176
- if !click_through_rate.nil? && click_through_rate > 1
177
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
178
- end
179
-
180
- if !click_through_rate.nil? && click_through_rate < 0
181
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
182
- end
183
-
184
- @click_through_rate = click_through_rate
185
- end
186
-
187
- # Custom attribute writer method with validation
188
- # @param [Object] average_click_position Value to be assigned
189
- def average_click_position=(average_click_position)
190
- if !average_click_position.nil? && average_click_position < 1
191
- raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
192
- end
193
-
194
- @average_click_position = average_click_position
195
- end
196
-
197
- # Custom attribute writer method with validation
198
- # @param [Object] click_positions Value to be assigned
199
- def click_positions=(click_positions)
200
- if click_positions.nil?
201
- raise ArgumentError, "click_positions cannot be nil"
202
- end
203
-
204
- if click_positions.length > 12
205
- raise(
206
- ArgumentError,
207
- "invalid value for \"click_positions\", number of items must be less than or equal to 12."
208
- )
209
- end
210
-
211
- if click_positions.length < 12
212
- raise(
213
- ArgumentError,
214
- "invalid value for \"click_positions\", number of items must be greater than or equal to 12."
215
- )
216
- end
217
-
218
- @click_positions = click_positions
219
- end
220
-
221
- # Custom attribute writer method with validation
222
- # @param [Object] conversion_rate Value to be assigned
223
- def conversion_rate=(conversion_rate)
224
- if !conversion_rate.nil? && conversion_rate > 1
225
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
226
- end
227
-
228
- if !conversion_rate.nil? && conversion_rate < 0
229
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
230
- end
231
-
232
- @conversion_rate = conversion_rate
233
- end
234
-
235
- # Custom attribute writer method with validation
236
- # @param [Object] click_count Value to be assigned
237
- def click_count=(click_count)
238
- if click_count.nil?
239
- raise ArgumentError, "click_count cannot be nil"
240
- end
241
-
242
- if click_count < 0
243
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
244
- end
245
-
246
- @click_count = click_count
247
- end
248
-
249
- # Custom attribute writer method with validation
250
- # @param [Object] conversion_count Value to be assigned
251
- def conversion_count=(conversion_count)
252
- if conversion_count.nil?
253
- raise ArgumentError, "conversion_count cannot be nil"
254
- end
255
-
256
- if conversion_count < 0
257
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
258
- end
259
-
260
- @conversion_count = conversion_count
261
- end
262
-
263
173
  # Checks equality by comparing each attribute.
264
174
  # @param [Object] Object to be compared
265
175
  def ==(other)
@@ -229,138 +229,6 @@ module Algolia
229
229
  end
230
230
  end
231
231
 
232
- # Custom attribute writer method with validation
233
- # @param [Object] click_through_rate Value to be assigned
234
- def click_through_rate=(click_through_rate)
235
- if !click_through_rate.nil? && click_through_rate > 1
236
- raise ArgumentError, "invalid value for \"click_through_rate\", must be smaller than or equal to 1."
237
- end
238
-
239
- if !click_through_rate.nil? && click_through_rate < 0
240
- raise ArgumentError, "invalid value for \"click_through_rate\", must be greater than or equal to 0."
241
- end
242
-
243
- @click_through_rate = click_through_rate
244
- end
245
-
246
- # Custom attribute writer method with validation
247
- # @param [Object] average_click_position Value to be assigned
248
- def average_click_position=(average_click_position)
249
- if !average_click_position.nil? && average_click_position < 1
250
- raise ArgumentError, "invalid value for \"average_click_position\", must be greater than or equal to 1."
251
- end
252
-
253
- @average_click_position = average_click_position
254
- end
255
-
256
- # Custom attribute writer method with validation
257
- # @param [Object] click_positions Value to be assigned
258
- def click_positions=(click_positions)
259
- if click_positions.nil?
260
- raise ArgumentError, "click_positions cannot be nil"
261
- end
262
-
263
- if click_positions.length > 12
264
- raise(
265
- ArgumentError,
266
- "invalid value for \"click_positions\", number of items must be less than or equal to 12."
267
- )
268
- end
269
-
270
- if click_positions.length < 12
271
- raise(
272
- ArgumentError,
273
- "invalid value for \"click_positions\", number of items must be greater than or equal to 12."
274
- )
275
- end
276
-
277
- @click_positions = click_positions
278
- end
279
-
280
- # Custom attribute writer method with validation
281
- # @param [Object] conversion_rate Value to be assigned
282
- def conversion_rate=(conversion_rate)
283
- if !conversion_rate.nil? && conversion_rate > 1
284
- raise ArgumentError, "invalid value for \"conversion_rate\", must be smaller than or equal to 1."
285
- end
286
-
287
- if !conversion_rate.nil? && conversion_rate < 0
288
- raise ArgumentError, "invalid value for \"conversion_rate\", must be greater than or equal to 0."
289
- end
290
-
291
- @conversion_rate = conversion_rate
292
- end
293
-
294
- # Custom attribute writer method with validation
295
- # @param [Object] click_count Value to be assigned
296
- def click_count=(click_count)
297
- if click_count.nil?
298
- raise ArgumentError, "click_count cannot be nil"
299
- end
300
-
301
- if click_count < 0
302
- raise ArgumentError, "invalid value for \"click_count\", must be greater than or equal to 0."
303
- end
304
-
305
- @click_count = click_count
306
- end
307
-
308
- # Custom attribute writer method with validation
309
- # @param [Object] conversion_count Value to be assigned
310
- def conversion_count=(conversion_count)
311
- if conversion_count.nil?
312
- raise ArgumentError, "conversion_count cannot be nil"
313
- end
314
-
315
- if conversion_count < 0
316
- raise ArgumentError, "invalid value for \"conversion_count\", must be greater than or equal to 0."
317
- end
318
-
319
- @conversion_count = conversion_count
320
- end
321
-
322
- # Custom attribute writer method with validation
323
- # @param [Object] add_to_cart_rate Value to be assigned
324
- def add_to_cart_rate=(add_to_cart_rate)
325
- if !add_to_cart_rate.nil? && add_to_cart_rate > 1
326
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be smaller than or equal to 1."
327
- end
328
-
329
- if !add_to_cart_rate.nil? && add_to_cart_rate < 0
330
- raise ArgumentError, "invalid value for \"add_to_cart_rate\", must be greater than or equal to 0."
331
- end
332
-
333
- @add_to_cart_rate = add_to_cart_rate
334
- end
335
-
336
- # Custom attribute writer method with validation
337
- # @param [Object] add_to_cart_count Value to be assigned
338
- def add_to_cart_count=(add_to_cart_count)
339
- if add_to_cart_count.nil?
340
- raise ArgumentError, "add_to_cart_count cannot be nil"
341
- end
342
-
343
- if add_to_cart_count < 0
344
- raise ArgumentError, "invalid value for \"add_to_cart_count\", must be greater than or equal to 0."
345
- end
346
-
347
- @add_to_cart_count = add_to_cart_count
348
- end
349
-
350
- # Custom attribute writer method with validation
351
- # @param [Object] purchase_rate Value to be assigned
352
- def purchase_rate=(purchase_rate)
353
- if !purchase_rate.nil? && purchase_rate > 1
354
- raise ArgumentError, "invalid value for \"purchase_rate\", must be smaller than or equal to 1."
355
- end
356
-
357
- if !purchase_rate.nil? && purchase_rate < 0
358
- raise ArgumentError, "invalid value for \"purchase_rate\", must be greater than or equal to 0."
359
- end
360
-
361
- @purchase_rate = purchase_rate
362
- end
363
-
364
232
  # Checks equality by comparing each attribute.
365
233
  # @param [Object] Object to be compared
366
234
  def ==(other)
@@ -13,9 +13,6 @@ module Algolia
13
13
  # Universally unique identifier (UUID) of a task run.
14
14
  attr_accessor :run_id
15
15
 
16
- # The parent event, the cause of this event.
17
- attr_accessor :parent_id
18
-
19
16
  attr_accessor :status
20
17
 
21
18
  attr_accessor :type
@@ -33,7 +30,6 @@ module Algolia
33
30
  {
34
31
  :event_id => :eventID,
35
32
  :run_id => :runID,
36
- :parent_id => :parentID,
37
33
  :status => :status,
38
34
  :type => :type,
39
35
  :batch_size => :batchSize,
@@ -52,7 +48,6 @@ module Algolia
52
48
  {
53
49
  :event_id => :"String",
54
50
  :run_id => :"String",
55
- :parent_id => :"String",
56
51
  :status => :"EventStatus",
57
52
  :type => :"EventType",
58
53
  :batch_size => :"Integer",
@@ -100,10 +95,6 @@ module Algolia
100
95
  self.run_id = nil
101
96
  end
102
97
 
103
- if attributes.key?(:parent_id)
104
- self.parent_id = attributes[:parent_id]
105
- end
106
-
107
98
  if attributes.key?(:status)
108
99
  self.status = attributes[:status]
109
100
  else
@@ -135,20 +126,6 @@ module Algolia
135
126
  end
136
127
  end
137
128
 
138
- # Custom attribute writer method with validation
139
- # @param [Object] batch_size Value to be assigned
140
- def batch_size=(batch_size)
141
- if batch_size.nil?
142
- raise ArgumentError, "batch_size cannot be nil"
143
- end
144
-
145
- if batch_size < 0
146
- raise ArgumentError, "invalid value for \"batch_size\", must be greater than or equal to 0."
147
- end
148
-
149
- @batch_size = batch_size
150
- end
151
-
152
129
  # Checks equality by comparing each attribute.
153
130
  # @param [Object] Object to be compared
154
131
  def ==(other)
@@ -156,7 +133,6 @@ module Algolia
156
133
  self.class == other.class &&
157
134
  event_id == other.event_id &&
158
135
  run_id == other.run_id &&
159
- parent_id == other.parent_id &&
160
136
  status == other.status &&
161
137
  type == other.type &&
162
138
  batch_size == other.batch_size &&
@@ -173,7 +149,7 @@ module Algolia
173
149
  # Calculates hash code according to all attributes.
174
150
  # @return [Integer] Hash code
175
151
  def hash
176
- [event_id, run_id, parent_id, status, type, batch_size, data, published_at].hash
152
+ [event_id, run_id, status, type, batch_size, data, published_at].hash
177
153
  end
178
154
 
179
155
  # Builds the object from hash
@@ -99,66 +99,6 @@ module Algolia
99
99
  end
100
100
  end
101
101
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] nb_pages Value to be assigned
104
- def nb_pages=(nb_pages)
105
- if nb_pages.nil?
106
- raise ArgumentError, "nb_pages cannot be nil"
107
- end
108
-
109
- if nb_pages < 1
110
- raise ArgumentError, "invalid value for \"nb_pages\", must be greater than or equal to 1."
111
- end
112
-
113
- @nb_pages = nb_pages
114
- end
115
-
116
- # Custom attribute writer method with validation
117
- # @param [Object] page Value to be assigned
118
- def page=(page)
119
- if page.nil?
120
- raise ArgumentError, "page cannot be nil"
121
- end
122
-
123
- if page < 1
124
- raise ArgumentError, "invalid value for \"page\", must be greater than or equal to 1."
125
- end
126
-
127
- @page = page
128
- end
129
-
130
- # Custom attribute writer method with validation
131
- # @param [Object] nb_items Value to be assigned
132
- def nb_items=(nb_items)
133
- if nb_items.nil?
134
- raise ArgumentError, "nb_items cannot be nil"
135
- end
136
-
137
- if nb_items < 0
138
- raise ArgumentError, "invalid value for \"nb_items\", must be greater than or equal to 0."
139
- end
140
-
141
- @nb_items = nb_items
142
- end
143
-
144
- # Custom attribute writer method with validation
145
- # @param [Object] items_per_page Value to be assigned
146
- def items_per_page=(items_per_page)
147
- if items_per_page.nil?
148
- raise ArgumentError, "items_per_page cannot be nil"
149
- end
150
-
151
- if items_per_page > 100
152
- raise ArgumentError, "invalid value for \"items_per_page\", must be smaller than or equal to 100."
153
- end
154
-
155
- if items_per_page < 1
156
- raise ArgumentError, "invalid value for \"items_per_page\", must be greater than or equal to 1."
157
- end
158
-
159
- @items_per_page = items_per_page
160
- end
161
-
162
102
  # Checks equality by comparing each attribute.
163
103
  # @param [Object] Object to be compared
164
104
  def ==(other)
@@ -174,24 +174,6 @@ module Algolia
174
174
  end
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] failure_threshold Value to be assigned
179
- def failure_threshold=(failure_threshold)
180
- if failure_threshold.nil?
181
- raise ArgumentError, "failure_threshold cannot be nil"
182
- end
183
-
184
- if failure_threshold > 100
185
- raise ArgumentError, "invalid value for \"failure_threshold\", must be smaller than or equal to 100."
186
- end
187
-
188
- if failure_threshold < 0
189
- raise ArgumentError, "invalid value for \"failure_threshold\", must be greater than or equal to 0."
190
- end
191
-
192
- @failure_threshold = failure_threshold
193
- end
194
-
195
177
  # Checks equality by comparing each attribute.
196
178
  # @param [Object] Object to be compared
197
179
  def ==(other)
@@ -102,27 +102,6 @@ module Algolia
102
102
  end
103
103
  end
104
104
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] delimiter Value to be assigned
107
- def delimiter=(delimiter)
108
- if delimiter.nil?
109
- raise ArgumentError, "delimiter cannot be nil"
110
- end
111
-
112
- if delimiter.to_s.length > 1
113
- raise(
114
- ArgumentError,
115
- "invalid value for \"delimiter\", the character length must be smaller than or equal to 1."
116
- )
117
- end
118
-
119
- if delimiter.to_s.length < 1
120
- raise ArgumentError, "invalid value for \"delimiter\", the character length must be great than or equal to 1."
121
- end
122
-
123
- @delimiter = delimiter
124
- end
125
-
126
105
  # Checks equality by comparing each attribute.
127
106
  # @param [Object] Object to be compared
128
107
  def ==(other)