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

com.pulumi.kubernetes.admissionregistration.v1alpha1.kotlin.outputs.Mutation.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.admissionregistration.v1alpha1.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Mutation specifies the CEL expression which is used to apply the Mutation.
 * @property applyConfiguration applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
 * @property jsonPatch jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
 * @property patchType patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
 */
public data class Mutation(
    public val applyConfiguration: ApplyConfiguration? = null,
    public val jsonPatch: JSONPatch? = null,
    public val patchType: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.admissionregistration.v1alpha1.outputs.Mutation): Mutation = Mutation(
            applyConfiguration = javaType.applyConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.admissionregistration.v1alpha1.kotlin.outputs.ApplyConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            jsonPatch = javaType.jsonPatch().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.admissionregistration.v1alpha1.kotlin.outputs.JSONPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            patchType = javaType.patchType(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy