Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.dataplex.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.TaskSparkArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property archiveUris Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
* @property fileUris Cloud Storage URIs of files to be placed in the working directory of each executor.
* @property infrastructureSpec Infrastructure specification for the execution.
* Structure is documented below.
* @property mainClass The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. The execution args are passed in as a sequence of named process arguments (--key=value).
* @property mainJarFileUri The Cloud Storage URI of the jar file that contains the main class. The execution args are passed in as a sequence of named process arguments (--key=value).
* @property pythonScriptFile The Gcloud Storage URI of the main Python file to use as the driver. Must be a .py file. The execution args are passed in as a sequence of named process arguments (--key=value).
* @property sqlScript The query text. The execution args are used to declare a set of script variables (set key='value';).
* @property sqlScriptFile A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key='value';).
*/
public data class TaskSparkArgs(
public val archiveUris: Output>? = null,
public val fileUris: Output>? = null,
public val infrastructureSpec: Output? = null,
public val mainClass: Output? = null,
public val mainJarFileUri: Output? = null,
public val pythonScriptFile: Output? = null,
public val sqlScript: Output? = null,
public val sqlScriptFile: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataplex.inputs.TaskSparkArgs =
com.pulumi.gcp.dataplex.inputs.TaskSparkArgs.builder()
.archiveUris(archiveUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.fileUris(fileUris?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.infrastructureSpec(
infrastructureSpec?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.mainClass(mainClass?.applyValue({ args0 -> args0 }))
.mainJarFileUri(mainJarFileUri?.applyValue({ args0 -> args0 }))
.pythonScriptFile(pythonScriptFile?.applyValue({ args0 -> args0 }))
.sqlScript(sqlScript?.applyValue({ args0 -> args0 }))
.sqlScriptFile(sqlScriptFile?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TaskSparkArgs].
*/
@PulumiTagMarker
public class TaskSparkArgsBuilder internal constructor() {
private var archiveUris: Output>? = null
private var fileUris: Output>? = null
private var infrastructureSpec: Output? = null
private var mainClass: Output? = null
private var mainJarFileUri: Output? = null
private var pythonScriptFile: Output? = null
private var sqlScript: Output? = null
private var sqlScriptFile: Output? = null
/**
* @param value Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*/
@JvmName("rnuiklrtxisnduow")
public suspend fun archiveUris(`value`: Output>) {
this.archiveUris = value
}
@JvmName("vlacybphdxtudlud")
public suspend fun archiveUris(vararg values: Output) {
this.archiveUris = Output.all(values.asList())
}
/**
* @param values Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
*/
@JvmName("qwbdvsqduvxcbslu")
public suspend fun archiveUris(values: List