com.pulumi.gitlab.kotlin.inputs.GroupPushRulesArgs.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.GroupPushRulesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property authorEmailRegex All commit author emails must match this regex, e.g. `@my-company.com$`.
* @property branchNameRegex All branch names must match this regex, e.g. `(feature|hotfix)\/*`.
* @property commitCommitterCheck Only commits pushed using verified emails are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
* @property commitCommitterNameCheck Users can only push commits to this repository if the commit author name is consistent with their GitLab account name.
* @property commitMessageNegativeRegex No commit message is allowed to match this regex, for example `ssh\:\/\/`.
* @property commitMessageRegex All commit messages must match this regex, e.g. `Fixed \d+\..*`.
* @property denyDeleteTag Deny deleting a tag.
* @property fileNameRegex Filenames matching the regular expression provided in this attribute are not allowed, for example, `(jar|exe)$`.
* @property maxFileSize Maximum file size (MB) allowed.
* @property memberCheck Allows only GitLab users to author commits.
* @property preventSecrets GitLab will reject any files that are likely to contain secrets.
* @property rejectUnsignedCommits Only commits signed through GPG are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
* */
*/
public data class GroupPushRulesArgs(
public val authorEmailRegex: Output? = null,
public val branchNameRegex: Output? = null,
public val commitCommitterCheck: Output? = null,
public val commitCommitterNameCheck: Output? = null,
public val commitMessageNegativeRegex: Output? = null,
public val commitMessageRegex: Output? = null,
public val denyDeleteTag: Output? = null,
public val fileNameRegex: Output? = null,
public val maxFileSize: Output? = null,
public val memberCheck: Output? = null,
public val preventSecrets: Output? = null,
public val rejectUnsignedCommits: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gitlab.inputs.GroupPushRulesArgs =
com.pulumi.gitlab.inputs.GroupPushRulesArgs.builder()
.authorEmailRegex(authorEmailRegex?.applyValue({ args0 -> args0 }))
.branchNameRegex(branchNameRegex?.applyValue({ args0 -> args0 }))
.commitCommitterCheck(commitCommitterCheck?.applyValue({ args0 -> args0 }))
.commitCommitterNameCheck(commitCommitterNameCheck?.applyValue({ args0 -> args0 }))
.commitMessageNegativeRegex(commitMessageNegativeRegex?.applyValue({ args0 -> args0 }))
.commitMessageRegex(commitMessageRegex?.applyValue({ args0 -> args0 }))
.denyDeleteTag(denyDeleteTag?.applyValue({ args0 -> args0 }))
.fileNameRegex(fileNameRegex?.applyValue({ args0 -> args0 }))
.maxFileSize(maxFileSize?.applyValue({ args0 -> args0 }))
.memberCheck(memberCheck?.applyValue({ args0 -> args0 }))
.preventSecrets(preventSecrets?.applyValue({ args0 -> args0 }))
.rejectUnsignedCommits(rejectUnsignedCommits?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GroupPushRulesArgs].
*/
@PulumiTagMarker
public class GroupPushRulesArgsBuilder internal constructor() {
private var authorEmailRegex: Output? = null
private var branchNameRegex: Output? = null
private var commitCommitterCheck: Output? = null
private var commitCommitterNameCheck: Output? = null
private var commitMessageNegativeRegex: Output? = null
private var commitMessageRegex: Output? = null
private var denyDeleteTag: Output? = null
private var fileNameRegex: Output? = null
private var maxFileSize: Output? = null
private var memberCheck: Output? = null
private var preventSecrets: Output? = null
private var rejectUnsignedCommits: Output? = null
/**
* @param value All commit author emails must match this regex, e.g. `@my-company.com$`.
*/
@JvmName("fctdkjutypwovnlc")
public suspend fun authorEmailRegex(`value`: Output) {
this.authorEmailRegex = value
}
/**
* @param value All branch names must match this regex, e.g. `(feature|hotfix)\/*`.
* */
*/
@JvmName("ykyukpatpxyqpvla")
public suspend fun branchNameRegex(`value`: Output) {
this.branchNameRegex = value
}
/**
* @param value Only commits pushed using verified emails are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
*/
@JvmName("bvpplrqnrtucqhpx")
public suspend fun commitCommitterCheck(`value`: Output) {
this.commitCommitterCheck = value
}
/**
* @param value Users can only push commits to this repository if the commit author name is consistent with their GitLab account name.
*/
@JvmName("usmrgnkjrchuyrko")
public suspend fun commitCommitterNameCheck(`value`: Output) {
this.commitCommitterNameCheck = value
}
/**
* @param value No commit message is allowed to match this regex, for example `ssh\:\/\/`.
*/
@JvmName("kkmuheacseejhwkv")
public suspend fun commitMessageNegativeRegex(`value`: Output) {
this.commitMessageNegativeRegex = value
}
/**
* @param value All commit messages must match this regex, e.g. `Fixed \d+\..*`.
*/
@JvmName("ismavejeoajawxwp")
public suspend fun commitMessageRegex(`value`: Output) {
this.commitMessageRegex = value
}
/**
* @param value Deny deleting a tag.
*/
@JvmName("ilenbvimmkcltabo")
public suspend fun denyDeleteTag(`value`: Output) {
this.denyDeleteTag = value
}
/**
* @param value Filenames matching the regular expression provided in this attribute are not allowed, for example, `(jar|exe)$`.
*/
@JvmName("bxddygaybnffhqio")
public suspend fun fileNameRegex(`value`: Output) {
this.fileNameRegex = value
}
/**
* @param value Maximum file size (MB) allowed.
*/
@JvmName("npibmdlhtrftryax")
public suspend fun maxFileSize(`value`: Output) {
this.maxFileSize = value
}
/**
* @param value Allows only GitLab users to author commits.
*/
@JvmName("sdnxudyacytrjfcu")
public suspend fun memberCheck(`value`: Output) {
this.memberCheck = value
}
/**
* @param value GitLab will reject any files that are likely to contain secrets.
*/
@JvmName("mubcvkwnpmrvpuey")
public suspend fun preventSecrets(`value`: Output) {
this.preventSecrets = value
}
/**
* @param value Only commits signed through GPG are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
*/
@JvmName("kcalodykonlyyjcs")
public suspend fun rejectUnsignedCommits(`value`: Output) {
this.rejectUnsignedCommits = value
}
/**
* @param value All commit author emails must match this regex, e.g. `@my-company.com$`.
*/
@JvmName("dwevcmphdpetopyu")
public suspend fun authorEmailRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authorEmailRegex = mapped
}
/**
* @param value All branch names must match this regex, e.g. `(feature|hotfix)\/*`.
* */
*/
@JvmName("qclwctjdwexjlfed")
public suspend fun branchNameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branchNameRegex = mapped
}
/**
* @param value Only commits pushed using verified emails are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
*/
@JvmName("xvbhfdeyopgwyayh")
public suspend fun commitCommitterCheck(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitCommitterCheck = mapped
}
/**
* @param value Users can only push commits to this repository if the commit author name is consistent with their GitLab account name.
*/
@JvmName("avaiovlkovjkoyps")
public suspend fun commitCommitterNameCheck(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitCommitterNameCheck = mapped
}
/**
* @param value No commit message is allowed to match this regex, for example `ssh\:\/\/`.
*/
@JvmName("rcqmxhtngrandgle")
public suspend fun commitMessageNegativeRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitMessageNegativeRegex = mapped
}
/**
* @param value All commit messages must match this regex, e.g. `Fixed \d+\..*`.
*/
@JvmName("cdsmtwjeaxsyjyak")
public suspend fun commitMessageRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitMessageRegex = mapped
}
/**
* @param value Deny deleting a tag.
*/
@JvmName("ojknydjdhvkpspod")
public suspend fun denyDeleteTag(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.denyDeleteTag = mapped
}
/**
* @param value Filenames matching the regular expression provided in this attribute are not allowed, for example, `(jar|exe)$`.
*/
@JvmName("pumgqlofekqinaug")
public suspend fun fileNameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileNameRegex = mapped
}
/**
* @param value Maximum file size (MB) allowed.
*/
@JvmName("kkxkfgsaaexnsjpd")
public suspend fun maxFileSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxFileSize = mapped
}
/**
* @param value Allows only GitLab users to author commits.
*/
@JvmName("bvwkyubusnihdrnt")
public suspend fun memberCheck(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memberCheck = mapped
}
/**
* @param value GitLab will reject any files that are likely to contain secrets.
*/
@JvmName("cxxomevmlkwvlhkp")
public suspend fun preventSecrets(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preventSecrets = mapped
}
/**
* @param value Only commits signed through GPG are allowed. **Note** This attribute is only supported in GitLab versions >= 16.4.
*/
@JvmName("tsxbbryqprialish")
public suspend fun rejectUnsignedCommits(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rejectUnsignedCommits = mapped
}
internal fun build(): GroupPushRulesArgs = GroupPushRulesArgs(
authorEmailRegex = authorEmailRegex,
branchNameRegex = branchNameRegex,
commitCommitterCheck = commitCommitterCheck,
commitCommitterNameCheck = commitCommitterNameCheck,
commitMessageNegativeRegex = commitMessageNegativeRegex,
commitMessageRegex = commitMessageRegex,
denyDeleteTag = denyDeleteTag,
fileNameRegex = fileNameRegex,
maxFileSize = maxFileSize,
memberCheck = memberCheck,
preventSecrets = preventSecrets,
rejectUnsignedCommits = rejectUnsignedCommits,
)
}