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

com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceCondition.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property executionReason (Output)
 * A reason for the execution condition.
 * @property lastTransitionTime (Output)
 * Last time the condition transitioned from one status to another.
 * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
 * @property message (Output)
 * Human readable message indicating details about the current status.
 * @property reason (Output)
 * A common (service-level) reason for this condition.
 * @property revisionReason (Output)
 * A reason for the revision condition.
 * @property severity (Output)
 * How to interpret failures of this condition, one of Error, Warning, Info
 * @property state (Output)
 * State of the condition.
 * @property type (Output)
 * The allocation type for this traffic target.
 */
public data class ServiceCondition(
    public val executionReason: String? = null,
    public val lastTransitionTime: String? = null,
    public val message: String? = null,
    public val reason: String? = null,
    public val revisionReason: String? = null,
    public val severity: String? = null,
    public val state: String? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceCondition): ServiceCondition = ServiceCondition(
            executionReason = javaType.executionReason().map({ args0 -> args0 }).orElse(null),
            lastTransitionTime = javaType.lastTransitionTime().map({ args0 -> args0 }).orElse(null),
            message = javaType.message().map({ args0 -> args0 }).orElse(null),
            reason = javaType.reason().map({ args0 -> args0 }).orElse(null),
            revisionReason = javaType.revisionReason().map({ args0 -> args0 }).orElse(null),
            severity = javaType.severity().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
            type = javaType.type().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy