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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs.JSONSchemaPropsPatchArgs.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.inputs

import com.google.gson.JsonParser
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.JSONSchemaPropsPatchArgs.builder
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).
 * @property ref
 * @property schema
 * @property additionalItems
 * @property additionalProperties
 * @property allOf
 * @property anyOf
 * @property default default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
 * @property definitions
 * @property dependencies
 * @property description
 * @property enum
 * @property example
 * @property exclusiveMaximum
 * @property exclusiveMinimum
 * @property externalDocs
 * @property format format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
 * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
 * @property id
 * @property items
 * @property maxItems
 * @property maxLength
 * @property maxProperties
 * @property maximum
 * @property minItems
 * @property minLength
 * @property minProperties
 * @property minimum
 * @property multipleOf
 * @property not
 * @property nullable
 * @property oneOf
 * @property pattern
 * @property patternProperties
 * @property properties
 * @property required
 * @property title
 * @property type
 * @property uniqueItems
 * @property x_kubernetes_embedded_resource x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).
 * @property x_kubernetes_int_or_string x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:
 * 1) anyOf:
 *    - type: integer
 *    - type: string
 * 2) allOf:
 *    - anyOf:
 *      - type: integer
 *      - type: string
 *    - ... zero or more
 * @property x_kubernetes_list_map_keys x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
 * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
 * @property x_kubernetes_list_type x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:
 * 1) `atomic`: the list is treated as a single entity, like a scalar.
 *      Atomic lists will be entirely replaced when updated. This extension
 *      may be used on any type of list (struct, scalar, ...).
 * 2) `set`:
 *      Sets are lists that must not have multiple items with the same value. Each
 *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
 *      array with x-kubernetes-list-type `atomic`.
 * 3) `map`:
 *      These lists are like maps in that their elements have a non-index key
 *      used to identify them. Order is preserved upon merge. The map tag
 *      must only be used on a list with elements of type object.
 * Defaults to atomic for arrays.
 * @property x_kubernetes_map_type x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:
 * 1) `granular`:
 *      These maps are actual maps (key-value pairs) and each fields are independent
 *      from each other (they can each be manipulated by separate actors). This is
 *      the default behaviour for all maps.
 * 2) `atomic`: the list is treated as a single entity, like a scalar.
 *      Atomic maps will be entirely replaced when updated.
 * @property x_kubernetes_preserve_unknown_fields x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.
 */
public data class JSONSchemaPropsPatchArgs(
    public val ref: Output? = null,
    public val schema: Output? = null,
    public val additionalItems: Output>? = null,
    public val additionalProperties: Output>? = null,
    public val allOf: Output>? = null,
    public val anyOf: Output>? = null,
    public val default: Output? = null,
    public val definitions: Output>? = null,
    public val dependencies: Output>>>? = null,
    public val description: Output? = null,
    public val `enum`: Output>? = null,
    public val example: Output? = null,
    public val exclusiveMaximum: Output? = null,
    public val exclusiveMinimum: Output? = null,
    public val externalDocs: Output? = null,
    public val format: Output? = null,
    public val id: Output? = null,
    public val items: Output>>? = null,
    public val maxItems: Output? = null,
    public val maxLength: Output? = null,
    public val maxProperties: Output? = null,
    public val maximum: Output? = null,
    public val minItems: Output? = null,
    public val minLength: Output? = null,
    public val minProperties: Output? = null,
    public val minimum: Output? = null,
    public val multipleOf: Output? = null,
    public val not: Output? = null,
    public val nullable: Output? = null,
    public val oneOf: Output>? = null,
    public val pattern: Output? = null,
    public val patternProperties: Output>? = null,
    public val properties: Output>? = null,
    public val required: Output>? = null,
    public val title: Output? = null,
    public val type: Output? = null,
    public val uniqueItems: Output? = null,
    public val x_kubernetes_embedded_resource: Output? = null,
    public val x_kubernetes_int_or_string: Output? = null,
    public val x_kubernetes_list_map_keys: Output>? = null,
    public val x_kubernetes_list_type: Output? = null,
    public val x_kubernetes_map_type: Output? = null,
    public val x_kubernetes_preserve_unknown_fields: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1beta1.inputs.JSONSchemaPropsPatchArgs = com.pulumi.kubernetes.apiextensions.v1beta1.inputs.JSONSchemaPropsPatchArgs.builder()
        .`$ref`(ref?.applyValue({ args0 -> args0 }))
        .`$schema`(schema?.applyValue({ args0 -> args0 }))
        .additionalItems(
            additionalItems?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }, { args0 -> args0 })
            }),
        )
        .additionalProperties(
            additionalProperties?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }, { args0 -> args0 })
            }),
        )
        .allOf(allOf?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
        .anyOf(anyOf?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
        .default_(
            default?.applyValue({ args0 ->
                JsonParser.parseString(Json.encodeToString(JsonElement.serializer(), args0))
            }),
        )
        .definitions(
            definitions?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                }).toMap()
            }),
        )
        .dependencies(
            dependencies?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(
                        args0.value.transform({ args0 -> args0.let({ args0 -> args0.toJava() }) }, { args0 ->
                            args0.map({ args0 -> args0 })
                        }),
                    )
                }).toMap()
            }),
        )
        .description(description?.applyValue({ args0 -> args0 }))
        .enum_(
            `enum`?.applyValue({ args0 ->
                args0.map({ args0 ->
                    JsonParser.parseString(Json.encodeToString(JsonElement.serializer(), args0))
                })
            }),
        )
        .example(
            example?.applyValue({ args0 ->
                JsonParser.parseString(Json.encodeToString(JsonElement.serializer(), args0))
            }),
        )
        .exclusiveMaximum(exclusiveMaximum?.applyValue({ args0 -> args0 }))
        .exclusiveMinimum(exclusiveMinimum?.applyValue({ args0 -> args0 }))
        .externalDocs(externalDocs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .format(format?.applyValue({ args0 -> args0 }))
        .id(id?.applyValue({ args0 -> args0 }))
        .items(
            items?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }, { args0 ->
                    args0.map({ args0 ->
                        com.google.gson.JsonParser.parseString(kotlinx.serialization.json.Json.encodeToString(kotlinx.serialization.json.JsonElement.serializer(), args0))
                    })
                })
            }),
        )
        .maxItems(maxItems?.applyValue({ args0 -> args0 }))
        .maxLength(maxLength?.applyValue({ args0 -> args0 }))
        .maxProperties(maxProperties?.applyValue({ args0 -> args0 }))
        .maximum(maximum?.applyValue({ args0 -> args0 }))
        .minItems(minItems?.applyValue({ args0 -> args0 }))
        .minLength(minLength?.applyValue({ args0 -> args0 }))
        .minProperties(minProperties?.applyValue({ args0 -> args0 }))
        .minimum(minimum?.applyValue({ args0 -> args0 }))
        .multipleOf(multipleOf?.applyValue({ args0 -> args0 }))
        .not(not?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .nullable(nullable?.applyValue({ args0 -> args0 }))
        .oneOf(oneOf?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
        .pattern(pattern?.applyValue({ args0 -> args0 }))
        .patternProperties(
            patternProperties?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                }).toMap()
            }),
        )
        .properties(
            properties?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                }).toMap()
            }),
        )
        .required(required?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .title(title?.applyValue({ args0 -> args0 }))
        .type(type?.applyValue({ args0 -> args0 }))
        .uniqueItems(uniqueItems?.applyValue({ args0 -> args0 }))
        .x_kubernetes_embedded_resource(x_kubernetes_embedded_resource?.applyValue({ args0 -> args0 }))
        .x_kubernetes_int_or_string(x_kubernetes_int_or_string?.applyValue({ args0 -> args0 }))
        .x_kubernetes_list_map_keys(
            x_kubernetes_list_map_keys?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0
                })
            }),
        )
        .x_kubernetes_list_type(x_kubernetes_list_type?.applyValue({ args0 -> args0 }))
        .x_kubernetes_map_type(x_kubernetes_map_type?.applyValue({ args0 -> args0 }))
        .x_kubernetes_preserve_unknown_fields(
            x_kubernetes_preserve_unknown_fields?.applyValue({ args0 ->
                args0
            }),
        ).build()
}

