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

com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowLaunchTemplateRequest.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.dataflow.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property gcsPath A Cloud Storage path to the template from which to create the job. Must be a valid Cloud Storage URL, beginning with 'gs://'.
 * @property launchParameters The parameters of the template to launch. This should be part of the body of the POST request.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#launchtemplateparameters
 * Structure is documented below.
 * @property location The regional endpoint to which to direct the request.
 * @property projectId The ID of the Cloud Platform project that the job belongs to.
 * @property validateOnly (Optional)
 */
public data class PipelineWorkloadDataflowLaunchTemplateRequest(
    public val gcsPath: String? = null,
    public val launchParameters: PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters? =
        null,
    public val location: String? = null,
    public val projectId: String,
    public val validateOnly: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataflow.outputs.PipelineWorkloadDataflowLaunchTemplateRequest): PipelineWorkloadDataflowLaunchTemplateRequest =
            PipelineWorkloadDataflowLaunchTemplateRequest(
                gcsPath = javaType.gcsPath().map({ args0 -> args0 }).orElse(null),
                launchParameters = javaType.launchParameters().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                location = javaType.location().map({ args0 -> args0 }).orElse(null),
                projectId = javaType.projectId(),
                validateOnly = javaType.validateOnly().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy