refactor: change DevOpsReconcileOperationType to inherit from str and Enum
Updated the DevOpsReconcileOperationType class to inherit from both str and Enum, enhancing its usability as a string enumeration in the application. Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
2dd73c0734
commit
6ebac252b0
@ -71,7 +71,7 @@ class CheckApplicationLogsResponse(BaseModel):
|
|||||||
limit: int
|
limit: int
|
||||||
logs: list[str]
|
logs: list[str]
|
||||||
|
|
||||||
class DevOpsReconcileOperationType(Enum):
|
class DevOpsReconcileOperationType(str, Enum):
|
||||||
START = "start"
|
START = "start"
|
||||||
TERMINATE = "terminate"
|
TERMINATE = "terminate"
|
||||||
RESTART = "restart"
|
RESTART = "restart"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user