All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.ResourceClaimTemplateSpec.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs

import com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta
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 ResourceClaimTemplateSpec(
    public val metadata: ObjectMeta? = null,
    public val spec: ResourceClaimSpec,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimTemplateSpec): ResourceClaimTemplateSpec = ResourceClaimTemplateSpec(
            metadata = javaType.metadata().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta.Companion.toKotlin(args0)
                })
            }).orElse(null),
            spec = javaType.spec().let({ args0 ->
                com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.ResourceClaimSpec.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy