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

com.pulumi.googlenative.bigquery.v2.kotlin.inputs.SparkOptionsArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.bigquery.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.bigquery.v2.inputs.SparkOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Options for a user-defined Spark routine.
 * @property archiveUris Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
 * @property connection Fully qualified name of the user-provided Spark connection object. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
 * @property containerImage Custom container image for the runtime environment.
 * @property fileUris Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
 * @property jarUris JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
 * @property mainClass The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type.
 * @property mainFileUri The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.
 * @property properties Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).
 * @property pyFileUris Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
 * @property runtimeVersion Runtime version. If not specified, the default runtime version is used.
 */
public data class SparkOptionsArgs(
    public val archiveUris: Output>? = null,
    public val connection: Output? = null,
    public val containerImage: Output? = null,
    public val fileUris: Output>? = null,
    public val jarUris: Output>? = null,
    public val mainClass: Output? = null,
    public val mainFileUri: Output? = null,
    public val properties: Output>? = null,
    public val pyFileUris: Output>? = null,
    public val runtimeVersion: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.bigquery.v2.inputs.SparkOptionsArgs =
        com.pulumi.googlenative.bigquery.v2.inputs.SparkOptionsArgs.builder()
            .archiveUris(archiveUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .connection(connection?.applyValue({ args0 -> args0 }))
            .containerImage(containerImage?.applyValue({ args0 -> args0 }))
            .fileUris(fileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .jarUris(jarUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .mainClass(mainClass?.applyValue({ args0 -> args0 }))
            .mainFileUri(mainFileUri?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .pyFileUris(pyFileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .runtimeVersion(runtimeVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SparkOptionsArgs].
 */
@PulumiTagMarker
public class SparkOptionsArgsBuilder internal constructor() {
    private var archiveUris: Output>? = null

    private var connection: Output? = null

    private var containerImage: Output? = null

    private var fileUris: Output>? = null

    private var jarUris: Output>? = null

    private var mainClass: Output? = null

    private var mainFileUri: Output? = null

    private var properties: Output>? = null

    private var pyFileUris: Output>? = null

    private var runtimeVersion: Output? = null

    /**
     * @param value Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("xfqfbucalkfcbdbn")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

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

    /**
     * @param values Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("riiscxdrdmqjtebc")
    public suspend fun archiveUris(values: List>) {
        this.archiveUris = Output.all(values)
    }

    /**
     * @param value Fully qualified name of the user-provided Spark connection object. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
     */
    @JvmName("frjwisvndxthghqb")
    public suspend fun connection(`value`: Output) {
        this.connection = value
    }

    /**
     * @param value Custom container image for the runtime environment.
     */
    @JvmName("uodloifoikifpuno")
    public suspend fun containerImage(`value`: Output) {
        this.containerImage = value
    }

    /**
     * @param value Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("himnopdwlklupyqm")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

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

    /**
     * @param values Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("tsmopiirlcmlrhbe")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("uvthxiytvqhvhtrn")
    public suspend fun jarUris(`value`: Output>) {
        this.jarUris = value
    }

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

    /**
     * @param values JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("coyaeddgrafskpnb")
    public suspend fun jarUris(values: List>) {
        this.jarUris = Output.all(values)
    }

    /**
     * @param value The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type.
     */
    @JvmName("wcwdarlqdnnfwqec")
    public suspend fun mainClass(`value`: Output) {
        this.mainClass = value
    }

    /**
     * @param value The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.
     */
    @JvmName("fbrnbovjqbysienj")
    public suspend fun mainFileUri(`value`: Output) {
        this.mainFileUri = value
    }

    /**
     * @param value Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).
     */
    @JvmName("cckcjitqvoeidnmr")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("njerapsypaccfrjn")
    public suspend fun pyFileUris(`value`: Output>) {
        this.pyFileUris = value
    }

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

    /**
     * @param values Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("rpuarwqqplqmkxtn")
    public suspend fun pyFileUris(values: List>) {
        this.pyFileUris = Output.all(values)
    }

    /**
     * @param value Runtime version. If not specified, the default runtime version is used.
     */
    @JvmName("mlhxelsrwycfyugv")
    public suspend fun runtimeVersion(`value`: Output) {
        this.runtimeVersion = value
    }

    /**
     * @param value Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("nbfgpitjemtqwgmw")
    public suspend fun archiveUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param values Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("gruasctbustvcxux")
    public suspend fun archiveUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param value Fully qualified name of the user-provided Spark connection object. Format: ```"projects/{project_id}/locations/{location_id}/connections/{connection_id}"```
     */
    @JvmName("nssfmvkkqhenphmg")
    public suspend fun connection(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connection = mapped
    }

    /**
     * @param value Custom container image for the runtime environment.
     */
    @JvmName("jevvikuqhtbuuihw")
    public suspend fun containerImage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerImage = mapped
    }

    /**
     * @param value Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("qlirujembacpktgj")
    public suspend fun fileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param values Files to be placed in the working directory of each executor. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("bcmjbmvvddomjsgi")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("utgjqjngesiodxir")
    public suspend fun jarUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jarUris = mapped
    }

    /**
     * @param values JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("bukrtcqhhchxlldw")
    public suspend fun jarUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jarUris = mapped
    }

    /**
     * @param value The fully qualified name of a class in jar_uris, for example, com.example.wordcount. Exactly one of main_class and main_jar_uri field should be set for Java/Scala language type.
     */
    @JvmName("hfcvrgbaaoptdfor")
    public suspend fun mainClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainClass = mapped
    }

    /**
     * @param value The main file/jar URI of the Spark application. Exactly one of the definition_body field and the main_file_uri field must be set for Python. Exactly one of main_class and main_file_uri field should be set for Java/Scala language type.
     */
    @JvmName("pwojnfnygnvcmklc")
    public suspend fun mainFileUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mainFileUri = mapped
    }

    /**
     * @param value Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).
     */
    @JvmName("mgqdvpoguossbgqm")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values Configuration properties as a set of key/value pairs, which will be passed on to the Spark application. For more information, see [Apache Spark](https://spark.apache.org/docs/latest/index.html) and the [procedure option list](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#procedure_option_list).
     */
    @JvmName("dbksmhuvbstvqipv")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("ipswamrbovichmwb")
    public suspend fun pyFileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pyFileUris = mapped
    }

    /**
     * @param values Python files to be placed on the PYTHONPATH for PySpark application. Supported file types: `.py`, `.egg`, and `.zip`. For more information about Apache Spark, see [Apache Spark](https://spark.apache.org/docs/latest/index.html).
     */
    @JvmName("yswfhuackrglpnnq")
    public suspend fun pyFileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pyFileUris = mapped
    }

    /**
     * @param value Runtime version. If not specified, the default runtime version is used.
     */
    @JvmName("ppqbbrdcongxjkkc")
    public suspend fun runtimeVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeVersion = mapped
    }

    internal fun build(): SparkOptionsArgs = SparkOptionsArgs(
        archiveUris = archiveUris,
        connection = connection,
        containerImage = containerImage,
        fileUris = fileUris,
        jarUris = jarUris,
        mainClass = mainClass,
        mainFileUri = mainFileUri,
        properties = properties,
        pyFileUris = pyFileUris,
        runtimeVersion = runtimeVersion,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy