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

com.pulumi.kubernetes.settings.v1alpha1.kotlin.outputs.PodPresetSpecPatch.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.settings.v1alpha1.kotlin.outputs

import com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvFromSourcePatch
import com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvVarPatch
import com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumeMountPatch
import com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumePatch
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelectorPatch
import kotlin.Suppress
import kotlin.collections.List

/**
 * PodPresetSpec is a description of a pod preset.
 * @property env Env defines the collection of EnvVar to inject into containers.
 * @property envFrom EnvFrom defines the collection of EnvFromSource to inject into containers.
 * @property selector Selector is a label query over a set of resources, in this case pods. Required.
 * @property volumeMounts VolumeMounts defines the collection of VolumeMount to inject into containers.
 * @property volumes Volumes defines the collection of Volume to inject into the pod.
 */
public data class PodPresetSpecPatch(
    public val env: List? = null,
    public val envFrom: List? = null,
    public val selector: LabelSelectorPatch? = null,
    public val volumeMounts: List? = null,
    public val volumes: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.settings.v1alpha1.outputs.PodPresetSpecPatch): PodPresetSpecPatch = PodPresetSpecPatch(
            env = javaType.env().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvVarPatch.Companion.toKotlin(args0)
                })
            }),
            envFrom = javaType.envFrom().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvFromSourcePatch.Companion.toKotlin(args0)
                })
            }),
            selector = javaType.selector().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelectorPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            volumeMounts = javaType.volumeMounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumeMountPatch.Companion.toKotlin(args0)
                })
            }),
            volumes = javaType.volumes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumePatch.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy