com.pulumi.kubernetes.settings.v1alpha1.kotlin.outputs.PodPresetSpec.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.outputs
import com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvFromSource
import com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvVar
import com.pulumi.kubernetes.core.v1.kotlin.outputs.Volume
import com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumeMount
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelector
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 PodPresetSpec(
public val env: List? = null,
public val envFrom: List? = null,
public val selector: LabelSelector? = null,
public val volumeMounts: List? = null,
public val volumes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.settings.v1alpha1.outputs.PodPresetSpec): PodPresetSpec = PodPresetSpec(
env = javaType.env().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvVar.Companion.toKotlin(args0)
})
}),
envFrom = javaType.envFrom().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.EnvFromSource.Companion.toKotlin(args0)
})
}),
selector = javaType.selector().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelector.Companion.toKotlin(args0)
})
}).orElse(null),
volumeMounts = javaType.volumeMounts().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.VolumeMount.Companion.toKotlin(args0)
})
}),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.core.v1.kotlin.outputs.Volume.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy