Skip to content

Commit fcfcbd2

Browse files
fix(specs): ingestion docker task input (generated)
algolia/api-clients-automation#3488 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6c7bf69 commit fcfcbd2

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ public class IngestionClient(
11821182
* @param transformationTry
11831183
* @param requestOptions additional request configuration.
11841184
*/
1185-
public suspend fun tryTransformations(transformationTry: TransformationTry, requestOptions: RequestOptions? = null): TransformationTryResponse {
1185+
public suspend fun tryTransformation(transformationTry: TransformationTry, requestOptions: RequestOptions? = null): TransformationTryResponse {
11861186
val requestConfig = RequestConfig(
11871187
method = RequestMethod.POST,
11881188
path = listOf("1", "transformations", "try"),
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
2+
package com.algolia.client.model.ingestion
3+
4+
import kotlinx.serialization.*
5+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* DockerStreams
9+
*
10+
* @param name The name of the stream to fetch the data from (e.g. table name).
11+
* @param syncMode
12+
* @param properties The properties of the stream to select (e.g. column).
13+
*/
14+
@Serializable
15+
public data class DockerStreams(
16+
17+
/** The name of the stream to fetch the data from (e.g. table name). */
18+
@SerialName(value = "name") val name: String,
19+
20+
@SerialName(value = "syncMode") val syncMode: DockerStreamsSyncMode,
21+
22+
/** The properties of the stream to select (e.g. column). */
23+
@SerialName(value = "properties") val properties: List<String>? = null,
24+
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ import kotlinx.serialization.json.*
1212
@Serializable
1313
public data class DockerStreamsInput(
1414

15-
@SerialName(value = "streams") val streams: JsonObject,
15+
@SerialName(value = "streams") val streams: List<DockerStreams>,
1616
) : TaskInput
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
2+
package com.algolia.client.model.ingestion
3+
4+
import kotlinx.serialization.*
5+
6+
/**
7+
* The strategy to use to fetch the data.
8+
*/
9+
@Serializable
10+
public enum class DockerStreamsSyncMode(public val value: kotlin.String) {
11+
12+
@SerialName(value = "incremental")
13+
Incremental("incremental"),
14+
15+
@SerialName(value = "fullTable")
16+
FullTable("fullTable");
17+
18+
override fun toString(): kotlin.String = value
19+
}

0 commit comments

Comments
 (0)