Skip to content

Commit 96c5cef

Browse files
fix(specs): ingestion destinations and transformations (generated)
algolia/api-clients-automation#3477 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 628a9f9 commit 96c5cef

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,15 +883,19 @@ public class IngestionClient(
883883
* - addObject
884884
* - deleteIndex
885885
* - editSettings
886+
* @param itemsPerPage Number of items per page. (default to 10)
887+
* @param page Page number of the paginated API response.
886888
* @param sort Property by which to sort the list. (default to desc)
887889
* @param order Sort order of the response, ascending or descending. (default to desc)
888890
* @param requestOptions additional request configuration.
889891
*/
890-
public suspend fun listTransformations(sort: SortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
892+
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: SortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
891893
val requestConfig = RequestConfig(
892894
method = RequestMethod.GET,
893895
path = listOf("1", "transformations"),
894896
query = buildMap {
897+
itemsPerPage?.let { put("itemsPerPage", it) }
898+
page?.let { put("page", it) }
895899
sort?.let { put("sort", it) }
896900
order?.let { put("order", it) }
897901
},

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Destination.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import kotlinx.serialization.json.*
1414
* @param createdAt Date of creation in RFC 3339 format.
1515
* @param updatedAt Date of last update in RFC 3339 format.
1616
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
17+
* @param transformationIDs
1718
*/
1819
@Serializable
1920
public data class Destination(
@@ -36,4 +37,6 @@ public data class Destination(
3637

3738
/** Universally unique identifier (UUID) of an authentication resource. */
3839
@SerialName(value = "authenticationID") val authenticationID: String? = null,
40+
41+
@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
3942
)

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DestinationCreate.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param name Descriptive name for the resource.
1212
* @param input
1313
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
14+
* @param transformationIDs
1415
*/
1516
@Serializable
1617
public data class DestinationCreate(
@@ -24,4 +25,6 @@ public data class DestinationCreate(
2425

2526
/** Universally unique identifier (UUID) of an authentication resource. */
2627
@SerialName(value = "authenticationID") val authenticationID: String? = null,
28+
29+
@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
2730
)

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/DestinationUpdate.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param name Descriptive name for the resource.
1212
* @param input
1313
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
14+
* @param transformationIDs
1415
*/
1516
@Serializable
1617
public data class DestinationUpdate(
@@ -24,4 +25,6 @@ public data class DestinationUpdate(
2425

2526
/** Universally unique identifier (UUID) of an authentication resource. */
2627
@SerialName(value = "authenticationID") val authenticationID: String? = null,
28+
29+
@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
2730
)

0 commit comments

Comments
 (0)