algolia 3.0.0.beta.11 → 3.0.0.beta.13

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/algolia/api/ingestion_client.rb +127 -3
  5. data/lib/algolia/api/query_suggestions_client.rb +4 -10
  6. data/lib/algolia/api/search_client.rb +2 -2
  7. data/lib/algolia/api/usage_client.rb +4 -4
  8. data/lib/algolia/models/abtesting/{filter_effects_empty_search.rb → empty_search_filter.rb} +3 -3
  9. data/lib/algolia/models/abtesting/filter_effects.rb +2 -2
  10. data/lib/algolia/models/abtesting/{filter_effects_outliers.rb → outliers_filter.rb} +3 -3
  11. data/lib/algolia/models/analytics/{click_positions_inner.rb → click_position.rb} +3 -3
  12. data/lib/algolia/models/analytics/get_click_positions_response.rb +1 -1
  13. data/lib/algolia/models/analytics/top_search_with_analytics.rb +1 -1
  14. data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +1 -1
  15. data/lib/algolia/models/ingestion/destination.rb +15 -4
  16. data/lib/algolia/models/ingestion/destination_create.rb +15 -4
  17. data/lib/algolia/models/ingestion/destination_input.rb +1 -2
  18. data/lib/algolia/models/ingestion/destination_update.rb +15 -4
  19. data/lib/algolia/models/ingestion/docker_streams_input.rb +1 -0
  20. data/lib/algolia/models/ingestion/entity_type.rb +32 -0
  21. data/lib/algolia/models/ingestion/{destination_index_prefix.rb → model.rb} +55 -15
  22. data/lib/algolia/models/{recommend/trending_items.rb → ingestion/run_source_payload.rb} +39 -34
  23. data/lib/algolia/models/{search/base_get_api_key_response.rb → ingestion/run_source_response.rb} +19 -15
  24. data/lib/algolia/models/ingestion/{transformation_try_response_error.rb → transformation_error.rb} +3 -3
  25. data/lib/algolia/models/ingestion/{source_shopify_base.rb → transformation_models.rb} +14 -12
  26. data/lib/algolia/models/ingestion/transformation_try_response.rb +1 -1
  27. data/lib/algolia/models/monitoring/{incidents_inner.rb → incident_entry.rb} +3 -3
  28. data/lib/algolia/models/monitoring/{indexing_time_response_metrics.rb → indexing_metric.rb} +3 -3
  29. data/lib/algolia/models/monitoring/indexing_time_response.rb +1 -1
  30. data/lib/algolia/models/monitoring/infrastructure_response.rb +1 -1
  31. data/lib/algolia/models/monitoring/{latency_response_metrics.rb → latency_metric.rb} +3 -3
  32. data/lib/algolia/models/monitoring/latency_response.rb +1 -1
  33. data/lib/algolia/models/monitoring/{infrastructure_response_metrics.rb → metrics.rb} +3 -6
  34. data/lib/algolia/models/monitoring/{time_inner.rb → time_entry.rb} +3 -3
  35. data/lib/algolia/models/{search/search_for_hits_options.rb → query-suggestions/config_status.rb} +43 -36
  36. data/lib/algolia/models/{recommend/related_products.rb → query-suggestions/log_file.rb} +36 -32
  37. data/lib/algolia/models/recommend/around_precision.rb +1 -1
  38. data/lib/algolia/models/recommend/fallback_params.rb +1 -1
  39. data/lib/algolia/models/recommend/{around_precision_from_value_inner.rb → range.rb} +3 -6
  40. data/lib/algolia/models/recommend/recommend_rule.rb +1 -1
  41. data/lib/algolia/models/recommend/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  42. data/lib/algolia/models/recommend/redirect_rule_index_metadata.rb +1 -1
  43. data/lib/algolia/models/recommend/{recommend_rule_metadata.rb → rule_metadata.rb} +3 -3
  44. data/lib/algolia/models/recommend/search_params.rb +1 -1
  45. data/lib/algolia/models/recommend/search_params_object.rb +1 -1
  46. data/lib/algolia/models/search/around_precision.rb +1 -1
  47. data/lib/algolia/models/search/browse_params_object.rb +1 -1
  48. data/lib/algolia/models/search/built_in_operation.rb +1 -2
  49. data/lib/algolia/models/search/built_in_operation_value.rb +105 -0
  50. data/lib/algolia/models/search/consequence_params.rb +1 -1
  51. data/lib/algolia/models/search/dictionary_entry.rb +13 -6
  52. data/lib/algolia/models/search/dictionary_entry_type.rb +32 -0
  53. data/lib/algolia/models/search/index_settings.rb +2 -2
  54. data/lib/algolia/models/search/multiple_batch_request.rb +0 -2
  55. data/lib/algolia/models/search/{around_precision_from_value_inner.rb → range.rb} +3 -6
  56. data/lib/algolia/models/search/{redirect_rule_index_metadata_data.rb → redirect_rule_index_data.rb} +3 -3
  57. data/lib/algolia/models/search/redirect_rule_index_metadata.rb +1 -1
  58. data/lib/algolia/models/search/search_for_facets.rb +1 -1
  59. data/lib/algolia/models/search/search_for_hits.rb +1 -1
  60. data/lib/algolia/models/search/search_params_object.rb +1 -1
  61. data/lib/algolia/models/search/search_params_string.rb +1 -0
  62. data/lib/algolia/models/search/settings_response.rb +2 -2
  63. data/lib/algolia/models/usage/{get_usage400_response_error_errors_inner.rb → error_item.rb} +3 -3
  64. data/lib/algolia/models/usage/{get_usage400_response_error.rb → forbidden_error.rb} +4 -4
  65. data/lib/algolia/models/usage/{get_usage200_response.rb → index_usage.rb} +4 -4
  66. data/lib/algolia/models/usage/invalid_request_error.rb +231 -0
  67. data/lib/algolia/models/usage/{get_usage200_response_statistics_inner.rb → statistic_entry.rb} +3 -3
  68. data/lib/algolia/version.rb +1 -1
  69. metadata +30 -65
  70. data/lib/algolia/models/abtesting/custom_search_params.rb +0 -214
  71. data/lib/algolia/models/abtesting/error_base.rb +0 -212
  72. data/lib/algolia/models/analytics/error_base.rb +0 -212
  73. data/lib/algolia/models/ingestion/error_base.rb +0 -212
  74. data/lib/algolia/models/insights/error_base.rb +0 -212
  75. data/lib/algolia/models/monitoring/error_base.rb +0 -212
  76. data/lib/algolia/models/monitoring/get_servers403_response.rb +0 -211
  77. data/lib/algolia/models/personalization/error_base.rb +0 -212
  78. data/lib/algolia/models/query-suggestions/app_id.rb +0 -209
  79. data/lib/algolia/models/query-suggestions/error_base.rb +0 -212
  80. data/lib/algolia/models/recommend/base_recommend_request.rb +0 -281
  81. data/lib/algolia/models/recommend/base_search_params.rb +0 -635
  82. data/lib/algolia/models/recommend/base_search_params_without_query.rb +0 -616
  83. data/lib/algolia/models/recommend/base_search_response.rb +0 -499
  84. data/lib/algolia/models/recommend/error_base.rb +0 -212
  85. data/lib/algolia/models/recommend/frequently_bought_together.rb +0 -247
  86. data/lib/algolia/models/recommend/index_settings_as_search_params.rb +0 -788
  87. data/lib/algolia/models/recommend/looking_similar.rb +0 -256
  88. data/lib/algolia/models/recommend/recommendations_hits.rb +0 -215
  89. data/lib/algolia/models/recommend/recommended_for_you.rb +0 -244
  90. data/lib/algolia/models/recommend/search_pagination.rb +0 -282
  91. data/lib/algolia/models/recommend/search_params_query.rb +0 -212
  92. data/lib/algolia/models/recommend/trending_facets.rb +0 -258
  93. data/lib/algolia/models/search/base_index_settings.rb +0 -426
  94. data/lib/algolia/models/search/base_search_params.rb +0 -635
  95. data/lib/algolia/models/search/base_search_params_without_query.rb +0 -616
  96. data/lib/algolia/models/search/base_search_response.rb +0 -499
  97. data/lib/algolia/models/search/browse_pagination.rb +0 -274
  98. data/lib/algolia/models/search/cursor.rb +0 -209
  99. data/lib/algolia/models/search/error_base.rb +0 -212
  100. data/lib/algolia/models/search/index_settings_as_search_params.rb +0 -788
  101. data/lib/algolia/models/search/params.rb +0 -236
  102. data/lib/algolia/models/search/search_for_facets_options.rb +0 -293
  103. data/lib/algolia/models/search/search_hits.rb +0 -240
  104. data/lib/algolia/models/search/search_pagination.rb +0 -282
  105. data/lib/algolia/models/search/search_params_query.rb +0 -212
  106. data/lib/algolia/models/search/with_primary.rb +0 -212
  107. data/lib/algolia/models/usage/error_base.rb +0 -212
  108. data/lib/algolia/models/usage/get_usage400_response.rb +0 -213
@@ -0,0 +1,32 @@
1
+ # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
+
3
+ require "date"
4
+ require "time"
5
+
6
+ module Algolia
7
+ module Ingestion
8
+ class EntityType
9
+ PRODUCT = "product".freeze
10
+ COLLECTION = "collection".freeze
11
+
12
+ def self.all_vars
13
+ @all_vars ||= [PRODUCT, COLLECTION].freeze
14
+ end
15
+
16
+ # Builds the enum from string
17
+ # @param [String] The enum value in the form of the string
18
+ # @return [String] The enum value
19
+ def self.build_from_hash(value)
20
+ new.build_from_hash(value)
21
+ end
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def build_from_hash(value)
27
+ return value if EntityType.all_vars.include?(value)
28
+ raise "Invalid ENUM value #{value} for class #EntityType"
29
+ end
30
+ end
31
+ end
32
+ end
@@ -5,14 +5,25 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Ingestion
8
- class DestinationIndexPrefix
9
- # String added to the beginning of all indices created by this destination.
10
- attr_accessor :index_prefix
8
+ class Model
9
+ attr_accessor :fullname
10
+
11
+ attr_accessor :model_name
12
+
13
+ attr_accessor :system_prompt
14
+
15
+ attr_accessor :id
16
+
17
+ attr_accessor :provider
11
18
 
12
19
  # Attribute mapping from ruby-style variable name to JSON key.
13
20
  def self.attribute_map
14
21
  {
15
- :index_prefix => :indexPrefix
22
+ :fullname => :fullname,
23
+ :model_name => :modelName,
24
+ :system_prompt => :systemPrompt,
25
+ :id => :id,
26
+ :provider => :provider
16
27
  }
17
28
  end
18
29
 
@@ -24,7 +35,11 @@ module Algolia
24
35
  # Attribute type mapping.
25
36
  def self.types_mapping
26
37
  {
27
- :index_prefix => :"String"
38
+ :fullname => :"String",
39
+ :model_name => :"String",
40
+ :system_prompt => :"String",
41
+ :id => :"String",
42
+ :provider => :"String"
28
43
  }
29
44
  end
30
45
 
@@ -39,10 +54,7 @@ module Algolia
39
54
  # @param [Hash] attributes Model attributes in the form of hash
40
55
  def initialize(attributes = {})
41
56
  if (!attributes.is_a?(Hash))
42
- raise(
43
- ArgumentError,
44
- "The input argument (attributes) must be a hash in `Algolia::DestinationIndexPrefix` initialize method"
45
- )
57
+ raise ArgumentError, "The input argument (attributes) must be a hash in `Algolia::Model` initialize method"
46
58
  end
47
59
 
48
60
  # check to see if the attribute exists and convert string to symbol for hash key
@@ -50,7 +62,7 @@ module Algolia
50
62
  if (!self.class.attribute_map.key?(k.to_sym))
51
63
  raise(
52
64
  ArgumentError,
53
- "`#{k}` is not a valid attribute in `Algolia::DestinationIndexPrefix`. Please check the name to make sure it's valid. List of attributes: " +
65
+ "`#{k}` is not a valid attribute in `Algolia::Model`. Please check the name to make sure it's valid. List of attributes: " +
54
66
  self.class.attribute_map.keys.inspect
55
67
  )
56
68
  end
@@ -58,10 +70,34 @@ module Algolia
58
70
  h[k.to_sym] = v
59
71
  }
60
72
 
61
- if attributes.key?(:index_prefix)
62
- self.index_prefix = attributes[:index_prefix]
73
+ if attributes.key?(:fullname)
74
+ self.fullname = attributes[:fullname]
75
+ else
76
+ self.fullname = nil
77
+ end
78
+
79
+ if attributes.key?(:model_name)
80
+ self.model_name = attributes[:model_name]
81
+ else
82
+ self.model_name = nil
83
+ end
84
+
85
+ if attributes.key?(:system_prompt)
86
+ self.system_prompt = attributes[:system_prompt]
87
+ else
88
+ self.system_prompt = nil
89
+ end
90
+
91
+ if attributes.key?(:id)
92
+ self.id = attributes[:id]
93
+ else
94
+ self.id = nil
95
+ end
96
+
97
+ if attributes.key?(:provider)
98
+ self.provider = attributes[:provider]
63
99
  else
64
- self.index_prefix = nil
100
+ self.provider = nil
65
101
  end
66
102
  end
67
103
 
@@ -70,7 +106,11 @@ module Algolia
70
106
  def ==(other)
71
107
  return true if self.equal?(other)
72
108
  self.class == other.class &&
73
- index_prefix == other.index_prefix
109
+ fullname == other.fullname &&
110
+ model_name == other.model_name &&
111
+ system_prompt == other.system_prompt &&
112
+ id == other.id &&
113
+ provider == other.provider
74
114
  end
75
115
 
76
116
  # @see the `==` method
@@ -82,7 +122,7 @@ module Algolia
82
122
  # Calculates hash code according to all attributes.
83
123
  # @return [Integer] Hash code
84
124
  def hash
85
- [index_prefix].hash
125
+ [fullname, model_name, system_prompt, id, provider].hash
86
126
  end
87
127
 
88
128
  # Builds the object from hash
@@ -4,17 +4,18 @@ require "date"
4
4
  require "time"
5
5
 
6
6
  module Algolia
7
- module Recommend
8
- class TrendingItems
9
- # Facet attribute. To be used in combination with `facetValue`. If specified, only recommendations matching the facet filter will be returned.
10
- attr_accessor :facet_name
7
+ module Ingestion
8
+ class RunSourcePayload
9
+ # List of index names to include in reidexing/update.
10
+ attr_accessor :index_to_include
11
11
 
12
- # Facet value. To be used in combination with `facetName`. If specified, only recommendations matching the facet filter will be returned.
13
- attr_accessor :facet_value
12
+ # List of index names to exclude in reidexing/update.
13
+ attr_accessor :index_to_exclude
14
14
 
15
- attr_accessor :model
15
+ # List of entityID to update.
16
+ attr_accessor :entity_ids
16
17
 
17
- attr_accessor :fallback_parameters
18
+ attr_accessor :entity_type
18
19
 
19
20
  class EnumAttributeValidator
20
21
  attr_reader :datatype
@@ -41,10 +42,10 @@ module Algolia
41
42
  # Attribute mapping from ruby-style variable name to JSON key.
42
43
  def self.attribute_map
43
44
  {
44
- :facet_name => :facetName,
45
- :facet_value => :facetValue,
46
- :model => :model,
47
- :fallback_parameters => :fallbackParameters
45
+ :index_to_include => :indexToInclude,
46
+ :index_to_exclude => :indexToExclude,
47
+ :entity_ids => :entityIDs,
48
+ :entity_type => :entityType
48
49
  }
49
50
  end
50
51
 
@@ -56,10 +57,10 @@ module Algolia
56
57
  # Attribute type mapping.
57
58
  def self.types_mapping
58
59
  {
59
- :facet_name => :"String",
60
- :facet_value => :"String",
61
- :model => :"TrendingItemsModel",
62
- :fallback_parameters => :"SearchParamsObject"
60
+ :index_to_include => :"Array<String>",
61
+ :index_to_exclude => :"Array<String>",
62
+ :entity_ids => :"Array<String>",
63
+ :entity_type => :"EntityType"
63
64
  }
64
65
  end
65
66
 
@@ -76,7 +77,7 @@ module Algolia
76
77
  if (!attributes.is_a?(Hash))
77
78
  raise(
78
79
  ArgumentError,
79
- "The input argument (attributes) must be a hash in `Algolia::TrendingItems` initialize method"
80
+ "The input argument (attributes) must be a hash in `Algolia::RunSourcePayload` initialize method"
80
81
  )
81
82
  end
82
83
 
@@ -85,7 +86,7 @@ module Algolia
85
86
  if (!self.class.attribute_map.key?(k.to_sym))
86
87
  raise(
87
88
  ArgumentError,
88
- "`#{k}` is not a valid attribute in `Algolia::TrendingItems`. Please check the name to make sure it's valid. List of attributes: " +
89
+ "`#{k}` is not a valid attribute in `Algolia::RunSourcePayload`. Please check the name to make sure it's valid. List of attributes: " +
89
90
  self.class.attribute_map.keys.inspect
90
91
  )
91
92
  end
@@ -93,22 +94,26 @@ module Algolia
93
94
  h[k.to_sym] = v
94
95
  }
95
96
 
96
- if attributes.key?(:facet_name)
97
- self.facet_name = attributes[:facet_name]
97
+ if attributes.key?(:index_to_include)
98
+ if (value = attributes[:index_to_include]).is_a?(Array)
99
+ self.index_to_include = value
100
+ end
98
101
  end
99
102
 
100
- if attributes.key?(:facet_value)
101
- self.facet_value = attributes[:facet_value]
103
+ if attributes.key?(:index_to_exclude)
104
+ if (value = attributes[:index_to_exclude]).is_a?(Array)
105
+ self.index_to_exclude = value
106
+ end
102
107
  end
103
108
 
104
- if attributes.key?(:model)
105
- self.model = attributes[:model]
106
- else
107
- self.model = nil
109
+ if attributes.key?(:entity_ids)
110
+ if (value = attributes[:entity_ids]).is_a?(Array)
111
+ self.entity_ids = value
112
+ end
108
113
  end
109
114
 
110
- if attributes.key?(:fallback_parameters)
111
- self.fallback_parameters = attributes[:fallback_parameters]
115
+ if attributes.key?(:entity_type)
116
+ self.entity_type = attributes[:entity_type]
112
117
  end
113
118
  end
114
119
 
@@ -117,10 +122,10 @@ module Algolia
117
122
  def ==(other)
118
123
  return true if self.equal?(other)
119
124
  self.class == other.class &&
120
- facet_name == other.facet_name &&
121
- facet_value == other.facet_value &&
122
- model == other.model &&
123
- fallback_parameters == other.fallback_parameters
125
+ index_to_include == other.index_to_include &&
126
+ index_to_exclude == other.index_to_exclude &&
127
+ entity_ids == other.entity_ids &&
128
+ entity_type == other.entity_type
124
129
  end
125
130
 
126
131
  # @see the `==` method
@@ -132,7 +137,7 @@ module Algolia
132
137
  # Calculates hash code according to all attributes.
133
138
  # @return [Integer] Hash code
134
139
  def hash
135
- [facet_name, facet_value, model, fallback_parameters].hash
140
+ [index_to_include, index_to_exclude, entity_ids, entity_type].hash
136
141
  end
137
142
 
138
143
  # Builds the object from hash
@@ -201,7 +206,7 @@ module Algolia
201
206
  # model
202
207
  else
203
208
  # models (e.g. Pet) or oneOf
204
- klass = Algolia::Recommend.const_get(type)
209
+ klass = Algolia::Ingestion.const_get(type)
205
210
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
206
211
  .build_from_hash(value)
207
212
  end
@@ -4,18 +4,18 @@ require "date"
4
4
  require "time"
5
5
 
6
6
  module Algolia
7
- module Search
8
- class BaseGetApiKeyResponse
9
- # API key.
10
- attr_accessor :value
7
+ module Ingestion
8
+ class RunSourceResponse
9
+ # Map of taskID sent for reindex with the corresponding runID.
10
+ attr_accessor :task_with_run_id
11
11
 
12
- # Timestamp when the object was created, in milliseconds since the Unix epoch.
12
+ # Date of creation in RFC 3339 format.
13
13
  attr_accessor :created_at
14
14
 
15
15
  # Attribute mapping from ruby-style variable name to JSON key.
16
16
  def self.attribute_map
17
17
  {
18
- :value => :value,
18
+ :task_with_run_id => :taskWithRunID,
19
19
  :created_at => :createdAt
20
20
  }
21
21
  end
@@ -28,8 +28,8 @@ module Algolia
28
28
  # Attribute type mapping.
29
29
  def self.types_mapping
30
30
  {
31
- :value => :"String",
32
- :created_at => :"Integer"
31
+ :task_with_run_id => :"Hash<String, String>",
32
+ :created_at => :"String"
33
33
  }
34
34
  end
35
35
 
@@ -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::BaseGetApiKeyResponse` initialize method"
49
+ "The input argument (attributes) must be a hash in `Algolia::RunSourceResponse` 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::BaseGetApiKeyResponse`. Please check the name to make sure it's valid. List of attributes: " +
58
+ "`#{k}` is not a valid attribute in `Algolia::RunSourceResponse`. 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
@@ -63,8 +63,12 @@ module Algolia
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
- if attributes.key?(:value)
67
- self.value = attributes[:value]
66
+ if attributes.key?(:task_with_run_id)
67
+ if (value = attributes[:task_with_run_id]).is_a?(Hash)
68
+ self.task_with_run_id = value
69
+ end
70
+ else
71
+ self.task_with_run_id = nil
68
72
  end
