com.pulumi.gitlab.kotlin.inputs.ApplicationSettingsDefaultBranchProtectionDefaultsArgs.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.ApplicationSettingsDefaultBranchProtectionDefaultsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Boolean
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. Supports Developer (30) or Maintainer (40).
* @property allowedToPushes An array of access levels allowed to push. Supports Developer (30) or Maintainer (40).
* @property developerCanInitialPush Allow developers to initial push.
*/
public data class ApplicationSettingsDefaultBranchProtectionDefaultsArgs(
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.ApplicationSettingsDefaultBranchProtectionDefaultsArgs =
com.pulumi.gitlab.inputs.ApplicationSettingsDefaultBranchProtectionDefaultsArgs.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 [ApplicationSettingsDefaultBranchProtectionDefaultsArgs].
*/
@PulumiTagMarker
public class ApplicationSettingsDefaultBranchProtectionDefaultsArgsBuilder 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("xvbmrhqrikrudcvx")
public suspend fun allowForcePush(`value`: Output) {
this.allowForcePush = value
}
/**
* @param value An array of access levels allowed to merge. Supports Developer (30) or Maintainer (40).
*/
@JvmName("yttbcsqriwyovmus")
public suspend fun allowedToMerges(`value`: Output>) {
this.allowedToMerges = value
}
@JvmName("xkbdklpjbuaudbfq")
public suspend fun allowedToMerges(vararg values: Output) {
this.allowedToMerges = Output.all(values.asList())
}
/**
* @param values An array of access levels allowed to merge. Supports Developer (30) or Maintainer (40).
*/
@JvmName("fhsnwvpammnxvahd")
public suspend fun allowedToMerges(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy