com.pulumi.gitlab.kotlin.inputs.GroupDefaultBranchProtectionDefaultsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gitlab-kotlin Show documentation
Show all versions of pulumi-gitlab-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.gitlab.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowForcePush Allow force push for all users with push access.
* @property allowedToMerges An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
* @property allowedToPushes An array of access levels allowed to push. Valid values are: `developer`, `maintainer`, `no one`.
* @property developerCanInitialPush Allow developers to initial push.
*/
public data class GroupDefaultBranchProtectionDefaultsArgs(
public val allowForcePush: Output? = null,
public val allowedToMerges: Output>? = null,
public val allowedToPushes: Output>? = null,
public val developerCanInitialPush: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs =
com.pulumi.gitlab.inputs.GroupDefaultBranchProtectionDefaultsArgs.builder()
.allowForcePush(allowForcePush?.applyValue({ args0 -> args0 }))
.allowedToMerges(allowedToMerges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.allowedToPushes(allowedToPushes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.developerCanInitialPush(developerCanInitialPush?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GroupDefaultBranchProtectionDefaultsArgs].
*/
@PulumiTagMarker
public class GroupDefaultBranchProtectionDefaultsArgsBuilder internal constructor() {
private var allowForcePush: Output? = null
private var allowedToMerges: Output>? = null
private var allowedToPushes: Output>? = null
private var developerCanInitialPush: Output? = null
/**
* @param value Allow force push for all users with push access.
*/
@JvmName("xhjfxseuvdqpklnp")
public suspend fun allowForcePush(`value`: Output) {
this.allowForcePush = value
}
/**
* @param value An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
*/
@JvmName("pyrwaqpjtkdmreww")
public suspend fun allowedToMerges(`value`: Output>) {
this.allowedToMerges = value
}
@JvmName("brvhhudmnstagbpr")
public suspend fun allowedToMerges(vararg values: Output) {
this.allowedToMerges = Output.all(values.asList())
}
/**
* @param values An array of access levels allowed to merge. Valid values are: `developer`, `maintainer`, `no one`.
*/
@JvmName("vtqwjmrbutriujwr")
public suspend fun allowedToMerges(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy