
commonMain.com.algolia.client.model.ingestion.TaskCreate.kt Maven / Gradle / Ivy
/** 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. */
package com.algolia.client.model.ingestion
import kotlinx.serialization.*
import kotlinx.serialization.json.*
/**
* The payload for a task creation.
*
* @param sourceID The source UUID.
* @param destinationID The destination UUID.
* @param trigger
* @param action
* @param enabled Whether the task is enabled or not.
* @param failureThreshold A percentage representing the accepted failure threshold to determine if a `run` succeeded or not.
* @param input
*/
@Serializable
public data class TaskCreate(
/** The source UUID. */
@SerialName(value = "sourceID") val sourceID: String,
/** The destination UUID. */
@SerialName(value = "destinationID") val destinationID: String,
@SerialName(value = "trigger") val trigger: TaskCreateTrigger,
@SerialName(value = "action") val action: ActionType,
/** Whether the task is enabled or not. */
@SerialName(value = "enabled") val enabled: Boolean? = null,
/** A percentage representing the accepted failure threshold to determine if a `run` succeeded or not. */
@SerialName(value = "failureThreshold") val failureThreshold: Int? = null,
@SerialName(value = "input") val input: TaskInput? = null,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy