com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVolumeEmptyDirArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeEmptyDirArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property medium The different types of medium supported for EmptyDir.
* Default value is `MEMORY`.
* Possible values are: `MEMORY`.
* @property sizeLimit Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
*/
public data class JobTemplateTemplateVolumeEmptyDirArgs(
public val medium: Output? = null,
public val sizeLimit: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeEmptyDirArgs =
com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeEmptyDirArgs.builder()
.medium(medium?.applyValue({ args0 -> args0 }))
.sizeLimit(sizeLimit?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobTemplateTemplateVolumeEmptyDirArgs].
*/
@PulumiTagMarker
public class JobTemplateTemplateVolumeEmptyDirArgsBuilder internal constructor() {
private var medium: Output? = null
private var sizeLimit: Output? = null
/**
* @param value The different types of medium supported for EmptyDir.
* Default value is `MEMORY`.
* Possible values are: `MEMORY`.
*/
@JvmName("rcabkidleeigboju")
public suspend fun medium(`value`: Output) {
this.medium = value
}
/**
* @param value Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
*/
@JvmName("eerdwvfjyfaycrno")
public suspend fun sizeLimit(`value`: Output) {
this.sizeLimit = value
}
/**
* @param value The different types of medium supported for EmptyDir.
* Default value is `MEMORY`.
* Possible values are: `MEMORY`.
*/
@JvmName("gbsbxhxbjeqveheh")
public suspend fun medium(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.medium = mapped
}
/**
* @param value Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
*/
@JvmName("kbnnvtwxgwghorxe")
public suspend fun sizeLimit(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sizeLimit = mapped
}
internal fun build(): JobTemplateTemplateVolumeEmptyDirArgs =
JobTemplateTemplateVolumeEmptyDirArgs(
medium = medium,
sizeLimit = sizeLimit,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy