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

com.pulumi.gcp.bigquery.kotlin.outputs.JobStatus.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.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigquery.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property errorResults (Output)
 * Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
 * Structure is documented below.
 * @property errors (Output)
 * The first errors encountered during the running of the job. The final message
 * includes the number of errors that caused the process to stop. Errors here do
 * not necessarily mean that the job has not completed or was unsuccessful.
 * Structure is documented below.
 * @property state (Output)
 * Running state of the job. Valid states include 'PENDING', 'RUNNING', and 'DONE'.
 */
public data class JobStatus(
    public val errorResults: List? = null,
    public val errors: List? = null,
    public val state: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.JobStatus): JobStatus = JobStatus(
            errorResults = javaType.errorResults().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.bigquery.kotlin.outputs.JobStatusErrorResult.Companion.toKotlin(args0)
                })
            }),
            errors = javaType.errors().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.bigquery.kotlin.outputs.JobStatusError.Companion.toKotlin(args0)
                })
            }),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy