algolia 3.5.0 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +17 -16
- data/lib/algolia/api/analytics_client.rb +173 -333
- data/lib/algolia/api/ingestion_client.rb +40 -200
- data/lib/algolia/api/insights_client.rb +18 -32
- data/lib/algolia/api/monitoring_client.rb +33 -25
- data/lib/algolia/api/personalization_client.rb +16 -8
- data/lib/algolia/api/query_suggestions_client.rb +17 -9
- data/lib/algolia/api/recommend_client.rb +17 -9
- data/lib/algolia/api/search_client.rb +63 -110
- data/lib/algolia/configuration.rb +16 -1
- data/lib/algolia/models/abtesting/ab_test_configuration.rb +0 -2
- data/lib/algolia/models/abtesting/ab_tests_variant.rb +0 -18
- data/lib/algolia/models/abtesting/ab_tests_variant_search_params.rb +0 -18
- data/lib/algolia/models/abtesting/add_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/minimum_detectable_effect.rb +0 -18
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -18
- data/lib/algolia/models/abtesting/variant.rb +0 -20
- data/lib/algolia/models/analytics/click_position.rb +0 -32
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_average_clicks.rb +0 -24
- data/lib/algolia/models/analytics/daily_click_through_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +0 -28
- data/lib/algolia/models/analytics/daily_no_click_rates.rb +0 -32
- data/lib/algolia/models/analytics/daily_no_results_rates.rb +0 -18
- data/lib/algolia/models/analytics/daily_purchase_rates.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_clicks.rb +0 -14
- data/lib/algolia/models/analytics/daily_searches_no_results.rb +0 -14
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +0 -24
- data/lib/algolia/models/analytics/get_click_positions_response.rb +0 -18
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +0 -28
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +0 -32
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +0 -18
- data/lib/algolia/models/analytics/get_purchase_rate_response.rb +0 -14
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +0 -56
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +0 -98
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +0 -90
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +0 -132
- data/lib/algolia/models/ingestion/event.rb +1 -25
- data/lib/algolia/models/ingestion/pagination.rb +0 -60
- data/lib/algolia/models/ingestion/run.rb +0 -18
- data/lib/algolia/models/ingestion/source_csv.rb +0 -21
- data/lib/algolia/models/ingestion/task.rb +0 -18
- data/lib/algolia/models/ingestion/task_create.rb +0 -18
- data/lib/algolia/models/ingestion/task_create_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_update.rb +0 -18
- data/lib/algolia/models/ingestion/task_update_v1.rb +0 -18
- data/lib/algolia/models/ingestion/task_v1.rb +0 -18
- data/lib/algolia/models/ingestion/transformation.rb +1 -1
- data/lib/algolia/models/ingestion/transformation_create.rb +1 -1
- data/lib/algolia/models/insights/added_to_cart_object_ids.rb +0 -123
- data/lib/algolia/models/insights/added_to_cart_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/clicked_filters.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids.rb +0 -105
- data/lib/algolia/models/insights/clicked_object_ids_after_search.rb +0 -149
- data/lib/algolia/models/insights/converted_filters.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids.rb +0 -105
- data/lib/algolia/models/insights/converted_object_ids_after_search.rb +0 -131
- data/lib/algolia/models/insights/insights_events.rb +0 -18
- data/lib/algolia/models/insights/object_data_after_search.rb +0 -26
- data/lib/algolia/models/insights/purchased_object_ids.rb +0 -123
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +0 -123
- data/lib/algolia/models/insights/viewed_filters.rb +0 -105
- data/lib/algolia/models/insights/viewed_object_ids.rb +0 -105
- data/lib/algolia/models/personalization/personalization_strategy_params.rb +0 -18
- data/lib/algolia/models/query-suggestions/configuration.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_response.rb +0 -17
- data/lib/algolia/models/query-suggestions/configuration_with_index.rb +0 -17
- data/lib/algolia/models/query-suggestions/source_index.rb +0 -28
- data/lib/algolia/models/recommend/banner_image.rb +4 -2
- data/lib/algolia/models/recommend/bought_together_query.rb +0 -36
- data/lib/algolia/models/recommend/condition.rb +0 -15
- data/lib/algolia/models/recommend/consequence.rb +0 -28
- data/lib/algolia/models/recommend/fallback_params.rb +3 -95
- data/lib/algolia/models/recommend/looking_similar_query.rb +0 -36
- data/lib/algolia/models/recommend/promote_consequence_object.rb +0 -14
- data/lib/algolia/models/recommend/ranking_info.rb +0 -112
- data/lib/algolia/models/recommend/recommend_hit.rb +0 -20
- data/lib/algolia/models/recommend/recommend_search_params.rb +3 -95
- data/lib/algolia/models/recommend/recommendations_results.rb +13 -61
- data/lib/algolia/models/recommend/recommended_for_you_query.rb +0 -36
- data/lib/algolia/models/recommend/related_query.rb +0 -36
- data/lib/algolia/models/recommend/search_recommend_rules_params.rb +2 -52
- data/lib/algolia/models/recommend/search_recommend_rules_response.rb +0 -14
- data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -20
- data/lib/algolia/models/recommend/trending_facets_query.rb +0 -36
- data/lib/algolia/models/recommend/trending_items_query.rb +0 -36
- data/lib/algolia/models/recommend/widgets.rb +5 -2
- data/lib/algolia/models/search/banner_image.rb +4 -2
- data/lib/algolia/models/search/browse_params_object.rb +1 -129
- data/lib/algolia/models/search/browse_response.rb +13 -61
- data/lib/algolia/models/search/condition.rb +0 -15
- data/lib/algolia/models/search/consequence.rb +0 -28
- data/lib/algolia/models/search/consequence_params.rb +1 -129
- data/lib/algolia/models/search/get_api_key_response.rb +2 -0
- data/lib/algolia/models/search/get_objects_response.rb +0 -2
- data/lib/algolia/models/search/index_settings.rb +3 -81
- data/lib/algolia/models/search/log.rb +0 -34
- data/lib/algolia/models/search/promote_object_ids.rb +0 -14
- data/lib/algolia/models/search/ranking_info.rb +0 -112
- data/lib/algolia/models/search/rule.rb +0 -18
- data/lib/algolia/models/search/search_dictionary_entries_params.rb +0 -32
- data/lib/algolia/models/search/search_dictionary_entries_response.rb +1 -15
- data/lib/algolia/models/search/search_for_facet_values_request.rb +0 -14
- data/lib/algolia/models/search/search_for_facets.rb +1 -129
- data/lib/algolia/models/search/search_for_hits.rb +1 -129
- data/lib/algolia/models/search/search_params_object.rb +1 -129
- data/lib/algolia/models/search/search_response.rb +13 -61
- data/lib/algolia/models/search/search_rules_params.rb +2 -34
- data/lib/algolia/models/search/search_synonyms_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_params.rb +0 -32
- data/lib/algolia/models/search/search_user_ids_response.rb +1 -33
- data/lib/algolia/models/search/settings_response.rb +3 -81
- data/lib/algolia/models/search/user_hit.rb +0 -15
- data/lib/algolia/models/search/user_id.rb +0 -15
- data/lib/algolia/models/search/widgets.rb +5 -2
- data/lib/algolia/user_agent.rb +8 -2
- data/lib/algolia/version.rb +1 -1
- metadata +2 -11
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_response.rb +0 -230
- data/lib/algolia/models/query-suggestions/base_query_suggestions_configuration_with_index.rb +0 -212
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +0 -252
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +0 -263
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +0 -276
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +0 -316
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +0 -295
- data/lib/algolia/models/recommend/banners.rb +0 -209
- 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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
407
|
-
# @param period [Period] Period over which to aggregate the metrics: -
|
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
|
444
|
-
# @param period [Period] Period over which to aggregate the metrics: -
|
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
|
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
|
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] || "
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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)
|