Skip to content

Commit 1b62460

Browse files
feat(specs): add subscriptionAction to ingestion specs (generated)
algolia/api-clients-automation#4587 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent fedb095 commit 1b62460

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import kotlinx.serialization.json.*
1818
* @param input
1919
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
2020
* @param action
21+
* @param subscriptionAction
2122
* @param cursor Date of the last cursor in RFC 3339 format.
2223
* @param notifications
2324
* @param policies
@@ -57,6 +58,8 @@ public data class Task(
5758

5859
@SerialName(value = "action") val action: ActionType? = null,
5960

61+
@SerialName(value = "subscriptionAction") val subscriptionAction: ActionType? = null,
62+
6063
/** Date of the last cursor in RFC 3339 format. */
6164
@SerialName(value = "cursor") val cursor: String? = null,
6265

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import kotlinx.serialization.json.*
1010
* @param sourceID Universally uniqud identifier (UUID) of a source.
1111
* @param destinationID Universally unique identifier (UUID) of a destination resource.
1212
* @param action
13+
* @param subscriptionAction
1314
* @param cron Cron expression for the task's schedule.
1415
* @param enabled Whether the task is enabled.
1516
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
@@ -29,6 +30,8 @@ public data class TaskCreate(
2930

3031
@SerialName(value = "action") val action: ActionType,
3132

33+
@SerialName(value = "subscriptionAction") val subscriptionAction: ActionType? = null,
34+
3235
/** Cron expression for the task's schedule. */
3336
@SerialName(value = "cron") val cron: String? = null,
3437

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param cron Cron expression for the task's schedule.
1212
* @param input
1313
* @param enabled Whether the task is enabled.
14+
* @param subscriptionAction
1415
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
1516
* @param notifications
1617
* @param policies
@@ -29,6 +30,8 @@ public data class TaskUpdate(
2930
/** Whether the task is enabled. */
3031
@SerialName(value = "enabled") val enabled: Boolean? = null,
3132

33+
@SerialName(value = "subscriptionAction") val subscriptionAction: ActionType? = null,
34+
3235
/** Maximum accepted percentage of failures for a task run to finish successfully. */
3336
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
3437

0 commit comments

Comments
 (0)