com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.ResourceClaimTemplateSpecPatch.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.outputs
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMetaPatch
import kotlin.Suppress
/**
* ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
* @property metadata ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
* @property spec Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
*/
public data class ResourceClaimTemplateSpecPatch(
public val metadata: ObjectMetaPatch? = null,
public val spec: ResourceClaimSpecPatch? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.ResourceClaimTemplateSpecPatch): ResourceClaimTemplateSpecPatch = ResourceClaimTemplateSpecPatch(
metadata = javaType.metadata().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMetaPatch.Companion.toKotlin(args0)
})
}).orElse(null),
spec = javaType.spec().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.ResourceClaimSpecPatch.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy