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

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

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

/**
 *
 * @property appInstallationId GitHub App installation id.
 * @property authorizerCredential OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
 * Structure is documented below.
 */
public data class ConnectionGithubConfigArgs(
    public val appInstallationId: Output? = null,
    public val authorizerCredential: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigArgs =
        com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigArgs.builder()
            .appInstallationId(appInstallationId?.applyValue({ args0 -> args0 }))
            .authorizerCredential(
                authorizerCredential?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var authorizerCredential: Output? = null

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

    /**
     * @param value OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
     * Structure is documented below.
     */
    @JvmName("fwjjpaxstfdngxvc")
    public suspend fun authorizerCredential(`value`: Output) {
        this.authorizerCredential = value
    }

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

    /**
     * @param value OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
     * Structure is documented below.
     */
    @JvmName("aywyguaesdfsywve")
    public suspend fun authorizerCredential(`value`: ConnectionGithubConfigAuthorizerCredentialArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizerCredential = mapped
    }

    /**
     * @param argument OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
     * Structure is documented below.
     */
    @JvmName("erqfxskxywjqoanu")
    public suspend fun authorizerCredential(argument: suspend ConnectionGithubConfigAuthorizerCredentialArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectionGithubConfigAuthorizerCredentialArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authorizerCredential = mapped
    }

    internal fun build(): ConnectionGithubConfigArgs = ConnectionGithubConfigArgs(
        appInstallationId = appInstallationId,
        authorizerCredential = authorizerCredential,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy