(self, id: int, model_update: ModelFileUpdate)
| 329 | return ModelFilePublic.model_validate(response.json()) |
| 330 | |
| 331 | def update(self, id: int, model_update: ModelFileUpdate): |
| 332 | response = self._client.get_httpx_client().put( |
| 333 | f"{self._url}/{id}", |
| 334 | content=model_update.model_dump_json(), |
| 335 | headers={"Content-Type": "application/json"}, |
| 336 | ) |
| 337 | raise_if_response_error(response) |
| 338 | return ModelFilePublic.model_validate(response.json()) |
| 339 | |
| 340 | def delete(self, id: int): |
| 341 | response = self._client.get_httpx_client().delete(f"{self._url}/{id}") |
nothing calls this directly
no test coverage detected