Skip to content

Commit

Permalink
fix(specs): ingestion destinations and transformations (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3477

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Aug 5, 2024
1 parent 628a9f9 commit 96c5cef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -883,15 +883,19 @@ public class IngestionClient(
* - addObject
* - deleteIndex
* - editSettings
* @param itemsPerPage Number of items per page. (default to 10)
* @param page Page number of the paginated API response.
* @param sort Property by which to sort the list. (default to desc)
* @param order Sort order of the response, ascending or descending. (default to desc)
* @param requestOptions additional request configuration.
*/
public suspend fun listTransformations(sort: SortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
public suspend fun listTransformations(itemsPerPage: Int? = null, page: Int? = null, sort: SortKeys? = null, order: OrderKeys? = null, requestOptions: RequestOptions? = null): ListTransformationsResponse {
val requestConfig = RequestConfig(
method = RequestMethod.GET,
path = listOf("1", "transformations"),
query = buildMap {
itemsPerPage?.let { put("itemsPerPage", it) }
page?.let { put("page", it) }
sort?.let { put("sort", it) }
order?.let { put("order", it) }
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import kotlinx.serialization.json.*
* @param createdAt Date of creation in RFC 3339 format.
* @param updatedAt Date of last update in RFC 3339 format.
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
* @param transformationIDs
*/
@Serializable
public data class Destination(
Expand All @@ -36,4 +37,6 @@ public data class Destination(

/** Universally unique identifier (UUID) of an authentication resource. */
@SerialName(value = "authenticationID") val authenticationID: String? = null,

@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
* @param name Descriptive name for the resource.
* @param input
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
* @param transformationIDs
*/
@Serializable
public data class DestinationCreate(
Expand All @@ -24,4 +25,6 @@ public data class DestinationCreate(

/** Universally unique identifier (UUID) of an authentication resource. */
@SerialName(value = "authenticationID") val authenticationID: String? = null,

@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
* @param name Descriptive name for the resource.
* @param input
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
* @param transformationIDs
*/
@Serializable
public data class DestinationUpdate(
Expand All @@ -24,4 +25,6 @@ public data class DestinationUpdate(

/** Universally unique identifier (UUID) of an authentication resource. */
@SerialName(value = "authenticationID") val authenticationID: String? = null,

@SerialName(value = "transformationIDs") val transformationIDs: List<String>? = null,
)

0 comments on commit 96c5cef

Please sign in to comment.