com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs.WebhookConversion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* WebhookConversion describes how to call a conversion webhook
* @property clientConfig clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
* @property conversionReviewVersions conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.
*/
public data class WebhookConversion(
public val clientConfig: WebhookClientConfig? = null,
public val conversionReviewVersions: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.apiextensions.v1.outputs.WebhookConversion): WebhookConversion = WebhookConversion(
clientConfig = javaType.clientConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.apiextensions.v1.kotlin.outputs.WebhookClientConfig.Companion.toKotlin(args0)
})
}).orElse(null),
conversionReviewVersions = javaType.conversionReviewVersions().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy