com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GetTaskResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.dataplex.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property createTime The time when the task was created.
* @property description Optional. Description of the task.
* @property displayName Optional. User friendly display name.
* @property executionSpec Spec related to how a task is executed.
* @property executionStatus Status of the latest task executions.
* @property labels Optional. User-defined labels for the task.
* @property name The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}.
* @property notebook Config related to running scheduled Notebooks.
* @property spark Config related to running custom Spark tasks.
* @property state Current state of the task.
* @property triggerSpec Spec related to how often and when a task should be triggered.
* @property uid System generated globally unique ID for the task. This ID will be different if the task is deleted and re-created with the same name.
* @property updateTime The time when the task was last updated.
*/
public data class GetTaskResult(
public val createTime: String,
public val description: String,
public val displayName: String,
public val executionSpec: GoogleCloudDataplexV1TaskExecutionSpecResponse,
public val executionStatus: GoogleCloudDataplexV1TaskExecutionStatusResponse,
public val labels: Map,
public val name: String,
public val notebook: GoogleCloudDataplexV1TaskNotebookTaskConfigResponse,
public val spark: GoogleCloudDataplexV1TaskSparkTaskConfigResponse,
public val state: String,
public val triggerSpec: GoogleCloudDataplexV1TaskTriggerSpecResponse,
public val uid: String,
public val updateTime: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.dataplex.v1.outputs.GetTaskResult): GetTaskResult = GetTaskResult(
createTime = javaType.createTime(),
description = javaType.description(),
displayName = javaType.displayName(),
executionSpec = javaType.executionSpec().let({ args0 ->
com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1TaskExecutionSpecResponse.Companion.toKotlin(args0)
}),
executionStatus = javaType.executionStatus().let({ args0 ->
com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1TaskExecutionStatusResponse.Companion.toKotlin(args0)
}),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
name = javaType.name(),
notebook = javaType.notebook().let({ args0 ->
com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1TaskNotebookTaskConfigResponse.Companion.toKotlin(args0)
}),
spark = javaType.spark().let({ args0 ->
com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1TaskSparkTaskConfigResponse.Companion.toKotlin(args0)
}),
state = javaType.state(),
triggerSpec = javaType.triggerSpec().let({ args0 ->
com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1TaskTriggerSpecResponse.Companion.toKotlin(args0)
}),
uid = javaType.uid(),
updateTime = javaType.updateTime(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy