All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gitlab.kotlin.outputs.GroupDefaultBranchProtectionDefaults.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 GroupDefaultBranchProtectionDefaults(
    public val allowForcePush: Boolean? = null,
    public val allowedToMerges: List? = null,
    public val allowedToPushes: List? = null,
    public val developerCanInitialPush: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gitlab.outputs.GroupDefaultBranchProtectionDefaults): GroupDefaultBranchProtectionDefaults = GroupDefaultBranchProtectionDefaults(
            allowForcePush = javaType.allowForcePush().map({ args0 -> args0 }).orElse(null),
            allowedToMerges = javaType.allowedToMerges().map({ args0 -> args0 }),
            allowedToPushes = javaType.allowedToPushes().map({ args0 -> args0 }),
            developerCanInitialPush = javaType.developerCanInitialPush().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy