algolia 3.5.0 → 3.5.2

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 (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
@@ -30,11 +30,19 @@ module Algolia
30
30
  # @return [void]
31
31
  def set_client_api_key(api_key)
32
32
  @api_client.set_client_api_key(api_key)
33
+
34
+ self
35
+ end
36
+
37
+ def add_user_agent_segment(segment, version = nil)
38
+ @api_client.config.add_user_agent_segment(segment, version)
39
+
40
+ self
33
41
  end
34
42
 
35
43
  # This method allow you to send requests to the Algolia REST API.
36
44
 
37
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
45
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
38
46
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
39
47
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
40
48
  # @return [Http::Response] the response
@@ -66,7 +74,7 @@ module Algolia
66
74
 
67
75
  # This method allow you to send requests to the Algolia REST API.
68
76
 
69
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
77
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
70
78
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
71
79
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
72
80
  # @return [Object]
@@ -77,7 +85,7 @@ module Algolia
77
85
 
78
86
  # This method allow you to send requests to the Algolia REST API.
79
87
 
80
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
88
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
81
89
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
82
90
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
83
91
  # @return [Http::Response] the response
@@ -109,7 +117,7 @@ module Algolia
109
117
 
110
118
  # This method allow you to send requests to the Algolia REST API.
111
119
 
112
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
120
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
113
121
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
114
122
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
115
123
  # @return [Object]
@@ -120,7 +128,7 @@ module Algolia
120
128
 
121
129
  # This method allow you to send requests to the Algolia REST API.
122
130
 
123
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
131
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
124
132
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
125
133
  # @param body [Object] Parameters to send with the custom request.
126
134
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -153,7 +161,7 @@ module Algolia
153
161
 
154
162
  # This method allow you to send requests to the Algolia REST API.
155
163
 
156
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
164
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
157
165
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
158
166
  # @param body [Object] Parameters to send with the custom request.
159
167
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -165,7 +173,7 @@ module Algolia
165
173
 
166
174
  # This method allow you to send requests to the Algolia REST API.
167
175
 
168
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
176
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
169
177
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
170
178
  # @param body [Object] Parameters to send with the custom request.
171
179
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -198,7 +206,7 @@ module Algolia
198
206
 
199
207
  # This method allow you to send requests to the Algolia REST API.
200
208
 
201
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
209
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
202
210
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
203
211
  # @param body [Object] Parameters to send with the custom request.
204
212
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -210,7 +218,7 @@ module Algolia
210
218
 
211
219
  # Retrieves known incidents for the selected clusters.
212
220
 
213
- # @param clusters [String] Subset of clusters, separated by comma. (required)
221
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
214
222
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
215
223
  # @return [Http::Response] the response
216
224
  def get_cluster_incidents_with_http_info(clusters, request_options = {})
@@ -240,7 +248,7 @@ module Algolia
240
248
 
241
249
  # Retrieves known incidents for the selected clusters.
242
250
 
243
- # @param clusters [String] Subset of clusters, separated by comma. (required)
251
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
244
252
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
245
253
  # @return [IncidentsResponse]
246
254
  def get_cluster_incidents(clusters, request_options = {})
@@ -250,7 +258,7 @@ module Algolia
250
258
 
251
259
  # Retrieves the status of selected clusters.
252
260
 
253
- # @param clusters [String] Subset of clusters, separated by comma. (required)
261
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
254
262
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
255
263
  # @return [Http::Response] the response
256
264
  def get_cluster_status_with_http_info(clusters, request_options = {})
@@ -280,7 +288,7 @@ module Algolia
280
288
 
281
289
  # Retrieves the status of selected clusters.
282
290
 
283
- # @param clusters [String] Subset of clusters, separated by comma. (required)
291
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
284
292
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
285
293
  # @return [StatusResponse]
286
294
  def get_cluster_status(clusters, request_options = {})
@@ -323,7 +331,7 @@ module Algolia
323
331
 
324
332
  # Retrieves average times for indexing operations for selected clusters.
325
333
 
326
- # @param clusters [String] Subset of clusters, separated by comma. (required)
334
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
327
335
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
328
336
  # @return [Http::Response] the response
329
337
  def get_indexing_time_with_http_info(clusters, request_options = {})
@@ -353,7 +361,7 @@ module Algolia
353
361
 
354
362
  # Retrieves average times for indexing operations for selected clusters.
355
363
 
356
- # @param clusters [String] Subset of clusters, separated by comma. (required)
364
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
357
365
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
358
366
  # @return [IndexingTimeResponse]
359
367
  def get_indexing_time(clusters, request_options = {})
@@ -363,7 +371,7 @@ module Algolia
363
371
 
364
372
  # Retrieves the average latency for search requests for selected clusters.
365
373
 
366
- # @param clusters [String] Subset of clusters, separated by comma. (required)
374
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
367
375
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
368
376
  # @return [Http::Response] the response
369
377
  def get_latency_with_http_info(clusters, request_options = {})
@@ -393,7 +401,7 @@ module Algolia
393
401
 
394
402
  # Retrieves the average latency for search requests for selected clusters.
395
403
 
396
- # @param clusters [String] Subset of clusters, separated by comma. (required)
404
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
397
405
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
398
406
  # @return [LatencyResponse]
399
407
  def get_latency(clusters, request_options = {})
@@ -401,10 +409,10 @@ module Algolia
401
409
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Monitoring::LatencyResponse")
402
410
  end
403
411
 
404
- # Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the &#x60;x-algolia-application-id&#x60; and &#x60;x-algolia-api-key&#x60; headers (using the Monitoring API key).
412
+ # Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).
405
413
 
406
- # @param metric [Metric] Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use &#x60;*&#x60;. (required)
407
- # @param period [Period] Period over which to aggregate the metrics: - &#x60;minute&#x60;. Aggregate the last minute. 1 data point per 10 seconds. - &#x60;hour&#x60;. Aggregate the last hour. 1 data point per minute. - &#x60;day&#x60;. Aggregate the last day. 1 data point per 10 minutes. - &#x60;week&#x60;. Aggregate the last week. 1 data point per hour. - &#x60;month&#x60;. Aggregate the last month. 1 data point per day. (required)
414
+ # @param metric [Metric] Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`. (required)
415
+ # @param period [Period] Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)
408
416
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
409
417
  # @return [Http::Response] the response
410
418
  def get_metrics_with_http_info(metric, period, request_options = {})
@@ -440,8 +448,8 @@ module Algolia
440
448
 
441
449
  # Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).
442
450
 
443
- # @param metric [Metric] Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use &#x60;*&#x60;. (required)
444
- # @param period [Period] Period over which to aggregate the metrics: - &#x60;minute&#x60;. Aggregate the last minute. 1 data point per 10 seconds. - &#x60;hour&#x60;. Aggregate the last hour. 1 data point per minute. - &#x60;day&#x60;. Aggregate the last day. 1 data point per 10 minutes. - &#x60;week&#x60;. Aggregate the last week. 1 data point per hour. - &#x60;month&#x60;. Aggregate the last month. 1 data point per day. (required)
451
+ # @param metric [Metric] Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`. (required)
452
+ # @param period [Period] Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)
445
453
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
446
454
  # @return [InfrastructureResponse]
447
455
  def get_metrics(metric, period, request_options = {})
@@ -454,7 +462,7 @@ module Algolia
454
462
 
455
463
  # Test whether clusters are reachable or not.
456
464
 
457
- # @param clusters [String] Subset of clusters, separated by comma. (required)
465
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
458
466
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
459
467
  # @return [Http::Response] the response
460
468
  def get_reachability_with_http_info(clusters, request_options = {})
@@ -484,15 +492,15 @@ module Algolia
484
492
 
485
493
  # Test whether clusters are reachable or not.
486
494
 
487
- # @param clusters [String] Subset of clusters, separated by comma. (required)
495
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
488
496
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
489
497
  # @return [Hash<String, Hash>]
490
498
  def get_reachability(clusters, request_options = {})
491
499
  response = get_reachability_with_http_info(clusters, request_options)
492
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Monitoring::Hash<String, Hash>")
500
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Hash<String, Hash>")
493
501
  end
494
502
 
495
- # Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application&#39;s cluster. - Without authentication, the response lists the servers for all Algolia clusters.
503
+ # Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application's cluster. - Without authentication, the response lists the servers for all Algolia clusters.
496
504
 
497
505
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
498
506
  # @return [Http::Response] the response
@@ -45,11 +45,19 @@ module Algolia
45
45
  # @return [void]
46
46
  def set_client_api_key(api_key)
47
47
  @api_client.set_client_api_key(api_key)
48
+
49
+ self
50
+ end
51
+
52
+ def add_user_agent_segment(segment, version = nil)
53
+ @api_client.config.add_user_agent_segment(segment, version)
54
+
55
+ self
48
56
  end
49
57
 
50
58
  # This method allow you to send requests to the Algolia REST API.
51
59
 
52
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
60
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
53
61
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
54
62
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
55
63
  # @return [Http::Response] the response
@@ -81,7 +89,7 @@ module Algolia
81
89
 
82
90
  # This method allow you to send requests to the Algolia REST API.
83
91
 
84
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
92
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
85
93
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
86
94
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
87
95
  # @return [Object]
@@ -92,7 +100,7 @@ module Algolia
92
100
 
93
101
  # This method allow you to send requests to the Algolia REST API.
94
102
 
95
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
103
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
96
104
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
97
105
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
98
106
  # @return [Http::Response] the response
@@ -124,7 +132,7 @@ module Algolia
124
132
 
125
133
  # This method allow you to send requests to the Algolia REST API.
126
134
 
127
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
135
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
128
136
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
129
137
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
130
138
  # @return [Object]
@@ -135,7 +143,7 @@ module Algolia
135
143
 
136
144
  # This method allow you to send requests to the Algolia REST API.
137
145
 
138
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
146
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
139
147
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
140
148
  # @param body [Object] Parameters to send with the custom request.
141
149
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -168,7 +176,7 @@ module Algolia
168
176
 
169
177
  # This method allow you to send requests to the Algolia REST API.
170
178
 
171
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
179
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
172
180
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
173
181
  # @param body [Object] Parameters to send with the custom request.
174
182
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -180,7 +188,7 @@ module Algolia
180
188
 
181
189
  # This method allow you to send requests to the Algolia REST API.
182
190
 
183
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
191
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
184
192
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
185
193
  # @param body [Object] Parameters to send with the custom request.
186
194
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -213,7 +221,7 @@ module Algolia
213
221
 
214
222
  # This method allow you to send requests to the Algolia REST API.
215
223
 
216
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
224
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
217
225
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
218
226
  # @param body [Object] Parameters to send with the custom request.
219
227
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -45,6 +45,14 @@ module Algolia
45
45
  # @return [void]
46
46
  def set_client_api_key(api_key)
47
47
  @api_client.set_client_api_key(api_key)
48
+
49
+ self
50
+ end
51
+
52
+ def add_user_agent_segment(segment, version = nil)
53
+ @api_client.config.add_user_agent_segment(segment, version)
54
+
55
+ self
48
56
  end
49
57
 
50
58
  # Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
@@ -93,7 +101,7 @@ module Algolia
93
101
 
94
102
  # This method allow you to send requests to the Algolia REST API.
95
103
 
96
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
104
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
97
105
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
98
106
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
99
107
  # @return [Http::Response] the response
@@ -125,7 +133,7 @@ module Algolia
125
133
 
126
134
  # This method allow you to send requests to the Algolia REST API.
127
135
 
128
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
136
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
129
137
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
130
138
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
131
139
  # @return [Object]
@@ -136,7 +144,7 @@ module Algolia
136
144
 
137
145
  # This method allow you to send requests to the Algolia REST API.
138
146
 
139
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
147
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
140
148
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
141
149
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
142
150
  # @return [Http::Response] the response
@@ -168,7 +176,7 @@ module Algolia
168
176
 
169
177
  # This method allow you to send requests to the Algolia REST API.
170
178
 
171
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
179
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
172
180
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
173
181
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
174
182
  # @return [Object]
@@ -179,7 +187,7 @@ module Algolia
179
187
 
180
188
  # This method allow you to send requests to the Algolia REST API.
181
189
 
182
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
190
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
183
191
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
184
192
  # @param body [Object] Parameters to send with the custom request.
185
193
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -212,7 +220,7 @@ module Algolia
212
220
 
213
221
  # This method allow you to send requests to the Algolia REST API.
214
222
 
215
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
223
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
216
224
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
217
225
  # @param body [Object] Parameters to send with the custom request.
218
226
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -224,7 +232,7 @@ module Algolia
224
232
 
225
233
  # This method allow you to send requests to the Algolia REST API.
226
234
 
227
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
235
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
228
236
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
229
237
  # @param body [Object] Parameters to send with the custom request.
230
238
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -257,7 +265,7 @@ module Algolia
257
265
 
258
266
  # This method allow you to send requests to the Algolia REST API.
259
267
 
260
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
268
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
261
269
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
262
270
  # @param body [Object] Parameters to send with the custom request.
263
271
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -267,7 +275,7 @@ module Algolia
267
275
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
268
276
  end
269
277
 
270
- # Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the &#x60;Delete an index&#x60; operation.
278
+ # Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
271
279
  #
272
280
  # Required API Key ACLs:
273
281
  # - editSettings
@@ -38,9 +38,17 @@ module Algolia
38
38
  # @return [void]
39
39
  def set_client_api_key(api_key)
40
40
  @api_client.set_client_api_key(api_key)
41
+
42
+ self
41
43
  end
42
44
 
43
- # Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same &#x60;objectID&#x60; already exists. You may also specify &#x60;true&#x60; for &#x60;clearExistingRules&#x60;, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following: - Conditions &#x60;pattern&#x60; and &#x60;anchoring&#x60; are unavailable. - Condition &#x60;filters&#x60; triggers if the source item matches the specified filters. - Condition &#x60;filters&#x60; accepts numeric filters. - Consequence &#x60;params&#x60; only covers filtering parameters. - Consequence &#x60;automaticFacetFilters&#x60; doesn&#39;t require a facet value placeholder (it tries to match the data source item&#39;s attributes instead).
45
+ def add_user_agent_segment(segment, version = nil)
46
+ @api_client.config.add_user_agent_segment(segment, version)
47
+
48
+ self
49
+ end
50
+
51
+ # Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same `objectID` already exists. You may also specify `true` for `clearExistingRules`, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a [source item](/doc/guides/algolia-recommend/overview/#recommend-models) instead of a query. The main differences are the following: - Conditions `pattern` and `anchoring` are unavailable. - Condition `filters` triggers if the source item matches the specified filters. - Condition `filters` accepts numeric filters. - Consequence `params` only covers filtering parameters. - Consequence `automaticFacetFilters` doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).
44
52
  #
45
53
  # Required API Key ACLs:
46
54
  # - editSettings
@@ -99,7 +107,7 @@ module Algolia
99
107
 
100
108
  # This method allow you to send requests to the Algolia REST API.
101
109
 
102
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
110
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
103
111
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
104
112
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
105
113
  # @return [Http::Response] the response
@@ -131,7 +139,7 @@ module Algolia
131
139
 
132
140
  # This method allow you to send requests to the Algolia REST API.
133
141
 
134
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
142
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
135
143
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
136
144
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
137
145
  # @return [Object]
@@ -142,7 +150,7 @@ module Algolia
142
150
 
143
151
  # This method allow you to send requests to the Algolia REST API.
144
152
 
145
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
153
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
146
154
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
147
155
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
148
156
  # @return [Http::Response] the response
@@ -174,7 +182,7 @@ module Algolia
174
182
 
175
183
  # This method allow you to send requests to the Algolia REST API.
176
184
 
177
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
185
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
178
186
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
179
187
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
180
188
  # @return [Object]
@@ -185,7 +193,7 @@ module Algolia
185
193
 
186
194
  # This method allow you to send requests to the Algolia REST API.
187
195
 
188
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
196
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
189
197
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
190
198
  # @param body [Object] Parameters to send with the custom request.
191
199
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -218,7 +226,7 @@ module Algolia
218
226
 
219
227
  # This method allow you to send requests to the Algolia REST API.
220
228
 
221
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
229
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
222
230
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
223
231
  # @param body [Object] Parameters to send with the custom request.
224
232
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -230,7 +238,7 @@ module Algolia
230
238
 
231
239
  # This method allow you to send requests to the Algolia REST API.
232
240
 
233
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
241
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
234
242
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
235
243
  # @param body [Object] Parameters to send with the custom request.
236
244
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -263,7 +271,7 @@ module Algolia
263
271
 
264
272
  # This method allow you to send requests to the Algolia REST API.
265
273
 
266
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
274
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
267
275
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
268
276
  # @param body [Object] Parameters to send with the custom request.
269
277
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)