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

com.pulumi.gcp.developerconnect.kotlin.inputs.ConnectionGithubConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.developerconnect.kotlin.inputs

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

/**
 *
 * @property appInstallationId Optional. GitHub App installation id.
 * @property authorizerCredential Represents an OAuth token of the account that authorized the Connection,and
 * associated metadata.
 * Structure is documented below.
 * @property githubApp Required. Immutable. The GitHub Application that was installed to
 * the GitHub user or organization.
 * Possible values:
 * GIT_HUB_APP_UNSPECIFIED
 * DEVELOPER_CONNECT
 * FIREBASE"
 * @property installationUri (Output)
 * Output only. The URI to navigate to in order to manage the installation
 * associated with this GitHubConfig.
 */
public data class ConnectionGithubConfigArgs(
    public val appInstallationId: Output? = null,
    public val authorizerCredential: Output? = null,
    public val githubApp: Output,
    public val installationUri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.developerconnect.inputs.ConnectionGithubConfigArgs =
        com.pulumi.gcp.developerconnect.inputs.ConnectionGithubConfigArgs.builder()
            .appInstallationId(appInstallationId?.applyValue({ args0 -> args0 }))
            .authorizerCredential(
                authorizerCredential?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .githubApp(githubApp.applyValue({ args0 -> args0 }))
            .installationUri(installationUri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionGithubConfigArgs].
 */
@PulumiTagMarker
public class ConnectionGithubConfigArgsBuilder internal constructor() {
    private var appInstallationId: Output? = null

    private var authorizerCredential: Output? = null

    private var githubApp: Output? = null

    private var installationUri: Output? = null

    /**
     * @param value Optional. GitHub App installation id.
     */
    @JvmName("kpjlnlqopqeaorgr")
    public suspend fun appInstallationId(`value`: Output) {
        this.appInstallationId = value
    }

    /**
     * @param value Represents an OAuth token of the account that authorized the Connection,and
     * associated metadata.
     * Structure is documented below.
     */
    @JvmName("kjfaqoqmbonmrwlx")
    public suspend fun authorizerCredential(`value`: Output) {
        this.authorizerCredential = value
    }

    /**
     * @param value Required. Immutable. The GitHub Application that was installed to
     * the GitHub user or organization.
     * Possible values:
     * GIT_HUB_APP_UNSPECIFIED
     * DEVELOPER_CONNECT
     * FIREBASE"
     */
    @JvmName("nmsvkvinygdqpesd")
    public suspend fun githubApp(`value`: Output) {
        this.githubApp = value
    }

    /**
     * @param value (Output)
     * Output only. The URI to navigate to in order to manage the installation
     * associated with this GitHubConfig.
     */
    @JvmName("vojiwxvrlyvgmclb")
    public suspend fun installationUri(`value`: Output) {
        this.installationUri = value
    }

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

    /**
     * @param value Represents an OAuth token of the account that authorized the Connection,and
     * associated metadata.
     * Structure is documented below.
     */
    @JvmName("ywruewqwhfiavlej")
    public suspend fun authorizerCredential(`value`: ConnectionGithubConfigAuthorizerCredentialArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizerCredential = mapped
    }

    /**
     * @param argument Represents an OAuth token of the account that authorized the Connection,and
     * associated metadata.
     * Structure is documented below.
     */
    @JvmName("okjoctdvudagwoxy")
    public suspend fun authorizerCredential(argument: suspend ConnectionGithubConfigAuthorizerCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionGithubConfigAuthorizerCredentialArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authorizerCredential = mapped
    }

    /**
     * @param value Required. Immutable. The GitHub Application that was installed to
     * the GitHub user or organization.
     * Possible values:
     * GIT_HUB_APP_UNSPECIFIED
     * DEVELOPER_CONNECT
     * FIREBASE"
     */
    @JvmName("veyndyspthprhiuj")
    public suspend fun githubApp(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.githubApp = mapped
    }

    /**
     * @param value (Output)
     * Output only. The URI to navigate to in order to manage the installation
     * associated with this GitHubConfig.
     */
    @JvmName("jlhktfxtshmlmhsf")
    public suspend fun installationUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.installationUri = mapped
    }

    internal fun build(): ConnectionGithubConfigArgs = ConnectionGithubConfigArgs(
        appInstallationId = appInstallationId,
        authorizerCredential = authorizerCredential,
        githubApp = githubApp ?: throw PulumiNullFieldException("githubApp"),
        installationUri = installationUri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy