删除项目 Args: st: Session Token project_id: 项目ID
(self, st: str, project_id: str)
| 1283 | raise RuntimeError("创建项目失败") |
| 1284 | |
| 1285 | async def delete_project(self, st: str, project_id: str): |
| 1286 | """删除项目 |
| 1287 | |
| 1288 | Args: |
| 1289 | st: Session Token |
| 1290 | project_id: 项目ID |
| 1291 | """ |
| 1292 | url = f"{self.labs_base_url}/trpc/project.deleteProject" |
| 1293 | json_data = { |
| 1294 | "json": { |
| 1295 | "projectToDeleteId": project_id |
| 1296 | } |
| 1297 | } |
| 1298 | |
| 1299 | await self._make_request( |
| 1300 | method="POST", |
| 1301 | url=url, |
| 1302 | json_data=json_data, |
| 1303 | use_st=True, |
| 1304 | st_token=st, |
| 1305 | timeout=self._get_control_plane_timeout(), |
| 1306 | ) |
| 1307 | |
| 1308 | # ========== 媒体获取 (使用AT) ========== |
| 1309 |
nothing calls this directly
no test coverage detected