com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameter.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.dataflow.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property containerSpecGcsPath Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
* @property environment The runtime environment for the Flex Template job.
* https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#FlexTemplateRuntimeEnvironment
* Structure is documented below.
* @property jobName The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
* @property launchOptions Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
* 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
* @property parameters 'The parameters for the Flex Template. Example: {"numWorkers":"5"}'
* 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
* @property transformNameMappings 'Use this to pass transform name mappings for streaming update jobs. Example: {"oldTransformName":"newTransformName",...}'
* 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
* @property update Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
*/
public data class PipelineWorkloadDataflowFlexTemplateRequestLaunchParameter(
public val containerSpecGcsPath: String? = null,
public val environment: PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterEnvironment? =
null,
public val jobName: String,
public val launchOptions: Map? = null,
public val parameters: Map? = null,
public val transformNameMappings: Map? = null,
public val update: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataflow.outputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameter): PipelineWorkloadDataflowFlexTemplateRequestLaunchParameter =
PipelineWorkloadDataflowFlexTemplateRequestLaunchParameter(
containerSpecGcsPath = javaType.containerSpecGcsPath().map({ args0 -> args0 }).orElse(null),
environment = javaType.environment().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterEnvironment.Companion.toKotlin(args0)
})
}).orElse(null),
jobName = javaType.jobName(),
launchOptions = javaType.launchOptions().map({ args0 -> args0.key.to(args0.value) }).toMap(),
parameters = javaType.parameters().map({ args0 -> args0.key.to(args0.value) }).toMap(),
transformNameMappings = javaType.transformNameMappings().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
update = javaType.update().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy