com.pulumi.gcp.dataplex.kotlin.outputs.TaskSpark.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 TaskSpark(
public val archiveUris: List? = null,
public val fileUris: List? = null,
public val infrastructureSpec: TaskSparkInfrastructureSpec? = null,
public val mainClass: String? = null,
public val mainJarFileUri: String? = null,
public val pythonScriptFile: String? = null,
public val sqlScript: String? = null,
public val sqlScriptFile: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataplex.outputs.TaskSpark): TaskSpark = TaskSpark(
archiveUris = javaType.archiveUris().map({ args0 -> args0 }),
fileUris = javaType.fileUris().map({ args0 -> args0 }),
infrastructureSpec = javaType.infrastructureSpec().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataplex.kotlin.outputs.TaskSparkInfrastructureSpec.Companion.toKotlin(args0)
})
}).orElse(null),
mainClass = javaType.mainClass().map({ args0 -> args0 }).orElse(null),
mainJarFileUri = javaType.mainJarFileUri().map({ args0 -> args0 }).orElse(null),
pythonScriptFile = javaType.pythonScriptFile().map({ args0 -> args0 }).orElse(null),
sqlScript = javaType.sqlScript().map({ args0 -> args0 }).orElse(null),
sqlScriptFile = javaType.sqlScriptFile().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy