algolia 3.5.0 → 3.5.1

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