com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.ResourcePoolPatchArgs.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.resource.v1alpha3.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.kubernetes.resource.v1alpha3.inputs.ResourcePoolPatchArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ResourcePool describes the pool that ResourceSlices belong to.
* @property generation Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
* Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
* @property name Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
* It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
* @property resourceSliceCount ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
* Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
*/
public data class ResourcePoolPatchArgs(
public val generation: Output? = null,
public val name: Output? = null,
public val resourceSliceCount: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha3.inputs.ResourcePoolPatchArgs =
com.pulumi.kubernetes.resource.v1alpha3.inputs.ResourcePoolPatchArgs.builder()
.generation(generation?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceSliceCount(resourceSliceCount?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourcePoolPatchArgs].
*/
@PulumiTagMarker
public class ResourcePoolPatchArgsBuilder internal constructor() {
private var generation: Output? = null
private var name: Output? = null
private var resourceSliceCount: Output? = null
/**
* @param value Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
* Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
*/
@JvmName("nlgdribueerkviyy")
public suspend fun generation(`value`: Output) {
this.generation = value
}
/**
* @param value Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
* It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
*/
@JvmName("nhvtdwyojxatttki")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
* Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
*/
@JvmName("qhdubwvvvociiibq")
public suspend fun resourceSliceCount(`value`: Output) {
this.resourceSliceCount = value
}
/**
* @param value Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
* Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
*/
@JvmName("yjxgfdtnardnfcvs")
public suspend fun generation(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.generation = mapped
}
/**
* @param value Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
* It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
*/
@JvmName("rhwcyngooiwkwreg")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
* Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
*/
@JvmName("pprjgbmatsyqlgnf")
public suspend fun resourceSliceCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceSliceCount = mapped
}
internal fun build(): ResourcePoolPatchArgs = ResourcePoolPatchArgs(
generation = generation,
name = name,
resourceSliceCount = resourceSliceCount,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy