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

com.pulumi.googlenative.container.v1.kotlin.outputs.MasterAuthResponse.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.container.v1.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.
 * @property clientCertificate [Output only] Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
 * @property clientCertificateConfig Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
 * @property clientKey [Output only] Base64-encoded private key used by clients to authenticate to the cluster endpoint.
 * @property clusterCaCertificate [Output only] Base64-encoded public certificate that is the root of trust for the cluster.
 * @property password The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty. Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
 * @property username The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string). Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
 */
public data class MasterAuthResponse(
    public val clientCertificate: String,
    public val clientCertificateConfig: ClientCertificateConfigResponse,
    public val clientKey: String,
    public val clusterCaCertificate: String,
    public val password: String,
    public val username: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.container.v1.outputs.MasterAuthResponse): MasterAuthResponse = MasterAuthResponse(
            clientCertificate = javaType.clientCertificate(),
            clientCertificateConfig = javaType.clientCertificateConfig().let({ args0 ->
                com.pulumi.googlenative.container.v1.kotlin.outputs.ClientCertificateConfigResponse.Companion.toKotlin(args0)
            }),
            clientKey = javaType.clientKey(),
            clusterCaCertificate = javaType.clusterCaCertificate(),
            password = javaType.password(),
            username = javaType.username(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy