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

com.pulumi.gitlab.kotlin.outputs.ApplicationSettingsDefaultBranchProtectionDefaults.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
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. 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 ApplicationSettingsDefaultBranchProtectionDefaults(
    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.ApplicationSettingsDefaultBranchProtectionDefaults): ApplicationSettingsDefaultBranchProtectionDefaults =
            ApplicationSettingsDefaultBranchProtectionDefaults(
                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 - 2025 Weber Informatics LLC | Privacy Policy