algolia 3.0.0.beta.12 → 3.0.0.beta.14
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 +17 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/ingestion_client.rb +186 -8
- data/lib/algolia/models/ingestion/destination.rb +15 -4
- data/lib/algolia/models/ingestion/destination_create.rb +15 -4
- data/lib/algolia/models/ingestion/destination_input.rb +1 -2
- data/lib/algolia/models/ingestion/destination_update.rb +15 -4
- data/lib/algolia/models/ingestion/docker_streams.rb +259 -0
- data/lib/algolia/models/ingestion/docker_streams_input.rb +4 -2
- data/lib/algolia/models/ingestion/docker_streams_sync_mode.rb +32 -0
- data/lib/algolia/models/ingestion/entity_type.rb +32 -0
- data/lib/algolia/models/ingestion/generate_transformation_code_payload.rb +233 -0
- data/lib/algolia/models/ingestion/generate_transformation_code_response.rb +211 -0
- data/lib/algolia/models/ingestion/model.rb +254 -0
- data/lib/algolia/models/ingestion/run_source_payload.rb +269 -0
- data/lib/algolia/models/ingestion/run_source_response.rb +228 -0
- data/lib/algolia/models/ingestion/{destination_index_prefix.rb → transformation_models.rb} +14 -12
- data/lib/algolia/models/ingestion/transformation_search.rb +8 -10
- data/lib/algolia/models/search/dictionary_entry.rb +13 -4
- data/lib/algolia/models/search/dictionary_entry_type.rb +32 -0
- data/lib/algolia/models/search/multiple_batch_request.rb +0 -2
- data/lib/algolia/version.rb +1 -1
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77b4c1bf1ec0ae78a66401213ff5ad43cbe5af1eb876e3f869954e7970f9e2d7
|
4
|
+
data.tar.gz: 30161fea26f09f5a8651297ad0d785231ca8477c09cb6bd948ff4c66fa9f72eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61a29d8f4887039452dac0d97c7e1c307665f1162d6065e3ba15617130ddee08af68a0d7bc8cc87c726aaa42cddaebcb117c1e8e4e52c4272cfa190e73235a3
|
7
|
+
data.tar.gz: fab57401cf66f5871fd0298cea6248880097e9b85c7d4aa8fb7ddbfa733fb206547ffe27f2eb7c1d37382ee4f748295a0d2fda5e5a5510f08d85409065e6fddb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## [3.0.0.beta.14](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.13...3.0.0.beta.14)
|
2
|
+
|
3
|
+
- [2c6147ee7](https://github.com/algolia/api-clients-automation/commit/2c6147ee7) feat(specs): add generate code endpoint to ingestion specs ([#3489](https://github.com/algolia/api-clients-automation/pull/3489)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
- [6c62a81a7](https://github.com/algolia/api-clients-automation/commit/6c62a81a7) fix(specs): ingestion docker task input ([#3488](https://github.com/algolia/api-clients-automation/pull/3488)) by [@shortcuts](https://github.com/shortcuts/)
|
5
|
+
- [eab2887f8](https://github.com/algolia/api-clients-automation/commit/eab2887f8) fix(specs): ingestion search endpoint ([#3487](https://github.com/algolia/api-clients-automation/pull/3487)) by [@shortcuts](https://github.com/shortcuts/)
|
6
|
+
|
7
|
+
## [3.0.0.beta.13](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.12...3.0.0.beta.13)
|
8
|
+
|
9
|
+
- [ac0cadb8a](https://github.com/algolia/api-clients-automation/commit/ac0cadb8a) feat(specs): add transformation copilot to ingestion ([#3479](https://github.com/algolia/api-clients-automation/pull/3479)) by [@Fluf22](https://github.com/Fluf22/)
|
10
|
+
- [08a04dec8](https://github.com/algolia/api-clients-automation/commit/08a04dec8) fix(specs): ingestion destination reject indexPrefix ([#3478](https://github.com/algolia/api-clients-automation/pull/3478)) by [@shortcuts](https://github.com/shortcuts/)
|
11
|
+
- [cdd673d33](https://github.com/algolia/api-clients-automation/commit/cdd673d33) fix(specs): ingestion destinations and transformations ([#3477](https://github.com/algolia/api-clients-automation/pull/3477)) by [@shortcuts](https://github.com/shortcuts/)
|
12
|
+
- [b4742be76](https://github.com/algolia/api-clients-automation/commit/b4742be76) fix(clients): move the license to the root ([#3457](https://github.com/algolia/api-clients-automation/pull/3457)) by [@millotp](https://github.com/millotp/)
|
13
|
+
- [e5d14171c](https://github.com/algolia/api-clients-automation/commit/e5d14171c) fix(specs): dictionary entry for stopwords has type property ([#3456](https://github.com/algolia/api-clients-automation/pull/3456)) by [@kai687](https://github.com/kai687/)
|
14
|
+
- [7af1e75e9](https://github.com/algolia/api-clients-automation/commit/7af1e75e9) fix(specs): body is not required in multiple batch request ([#3454](https://github.com/algolia/api-clients-automation/pull/3454)) by [@kai687](https://github.com/kai687/)
|
15
|
+
- [b90bef261](https://github.com/algolia/api-clients-automation/commit/b90bef261) feat(specs): add runSource endpoint ([#3453](https://github.com/algolia/api-clients-automation/pull/3453)) by [@millotp](https://github.com/millotp/)
|
16
|
+
- [27679b7fd](https://github.com/algolia/api-clients-automation/commit/27679b7fd) chore(clients): remove mention of GA ([#3452](https://github.com/algolia/api-clients-automation/pull/3452)) by [@millotp](https://github.com/millotp/)
|
17
|
+
|
1
18
|
## [3.0.0.beta.12](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.beta.11...3.0.0.beta.12)
|
2
19
|
|
3
20
|
- [e982ddf0a](https://github.com/algolia/api-clients-automation/commit/e982ddf0a) fix(specs): built-in ops accept also int ([#3450](https://github.com/algolia/api-clients-automation/pull/3450)) by [@kai687](https://github.com/kai687/)
|
data/Gemfile.lock
CHANGED
@@ -953,6 +953,60 @@ module Algolia
|
|
953
953
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskUpdateResponse")
|
954
954
|
end
|
955
955
|
|
956
|
+
# Generates code for the selected model based on the given prompt.
|
957
|
+
#
|
958
|
+
# Required API Key ACLs:
|
959
|
+
# - addObject
|
960
|
+
# - deleteIndex
|
961
|
+
# - editSettings
|
962
|
+
# @param generate_transformation_code_payload [GenerateTransformationCodePayload] (required)
|
963
|
+
# @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)
|
964
|
+
# @return [Http::Response] the response
|
965
|
+
def generate_transformation_code_with_http_info(generate_transformation_code_payload, request_options = {})
|
966
|
+
# verify the required parameter 'generate_transformation_code_payload' is set
|
967
|
+
if @api_client.config.client_side_validation && generate_transformation_code_payload.nil?
|
968
|
+
raise(
|
969
|
+
ArgumentError,
|
970
|
+
"Parameter `generate_transformation_code_payload` is required when calling `generate_transformation_code`."
|
971
|
+
)
|
972
|
+
end
|
973
|
+
|
974
|
+
path = "/1/transformations/models"
|
975
|
+
query_params = {}
|
976
|
+
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
977
|
+
header_params = {}
|
978
|
+
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
979
|
+
|
980
|
+
post_body = request_options[:debug_body] || @api_client.object_to_http_body(generate_transformation_code_payload)
|
981
|
+
|
982
|
+
new_options = request_options.merge(
|
983
|
+
:operation => :"IngestionClient.generate_transformation_code",
|
984
|
+
:header_params => header_params,
|
985
|
+
:query_params => query_params,
|
986
|
+
:body => post_body,
|
987
|
+
:use_read_transporter => false
|
988
|
+
)
|
989
|
+
|
990
|
+
@api_client.call_api(:POST, path, new_options)
|
991
|
+
end
|
992
|
+
|
993
|
+
# Generates code for the selected model based on the given prompt.
|
994
|
+
#
|
995
|
+
# Required API Key ACLs:
|
996
|
+
# - addObject
|
997
|
+
# - deleteIndex
|
998
|
+
# - editSettings
|
999
|
+
# @param generate_transformation_code_payload [GenerateTransformationCodePayload] (required)
|
1000
|
+
# @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)
|
1001
|
+
# @return [GenerateTransformationCodeResponse]
|
1002
|
+
def generate_transformation_code(generate_transformation_code_payload, request_options = {})
|
1003
|
+
response = generate_transformation_code_with_http_info(generate_transformation_code_payload, request_options)
|
1004
|
+
@api_client.deserialize(
|
1005
|
+
response.body,
|
1006
|
+
request_options[:debug_return_type] || "Ingestion::GenerateTransformationCodeResponse"
|
1007
|
+
)
|
1008
|
+
end
|
1009
|
+
|
956
1010
|
# Retrieves an authentication resource by its ID.
|
957
1011
|
#
|
958
1012
|
# Required API Key ACLs:
|
@@ -2163,19 +2217,91 @@ module Algolia
|
|
2163
2217
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::ListTasksResponseV1")
|
2164
2218
|
end
|
2165
2219
|
|
2220
|
+
# Retrieves a list of existing LLM transformation helpers.
|
2221
|
+
#
|
2222
|
+
# Required API Key ACLs:
|
2223
|
+
# - addObject
|
2224
|
+
# - deleteIndex
|
2225
|
+
# - editSettings
|
2226
|
+
# @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)
|
2227
|
+
# @return [Http::Response] the response
|
2228
|
+
def list_transformation_models_with_http_info(request_options = {})
|
2229
|
+
path = "/1/transformations/models"
|
2230
|
+
query_params = {}
|
2231
|
+
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2232
|
+
header_params = {}
|
2233
|
+
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
2234
|
+
|
2235
|
+
post_body = request_options[:debug_body]
|
2236
|
+
|
2237
|
+
new_options = request_options.merge(
|
2238
|
+
:operation => :"IngestionClient.list_transformation_models",
|
2239
|
+
:header_params => header_params,
|
2240
|
+
:query_params => query_params,
|
2241
|
+
:body => post_body,
|
2242
|
+
:use_read_transporter => false
|
2243
|
+
)
|
2244
|
+
|
2245
|
+
@api_client.call_api(:GET, path, new_options)
|
2246
|
+
end
|
2247
|
+
|
2248
|
+
# Retrieves a list of existing LLM transformation helpers.
|
2249
|
+
#
|
2250
|
+
# Required API Key ACLs:
|
2251
|
+
# - addObject
|
2252
|
+
# - deleteIndex
|
2253
|
+
# - editSettings
|
2254
|
+
# @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)
|
2255
|
+
# @return [TransformationModels]
|
2256
|
+
def list_transformation_models(request_options = {})
|
2257
|
+
response = list_transformation_models_with_http_info(request_options)
|
2258
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TransformationModels")
|
2259
|
+
end
|
2260
|
+
|
2166
2261
|
# Retrieves a list of transformations.
|
2167
2262
|
#
|
2168
2263
|
# Required API Key ACLs:
|
2169
2264
|
# - addObject
|
2170
2265
|
# - deleteIndex
|
2171
2266
|
# - editSettings
|
2267
|
+
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
2268
|
+
# @param page [Integer] Page number of the paginated API response.
|
2172
2269
|
# @param sort [SortKeys] Property by which to sort the list. (default to 'desc')
|
2173
2270
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
2174
2271
|
# @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)
|
2175
2272
|
# @return [Http::Response] the response
|
2176
|
-
def list_transformations_with_http_info(
|
2273
|
+
def list_transformations_with_http_info(
|
2274
|
+
items_per_page = nil,
|
2275
|
+
page = nil,
|
2276
|
+
sort = nil,
|
2277
|
+
order = nil,
|
2278
|
+
request_options = {}
|
2279
|
+
)
|
2280
|
+
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page > 100
|
2281
|
+
raise(
|
2282
|
+
ArgumentError,
|
2283
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_transformations, must be smaller than or equal to 100."
|
2284
|
+
)
|
2285
|
+
end
|
2286
|
+
|
2287
|
+
if @api_client.config.client_side_validation && !items_per_page.nil? && items_per_page < 1
|
2288
|
+
raise(
|
2289
|
+
ArgumentError,
|
2290
|
+
"invalid value for \"\"items_per_page\"\" when calling IngestionClient.list_transformations, must be greater than or equal to 1."
|
2291
|
+
)
|
2292
|
+
end
|
2293
|
+
|
2294
|
+
if @api_client.config.client_side_validation && !page.nil? && page < 1
|
2295
|
+
raise(
|
2296
|
+
ArgumentError,
|
2297
|
+
"invalid value for \"\"page\"\" when calling IngestionClient.list_transformations, must be greater than or equal to 1."
|
2298
|
+
)
|
2299
|
+
end
|
2300
|
+
|
2177
2301
|
path = "/1/transformations"
|
2178
2302
|
query_params = {}
|
2303
|
+
query_params[:itemsPerPage] = items_per_page unless items_per_page.nil?
|
2304
|
+
query_params[:page] = page unless page.nil?
|
2179
2305
|
query_params[:sort] = sort unless sort.nil?
|
2180
2306
|
query_params[:order] = order unless order.nil?
|
2181
2307
|
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
@@ -2201,12 +2327,14 @@ module Algolia
|
|
2201
2327
|
# - addObject
|
2202
2328
|
# - deleteIndex
|
2203
2329
|
# - editSettings
|
2330
|
+
# @param items_per_page [Integer] Number of items per page. (default to 10)
|
2331
|
+
# @param page [Integer] Page number of the paginated API response.
|
2204
2332
|
# @param sort [SortKeys] Property by which to sort the list. (default to 'desc')
|
2205
2333
|
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
|
2206
2334
|
# @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)
|
2207
2335
|
# @return [ListTransformationsResponse]
|
2208
|
-
def list_transformations(sort = nil, order = nil, request_options = {})
|
2209
|
-
response = list_transformations_with_http_info(sort, order, request_options)
|
2336
|
+
def list_transformations(items_per_page = nil, page = nil, sort = nil, order = nil, request_options = {})
|
2337
|
+
response = list_transformations_with_http_info(items_per_page, page, sort, order, request_options)
|
2210
2338
|
@api_client.deserialize(
|
2211
2339
|
response.body,
|
2212
2340
|
request_options[:debug_return_type] || "Ingestion::ListTransformationsResponse"
|
@@ -2267,6 +2395,56 @@ module Algolia
|
|
2267
2395
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::RunResponse")
|
2268
2396
|
end
|
2269
2397
|
|
2398
|
+
# Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
|
2399
|
+
#
|
2400
|
+
# Required API Key ACLs:
|
2401
|
+
# - addObject
|
2402
|
+
# - deleteIndex
|
2403
|
+
# - editSettings
|
2404
|
+
# @param source_id [String] Unique identifier of a source. (required)
|
2405
|
+
# @param run_source_payload [RunSourcePayload]
|
2406
|
+
# @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)
|
2407
|
+
# @return [Http::Response] the response
|
2408
|
+
def run_source_with_http_info(source_id, run_source_payload = nil, request_options = {})
|
2409
|
+
# verify the required parameter 'source_id' is set
|
2410
|
+
if @api_client.config.client_side_validation && source_id.nil?
|
2411
|
+
raise ArgumentError, "Parameter `source_id` is required when calling `run_source`."
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
path = "/1/sources/{sourceID}/run".sub("{" + "sourceID" + "}", Transport.encode_uri(source_id.to_s))
|
2415
|
+
query_params = {}
|
2416
|
+
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
2417
|
+
header_params = {}
|
2418
|
+
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
2419
|
+
|
2420
|
+
post_body = request_options[:debug_body] || @api_client.object_to_http_body(run_source_payload)
|
2421
|
+
|
2422
|
+
new_options = request_options.merge(
|
2423
|
+
:operation => :"IngestionClient.run_source",
|
2424
|
+
:header_params => header_params,
|
2425
|
+
:query_params => query_params,
|
2426
|
+
:body => post_body,
|
2427
|
+
:use_read_transporter => false
|
2428
|
+
)
|
2429
|
+
|
2430
|
+
@api_client.call_api(:POST, path, new_options)
|
2431
|
+
end
|
2432
|
+
|
2433
|
+
# Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
|
2434
|
+
#
|
2435
|
+
# Required API Key ACLs:
|
2436
|
+
# - addObject
|
2437
|
+
# - deleteIndex
|
2438
|
+
# - editSettings
|
2439
|
+
# @param source_id [String] Unique identifier of a source. (required)
|
2440
|
+
# @param run_source_payload [RunSourcePayload]
|
2441
|
+
# @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)
|
2442
|
+
# @return [RunSourceResponse]
|
2443
|
+
def run_source(source_id, run_source_payload = nil, request_options = {})
|
2444
|
+
response = run_source_with_http_info(source_id, run_source_payload, request_options)
|
2445
|
+
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::RunSourceResponse")
|
2446
|
+
end
|
2447
|
+
|
2270
2448
|
# Runs a task. You can check the status of task runs with the observability endpoints.
|
2271
2449
|
#
|
2272
2450
|
# Required API Key ACLs:
|
@@ -2708,10 +2886,10 @@ module Algolia
|
|
2708
2886
|
# @param transformation_try [TransformationTry] (required)
|
2709
2887
|
# @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)
|
2710
2888
|
# @return [Http::Response] the response
|
2711
|
-
def
|
2889
|
+
def try_transformation_with_http_info(transformation_try, request_options = {})
|
2712
2890
|
# verify the required parameter 'transformation_try' is set
|
2713
2891
|
if @api_client.config.client_side_validation && transformation_try.nil?
|
2714
|
-
raise ArgumentError, "Parameter `transformation_try` is required when calling `
|
2892
|
+
raise ArgumentError, "Parameter `transformation_try` is required when calling `try_transformation`."
|
2715
2893
|
end
|
2716
2894
|
|
2717
2895
|
path = "/1/transformations/try"
|
@@ -2723,7 +2901,7 @@ module Algolia
|
|
2723
2901
|
post_body = request_options[:debug_body] || @api_client.object_to_http_body(transformation_try)
|
2724
2902
|
|
2725
2903
|
new_options = request_options.merge(
|
2726
|
-
:operation => :"IngestionClient.
|
2904
|
+
:operation => :"IngestionClient.try_transformation",
|
2727
2905
|
:header_params => header_params,
|
2728
2906
|
:query_params => query_params,
|
2729
2907
|
:body => post_body,
|
@@ -2742,8 +2920,8 @@ module Algolia
|
|
2742
2920
|
# @param transformation_try [TransformationTry] (required)
|
2743
2921
|
# @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)
|
2744
2922
|
# @return [TransformationTryResponse]
|
2745
|
-
def
|
2746
|
-
response =
|
2923
|
+
def try_transformation(transformation_try, request_options = {})
|
2924
|
+
response = try_transformation_with_http_info(transformation_try, request_options)
|
2747
2925
|
@api_client.deserialize(
|
2748
2926
|
response.body,
|
2749
2927
|
request_options[:debug_return_type] || "Ingestion::TransformationTryResponse"
|
@@ -26,6 +26,8 @@ module Algolia
|
|
26
26
|
# Universally unique identifier (UUID) of an authentication resource.
|
27
27
|
attr_accessor :authentication_id
|
28
28
|
|
29
|
+
attr_accessor :transformation_ids
|
30
|
+
|
29
31
|
class EnumAttributeValidator
|
30
32
|
attr_reader :datatype
|
31
33
|
attr_reader :allowable_values
|
@@ -57,7 +59,8 @@ module Algolia
|
|
57
59
|
:input => :input,
|
58
60
|
:created_at => :createdAt,
|
59
61
|
:updated_at => :updatedAt,
|
60
|
-
:authentication_id => :authenticationID
|
62
|
+
:authentication_id => :authenticationID,
|
63
|
+
:transformation_ids => :transformationIDs
|
61
64
|
}
|
62
65
|
end
|
63
66
|
|
@@ -75,7 +78,8 @@ module Algolia
|
|
75
78
|
:input => :"DestinationInput",
|
76
79
|
:created_at => :"String",
|
77
80
|
:updated_at => :"String",
|
78
|
-
:authentication_id => :"String"
|
81
|
+
:authentication_id => :"String",
|
82
|
+
:transformation_ids => :"Array<String>"
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -146,6 +150,12 @@ module Algolia
|
|
146
150
|
if attributes.key?(:authentication_id)
|
147
151
|
self.authentication_id = attributes[:authentication_id]
|
148
152
|
end
|
153
|
+
|
154
|
+
if attributes.key?(:transformation_ids)
|
155
|
+
if (value = attributes[:transformation_ids]).is_a?(Array)
|
156
|
+
self.transformation_ids = value
|
157
|
+
end
|
158
|
+
end
|
149
159
|
end
|
150
160
|
|
151
161
|
# Checks equality by comparing each attribute.
|
@@ -159,7 +169,8 @@ module Algolia
|
|
159
169
|
input == other.input &&
|
160
170
|
created_at == other.created_at &&
|
161
171
|
updated_at == other.updated_at &&
|
162
|
-
authentication_id == other.authentication_id
|
172
|
+
authentication_id == other.authentication_id &&
|
173
|
+
transformation_ids == other.transformation_ids
|
163
174
|
end
|
164
175
|
|
165
176
|
# @see the `==` method
|
@@ -171,7 +182,7 @@ module Algolia
|
|
171
182
|
# Calculates hash code according to all attributes.
|
172
183
|
# @return [Integer] Hash code
|
173
184
|
def hash
|
174
|
-
[destination_id, type, name, input, created_at, updated_at, authentication_id].hash
|
185
|
+
[destination_id, type, name, input, created_at, updated_at, authentication_id, transformation_ids].hash
|
175
186
|
end
|
176
187
|
|
177
188
|
# Builds the object from hash
|
@@ -17,6 +17,8 @@ module Algolia
|
|
17
17
|
# Universally unique identifier (UUID) of an authentication resource.
|
18
18
|
attr_accessor :authentication_id
|
19
19
|
|
20
|
+
attr_accessor :transformation_ids
|
21
|
+
|
20
22
|
class EnumAttributeValidator
|
21
23
|
attr_reader :datatype
|
22
24
|
attr_reader :allowable_values
|
@@ -45,7 +47,8 @@ module Algolia
|
|
45
47
|
:type => :type,
|
46
48
|
:name => :name,
|
47
49
|
:input => :input,
|
48
|
-
:authentication_id => :authenticationID
|
50
|
+
:authentication_id => :authenticationID,
|
51
|
+
:transformation_ids => :transformationIDs
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
@@ -60,7 +63,8 @@ module Algolia
|
|
60
63
|
:type => :"DestinationType",
|
61
64
|
:name => :"String",
|
62
65
|
:input => :"DestinationInput",
|
63
|
-
:authentication_id => :"String"
|
66
|
+
:authentication_id => :"String",
|
67
|
+
:transformation_ids => :"Array<String>"
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -115,6 +119,12 @@ module Algolia
|
|
115
119
|
if attributes.key?(:authentication_id)
|
116
120
|
self.authentication_id = attributes[:authentication_id]
|
117
121
|
end
|
122
|
+
|
123
|
+
if attributes.key?(:transformation_ids)
|
124
|
+
if (value = attributes[:transformation_ids]).is_a?(Array)
|
125
|
+
self.transformation_ids = value
|
126
|
+
end
|
127
|
+
end
|
118
128
|
end
|
119
129
|
|
120
130
|
# Checks equality by comparing each attribute.
|
@@ -125,7 +135,8 @@ module Algolia
|
|
125
135
|
type == other.type &&
|
126
136
|
name == other.name &&
|
127
137
|
input == other.input &&
|
128
|
-
authentication_id == other.authentication_id
|
138
|
+
authentication_id == other.authentication_id &&
|
139
|
+
transformation_ids == other.transformation_ids
|
129
140
|
end
|
130
141
|
|
131
142
|
# @see the `==` method
|
@@ -137,7 +148,7 @@ module Algolia
|
|
137
148
|
# Calculates hash code according to all attributes.
|
138
149
|
# @return [Integer] Hash code
|
139
150
|
def hash
|
140
|
-
[type, name, input, authentication_id].hash
|
151
|
+
[type, name, input, authentication_id, transformation_ids].hash
|
141
152
|
end
|
142
153
|
|
143
154
|
# Builds the object from hash
|
@@ -17,6 +17,8 @@ module Algolia
|
|
17
17
|
# Universally unique identifier (UUID) of an authentication resource.
|
18
18
|
attr_accessor :authentication_id
|
19
19
|
|
20
|
+
attr_accessor :transformation_ids
|
21
|
+
|
20
22
|
class EnumAttributeValidator
|
21
23
|
attr_reader :datatype
|
22
24
|
attr_reader :allowable_values
|
@@ -45,7 +47,8 @@ module Algolia
|
|
45
47
|
:type => :type,
|
46
48
|
:name => :name,
|
47
49
|
:input => :input,
|
48
|
-
:authentication_id => :authenticationID
|
50
|
+
:authentication_id => :authenticationID,
|
51
|
+
:transformation_ids => :transformationIDs
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
@@ -60,7 +63,8 @@ module Algolia
|
|
60
63
|
:type => :"DestinationType",
|
61
64
|
:name => :"String",
|
62
65
|
:input => :"DestinationInput",
|
63
|
-
:authentication_id => :"String"
|
66
|
+
:authentication_id => :"String",
|
67
|
+
:transformation_ids => :"Array<String>"
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -109,6 +113,12 @@ module Algolia
|
|
109
113
|
if attributes.key?(:authentication_id)
|
110
114
|
self.authentication_id = attributes[:authentication_id]
|
111
115
|
end
|
116
|
+
|
117
|
+
if attributes.key?(:transformation_ids)
|
118
|
+
if (value = attributes[:transformation_ids]).is_a?(Array)
|
119
|
+
self.transformation_ids = value
|
120
|
+
end
|
121
|
+
end
|
112
122
|
end
|
113
123
|
|
114
124
|
# Checks equality by comparing each attribute.
|
@@ -119,7 +129,8 @@ module Algolia
|
|
119
129
|
type == other.type &&
|
120
130
|
name == other.name &&
|
121
131
|
input == other.input &&
|
122
|
-
authentication_id == other.authentication_id
|
132
|
+
authentication_id == other.authentication_id &&
|
133
|
+
transformation_ids == other.transformation_ids
|
123
134
|
end
|
124
135
|
|
125
136
|
# @see the `==` method
|
@@ -131,7 +142,7 @@ module Algolia
|
|
131
142
|
# Calculates hash code according to all attributes.
|
132
143
|
# @return [Integer] Hash code
|
133
144
|
def hash
|
134
|
-
[type, name, input, authentication_id].hash
|
145
|
+
[type, name, input, authentication_id, transformation_ids].hash
|
135
146
|
end
|
136
147
|
|
137
148
|
# Builds the object from hash
|