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

com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionAuthConfigSshPublicKey.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.integrationconnectors.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property certType Format of SSH Client cert.
 * @property sshClientCert SSH Client Cert. It should contain both public and private key.
 * Structure is documented below.
 * @property sshClientCertPass Password (passphrase) for ssh client certificate if it has one.
 * Structure is documented below.
 * @property username The user account used to authenticate.
 */
public data class ConnectionAuthConfigSshPublicKey(
    public val certType: String? = null,
    public val sshClientCert: ConnectionAuthConfigSshPublicKeySshClientCert? = null,
    public val sshClientCertPass: ConnectionAuthConfigSshPublicKeySshClientCertPass? = null,
    public val username: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.integrationconnectors.outputs.ConnectionAuthConfigSshPublicKey): ConnectionAuthConfigSshPublicKey = ConnectionAuthConfigSshPublicKey(
            certType = javaType.certType().map({ args0 -> args0 }).orElse(null),
            sshClientCert = javaType.sshClientCert().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionAuthConfigSshPublicKeySshClientCert.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sshClientCertPass = javaType.sshClientCertPass().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionAuthConfigSshPublicKeySshClientCertPass.Companion.toKotlin(args0)
                })
            }).orElse(null),
            username = javaType.username(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy