com.pulumi.gitlab.kotlin.inputs.ProjectPushRulesArgs.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.ProjectPushRulesArgs.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 Users can only push commits to this repository that were committed with one of their own verified emails.
* @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, e.g. `ssh\:\/\/`.
* @property commitMessageRegex All commit messages must match this regex, e.g. `Fixed \d+\..*`.
* @property denyDeleteTag Deny deleting a tag.
* @property fileNameRegex All committed filenames must not match this regex, e.g. `(jar|exe)$`.
* @property maxFileSize Maximum file size (MB).
* @property memberCheck Restrict commits by author (email) to existing GitLab users.
* @property preventSecrets GitLab will reject any files that are likely to contain secrets.
* @property rejectUnsignedCommits Reject commit when it’s not signed through GPG.
* */
*/
public data class ProjectPushRulesArgs(
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.ProjectPushRulesArgs =
com.pulumi.gitlab.inputs.ProjectPushRulesArgs.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 [ProjectPushRulesArgs].
*/
@PulumiTagMarker
public class ProjectPushRulesArgsBuilder 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("qujeeejrfeowqqha")
public suspend fun authorEmailRegex(`value`: Output) {
this.authorEmailRegex = value
}
/**
* @param value All branch names must match this regex, e.g. `(feature|hotfix)\/*`.
* */
*/
@JvmName("mfhxdburitciafxb")
public suspend fun branchNameRegex(`value`: Output) {
this.branchNameRegex = value
}
/**
* @param value Users can only push commits to this repository that were committed with one of their own verified emails.
*/
@JvmName("ysnmtxrnsmquvjjj")
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("bfdrjyowrttaivwq")
public suspend fun commitCommitterNameCheck(`value`: Output) {
this.commitCommitterNameCheck = value
}
/**
* @param value No commit message is allowed to match this regex, e.g. `ssh\:\/\/`.
*/
@JvmName("cxkldcmylnmaqmum")
public suspend fun commitMessageNegativeRegex(`value`: Output) {
this.commitMessageNegativeRegex = value
}
/**
* @param value All commit messages must match this regex, e.g. `Fixed \d+\..*`.
*/
@JvmName("ggkqvpyxbtmxamja")
public suspend fun commitMessageRegex(`value`: Output) {
this.commitMessageRegex = value
}
/**
* @param value Deny deleting a tag.
*/
@JvmName("rqsrhhnsgkfrkmmw")
public suspend fun denyDeleteTag(`value`: Output) {
this.denyDeleteTag = value
}
/**
* @param value All committed filenames must not match this regex, e.g. `(jar|exe)$`.
*/
@JvmName("rflqvxnqtfwjlogp")
public suspend fun fileNameRegex(`value`: Output) {
this.fileNameRegex = value
}
/**
* @param value Maximum file size (MB).
*/
@JvmName("opvhbnfkcehbpyje")
public suspend fun maxFileSize(`value`: Output) {
this.maxFileSize = value
}
/**
* @param value Restrict commits by author (email) to existing GitLab users.
*/
@JvmName("snvjbkitodmjlegb")
public suspend fun memberCheck(`value`: Output) {
this.memberCheck = value
}
/**
* @param value GitLab will reject any files that are likely to contain secrets.
*/
@JvmName("wewsvtvetpnfenvd")
public suspend fun preventSecrets(`value`: Output) {
this.preventSecrets = value
}
/**
* @param value Reject commit when it’s not signed through GPG.
*/
@JvmName("ydvjrcgvhdqlcjvu")
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("qhfavfsawxexaxer")
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("nocdictidhlqdmbi")
public suspend fun branchNameRegex(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branchNameRegex = mapped
}
/**
* @param value Users can only push commits to this repository that were committed with one of their own verified emails.
*/
@JvmName("selbkpnncojbcyaw")
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("kemoyytgjewxatop")
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, e.g. `ssh\:\/\/`.
*/
@JvmName("ogvlqpgqdmwurink")
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("yagxrdjakujopnid")
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("xupxseuhdqhngvho")
public suspend fun denyDeleteTag(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.denyDeleteTag = mapped
}
/**
* @param value All committed filenames must not match this regex, e.g. `(jar|exe)$`.
*/
@JvmName("gshoslvotxhtuwsd")
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).
*/
@JvmName("eqvvklqhhjbhlggs")
public suspend fun maxFileSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxFileSize = mapped
}
/**
* @param value Restrict commits by author (email) to existing GitLab users.
*/
@JvmName("gmfmuujcysmhjjji")
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("ljupynbtghwgdijg")
public suspend fun preventSecrets(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preventSecrets = mapped
}
/**
* @param value Reject commit when it’s not signed through GPG.
*/
@JvmName("icfvudbvvqbxxqcg")
public suspend fun rejectUnsignedCommits(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rejectUnsignedCommits = mapped
}
internal fun build(): ProjectPushRulesArgs = ProjectPushRulesArgs(
authorEmailRegex = authorEmailRegex,
branchNameRegex = branchNameRegex,
commitCommitterCheck = commitCommitterCheck,
commitCommitterNameCheck = commitCommitterNameCheck,
commitMessageNegativeRegex = commitMessageNegativeRegex,
commitMessageRegex = commitMessageRegex,
denyDeleteTag = denyDeleteTag,
fileNameRegex = fileNameRegex,
maxFileSize = maxFileSize,
memberCheck = memberCheck,
preventSecrets = preventSecrets,
rejectUnsignedCommits = rejectUnsignedCommits,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy