com.pulumi.gitlab.kotlin.outputs.BranchProtectionAllowedToMerge.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property accessLevel Access levels allowed to merge to protected branch. Valid values are: `no one`, `developer`, `maintainer`.
* @property accessLevelDescription Readable description of access level.
* @property groupId The ID of a GitLab group allowed to perform the relevant action. Mutually exclusive with `user_id`.
* @property userId The ID of a GitLab user allowed to perform the relevant action. Mutually exclusive with `group_id`.
*/
public data class BranchProtectionAllowedToMerge(
public val accessLevel: String? = null,
public val accessLevelDescription: String? = null,
public val groupId: Int? = null,
public val userId: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gitlab.outputs.BranchProtectionAllowedToMerge): BranchProtectionAllowedToMerge = BranchProtectionAllowedToMerge(
accessLevel = javaType.accessLevel().map({ args0 -> args0 }).orElse(null),
accessLevelDescription = javaType.accessLevelDescription().map({ args0 -> args0 }).orElse(null),
groupId = javaType.groupId().map({ args0 -> args0 }).orElse(null),
userId = javaType.userId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy