All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.cloudtasks.v2beta2.kotlin.outputs.TaskStatusResponse.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.cloudtasks.v2beta2.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 * Status of the task.
 * @property attemptDispatchCount The number of attempts dispatched. This count includes attempts which have been dispatched but haven't received a response.
 * @property attemptResponseCount The number of attempts which have received a response. This field is not calculated for pull tasks.
 * @property firstAttemptStatus The status of the task's first attempt. Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks. This field is not calculated for pull tasks.
 * @property lastAttemptStatus The status of the task's last attempt. This field is not calculated for pull tasks.
 */
public data class TaskStatusResponse(
    public val attemptDispatchCount: Int,
    public val attemptResponseCount: Int,
    public val firstAttemptStatus: AttemptStatusResponse,
    public val lastAttemptStatus: AttemptStatusResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.cloudtasks.v2beta2.outputs.TaskStatusResponse): TaskStatusResponse = TaskStatusResponse(
            attemptDispatchCount = javaType.attemptDispatchCount(),
            attemptResponseCount = javaType.attemptResponseCount(),
            firstAttemptStatus = javaType.firstAttemptStatus().let({ args0 ->
                com.pulumi.googlenative.cloudtasks.v2beta2.kotlin.outputs.AttemptStatusResponse.Companion.toKotlin(args0)
            }),
            lastAttemptStatus = javaType.lastAttemptStatus().let({ args0 ->
                com.pulumi.googlenative.cloudtasks.v2beta2.kotlin.outputs.AttemptStatusResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy