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

com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobSparkSqlJob.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.dataproc.kotlin.outputs

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

/**
 *
 * @property jarFileUris HCFS URIs of jar files to be added to the Spark CLASSPATH.
 * @property loggingConfig The runtime log config for job execution.
 * @property properties A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
 * @property queryFileUri The HCFS URI of the script that contains SQL queries.
 * @property queryList A list of queries.
 * @property scriptVariables Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
 */
public data class WorkflowTemplateJobSparkSqlJob(
    public val jarFileUris: List? = null,
    public val loggingConfig: WorkflowTemplateJobSparkSqlJobLoggingConfig? = null,
    public val properties: Map? = null,
    public val queryFileUri: String? = null,
    public val queryList: WorkflowTemplateJobSparkSqlJobQueryList? = null,
    public val scriptVariables: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.WorkflowTemplateJobSparkSqlJob): WorkflowTemplateJobSparkSqlJob = WorkflowTemplateJobSparkSqlJob(
            jarFileUris = javaType.jarFileUris().map({ args0 -> args0 }),
            loggingConfig = javaType.loggingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobSparkSqlJobLoggingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            queryFileUri = javaType.queryFileUri().map({ args0 -> args0 }).orElse(null),
            queryList = javaType.queryList().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.dataproc.kotlin.outputs.WorkflowTemplateJobSparkSqlJobQueryList.Companion.toKotlin(args0)
                })
            }).orElse(null),
            scriptVariables = javaType.scriptVariables().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy