Skip to content

Commit 641abd7

Browse files
feat(specs): allow filtering transformations type (generated)
algolia/api-clients-automation#5363 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent f7bc197 commit 641abd7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

lib/algolia/api/ingestion_client.rb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2086,13 +2086,15 @@ def list_tasks_v1(
20862086
# @param page [Integer] Page number of the paginated API response.
20872087
# @param sort [TransformationSortKeys] Property by which to sort the list of transformations. (default to 'createdAt')
20882088
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
2089+
# @param type [TransformationType] Whether to filter the list of transformations by the type of transformation.
20892090
# @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)
20902091
# @return [Http::Response] the response
20912092
def list_transformations_with_http_info(
20922093
items_per_page = nil,
20932094
page = nil,
20942095
sort = nil,
20952096
order = nil,
2097+
type = nil,
20962098
request_options = {}
20972099
)
20982100
path = "/1/transformations"
@@ -2101,6 +2103,7 @@ def list_transformations_with_http_info(
21012103
query_params[:page] = page unless page.nil?
21022104
query_params[:sort] = sort unless sort.nil?
21032105
query_params[:order] = order unless order.nil?
2106+
query_params[:type] = type unless type.nil?
21042107
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
21052108
header_params = {}
21062109
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
@@ -2128,10 +2131,18 @@ def list_transformations_with_http_info(
21282131
# @param page [Integer] Page number of the paginated API response.
21292132
# @param sort [TransformationSortKeys] Property by which to sort the list of transformations. (default to 'createdAt')
21302133
# @param order [OrderKeys] Sort order of the response, ascending or descending. (default to 'desc')
2134+
# @param type [TransformationType] Whether to filter the list of transformations by the type of transformation.
21312135
# @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)
21322136
# @return [ListTransformationsResponse]
2133-
def list_transformations(items_per_page = nil, page = nil, sort = nil, order = nil, request_options = {})
2134-
response = list_transformations_with_http_info(items_per_page, page, sort, order, request_options)
2137+
def list_transformations(
2138+
items_per_page = nil,
2139+
page = nil,
2140+
sort = nil,
2141+
order = nil,
2142+
type = nil,
2143+
request_options = {}
2144+
)
2145+
response = list_transformations_with_http_info(items_per_page, page, sort, order, type, request_options)
21352146
@api_client.deserialize(
21362147
response.body,
21372148
request_options[:debug_return_type] || "Ingestion::ListTransformationsResponse"

0 commit comments

Comments
 (0)