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

com.pulumi.azure.synapse.kotlin.outputs.WorkspaceAzureDevopsRepo.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.synapse.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property accountName Specifies the Azure DevOps account name.
 * @property branchName Specifies the collaboration branch of the repository to get code from.
 * @property lastCommitId The last commit ID.
 * @property projectName Specifies the name of the Azure DevOps project.
 * @property repositoryName Specifies the name of the git repository.
 * @property rootFolder Specifies the root folder within the repository. Set to `/` for the top level.
 * @property tenantId the ID of the tenant for the Azure DevOps account.
 */
public data class WorkspaceAzureDevopsRepo(
    public val accountName: String,
    public val branchName: String,
    public val lastCommitId: String? = null,
    public val projectName: String,
    public val repositoryName: String,
    public val rootFolder: String,
    public val tenantId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.synapse.outputs.WorkspaceAzureDevopsRepo): WorkspaceAzureDevopsRepo = WorkspaceAzureDevopsRepo(
            accountName = javaType.accountName(),
            branchName = javaType.branchName(),
            lastCommitId = javaType.lastCommitId().map({ args0 -> args0 }).orElse(null),
            projectName = javaType.projectName(),
            repositoryName = javaType.repositoryName(),
            rootFolder = javaType.rootFolder(),
            tenantId = javaType.tenantId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy