com.pulumi.gitlab.kotlin.inputs.BranchProtectionAllowedToPushArgs.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.BranchProtectionAllowedToPushArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property accessLevel Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
* @property accessLevelDescription Readable description of access level.
* @property deployKeyId The ID of a GitLab deploy key allowed to perform the relevant action. Mutually exclusive with `group_id` and `user_id`. This field is read-only until Gitlab 17.5.
* @property groupId The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `user_id`.
* @property userId The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `group_id`.
*/
public data class BranchProtectionAllowedToPushArgs(
public val accessLevel: Output? = null,
public val accessLevelDescription: Output? = null,
public val deployKeyId: Output? = null,
public val groupId: Output? = null,
public val userId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gitlab.inputs.BranchProtectionAllowedToPushArgs =
com.pulumi.gitlab.inputs.BranchProtectionAllowedToPushArgs.builder()
.accessLevel(accessLevel?.applyValue({ args0 -> args0 }))
.accessLevelDescription(accessLevelDescription?.applyValue({ args0 -> args0 }))
.deployKeyId(deployKeyId?.applyValue({ args0 -> args0 }))
.groupId(groupId?.applyValue({ args0 -> args0 }))
.userId(userId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BranchProtectionAllowedToPushArgs].
*/
@PulumiTagMarker
public class BranchProtectionAllowedToPushArgsBuilder internal constructor() {
private var accessLevel: Output? = null
private var accessLevelDescription: Output? = null
private var deployKeyId: Output? = null
private var groupId: Output? = null
private var userId: Output? = null
/**
* @param value Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
*/
@JvmName("hgsapjgqdjghxudq")
public suspend fun accessLevel(`value`: Output) {
this.accessLevel = value
}
/**
* @param value Readable description of access level.
*/
@JvmName("ysywaisvhtuhoylf")
public suspend fun accessLevelDescription(`value`: Output) {
this.accessLevelDescription = value
}
/**
* @param value The ID of a GitLab deploy key allowed to perform the relevant action. Mutually exclusive with `group_id` and `user_id`. This field is read-only until Gitlab 17.5.
*/
@JvmName("lkqnhlllbriimuyx")
public suspend fun deployKeyId(`value`: Output) {
this.deployKeyId = value
}
/**
* @param value The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `user_id`.
*/
@JvmName("whjnqsufatirmjnd")
public suspend fun groupId(`value`: Output) {
this.groupId = value
}
/**
* @param value The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `group_id`.
*/
@JvmName("splqtvealxgeuspd")
public suspend fun userId(`value`: Output) {
this.userId = value
}
/**
* @param value Access levels allowed to push to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
*/
@JvmName("lnlgxapefvbxeofg")
public suspend fun accessLevel(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessLevel = mapped
}
/**
* @param value Readable description of access level.
*/
@JvmName("mjrqpqyatvqhstln")
public suspend fun accessLevelDescription(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessLevelDescription = mapped
}
/**
* @param value The ID of a GitLab deploy key allowed to perform the relevant action. Mutually exclusive with `group_id` and `user_id`. This field is read-only until Gitlab 17.5.
*/
@JvmName("emlnkrgcyoexwqxh")
public suspend fun deployKeyId(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deployKeyId = mapped
}
/**
* @param value The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `user_id`.
*/
@JvmName("nxfrokhmaojxylur")
public suspend fun groupId(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.groupId = mapped
}
/**
* @param value The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `deploy_key_id` and `group_id`.
*/
@JvmName("ceyjvfwudohhcgsk")
public suspend fun userId(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userId = mapped
}
internal fun build(): BranchProtectionAllowedToPushArgs = BranchProtectionAllowedToPushArgs(
accessLevel = accessLevel,
accessLevelDescription = accessLevelDescription,
deployKeyId = deployKeyId,
groupId = groupId,
userId = userId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy