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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceDefinitionNames.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
 * @property categories categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
 * @property kind kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
 * @property listKind listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
 * @property plural plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.
 * @property shortNames shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.
 * @property singular singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
 */
public data class CustomResourceDefinitionNames(
    public val categories: List? = null,
    public val kind: String,
    public val listKind: String? = null,
    public val plural: String,
    public val shortNames: List? = null,
    public val singular: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionNames): CustomResourceDefinitionNames = CustomResourceDefinitionNames(
            categories = javaType.categories().map({ args0 -> args0 }),
            kind = javaType.kind(),
            listKind = javaType.listKind().map({ args0 -> args0 }).orElse(null),
            plural = javaType.plural(),
            shortNames = javaType.shortNames().map({ args0 -> args0 }),
            singular = javaType.singular().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy