algolia 3.18.0 → 3.19.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cfef852f09fa892158dfa5646a677e6f5bd6a47aa649d79fe72e300585a69a2
4
- data.tar.gz: 56d4eaeff8861511b24bb147044242d50db46efdf8316c2948507eae857d7574
3
+ metadata.gz: 1dc1d4b4b89f71b73d4977ac3fe520bb3685edf11ffe1ee95bca8374e2e1134a
4
+ data.tar.gz: 5b4208660bc7c81beea899cb8cee45e789d8b17053e66e53e620e5d2a24e67d7
5
5
  SHA512:
6
- metadata.gz: 3d7b274ed915307ed33e727e98d8203be3b1617bd12fa5969e6db593079616ead2de5ce062e8fc17c605e64777c6da7695eb5b92bfaa3305598032f33c61e9fe
7
- data.tar.gz: 4b0149c96e2a05b5c8cbca0d336fadb398fa28e939909526c0d340d841a9ede02b79dc3695084f465d004412450448e56dbac727d40fe6d5e8f6f8b867c6b083
6
+ metadata.gz: a92986647516aaa6d955704ef912d411e23b37976a988cf8cf672d1f72052e63e5ff6df870e655bff789f1d48fe8a673192468b277c65c1f8e526ba8ecf1aa6d
7
+ data.tar.gz: 967804977eba434d02da15689376bb88883728fbe835d0824eec79843c9cb4cf2aad8d8c250964d2fd7878a95f804cbe86c08edc943d1444076712ada010a4fa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [3.19.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.18.0...3.19.0)
2
+
3
+ - [6031284e24](https://github.com/algolia/api-clients-automation/commit/6031284e24) feat(specs): update try transformation specs for no-code ([#4974](https://github.com/algolia/api-clients-automation/pull/4974)) by [@mehmetaligok](https://github.com/mehmetaligok/)
4
+ - [2561c945f7](https://github.com/algolia/api-clients-automation/commit/2561c945f7) fix(clients): processingTimeMS should be optional ([#5004](https://github.com/algolia/api-clients-automation/pull/5004)) by [@Fluf22](https://github.com/Fluf22/)
5
+ - [973cc0c07e](https://github.com/algolia/api-clients-automation/commit/973cc0c07e) feat(specs): add new ingestion property for push ([#5007](https://github.com/algolia/api-clients-automation/pull/5007)) by [@shortcuts](https://github.com/shortcuts/)
6
+
1
7
  ## [3.18.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.17.0...3.18.0)
2
8
 
3
9
  - [835daccb48](https://github.com/algolia/api-clients-automation/commit/835daccb48) feat(specs): add with transformation helpers ([#4931](https://github.com/algolia/api-clients-automation/pull/4931)) 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.18.0)
4
+ algolia (3.19.0)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -2147,9 +2147,16 @@ module Algolia
2147
2147
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2148
2148
  # @param push_task_payload [PushTaskPayload] (required)
2149
2149
  # @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2150
+ # @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
2150
2151
  # @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)
2151
2152
  # @return [Http::Response] the response
2152
- def push_with_http_info(index_name, push_task_payload, watch = nil, request_options = {})
2153
+ def push_with_http_info(
2154
+ index_name,
2155
+ push_task_payload,
2156
+ watch = nil,
2157
+ reference_index_name = nil,
2158
+ request_options = {}
2159
+ )
2153
2160
  # verify the required parameter 'index_name' is set
2154
2161
  if @api_client.config.client_side_validation && index_name.nil?
2155
2162
  raise ArgumentError, "Parameter `index_name` is required when calling `push`."
@@ -2162,6 +2169,7 @@ module Algolia
2162
2169
  path = "/1/push/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
2163
2170
  query_params = {}
2164
2171
  query_params[:watch] = watch unless watch.nil?
2172
+ query_params[:referenceIndexName] = reference_index_name unless reference_index_name.nil?
2165
2173
  query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
2166
2174
  header_params = {}
2167
2175
  header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
@@ -2190,10 +2198,11 @@ module Algolia
2190
2198
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2191
2199
  # @param push_task_payload [PushTaskPayload] (required)
2192
2200
  # @param watch [Boolean] When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2201
+ # @param reference_index_name [String] This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
2193
2202
  # @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)
2194
2203
  # @return [WatchResponse]
2195
- def push(index_name, push_task_payload, watch = nil, request_options = {})
2196
- response = push_with_http_info(index_name, push_task_payload, watch, request_options)
2204
+ def push(index_name, push_task_payload, watch = nil, reference_index_name = nil, request_options = {})
2205
+ response = push_with_http_info(index_name, push_task_payload, watch, reference_index_name, request_options)
2197
2206
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::WatchResponse")
2198
2207
  end
2199
2208
 
@@ -300,8 +300,6 @@ module Algolia
300
300
 
301
301
  if attributes.key?(:processing_time_ms)
302
302
  self.processing_time_ms = attributes[:processing_time_ms]
303
- else
304
- self.processing_time_ms = nil
305
303
  end
306
304
 
307
305
  if attributes.key?(:processing_timings_ms)
@@ -91,14 +91,10 @@ module Algolia
91
91
 
92
92
  if attributes.key?(:type)
93
93
  self.type = attributes[:type]
94
- else
95
- self.type = nil
96
94
  end
97
95
 
98
96
  if attributes.key?(:input)
99
97
  self.input = attributes[:input]
100
- else
101
- self.input = nil
102
98
  end
103
99
 
104
100
  if attributes.key?(:description)
@@ -11,6 +11,10 @@ module Algolia
11
11
  # It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
12
12
  attr_accessor :code
13
13
 
14
+ attr_accessor :type
15
+
16
+ attr_accessor :input
17
+
14
18
  # The record to apply the given code to.
15
19
  attr_accessor :sample_record
16
20
 
@@ -20,6 +24,8 @@ module Algolia
20
24
  def self.attribute_map
21
25
  {
22
26
  :code => :code,
27
+ :type => :type,
28
+ :input => :input,
23
29
  :sample_record => :sampleRecord,
24
30
  :authentications => :authentications
25
31
  }
@@ -29,6 +35,8 @@ module Algolia
29
35
  def self.types_mapping
30
36
  {
31
37
  :code => :"String",
38
+ :type => :"TransformationType",
39
+ :input => :"TransformationInput",
32
40
  :sample_record => :"Object",
33
41
  :authentications => :"Array<AuthenticationCreate>"
34
42
  }
@@ -66,8 +74,14 @@ module Algolia
66
74
 
67
75
  if attributes.key?(:code)
68
76
  self.code = attributes[:code]
69
- else
70
- self.code = nil
77
+ end
78
+
79
+ if attributes.key?(:type)
80
+ self.type = attributes[:type]
81
+ end
82
+
83
+ if attributes.key?(:input)
84
+ self.input = attributes[:input]
71
85
  end
72
86
 
73
87
  if attributes.key?(:sample_record)
@@ -89,6 +103,8 @@ module Algolia
89
103
  return true if self.equal?(other)
90
104
  self.class == other.class &&
91
105
  code == other.code &&
106
+ type == other.type &&
107
+ input == other.input &&
92
108
  sample_record == other.sample_record &&
93
109
  authentications == other.authentications
94
110
  end
@@ -102,7 +118,7 @@ module Algolia
102
118
  # Calculates hash code according to all attributes.
103
119
  # @return [Integer] Hash code
104
120
  def hash
105
- [code, sample_record, authentications].hash
121
+ [code, type, input, sample_record, authentications].hash
106
122
  end
107
123
 
108
124
  # Builds the object from hash
@@ -284,8 +284,6 @@ module Algolia
284
284
 
285
285
  if attributes.key?(:processing_time_ms)
286
286
  self.processing_time_ms = attributes[:processing_time_ms]
287
- else
288
- self.processing_time_ms = nil
289
287
  end
290
288
 
291
289
  if attributes.key?(:processing_timings_ms)
@@ -301,8 +301,6 @@ module Algolia
301
301
 
302
302
  if attributes.key?(:processing_time_ms)
303
303
  self.processing_time_ms = attributes[:processing_time_ms]
304
- else
305
- self.processing_time_ms = nil
306
304
  end
307
305
 
308
306
  if attributes.key?(:processing_timings_ms)
@@ -284,8 +284,6 @@ module Algolia
284
284
 
285
285
  if attributes.key?(:processing_time_ms)
286
286
  self.processing_time_ms = attributes[:processing_time_ms]
287
- else
288
- self.processing_time_ms = nil
289
287
  end
290
288
 
291
289
  if attributes.key?(:processing_timings_ms)
@@ -3,5 +3,5 @@
3
3
  # 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.
4
4
 
5
5
  module Algolia
6
- VERSION = "3.18.0"
6
+ VERSION = "3.19.0"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.18.0
4
+ version: 3.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://alg.li/support