diff --git a/docker-compose.yaml b/docker-compose.yaml index 6f73dfee..51000866 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 89f02c2c..76ba5fb8 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 458510a0..ffcb285f 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 049dcd93..e7babed4 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 9393c8b1..cf22793f 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