com.pulumi.azure.synapse.kotlin.outputs.WorkspaceGithubRepo.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 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 WorkspaceGithubRepo(
public val accountName: String,
public val branchName: String,
public val gitUrl: String? = null,
public val lastCommitId: String? = null,
public val repositoryName: String,
public val rootFolder: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.synapse.outputs.WorkspaceGithubRepo): WorkspaceGithubRepo = WorkspaceGithubRepo(
accountName = javaType.accountName(),
branchName = javaType.branchName(),
gitUrl = javaType.gitUrl().map({ args0 -> args0 }).orElse(null),
lastCommitId = javaType.lastCommitId().map({ args0 -> args0 }).orElse(null),
repositoryName = javaType.repositoryName(),
rootFolder = javaType.rootFolder(),
)
}
}