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

com.pulumi.gcp.dataproc.kotlin.outputs.JobPigConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.outputs

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

/**
 *
 * @property continueOnFailure Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries. Defaults to false.
 * @property jarFileUris HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
 * * `logging_config.driver_log_levels`- (Required) The per-package log levels for the driver. This may include 'root' package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
 * @property loggingConfig The runtime logging config of the job
 * @property properties A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`, `/etc/pig/conf/pig.properties`, and classes in user code.
 * @property queryFileUri HCFS URI of file containing Hive script to execute as the job.
 * Conflicts with `query_list`
 * @property queryLists The list of Hive queries or statements to execute as part of the job.
 * Conflicts with `query_file_uri`
 * @property scriptVariables Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
 * */
 */
public data class JobPigConfig(
    public val continueOnFailure: Boolean? = null,
    public val jarFileUris: List? = null,
    public val loggingConfig: JobPigConfigLoggingConfig? = null,
    public val properties: Map? = null,
    public val queryFileUri: String? = null,
    public val queryLists: List? = null,
    public val scriptVariables: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.JobPigConfig): JobPigConfig =
            JobPigConfig(
                continueOnFailure = javaType.continueOnFailure().map({ args0 -> args0 }).orElse(null),
                jarFileUris = javaType.jarFileUris().map({ args0 -> args0 }),
                loggingConfig = javaType.loggingConfig().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataproc.kotlin.outputs.JobPigConfigLoggingConfig.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                properties = javaType.properties().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                queryFileUri = javaType.queryFileUri().map({ args0 -> args0 }).orElse(null),
                queryLists = javaType.queryLists().map({ args0 -> args0 }),
                scriptVariables = javaType.scriptVariables().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy