Skip to content

Commit e4a199e

Browse files
chore: generated code for commit fe6f5eda. [skip ci]
algolia/api-clients-automation@fe6f5ed Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 2efc4b8 commit e4a199e

File tree

8 files changed

+475
-112
lines changed

8 files changed

+475
-112
lines changed

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

Lines changed: 307 additions & 104 deletions
Large diffs are not rendered by default.
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+
import kotlinx.serialization.json.*
6+
7+
/**
8+
* Configured tasks and pagination information.
9+
*
10+
* @param tasks
11+
* @param pagination
12+
*/
13+
@Serializable
14+
public data class ListTasksResponseV1(
15+
16+
@SerialName(value = "tasks") val tasks: List<TaskV1>,
17+
18+
@SerialName(value = "pagination") val pagination: Pagination,
19+
)

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ import kotlinx.serialization.json.*
1010
* @param taskID Universally unique identifier (UUID) of a task.
1111
* @param sourceID Universally uniqud identifier (UUID) of a source.
1212
* @param destinationID Universally unique identifier (UUID) of a destination resource.
13-
* @param trigger
1413
* @param enabled Whether the task is enabled.
1514
* @param action
1615
* @param createdAt Date of creation in RFC 3339 format.
16+
* @param cron Cron expression for the task's schedule.
17+
* @param lastRun The last time the scheduled task ran in RFC 3339 format.
18+
* @param nextRun The next scheduled run of the task in RFC 3339 format.
1719
* @param input
1820
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
1921
* @param cursor Date of the last cursor in RFC 3339 format.
@@ -31,8 +33,6 @@ public data class Task(
3133
/** Universally unique identifier (UUID) of a destination resource. */
3234
@SerialName(value = "destinationID") val destinationID: String,
3335

34-
@SerialName(value = "trigger") val trigger: Trigger,
35-
3636
/** Whether the task is enabled. */
3737
@SerialName(value = "enabled") val enabled: Boolean,
3838

@@ -41,6 +41,15 @@ public data class Task(
4141
/** Date of creation in RFC 3339 format. */
4242
@SerialName(value = "createdAt") val createdAt: String,
4343

44+
/** Cron expression for the task's schedule. */
45+
@SerialName(value = "cron") val cron: String? = null,
46+
47+
/** The last time the scheduled task ran in RFC 3339 format. */
48+
@SerialName(value = "lastRun") val lastRun: String? = null,
49+
50+
/** The next scheduled run of the task in RFC 3339 format. */
51+
@SerialName(value = "nextRun") val nextRun: String? = null,
52+
4453
@SerialName(value = "input") val input: TaskInput? = null,
4554

4655
/** Maximum accepted percentage of failures for a task run to finish successfully. */

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import kotlinx.serialization.json.*
99
*
1010
* @param sourceID Universally uniqud identifier (UUID) of a source.
1111
* @param destinationID Universally unique identifier (UUID) of a destination resource.
12-
* @param trigger
1312
* @param action
13+
* @param cron Cron expression for the task's schedule.
1414
* @param enabled Whether the task is enabled.
1515
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
1616
* @param input
@@ -25,10 +25,11 @@ public data class TaskCreate(
2525
/** Universally unique identifier (UUID) of a destination resource. */
2626
@SerialName(value = "destinationID") val destinationID: String,
2727

28-
@SerialName(value = "trigger") val trigger: TaskCreateTrigger,
29-
3028
@SerialName(value = "action") val action: ActionType,
3129

30+
/** Cron expression for the task's schedule. */
31+
@SerialName(value = "cron") val cron: String? = null,
32+
3233
/** Whether the task is enabled. */
3334
@SerialName(value = "enabled") val enabled: Boolean? = null,
3435

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
* API request body for creating a task using the V1 shape, please use methods and types that don't contain the V1 suffix.
9+
*
10+
* @param sourceID Universally uniqud identifier (UUID) of a source.
11+
* @param destinationID Universally unique identifier (UUID) of a destination resource.
12+
* @param trigger
13+
* @param action
14+
* @param enabled Whether the task is enabled.
15+
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
16+
* @param input
17+
* @param cursor Date of the last cursor in RFC 3339 format.
18+
*/
19+
@Deprecated(message = "This schema is deprecated.")
20+
@Serializable
21+
public data class TaskCreateV1(
22+
23+
/** Universally uniqud identifier (UUID) of a source. */
24+
@SerialName(value = "sourceID") val sourceID: String,
25+
26+
/** Universally unique identifier (UUID) of a destination resource. */
27+
@SerialName(value = "destinationID") val destinationID: String,
28+
29+
@SerialName(value = "trigger") val trigger: TaskCreateTrigger,
30+
31+
@SerialName(value = "action") val action: ActionType,
32+
33+
/** Whether the task is enabled. */
34+
@SerialName(value = "enabled") val enabled: Boolean? = null,
35+
36+
/** Maximum accepted percentage of failures for a task run to finish successfully. */
37+
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
38+
39+
@SerialName(value = "input") val input: TaskInput? = null,
40+
41+
/** Date of the last cursor in RFC 3339 format. */
42+
@SerialName(value = "cursor") val cursor: String? = null,
43+
)

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.serialization.json.*
88
* API request body for updating a task.
99
*
1010
* @param destinationID Universally unique identifier (UUID) of a destination resource.
11-
* @param trigger
11+
* @param cron Cron expression for the task's schedule.
1212
* @param input
1313
* @param enabled Whether the task is enabled.
1414
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
@@ -19,7 +19,8 @@ public data class TaskUpdate(
1919
/** Universally unique identifier (UUID) of a destination resource. */
2020
@SerialName(value = "destinationID") val destinationID: String? = null,
2121

22-
@SerialName(value = "trigger") val trigger: TriggerUpdateInput? = null,
22+
/** Cron expression for the task's schedule. */
23+
@SerialName(value = "cron") val cron: String? = null,
2324

2425
@SerialName(value = "input") val input: TaskInput? = null,
2526

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
* API request body for updating a task using the V1 shape, please use methods and types that don't contain the V1 suffix.
9+
*
10+
* @param destinationID Universally unique identifier (UUID) of a destination resource.
11+
* @param trigger
12+
* @param input
13+
* @param enabled Whether the task is enabled.
14+
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
15+
*/
16+
@Deprecated(message = "This schema is deprecated.")
17+
@Serializable
18+
public data class TaskUpdateV1(
19+
20+
/** Universally unique identifier (UUID) of a destination resource. */
21+
@SerialName(value = "destinationID") val destinationID: String? = null,
22+
23+
@SerialName(value = "trigger") val trigger: TriggerUpdateInput? = null,
24+
25+
@SerialName(value = "input") val input: TaskInput? = null,
26+
27+
/** Whether the task is enabled. */
28+
@SerialName(value = "enabled") val enabled: Boolean? = null,
29+
30+
/** Maximum accepted percentage of failures for a task run to finish successfully. */
31+
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
32+
)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
* The V1 task object, please use methods and types that don't contain the V1 suffix.
9+
*
10+
* @param taskID Universally unique identifier (UUID) of a task.
11+
* @param sourceID Universally uniqud identifier (UUID) of a source.
12+
* @param destinationID Universally unique identifier (UUID) of a destination resource.
13+
* @param trigger
14+
* @param enabled Whether the task is enabled.
15+
* @param action
16+
* @param createdAt Date of creation in RFC 3339 format.
17+
* @param input
18+
* @param failureThreshold Maximum accepted percentage of failures for a task run to finish successfully.
19+
* @param cursor Date of the last cursor in RFC 3339 format.
20+
* @param updatedAt Date of last update in RFC 3339 format.
21+
*/
22+
@Deprecated(message = "This schema is deprecated.")
23+
@Serializable
24+
public data class TaskV1(
25+
26+
/** Universally unique identifier (UUID) of a task. */
27+
@SerialName(value = "taskID") val taskID: String,
28+
29+
/** Universally uniqud identifier (UUID) of a source. */
30+
@SerialName(value = "sourceID") val sourceID: String,
31+
32+
/** Universally unique identifier (UUID) of a destination resource. */
33+
@SerialName(value = "destinationID") val destinationID: String,
34+
35+
@SerialName(value = "trigger") val trigger: Trigger,
36+
37+
/** Whether the task is enabled. */
38+
@SerialName(value = "enabled") val enabled: Boolean,
39+
40+
@SerialName(value = "action") val action: ActionType,
41+
42+
/** Date of creation in RFC 3339 format. */
43+
@SerialName(value = "createdAt") val createdAt: String,
44+
45+
@SerialName(value = "input") val input: TaskInput? = null,
46+
47+
/** Maximum accepted percentage of failures for a task run to finish successfully. */
48+
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
49+
50+
/** Date of the last cursor in RFC 3339 format. */
51+
@SerialName(value = "cursor") val cursor: String? = null,
52+
53+
/** Date of last update in RFC 3339 format. */
54+
@SerialName(value = "updatedAt") val updatedAt: String? = null,
55+
)

0 commit comments

Comments
 (0)