![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.cloudflare.kotlin.outputs.PagesProjectSourceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property deploymentsEnabled Toggle deployments on this repo. Defaults to `true`.
* @property owner Project owner username. **Modifying this attribute will force creation of a new resource.**
* @property prCommentsEnabled Enable Pages to comment on Pull Requests. Defaults to `true`.
* @property previewBranchExcludes Branches will be excluded from automatic deployment.
* @property previewBranchIncludes Branches will be included for automatic deployment.
* @property previewDeploymentSetting Preview Deployment Setting. Available values: `custom`, `all`, `none`. Defaults to `all`.
* @property productionBranch Project production branch name.
* @property productionDeploymentEnabled Enable production deployments. Defaults to `true`.
* @property repoName Project repository name. **Modifying this attribute will force creation of a new resource.**
*/
public data class PagesProjectSourceConfig(
public val deploymentsEnabled: Boolean? = null,
public val owner: String? = null,
public val prCommentsEnabled: Boolean? = null,
public val previewBranchExcludes: List? = null,
public val previewBranchIncludes: List? = null,
public val previewDeploymentSetting: String? = null,
public val productionBranch: String,
public val productionDeploymentEnabled: Boolean? = null,
public val repoName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.PagesProjectSourceConfig): PagesProjectSourceConfig = PagesProjectSourceConfig(
deploymentsEnabled = javaType.deploymentsEnabled().map({ args0 -> args0 }).orElse(null),
owner = javaType.owner().map({ args0 -> args0 }).orElse(null),
prCommentsEnabled = javaType.prCommentsEnabled().map({ args0 -> args0 }).orElse(null),
previewBranchExcludes = javaType.previewBranchExcludes().map({ args0 -> args0 }),
previewBranchIncludes = javaType.previewBranchIncludes().map({ args0 -> args0 }),
previewDeploymentSetting = javaType.previewDeploymentSetting().map({ args0 -> args0 }).orElse(null),
productionBranch = javaType.productionBranch(),
productionDeploymentEnabled = javaType.productionDeploymentEnabled().map({ args0 ->
args0
}).orElse(null),
repoName = javaType.repoName().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy