From d57087594c3d653bd2d23251f3204fd4c03d471a Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:58:09 +0530 Subject: [PATCH] Swagger file:delete training job for TM Change-Id: I8125d97cf6a459b525fc36adbaec88b67186e2f9 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 178306b..e26200f 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -654,3 +654,52 @@ paths: Exception: type: "string" + /trainingjobs: + delete: + tags: + - Training Job + summary: "Delete a list of training job versions" + description: "Deletes the latest version of the training jobs specified in the request. The overall status of the training job should be 'failed' or 'finished', and deletion should not be in progress." + parameters: + - name: "body" + in: "body" + required: true + schema: + type: "object" + properties: + list: + type: "array" + items: + type: "object" + properties: + trainingjob_name: + type: "string" + description: "Name of the training job" + version: + type: "integer" + description: "Version of the training job" + responses: + 200: + description: "Deletion results" + schema: + type: "object" + properties: + success_count: + type: "integer" + failure_count: + type: "integer" + 400: + description: "Invalid request or missing data" + schema: + type: "object" + properties: + Exception: + type: "string" + 500: + description: "Internal server error" + schema: + type: "object" + properties: + Exception: + type: "string" + -- 2.16.6