-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pydantic import BaseModel | ||
from typing import Optional | ||
import uuid | ||
from datetime import datetime | ||
|
||
class Checkpoint(BaseModel): | ||
id: Optional[uuid.UUID] | ||
executionId: str | ||
edges: str | ||
nodes: str | ||
workflow: Optional[str] | ||
createdAt: Optional[datetime] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pydantic import BaseModel, Field | ||
from typing import Optional | ||
|
||
class Environment(BaseModel): | ||
id: str | ||
name: str | ||
type: str | ||
bin: str | ||
pyenv: str | ||
basedir: str | ||
hostid: Optional[str] = None # Use Optional to allow for null values | ||
settings: Optional[str] = None # Use Optional to allow for null values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class ExecutionStatus: | ||
DONE = "Done" | ||
FAILED = "Failed" | ||
RUNNING = "Running" | ||
UNKNOWN = "Unknown" | ||
STOPPED = "Stopped" | ||
READY = "Ready" | ||
SKIPPED = "Skipped" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from pydantic import BaseModel, Field | ||
from typing import Optional, Set | ||
|
||
class Host(BaseModel): | ||
id: str | ||
name: str | ||
ip: str | ||
port: str | ||
username: str | ||
owner: str | ||
type: str | ||
url: str | ||
confidential: bool | ||
envs: Optional[Set[str]] = None | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from pydantic import BaseModel | ||
|
||
class LogActivity(BaseModel): | ||
id: str | ||
operator: str | ||
category: str | ||
objectid: str | ||
objname: str | ||
operation: str | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pydantic import BaseModel | ||
from typing import Optional | ||
|
||
class GWProcess(BaseModel): | ||
id: str | ||
name: Optional[str] | ||
description: Optional[str] | ||
code: Optional[str] | ||
lang: Optional[str] | ||
owner: Optional[str] | ||
confidential: Optional[bool] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from pydantic import BaseModel | ||
from typing import Optional | ||
from datetime import date | ||
from typing import Optional | ||
|
||
class GWUser(BaseModel): | ||
id: str | ||
username: str | ||
password: str | ||
role: Optional[str] | ||
email: Optional[str] | ||
isactive: Optional[bool] | ||
registration_date: Optional[date] | ||
last_login_date: Optional[date] | ||
loggedIn: Optional[bool] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pydantic import BaseModel | ||
from typing import Optional | ||
|
||
class Workflow(BaseModel): | ||
id: str | ||
name: Optional[str] | ||
description: Optional[str] | ||
owner: Optional[str] | ||
confidential: Optional[str] | ||
edges: Optional[str] | ||
nodes: Optional[str] |