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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9200f03830a6a4072814ecf540ec1c2ccd1c820a1302dd12a503f263066645d
4
- data.tar.gz: 48ec72d14a23b49eef15e99dfdf4c9a1d46d4efc25020f844abe5f672b1e3acf
3
+ metadata.gz: 5951dab150232853689a45534049c7ffb99d79971aeda7169a3578350cf42260
4
+ data.tar.gz: 3a3fe188b233e96b31396909ff99a5a5aa2168c43e7129a5655e0775cb26ea0a
5
5
  SHA512:
6
- metadata.gz: 91c0f16ed9d08c1ab4b8c8743d72f493441bdc4f1f421c35ba7b7044025fb0ac38cba7928b4660c65abe01b878307ff298431d6ca21536b9a85fd056d1ec7033
7
- data.tar.gz: c7118984d0a3e3db25d012ecd6abbe7d4e372360c85df3bff47382476f3a12386f084dbd14424d69ce8e0b6c8f739b218e04972acf7f71d1a02c54db07efa0de
6
+ metadata.gz: 79075e4e73c306652e3d2dcc108f4fbd02a23db702389c5e759f3253be9cf8f64f30e6eb1a5b463d48f42d46ece034b5d457393419b915a26d6bdbf530072b5e
7
+ data.tar.gz: d1c426190bb2317252e66596de800475e21faac2d030c1dbfe457f4cb23df52cb6960f09eeef309636889f59ef0f086c4ce3ae510f15d18796c46058db1c9f58
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [3.5.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.5.0...3.5.1)
2
+
3
+ - [8b343d2ee](https://github.com/algolia/api-clients-automation/commit/8b343d2ee) fix(ruby): only prefix model by client:: ([#3923](https://github.com/algolia/api-clients-automation/pull/3923)) by [@millotp](https://github.com/millotp/)
4
+ - [f516d0243](https://github.com/algolia/api-clients-automation/commit/f516d0243) fix(specs): Typos in API descriptions ([#3932](https://github.com/algolia/api-clients-automation/pull/3932)) by [@gazconroy](https://github.com/gazconroy/)
5
+ - [ee6c043ef](https://github.com/algolia/api-clients-automation/commit/ee6c043ef) fix(clients): remove all client side validation expect null check ([#3936](https://github.com/algolia/api-clients-automation/pull/3936)) by [@millotp](https://github.com/millotp/)
6
+ - [434c99f80](https://github.com/algolia/api-clients-automation/commit/434c99f80) fix(specs): use the read transporter for browse ([#3938](https://github.com/algolia/api-clients-automation/pull/3938)) by [@millotp](https://github.com/millotp/)
7
+ - [45d433d0a](https://github.com/algolia/api-clients-automation/commit/45d433d0a) fix(specs): correct type for banners [skip-bc] ([#3939](https://github.com/algolia/api-clients-automation/pull/3939)) by [@millotp](https://github.com/millotp/)
8
+
1
9
  ## [3.5.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.4.0...3.5.0)
2
10
 
3
11
  - [ad8e3d224](https://github.com/algolia/api-clients-automation/commit/ad8e3d224) fix(specs): update analytics and abtesting max pagination query limit ([#3696](https://github.com/algolia/api-clients-automation/pull/3696)) by [@febeck](https://github.com/febeck/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.5.0)
4
+ algolia (3.5.1)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -372,13 +372,6 @@ module Algolia
372
372
  index_suffix = nil,
373
373
  request_options = {}
374
374
  )
375
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
376
- raise(
377
- ArgumentError,
378
- "invalid value for \"\"offset\"\" when calling AbtestingClient.list_ab_tests, must be greater than or equal to 0."
379
- )
380
- end
381
-
382
375
  path = "/2/abtests"
383
376
  query_params = {}
384
377
  query_params[:offset] = offset unless offset.nil?
@@ -819,27 +819,6 @@ module Algolia
819
819
  raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_clicks`."
820
820
  end
821
821
 
822
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
823
- raise(
824
- ArgumentError,
825
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_searches_no_clicks, must be smaller than or equal to 1000."
826
- )
827
- end
828
-
829
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
830
- raise(
831
- ArgumentError,
832
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_searches_no_clicks, must be smaller than or equal to 1000."
833
- )
834
- end
835
-
836
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
837
- raise(
838
- ArgumentError,
839
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_searches_no_clicks, must be greater than or equal to 0."
840
- )
841
- end
842
-
843
822
  path = "/2/searches/noClicks"
844
823
  query_params = {}
845
824
  query_params[:index] = index
@@ -927,27 +906,6 @@ module Algolia
927
906
  raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_results`."
928
907
  end
929
908
 
930
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
931
- raise(
932
- ArgumentError,
933
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_searches_no_results, must be smaller than or equal to 1000."
934
- )
935
- end
936
-
937
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
938
- raise(
939
- ArgumentError,
940
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_searches_no_results, must be smaller than or equal to 1000."
941
- )
942
- end
943
-
944
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
945
- raise(
946
- ArgumentError,
947
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_searches_no_results, must be greater than or equal to 0."
948
- )
949
- end
950
-
951
909
  path = "/2/searches/noResults"
952
910
  query_params = {}
953
911
  query_params[:index] = index
@@ -1080,27 +1038,6 @@ module Algolia
1080
1038
  raise ArgumentError, "Parameter `index` is required when calling `get_top_countries`."
1081
1039
  end
1082
1040
 
1083
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1084
- raise(
1085
- ArgumentError,
1086
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_countries, must be smaller than or equal to 1000."
1087
- )
1088
- end
1089
-
1090
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1091
- raise(
1092
- ArgumentError,
1093
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_countries, must be smaller than or equal to 1000."
1094
- )
1095
- end
1096
-
1097
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1098
- raise(
1099
- ArgumentError,
1100
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_countries, must be greater than or equal to 0."
1101
- )
1102
- end
1103
-
1104
1041
  path = "/2/countries"
1105
1042
  query_params = {}
1106
1043
  query_params[:index] = index
@@ -1182,27 +1119,6 @@ module Algolia
1182
1119
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_attributes`."
1183
1120
  end
1184
1121
 
1185
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1186
- raise(
1187
- ArgumentError,
1188
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_filter_attributes, must be smaller than or equal to 1000."
1189
- )
1190
- end
1191
-
1192
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1193
- raise(
1194
- ArgumentError,
1195
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filter_attributes, must be smaller than or equal to 1000."
1196
- )
1197
- end
1198
-
1199
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1200
- raise(
1201
- ArgumentError,
1202
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filter_attributes, must be greater than or equal to 0."
1203
- )
1204
- end
1205
-
1206
1122
  path = "/2/filters"
1207
1123
  query_params = {}
1208
1124
  query_params[:index] = index
@@ -1302,27 +1218,6 @@ module Algolia
1302
1218
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_for_attribute`."
1303
1219
  end
1304
1220
 
1305
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1306
- raise(
1307
- ArgumentError,
1308
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_filter_for_attribute, must be smaller than or equal to 1000."
1309
- )
1310
- end
1311
-
1312
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1313
- raise(
1314
- ArgumentError,
1315
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filter_for_attribute, must be smaller than or equal to 1000."
1316
- )
1317
- end
1318
-
1319
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1320
- raise(
1321
- ArgumentError,
1322
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filter_for_attribute, must be greater than or equal to 0."
1323
- )
1324
- end
1325
-
1326
1221
  path = "/2/filters/{attribute}".sub("{" + "attribute" + "}", Transport.encode_uri(attribute.to_s))
1327
1222
  query_params = {}
1328
1223
  query_params[:index] = index
@@ -1419,27 +1314,6 @@ module Algolia
1419
1314
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filters_no_results`."
1420
1315
  end
1421
1316
 
1422
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1423
- raise(
1424
- ArgumentError,
1425
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_filters_no_results, must be smaller than or equal to 1000."
1426
- )
1427
- end
1428
-
1429
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1430
- raise(
1431
- ArgumentError,
1432
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filters_no_results, must be smaller than or equal to 1000."
1433
- )
1434
- end
1435
-
1436
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1437
- raise(
1438
- ArgumentError,
1439
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_filters_no_results, must be greater than or equal to 0."
1440
- )
1441
- end
1442
-
1443
1317
  path = "/2/filters/noResults"
1444
1318
  query_params = {}
1445
1319
  query_params[:index] = index
@@ -1537,27 +1411,6 @@ module Algolia
1537
1411
  raise ArgumentError, "Parameter `index` is required when calling `get_top_hits`."
1538
1412
  end
1539
1413
 
1540
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1541
- raise(
1542
- ArgumentError,
1543
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_hits, must be smaller than or equal to 1000."
1544
- )
1545
- end
1546
-
1547
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1548
- raise(
1549
- ArgumentError,
1550
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_hits, must be smaller than or equal to 1000."
1551
- )
1552
- end
1553
-
1554
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1555
- raise(
1556
- ArgumentError,
1557
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_hits, must be greater than or equal to 0."
1558
- )
1559
- end
1560
-
1561
1414
  path = "/2/hits"
1562
1415
  query_params = {}
1563
1416
  query_params[:index] = index
@@ -1662,27 +1515,6 @@ module Algolia
1662
1515
  raise ArgumentError, "Parameter `index` is required when calling `get_top_searches`."
1663
1516
  end
1664
1517
 
1665
- if @api_client.config.client_side_validation && !limit.nil? && limit > 1000
1666
- raise(
1667
- ArgumentError,
1668
- "invalid value for \"\"limit\"\" when calling AnalyticsClient.get_top_searches, must be smaller than or equal to 1000."
1669
- )
1670
- end
1671
-
1672
- if @api_client.config.client_side_validation && !offset.nil? && offset > 1000
1673
- raise(
1674
- ArgumentError,
1675
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_searches, must be smaller than or equal to 1000."
1676
- )
1677
- end
1678
-
1679
- if @api_client.config.client_side_validation && !offset.nil? && offset < 0
1680
- raise(
1681
- ArgumentError,
1682
- "invalid value for \"\"offset\"\" when calling AnalyticsClient.get_top_searches, must be greater than or equal to 0."
1683
- )
1684
- end
1685
-
1686
1518
  path = "/2/searches"
1687
1519
  query_params = {}
1688
1520
  query_params[:index] = index
@@ -1386,27 +1386,6 @@ module Algolia
1386
1386
  order = nil,
1387
1387
  request_options = {}
1388
1388
  )
1389
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1390
- raise(
1391
- ArgumentError,
1392
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_authentications, must be smaller than or equal to 100."
1393
- )
1394
- end
1395
-
1396
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1397
- raise(
1398
- ArgumentError,
1399
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_authentications, must be greater than or equal to 1."
1400
- )
1401
- end
1402
-
1403
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1404
- raise(
1405
- ArgumentError,
1406
- "invalid value for \"\"page\"\" when calling IngestionClient.list_authentications, must be greater than or equal to 1."
1407
- )
1408
- end
1409
-
1410
1389
  path = "/1/authentications"
1411
1390
  query_params = {}
1412
1391
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -1487,27 +1466,6 @@ module Algolia
1487
1466
  order = nil,
1488
1467
  request_options = {}
1489
1468
  )
1490
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1491
- raise(
1492
- ArgumentError,
1493
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_destinations, must be smaller than or equal to 100."
1494
- )
1495
- end
1496
-
1497
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1498
- raise(
1499
- ArgumentError,
1500
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_destinations, must be greater than or equal to 1."
1501
- )
1502
- end
1503
-
1504
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1505
- raise(
1506
- ArgumentError,
1507
- "invalid value for \"\"page\"\" when calling IngestionClient.list_destinations, must be greater than or equal to 1."
1508
- )
1509
- end
1510
-
1511
1469
  path = "/1/destinations"
1512
1470
  query_params = {}
1513
1471
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -1578,7 +1536,7 @@ module Algolia
1578
1536
  )
1579
1537
  end
1580
1538
 
1581
- # Retrieves a list of events for a task run, identified by it&#39;s ID.
1539
+ # Retrieves a list of events for a task run, identified by its ID.
1582
1540
  #
1583
1541
  # Required API Key ACLs:
1584
1542
  # - addObject
@@ -1612,27 +1570,6 @@ module Algolia
1612
1570
  raise ArgumentError, "Parameter `run_id` is required when calling `list_events`."
1613
1571
  end
1614
1572
 
1615
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1616
- raise(
1617
- ArgumentError,
1618
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_events, must be smaller than or equal to 100."
1619
- )
1620
- end
1621
-
1622
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1623
- raise(
1624
- ArgumentError,
1625
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_events, must be greater than or equal to 1."
1626
- )
1627
- end
1628
-
1629
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1630
- raise(
1631
- ArgumentError,
1632
- "invalid value for \"\"page\"\" when calling IngestionClient.list_events, must be greater than or equal to 1."
1633
- )
1634
- end
1635
-
1636
1573
  path = "/1/runs/{runID}/events".sub("{" + "runID" + "}", Transport.encode_uri(run_id.to_s))
1637
1574
  query_params = {}
1638
1575
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -1660,7 +1597,7 @@ module Algolia
1660
1597
  @api_client.call_api(:GET, path, new_options)
1661
1598
  end
1662
1599
 
1663
- # Retrieves a list of events for a task run, identified by it's ID.
1600
+ # Retrieves a list of events for a task run, identified by its ID.
1664
1601
  #
1665
1602
  # Required API Key ACLs:
1666
1603
  # - addObject
@@ -1733,27 +1670,6 @@ module Algolia
1733
1670
  end_date = nil,
1734
1671
  request_options = {}
1735
1672
  )
1736
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1737
- raise(
1738
- ArgumentError,
1739
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_runs, must be smaller than or equal to 100."
1740
- )
1741
- end
1742
-
1743
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1744
- raise(
1745
- ArgumentError,
1746
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_runs, must be greater than or equal to 1."
1747
- )
1748
- end
1749
-
1750
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1751
- raise(
1752
- ArgumentError,
1753
- "invalid value for \"\"page\"\" when calling IngestionClient.list_runs, must be greater than or equal to 1."
1754
- )
1755
- end
1756
-
1757
1673
  path = "/1/runs"
1758
1674
  query_params = {}
1759
1675
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -1849,27 +1765,6 @@ module Algolia
1849
1765
  order = nil,
1850
1766
  request_options = {}
1851
1767
  )
1852
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1853
- raise(
1854
- ArgumentError,
1855
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_sources, must be smaller than or equal to 100."
1856
- )
1857
- end
1858
-
1859
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1860
- raise(
1861
- ArgumentError,
1862
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_sources, must be greater than or equal to 1."
1863
- )
1864
- end
1865
-
1866
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1867
- raise(
1868
- ArgumentError,
1869
- "invalid value for \"\"page\"\" when calling IngestionClient.list_sources, must be greater than or equal to 1."
1870
- )
1871
- end
1872
-
1873
1768
  path = "/1/sources"
1874
1769
  query_params = {}
1875
1770
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -1962,27 +1857,6 @@ module Algolia
1962
1857
  order = nil,
1963
1858
  request_options = {}
1964
1859
  )
1965
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
1966
- raise(
1967
- ArgumentError,
1968
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_tasks, must be smaller than or equal to 100."
1969
- )
1970
- end
1971
-
1972
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
1973
- raise(
1974
- ArgumentError,
1975
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_tasks, must be greater than or equal to 1."
1976
- )
1977
- end
1978
-
1979
- if @api_client.config.client_side_validation && !page.nil? && page < 1
1980
- raise(
1981
- ArgumentError,
1982
- "invalid value for \"\"page\"\" when calling IngestionClient.list_tasks, must be greater than or equal to 1."
1983
- )
1984
- end
1985
-
1986
1860
  path = "/2/tasks"
1987
1861
  query_params = {}
1988
1862
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -2087,27 +1961,6 @@ module Algolia
2087
1961
  order = nil,
2088
1962
  request_options = {}
2089
1963
  )
2090
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
2091
- raise(
2092
- ArgumentError,
2093
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_tasks_v1, must be smaller than or equal to 100."
2094
- )
2095
- end
2096
-
2097
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
2098
- raise(
2099
- ArgumentError,
2100
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_tasks_v1, must be greater than or equal to 1."
2101
- )
2102
- end
2103
-
2104
- if @api_client.config.client_side_validation && !page.nil? && page < 1
2105
- raise(
2106
- ArgumentError,
2107
- "invalid value for \"\"page\"\" when calling IngestionClient.list_tasks_v1, must be greater than or equal to 1."
2108
- )
2109
- end
2110
-
2111
1964
  path = "/1/tasks"
2112
1965
  query_params = {}
2113
1966
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -2202,27 +2055,6 @@ module Algolia
2202
2055
  order = nil,
2203
2056
  request_options = {}
2204
2057
  )
2205
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
2206
- raise(
2207
- ArgumentError,
2208
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_transformations, must be smaller than or equal to 100."
2209
- )
2210
- end
2211
-
2212
- if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
2213
- raise(
2214
- ArgumentError,
2215
- "invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_transformations, must be greater than or equal to 1."
2216
- )
2217
- end
2218
-
2219
- if @api_client.config.client_side_validation && !page.nil? && page < 1
2220
- raise(
2221
- ArgumentError,
2222
- "invalid value for \"\"page\"\" when calling IngestionClient.list_transformations, must be greater than or equal to 1."
2223
- )
2224
- end
2225
-
2226
2058
  path = "/1/transformations"
2227
2059
  query_params = {}
2228
2060
  query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
@@ -234,28 +234,6 @@ module Algolia
234
234
  raise ArgumentError, "Parameter `user_token` is required when calling `delete_user_token`."
235
235
  end
236
236
 
237
- if @api_client.config.client_side_validation && user_token.to_s.length > 129
238
- raise(
239
- ArgumentError,
240
- "invalid value for \"user_token\" when calling InsightsClient.delete_user_token, the character length must be smaller than or equal to 129."
241
- )
242
- end
243
-
244
- if @api_client.config.client_side_validation && user_token.to_s.length < 1
245
- raise(
246
- ArgumentError,
247
- "invalid value for \"user_token\" when calling InsightsClient.delete_user_token, the character length must be great than or equal to 1."
248
- )
249
- end
250
-
251
- pattern = /[a-zA-Z0-9_=\/+-]{1,129}/
252
- if @api_client.config.client_side_validation && user_token !~ pattern
253
- raise(
254
- ArgumentError,
255
- "invalid value for 'user_token' when calling InsightsClient.delete_user_token, must conform to the pattern #{pattern}."
256
- )
257
- end
258
-
259
237
  path = "/1/usertokens/{userToken}".sub("{" + "userToken" + "}", Transport.encode_uri(user_token.to_s))
260
238
  query_params = {}
261
239
  query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
@@ -210,7 +210,7 @@ module Algolia
210
210
 
211
211
  # Retrieves known incidents for the selected clusters.
212
212
 
213
- # @param clusters [String] Subset of clusters, separated by comma. (required)
213
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
214
214
  # @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
215
  # @return [Http::Response] the response
216
216
  def get_cluster_incidents_with_http_info(clusters, request_options = {})
@@ -240,7 +240,7 @@ module Algolia
240
240
 
241
241
  # Retrieves known incidents for the selected clusters.
242
242
 
243
- # @param clusters [String] Subset of clusters, separated by comma. (required)
243
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
244
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)
245
245
  # @return [IncidentsResponse]
246
246
  def get_cluster_incidents(clusters, request_options = {})
@@ -250,7 +250,7 @@ module Algolia
250
250
 
251
251
  # Retrieves the status of selected clusters.
252
252
 
253
- # @param clusters [String] Subset of clusters, separated by comma. (required)
253
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
254
254
  # @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
255
  # @return [Http::Response] the response
256
256
  def get_cluster_status_with_http_info(clusters, request_options = {})
@@ -280,7 +280,7 @@ module Algolia
280
280
 
281
281
  # Retrieves the status of selected clusters.
282
282
 
283
- # @param clusters [String] Subset of clusters, separated by comma. (required)
283
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
284
284
  # @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
285
  # @return [StatusResponse]
286
286
  def get_cluster_status(clusters, request_options = {})
@@ -323,7 +323,7 @@ module Algolia
323
323
 
324
324
  # Retrieves average times for indexing operations for selected clusters.
325
325
 
326
- # @param clusters [String] Subset of clusters, separated by comma. (required)
326
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
327
327
  # @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
328
  # @return [Http::Response] the response
329
329
  def get_indexing_time_with_http_info(clusters, request_options = {})
@@ -353,7 +353,7 @@ module Algolia
353
353
 
354
354
  # Retrieves average times for indexing operations for selected clusters.
355
355
 
356
- # @param clusters [String] Subset of clusters, separated by comma. (required)
356
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
357
357
  # @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
358
  # @return [IndexingTimeResponse]
359
359
  def get_indexing_time(clusters, request_options = {})
@@ -363,7 +363,7 @@ module Algolia
363
363
 
364
364
  # Retrieves the average latency for search requests for selected clusters.
365
365
 
366
- # @param clusters [String] Subset of clusters, separated by comma. (required)
366
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
367
367
  # @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
368
  # @return [Http::Response] the response
369
369
  def get_latency_with_http_info(clusters, request_options = {})
@@ -393,7 +393,7 @@ module Algolia
393
393
 
394
394
  # Retrieves the average latency for search requests for selected clusters.
395
395
 
396
- # @param clusters [String] Subset of clusters, separated by comma. (required)
396
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
397
397
  # @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
398
  # @return [LatencyResponse]
399
399
  def get_latency(clusters, request_options = {})
@@ -454,7 +454,7 @@ module Algolia
454
454
 
455
455
  # Test whether clusters are reachable or not.
456
456
 
457
- # @param clusters [String] Subset of clusters, separated by comma. (required)
457
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
458
458
  # @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
459
  # @return [Http::Response] the response
460
460
  def get_reachability_with_http_info(clusters, request_options = {})
@@ -484,12 +484,12 @@ module Algolia
484
484
 
485
485
  # Test whether clusters are reachable or not.
486
486
 
487
- # @param clusters [String] Subset of clusters, separated by comma. (required)
487
+ # @param clusters [String] Subset of clusters, separated by commas. (required)
488
488
  # @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
489
  # @return [Hash<String, Hash>]
490
490
  def get_reachability(clusters, request_options = {})
491
491
  response = get_reachability_with_http_info(clusters, request_options)
492
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Monitoring::Hash<String, Hash>")
492
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Hash<String, Hash>")
493
493
  end
494
494
 
495
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.