69
73
 
70
74
  if attributes.key?(:created_at)
@@ -79,7 +83,7 @@ module Algolia
79
83
  def ==(other)
80
84
  return true if self.equal?(other)
81
85
  self.class == other.class &&
82
- value == other.value &&
86
+ task_with_run_id == other.task_with_run_id &&
83
87
  created_at == other.created_at
84
88
  end
85
89
 
@@ -92,7 +96,7 @@ module Algolia
92
96
  # Calculates hash code according to all attributes.
93
97
  # @return [Integer] Hash code
94
98
  def hash
95
- [value, created_at].hash
99
+ [task_with_run_id, created_at].hash
96
100
  end
97
101
 
98
102
  # Builds the object from hash
@@ -161,7 +165,7 @@ module Algolia
161
165
  # model
162
166
  else
163
167
  # models (e.g. Pet) or oneOf
164
- klass = Algolia::Search.const_get(type)
168
+ klass = Algolia::Ingestion.const_get(type)
165
169
  klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
166
170
  .build_from_hash(value)
167
171
  end
@@ -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
@@ -5,14 +5,14 @@ require "time"
5
5
 
6
6
  module Algolia
7
7
  module Ingestion
8
- class SourceShopifyBase
9
- # URL of the Shopify store.
10
- attr_accessor :shop_url
8
+ # List of available AI models for transformation purposes.
9
+ class TransformationModels
10
+ attr_accessor :llms
11
11
 
12
12
  # Attribute mapping from ruby-style variable name to JSON key.
13
13
  def self.attribute_map
14
14
  {
15
- :shop_url => :shopURL
15
+ :llms => :llms
16
16
  }
17
17
  end
18
18
 
@@ -24,7 +24,7 @@ module Algolia
24
24
  # Attribute type mapping.
25
25
  def self.types_mapping
26
26
  {
27
- :shop_url => :"String"
27
+ :llms => :"Array<Model>"
28
28
  }
29
29
  end
30
30
 
@@ -41,7 +41,7 @@ module Algolia
41
41
  if (!attributes.is_a?(Hash))
42
42
  raise(
43
43
  ArgumentError,
44
- "The input argument (attributes) must be a hash in `Algolia::SourceShopifyBase` initialize method"
44
+ "The input argument (attributes) must be a hash in `Algolia::TransformationModels` initialize method"
45
45
  )
46
46
  end
47
47
 
@@ -50,7 +50,7 @@ module Algolia
50
50
  if (!self.class.attribute_map.key?(k.to_sym))
51
51
  raise(
52
52
  ArgumentError,
53
- "`#{k}` is not a valid attribute in `Algolia::SourceShopifyBase`. Please check the name to make sure it's valid. List of attributes: " +
53
+ "`#{k}` is not a valid attribute in `Algolia::TransformationModels`. Please check the name to make sure it's valid. List of attributes: " +
54
54
  self.class.attribute_map.keys.inspect
55
55
  )
56
56
  end
@@ -58,10 +58,12 @@ module Algolia
58
58
  h[k.to_sym] = v
59
59
  }
60
60
 
61
- if attributes.key?(:shop_url)
62
- self.shop_url = attributes[:shop_url]
61
+ if attributes.key?(:llms)
62
+ if (value = attributes[:llms]).is_a?(Array)
63
+ self.llms = value
64
+ end
63
65
  else
64
- self.shop_url = nil
66
+ self.llms = nil
65
67
  end
66
68
  end
67
69
 
@@ -70,7 +72,7 @@ module Algolia
70
72
  def ==(other)
71
73
  return true if self.equal?(other)
72
74
  self.class == other.class &&
73
- shop_url == other.shop_url
75
+ llms == other.llms
74
76
  end
75
77
 
76
78
  # @see the `==` method
@@ -82,7 +84,7 @@ module Algolia
82
84
  # Calculates hash code according to all attributes.
83
85
  # @return [Integer] Hash code
84
86
  def hash
85
- [shop_url].hash
87
+ [llms].hash
86
88
  end
87
89
 
88
90
  # Builds the object from hash
@@ -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