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
|
||||
logs: list[str]
|
||||
|
||||
class DevOpsReconcileOperationType(Enum):
|
||||
class DevOpsReconcileOperationType(str, Enum):
|
||||
START = "start"
|
||||
TERMINATE = "terminate"
|
||||
RESTART = "restart"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user