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

com.pulumi.gcp.cloudfunctions.kotlin.inputs.FunctionSourceRepositoryArgs.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.cloudfunctions.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctions.inputs.FunctionSourceRepositoryArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property deployedUrl The URL pointing to the hosted repository where the function was defined at the time of deployment.
 * @property url The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
 * * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
 * * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias.
 * * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
 * */*/*/*/*/*/*/*/*/*/*/*/
 */
public data class FunctionSourceRepositoryArgs(
    public val deployedUrl: Output? = null,
    public val url: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudfunctions.inputs.FunctionSourceRepositoryArgs =
        com.pulumi.gcp.cloudfunctions.inputs.FunctionSourceRepositoryArgs.builder()
            .deployedUrl(deployedUrl?.applyValue({ args0 -> args0 }))
            .url(url.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FunctionSourceRepositoryArgs].
 */
@PulumiTagMarker
public class FunctionSourceRepositoryArgsBuilder internal constructor() {
    private var deployedUrl: Output? = null

    private var url: Output? = null

    /**
     * @param value The URL pointing to the hosted repository where the function was defined at the time of deployment.
     */
    @JvmName("wlwkltkubatnsten")
    public suspend fun deployedUrl(`value`: Output) {
        this.deployedUrl = value
    }

    /**
     * @param value The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
     * * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
     * * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias.
     * * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
     * */*/*/*/*/*/*/*/*/*/*/*/
     */
    @JvmName("fpmcbbwvmpuedvdi")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value The URL pointing to the hosted repository where the function was defined at the time of deployment.
     */
    @JvmName("ldjnuuwoadlpqbbw")
    public suspend fun deployedUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deployedUrl = mapped
    }

    /**
     * @param value The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
     * * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
     * * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias.
     * * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
     * */*/*/*/*/*/*/*/*/*/*/*/
     */
    @JvmName("cjqhinbauckkhjmd")
    public suspend fun url(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): FunctionSourceRepositoryArgs = FunctionSourceRepositoryArgs(
        deployedUrl = deployedUrl,
        url = url ?: throw PulumiNullFieldException("url"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy