You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
427 B
23 lines
427 B
from typing import Any, List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
# PATCH /configs/{WID}/parameters
|
|
class ParameterValue(BaseModel):
|
|
id: str
|
|
value: Any
|
|
|
|
|
|
class ModifyConfigRequest(BaseModel):
|
|
__root__: List[ParameterValue]
|
|
|
|
|
|
# PUT /configs/{WID}/parameters
|
|
class ResetConfigRequest(BaseModel):
|
|
__root__: List[ParameterValue]
|
|
|
|
|
|
# PATCH /executions/{WID}/input
|
|
class WriteToExecutionRequest(BaseModel):
|
|
data: Any
|