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

com.pulumi.azurenative.web.kotlin.outputs.GetWebAppSourceControlSlotResult.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.web.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * Source control configuration for an app.
 * @property branch Name of branch to use for deployment.
 * @property deploymentRollbackEnabled true to enable deployment rollback; otherwise, false.
 * @property gitHubActionConfiguration If GitHub Action is selected, than the associated configuration.
 * @property id Resource Id.
 * @property isGitHubAction true if this is deployed via GitHub action.
 * @property isManualIntegration true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
 * @property isMercurial true for a Mercurial repository; false for a Git repository.
 * @property kind Kind of resource.
 * @property name Resource Name.
 * @property repoUrl Repository or source control URL.
 * @property type Resource type.
 */
public data class GetWebAppSourceControlSlotResult(
    public val branch: String? = null,
    public val deploymentRollbackEnabled: Boolean? = null,
    public val gitHubActionConfiguration: GitHubActionConfigurationResponse? = null,
    public val id: String,
    public val isGitHubAction: Boolean? = null,
    public val isManualIntegration: Boolean? = null,
    public val isMercurial: Boolean? = null,
    public val kind: String? = null,
    public val name: String,
    public val repoUrl: String? = null,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.web.outputs.GetWebAppSourceControlSlotResult): GetWebAppSourceControlSlotResult = GetWebAppSourceControlSlotResult(
            branch = javaType.branch().map({ args0 -> args0 }).orElse(null),
            deploymentRollbackEnabled = javaType.deploymentRollbackEnabled().map({ args0 ->
                args0
            }).orElse(null),
            gitHubActionConfiguration = javaType.gitHubActionConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.web.kotlin.outputs.GitHubActionConfigurationResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            id = javaType.id(),
            isGitHubAction = javaType.isGitHubAction().map({ args0 -> args0 }).orElse(null),
            isManualIntegration = javaType.isManualIntegration().map({ args0 -> args0 }).orElse(null),
            isMercurial = javaType.isMercurial().map({ args0 -> args0 }).orElse(null),
            kind = javaType.kind().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            repoUrl = javaType.repoUrl().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy