com.pulumi.kubernetes.meta.v1.kotlin.outputs.StatusDetails.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.meta.v1.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.
* @property causes The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
* @property group The group attribute of the resource associated with the status StatusReason.
* @property kind The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @property name The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).
* @property retryAfterSeconds If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.
* @property uid UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
*/
public data class StatusDetails(
public val causes: List? = null,
public val group: String? = null,
public val kind: String? = null,
public val name: String? = null,
public val retryAfterSeconds: Int? = null,
public val uid: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.meta.v1.outputs.StatusDetails): StatusDetails = StatusDetails(
causes = javaType.causes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.StatusCause.Companion.toKotlin(args0)
})
}),
group = javaType.group().map({ args0 -> args0 }).orElse(null),
kind = javaType.kind().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
retryAfterSeconds = javaType.retryAfterSeconds().map({ args0 -> args0 }).orElse(null),
uid = javaType.uid().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy