Source code for annofabapi.pydantic_models.task_status
"""
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
[docs]
class TaskStatus(str, Enum):
"""
タスクのステータス * `not_started` - 未着手 * `working` - 作業中 * `on_hold` - 保留中 * `break` - 休憩中 * `complete` - 完了 * `rejected` - 差し戻し。[operateTask](#operation/operateTask) APIのリクエストボディに渡すときのみ利用する。その他のAPIのリクエストやレスポンスには使われない。 * `cancelled` - 提出の取り消し。[operateTask](#operation/operateTask) APIのリクエストボディに渡すときのみ利用する。その他のAPIのリクエストやレスポンスには使われない。
"""
"""
allowed enum values
"""
NOT_STARTED = "not_started"
WORKING = "working"
ON_HOLD = "on_hold"
BREAK = "break"
COMPLETE = "complete"
REJECTED = "rejected"
CANCELLED = "cancelled"
[docs]
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of TaskStatus from a JSON string"""
return cls(json.loads(json_str))