com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceDefinitionSpecPatch.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* CustomResourceDefinitionSpec describes how a user wants their resource to appear
* @property additionalPrinterColumns additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
* @property conversion conversion defines conversion settings for the CRD.
* @property group group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).
* @property names names specify the resource and kind names for the custom resource.
* @property preserveUnknownFields preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
* @property scope scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
* @property subresources subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive.
* @property validation validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive.
* @property version version is the API version of the defined custom resource. The custom resources are served under `/apis///...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead.
* @property versions versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
*/
public data class CustomResourceDefinitionSpecPatch(
public val additionalPrinterColumns: List? = null,
public val conversion: CustomResourceConversionPatch? = null,
public val group: String? = null,
public val names: CustomResourceDefinitionNamesPatch? = null,
public val preserveUnknownFields: Boolean? = null,
public val scope: String? = null,
public val subresources: CustomResourceSubresourcesPatch? = null,
public val validation: CustomResourceValidationPatch? = null,
public val version: String? = null,
public val versions: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceDefinitionSpecPatch): CustomResourceDefinitionSpecPatch = CustomResourceDefinitionSpecPatch(
additionalPrinterColumns = javaType.additionalPrinterColumns().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceColumnDefinitionPatch.Companion.toKotlin(args0)
})
}),
conversion = javaType.conversion().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceConversionPatch.Companion.toKotlin(args0)
})
}).orElse(null),
group = javaType.group().map({ args0 -> args0 }).orElse(null),
names = javaType.names().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceDefinitionNamesPatch.Companion.toKotlin(args0)
})
}).orElse(null),
preserveUnknownFields = javaType.preserveUnknownFields().map({ args0 -> args0 }).orElse(null),
scope = javaType.scope().map({ args0 -> args0 }).orElse(null),
subresources = javaType.subresources().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceSubresourcesPatch.Companion.toKotlin(args0)
})
}).orElse(null),
validation = javaType.validation().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceValidationPatch.Companion.toKotlin(args0)
})
}).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
versions = javaType.versions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.outputs.CustomResourceDefinitionVersionPatch.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy