com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.ResourcePoolPatch.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* 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 ResourcePoolPatch(
public val generation: Int? = null,
public val name: String? = null,
public val resourceSliceCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.ResourcePoolPatch): ResourcePoolPatch = ResourcePoolPatch(
generation = javaType.generation().map({ args0 -> args0 }).orElse(null),
name = javaType.name().map({ args0 -> args0 }).orElse(null),
resourceSliceCount = javaType.resourceSliceCount().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy