com.pulumi.kubernetes.discovery.v1beta1.kotlin.outputs.EndpointConditionsPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.discovery.v1beta1.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
/**
* EndpointConditions represents the current condition of an endpoint.
* @property ready ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.
* @property serving serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
* @property terminating terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
*/
public data class EndpointConditionsPatch(
public val ready: Boolean? = null,
public val serving: Boolean? = null,
public val terminating: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.discovery.v1beta1.outputs.EndpointConditionsPatch): EndpointConditionsPatch = EndpointConditionsPatch(
ready = javaType.ready().map({ args0 -> args0 }).orElse(null),
serving = javaType.serving().map({ args0 -> args0 }).orElse(null),
terminating = javaType.terminating().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy