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

com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs.FunctionBuildConfigSourceRepoSource.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudfunctionsv2.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property branchName Regex matching branches to build.
 * @property commitSha Regex matching tags to build.
 * @property dir Directory, relative to the source root, in which to run the build.
 * @property invertRegex Only trigger a build if the revision regex does
 * NOT match the revision regex.
 * @property projectId ID of the project that owns the Cloud Source Repository. If omitted, the
 * project ID requesting the build is assumed.
 * @property repoName Name of the Cloud Source Repository.
 * @property tagName Regex matching tags to build.
 */
public data class FunctionBuildConfigSourceRepoSource(
    public val branchName: String? = null,
    public val commitSha: String? = null,
    public val dir: String? = null,
    public val invertRegex: Boolean? = null,
    public val projectId: String? = null,
    public val repoName: String? = null,
    public val tagName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudfunctionsv2.outputs.FunctionBuildConfigSourceRepoSource): FunctionBuildConfigSourceRepoSource = FunctionBuildConfigSourceRepoSource(
            branchName = javaType.branchName().map({ args0 -> args0 }).orElse(null),
            commitSha = javaType.commitSha().map({ args0 -> args0 }).orElse(null),
            dir = javaType.dir().map({ args0 -> args0 }).orElse(null),
            invertRegex = javaType.invertRegex().map({ args0 -> args0 }).orElse(null),
            projectId = javaType.projectId().map({ args0 -> args0 }).orElse(null),
            repoName = javaType.repoName().map({ args0 -> args0 }).orElse(null),
            tagName = javaType.tagName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy