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

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

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.gcp.container.inputs.GetEngineVersionsPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getEngineVersions.
 * @property location The location (region or zone) to list versions for.
 * Must exactly match the location the cluster will be deployed in, or listed
 * versions may not be available. If `location`, `region`, and `zone` are not
 * specified, the provider-level zone must be set and is used instead.
 * @property project ID of the project to list available cluster versions for. Should match the project the cluster will be deployed to.
 * Defaults to the project that the provider is authenticated with.
 * @property versionPrefix If provided, the provider will only return versions
 * that match the string prefix. For example, `1.11.` will match all `1.11` series
 * releases. Since this is just a string match, it's recommended that you append a
 * `.` after minor versions to ensure that prefixes such as `1.1` don't match
 * versions like `1.12.5-gke.10` accidentally. See [the docs on versioning schema](https://cloud.google.com/kubernetes-engine/versioning-and-upgrades#versioning_scheme)
 * for full details on how version strings are formatted.
 */
public data class GetEngineVersionsPlainArgs(
    public val location: String? = null,
    public val project: String? = null,
    public val versionPrefix: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.GetEngineVersionsPlainArgs =
        com.pulumi.gcp.container.inputs.GetEngineVersionsPlainArgs.builder()
            .location(location?.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .versionPrefix(versionPrefix?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetEngineVersionsPlainArgs].
 */
@PulumiTagMarker
public class GetEngineVersionsPlainArgsBuilder internal constructor() {
    private var location: String? = null

    private var project: String? = null

    private var versionPrefix: String? = null

    /**
     * @param value The location (region or zone) to list versions for.
     * Must exactly match the location the cluster will be deployed in, or listed
     * versions may not be available. If `location`, `region`, and `zone` are not
     * specified, the provider-level zone must be set and is used instead.
     */
    @JvmName("cqvvtmfbsmqmvvsm")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.location = mapped
    }

    /**
     * @param value ID of the project to list available cluster versions for. Should match the project the cluster will be deployed to.
     * Defaults to the project that the provider is authenticated with.
     */
    @JvmName("gucbclublgjhplvc")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value If provided, the provider will only return versions
     * that match the string prefix. For example, `1.11.` will match all `1.11` series
     * releases. Since this is just a string match, it's recommended that you append a
     * `.` after minor versions to ensure that prefixes such as `1.1` don't match
     * versions like `1.12.5-gke.10` accidentally. See [the docs on versioning schema](https://cloud.google.com/kubernetes-engine/versioning-and-upgrades#versioning_scheme)
     * for full details on how version strings are formatted.
     */
    @JvmName("bmfxxlqplqbscdhc")
    public suspend fun versionPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.versionPrefix = mapped
    }

    internal fun build(): GetEngineVersionsPlainArgs = GetEngineVersionsPlainArgs(
        location = location,
        project = project,
        versionPrefix = versionPrefix,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy