com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceColumnDefinition.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.apiextensions.v1beta1.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* CustomResourceColumnDefinition specifies a column for server side printing.
* @property JSONPath JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.
* @property description description is a human readable description of this column.
* @property format format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
* @property name name is a human readable name for the column.
* @property priority priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.
* @property type type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
*/
public data class CustomResourceColumnDefinition(
public val JSONPath: String,
public val description: String? = null,
public val format: String? = null,
public val name: String,
public val priority: Int? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceColumnDefinition): CustomResourceColumnDefinition = CustomResourceColumnDefinition(
JSONPath = javaType.JSONPath(),
description = javaType.description().map({ args0 -> args0 }).orElse(null),
format = javaType.format().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
priority = javaType.priority().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy