Skip to content

Commit 2bf3adb

Browse files
fix(specs): enable watcher for push [skip-bc] (generated)
algolia/api-clients-automation#4229 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 40f46c0 commit 2bf3adb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ public class IngestionClient(
925925
* @param watch When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
926926
* @param requestOptions additional request configuration.
927927
*/
928-
public suspend fun pushTask(taskID: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, requestOptions: RequestOptions? = null): RunResponse {
928+
public suspend fun pushTask(taskID: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, requestOptions: RequestOptions? = null): WatchResponse {
929929
require(taskID.isNotBlank()) { "Parameter `taskID` is required when calling `pushTask`." }
930930
val requestConfig = RequestConfig(
931931
method = RequestMethod.POST,
@@ -1151,7 +1151,7 @@ public class IngestionClient(
11511151
* @param sourceID Unique identifier of a source.
11521152
* @param requestOptions additional request configuration.
11531153
*/
1154-
public suspend fun triggerDockerSourceDiscover(sourceID: String, requestOptions: RequestOptions? = null): SourceWatchResponse {
1154+
public suspend fun triggerDockerSourceDiscover(sourceID: String, requestOptions: RequestOptions? = null): WatchResponse {
11551155
require(sourceID.isNotBlank()) { "Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`." }
11561156
val requestConfig = RequestConfig(
11571157
method = RequestMethod.POST,
@@ -1348,7 +1348,7 @@ public class IngestionClient(
13481348
* @param sourceCreate
13491349
* @param requestOptions additional request configuration.
13501350
*/
1351-
public suspend fun validateSource(sourceCreate: SourceCreate? = null, requestOptions: RequestOptions? = null): SourceWatchResponse {
1351+
public suspend fun validateSource(sourceCreate: SourceCreate? = null, requestOptions: RequestOptions? = null): WatchResponse {
13521352
val requestConfig = RequestConfig(
13531353
method = RequestMethod.POST,
13541354
path = listOf("1", "sources", "validate"),
@@ -1371,7 +1371,7 @@ public class IngestionClient(
13711371
* @param sourceUpdate
13721372
* @param requestOptions additional request configuration.
13731373
*/
1374-
public suspend fun validateSourceBeforeUpdate(sourceID: String, sourceUpdate: SourceUpdate, requestOptions: RequestOptions? = null): SourceWatchResponse {
1374+
public suspend fun validateSourceBeforeUpdate(sourceID: String, sourceUpdate: SourceUpdate, requestOptions: RequestOptions? = null): WatchResponse {
13751375
require(sourceID.isNotBlank()) { "Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`." }
13761376
val requestConfig = RequestConfig(
13771377
method = RequestMethod.POST,

client/src/commonMain/kotlin/com/algolia/client/model/ingestion/SourceWatchResponse.kt renamed to client/src/commonMain/kotlin/com/algolia/client/model/ingestion/WatchResponse.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ import kotlinx.serialization.*
55
import kotlinx.serialization.json.*
66

77
/**
8-
* SourceWatchResponse
8+
* WatchResponse
99
*
1010
* @param message a message describing the outcome of a validate run.
1111
* @param runID Universally unique identifier (UUID) of a task run.
12-
* @param `data` depending on the source type, the validation returns sampling data of your source (JSON, CSV, BigQuery).
12+
* @param `data` when used with discovering or validating sources, the sampled data of your source is returned.
1313
* @param events in case of error, observability events will be added to the response, if any.
1414
*/
1515
@Serializable
16-
public data class SourceWatchResponse(
16+
public data class WatchResponse(
1717

1818
/** a message describing the outcome of a validate run. */
1919
@SerialName(value = "message") val message: String,
2020

2121
/** Universally unique identifier (UUID) of a task run. */
2222
@SerialName(value = "runID") val runID: String? = null,
2323

24-
/** depending on the source type, the validation returns sampling data of your source (JSON, CSV, BigQuery). */
24+
/** when used with discovering or validating sources, the sampled data of your source is returned. */
2525
@SerialName(value = "data") val `data`: List<JsonObject>? = null,
2626

2727
/** in case of error, observability events will be added to the response, if any. */

0 commit comments

Comments
 (0)