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

com.pulumi.gcp.cloudbuildv2.kotlin.inputs.ConnectionGithubEnterpriseConfigArgs.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.cloudbuildv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubEnterpriseConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @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 ConnectionGithubEnterpriseConfigArgs(
    public val appId: Output? = null,
    public val appInstallationId: Output? = null,
    public val appSlug: Output? = null,
    public val hostUri: Output,
    public val privateKeySecretVersion: Output? = null,
    public val serviceDirectoryConfig: Output? = null,
    public val sslCa: Output? = null,
    public val webhookSecretSecretVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubEnterpriseConfigArgs =
        com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubEnterpriseConfigArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .appInstallationId(appInstallationId?.applyValue({ args0 -> args0 }))
            .appSlug(appSlug?.applyValue({ args0 -> args0 }))
            .hostUri(hostUri.applyValue({ args0 -> args0 }))
            .privateKeySecretVersion(privateKeySecretVersion?.applyValue({ args0 -> args0 }))
            .serviceDirectoryConfig(
                serviceDirectoryConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sslCa(sslCa?.applyValue({ args0 -> args0 }))
            .webhookSecretSecretVersion(webhookSecretSecretVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionGithubEnterpriseConfigArgs].
 */
@PulumiTagMarker
public class ConnectionGithubEnterpriseConfigArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var appInstallationId: Output? = null

    private var appSlug: Output? = null

    private var hostUri: Output? = null

    private var privateKeySecretVersion: Output? = null

    private var serviceDirectoryConfig:
        Output? = null

    private var sslCa: Output? = null

    private var webhookSecretSecretVersion: Output? = null

    /**
     * @param value Id of the GitHub App created from the manifest.
     */
    @JvmName("mtyiehwgjnpgmjjf")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value ID of the installation of the GitHub App.
     */
    @JvmName("actwddixlxoxtqhb")
    public suspend fun appInstallationId(`value`: Output) {
        this.appInstallationId = value
    }

    /**
     * @param value The URL-friendly name of the GitHub App.
     */
    @JvmName("mnbahvjwqxbmqggc")
    public suspend fun appSlug(`value`: Output) {
        this.appSlug = value
    }

    /**
     * @param value Required. The URI of the GitHub Enterprise host this connection is for.
     */
    @JvmName("waxackhpskjpwubg")
    public suspend fun hostUri(`value`: Output) {
        this.hostUri = value
    }

    /**
     * @param value SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("mgjtokjaxngkkgkn")
    public suspend fun privateKeySecretVersion(`value`: Output) {
        this.privateKeySecretVersion = value
    }

    /**
     * @param value 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.
     */
    @JvmName("aqlpaptptnunxtle")
    public suspend fun serviceDirectoryConfig(`value`: Output) {
        this.serviceDirectoryConfig = value
    }

    /**
     * @param value SSL certificate to use for requests to GitHub Enterprise.
     */
    @JvmName("sefbbhjsaerqiiii")
    public suspend fun sslCa(`value`: Output) {
        this.sslCa = value
    }

    /**
     * @param value SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("kcnusvnpxnuindpa")
    public suspend fun webhookSecretSecretVersion(`value`: Output) {
        this.webhookSecretSecretVersion = value
    }

    /**
     * @param value Id of the GitHub App created from the manifest.
     */
    @JvmName("intdaevlwamgqria")
    public suspend fun appId(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value ID of the installation of the GitHub App.
     */
    @JvmName("uhypdkgtnxbddhgc")
    public suspend fun appInstallationId(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appInstallationId = mapped
    }

    /**
     * @param value The URL-friendly name of the GitHub App.
     */
    @JvmName("ksfkvkaavnblsprc")
    public suspend fun appSlug(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appSlug = mapped
    }

    /**
     * @param value Required. The URI of the GitHub Enterprise host this connection is for.
     */
    @JvmName("gmxqmoutsrtaaqlu")
    public suspend fun hostUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostUri = mapped
    }

    /**
     * @param value SecretManager resource containing the private key of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("hcxmyspfpuikcgpt")
    public suspend fun privateKeySecretVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateKeySecretVersion = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("cbsxkudbcliaygcg")
    public suspend fun serviceDirectoryConfig(`value`: ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceDirectoryConfig = mapped
    }

    /**
     * @param argument 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.
     */
    @JvmName("cberbqmymvkoixac")
    public suspend fun serviceDirectoryConfig(argument: suspend ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            ConnectionGithubEnterpriseConfigServiceDirectoryConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.serviceDirectoryConfig = mapped
    }

    /**
     * @param value SSL certificate to use for requests to GitHub Enterprise.
     */
    @JvmName("seoyuulyxkbtltsy")
    public suspend fun sslCa(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sslCa = mapped
    }

    /**
     * @param value SecretManager resource containing the webhook secret of the GitHub App, formatted as `projects/*/secrets/*/versions/*`.
     * */*/*/
     */
    @JvmName("nnpvpaiqoifluhau")
    public suspend fun webhookSecretSecretVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhookSecretSecretVersion = mapped
    }

    internal fun build(): ConnectionGithubEnterpriseConfigArgs = ConnectionGithubEnterpriseConfigArgs(
        appId = appId,
        appInstallationId = appInstallationId,
        appSlug = appSlug,
        hostUri = hostUri ?: throw PulumiNullFieldException("hostUri"),
        privateKeySecretVersion = privateKeySecretVersion,
        serviceDirectoryConfig = serviceDirectoryConfig,
        sslCa = sslCa,
        webhookSecretSecretVersion = webhookSecretSecretVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy