49 lines
1.7 KiB
Python

# generated by datamodel-codegen:
# filename: schema/api/data/createTask.json
# timestamp: 2021-09-27T15:46:37+00:00
from __future__ import annotations
from typing import List, Optional
from pydantic import AnyUrl, BaseModel, Field, constr
from ...entity.data import task
from ...type import entityReference, tagLabel
class CreateTaskEntityRequest(BaseModel):
name: constr(min_length=1, max_length=64) = Field(
..., description='Name that identifies this Task.'
)
displayName: Optional[str] = Field(
None,
description='Display Name that identifies this Task. It could be title or label from the pipeline services',
)
description: Optional[str] = Field(
None,
description='Description of the task instance. What it has and how to use it.',
)
taskUrl: Optional[AnyUrl] = Field(
None,
description='Task URL to visit/manage. This URL points to respective pipeline service UI',
)
upstreamTasks: Optional[List[entityReference.EntityReference]] = Field(
None, description='All the tasks that are upstream of this task.'
)
downstreamTasks: Optional[List[entityReference.EntityReference]] = Field(
None, description='All the tasks that are downstream of this task.'
)
taskConfig: Optional[task.TaskConfig] = Field(
None, description='Task Configuration.'
)
tags: Optional[List[tagLabel.TagLabel]] = Field(
None, description='Tags for this chart'
)
owner: Optional[entityReference.EntityReference] = Field(
None, description='Owner of this Task'
)
service: entityReference.EntityReference = Field(
..., description='Link to the pipeline service where this task is used'
)