From 848438a930de55553bf5bd4854a44c28a4f290c9 Mon Sep 17 00:00:00 2001 From: Yunkon Kim Date: Mon, 18 Nov 2024 17:57:57 +0900 Subject: [PATCH] Staging v0.10.1 --- docker-compose.yaml | 2 +- src/api/rest/docs/docs.go | 2 +- src/api/rest/docs/swagger.json | 2 +- src/api/rest/docs/swagger.yaml | 4 ++-- src/api/rest/server/resource/subnet.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 6f73dfee1..51000866c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,7 +7,7 @@ networks: services: # CB-Tumblebug cb-tumblebug: - image: cloudbaristaorg/cb-tumblebug:0.10.0 + image: cloudbaristaorg/cb-tumblebug:0.10.1 container_name: cb-tumblebug build: context: . diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 89f02c2ca..76ba5fb80 100644 --- a/src/api/rest/docs/docs.go +++ b/src/api/rest/docs/docs.go @@ -9228,7 +9228,7 @@ const docTemplate = `{ } }, "delete": { - "description": "Delete Subnet\n- refine: delete information of subnet if there's no info/resource in Spider/CSP\n- force: delete subnet regardless of the status of info/resource in Spider/CSP", + "description": "Delete Subnet\n- refine: delete a subnet ` + "`" + `object` + "`" + ` if there's no resource on CSP or no inforamation on Spider\n- force: force: delete a subnet ` + "`" + `resource` + "`" + ` on a CSP regardless of the current resource status (e.g., attempt to delete even if in use)", "consumes": [ "application/json" ], diff --git a/src/api/rest/docs/swagger.json b/src/api/rest/docs/swagger.json index 458510a07..ffcb285f2 100644 --- a/src/api/rest/docs/swagger.json +++ b/src/api/rest/docs/swagger.json @@ -9221,7 +9221,7 @@ } }, "delete": { - "description": "Delete Subnet\n- refine: delete information of subnet if there's no info/resource in Spider/CSP\n- force: delete subnet regardless of the status of info/resource in Spider/CSP", + "description": "Delete Subnet\n- refine: delete a subnet `object` if there's no resource on CSP or no inforamation on Spider\n- force: force: delete a subnet `resource` on a CSP regardless of the current resource status (e.g., attempt to delete even if in use)", "consumes": [ "application/json" ], diff --git a/src/api/rest/docs/swagger.yaml b/src/api/rest/docs/swagger.yaml index 049dcd933..e7babed40 100644 --- a/src/api/rest/docs/swagger.yaml +++ b/src/api/rest/docs/swagger.yaml @@ -7034,8 +7034,8 @@ paths: summary: "Delete Subnet (supporting actions: refine, force)" description: |- Delete Subnet - - refine: delete information of subnet if there's no info/resource in Spider/CSP - - force: delete subnet regardless of the status of info/resource in Spider/CSP + - refine: delete a subnet `object` if there's no resource on CSP or no inforamation on Spider + - force: force: delete a subnet `resource` on a CSP regardless of the current resource status (e.g., attempt to delete even if in use) operationId: DelSubnet parameters: - name: nsId diff --git a/src/api/rest/server/resource/subnet.go b/src/api/rest/server/resource/subnet.go index 9393c8b10..cf22793f1 100644 --- a/src/api/rest/server/resource/subnet.go +++ b/src/api/rest/server/resource/subnet.go @@ -201,8 +201,8 @@ type RestGetAllSubnetResponse struct { // @ID DelSubnet // @Summary Delete Subnet (supporting actions: refine, force) // @Description Delete Subnet -// @Description - refine: delete information of subnet if there's no info/resource in Spider/CSP -// @Description - force: delete subnet regardless of the status of info/resource in Spider/CSP +// @Description - refine: delete a subnet `object` if there's no resource on CSP or no inforamation on Spider +// @Description - force: force: delete a subnet `resource` on a CSP regardless of the current resource status (e.g., attempt to delete even if in use) // @Tags [Infra Resource] Network Management // @Accept json // @Produce json