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

com.pulumi.gcp.securesourcemanager.kotlin.inputs.RepositoryInitialConfigArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.securesourcemanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.securesourcemanager.inputs.RepositoryInitialConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property defaultBranch Default branch name of the repository.
 * @property gitignores List of gitignore template names user can choose from.
 * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
 * @property license License template name user can choose from.
 * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
 * @property readme README template name.
 * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
 */
public data class RepositoryInitialConfigArgs(
    public val defaultBranch: Output? = null,
    public val gitignores: Output>? = null,
    public val license: Output? = null,
    public val readme: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.securesourcemanager.inputs.RepositoryInitialConfigArgs =
        com.pulumi.gcp.securesourcemanager.inputs.RepositoryInitialConfigArgs.builder()
            .defaultBranch(defaultBranch?.applyValue({ args0 -> args0 }))
            .gitignores(gitignores?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .license(license?.applyValue({ args0 -> args0 }))
            .readme(readme?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RepositoryInitialConfigArgs].
 */
@PulumiTagMarker
public class RepositoryInitialConfigArgsBuilder internal constructor() {
    private var defaultBranch: Output? = null

    private var gitignores: Output>? = null

    private var license: Output? = null

    private var readme: Output? = null

    /**
     * @param value Default branch name of the repository.
     */
    @JvmName("scskohgryijorudh")
    public suspend fun defaultBranch(`value`: Output) {
        this.defaultBranch = value
    }

    /**
     * @param value List of gitignore template names user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("wocyqkuabihdifnj")
    public suspend fun gitignores(`value`: Output>) {
        this.gitignores = value
    }

    @JvmName("iuycmrerliosogfl")
    public suspend fun gitignores(vararg values: Output) {
        this.gitignores = Output.all(values.asList())
    }

    /**
     * @param values List of gitignore template names user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("shnayitxobttdqma")
    public suspend fun gitignores(values: List>) {
        this.gitignores = Output.all(values)
    }

    /**
     * @param value License template name user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("ekhtdohchfcixpof")
    public suspend fun license(`value`: Output) {
        this.license = value
    }

    /**
     * @param value README template name.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("folcpssoqlaipqlj")
    public suspend fun readme(`value`: Output) {
        this.readme = value
    }

    /**
     * @param value Default branch name of the repository.
     */
    @JvmName("wbxgyhsylqoocxhc")
    public suspend fun defaultBranch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultBranch = mapped
    }

    /**
     * @param value List of gitignore template names user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("tfgdmaaqsjggbdsg")
    public suspend fun gitignores(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gitignores = mapped
    }

    /**
     * @param values List of gitignore template names user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("huiivoohxqxrabqr")
    public suspend fun gitignores(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gitignores = mapped
    }

    /**
     * @param value License template name user can choose from.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("svidnndogsnqwuml")
    public suspend fun license(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.license = mapped
    }

    /**
     * @param value README template name.
     * Valid values can be viewed at https://cloud.google.com/secure-source-manager/docs/reference/rest/v1/projects.locations.repositories#initialconfig.
     */
    @JvmName("insyjotbklnckeon")
    public suspend fun readme(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readme = mapped
    }

    internal fun build(): RepositoryInitialConfigArgs = RepositoryInitialConfigArgs(
        defaultBranch = defaultBranch,
        gitignores = gitignores,
        license = license,
        readme = readme,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy