com.pulumi.kubernetes.settings.v1alpha1.kotlin.inputs.PodPresetSpecPatchArgs.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.settings.v1alpha1.kotlin.inputs
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.core.v1.kotlin.inputs.EnvFromSourcePatchArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvFromSourcePatchArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvVarPatchArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.EnvVarPatchArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeMountPatchArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumeMountPatchArgsBuilder
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumePatchArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.VolumePatchArgsBuilder
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorPatchArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorPatchArgsBuilder
import com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* 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 PodPresetSpecPatchArgs(
public val env: Output>? = null,
public val envFrom: Output>? = null,
public val selector: Output? = null,
public val volumeMounts: Output>? = null,
public val volumes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecPatchArgs =
com.pulumi.kubernetes.settings.v1alpha1.inputs.PodPresetSpecPatchArgs.builder()
.env(env?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.envFrom(
envFrom?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.selector(selector?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.volumeMounts(
volumeMounts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.volumes(
volumes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [PodPresetSpecPatchArgs].
*/
@PulumiTagMarker
public class PodPresetSpecPatchArgsBuilder internal constructor() {
private var env: Output>? = null
private var envFrom: Output>? = null
private var selector: Output? = null
private var volumeMounts: Output>? = null
private var volumes: Output>? = null
/**
* @param value Env defines the collection of EnvVar to inject into containers.
*/
@JvmName("ijfhlkqerfuiiedy")
public suspend fun env(`value`: Output>) {
this.env = value
}
@JvmName("kqfmdtrsknitxppq")
public suspend fun env(vararg values: Output) {
this.env = Output.all(values.asList())
}
/**
* @param values Env defines the collection of EnvVar to inject into containers.
*/
@JvmName("ctaoiyyjhtbgtvuq")
public suspend fun env(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy