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

com.pulumi.googlenative.run.v1.kotlin.outputs.JobStatusResponse.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.run.v1.kotlin.outputs

import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 * JobStatus represents the current state of a Job.
 * @property conditions Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Job-specific conditions include: * `Ready`: `True` when the job is ready to be executed.
 * @property executionCount Number of executions created for this job.
 * @property latestCreatedExecution A pointer to the most recently created execution for this job. This is set regardless of the eventual state of the execution.
 * @property observedGeneration The 'generation' of the job that was last processed by the controller.
 */
public data class JobStatusResponse(
    public val conditions: List,
    public val executionCount: Int,
    public val latestCreatedExecution: ExecutionReferenceResponse,
    public val observedGeneration: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.run.v1.outputs.JobStatusResponse): JobStatusResponse = JobStatusResponse(
            conditions = javaType.conditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.googlenative.run.v1.kotlin.outputs.GoogleCloudRunV1ConditionResponse.Companion.toKotlin(args0)
                })
            }),
            executionCount = javaType.executionCount(),
            latestCreatedExecution = javaType.latestCreatedExecution().let({ args0 ->
                com.pulumi.googlenative.run.v1.kotlin.outputs.ExecutionReferenceResponse.Companion.toKotlin(args0)
            }),
            observedGeneration = javaType.observedGeneration(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy