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

com.pulumi.azure.synapse.kotlin.inputs.WorkspaceGithubRepoArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.synapse.kotlin.inputs

import com.pulumi.azure.synapse.inputs.WorkspaceGithubRepoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accountName Specifies the GitHub account name.
 * @property branchName Specifies the collaboration branch of the repository to get code from.
 * @property gitUrl Specifies the GitHub Enterprise host name. For example: .
 * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
 * @property lastCommitId The last commit ID.
 * @property repositoryName Specifies the name of the git repository.
 * @property rootFolder Specifies the root folder within the repository. Set to `/` for the top level.
 */
public data class WorkspaceGithubRepoArgs(
    public val accountName: Output,
    public val branchName: Output,
    public val gitUrl: Output? = null,
    public val lastCommitId: Output? = null,
    public val repositoryName: Output,
    public val rootFolder: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.synapse.inputs.WorkspaceGithubRepoArgs =
        com.pulumi.azure.synapse.inputs.WorkspaceGithubRepoArgs.builder()
            .accountName(accountName.applyValue({ args0 -> args0 }))
            .branchName(branchName.applyValue({ args0 -> args0 }))
            .gitUrl(gitUrl?.applyValue({ args0 -> args0 }))
            .lastCommitId(lastCommitId?.applyValue({ args0 -> args0 }))
            .repositoryName(repositoryName.applyValue({ args0 -> args0 }))
            .rootFolder(rootFolder.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WorkspaceGithubRepoArgs].
 */
@PulumiTagMarker
public class WorkspaceGithubRepoArgsBuilder internal constructor() {
    private var accountName: Output? = null

    private var branchName: Output? = null

    private var gitUrl: Output? = null

    private var lastCommitId: Output? = null

    private var repositoryName: Output? = null

    private var rootFolder: Output? = null

    /**
     * @param value Specifies the GitHub account name.
     */
    @JvmName("bqunwgomsvammapw")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value Specifies the collaboration branch of the repository to get code from.
     */
    @JvmName("sgvfowicphudvlqj")
    public suspend fun branchName(`value`: Output) {
        this.branchName = value
    }

    /**
     * @param value Specifies the GitHub Enterprise host name. For example: .
     * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
     */
    @JvmName("tvyymvhvqswuvmao")
    public suspend fun gitUrl(`value`: Output) {
        this.gitUrl = value
    }

    /**
     * @param value The last commit ID.
     */
    @JvmName("lwynrriujjbrtmvr")
    public suspend fun lastCommitId(`value`: Output) {
        this.lastCommitId = value
    }

    /**
     * @param value Specifies the name of the git repository.
     */
    @JvmName("wxlwtbgqyiovajwh")
    public suspend fun repositoryName(`value`: Output) {
        this.repositoryName = value
    }

    /**
     * @param value Specifies the root folder within the repository. Set to `/` for the top level.
     */
    @JvmName("grmylkgjdlyhjdfq")
    public suspend fun rootFolder(`value`: Output) {
        this.rootFolder = value
    }

    /**
     * @param value Specifies the GitHub account name.
     */
    @JvmName("uyqsuagxmcakpgtk")
    public suspend fun accountName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value Specifies the collaboration branch of the repository to get code from.
     */
    @JvmName("dcrbeaqpqwbxgvlg")
    public suspend fun branchName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.branchName = mapped
    }

    /**
     * @param value Specifies the GitHub Enterprise host name. For example: .
     * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
     */
    @JvmName("gcvnjfxnacrndwrj")
    public suspend fun gitUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gitUrl = mapped
    }

    /**
     * @param value The last commit ID.
     */
    @JvmName("wajyijyhuodhplts")
    public suspend fun lastCommitId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastCommitId = mapped
    }

    /**
     * @param value Specifies the name of the git repository.
     */
    @JvmName("ijfeyuqntqvywpcc")
    public suspend fun repositoryName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.repositoryName = mapped
    }

    /**
     * @param value Specifies the root folder within the repository. Set to `/` for the top level.
     */
    @JvmName("lxrqefbojifgqjxx")
    public suspend fun rootFolder(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rootFolder = mapped
    }

    internal fun build(): WorkspaceGithubRepoArgs = WorkspaceGithubRepoArgs(
        accountName = accountName ?: throw PulumiNullFieldException("accountName"),
        branchName = branchName ?: throw PulumiNullFieldException("branchName"),
        gitUrl = gitUrl,
        lastCommitId = lastCommitId,
        repositoryName = repositoryName ?: throw PulumiNullFieldException("repositoryName"),
        rootFolder = rootFolder ?: throw PulumiNullFieldException("rootFolder"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy