Task constructor
Task({
- String? name,
- String? uid,
- Timestamp? createTime,
- Timestamp? updateTime,
- String? description,
- String? displayName,
- State? state,
- Map<
String, String> ? labels, - Task_TriggerSpec? triggerSpec,
- Task_ExecutionSpec? executionSpec,
- Task_ExecutionStatus? executionStatus,
- Task_SparkTaskConfig? spark,
- Task_NotebookTaskConfig? notebook,
Implementation
factory Task({
$core.String? name,
$core.String? uid,
$2.Timestamp? createTime,
$2.Timestamp? updateTime,
$core.String? description,
$core.String? displayName,
State? state,
$core.Map<$core.String, $core.String>? labels,
Task_TriggerSpec? triggerSpec,
Task_ExecutionSpec? executionSpec,
Task_ExecutionStatus? executionStatus,
Task_SparkTaskConfig? spark,
Task_NotebookTaskConfig? notebook,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (uid != null) {
$result.uid = uid;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
if (description != null) {
$result.description = description;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (state != null) {
$result.state = state;
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (triggerSpec != null) {
$result.triggerSpec = triggerSpec;
}
if (executionSpec != null) {
$result.executionSpec = executionSpec;
}
if (executionStatus != null) {
$result.executionStatus = executionStatus;
}
if (spark != null) {
$result.spark = spark;
}
if (notebook != null) {
$result.notebook = notebook;
}
return $result;
}