Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.kubernetes.apiextensions.v1.kotlin.inputs.JSONSchemaPropsArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.apiextensions.v1.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.v1.inputs.JSONSchemaPropsArgs.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. Defaulting requires spec.preserveUnknownFields to be false.
* @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).
* The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
* @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.
* @property x_kubernetes_validations x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
public data class JSONSchemaPropsArgs(
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,
public val x_kubernetes_validations: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apiextensions.v1.inputs.JSONSchemaPropsArgs =
com.pulumi.kubernetes.apiextensions.v1.inputs.JSONSchemaPropsArgs.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
}),
)
.x_kubernetes_validations(
x_kubernetes_validations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [JSONSchemaPropsArgs].
*/
@PulumiTagMarker
public class JSONSchemaPropsArgsBuilder 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
private var x_kubernetes_validations: Output>? = null
/**
* @param value
*/
@JvmName("yfdcxlqggdfhwbex")
public suspend fun ref(`value`: Output) {
this.ref = value
}
/**
* @param value
*/
@JvmName("oxhqxgstbeoxhgmr")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value
*/
@JvmName("tkrwknwtpeyifjjq")
public suspend fun additionalItems(`value`: Output>) {
this.additionalItems = value
}
/**
* @param value
*/
@JvmName("osqouqlsqjxtsjiu")
public suspend fun additionalProperties(`value`: Output>) {
this.additionalProperties = value
}
/**
* @param value
*/
@JvmName("vofvauigcjcnjjcw")
public suspend fun allOf(`value`: Output>) {
this.allOf = value
}
@JvmName("sxskmhpqelqjlvgh")
public suspend fun allOf(vararg values: Output) {
this.allOf = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("fudasbyenvgdrikk")
public suspend fun allOf(values: List>) {
this.allOf = Output.all(values)
}
/**
* @param value
*/
@JvmName("befsepqkkiaticen")
public suspend fun anyOf(`value`: Output>) {
this.anyOf = value
}
@JvmName("tdfhjsuexpdcncvo")
public suspend fun anyOf(vararg values: Output) {
this.anyOf = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("rileshegggagnnts")
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. Defaulting requires spec.preserveUnknownFields to be false.
*/
@JvmName("rcgndkdqxubtnsir")
public suspend fun default(`value`: Output) {
this.default = value
}
/**
* @param value
*/
@JvmName("yrrtwvkijevtumvi")
public suspend fun definitions(`value`: Output>) {
this.definitions = value
}
/**
* @param value
*/
@JvmName("axscgwdiggccrbyt")
public suspend fun dependencies(`value`: Output>>>) {
this.dependencies = value
}
/**
* @param value
*/
@JvmName("lbqtbulqhsmlhhmh")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value
*/
@JvmName("aahngcswqwgkttup")
public suspend fun `enum`(`value`: Output>) {
this.`enum` = value
}
@JvmName("hjfwvvkuqtujemww")
public suspend fun `enum`(vararg values: Output) {
this.`enum` = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("tudkijnfvssjttri")
public suspend fun `enum`(values: List>) {
this.`enum` = Output.all(values)
}
/**
* @param value
*/
@JvmName("vccnligqaplruitx")
public suspend fun example(`value`: Output) {
this.example = value
}
/**
* @param value
*/
@JvmName("fogecmglwtavlykm")
public suspend fun exclusiveMaximum(`value`: Output) {
this.exclusiveMaximum = value
}
/**
* @param value
*/
@JvmName("gleaxsufnemkqjpb")
public suspend fun exclusiveMinimum(`value`: Output) {
this.exclusiveMinimum = value
}
/**
* @param value
*/
@JvmName("mokyehvfkucyqvan")
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("tcfgtnungpaodreg")
public suspend fun format(`value`: Output) {
this.format = value
}
/**
* @param value
*/
@JvmName("bwqivgdddistknlw")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value
*/
@JvmName("ogijbltnskmnranq")
public suspend fun items(`value`: Output>>) {
this.items = value
}
/**
* @param value
*/
@JvmName("paqviiglegrqcymo")
public suspend fun maxItems(`value`: Output) {
this.maxItems = value
}
/**
* @param value
*/
@JvmName("rsbbuhfxacusblcy")
public suspend fun maxLength(`value`: Output) {
this.maxLength = value
}
/**
* @param value
*/
@JvmName("slklucildfakahgq")
public suspend fun maxProperties(`value`: Output) {
this.maxProperties = value
}
/**
* @param value
*/
@JvmName("bxdjuckddcyyangc")
public suspend fun maximum(`value`: Output) {
this.maximum = value
}
/**
* @param value
*/
@JvmName("hxoxjbwqohvaqrwu")
public suspend fun minItems(`value`: Output) {
this.minItems = value
}
/**
* @param value
*/
@JvmName("fdrikdbhpmlebkns")
public suspend fun minLength(`value`: Output) {
this.minLength = value
}
/**
* @param value
*/
@JvmName("lisgqkegvivwodrt")
public suspend fun minProperties(`value`: Output) {
this.minProperties = value
}
/**
* @param value
*/
@JvmName("mpiivlvuwfssugsi")
public suspend fun minimum(`value`: Output) {
this.minimum = value
}
/**
* @param value
*/
@JvmName("tcbqyceeafsaxpkb")
public suspend fun multipleOf(`value`: Output) {
this.multipleOf = value
}
/**
* @param value
*/
@JvmName("etuimsloypmletfd")
public suspend fun not(`value`: Output) {
this.not = value
}
/**
* @param value
*/
@JvmName("xgyfuieryguqpjpx")
public suspend fun nullable(`value`: Output) {
this.nullable = value
}
/**
* @param value
*/
@JvmName("empgtjymydgwpmmc")
public suspend fun oneOf(`value`: Output>) {
this.oneOf = value
}
@JvmName("htjrrsguayuifapn")
public suspend fun oneOf(vararg values: Output) {
this.oneOf = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("hmwdyhnvrusuquxv")
public suspend fun oneOf(values: List>) {
this.oneOf = Output.all(values)
}
/**
* @param value
*/
@JvmName("xkcvevpgdekiukcl")
public suspend fun pattern(`value`: Output) {
this.pattern = value
}
/**
* @param value
*/
@JvmName("flukraopamovdmjp")
public suspend fun patternProperties(`value`: Output>) {
this.patternProperties = value
}
/**
* @param value
*/
@JvmName("svsvcrfwgmuenupg")
public suspend fun properties(`value`: Output>) {
this.properties = value
}
/**
* @param value
*/
@JvmName("xcgmljayatbbvrfo")
public suspend fun required(`value`: Output>) {
this.required = value
}
@JvmName("cbafvapmlaqxriut")
public suspend fun required(vararg values: Output) {
this.required = Output.all(values.asList())
}
/**
* @param values
*/
@JvmName("knbxqdhclducjieq")
public suspend fun required(values: List>) {
this.required = Output.all(values)
}
/**
* @param value
*/
@JvmName("sdnqojrxpxrfiupl")
public suspend fun title(`value`: Output) {
this.title = value
}
/**
* @param value
*/
@JvmName("uaqtalfsjfwotvxv")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value
*/
@JvmName("phlokrvrmyosiovt")
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("oepvtqglvpdobicf")
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("vpkcuovwqmfarips")
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).
* The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
*/
@JvmName("ivbqqpykhinhmjlr")
public suspend fun x_kubernetes_list_map_keys(`value`: Output>) {
this.x_kubernetes_list_map_keys = value
}
@JvmName("vpcwejsfqanqtcgv")
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).
* The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
*/
@JvmName("rhiricpflkbhiapc")
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("vayojadupduowodb")
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("ifvkkhuqlokvhooj")
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("wdgegvvdnbvybslu")
public suspend fun x_kubernetes_preserve_unknown_fields(`value`: Output) {
this.x_kubernetes_preserve_unknown_fields = value
}
/**
* @param value x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("mfyxdcmspewhncel")
public suspend fun x_kubernetes_validations(`value`: Output>) {
this.x_kubernetes_validations = value
}
@JvmName("atracypgduflqawb")
public suspend fun x_kubernetes_validations(vararg values: Output) {
this.x_kubernetes_validations = Output.all(values.asList())
}
/**
* @param values x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("pnnarqwwntkrerob")
public suspend fun x_kubernetes_validations(values: List>) {
this.x_kubernetes_validations = Output.all(values)
}
/**
* @param value
*/
@JvmName("hvlsxhumylobqjlu")
public suspend fun ref(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ref = mapped
}
/**
* @param value
*/
@JvmName("xmhhmvqytyyglnmr")
public suspend fun schema(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schema = mapped
}
/**
* @param value
*/
@JvmName("kchucqckcbkgeaam")
public suspend fun additionalItems(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.additionalItems = mapped
}
/**
* @param value
*/
@JvmName("ujdjkymmtqrfkrdo")
public fun additionalItems(`value`: JSONSchemaPropsArgs) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.additionalItems = mapped
}
/**
* @param value
*/
@JvmName("mcpqrnhrvewfrgqn")
public fun additionalItems(`value`: Boolean) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.additionalItems = mapped
}
/**
* @param value
*/
@JvmName("wvnhjrseuyhvammr")
public suspend fun additionalProperties(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.additionalProperties = mapped
}
/**
* @param value
*/
@JvmName("adwdeuqjlpvdjowe")
public fun additionalProperties(`value`: JSONSchemaPropsArgs) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.additionalProperties = mapped
}
/**
* @param value
*/
@JvmName("swntckxosduwpxii")
public fun additionalProperties(`value`: Boolean) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.additionalProperties = mapped
}
/**
* @param value
*/
@JvmName("eiacllxdjldpcyty")
public suspend fun allOf(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allOf = mapped
}
/**
* @param argument
*/
@JvmName("nrrcvaqnedblrkdv")
public suspend fun allOf(argument: List Unit>) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.allOf = mapped
}
/**
* @param argument
*/
@JvmName("iwpckuyapewphmtq")
public suspend fun allOf(vararg argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.allOf = mapped
}
/**
* @param argument
*/
@JvmName("xferxuvbgtondpol")
public suspend fun allOf(argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = listOf(JSONSchemaPropsArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.allOf = mapped
}
/**
* @param values
*/
@JvmName("rllntfekgtmsnjod")
public suspend fun allOf(vararg values: JSONSchemaPropsArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allOf = mapped
}
/**
* @param value
*/
@JvmName("wojuvnacluffhhcf")
public suspend fun anyOf(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.anyOf = mapped
}
/**
* @param argument
*/
@JvmName("mqvutcyauctfwrnn")
public suspend fun anyOf(argument: List Unit>) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.anyOf = mapped
}
/**
* @param argument
*/
@JvmName("ludefamrttstlvmi")
public suspend fun anyOf(vararg argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.anyOf = mapped
}
/**
* @param argument
*/
@JvmName("nqcvivjfcfoqmoce")
public suspend fun anyOf(argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = listOf(JSONSchemaPropsArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.anyOf = mapped
}
/**
* @param values
*/
@JvmName("opobslntordelrrj")
public suspend fun anyOf(vararg values: JSONSchemaPropsArgs) {
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. Defaulting requires spec.preserveUnknownFields to be false.
*/
@JvmName("rwmlceylalimxgek")
public suspend fun default(`value`: JsonElement?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.default = mapped
}
/**
* @param value
*/
@JvmName("jnsrxvfypkbnwunm")
public suspend fun definitions(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.definitions = mapped
}
/**
* @param argument
*/
@JvmName("pudovernncetqvni")
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("vyiqdjkjueyhmpst")
public fun definitions(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.definitions = mapped
}
/**
* @param value
*/
@JvmName("vsxrpnniuepggigu")
public suspend fun dependencies(`value`: Map>>?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dependencies = mapped
}
/**
* @param values
*/
@JvmName("qchwpudnftixqxrb")
public fun dependencies(vararg values: Pair>>) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dependencies = mapped
}
/**
* @param value
*/
@JvmName("smsxugimulpfremu")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value
*/
@JvmName("rkwsgiubnqkslgas")
public suspend fun `enum`(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`enum` = mapped
}
/**
* @param values
*/
@JvmName("flufudmkfnkgtqom")
public suspend fun `enum`(vararg values: JsonElement) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`enum` = mapped
}
/**
* @param value
*/
@JvmName("ovcxwblvxqtdapgv")
public suspend fun example(`value`: JsonElement?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.example = mapped
}
/**
* @param value
*/
@JvmName("dvfgqwavwuhrofsn")
public suspend fun exclusiveMaximum(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exclusiveMaximum = mapped
}
/**
* @param value
*/
@JvmName("bwuhbiewnnxlufem")
public suspend fun exclusiveMinimum(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.exclusiveMinimum = mapped
}
/**
* @param value
*/
@JvmName("pkvayyuquuqpeoli")
public suspend fun externalDocs(`value`: ExternalDocumentationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.externalDocs = mapped
}
/**
* @param argument
*/
@JvmName("nnjsyeoiamdltdmh")
public suspend fun externalDocs(argument: suspend ExternalDocumentationArgsBuilder.() -> Unit) {
val toBeMapped = ExternalDocumentationArgsBuilder().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("vgscmsvbenersagd")
public suspend fun format(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.format = mapped
}
/**
* @param value
*/
@JvmName("hkxkbgjmkgmytsqq")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value
*/
@JvmName("gwsumgwrdyiuhinc")
public suspend fun items(`value`: Either>?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.items = mapped
}
/**
* @param value
*/
@JvmName("xfkieybctrulpknj")
public fun items(`value`: JSONSchemaPropsArgs) {
val toBeMapped = Either.ofLeft>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.items = mapped
}
/**
* @param value
*/
@JvmName("ennpordvhtelsftp")
public fun items(`value`: List) {
val toBeMapped = Either.ofRight>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.items = mapped
}
/**
* @param value
*/
@JvmName("rndofyrmtwpebehh")
public suspend fun maxItems(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxItems = mapped
}
/**
* @param value
*/
@JvmName("fmwhtfpdbapwhqka")
public suspend fun maxLength(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxLength = mapped
}
/**
* @param value
*/
@JvmName("fvutadenwkrwbngj")
public suspend fun maxProperties(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxProperties = mapped
}
/**
* @param value
*/
@JvmName("eipcfufvsxhabtch")
public suspend fun maximum(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximum = mapped
}
/**
* @param value
*/
@JvmName("gmkaoufgkwjnuntf")
public suspend fun minItems(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minItems = mapped
}
/**
* @param value
*/
@JvmName("yvmlvbolobpiphfi")
public suspend fun minLength(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minLength = mapped
}
/**
* @param value
*/
@JvmName("fppjaifncphxexjs")
public suspend fun minProperties(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minProperties = mapped
}
/**
* @param value
*/
@JvmName("lnbdajsvcuobxsnp")
public suspend fun minimum(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minimum = mapped
}
/**
* @param value
*/
@JvmName("ljmeskcinyvflxvi")
public suspend fun multipleOf(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.multipleOf = mapped
}
/**
* @param value
*/
@JvmName("xehutnolpstnwmby")
public suspend fun not(`value`: JSONSchemaPropsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.not = mapped
}
/**
* @param argument
*/
@JvmName("apoaqyjqesbgsude")
public suspend fun not(argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = JSONSchemaPropsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.not = mapped
}
/**
* @param value
*/
@JvmName("twoojpgurgyvmohb")
public suspend fun nullable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nullable = mapped
}
/**
* @param value
*/
@JvmName("mwhexbwplgnixdwj")
public suspend fun oneOf(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.oneOf = mapped
}
/**
* @param argument
*/
@JvmName("ilbstlayrjkfpxyu")
public suspend fun oneOf(argument: List Unit>) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.oneOf = mapped
}
/**
* @param argument
*/
@JvmName("xxrgnwdssfhltcin")
public suspend fun oneOf(vararg argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
JSONSchemaPropsArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.oneOf = mapped
}
/**
* @param argument
*/
@JvmName("wrfjruhktprirgqj")
public suspend fun oneOf(argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
val toBeMapped = listOf(JSONSchemaPropsArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.oneOf = mapped
}
/**
* @param values
*/
@JvmName("nbrlmabembaqtwsg")
public suspend fun oneOf(vararg values: JSONSchemaPropsArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.oneOf = mapped
}
/**
* @param value
*/
@JvmName("owufrrhjisqsjmib")
public suspend fun pattern(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pattern = mapped
}
/**
* @param value
*/
@JvmName("mxxvcfjueaufdykn")
public suspend fun patternProperties(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.patternProperties = mapped
}
/**
* @param argument
*/
@JvmName("lysncdxfbbbshmjj")
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("urrckvoslsdsjcwi")
public fun patternProperties(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.patternProperties = mapped
}
/**
* @param value
*/
@JvmName("vwxgbkuujfhgvtui")
public suspend fun properties(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument
*/
@JvmName("wfxprbwrbvircagw")
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("tebvudgqoycxquke")
public fun properties(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value
*/
@JvmName("xijfuvcgneqsdrna")
public suspend fun required(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.required = mapped
}
/**
* @param values
*/
@JvmName("bkfflypaecxnepsh")
public suspend fun required(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.required = mapped
}
/**
* @param value
*/
@JvmName("mcrabyhaxwnjfkwy")
public suspend fun title(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.title = mapped
}
/**
* @param value
*/
@JvmName("kdcapfljlhdheucl")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value
*/
@JvmName("jkjfioiegxbxjhqy")
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("dxxhanktpnfgifaq")
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("jurmanwakngniiqi")
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).
* The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
*/
@JvmName("qxqbwdscibfulnom")
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).
* The properties specified must either be required or have a default value, to ensure those properties are present for all list items.
*/
@JvmName("vwsoxpntcjblsfdg")
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("omhmrogahjwurmnw")
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("krbakjocwutijfwp")
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("vaictigfgeuduiny")
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
}
/**
* @param value x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("dyxgccvkuntjxpnr")
public suspend fun x_kubernetes_validations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.x_kubernetes_validations = mapped
}
/**
* @param argument x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("ssjfjnhydkksmiuc")
public suspend fun x_kubernetes_validations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ValidationRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.x_kubernetes_validations = mapped
}
/**
* @param argument x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("gbxdpcgvfjnriwhv")
public suspend fun x_kubernetes_validations(vararg argument: suspend ValidationRuleArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ValidationRuleArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.x_kubernetes_validations = mapped
}
/**
* @param argument x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("ocgfsmavndseycmr")
public suspend fun x_kubernetes_validations(argument: suspend ValidationRuleArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ValidationRuleArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.x_kubernetes_validations = mapped
}
/**
* @param values x-kubernetes-validations describes a list of validation rules written in the CEL expression language.
*/
@JvmName("ffmixcpxanfkvpcp")
public suspend fun x_kubernetes_validations(vararg values: ValidationRuleArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.x_kubernetes_validations = mapped
}
internal fun build(): JSONSchemaPropsArgs = JSONSchemaPropsArgs(
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,
x_kubernetes_validations = x_kubernetes_validations,
)
}