/**
 * Builder for [JSONSchemaPropsPatchArgs].
 */
@PulumiTagMarker
public class JSONSchemaPropsPatchArgsBuilder internal constructor() {
    private var ref: Output? = null

    private var schema: Output? = null

    private var additionalItems: Output>? = null

    private var additionalProperties: Output>? = null

    private var allOf: Output>? = null

    private var anyOf: Output>? = null

    private var default: Output? = null

    private var definitions: Output>? = null

    private var dependencies: Output>>>? = null

    private var description: Output? = null

    private var `enum`: Output>? = null

    private var example: Output? = null

    private var exclusiveMaximum: Output? = null

    private var exclusiveMinimum: Output? = null

    private var externalDocs: Output? = null

    private var format: Output? = null

    private var id: Output? = null

    private var items: Output>>? = null

    private var maxItems: Output? = null

    private var maxLength: Output? = null

    private var maxProperties: Output? = null

    private var maximum: Output? = null

    private var minItems: Output? = null

    private var minLength: Output? = null

    private var minProperties: Output? = null

    private var minimum: Output? = null

    private var multipleOf: Output? = null

    private var not: Output? = null

    private var nullable: Output? = null

    private var oneOf: Output>? = null

    private var pattern: Output? = null

    private var patternProperties: Output>? = null

    private var properties: Output>? = null

    private var required: Output>? = null

    private var title: Output? = null

    private var type: Output? = null

    private var uniqueItems: Output? = null

    private var x_kubernetes_embedded_resource: Output? = null

    private var x_kubernetes_int_or_string: Output? = null

    private var x_kubernetes_list_map_keys: Output>? = null

    private var x_kubernetes_list_type: Output? = null

    private var x_kubernetes_map_type: Output? = null

    private var x_kubernetes_preserve_unknown_fields: Output? = null

    /**
     * @param value
     */
    @JvmName("wwsuoxfyhsdecykw")
    public suspend fun ref(`value`: Output) {
        this.ref = value
    }

    /**
     * @param value
     */
    @JvmName("udywamqhcqiqpkkw")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value
     */
    @JvmName("wcykwihqketthifg")
    public suspend fun additionalItems(`value`: Output>) {
        this.additionalItems = value
    }

    /**
     * @param value
     */
    @JvmName("jmfcwtycfqkbtstv")
    public suspend fun additionalProperties(`value`: Output>) {
        this.additionalProperties = value
    }

    /**
     * @param value
     */
    @JvmName("nvpdsyxmrflgrexx")
    public suspend fun allOf(`value`: Output>) {
        this.allOf = value
    }

    @JvmName("gnwxwehceltricfu")
    public suspend fun allOf(vararg values: Output) {
        this.allOf = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("bmixqdhxtwbqducc")
    public suspend fun allOf(values: List>) {
        this.allOf = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("rqagjukyhobgwbbp")
    public suspend fun anyOf(`value`: Output>) {
        this.anyOf = value
    }

    @JvmName("muptuhkuodvoibej")
    public suspend fun anyOf(vararg values: Output) {
        this.anyOf = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("iidvpsqbrdmfpefv")
    public suspend fun anyOf(values: List>) {
        this.anyOf = Output.all(values)
    }

    /**
     * @param value default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     */
    @JvmName("gtimrutpbmsckevy")
    public suspend fun default(`value`: Output) {
        this.default = value
    }

    /**
     * @param value
     */
    @JvmName("cdxtpqbkdvrkytrj")
    public suspend fun definitions(`value`: Output>) {
        this.definitions = value
    }

    /**
     * @param value
     */
    @JvmName("jjciydnvbbknpblk")
    public suspend fun dependencies(`value`: Output>>>) {
        this.dependencies = value
    }

    /**
     * @param value
     */
    @JvmName("bylkwnbvaphcqqsx")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value
     */
    @JvmName("anbvuvryaauxvtgb")
    public suspend fun `enum`(`value`: Output>) {
        this.`enum` = value
    }

    @JvmName("sgttiaeyknkwyymh")
    public suspend fun `enum`(vararg values: Output) {
        this.`enum` = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("ufweogceadewaikj")
    public suspend fun `enum`(values: List>) {
        this.`enum` = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("ylyofmynxhnhvcef")
    public suspend fun example(`value`: Output) {
        this.example = value
    }

    /**
     * @param value
     */
    @JvmName("epoqdrlerqcufsun")
    public suspend fun exclusiveMaximum(`value`: Output) {
        this.exclusiveMaximum = value
    }

    /**
     * @param value
     */
    @JvmName("uthihypjsibqgcgl")
    public suspend fun exclusiveMinimum(`value`: Output) {
        this.exclusiveMinimum = value
    }

    /**
     * @param value
     */
    @JvmName("jiutyhoelgijvlat")
    public suspend fun externalDocs(`value`: Output) {
        this.externalDocs = value
    }

    /**
     * @param value format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     */
    @JvmName("dekocoebaedtpakr")
    public suspend fun format(`value`: Output) {
        this.format = value
    }

    /**
     * @param value
     */
    @JvmName("ykiqjdpvpdqvxnwu")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value
     */
    @JvmName("mreubjoqhccwxcly")
    public suspend fun items(`value`: Output>>) {
        this.items = value
    }

    /**
     * @param value
     */
    @JvmName("swfxdlkvtacqauus")
    public suspend fun maxItems(`value`: Output) {
        this.maxItems = value
    }

    /**
     * @param value
     */
    @JvmName("kuwidjqtnbefdwuk")
    public suspend fun maxLength(`value`: Output) {
        this.maxLength = value
    }

    /**
     * @param value
     */
    @JvmName("tymbjpyabmvdmuwq")
    public suspend fun maxProperties(`value`: Output) {
        this.maxProperties = value
    }

    /**
     * @param value
     */
    @JvmName("ekbukgchyujkaqct")
    public suspend fun maximum(`value`: Output) {
        this.maximum = value
    }

    /**
     * @param value
     */
    @JvmName("tenjarspqghvwdba")
    public suspend fun minItems(`value`: Output) {
        this.minItems = value
    }

    /**
     * @param value
     */
    @JvmName("mcirxshwcdsuhyej")
    public suspend fun minLength(`value`: Output) {
        this.minLength = value
    }

    /**
     * @param value
     */
    @JvmName("wkuqbgmwhhpjntsc")
    public suspend fun minProperties(`value`: Output) {
        this.minProperties = value
    }

    /**
     * @param value
     */
    @JvmName("boojcmdkqwleunop")
    public suspend fun minimum(`value`: Output) {
        this.minimum = value
    }

    /**
     * @param value
     */
    @JvmName("qsfxgmnngslubtcd")
    public suspend fun multipleOf(`value`: Output) {
        this.multipleOf = value
    }

    /**
     * @param value
     */
    @JvmName("msxojcsewldwseho")
    public suspend fun not(`value`: Output) {
        this.not = value
    }

    /**
     * @param value
     */
    @JvmName("ylprjpamivtjasrc")
    public suspend fun nullable(`value`: Output) {
        this.nullable = value
    }

    /**
     * @param value
     */
    @JvmName("olyrholwwsomkeoy")
    public suspend fun oneOf(`value`: Output>) {
        this.oneOf = value
    }

    @JvmName("oposnnjsryuhdpag")
    public suspend fun oneOf(vararg values: Output) {
        this.oneOf = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("xmouwwfrgflnntrc")
    public suspend fun oneOf(values: List>) {
        this.oneOf = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("tsyotbmmjxlftaen")
    public suspend fun pattern(`value`: Output) {
        this.pattern = value
    }

    /**
     * @param value
     */
    @JvmName("kuskiputflmbwddr")
    public suspend fun patternProperties(`value`: Output>) {
        this.patternProperties = value
    }

    /**
     * @param value
     */
    @JvmName("eaqjjicclnhpoeub")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value
     */
    @JvmName("xparoxlaxrhslnem")
    public suspend fun required(`value`: Output>) {
        this.required = value
    }

    @JvmName("rcsbtmndeajngbdm")
    public suspend fun required(vararg values: Output) {
        this.required = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("xnddaycxgfuhkwyd")
    public suspend fun required(values: List>) {
        this.required = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("uebinbvwpnohcmph")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value
     */
    @JvmName("ndwslepjcvculaly")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value
     */
    @JvmName("uinjkehxrudkosdi")
    public suspend fun uniqueItems(`value`: Output) {
        this.uniqueItems = value
    }

    /**
     * @param value x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).
     */
    @JvmName("dplbldqxwtcbbfyj")
    public suspend fun x_kubernetes_embedded_resource(`value`: Output) {
        this.x_kubernetes_embedded_resource = value
    }

    /**
     * @param value x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     */
    @JvmName("mkcroevesjkyrbvg")
    public suspend fun x_kubernetes_int_or_string(`value`: Output) {
        this.x_kubernetes_int_or_string = value
    }

    /**
     * @param value x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
     */
    @JvmName("aneobtjbwontbmaf")
    public suspend fun x_kubernetes_list_map_keys(`value`: Output>) {
        this.x_kubernetes_list_map_keys = value
    }

    @JvmName("bpqujwstourmmbhr")
    public suspend fun x_kubernetes_list_map_keys(vararg values: Output) {
        this.x_kubernetes_list_map_keys = Output.all(values.asList())
    }

    /**
     * @param values x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
     */
    @JvmName("aqxnpepchvtdahux")
    public suspend fun x_kubernetes_list_map_keys(values: List>) {
        this.x_kubernetes_list_map_keys = Output.all(values)
    }

    /**
     * @param value x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     */
    @JvmName("tkisojffhudrmslc")
    public suspend fun x_kubernetes_list_type(`value`: Output) {
        this.x_kubernetes_list_type = value
    }

    /**
     * @param value x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     */
    @JvmName("pemenulihleogvyq")
    public suspend fun x_kubernetes_map_type(`value`: Output) {
        this.x_kubernetes_map_type = value
    }

    /**
     * @param value x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.
     */
    @JvmName("htfckhxgotlpwags")
    public suspend fun x_kubernetes_preserve_unknown_fields(`value`: Output) {
        this.x_kubernetes_preserve_unknown_fields = value
    }

    /**
     * @param value
     */
    @JvmName("rkqfwffrcyxnsabc")
    public suspend fun ref(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ref = mapped
    }

    /**
     * @param value
     */
    @JvmName("stvhhesofncvbili")
    public suspend fun schema(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param value
     */
    @JvmName("gmtmlplydhpqpsev")
    public suspend fun additionalItems(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalItems = mapped
    }

    /**
     * @param value
     */
    @JvmName("picmifnjeviabelw")
    public fun additionalItems(`value`: JSONSchemaPropsArgs) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalItems = mapped
    }

    /**
     * @param value
     */
    @JvmName("rlpgypmmywkigakq")
    public fun additionalItems(`value`: Boolean) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalItems = mapped
    }

    /**
     * @param value
     */
    @JvmName("ymjtsdsrifhfvpnx")
    public suspend fun additionalProperties(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.additionalProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("qdwxggetcvroienb")
    public fun additionalProperties(`value`: JSONSchemaPropsArgs) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("dltqcfabcpxgunhr")
    public fun additionalProperties(`value`: Boolean) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.additionalProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("egdwkmqgmneuepwj")
    public suspend fun allOf(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("pvouqhfocjhqgvwi")
    public suspend fun allOf(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("igrrwaxxrnipoiht")
    public suspend fun allOf(vararg argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("brlsuqowgohdoaqc")
    public suspend fun allOf(argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JSONSchemaPropsPatchArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.allOf = mapped
    }

    /**
     * @param values
     */
    @JvmName("tflrsewsifdrsith")
    public suspend fun allOf(vararg values: JSONSchemaPropsPatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allOf = mapped
    }

    /**
     * @param value
     */
    @JvmName("djifwnklbndinjfm")
    public suspend fun anyOf(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.anyOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("btyxwbvcnvrhsocd")
    public suspend fun anyOf(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.anyOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ffmiytnrfcntuajg")
    public suspend fun anyOf(vararg argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.anyOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("iodreojgdxfvgynp")
    public suspend fun anyOf(argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JSONSchemaPropsPatchArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.anyOf = mapped
    }

    /**
     * @param values
     */
    @JvmName("goswrlyotalfnaoj")
    public suspend fun anyOf(vararg values: JSONSchemaPropsPatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.anyOf = mapped
    }

    /**
     * @param value default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. CustomResourceDefinitions with defaults must be created using the v1 (or newer) CustomResourceDefinition API.
     */
    @JvmName("amjeptsqjqgcokge")
    public suspend fun default(`value`: JsonElement?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.default = mapped
    }

    /**
     * @param value
     */
    @JvmName("ktdtmlmlvaqoirye")
    public suspend fun definitions(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.definitions = mapped
    }

    /**
     * @param argument
     */
    @JvmName("yjcjemqxxwhgqjgp")
    public suspend fun definitions(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                JSONSchemaPropsArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.definitions = mapped
    }

    /**
     * @param values
     */
    @JvmName("wrucbixubcxbugon")
    public fun definitions(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.definitions = mapped
    }

    /**
     * @param value
     */
    @JvmName("ljoxrmwuolnvgvrf")
    public suspend fun dependencies(`value`: Map>>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dependencies = mapped
    }

    /**
     * @param values
     */
    @JvmName("abthgrsudxppywrk")
    public fun dependencies(vararg values: Pair>>) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dependencies = mapped
    }

    /**
     * @param value
     */
    @JvmName("iuribbycnabajxlx")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value
     */
    @JvmName("brhtkgvktkagkrtx")
    public suspend fun `enum`(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`enum` = mapped
    }

    /**
     * @param values
     */
    @JvmName("whbayfkvmjhjhclv")
    public suspend fun `enum`(vararg values: JsonElement) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`enum` = mapped
    }

    /**
     * @param value
     */
    @JvmName("lxxghhubmbtkqwkp")
    public suspend fun example(`value`: JsonElement?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.example = mapped
    }

    /**
     * @param value
     */
    @JvmName("ajsoxgijamdvheau")
    public suspend fun exclusiveMaximum(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusiveMaximum = mapped
    }

    /**
     * @param value
     */
    @JvmName("slpdeavadwdqadqv")
    public suspend fun exclusiveMinimum(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusiveMinimum = mapped
    }

    /**
     * @param value
     */
    @JvmName("kteeawxyunlbnxba")
    public suspend fun externalDocs(`value`: ExternalDocumentationPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalDocs = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ydpaaxbdkabvamoi")
    public suspend fun externalDocs(argument: suspend ExternalDocumentationPatchArgsBuilder.() -> Unit) {
        val toBeMapped = ExternalDocumentationPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.externalDocs = mapped
    }

    /**
     * @param value format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:
     * - bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like "0321751043" or "978-0321751041" - isbn10: an ISBN10 number string like "0321751043" - isbn13: an ISBN13 number string like "978-0321751041" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\d{3}[- ]?\d{2}[- ]?\d{4}$ - hexcolor: an hexadecimal color code like "#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like "rgb(255,255,2559" - byte: base64 encoded binary data - password: any kind of string - date: a date string like "2006-01-02" as defined by full-date in RFC3339 - duration: a duration string like "22 ns" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like "2014-12-15T19:30:20.000Z" as defined by date-time in RFC3339.
     */
    @JvmName("xkiskeevtnpgmyqu")
    public suspend fun format(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.format = mapped
    }

    /**
     * @param value
     */
    @JvmName("yuxvkgyifnomtuok")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value
     */
    @JvmName("apbjqaianmedcmwh")
    public suspend fun items(`value`: Either>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param value
     */
    @JvmName("eltuetygplqdcvrq")
    public fun items(`value`: JSONSchemaPropsArgs) {
        val toBeMapped = Either.ofLeft>(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param value
     */
    @JvmName("ytljkajphwpwtqtp")
    public fun items(`value`: List) {
        val toBeMapped = Either.ofRight>(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param value
     */
    @JvmName("twnxfakihetcrngt")
    public suspend fun maxItems(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxItems = mapped
    }

    /**
     * @param value
     */
    @JvmName("oogkjaarvjiwqoct")
    public suspend fun maxLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxLength = mapped
    }

    /**
     * @param value
     */
    @JvmName("xwhxbgmheitdseqf")
    public suspend fun maxProperties(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("wbbxmiyrcxdmbqph")
    public suspend fun maximum(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maximum = mapped
    }

    /**
     * @param value
     */
    @JvmName("icbuqihlrbkisuai")
    public suspend fun minItems(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minItems = mapped
    }

    /**
     * @param value
     */
    @JvmName("layodjwyiogxqqqh")
    public suspend fun minLength(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minLength = mapped
    }

    /**
     * @param value
     */
    @JvmName("rdebrcuqkufufscr")
    public suspend fun minProperties(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("wkittawnpxhvxvux")
    public suspend fun minimum(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimum = mapped
    }

    /**
     * @param value
     */
    @JvmName("peiqeqvpkgdwnxnm")
    public suspend fun multipleOf(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multipleOf = mapped
    }

    /**
     * @param value
     */
    @JvmName("jtjdjuwbdndnvhou")
    public suspend fun not(`value`: JSONSchemaPropsPatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.not = mapped
    }

    /**
     * @param argument
     */
    @JvmName("uegwkivewbwchfjf")
    public suspend fun not(argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = JSONSchemaPropsPatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.not = mapped
    }

    /**
     * @param value
     */
    @JvmName("fntrowlshycukqgw")
    public suspend fun nullable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nullable = mapped
    }

    /**
     * @param value
     */
    @JvmName("wccisesnldtroogp")
    public suspend fun oneOf(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oneOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("rscsvhldyhewapsp")
    public suspend fun oneOf(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.oneOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("ellflagmtrohfmdw")
    public suspend fun oneOf(vararg argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            JSONSchemaPropsPatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.oneOf = mapped
    }

    /**
     * @param argument
     */
    @JvmName("dxblqxqbgxoajpyv")
    public suspend fun oneOf(argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(JSONSchemaPropsPatchArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.oneOf = mapped
    }

    /**
     * @param values
     */
    @JvmName("iwvnughxmoyxgcnt")
    public suspend fun oneOf(vararg values: JSONSchemaPropsPatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.oneOf = mapped
    }

    /**
     * @param value
     */
    @JvmName("icnuojqoygohdboq")
    public suspend fun pattern(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pattern = mapped
    }

    /**
     * @param value
     */
    @JvmName("pjegjfgmakpdactk")
    public suspend fun patternProperties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.patternProperties = mapped
    }

    /**
     * @param argument
     */
    @JvmName("etumonfvilqmjuny")
    public suspend fun patternProperties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                JSONSchemaPropsArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.patternProperties = mapped
    }

    /**
     * @param values
     */
    @JvmName("edejxuabbxjwucpj")
    public fun patternProperties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.patternProperties = mapped
    }

    /**
     * @param value
     */
    @JvmName("igsqbnwpeajqdvoj")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument
     */
    @JvmName("yvlktwhyhfjguwxm")
    public suspend fun properties(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                JSONSchemaPropsArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param values
     */
    @JvmName("arejkkotudagflyt")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value
     */
    @JvmName("bnueqmxxyiiecxqr")
    public suspend fun required(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.required = mapped
    }

    /**
     * @param values
     */
    @JvmName("qvslamaumbktqmch")
    public suspend fun required(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.required = mapped
    }

    /**
     * @param value
     */
    @JvmName("iqlbicnsnpcmvcvt")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    /**
     * @param value
     */
    @JvmName("fosshijqeudnjqve")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value
     */
    @JvmName("vmooujinitmnragp")
    public suspend fun uniqueItems(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uniqueItems = mapped
    }

    /**
     * @param value x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).
     */
    @JvmName("aerfjopnwhmkbakb")
    public suspend fun x_kubernetes_embedded_resource(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_embedded_resource = mapped
    }

    /**
     * @param value x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:
     * 1) anyOf:
     *    - type: integer
     *    - type: string
     * 2) allOf:
     *    - anyOf:
     *      - type: integer
     *      - type: string
     *    - ... zero or more
     */
    @JvmName("ceemgalodbbdidbc")
    public suspend fun x_kubernetes_int_or_string(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_int_or_string = mapped
    }

    /**
     * @param value x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
     */
    @JvmName("pmibtgceaaxonrjf")
    public suspend fun x_kubernetes_list_map_keys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_list_map_keys = mapped
    }

    /**
     * @param values x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.
     * This tag MUST only be used on lists that have the "x-kubernetes-list-type" extension set to "map". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).
     */
    @JvmName("htkmscdhnhytyqtl")
    public suspend fun x_kubernetes_list_map_keys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.x_kubernetes_list_map_keys = mapped
    }

    /**
     * @param value x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:
     * 1) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic lists will be entirely replaced when updated. This extension
     *      may be used on any type of list (struct, scalar, ...).
     * 2) `set`:
     *      Sets are lists that must not have multiple items with the same value. Each
     *      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
     *      array with x-kubernetes-list-type `atomic`.
     * 3) `map`:
     *      These lists are like maps in that their elements have a non-index key
     *      used to identify them. Order is preserved upon merge. The map tag
     *      must only be used on a list with elements of type object.
     * Defaults to atomic for arrays.
     */
    @JvmName("gpetdydxgrxlayav")
    public suspend fun x_kubernetes_list_type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_list_type = mapped
    }

    /**
     * @param value x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:
     * 1) `granular`:
     *      These maps are actual maps (key-value pairs) and each fields are independent
     *      from each other (they can each be manipulated by separate actors). This is
     *      the default behaviour for all maps.
     * 2) `atomic`: the list is treated as a single entity, like a scalar.
     *      Atomic maps will be entirely replaced when updated.
     */
    @JvmName("dsqwhnhdrdddohfu")
    public suspend fun x_kubernetes_map_type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_map_type = mapped
    }

    /**
     * @param value x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.
     */
    @JvmName("ldhavfvhebmubrrs")
    public suspend fun x_kubernetes_preserve_unknown_fields(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.x_kubernetes_preserve_unknown_fields = mapped
    }

    internal fun build(): JSONSchemaPropsPatchArgs = JSONSchemaPropsPatchArgs(
        ref = ref,
        schema = schema,
        additionalItems = additionalItems,
        additionalProperties = additionalProperties,
        allOf = allOf,
        anyOf = anyOf,
        default = default,
        definitions = definitions,
        dependencies = dependencies,
        description = description,
        `enum` = `enum`,
        example = example,
        exclusiveMaximum = exclusiveMaximum,
        exclusiveMinimum = exclusiveMinimum,
        externalDocs = externalDocs,
        format = format,
        id = id,
        items = items,
        maxItems = maxItems,
        maxLength = maxLength,
        maxProperties = maxProperties,
        maximum = maximum,
        minItems = minItems,
        minLength = minLength,
        minProperties = minProperties,
        minimum = minimum,
        multipleOf = multipleOf,
        not = not,
        nullable = nullable,
        oneOf = oneOf,
        pattern = pattern,
        patternProperties = patternProperties,
        properties = properties,
        required = required,
        title = title,
        type = type,
        uniqueItems = uniqueItems,
        x_kubernetes_embedded_resource = x_kubernetes_embedded_resource,
        x_kubernetes_int_or_string = x_kubernetes_int_or_string,
        x_kubernetes_list_map_keys = x_kubernetes_list_map_keys,
        x_kubernetes_list_type = x_kubernetes_list_type,
        x_kubernetes_map_type = x_kubernetes_map_type,
        x_kubernetes_preserve_unknown_fields = x_kubernetes_preserve_unknown_fields,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy