Skip to content

Commit 23580b7

Browse files
fix(specs): make optional for tasks [skip-bc] (generated)
algolia/api-clients-automation#4095 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent ad50fe0 commit 23580b7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import kotlinx.serialization.json.*
1111
* @param sourceID Universally uniqud identifier (UUID) of a source.
1212
* @param destinationID Universally unique identifier (UUID) of a destination resource.
1313
* @param enabled Whether the task is enabled.
14-
* @param action
1514
* @param createdAt Date of creation in RFC 3339 format.
1615
* @param cron Cron expression for the task's schedule.
1716
* @param lastRun The last time the scheduled task ran in RFC 3339 format.
1817
* @param nextRun The next scheduled run of the task in RFC 3339 format.
1918
* @param input
2019
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
20+
* @param action
2121
* @param cursor Date of the last cursor in RFC 3339 format.
2222
* @param updatedAt Date of last update in RFC 3339 format.
2323
*/
@@ -36,8 +36,6 @@ public data class Task(
3636
/** Whether the task is enabled. */
3737
@SerialName(value = "enabled") val enabled: Boolean,
3838

39-
@SerialName(value = "action") val action: ActionType,
40-
4139
/** Date of creation in RFC 3339 format. */
4240
@SerialName(value = "createdAt") val createdAt: String,
4341

@@ -55,6 +53,8 @@ public data class Task(
5553
/** Maximum accepted percentage of failures for a task run to finish successfully. */
5654
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
5755

56+
@SerialName(value = "action") val action: ActionType? = null,
57+
5858
/** Date of the last cursor in RFC 3339 format. */
5959
@SerialName(value = "cursor") val cursor: String? = null,
6060

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import kotlinx.serialization.json.*
1212
* @param destinationID Universally unique identifier (UUID) of a destination resource.
1313
* @param trigger
1414
* @param enabled Whether the task is enabled.
15-
* @param action
1615
* @param createdAt Date of creation in RFC 3339 format.
1716
* @param input
1817
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
18+
* @param action
1919
* @param cursor Date of the last cursor in RFC 3339 format.
2020
* @param updatedAt Date of last update in RFC 3339 format.
2121
*/
@@ -37,8 +37,6 @@ public data class TaskV1(
3737
/** Whether the task is enabled. */
3838
@SerialName(value = "enabled") val enabled: Boolean,
3939

40-
@SerialName(value = "action") val action: ActionType,
41-
4240
/** Date of creation in RFC 3339 format. */
4341
@SerialName(value = "createdAt") val createdAt: String,
4442

@@ -47,6 +45,8 @@ public data class TaskV1(
4745
/** Maximum accepted percentage of failures for a task run to finish successfully. */
4846
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
4947

48+
@SerialName(value = "action") val action: ActionType? = null,
49+
5050
/** Date of the last cursor in RFC 3339 format. */
5151
@SerialName(value = "cursor") val cursor: String? = null,
5252

0 commit comments

Comments
 (0)