Skip to content

Commit 2941840

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 00f771e commit 2941840

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

algoliasearch/src/main/java/com/algolia/api/IngestionClient.java

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,6 +2998,8 @@ public CompletableFuture<ListTasksResponseV1> listTasksV1Async() throws AlgoliaR
29982998
* @param sort Property by which to sort the list of transformations. (optional, default to
29992999
* createdAt)
30003000
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3001+
* @param type Whether to filter the list of transformations by the type of transformation.
3002+
* (optional)
30013003
* @param requestOptions The requestOptions to send along with the query, they will be merged with
30023004
* the transporter requestOptions.
30033005
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3007,9 +3009,10 @@ public ListTransformationsResponse listTransformations(
30073009
Integer page,
30083010
TransformationSortKeys sort,
30093011
OrderKeys order,
3012+
TransformationType type,
30103013
@Nullable RequestOptions requestOptions
30113014
) throws AlgoliaRuntimeException {
3012-
return LaunderThrowable.await(listTransformationsAsync(itemsPerPage, page, sort, order, requestOptions));
3015+
return LaunderThrowable.await(listTransformationsAsync(itemsPerPage, page, sort, order, type, requestOptions));
30133016
}
30143017

30153018
/**
@@ -3020,11 +3023,18 @@ public ListTransformationsResponse listTransformations(
30203023
* @param sort Property by which to sort the list of transformations. (optional, default to
30213024
* createdAt)
30223025
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3026+
* @param type Whether to filter the list of transformations by the type of transformation.
3027+
* (optional)
30233028
* @throws AlgoliaRuntimeException If it fails to process the API call
30243029
*/
3025-
public ListTransformationsResponse listTransformations(Integer itemsPerPage, Integer page, TransformationSortKeys sort, OrderKeys order)
3026-
throws AlgoliaRuntimeException {
3027-
return this.listTransformations(itemsPerPage, page, sort, order, null);
3030+
public ListTransformationsResponse listTransformations(
3031+
Integer itemsPerPage,
3032+
Integer page,
3033+
TransformationSortKeys sort,
3034+
OrderKeys order,
3035+
TransformationType type
3036+
) throws AlgoliaRuntimeException {
3037+
return this.listTransformations(itemsPerPage, page, sort, order, type, null);
30283038
}
30293039

30303040
/**
@@ -3035,7 +3045,7 @@ public ListTransformationsResponse listTransformations(Integer itemsPerPage, Int
30353045
* @throws AlgoliaRuntimeException If it fails to process the API call
30363046
*/
30373047
public ListTransformationsResponse listTransformations(@Nullable RequestOptions requestOptions) throws AlgoliaRuntimeException {
3038-
return this.listTransformations(null, null, null, null, requestOptions);
3048+
return this.listTransformations(null, null, null, null, null, requestOptions);
30393049
}
30403050

30413051
/**
@@ -3044,7 +3054,7 @@ public ListTransformationsResponse listTransformations(@Nullable RequestOptions
30443054
* @throws AlgoliaRuntimeException If it fails to process the API call
30453055
*/
30463056
public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeException {
3047-
return this.listTransformations(null, null, null, null, null);
3057+
return this.listTransformations(null, null, null, null, null, null);
30483058
}
30493059

30503060
/**
@@ -3055,6 +3065,8 @@ public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeEx
30553065
* @param sort Property by which to sort the list of transformations. (optional, default to
30563066
* createdAt)
30573067
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3068+
* @param type Whether to filter the list of transformations by the type of transformation.
3069+
* (optional)
30583070
* @param requestOptions The requestOptions to send along with the query, they will be merged with
30593071
* the transporter requestOptions.
30603072
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3064,6 +3076,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30643076
Integer page,
30653077
TransformationSortKeys sort,
30663078
OrderKeys order,
3079+
TransformationType type,
30673080
@Nullable RequestOptions requestOptions
30683081
) throws AlgoliaRuntimeException {
30693082
HttpRequest request = HttpRequest.builder()
@@ -3073,6 +3086,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30733086
.addQueryParameter("page", page)
30743087
.addQueryParameter("sort", sort)
30753088
.addQueryParameter("order", order)
3089+
.addQueryParameter("type", type)
30763090
.build();
30773091
return executeAsync(request, requestOptions, new TypeReference<ListTransformationsResponse>() {});
30783092
}
@@ -3085,15 +3099,18 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30853099
* @param sort Property by which to sort the list of transformations. (optional, default to
30863100
* createdAt)
30873101
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
3102+
* @param type Whether to filter the list of transformations by the type of transformation.
3103+
* (optional)
30883104
* @throws AlgoliaRuntimeException If it fails to process the API call
30893105
*/
30903106
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
30913107
Integer itemsPerPage,
30923108
Integer page,
30933109
TransformationSortKeys sort,
3094-
OrderKeys order
3110+
OrderKeys order,
3111+
TransformationType type
30953112
) throws AlgoliaRuntimeException {
3096-
return this.listTransformationsAsync(itemsPerPage, page, sort, order, null);
3113+
return this.listTransformationsAsync(itemsPerPage, page, sort, order, type, null);
30973114
}
30983115

30993116
/**
@@ -3105,7 +3122,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
31053122
*/
31063123
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(@Nullable RequestOptions requestOptions)
31073124
throws AlgoliaRuntimeException {
3108-
return this.listTransformationsAsync(null, null, null, null, requestOptions);
3125+
return this.listTransformationsAsync(null, null, null, null, null, requestOptions);
31093126
}
31103127

31113128
/**
@@ -3114,7 +3131,7 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(@
31143131
* @throws AlgoliaRuntimeException If it fails to process the API call
31153132
*/
31163133
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync() throws AlgoliaRuntimeException {
3117-
return this.listTransformationsAsync(null, null, null, null, null);
3134+
return this.listTransformationsAsync(null, null, null, null, null, null);
31183135
}
31193136

31203137
/**

0 commit comments

Comments
 (0)