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

com.pulumi.digitalocean.kotlin.outputs.KubernetesClusterKubeConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property clientCertificate The base64 encoded public certificate used by clients to access the cluster. Only available if token authentication is not supported on your cluster.
 * @property clientKey The base64 encoded private key used by clients to access the cluster. Only available if token authentication is not supported on your cluster.
 * @property clusterCaCertificate The base64 encoded public certificate for the cluster's certificate authority.
 * @property expiresAt The date and time when the credentials will expire and need to be regenerated.
 * @property host The URL of the API server on the Kubernetes master node.
 * @property rawConfig The full contents of the Kubernetes cluster's kubeconfig file.
 * @property token The DigitalOcean API access token used by clients to access the cluster.
 */
public data class KubernetesClusterKubeConfig(
    public val clientCertificate: String? = null,
    public val clientKey: String? = null,
    public val clusterCaCertificate: String? = null,
    public val expiresAt: String? = null,
    public val host: String? = null,
    public val rawConfig: String? = null,
    public val token: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.KubernetesClusterKubeConfig): KubernetesClusterKubeConfig = KubernetesClusterKubeConfig(
            clientCertificate = javaType.clientCertificate().map({ args0 -> args0 }).orElse(null),
            clientKey = javaType.clientKey().map({ args0 -> args0 }).orElse(null),
            clusterCaCertificate = javaType.clusterCaCertificate().map({ args0 -> args0 }).orElse(null),
            expiresAt = javaType.expiresAt().map({ args0 -> args0 }).orElse(null),
            host = javaType.host().map({ args0 -> args0 }).orElse(null),
            rawConfig = javaType.rawConfig().map({ args0 -> args0 }).orElse(null),
            token = javaType.token().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy