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

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

package com.pulumi.gcp.cloudbuildv2.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property appId Id of the GitHub App created from the manifest.
 * @property appInstallationId ID of the installation of the GitHub App.
 * @property appSlug The URL-friendly name of the GitHub App.
 * @property hostUri Required. The URI of the GitHub Enterprise host this connection is for.
 * @property privateKeySecretVersion SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
 * @property serviceDirectoryConfig Configuration for using Service Directory to privately connect to a GitHub Enterprise server. This should only be set if the GitHub Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitHub Enterprise server will be made over the public internet.
 * Structure is documented below.
 * @property sslCa SSL certificate to use for requests to GitHub Enterprise.
 * @property webhookSecretSecretVersion SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
 * */*/*/*/*/*/
 */
public data class ConnectionGithubEnterpriseConfig(
    public val appId: Int? = null,
    public val appInstallationId: Int? = null,
    public val appSlug: String? = null,
    public val hostUri: String,
    public val privateKeySecretVersion: String? = null,
    public val serviceDirectoryConfig: ConnectionGithubEnterpriseConfigServiceDirectoryConfig? = null,
    public val sslCa: String? = null,
    public val webhookSecretSecretVersion: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudbuildv2.outputs.ConnectionGithubEnterpriseConfig): ConnectionGithubEnterpriseConfig = ConnectionGithubEnterpriseConfig(
            appId = javaType.appId().map({ args0 -> args0 }).orElse(null),
            appInstallationId = javaType.appInstallationId().map({ args0 -> args0 }).orElse(null),
            appSlug = javaType.appSlug().map({ args0 -> args0 }).orElse(null),
            hostUri = javaType.hostUri(),
            privateKeySecretVersion = javaType.privateKeySecretVersion().map({ args0 -> args0 }).orElse(null),
            serviceDirectoryConfig = javaType.serviceDirectoryConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGithubEnterpriseConfigServiceDirectoryConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            sslCa = javaType.sslCa().map({ args0 -> args0 }).orElse(null),
            webhookSecretSecretVersion = javaType.webhookSecretSecretVersion().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy