Skip to content

Commit 52e45d2

Browse files
algolia-botmillotpshortcuts
committed
fix(specs): correct query params for ingestion [skip-bc] (generated)
algolia/api-clients-automation#3830 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent 28e5e11 commit 52e45d2

File tree

3 files changed

+53
-40
lines changed

3 files changed

+53
-40
lines changed

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

Lines changed: 46 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,9 +1688,9 @@ public CompletableFuture<Transformation> getTransformationAsync(@Nonnull String
16881688
* @param itemsPerPage Number of items per page. (optional, default to 10)
16891689
* @param page Page number of the paginated API response. (optional)
16901690
* @param type Type of authentication resource to retrieve. (optional)
1691-
* @param platform Ecommerce platform for which to retrieve authentication resources. (optional)
1692-
* @param sort Property by which to sort the list of authentication resources. (optional, default
1693-
* to createdAt)
1691+
* @param platform Ecommerce platform for which to retrieve authentications. (optional)
1692+
* @param sort Property by which to sort the list of authentications. (optional, default to
1693+
* createdAt)
16941694
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
16951695
* @param requestOptions The requestOptions to send along with the query, they will be merged with
16961696
* the transporter requestOptions.
@@ -1714,9 +1714,9 @@ public ListAuthenticationsResponse listAuthentications(
17141714
* @param itemsPerPage Number of items per page. (optional, default to 10)
17151715
* @param page Page number of the paginated API response. (optional)
17161716
* @param type Type of authentication resource to retrieve. (optional)
1717-
* @param platform Ecommerce platform for which to retrieve authentication resources. (optional)
1718-
* @param sort Property by which to sort the list of authentication resources. (optional, default
1719-
* to createdAt)
1717+
* @param platform Ecommerce platform for which to retrieve authentications. (optional)
1718+
* @param sort Property by which to sort the list of authentications. (optional, default to
1719+
* createdAt)
17201720
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
17211721
* @throws AlgoliaRuntimeException If it fails to process the API call
17221722
*/
@@ -1757,9 +1757,9 @@ public ListAuthenticationsResponse listAuthentications() throws AlgoliaRuntimeEx
17571757
* @param itemsPerPage Number of items per page. (optional, default to 10)
17581758
* @param page Page number of the paginated API response. (optional)
17591759
* @param type Type of authentication resource to retrieve. (optional)
1760-
* @param platform Ecommerce platform for which to retrieve authentication resources. (optional)
1761-
* @param sort Property by which to sort the list of authentication resources. (optional, default
1762-
* to createdAt)
1760+
* @param platform Ecommerce platform for which to retrieve authentications. (optional)
1761+
* @param sort Property by which to sort the list of authentications. (optional, default to
1762+
* createdAt)
17631763
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
17641764
* @param requestOptions The requestOptions to send along with the query, they will be merged with
17651765
* the transporter requestOptions.
@@ -1793,9 +1793,9 @@ public CompletableFuture<ListAuthenticationsResponse> listAuthenticationsAsync(
17931793
* @param itemsPerPage Number of items per page. (optional, default to 10)
17941794
* @param page Page number of the paginated API response. (optional)
17951795
* @param type Type of authentication resource to retrieve. (optional)
1796-
* @param platform Ecommerce platform for which to retrieve authentication resources. (optional)
1797-
* @param sort Property by which to sort the list of authentication resources. (optional, default
1798-
* to createdAt)
1796+
* @param platform Ecommerce platform for which to retrieve authentications. (optional)
1797+
* @param sort Property by which to sort the list of authentications. (optional, default to
1798+
* createdAt)
17991799
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
18001800
* @throws AlgoliaRuntimeException If it fails to process the API call
18011801
*/
@@ -1838,6 +1838,7 @@ public CompletableFuture<ListAuthenticationsResponse> listAuthenticationsAsync()
18381838
* @param page Page number of the paginated API response. (optional)
18391839
* @param type Destination type. (optional)
18401840
* @param authenticationID Authentication ID used by destinations. (optional)
1841+
* @param transformationID Get the list of destinations used by a transformation. (optional)
18411842
* @param sort Property by which to sort the destinations. (optional, default to createdAt)
18421843
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
18431844
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -1849,11 +1850,14 @@ public ListDestinationsResponse listDestinations(
18491850
Integer page,
18501851
List<DestinationType> type,
18511852
List<String> authenticationID,
1853+
String transformationID,
18521854
DestinationSortKeys sort,
18531855
OrderKeys order,
18541856
RequestOptions requestOptions
18551857
) throws AlgoliaRuntimeException {
1856-
return LaunderThrowable.await(listDestinationsAsync(itemsPerPage, page, type, authenticationID, sort, order, requestOptions));
1858+
return LaunderThrowable.await(
1859+
listDestinationsAsync(itemsPerPage, page, type, authenticationID, transformationID, sort, order, requestOptions)
1860+
);
18571861
}
18581862

18591863
/**
@@ -1863,6 +1867,7 @@ public ListDestinationsResponse listDestinations(
18631867
* @param page Page number of the paginated API response. (optional)
18641868
* @param type Destination type. (optional)
18651869
* @param authenticationID Authentication ID used by destinations. (optional)
1870+
* @param transformationID Get the list of destinations used by a transformation. (optional)
18661871
* @param sort Property by which to sort the destinations. (optional, default to createdAt)
18671872
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
18681873
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -1872,10 +1877,11 @@ public ListDestinationsResponse listDestinations(
18721877
Integer page,
18731878
List<DestinationType> type,
18741879
List<String> authenticationID,
1880+
String transformationID,
18751881
DestinationSortKeys sort,
18761882
OrderKeys order
18771883
) throws AlgoliaRuntimeException {
1878-
return this.listDestinations(itemsPerPage, page, type, authenticationID, sort, order, null);
1884+
return this.listDestinations(itemsPerPage, page, type, authenticationID, transformationID, sort, order, null);
18791885
}
18801886

18811887
/**
@@ -1886,7 +1892,7 @@ public ListDestinationsResponse listDestinations(
18861892
* @throws AlgoliaRuntimeException If it fails to process the API call
18871893
*/
18881894
public ListDestinationsResponse listDestinations(RequestOptions requestOptions) throws AlgoliaRuntimeException {
1889-
return this.listDestinations(null, null, null, null, null, null, requestOptions);
1895+
return this.listDestinations(null, null, null, null, null, null, null, requestOptions);
18901896
}
18911897

18921898
/**
@@ -1895,7 +1901,7 @@ public ListDestinationsResponse listDestinations(RequestOptions requestOptions)
18951901
* @throws AlgoliaRuntimeException If it fails to process the API call
18961902
*/
18971903
public ListDestinationsResponse listDestinations() throws AlgoliaRuntimeException {
1898-
return this.listDestinations(null, null, null, null, null, null, null);
1904+
return this.listDestinations(null, null, null, null, null, null, null, null);
18991905
}
19001906

19011907
/**
@@ -1905,6 +1911,7 @@ public ListDestinationsResponse listDestinations() throws AlgoliaRuntimeExceptio
19051911
* @param page Page number of the paginated API response. (optional)
19061912
* @param type Destination type. (optional)
19071913
* @param authenticationID Authentication ID used by destinations. (optional)
1914+
* @param transformationID Get the list of destinations used by a transformation. (optional)
19081915
* @param sort Property by which to sort the destinations. (optional, default to createdAt)
19091916
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
19101917
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -1916,6 +1923,7 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(
19161923
Integer page,
19171924
List<DestinationType> type,
19181925
List<String> authenticationID,
1926+
String transformationID,
19191927
DestinationSortKeys sort,
19201928
OrderKeys order,
19211929
RequestOptions requestOptions
@@ -1927,6 +1935,7 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(
19271935
.addQueryParameter("page", page)
19281936
.addQueryParameter("type", type)
19291937
.addQueryParameter("authenticationID", authenticationID)
1938+
.addQueryParameter("transformationID", transformationID)
19301939
.addQueryParameter("sort", sort)
19311940
.addQueryParameter("order", order)
19321941
.build();
@@ -1940,6 +1949,7 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(
19401949
* @param page Page number of the paginated API response. (optional)
19411950
* @param type Destination type. (optional)
19421951
* @param authenticationID Authentication ID used by destinations. (optional)
1952+
* @param transformationID Get the list of destinations used by a transformation. (optional)
19431953
* @param sort Property by which to sort the destinations. (optional, default to createdAt)
19441954
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
19451955
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -1949,10 +1959,11 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(
19491959
Integer page,
19501960
List<DestinationType> type,
19511961
List<String> authenticationID,
1962+
String transformationID,
19521963
DestinationSortKeys sort,
19531964
OrderKeys order
19541965
) throws AlgoliaRuntimeException {
1955-
return this.listDestinationsAsync(itemsPerPage, page, type, authenticationID, sort, order, null);
1966+
return this.listDestinationsAsync(itemsPerPage, page, type, authenticationID, transformationID, sort, order, null);
19561967
}
19571968

19581969
/**
@@ -1963,7 +1974,7 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(
19631974
* @throws AlgoliaRuntimeException If it fails to process the API call
19641975
*/
19651976
public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException {
1966-
return this.listDestinationsAsync(null, null, null, null, null, null, requestOptions);
1977+
return this.listDestinationsAsync(null, null, null, null, null, null, null, requestOptions);
19671978
}
19681979

19691980
/**
@@ -1972,7 +1983,7 @@ public CompletableFuture<ListDestinationsResponse> listDestinationsAsync(Request
19721983
* @throws AlgoliaRuntimeException If it fails to process the API call
19731984
*/
19741985
public CompletableFuture<ListDestinationsResponse> listDestinationsAsync() throws AlgoliaRuntimeException {
1975-
return this.listDestinationsAsync(null, null, null, null, null, null, null);
1986+
return this.listDestinationsAsync(null, null, null, null, null, null, null, null);
19761987
}
19771988

19781989
/**
@@ -2348,7 +2359,7 @@ public CompletableFuture<RunListResponse> listRunsAsync() throws AlgoliaRuntimeE
23482359
* @param page Page number of the paginated API response. (optional)
23492360
* @param type Source type. Some sources require authentication. (optional)
23502361
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources
2351-
* that doesn't have an authentication resource. (optional)
2362+
* that doesn't have an authentication. (optional)
23522363
* @param sort Property by which to sort the list of sources. (optional, default to createdAt)
23532364
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
23542365
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -2374,7 +2385,7 @@ public ListSourcesResponse listSources(
23742385
* @param page Page number of the paginated API response. (optional)
23752386
* @param type Source type. Some sources require authentication. (optional)
23762387
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources
2377-
* that doesn't have an authentication resource. (optional)
2388+
* that doesn't have an authentication. (optional)
23782389
* @param sort Property by which to sort the list of sources. (optional, default to createdAt)
23792390
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
23802391
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2417,7 +2428,7 @@ public ListSourcesResponse listSources() throws AlgoliaRuntimeException {
24172428
* @param page Page number of the paginated API response. (optional)
24182429
* @param type Source type. Some sources require authentication. (optional)
24192430
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources
2420-
* that doesn't have an authentication resource. (optional)
2431+
* that doesn't have an authentication. (optional)
24212432
* @param sort Property by which to sort the list of sources. (optional, default to createdAt)
24222433
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
24232434
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -2453,7 +2464,7 @@ public CompletableFuture<ListSourcesResponse> listSourcesAsync(
24532464
* @param page Page number of the paginated API response. (optional)
24542465
* @param type Source type. Some sources require authentication. (optional)
24552466
* @param authenticationID Authentication IDs of the sources to retrieve. 'none' returns sources
2456-
* that doesn't have an authentication resource. (optional)
2467+
* that doesn't have an authentication. (optional)
24572468
* @param sort Property by which to sort the list of sources. (optional, default to createdAt)
24582469
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
24592470
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -2844,7 +2855,8 @@ public CompletableFuture<ListTasksResponseV1> listTasksV1Async() throws AlgoliaR
28442855
*
28452856
* @param itemsPerPage Number of items per page. (optional, default to 10)
28462857
* @param page Page number of the paginated API response. (optional)
2847-
* @param sort Property by which to sort the list. (optional, default to desc)
2858+
* @param sort Property by which to sort the list of transformations. (optional, default to
2859+
* createdAt)
28482860
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
28492861
* @param requestOptions The requestOptions to send along with the query, they will be merged with
28502862
* the transporter requestOptions.
@@ -2853,7 +2865,7 @@ public CompletableFuture<ListTasksResponseV1> listTasksV1Async() throws AlgoliaR
28532865
public ListTransformationsResponse listTransformations(
28542866
Integer itemsPerPage,
28552867
Integer page,
2856-
SortKeys sort,
2868+
TransformationSortKeys sort,
28572869
OrderKeys order,
28582870
RequestOptions requestOptions
28592871
) throws AlgoliaRuntimeException {
@@ -2865,11 +2877,12 @@ public ListTransformationsResponse listTransformations(
28652877
*
28662878
* @param itemsPerPage Number of items per page. (optional, default to 10)
28672879
* @param page Page number of the paginated API response. (optional)
2868-
* @param sort Property by which to sort the list. (optional, default to desc)
2880+
* @param sort Property by which to sort the list of transformations. (optional, default to
2881+
* createdAt)
28692882
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
28702883
* @throws AlgoliaRuntimeException If it fails to process the API call
28712884
*/
2872-
public ListTransformationsResponse listTransformations(Integer itemsPerPage, Integer page, SortKeys sort, OrderKeys order)
2885+
public ListTransformationsResponse listTransformations(Integer itemsPerPage, Integer page, TransformationSortKeys sort, OrderKeys order)
28732886
throws AlgoliaRuntimeException {
28742887
return this.listTransformations(itemsPerPage, page, sort, order, null);
28752888
}
@@ -2899,7 +2912,8 @@ public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeEx
28992912
*
29002913
* @param itemsPerPage Number of items per page. (optional, default to 10)
29012914
* @param page Page number of the paginated API response. (optional)
2902-
* @param sort Property by which to sort the list. (optional, default to desc)
2915+
* @param sort Property by which to sort the list of transformations. (optional, default to
2916+
* createdAt)
29032917
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
29042918
* @param requestOptions The requestOptions to send along with the query, they will be merged with
29052919
* the transporter requestOptions.
@@ -2908,7 +2922,7 @@ public ListTransformationsResponse listTransformations() throws AlgoliaRuntimeEx
29082922
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
29092923
Integer itemsPerPage,
29102924
Integer page,
2911-
SortKeys sort,
2925+
TransformationSortKeys sort,
29122926
OrderKeys order,
29132927
RequestOptions requestOptions
29142928
) throws AlgoliaRuntimeException {
@@ -2928,14 +2942,15 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
29282942
*
29292943
* @param itemsPerPage Number of items per page. (optional, default to 10)
29302944
* @param page Page number of the paginated API response. (optional)
2931-
* @param sort Property by which to sort the list. (optional, default to desc)
2945+
* @param sort Property by which to sort the list of transformations. (optional, default to
2946+
* createdAt)
29322947
* @param order Sort order of the response, ascending or descending. (optional, default to desc)
29332948
* @throws AlgoliaRuntimeException If it fails to process the API call
29342949
*/
29352950
public CompletableFuture<ListTransformationsResponse> listTransformationsAsync(
29362951
Integer itemsPerPage,
29372952
Integer page,
2938-
SortKeys sort,
2953+
TransformationSortKeys sort,
29392954
OrderKeys order
29402955
) throws AlgoliaRuntimeException {
29412956
return this.listTransformationsAsync(itemsPerPage, page, sort, order, null);

algoliasearch/src/main/java/com/algolia/model/ingestion/AuthenticationSortKeys.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import com.fasterxml.jackson.annotation.*;
77
import com.fasterxml.jackson.databind.annotation.*;
88

9-
/** Property by which to sort the list of authentication resources. */
9+
/** Property by which to sort the list of authentications. */
1010
public enum AuthenticationSortKeys {
1111
NAME("name"),
1212

13-
AUTH_TYPE("auth_type"),
13+
TYPE("type"),
1414

1515
PLATFORM("platform"),
1616

algoliasearch/src/main/java/com/algolia/model/ingestion/SortKeys.java renamed to algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationSortKeys.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@
66
import com.fasterxml.jackson.annotation.*;
77
import com.fasterxml.jackson.databind.annotation.*;
88

9-
/** Property by which to sort the list. */
10-
public enum SortKeys {
9+
/** Property by which to sort the list of transformations. */
10+
public enum TransformationSortKeys {
1111
NAME("name"),
1212

13-
TYPE("type"),
14-
1513
UPDATED_AT("updatedAt"),
1614

1715
CREATED_AT("createdAt");
1816

1917
private final String value;
2018

21-
SortKeys(String value) {
19+
TransformationSortKeys(String value) {
2220
this.value = value;
2321
}
2422

@@ -33,8 +31,8 @@ public String toString() {
3331
}
3432

3533
@JsonCreator
36-
public static SortKeys fromValue(String value) {
37-
for (SortKeys b : SortKeys.values()) {
34+
public static TransformationSortKeys fromValue(String value) {
35+
for (TransformationSortKeys b : TransformationSortKeys.values()) {
3836
if (b.value.equals(value)) {
3937
return b;
4038
}

0 commit comments

Comments
 (0)