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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.ResourceClaimConsumerReference.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.String
import kotlin.Suppress

/**
 * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
 * @property apiGroup APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
 * @property name Name is the name of resource being referenced.
 * @property resource Resource is the type of resource being referenced, for example "pods".
 * @property uid UID identifies exactly one incarnation of the resource.
 */
public data class ResourceClaimConsumerReference(
    public val apiGroup: String? = null,
    public val name: String,
    public val resource: String,
    public val uid: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.ResourceClaimConsumerReference): ResourceClaimConsumerReference = ResourceClaimConsumerReference(
            apiGroup = javaType.apiGroup().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            resource = javaType.resource(),
            uid = javaType.uid(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy