Spaces:
No application file
No application file
Download server/actions/patch_action.py from SandyTheAdventurer/openenv: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/spaces/SandyTheAdventurer/openenv/resolve/main/server/actions/patch_action.py
- Command line
-
hf download hf://spaces/SandyTheAdventurer/openenv/server/actions/patch_action.py
-
curl -L -o patch_action.py https://huggingface.co/spaces/SandyTheAdventurer/openenv/resolve/main/server/actions/patch_action.py
427 Bytes
| from pydantic import BaseModel, Field | |
| from typing import Literal, Dict, Any | |
| class PatchAction(BaseModel): | |
| action_type: Literal["patch"] = "patch" | |
| resource_type: Literal["deployment", "configmap", "service"] = Field(..., description="One of: deployment, configmap, service") | |
| name: str = Field(..., description="Resource name") | |
| patch: Dict[str, Any] = Field(..., description="Fields to update (partial patch)") | |