Skip to content

Commit

Permalink
fix(specs): enable watcher for push [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4229

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Dec 11, 2024
1 parent 40f46c0 commit 2bf3adb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ public class IngestionClient(
* @param watch When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
* @param requestOptions additional request configuration.
*/
public suspend fun pushTask(taskID: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, requestOptions: RequestOptions? = null): RunResponse {
public suspend fun pushTask(taskID: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, requestOptions: RequestOptions? = null): WatchResponse {
require(taskID.isNotBlank()) { "Parameter `taskID` is required when calling `pushTask`." }
val requestConfig = RequestConfig(
method = RequestMethod.POST,
Expand Down Expand Up @@ -1151,7 +1151,7 @@ public class IngestionClient(
* @param sourceID Unique identifier of a source.
* @param requestOptions additional request configuration.
*/
public suspend fun triggerDockerSourceDiscover(sourceID: String, requestOptions: RequestOptions? = null): SourceWatchResponse {
public suspend fun triggerDockerSourceDiscover(sourceID: String, requestOptions: RequestOptions? = null): WatchResponse {
require(sourceID.isNotBlank()) { "Parameter `sourceID` is required when calling `triggerDockerSourceDiscover`." }
val requestConfig = RequestConfig(
method = RequestMethod.POST,
Expand Down Expand Up @@ -1348,7 +1348,7 @@ public class IngestionClient(
* @param sourceCreate
* @param requestOptions additional request configuration.
*/
public suspend fun validateSource(sourceCreate: SourceCreate? = null, requestOptions: RequestOptions? = null): SourceWatchResponse {
public suspend fun validateSource(sourceCreate: SourceCreate? = null, requestOptions: RequestOptions? = null): WatchResponse {
val requestConfig = RequestConfig(
method = RequestMethod.POST,
path = listOf("1", "sources", "validate"),
Expand All @@ -1371,7 +1371,7 @@ public class IngestionClient(
* @param sourceUpdate
* @param requestOptions additional request configuration.
*/
public suspend fun validateSourceBeforeUpdate(sourceID: String, sourceUpdate: SourceUpdate, requestOptions: RequestOptions? = null): SourceWatchResponse {
public suspend fun validateSourceBeforeUpdate(sourceID: String, sourceUpdate: SourceUpdate, requestOptions: RequestOptions? = null): WatchResponse {
require(sourceID.isNotBlank()) { "Parameter `sourceID` is required when calling `validateSourceBeforeUpdate`." }
val requestConfig = RequestConfig(
method = RequestMethod.POST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ import kotlinx.serialization.*
import kotlinx.serialization.json.*

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

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

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

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

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

0 comments on commit 2bf3adb

Please sign in to comment.