algolia 3.0.0.beta.11 → 3.0.0.beta.12

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 (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/algolia/api/query_suggestions_client.rb +4 -10
  5. data/lib/algolia/api/search_client.rb +2 -2
  6. data/lib/algolia/api/usage_client.rb +4 -4
  7. data/lib/algolia/models/abtesting/{filter_effects_empty_search.rb → empty_search_filter.rb} +3 -3
  8. data/lib/algolia/models/abtesting/filter_effects.rb +2 -2
  9. data/lib/algolia/models/abtesting/{filter_effects_outliers.rb → outliers_filter.rb} +3 -3
  10. data/lib/algolia/models/analytics/{click_positions_inner.rb → click_position.rb} +3 -3
  11. data/lib/algolia/models/analytics/get_click_positions_response.rb +1 -1
  12. data/lib/algolia/models/analytics/top_search_with_analytics.rb +1 -1
  13. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +1 -1
  14. data/lib/algolia/models/ingestion/docker_streams_input.rb +1 -0
  15. data/lib/algolia/models/ingestion/{transformation_try_response_error.rb → transformation_error.rb} +3 -3
  16. data/lib/algolia/models/ingestion/transformation_try_response.rb +1 -1
  17. data/lib/algolia/models/monitoring/{incidents_inner.rb → incident_entry.rb} +3 -3
  18. data/lib/algolia/models/monitoring/{indexing_time_response_metrics.rb → indexing_metric.rb} +3 -3
  19. data/lib/algolia/models/monitoring/indexing_time_response.rb +1 -1
  20. data/lib/algolia/models/monitoring/infrastructure_response.rb +1 -1
  21. data/lib/algolia/models/monitoring/{latency_response_metrics.rb → latency_metric.rb} +3 -3
  22. data/lib/algolia/models/monitoring/latency_response.rb +1 -1
  23. data/lib/algolia/models/monitoring/{infrastructure_response_metrics.rb → metrics.rb} +3 -6
  24. data/lib/algolia/models/monitoring/{time_inner.rb → time_entry.rb} +3 -3
  25. data/lib/algolia/models/{search/search_for_hits_options.rb → query-suggestions/config_status.rb} +43 -36
  26. data/lib/algolia/models/{recommend/related_products.rb → query-suggestions/log_file.rb} +36 -32
  27. data/lib/algolia/models/recommend/around_precision.rb +1 -1
  28. data/lib/algolia/models/recommend/fallback_params.rb +1 -1
  29. data/lib/algolia/models/recommend/{around_precision_from_value_inner.rb → range.rb} +3 -6
  30. data/lib/algolia/models/recommend/recommend_rule.rb +1 -1
  31. data/lib/algolia/models/recommend/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  32. data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +1 -1
  33. data/lib/algolia/models/recommend/{recommend_rule_metadata.rb → rule_metadata.rb} +3 -3
  34. data/lib/algolia/models/recommend/search_params.rb +1 -1
  35. data/lib/algolia/models/recommend/search_params_object.rb +1 -1
  36. data/lib/algolia/models/search/around_precision.rb +1 -1
  37. data/lib/algolia/models/search/browse_params_object.rb +1 -1
  38. data/lib/algolia/models/search/built_in_operation.rb +1 -2
  39. data/lib/algolia/models/search/built_in_operation_value.rb +105 -0
  40. data/lib/algolia/models/search/consequence_params.rb +1 -1
  41. data/lib/algolia/models/search/dictionary_entry.rb +0 -2
  42. data/lib/algolia/models/search/index_settings.rb +2 -2
  43. data/lib/algolia/models/search/{around_precision_from_value_inner.rb → range.rb} +3 -6
  44. data/lib/algolia/models/search/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  45. data/lib/algolia/models/search/redirect_rule_index_metadata.rb +1 -1
  46. data/lib/algolia/models/search/search_for_facets.rb +1 -1
  47. data/lib/algolia/models/search/search_for_hits.rb +1 -1
  48. data/lib/algolia/models/search/search_params_object.rb +1 -1
  49. data/lib/algolia/models/search/search_params_string.rb +1 -0
  50. data/lib/algolia/models/search/settings_response.rb +2 -2
  51. data/lib/algolia/models/usage/{get_usage400_response_error_errors_inner.rb → error_item.rb} +3 -3
  52. data/lib/algolia/models/usage/{get_usage400_response_error.rb → forbidden_error.rb} +4 -4
  53. data/lib/algolia/models/usage/{get_usage200_response.rb → index_usage.rb} +4 -4
  54. data/lib/algolia/models/usage/invalid_request_error.rb +231 -0
  55. data/lib/algolia/models/usage/{get_usage200_response_statistics_inner.rb → statistic_entry.rb} +3 -3
  56. data/lib/algolia/version.rb +1 -1
  57. metadata +24 -64
  58. data/lib/algolia/models/abtesting/custom_search_params.rb +0 -214
  59. data/lib/algolia/models/abtesting/error_base.rb +0 -212
  60. data/lib/algolia/models/analytics/error_base.rb +0 -212
  61. data/lib/algolia/models/ingestion/error_base.rb +0 -212
  62. data/lib/algolia/models/ingestion/source_shopify_base.rb +0 -214
  63. data/lib/algolia/models/insights/error_base.rb +0 -212
  64. data/lib/algolia/models/monitoring/error_base.rb +0 -212
  65. data/lib/algolia/models/monitoring/get_servers403_response.rb +0 -211
  66. data/lib/algolia/models/personalization/error_base.rb +0 -212
  67. data/lib/algolia/models/query-suggestions/app_id.rb +0 -209
  68. data/lib/algolia/models/query-suggestions/error_base.rb +0 -212
  69. data/lib/algolia/models/recommend/base_recommend_request.rb +0 -281
  70. data/lib/algolia/models/recommend/base_search_params.rb +0 -635
  71. data/lib/algolia/models/recommend/base_search_params_without_query.rb +0 -616
  72. data/lib/algolia/models/recommend/base_search_response.rb +0 -499
  73. data/lib/algolia/models/recommend/error_base.rb +0 -212
  74. data/lib/algolia/models/recommend/frequently_bought_together.rb +0 -247
  75. data/lib/algolia/models/recommend/index_settings_as_search_params.rb +0 -788
  76. data/lib/algolia/models/recommend/looking_similar.rb +0 -256
  77. data/lib/algolia/models/recommend/recommendations_hits.rb +0 -215
  78. data/lib/algolia/models/recommend/recommended_for_you.rb +0 -244
  79. data/lib/algolia/models/recommend/search_pagination.rb +0 -282
  80. data/lib/algolia/models/recommend/search_params_query.rb +0 -212
  81. data/lib/algolia/models/recommend/trending_facets.rb +0 -258
  82. data/lib/algolia/models/recommend/trending_items.rb +0 -264
  83. data/lib/algolia/models/search/base_get_api_key_response.rb +0 -224
  84. data/lib/algolia/models/search/base_index_settings.rb +0 -426
  85. data/lib/algolia/models/search/base_search_params.rb +0 -635
  86. data/lib/algolia/models/search/base_search_params_without_query.rb +0 -616
  87. data/lib/algolia/models/search/base_search_response.rb +0 -499
  88. data/lib/algolia/models/search/browse_pagination.rb +0 -274
  89. data/lib/algolia/models/search/cursor.rb +0 -209
  90. data/lib/algolia/models/search/error_base.rb +0 -212
  91. data/lib/algolia/models/search/index_settings_as_search_params.rb +0 -788
  92. data/lib/algolia/models/search/params.rb +0 -236
  93. data/lib/algolia/models/search/search_for_facets_options.rb +0 -293
  94. data/lib/algolia/models/search/search_hits.rb +0 -240
  95. data/lib/algolia/models/search/search_pagination.rb +0 -282
  96. data/lib/algolia/models/search/search_params_query.rb +0 -212
  97. data/lib/algolia/models/search/with_primary.rb +0 -212
  98. data/lib/algolia/models/usage/error_base.rb +0 -212
  99. data/lib/algolia/models/usage/get_usage400_response.rb +0 -213
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 762e3a3327a02af1b131ecdf749fe99d5f3883e5f41103dbfbc0fb071e33322e
4
- data.tar.gz: 5957690dbe21d8eb7ac3021811688831c29c0f5da725a042780cd5e3d4f74ecf
3
+ metadata.gz: dc3e5a8f05ae1aec49daf5a6d57ce82012c9f0bd8d97491f80af9de068c77b4d
4
+ data.tar.gz: 20de9175b058d3f5b46d0a3d675ab8bc0902db0e94fffafcbf4992a2740ea91b
5
5
  SHA512:
6
- metadata.gz: 4d4253d71b54dd4e4c5934febad5bfcbe90f525a109cd0dbfb4dda974bda51c1674043144e94009edae70134a3062cdcddb1983df73c991009a40c05180b6083
7
- data.tar.gz: 5ea670316de968caee356eb9829c28a9ca2816f70046c745a982bb7bae23996c976f2d4263d3854c911940dd5512e030203cb20e07434f35a36d43e97eea64c6
6
+ metadata.gz: 507dc3326da3951a9a4c7ef68514ef8e65d42b90f8a7824a783187e5309e694bb163e1fcc151f4e270a434c84ad965ec318f993ec924b454fff54d88a6c7c4ff
7
+ data.tar.gz: 1f77a1c75b00f255bed2a80759af9a5870618e372e3c9484a519c7f196f7e21a69b717a0fd8ac79dfd641434aa712a9d77d303f886fcc1bb2a841f2d4925329b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.0.0.beta.12](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.11...3.0.0.beta.12)
2
+
3
+ - [e982ddf0a](https://github.com/algolia/api-clients-automation/commit/e982ddf0a) fix(specs): built-in ops accept also int ([#3450](https://github.com/algolia/api-clients-automation/pull/3450)) by [@kai687](https://github.com/kai687/)
4
+ - [9a2e7a837](https://github.com/algolia/api-clients-automation/commit/9a2e7a837) fix(specs): required prop for dictionaryEntry ([#3449](https://github.com/algolia/api-clients-automation/pull/3449)) by [@kai687](https://github.com/kai687/)
5
+ - [41d86ce68](https://github.com/algolia/api-clients-automation/commit/41d86ce68) feat(clients): delete unused models ([#3445](https://github.com/algolia/api-clients-automation/pull/3445)) by [@millotp](https://github.com/millotp/)
6
+ - [e17970142](https://github.com/algolia/api-clients-automation/commit/e17970142) fix(specs): proper title with linter ([#3444](https://github.com/algolia/api-clients-automation/pull/3444)) by [@millotp](https://github.com/millotp/)
7
+ - [8fbbd5ebd](https://github.com/algolia/api-clients-automation/commit/8fbbd5ebd) fix(specs): getObject return object ([#3446](https://github.com/algolia/api-clients-automation/pull/3446)) by [@millotp](https://github.com/millotp/)
8
+ - [a35e814ab](https://github.com/algolia/api-clients-automation/commit/a35e814ab) fix(specs): clarify decompounding limitations ([#3227](https://github.com/algolia/api-clients-automation/pull/3227)) by [@kai687](https://github.com/kai687/)
9
+
1
10
  ## [3.0.0.beta.11](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.10...3.0.0.beta.11)
2
11
 
3
12
  - [3ec5f5f7e](https://github.com/algolia/api-clients-automation/commit/3ec5f5f7e) feat(specs): add v2 endpoints for ingestion ([#3416](https://github.com/algolia/api-clients-automation/pull/3416)) by [@shortcuts](https://github.com/shortcuts/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.0.0.beta.11)
4
+ algolia (3.0.0.beta.12)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -15,7 +15,7 @@ GEM
15
15
  faraday (2.10.0)
16
16
  faraday-net_http (>= 2.0, < 3.2)
17
17
  logger
18
- faraday-net_http (3.1.0)
18
+ faraday-net_http (3.1.1)
19
19
  net-http
20
20
  faraday-net_http_persistent (2.1.0)
21
21
  faraday (~> 2.5)
@@ -428,13 +428,10 @@ module Algolia
428
428
  # - settings
429
429
  # @param index_name [String] Query Suggestions index name. (required)
430
430
  # @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)
431
- # @return [GetConfigStatus200Response]
431
+ # @return [ConfigStatus]
432
432
  def get_config_status(index_name, request_options = {})
433
433
  response = get_config_status_with_http_info(index_name, request_options)
434
- @api_client.deserialize(
435
- response.body,
436
- request_options[:debug_return_type] || "QuerySuggestions::GetConfigStatus200Response"
437
- )
434
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "QuerySuggestions::ConfigStatus")
438
435
  end
439
436
 
440
437
  # Retrieves the logs for a single Query Suggestions index.
@@ -475,13 +472,10 @@ module Algolia
475
472
  # - settings
476
473
  # @param index_name [String] Query Suggestions index name. (required)
477
474
  # @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)
478
- # @return [GetLogFile200Response]
475
+ # @return [LogFile]
479
476
  def get_log_file(index_name, request_options = {})
480
477
  response = get_log_file_with_http_info(index_name, request_options)
481
- @api_client.deserialize(
482
- response.body,
483
- request_options[:debug_return_type] || "QuerySuggestions::GetLogFile200Response"
484
- )
478
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "QuerySuggestions::LogFile")
485
479
  end
486
480
 
487
481
  # Updates a QuerySuggestions configuration.
@@ -1389,10 +1389,10 @@ module Algolia
1389
1389
  # @param object_id [String] Unique record identifier. (required)
1390
1390
  # @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. &#x60;objectID&#x60; is always retrieved. Attributes included in &#x60;unretrievableAttributes&#x60; won&#39;t be retrieved unless the request is authenticated with the admin API key.
1391
1391
  # @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)
1392
- # @return [Hash<String, String>]
1392
+ # @return [Object]
1393
1393
  def get_object(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
1394
1394
  response = get_object_with_http_info(index_name, object_id, attributes_to_retrieve, request_options)
1395
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::Hash<String, String>")
1395
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::Object")
1396
1396
  end
1397
1397
 
1398
1398
  # Retrieves one or more records, potentially from different indices. Records are returned in the same order as the requests.
@@ -275,7 +275,7 @@ module Algolia
275
275
  # @param end_date [String] End date of the period to analyze, in &#x60;YYYY-MM-DD&#x60; format. (required)
276
276
  # @param granularity [Granularity] Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (default to 'daily')
277
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)
278
- # @return [GetUsage200Response]
278
+ # @return [IndexUsage]
279
279
  def get_index_usage(statistic, index_name, start_date, end_date, granularity = nil, request_options = {})
280
280
  response = get_index_usage_with_http_info(
281
281
  statistic,
@@ -285,7 +285,7 @@ module Algolia
285
285
  granularity,
286
286
  request_options
287
287
  )
288
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::GetUsage200Response")
288
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::IndexUsage")
289
289
  end
290
290
 
291
291
  # Retrieves usage statistics evaluated over a specified period.
@@ -339,10 +339,10 @@ module Algolia
339
339
  # @param end_date [String] End date of the period to analyze, in &#x60;YYYY-MM-DD&#x60; format. (required)
340
340
  # @param granularity [Granularity] Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (default to 'daily')
341
341
  # @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)
342
- # @return [GetUsage200Response]
342
+ # @return [IndexUsage]
343
343
  def get_usage(statistic, start_date, end_date, granularity = nil, request_options = {})
344
344
  response = get_usage_with_http_info(statistic, start_date, end_date, granularity, request_options)
345
- @api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::GetUsage200Response")
345
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::IndexUsage")
346
346
  end
347
347
 
348
348
  end
@@ -6,7 +6,7 @@ require "time"
6
6
  module Algolia
7
7
  module Abtesting
8
8
  # Empty searches removed from the A/B test as a result of configuration settings.
9
- class FilterEffectsEmptySearch
9
+ class EmptySearchFilter
10
10
  # Number of users removed from the A/B test.
11
11
  attr_accessor :users_count
12
12
 
@@ -47,7 +47,7 @@ module Algolia
47
47
  if (!attributes.is_a?(Hash))
48
48
  raise(
49
49
  ArgumentError,
50
- "The input argument (attributes) must be a hash in `Algolia::FilterEffectsEmptySearch` initialize method"
50
+ "The input argument (attributes) must be a hash in `Algolia::EmptySearchFilter` initialize method"
51
51
  )
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module Algolia
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
57
  raise(
58
58
  ArgumentError,
59
- "`#{k}` is not a valid attribute in `Algolia::FilterEffectsEmptySearch`. Please check the name to make sure it's valid. List of attributes: " +
59
+ "`#{k}` is not a valid attribute in `Algolia::EmptySearchFilter`. Please check the name to make sure it's valid. List of attributes: " +
60
60
  self.class.attribute_map.keys.inspect
61
61
  )
62
62
  end
@@ -27,8 +27,8 @@ module Algolia
27
27
  # Attribute type mapping.
28
28
  def self.types_mapping
29
29
  {
30
- :outliers => :"FilterEffectsOutliers",
31
- :empty_search => :"FilterEffectsEmptySearch"
30
+ :outliers => :"OutliersFilter",
31
+ :empty_search => :"EmptySearchFilter"
32
32
  }
33
33
  end
34
34
 
@@ -6,7 +6,7 @@ require "time"
6
6
  module Algolia
7
7
  module Abtesting
8
8
  # Outliers removed from the A/B test as a result of configuration settings.
9
- class FilterEffectsOutliers
9
+ class OutliersFilter
10
10
  # Number of users removed from the A/B test.
11
11
  attr_accessor :users_count
12
12
 
@@ -47,7 +47,7 @@ module Algolia
47
47
  if (!attributes.is_a?(Hash))
48
48
  raise(
49
49
  ArgumentError,
50
- "The input argument (attributes) must be a hash in `Algolia::FilterEffectsOutliers` initialize method"
50
+ "The input argument (attributes) must be a hash in `Algolia::OutliersFilter` initialize method"
51
51
  )
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module Algolia
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
57
  raise(
58
58
  ArgumentError,
59
- "`#{k}` is not a valid attribute in `Algolia::FilterEffectsOutliers`. Please check the name to make sure it's valid. List of attributes: " +
59
+ "`#{k}` is not a valid attribute in `Algolia::OutliersFilter`. Please check the name to make sure it's valid. List of attributes: " +
60
60
  self.class.attribute_map.keys.inspect
61
61
  )
62
62
  end
@@ -6,7 +6,7 @@ require "time"
6
6
  module Algolia
7
7
  module Analytics
8
8
  # Click position.
9
- class ClickPositionsInner
9
+ class ClickPosition
10
10
  # Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click events are summed over the specified range. `-1` indicates the end of the list of search results.
11
11
  attr_accessor :position
12
12
 
@@ -47,7 +47,7 @@ module Algolia
47
47
  if (!attributes.is_a?(Hash))
48
48
  raise(
49
49
  ArgumentError,
50
- "The input argument (attributes) must be a hash in `Algolia::ClickPositionsInner` initialize method"
50
+ "The input argument (attributes) must be a hash in `Algolia::ClickPosition` initialize method"
51
51
  )
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module Algolia
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
57
  raise(
58
58
  ArgumentError,
59
- "`#{k}` is not a valid attribute in `Algolia::ClickPositionsInner`. Please check the name to make sure it's valid. List of attributes: " +
59
+ "`#{k}` is not a valid attribute in `Algolia::ClickPosition`. Please check the name to make sure it's valid. List of attributes: " +
60
60
  self.class.attribute_map.keys.inspect
61
61
  )
62
62
  end
@@ -24,7 +24,7 @@ module Algolia
24
24
  # Attribute type mapping.
25
25
  def self.types_mapping
26
26
  {
27
- :positions => :"Array<ClickPositionsInner>"
27
+ :positions => :"Array<ClickPosition>"
28
28
  }
29
29
  end
30
30
 
@@ -64,7 +64,7 @@ module Algolia
64
64
  :count => :"Integer",
65
65
  :click_through_rate => :"Float",
66
66
  :average_click_position => :"Float",
67
- :click_positions => :"Array<ClickPositionsInner>",
67
+ :click_positions => :"Array<ClickPosition>",
68
68
  :conversion_rate => :"Float",
69
69
  :tracked_search_count => :"Integer",
70
70
  :click_count => :"Integer",
@@ -84,7 +84,7 @@ module Algolia
84
84
  :count => :"Integer",
85
85
  :click_through_rate => :"Float",
86
86
  :average_click_position => :"Float",
87
- :click_positions => :"Array<ClickPositionsInner>",
87
+ :click_positions => :"Array<ClickPosition>",
88
88
  :conversion_rate => :"Float",
89
89
  :tracked_search_count => :"Integer",
90
90
  :click_count => :"Integer",
@@ -5,6 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Ingestion
8
+ # The selected streams of a singer or airbyte connector.
8
9
  class DockerStreamsInput
9
10
  attr_accessor :streams
10
11
 
@@ -6,7 +6,7 @@ require "time"
6
6
  module Algolia
7
7
  module Ingestion
8
8
  # The error if the transformation failed.
9
- class TransformationTryResponseError
9
+ class TransformationError
10
10
  # The error status code.
11
11
  attr_accessor :code
12
12
 
@@ -47,7 +47,7 @@ module Algolia
47
47
  if (!attributes.is_a?(Hash))
48
48
  raise(
49
49
  ArgumentError,
50
- "The input argument (attributes) must be a hash in `Algolia::TransformationTryResponseError` initialize method"
50
+ "The input argument (attributes) must be a hash in `Algolia::TransformationError` initialize method"
51
51
  )
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module Algolia
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
57
  raise(
58
58
  ArgumentError,
59
- "`#{k}` is not a valid attribute in `Algolia::TransformationTryResponseError`. Please check the name to make sure it's valid. List of attributes: " +
59
+ "`#{k}` is not a valid attribute in `Algolia::TransformationError`. Please check the name to make sure it's valid. List of attributes: " +
60
60
  self.class.attribute_map.keys.inspect
61
61
  )
62
62
  end
@@ -28,7 +28,7 @@ module Algolia
28
28
  def self.types_mapping
29
29
  {
30
30
  :payloads => :"Array<Object>",
31
- :error => :"TransformationTryResponseError"
31
+ :error => :"TransformationError"
32
32
  }
33
33
  end
34
34
 
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Monitoring
8
- class IncidentsInner
8
+ class IncidentEntry
9
9
  # Timestamp, measured in milliseconds since the Unix epoch.
10
10
  attr_accessor :t
11
11
 
@@ -45,7 +45,7 @@ module Algolia
45
45
  if (!attributes.is_a?(Hash))
46
46
  raise(
47
47
  ArgumentError,
48
- "The input argument (attributes) must be a hash in `Algolia::IncidentsInner` initialize method"
48
+ "The input argument (attributes) must be a hash in `Algolia::IncidentEntry` initialize method"
49
49
  )
50
50
  end
51
51
 
@@ -54,7 +54,7 @@ module Algolia
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
55
  raise(
56
56
  ArgumentError,
57
- "`#{k}` is not a valid attribute in `Algolia::IncidentsInner`. Please check the name to make sure it's valid. List of attributes: " +
57
+ "`#{k}` is not a valid attribute in `Algolia::IncidentEntry`. Please check the name to make sure it's valid. List of attributes: " +
58
58
  self.class.attribute_map.keys.inspect
59
59
  )
60
60
  end
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Monitoring
8
- class IndexingTimeResponseMetrics
8
+ class IndexingMetric
9
9
  attr_accessor :indexing
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -40,7 +40,7 @@ module Algolia
40
40
  if (!attributes.is_a?(Hash))
41
41
  raise(
42
42
  ArgumentError,
43
- "The input argument (attributes) must be a hash in `Algolia::IndexingTimeResponseMetrics` initialize method"
43
+ "The input argument (attributes) must be a hash in `Algolia::IndexingMetric` initialize method"
44
44
  )
45
45
  end
46
46
 
@@ -49,7 +49,7 @@ module Algolia
49
49
  if (!self.class.attribute_map.key?(k.to_sym))
50
50
  raise(
51
51
  ArgumentError,
52
- "`#{k}` is not a valid attribute in `Algolia::IndexingTimeResponseMetrics`. Please check the name to make sure it's valid. List of attributes: " +
52
+ "`#{k}` is not a valid attribute in `Algolia::IndexingMetric`. Please check the name to make sure it's valid. List of attributes: " +
53
53
  self.class.attribute_map.keys.inspect
54
54
  )
55
55
  end
@@ -23,7 +23,7 @@ module Algolia
23
23
  # Attribute type mapping.
24
24
  def self.types_mapping
25
25
  {
26
- :metrics => :"IndexingTimeResponseMetrics"
26
+ :metrics => :"IndexingMetric"
27
27
  }
28
28
  end
29
29
 
@@ -23,7 +23,7 @@ module Algolia
23
23
  # Attribute type mapping.
24
24
  def self.types_mapping
25
25
  {
26
- :metrics => :"InfrastructureResponseMetrics"
26
+ :metrics => :"Metrics"
27
27
  }
28
28
  end
29
29
 
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Monitoring
8
- class LatencyResponseMetrics
8
+ class LatencyMetric
9
9
  attr_accessor :latency
10
10
 
11
11
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -40,7 +40,7 @@ module Algolia
40
40
  if (!attributes.is_a?(Hash))
41
41
  raise(
42
42
  ArgumentError,
43
- "The input argument (attributes) must be a hash in `Algolia::LatencyResponseMetrics` initialize method"
43
+ "The input argument (attributes) must be a hash in `Algolia::LatencyMetric` initialize method"
44
44
  )
45
45
  end
46
46
 
@@ -49,7 +49,7 @@ module Algolia
49
49
  if (!self.class.attribute_map.key?(k.to_sym))
50
50
  raise(
51
51
  ArgumentError,
52
- "`#{k}` is not a valid attribute in `Algolia::LatencyResponseMetrics`. Please check the name to make sure it's valid. List of attributes: " +
52
+ "`#{k}` is not a valid attribute in `Algolia::LatencyMetric`. Please check the name to make sure it's valid. List of attributes: " +
53
53
  self.class.attribute_map.keys.inspect
54
54
  )
55
55
  end
@@ -23,7 +23,7 @@ module Algolia
23
23
  # Attribute type mapping.
24
24
  def self.types_mapping
25
25
  {
26
- :metrics => :"LatencyResponseMetrics"
26
+ :metrics => :"LatencyMetric"
27
27
  }
28
28
  end
29
29
 
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Monitoring
8
- class InfrastructureResponseMetrics
8
+ class Metrics
9
9
  # CPU idleness in %.
10
10
  attr_accessor :cpu_usage
11
11
 
@@ -59,10 +59,7 @@ module Algolia
59
59
  # @param [Hash] attributes Model attributes in the form of hash
60
60
  def initialize(attributes = {})
61
61
  if (!attributes.is_a?(Hash))
62
- raise(
63
- ArgumentError,
64
- "The input argument (attributes) must be a hash in `Algolia::InfrastructureResponseMetrics` initialize method"
65
- )
62
+ raise ArgumentError, "The input argument (attributes) must be a hash in `Algolia::Metrics` initialize method"
66
63
  end
67
64
 
68
65
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -70,7 +67,7 @@ module Algolia
70
67
  if (!self.class.attribute_map.key?(k.to_sym))
71
68
  raise(
72
69
  ArgumentError,
73
- "`#{k}` is not a valid attribute in `Algolia::InfrastructureResponseMetrics`. Please check the name to make sure it's valid. List of attributes: " +
70
+ "`#{k}` is not a valid attribute in `Algolia::Metrics`. Please check the name to make sure it's valid. List of attributes: " +
74
71
  self.class.attribute_map.keys.inspect
75
72
  )
76
73
  end
@@ -5,7 +5,7 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Monitoring
8
- class TimeInner
8
+ class TimeEntry
9
9
  # Timestamp, measured in milliseconds since the Unix epoch.
10
10
  attr_accessor :t
11
11
 
@@ -46,7 +46,7 @@ module Algolia
46
46
  if (!attributes.is_a?(Hash))
47
47
  raise(
48
48
  ArgumentError,
49
- "The input argument (attributes) must be a hash in `Algolia::TimeInner` initialize method"
49
+ "The input argument (attributes) must be a hash in `Algolia::TimeEntry` initialize method"
50
50
  )
51
51
  end
52
52
 
@@ -55,7 +55,7 @@ module Algolia
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
56
  raise(
57
57
  ArgumentError,
58
- "`#{k}` is not a valid attribute in `Algolia::TimeInner`. Please check the name to make sure it's valid. List of attributes: " +
58
+ "`#{k}` is not a valid attribute in `Algolia::TimeEntry`. Please check the name to make sure it's valid. List of attributes: " +
59
59
  self.class.attribute_map.keys.inspect
60
60
  )
61
61
  end
@@ -4,40 +4,31 @@ require "date"
4
4
  require "time"
5
5
 
6
6
  module Algolia
7
- module Search
8
- class SearchForHitsOptions
9
- # Index name (case-sensitive).
7
+ module QuerySuggestions
8
+ class ConfigStatus
9
+ # Name of the Query Suggestions index (case-sensitive).
10
10
  attr_accessor :index_name
11
11
 
12
- attr_accessor :type
13
-
14
- class EnumAttributeValidator
15
- attr_reader :datatype
16
- attr_reader :allowable_values
17
-
18
- def initialize(datatype, allowable_values)
19
- @allowable_values = allowable_values.map do |value|
20
- case datatype.to_s
21
- when /Integer/i
22
- value.to_i
23
- when /Float/i
24
- value.to_f
25
- else
26
- value
27
- end
28
- end
29
- end
12
+ # Whether the creation or update of the Query Suggestions index is in progress.
13
+ attr_accessor :is_running
30
14
 
31
- def valid?(value)
32
- !value || allowable_values.include?(value)
33
- end
34
- end
15
+ # Date and time when the Query Suggestions index was last built, in RFC 3339 format.
16
+ attr_accessor :last_built_at
17
+
18
+ # Date and time when the Query Suggestions index was last updated successfully.
19
+ attr_accessor :last_successful_built_at
20
+
21
+ # Duration of the last successful build in seconds.
22
+ attr_accessor :last_successful_build_duration
35
23
 
36
24
  # Attribute mapping from ruby-style variable name to JSON key.
37
25
  def self.attribute_map
38
26
  {
39
27
  :index_name => :indexName,
40
- :type => :type
28
+ :is_running => :isRunning,
29
+ :last_built_at => :lastBuiltAt,
30
+ :last_successful_built_at => :lastSuccessfulBuiltAt,
31
+ :last_successful_build_duration => :lastSuccessfulBuildDuration
41
32
  }
42
33
  end
43
34
 
@@ -50,7 +41,10 @@ module Algolia
50
41
  def self.types_mapping
51
42
  {
52
43
  :index_name => :"String",
53
- :type => :"SearchTypeDefault"
44
+ :is_running => :"Boolean",
45
+ :last_built_at => :"String",
46
+ :last_successful_built_at => :"String",
47
+ :last_successful_build_duration => :"String"
54
48
  }
55
49
  end
56
50
 
@@ -67,7 +61,7 @@ module Algolia
67
61
  if (!attributes.is_a?(Hash))
68
62
  raise(
69
63
  ArgumentError,
70
- "The input argument (attributes) must be a hash in `Algolia::SearchForHitsOptions` initialize method"
64
+ "The input argument (attributes) must be a hash in `Algolia::ConfigStatus` initialize method"
71
65
  )
72
66
  end
73
67
 
@@ -76,7 +70,7 @@ module Algolia
76
70
  if (!self.class.attribute_map.key?(k.to_sym))
77
71
  raise(
78
72
  ArgumentError,
79
- "`#{k}` is not a valid attribute in `Algolia::SearchForHitsOptions`. Please check the name to make sure it's valid. List of attributes: " +
73
+ "`#{k}` is not a valid attribute in `Algolia::ConfigStatus`. Please check the name to make sure it's valid. List of attributes: " +
80
74
  self.class.attribute_map.keys.inspect
81
75
  )
82
76
  end
@@ -86,12 +80,22 @@ module Algolia
86
80
 
87
81
  if attributes.key?(:index_name)
88
82
  self.index_name = attributes[:index_name]
89
- else
90
- self.index_name = nil
91
83
  end
92
84
 
93
- if attributes.key?(:type)
94
- self.type = attributes[:type]
85
+ if attributes.key?(:is_running)
86
+ self.is_running = attributes[:is_running]
87
+ end
88
+
89
+ if attributes.key?(:last_built_at)
90
+ self.last_built_at = attributes[:last_built_at]
91
+ end
92
+
93
+ if attributes.key?(:last_successful_built_at)
94
+ self.last_successful_built_at = attributes[:last_successful_built_at]
95
+ end
96
+
97
+ if attributes.key?(:last_successful_build_duration)
98
+ self.last_successful_build_duration = attributes[:last_successful_build_duration]
95
99
  end
96
100
  end
97
101
 
@@ -101,7 +105,10 @@ module Algolia
101
105
  return true if self.equal?(other)
102
106
  self.class == other.class &&
103
107
  index_name == other.index_name &&
104
- type == other.type
108
+ is_running == other.is_running &&
109
+ last_built_at == other.last_built_at &&
110
+ last_successful_built_at == other.last_successful_built_at &&
111
+ last_successful_build_duration == other.last_successful_build_duration
105
112
  end
106
113
 
107
114
  # @see the `==` method
@@ -113,7 +120,7 @@ module Algolia
113
120
  # Calculates hash code according to all attributes.
114
121
  # @return [Integer] Hash code
115
122
  def hash
116
- [index_name, type].hash
123
+ [index_name, is_running, last_built_at, last_successful_built_at, last_successful_build_duration].hash
117
124
  end
118
125
 
119
126
  # Builds the object from hash
@@ -182,7 +189,7 @@ module Algolia
182
189
  # model
183
190
  else
184
191
  # models (e.g. Pet) or oneOf
185
- klass = Algolia::Search.const_get(type)
192
+ klass = Algolia::QuerySuggestions.const_get(type)
186
193
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
187
194
  .build_from_hash(value)
188
195
  end