algolia 3.19.0 → 3.20.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +8 -8
- data/lib/algolia/api/analytics_client.rb +8 -8
- data/lib/algolia/api/ingestion_client.rb +8 -8
- data/lib/algolia/api/insights_client.rb +8 -8
- data/lib/algolia/api/monitoring_client.rb +8 -8
- data/lib/algolia/api/personalization_client.rb +8 -8
- data/lib/algolia/api/query_suggestions_client.rb +8 -8
- data/lib/algolia/api/recommend_client.rb +8 -8
- data/lib/algolia/api/search_client.rb +8 -8
- data/lib/algolia/models/search/replace_all_objects_with_transformation_response.rb +235 -0
- data/lib/algolia/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bfa2f37069351ff91381e8a201051bf60a7a24a2cfde63be59ada18a776e452
|
4
|
+
data.tar.gz: 1aee42e21b7b2624c16389be504b81db3c9950cf0c3bc05273f5f92f0639f176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5e1d09eb9e986e760f099987b63af8e652110c5b9d8d4ac12ee7b695d4029377b5e4bb8cd785dd046c013cc454ab352c1adf966b0e6c78287c092d0ef6918b0
|
7
|
+
data.tar.gz: ebec72090065dd7379f5e768e8ccb4e2e9fa1e63a1aafdfaedf73448b28dc3722bf60eee81192b3771ae94a3fc3c77ebd53f4803208a5c97fe6ba6c4b1345329
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## [3.20.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.19.0...3.20.0)
|
2
|
+
|
3
|
+
- [a2ebbf496c](https://github.com/algolia/api-clients-automation/commit/a2ebbf496c) feat(clients): add `replaceAllObjectsWithTransformation` ([#5008](https://github.com/algolia/api-clients-automation/pull/5008)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
- [5e3869931b](https://github.com/algolia/api-clients-automation/commit/5e3869931b) chore(spec): fix comment of custom path ([#5014](https://github.com/algolia/api-clients-automation/pull/5014)) by [@millotp](https://github.com/millotp/)
|
5
|
+
|
1
6
|
## [3.19.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.18.0...3.19.0)
|
2
7
|
|
3
8
|
- [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/)
|
data/Gemfile.lock
CHANGED
@@ -115,7 +115,7 @@ module Algolia
|
|
115
115
|
|
116
116
|
# This method lets you send requests to the Algolia REST API.
|
117
117
|
|
118
|
-
# @param path [String] Path of the endpoint,
|
118
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
119
119
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
120
120
|
# @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)
|
121
121
|
# @return [Http::Response] the response
|
@@ -147,7 +147,7 @@ module Algolia
|
|
147
147
|
|
148
148
|
# This method lets you send requests to the Algolia REST API.
|
149
149
|
|
150
|
-
# @param path [String] Path of the endpoint,
|
150
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
151
151
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
152
152
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
153
153
|
# @return [Object]
|
@@ -158,7 +158,7 @@ module Algolia
|
|
158
158
|
|
159
159
|
# This method lets you send requests to the Algolia REST API.
|
160
160
|
|
161
|
-
# @param path [String] Path of the endpoint,
|
161
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
162
162
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
163
163
|
# @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)
|
164
164
|
# @return [Http::Response] the response
|
@@ -190,7 +190,7 @@ module Algolia
|
|
190
190
|
|
191
191
|
# This method lets you send requests to the Algolia REST API.
|
192
192
|
|
193
|
-
# @param path [String] Path of the endpoint,
|
193
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
194
194
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
195
195
|
# @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)
|
196
196
|
# @return [Object]
|
@@ -201,7 +201,7 @@ module Algolia
|
|
201
201
|
|
202
202
|
# This method lets you send requests to the Algolia REST API.
|
203
203
|
|
204
|
-
# @param path [String] Path of the endpoint,
|
204
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
205
205
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
206
206
|
# @param body [Object] Parameters to send with the custom request.
|
207
207
|
# @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)
|
@@ -234,7 +234,7 @@ module Algolia
|
|
234
234
|
|
235
235
|
# This method lets you send requests to the Algolia REST API.
|
236
236
|
|
237
|
-
# @param path [String] Path of the endpoint,
|
237
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
238
238
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
239
239
|
# @param body [Object] Parameters to send with the custom request.
|
240
240
|
# @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)
|
@@ -246,7 +246,7 @@ module Algolia
|
|
246
246
|
|
247
247
|
# This method lets you send requests to the Algolia REST API.
|
248
248
|
|
249
|
-
# @param path [String] Path of the endpoint,
|
249
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
250
250
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
251
251
|
# @param body [Object] Parameters to send with the custom request.
|
252
252
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -279,7 +279,7 @@ module Algolia
|
|
279
279
|
|
280
280
|
# This method lets you send requests to the Algolia REST API.
|
281
281
|
|
282
|
-
# @param path [String] Path of the endpoint,
|
282
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
283
283
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
284
284
|
# @param body [Object] Parameters to send with the custom request.
|
285
285
|
# @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)
|
@@ -71,7 +71,7 @@ module Algolia
|
|
71
71
|
|
72
72
|
# This method lets you send requests to the Algolia REST API.
|
73
73
|
|
74
|
-
# @param path [String] Path of the endpoint,
|
74
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
75
75
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
76
76
|
# @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)
|
77
77
|
# @return [Http::Response] the response
|
@@ -103,7 +103,7 @@ module Algolia
|
|
103
103
|
|
104
104
|
# This method lets you send requests to the Algolia REST API.
|
105
105
|
|
106
|
-
# @param path [String] Path of the endpoint,
|
106
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
107
107
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
108
108
|
# @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)
|
109
109
|
# @return [Object]
|
@@ -114,7 +114,7 @@ module Algolia
|
|
114
114
|
|
115
115
|
# This method lets you send requests to the Algolia REST API.
|
116
116
|
|
117
|
-
# @param path [String] Path of the endpoint,
|
117
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
118
118
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
119
119
|
# @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)
|
120
120
|
# @return [Http::Response] the response
|
@@ -146,7 +146,7 @@ module Algolia
|
|
146
146
|
|
147
147
|
# This method lets you send requests to the Algolia REST API.
|
148
148
|
|
149
|
-
# @param path [String] Path of the endpoint,
|
149
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
150
150
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
151
151
|
# @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)
|
152
152
|
# @return [Object]
|
@@ -157,7 +157,7 @@ module Algolia
|
|
157
157
|
|
158
158
|
# This method lets you send requests to the Algolia REST API.
|
159
159
|
|
160
|
-
# @param path [String] Path of the endpoint,
|
160
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
161
161
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
162
162
|
# @param body [Object] Parameters to send with the custom request.
|
163
163
|
# @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)
|
@@ -190,7 +190,7 @@ module Algolia
|
|
190
190
|
|
191
191
|
# This method lets you send requests to the Algolia REST API.
|
192
192
|
|
193
|
-
# @param path [String] Path of the endpoint,
|
193
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
194
194
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
195
195
|
# @param body [Object] Parameters to send with the custom request.
|
196
196
|
# @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)
|
@@ -202,7 +202,7 @@ module Algolia
|
|
202
202
|
|
203
203
|
# This method lets you send requests to the Algolia REST API.
|
204
204
|
|
205
|
-
# @param path [String] Path of the endpoint,
|
205
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
206
206
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
207
207
|
# @param body [Object] Parameters to send with the custom request.
|
208
208
|
# @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)
|
@@ -235,7 +235,7 @@ module Algolia
|
|
235
235
|
|
236
236
|
# This method lets you send requests to the Algolia REST API.
|
237
237
|
|
238
|
-
# @param path [String] Path of the endpoint,
|
238
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
239
239
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
240
240
|
# @param body [Object] Parameters to send with the custom request.
|
241
241
|
# @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)
|
@@ -345,7 +345,7 @@ module Algolia
|
|
345
345
|
|
346
346
|
# This method lets you send requests to the Algolia REST API.
|
347
347
|
|
348
|
-
# @param path [String] Path of the endpoint,
|
348
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
349
349
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
350
350
|
# @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)
|
351
351
|
# @return [Http::Response] the response
|
@@ -377,7 +377,7 @@ module Algolia
|
|
377
377
|
|
378
378
|
# This method lets you send requests to the Algolia REST API.
|
379
379
|
|
380
|
-
# @param path [String] Path of the endpoint,
|
380
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
381
381
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
382
382
|
# @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)
|
383
383
|
# @return [Object]
|
@@ -388,7 +388,7 @@ module Algolia
|
|
388
388
|
|
389
389
|
# This method lets you send requests to the Algolia REST API.
|
390
390
|
|
391
|
-
# @param path [String] Path of the endpoint,
|
391
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
392
392
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
393
393
|
# @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)
|
394
394
|
# @return [Http::Response] the response
|
@@ -420,7 +420,7 @@ module Algolia
|
|
420
420
|
|
421
421
|
# This method lets you send requests to the Algolia REST API.
|
422
422
|
|
423
|
-
# @param path [String] Path of the endpoint,
|
423
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
424
424
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
425
425
|
# @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)
|
426
426
|
# @return [Object]
|
@@ -431,7 +431,7 @@ module Algolia
|
|
431
431
|
|
432
432
|
# This method lets you send requests to the Algolia REST API.
|
433
433
|
|
434
|
-
# @param path [String] Path of the endpoint,
|
434
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
435
435
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
436
436
|
# @param body [Object] Parameters to send with the custom request.
|
437
437
|
# @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)
|
@@ -464,7 +464,7 @@ module Algolia
|
|
464
464
|
|
465
465
|
# This method lets you send requests to the Algolia REST API.
|
466
466
|
|
467
|
-
# @param path [String] Path of the endpoint,
|
467
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
468
468
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
469
469
|
# @param body [Object] Parameters to send with the custom request.
|
470
470
|
# @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)
|
@@ -476,7 +476,7 @@ module Algolia
|
|
476
476
|
|
477
477
|
# This method lets you send requests to the Algolia REST API.
|
478
478
|
|
479
|
-
# @param path [String] Path of the endpoint,
|
479
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
480
480
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
481
481
|
# @param body [Object] Parameters to send with the custom request.
|
482
482
|
# @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)
|
@@ -509,7 +509,7 @@ module Algolia
|
|
509
509
|
|
510
510
|
# This method lets you send requests to the Algolia REST API.
|
511
511
|
|
512
|
-
# @param path [String] Path of the endpoint,
|
512
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
513
513
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
514
514
|
# @param body [Object] Parameters to send with the custom request.
|
515
515
|
# @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)
|
@@ -71,7 +71,7 @@ module Algolia
|
|
71
71
|
|
72
72
|
# This method lets you send requests to the Algolia REST API.
|
73
73
|
|
74
|
-
# @param path [String] Path of the endpoint,
|
74
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
75
75
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
76
76
|
# @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)
|
77
77
|
# @return [Http::Response] the response
|
@@ -103,7 +103,7 @@ module Algolia
|
|
103
103
|
|
104
104
|
# This method lets you send requests to the Algolia REST API.
|
105
105
|
|
106
|
-
# @param path [String] Path of the endpoint,
|
106
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
107
107
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
108
108
|
# @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)
|
109
109
|
# @return [Object]
|
@@ -114,7 +114,7 @@ module Algolia
|
|
114
114
|
|
115
115
|
# This method lets you send requests to the Algolia REST API.
|
116
116
|
|
117
|
-
# @param path [String] Path of the endpoint,
|
117
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
118
118
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
119
119
|
# @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)
|
120
120
|
# @return [Http::Response] the response
|
@@ -146,7 +146,7 @@ module Algolia
|
|
146
146
|
|
147
147
|
# This method lets you send requests to the Algolia REST API.
|
148
148
|
|
149
|
-
# @param path [String] Path of the endpoint,
|
149
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
150
150
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
151
151
|
# @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)
|
152
152
|
# @return [Object]
|
@@ -157,7 +157,7 @@ module Algolia
|
|
157
157
|
|
158
158
|
# This method lets you send requests to the Algolia REST API.
|
159
159
|
|
160
|
-
# @param path [String] Path of the endpoint,
|
160
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
161
161
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
162
162
|
# @param body [Object] Parameters to send with the custom request.
|
163
163
|
# @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)
|
@@ -190,7 +190,7 @@ module Algolia
|
|
190
190
|
|
191
191
|
# This method lets you send requests to the Algolia REST API.
|
192
192
|
|
193
|
-
# @param path [String] Path of the endpoint,
|
193
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
194
194
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
195
195
|
# @param body [Object] Parameters to send with the custom request.
|
196
196
|
# @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)
|
@@ -202,7 +202,7 @@ module Algolia
|
|
202
202
|
|
203
203
|
# This method lets you send requests to the Algolia REST API.
|
204
204
|
|
205
|
-
# @param path [String] Path of the endpoint,
|
205
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
206
206
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
207
207
|
# @param body [Object] Parameters to send with the custom request.
|
208
208
|
# @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)
|
@@ -235,7 +235,7 @@ module Algolia
|
|
235
235
|
|
236
236
|
# This method lets you send requests to the Algolia REST API.
|
237
237
|
|
238
|
-
# @param path [String] Path of the endpoint,
|
238
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
239
239
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
240
240
|
# @param body [Object] Parameters to send with the custom request.
|
241
241
|
# @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)
|
@@ -56,7 +56,7 @@ module Algolia
|
|
56
56
|
|
57
57
|
# This method lets you send requests to the Algolia REST API.
|
58
58
|
|
59
|
-
# @param path [String] Path of the endpoint,
|
59
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
60
60
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
61
61
|
# @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)
|
62
62
|
# @return [Http::Response] the response
|
@@ -88,7 +88,7 @@ module Algolia
|
|
88
88
|
|
89
89
|
# This method lets you send requests to the Algolia REST API.
|
90
90
|
|
91
|
-
# @param path [String] Path of the endpoint,
|
91
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
92
92
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
93
93
|
# @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)
|
94
94
|
# @return [Object]
|
@@ -99,7 +99,7 @@ module Algolia
|
|
99
99
|
|
100
100
|
# This method lets you send requests to the Algolia REST API.
|
101
101
|
|
102
|
-
# @param path [String] Path of the endpoint,
|
102
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
103
103
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
104
104
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
105
105
|
# @return [Http::Response] the response
|
@@ -131,7 +131,7 @@ module Algolia
|
|
131
131
|
|
132
132
|
# This method lets you send requests to the Algolia REST API.
|
133
133
|
|
134
|
-
# @param path [String] Path of the endpoint,
|
134
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
135
135
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
136
136
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
137
137
|
# @return [Object]
|
@@ -142,7 +142,7 @@ module Algolia
|
|
142
142
|
|
143
143
|
# This method lets you send requests to the Algolia REST API.
|
144
144
|
|
145
|
-
# @param path [String] Path of the endpoint,
|
145
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
146
146
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
147
147
|
# @param body [Object] Parameters to send with the custom request.
|
148
148
|
# @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)
|
@@ -175,7 +175,7 @@ module Algolia
|
|
175
175
|
|
176
176
|
# This method lets you send requests to the Algolia REST API.
|
177
177
|
|
178
|
-
# @param path [String] Path of the endpoint,
|
178
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
179
179
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
180
180
|
# @param body [Object] Parameters to send with the custom request.
|
181
181
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -187,7 +187,7 @@ module Algolia
|
|
187
187
|
|
188
188
|
# This method lets you send requests to the Algolia REST API.
|
189
189
|
|
190
|
-
# @param path [String] Path of the endpoint,
|
190
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
191
191
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
192
192
|
# @param body [Object] Parameters to send with the custom request.
|
193
193
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -220,7 +220,7 @@ module Algolia
|
|
220
220
|
|
221
221
|
# This method lets you send requests to the Algolia REST API.
|
222
222
|
|
223
|
-
# @param path [String] Path of the endpoint,
|
223
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
224
224
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
225
225
|
# @param body [Object] Parameters to send with the custom request.
|
226
226
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -71,7 +71,7 @@ module Algolia
|
|
71
71
|
|
72
72
|
# This method lets you send requests to the Algolia REST API.
|
73
73
|
|
74
|
-
# @param path [String] Path of the endpoint,
|
74
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
75
75
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
76
76
|
# @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)
|
77
77
|
# @return [Http::Response] the response
|
@@ -103,7 +103,7 @@ module Algolia
|
|
103
103
|
|
104
104
|
# This method lets you send requests to the Algolia REST API.
|
105
105
|
|
106
|
-
# @param path [String] Path of the endpoint,
|
106
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
107
107
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
108
108
|
# @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)
|
109
109
|
# @return [Object]
|
@@ -114,7 +114,7 @@ module Algolia
|
|
114
114
|
|
115
115
|
# This method lets you send requests to the Algolia REST API.
|
116
116
|
|
117
|
-
# @param path [String] Path of the endpoint,
|
117
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
118
118
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
119
119
|
# @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)
|
120
120
|
# @return [Http::Response] the response
|
@@ -146,7 +146,7 @@ module Algolia
|
|
146
146
|
|
147
147
|
# This method lets you send requests to the Algolia REST API.
|
148
148
|
|
149
|
-
# @param path [String] Path of the endpoint,
|
149
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
150
150
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
151
151
|
# @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)
|
152
152
|
# @return [Object]
|
@@ -157,7 +157,7 @@ module Algolia
|
|
157
157
|
|
158
158
|
# This method lets you send requests to the Algolia REST API.
|
159
159
|
|
160
|
-
# @param path [String] Path of the endpoint,
|
160
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
161
161
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
162
162
|
# @param body [Object] Parameters to send with the custom request.
|
163
163
|
# @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)
|
@@ -190,7 +190,7 @@ module Algolia
|
|
190
190
|
|
191
191
|
# This method lets you send requests to the Algolia REST API.
|
192
192
|
|
193
|
-
# @param path [String] Path of the endpoint,
|
193
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
194
194
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
195
195
|
# @param body [Object] Parameters to send with the custom request.
|
196
196
|
# @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)
|
@@ -202,7 +202,7 @@ module Algolia
|
|
202
202
|
|
203
203
|
# This method lets you send requests to the Algolia REST API.
|
204
204
|
|
205
|
-
# @param path [String] Path of the endpoint,
|
205
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
206
206
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
207
207
|
# @param body [Object] Parameters to send with the custom request.
|
208
208
|
# @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)
|
@@ -235,7 +235,7 @@ module Algolia
|
|
235
235
|
|
236
236
|
# This method lets you send requests to the Algolia REST API.
|
237
237
|
|
238
|
-
# @param path [String] Path of the endpoint,
|
238
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
239
239
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
240
240
|
# @param body [Object] Parameters to send with the custom request.
|
241
241
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -115,7 +115,7 @@ module Algolia
|
|
115
115
|
|
116
116
|
# This method lets you send requests to the Algolia REST API.
|
117
117
|
|
118
|
-
# @param path [String] Path of the endpoint,
|
118
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
119
119
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
120
120
|
# @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)
|
121
121
|
# @return [Http::Response] the response
|
@@ -147,7 +147,7 @@ module Algolia
|
|
147
147
|
|
148
148
|
# This method lets you send requests to the Algolia REST API.
|
149
149
|
|
150
|
-
# @param path [String] Path of the endpoint,
|
150
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
151
151
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
152
152
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
153
153
|
# @return [Object]
|
@@ -158,7 +158,7 @@ module Algolia
|
|
158
158
|
|
159
159
|
# This method lets you send requests to the Algolia REST API.
|
160
160
|
|
161
|
-
# @param path [String] Path of the endpoint,
|
161
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
162
162
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
163
163
|
# @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)
|
164
164
|
# @return [Http::Response] the response
|
@@ -190,7 +190,7 @@ module Algolia
|
|
190
190
|
|
191
191
|
# This method lets you send requests to the Algolia REST API.
|
192
192
|
|
193
|
-
# @param path [String] Path of the endpoint,
|
193
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
194
194
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
195
195
|
# @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)
|
196
196
|
# @return [Object]
|
@@ -201,7 +201,7 @@ module Algolia
|
|
201
201
|
|
202
202
|
# This method lets you send requests to the Algolia REST API.
|
203
203
|
|
204
|
-
# @param path [String] Path of the endpoint,
|
204
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
205
205
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
206
206
|
# @param body [Object] Parameters to send with the custom request.
|
207
207
|
# @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)
|
@@ -234,7 +234,7 @@ module Algolia
|
|
234
234
|
|
235
235
|
# This method lets you send requests to the Algolia REST API.
|
236
236
|
|
237
|
-
# @param path [String] Path of the endpoint,
|
237
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
238
238
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
239
239
|
# @param body [Object] Parameters to send with the custom request.
|
240
240
|
# @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)
|
@@ -246,7 +246,7 @@ module Algolia
|
|
246
246
|
|
247
247
|
# This method lets you send requests to the Algolia REST API.
|
248
248
|
|
249
|
-
# @param path [String] Path of the endpoint,
|
249
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
250
250
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
251
251
|
# @param body [Object] Parameters to send with the custom request.
|
252
252
|
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
@@ -279,7 +279,7 @@ module Algolia
|
|
279
279
|
|
280
280
|
# This method lets you send requests to the Algolia REST API.
|
281
281
|
|
282
|
-
# @param path [String] Path of the endpoint,
|
282
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
283
283
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
284
284
|
# @param body [Object] Parameters to send with the custom request.
|
285
285
|
# @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)
|
@@ -121,7 +121,7 @@ module Algolia
|
|
121
121
|
|
122
122
|
# This method lets you send requests to the Algolia REST API.
|
123
123
|
|
124
|
-
# @param path [String] Path of the endpoint,
|
124
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
125
125
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
126
126
|
# @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)
|
127
127
|
# @return [Http::Response] the response
|
@@ -153,7 +153,7 @@ module Algolia
|
|
153
153
|
|
154
154
|
# This method lets you send requests to the Algolia REST API.
|
155
155
|
|
156
|
-
# @param path [String] Path of the endpoint,
|
156
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
157
157
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
158
158
|
# @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)
|
159
159
|
# @return [Object]
|
@@ -164,7 +164,7 @@ module Algolia
|
|
164
164
|
|
165
165
|
# This method lets you send requests to the Algolia REST API.
|
166
166
|
|
167
|
-
# @param path [String] Path of the endpoint,
|
167
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
168
168
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
169
169
|
# @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)
|
170
170
|
# @return [Http::Response] the response
|
@@ -196,7 +196,7 @@ module Algolia
|
|
196
196
|
|
197
197
|
# This method lets you send requests to the Algolia REST API.
|
198
198
|
|
199
|
-
# @param path [String] Path of the endpoint,
|
199
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
200
200
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
201
201
|
# @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)
|
202
202
|
# @return [Object]
|
@@ -207,7 +207,7 @@ module Algolia
|
|
207
207
|
|
208
208
|
# This method lets you send requests to the Algolia REST API.
|
209
209
|
|
210
|
-
# @param path [String] Path of the endpoint,
|
210
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
211
211
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
212
212
|
# @param body [Object] Parameters to send with the custom request.
|
213
213
|
# @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)
|
@@ -240,7 +240,7 @@ module Algolia
|
|
240
240
|
|
241
241
|
# This method lets you send requests to the Algolia REST API.
|
242
242
|
|
243
|
-
# @param path [String] Path of the endpoint,
|
243
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
244
244
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
245
245
|
# @param body [Object] Parameters to send with the custom request.
|
246
246
|
# @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)
|
@@ -252,7 +252,7 @@ module Algolia
|
|
252
252
|
|
253
253
|
# This method lets you send requests to the Algolia REST API.
|
254
254
|
|
255
|
-
# @param path [String] Path of the endpoint,
|
255
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
256
256
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
257
257
|
# @param body [Object] Parameters to send with the custom request.
|
258
258
|
# @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,7 +285,7 @@ module Algolia
|
|
285
285
|
|
286
286
|
# This method lets you send requests to the Algolia REST API.
|
287
287
|
|
288
|
-
# @param path [String] Path of the endpoint,
|
288
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
289
289
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
290
290
|
# @param body [Object] Parameters to send with the custom request.
|
291
291
|
# @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)
|
@@ -614,7 +614,7 @@ module Algolia
|
|
614
614
|
|
615
615
|
# This method lets you send requests to the Algolia REST API.
|
616
616
|
|
617
|
-
# @param path [String] Path of the endpoint,
|
617
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
618
618
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
619
619
|
# @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)
|
620
620
|
# @return [Http::Response] the response
|
@@ -646,7 +646,7 @@ module Algolia
|
|
646
646
|
|
647
647
|
# This method lets you send requests to the Algolia REST API.
|
648
648
|
|
649
|
-
# @param path [String] Path of the endpoint,
|
649
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
650
650
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
651
651
|
# @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)
|
652
652
|
# @return [Object]
|
@@ -657,7 +657,7 @@ module Algolia
|
|
657
657
|
|
658
658
|
# This method lets you send requests to the Algolia REST API.
|
659
659
|
|
660
|
-
# @param path [String] Path of the endpoint,
|
660
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
661
661
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
662
662
|
# @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)
|
663
663
|
# @return [Http::Response] the response
|
@@ -689,7 +689,7 @@ module Algolia
|
|
689
689
|
|
690
690
|
# This method lets you send requests to the Algolia REST API.
|
691
691
|
|
692
|
-
# @param path [String] Path of the endpoint,
|
692
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
693
693
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
694
694
|
# @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)
|
695
695
|
# @return [Object]
|
@@ -700,7 +700,7 @@ module Algolia
|
|
700
700
|
|
701
701
|
# This method lets you send requests to the Algolia REST API.
|
702
702
|
|
703
|
-
# @param path [String] Path of the endpoint,
|
703
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
704
704
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
705
705
|
# @param body [Object] Parameters to send with the custom request.
|
706
706
|
# @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)
|
@@ -733,7 +733,7 @@ module Algolia
|
|
733
733
|
|
734
734
|
# This method lets you send requests to the Algolia REST API.
|
735
735
|
|
736
|
-
# @param path [String] Path of the endpoint,
|
736
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
737
737
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
738
738
|
# @param body [Object] Parameters to send with the custom request.
|
739
739
|
# @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)
|
@@ -745,7 +745,7 @@ module Algolia
|
|
745
745
|
|
746
746
|
# This method lets you send requests to the Algolia REST API.
|
747
747
|
|
748
|
-
# @param path [String] Path of the endpoint,
|
748
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
749
749
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
750
750
|
# @param body [Object] Parameters to send with the custom request.
|
751
751
|
# @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)
|
@@ -778,7 +778,7 @@ module Algolia
|
|
778
778
|
|
779
779
|
# This method lets you send requests to the Algolia REST API.
|
780
780
|
|
781
|
-
# @param path [String] Path of the endpoint,
|
781
|
+
# @param path [String] Path of the endpoint, for example `1/newFeature`. (required)
|
782
782
|
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
|
783
783
|
# @param body [Object] Parameters to send with the custom request.
|
784
784
|
# @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)
|
@@ -0,0 +1,235 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
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
|
+
|
5
|
+
require "date"
|
6
|
+
require "time"
|
7
|
+
|
8
|
+
module Algolia
|
9
|
+
module Search
|
10
|
+
class ReplaceAllObjectsWithTransformationResponse
|
11
|
+
attr_accessor :copy_operation_response
|
12
|
+
|
13
|
+
# The response of the `push` request(s).
|
14
|
+
attr_accessor :watch_responses
|
15
|
+
|
16
|
+
attr_accessor :move_operation_response
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:copy_operation_response => :copyOperationResponse,
|
22
|
+
:watch_responses => :watchResponses,
|
23
|
+
:move_operation_response => :moveOperationResponse
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.types_mapping
|
29
|
+
{
|
30
|
+
:copy_operation_response => :"UpdatedAtResponse",
|
31
|
+
:watch_responses => :"Array<WatchResponse>",
|
32
|
+
:move_operation_response => :"UpdatedAtResponse"
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# List of attributes with nullable: true
|
37
|
+
def self.openapi_nullable
|
38
|
+
Set.new(
|
39
|
+
[]
|
40
|
+
)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
raise(
|
48
|
+
ArgumentError,
|
49
|
+
"The input argument (attributes) must be a hash in `Algolia::ReplaceAllObjectsWithTransformationResponse` initialize method"
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
+
raise(
|
57
|
+
ArgumentError,
|
58
|
+
"`#{k}` is not a valid attribute in `Algolia::ReplaceAllObjectsWithTransformationResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
59
|
+
self.class.attribute_map.keys.inspect
|
60
|
+
)
|
61
|
+
end
|
62
|
+
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:copy_operation_response)
|
67
|
+
self.copy_operation_response = attributes[:copy_operation_response]
|
68
|
+
else
|
69
|
+
self.copy_operation_response = nil
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:watch_responses)
|
73
|
+
if (value = attributes[:watch_responses]).is_a?(Array)
|
74
|
+
self.watch_responses = value
|
75
|
+
end
|
76
|
+
else
|
77
|
+
self.watch_responses = nil
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:move_operation_response)
|
81
|
+
self.move_operation_response = attributes[:move_operation_response]
|
82
|
+
else
|
83
|
+
self.move_operation_response = nil
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(other)
|
90
|
+
return true if self.equal?(other)
|
91
|
+
self.class == other.class &&
|
92
|
+
copy_operation_response == other.copy_operation_response &&
|
93
|
+
watch_responses == other.watch_responses &&
|
94
|
+
move_operation_response == other.move_operation_response
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(other)
|
100
|
+
self == other
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Integer] Hash code
|
105
|
+
def hash
|
106
|
+
[copy_operation_response, watch_responses, move_operation_response].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def self.build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
115
|
+
transformed_hash = {}
|
116
|
+
types_mapping.each_pair do |key, type|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
118
|
+
transformed_hash[key.to_sym] = nil
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
120
|
+
# check to ensure the input is an array given that the attribute
|
121
|
+
# is documented as an array but the input is not
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
123
|
+
transformed_hash[key.to_sym] = attributes[attribute_map[key]].map { |v|
|
124
|
+
_deserialize(::Regexp.last_match(1), v)
|
125
|
+
}
|
126
|
+
end
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash[key.to_sym] = _deserialize(type, attributes[attribute_map[key]])
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
new(transformed_hash)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def self._deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
# model
|
173
|
+
else
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = Algolia::Search.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass
|
177
|
+
.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
def to_json(*_args)
|
194
|
+
to_hash.to_json
|
195
|
+
end
|
196
|
+
|
197
|
+
# Returns the object in the form of hash
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
199
|
+
def to_hash
|
200
|
+
hash = {}
|
201
|
+
self.class.attribute_map.each_pair do |attr, param|
|
202
|
+
value = send(attr)
|
203
|
+
if value.nil?
|
204
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
205
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
206
|
+
end
|
207
|
+
|
208
|
+
hash[param] = _to_hash(value)
|
209
|
+
end
|
210
|
+
|
211
|
+
hash
|
212
|
+
end
|
213
|
+
|
214
|
+
# Outputs non-array value in the form of hash
|
215
|
+
# For object, use to_hash. Otherwise, just return the value
|
216
|
+
# @param [Object] value Any valid value
|
217
|
+
# @return [Hash] Returns the value in the form of hash
|
218
|
+
def _to_hash(value)
|
219
|
+
if value.is_a?(Array)
|
220
|
+
value.compact.map { |v| _to_hash(v) }
|
221
|
+
elsif value.is_a?(Hash)
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
224
|
+
end
|
225
|
+
elsif value.respond_to?(:to_hash)
|
226
|
+
value.to_hash
|
227
|
+
else
|
228
|
+
value
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
end
|
233
|
+
|
234
|
+
end
|
235
|
+
end
|
data/lib/algolia/version.rb
CHANGED
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.
|
4
|
+
version: 3.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://alg.li/support
|
@@ -687,6 +687,7 @@ files:
|
|
687
687
|
- lib/algolia/models/search/remove_words_if_no_results.rb
|
688
688
|
- lib/algolia/models/search/rendering_content.rb
|
689
689
|
- lib/algolia/models/search/replace_all_objects_response.rb
|
690
|
+
- lib/algolia/models/search/replace_all_objects_with_transformation_response.rb
|
690
691
|
- lib/algolia/models/search/replace_source_response.rb
|
691
692
|
- lib/algolia/models/search/rule.rb
|
692
693
|
- lib/algolia/models/search/save_object_response.rb
|