Contains required info to create a new Task Definition
| Name | Type | Description | Notes |
|---|---|---|---|
| id | ResourceId | ||
| display_name | str | Human readable name | |
| description | str | Human readable description | [optional] |
| states | List[TaskStateDefinition] | The states this Task Definition operates over | |
| field_schema | List[TaskFieldDefinition] | Defines the fields associated with this Task | [optional] |
| initial_state | InitialState | ||
| triggers | List[TransitionTriggerDefinition] | Triggers | [optional] |
| transitions | List[TaskTransitionDefinition] | Transitions | [optional] |
| actions | List[ActionDefinition] | Actions | [optional] |
| properties | Dict[str, PerpetualProperty] | The properties to set on the Task Definition, keyed by property key. Optional. | [optional] |
from lusid_workflow.models.create_task_definition_request import CreateTaskDefinitionRequest
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
from typing_extensions import Annotated
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
from datetime import datetime
id: ResourceId
display_name: StrictStr = "example_display_name"
description: Optional[StrictStr] = "example_description"
states: List[TaskStateDefinition] = # Replace with your value
field_schema: Optional[List[TaskFieldDefinition]] = # Replace with your value
initial_state: InitialState = # Replace with your value
triggers: Optional[List[TransitionTriggerDefinition]] = # Replace with your value
transitions: Optional[List[TaskTransitionDefinition]] = # Replace with your value
actions: Optional[List[ActionDefinition]] = # Replace with your value
properties: Optional[Dict[str, PerpetualProperty]] = # Replace with your value
create_task_definition_request_instance = CreateTaskDefinitionRequest(id=id, display_name=display_name, description=description, states=states, field_schema=field_schema, initial_state=initial_state, triggers=triggers, transitions=transitions, actions=actions, properties=properties)