com.pulumi.kubernetes.meta.v1.kotlin.outputs.StatusCausePatch.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.meta.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
* @property field The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
* @property message A human-readable description of the cause of the error. This field may be presented as-is to a reader.
* @property reason A machine-readable description of the cause of the error. If this value is empty there is no information available.
*/
public data class StatusCausePatch(
public val `field`: String? = null,
public val message: String? = null,
public val reason: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.meta.v1.outputs.StatusCausePatch): StatusCausePatch = StatusCausePatch(
`field` = javaType.`field`().map({ args0 -> args0 }).orElse(null),
message = javaType.message().map({ args0 -> args0 }).orElse(null),
reason = javaType.reason().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy