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

com.pulumi.gcp.bigquery.kotlin.outputs.RoutineSparkOptions.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.bigquery.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @property archiveUris Archive files to be extracted into the working directory of each executor. For more information about Apache Spark, see Apache Spark.
 * @property connection Fully qualified name of the user-provided Spark connection object.
 * Format: "projects/{projectId}/locations/{locationId}/connections/{connectionId}"
 * @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.
 * @property jarUris JARs to include on the driver and executor CLASSPATH. For more information about Apache Spark, see Apache Spark.
 * @property mainClass The fully qualified name of a class in jarUris, for example, com.example.wordcount.
 * Exactly one of mainClass 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 definitionBody field and the mainFileUri field must be set for Python.
 * Exactly one of mainClass and mainFileUri 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 and the procedure option list.
 * An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
 * @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.
 * @property runtimeVersion Runtime version. If not specified, the default runtime version is used.
 */
public data class RoutineSparkOptions(
    public val archiveUris: List? = null,
    public val connection: String? = null,
    public val containerImage: String? = null,
    public val fileUris: List? = null,
    public val jarUris: List? = null,
    public val mainClass: String? = null,
    public val mainFileUri: String? = null,
    public val properties: Map? = null,
    public val pyFileUris: List? = null,
    public val runtimeVersion: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.RoutineSparkOptions): RoutineSparkOptions = RoutineSparkOptions(
            archiveUris = javaType.archiveUris().map({ args0 -> args0 }),
            connection = javaType.connection().map({ args0 -> args0 }).orElse(null),
            containerImage = javaType.containerImage().map({ args0 -> args0 }).orElse(null),
            fileUris = javaType.fileUris().map({ args0 -> args0 }),
            jarUris = javaType.jarUris().map({ args0 -> args0 }),
            mainClass = javaType.mainClass().map({ args0 -> args0 }).orElse(null),
            mainFileUri = javaType.mainFileUri().map({ args0 -> args0 }).orElse(null),
            properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            pyFileUris = javaType.pyFileUris().map({ args0 -> args0 }),
            runtimeVersion = javaType.runtimeVersion().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy