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

com.pulumi.gcp.dataplex.kotlin.inputs.TaskNotebookArgs.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.dataplex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.TaskNotebookArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 notebook Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (TASK_key=value).
 */
public data class TaskNotebookArgs(
    public val archiveUris: Output>? = null,
    public val fileUris: Output>? = null,
    public val infrastructureSpec: Output? = null,
    public val notebook: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataplex.inputs.TaskNotebookArgs =
        com.pulumi.gcp.dataplex.inputs.TaskNotebookArgs.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()
                    })
                }),
            )
            .notebook(notebook.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TaskNotebookArgs].
 */
@PulumiTagMarker
public class TaskNotebookArgsBuilder internal constructor() {
    private var archiveUris: Output>? = null

    private var fileUris: Output>? = null

    private var infrastructureSpec: Output? = null

    private var notebook: 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("ydjmsdhfcqcyarxf")
    public suspend fun archiveUris(`value`: Output>) {
        this.archiveUris = value
    }

    @JvmName("giqichbfoaxhfgdd")
    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("gptmwbwhwmpbovbc")
    public suspend fun archiveUris(values: List>) {
        this.archiveUris = Output.all(values)
    }

    /**
     * @param value Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("ulcynyncvoyejgtc")
    public suspend fun fileUris(`value`: Output>) {
        this.fileUris = value
    }

    @JvmName("ebanoctrnydoesxn")
    public suspend fun fileUris(vararg values: Output) {
        this.fileUris = Output.all(values.asList())
    }

    /**
     * @param values Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("ctqytbyoxqpfkexw")
    public suspend fun fileUris(values: List>) {
        this.fileUris = Output.all(values)
    }

    /**
     * @param value Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("esvdoijeleiuwmvp")
    public suspend fun infrastructureSpec(`value`: Output) {
        this.infrastructureSpec = value
    }

    /**
     * @param value Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (TASK_key=value).
     */
    @JvmName("sikqdswndxyfkvtj")
    public suspend fun notebook(`value`: Output) {
        this.notebook = value
    }

    /**
     * @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("dbnbhbmwexmsuxvx")
    public suspend fun archiveUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @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("fnwsjerbwyvwaxvp")
    public suspend fun archiveUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.archiveUris = mapped
    }

    /**
     * @param value Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("lgnqecbhrjrejtas")
    public suspend fun fileUris(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param values Cloud Storage URIs of files to be placed in the working directory of each executor.
     */
    @JvmName("biitrjpfituiclbx")
    public suspend fun fileUris(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileUris = mapped
    }

    /**
     * @param value Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("aawmsitoudoslpdc")
    public suspend fun infrastructureSpec(`value`: TaskNotebookInfrastructureSpecArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.infrastructureSpec = mapped
    }

    /**
     * @param argument Infrastructure specification for the execution.
     * Structure is documented below.
     */
    @JvmName("pmcwcbyqhkufndct")
    public suspend fun infrastructureSpec(argument: suspend TaskNotebookInfrastructureSpecArgsBuilder.() -> Unit) {
        val toBeMapped = TaskNotebookInfrastructureSpecArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.infrastructureSpec = mapped
    }

    /**
     * @param value Path to input notebook. This can be the Cloud Storage URI of the notebook file or the path to a Notebook Content. The execution args are accessible as environment variables (TASK_key=value).
     */
    @JvmName("xyhygkoanqwmxpsu")
    public suspend fun notebook(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.notebook = mapped
    }

    internal fun build(): TaskNotebookArgs = TaskNotebookArgs(
        archiveUris = archiveUris,
        fileUris = fileUris,
        infrastructureSpec = infrastructureSpec,
        notebook = notebook ?: throw PulumiNullFieldException("notebook"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy