diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 4338e8865..0349edf4b 100644 --- a/src/api/rest/docs/docs.go +++ b/src/api/rest/docs/docs.go @@ -1886,46 +1886,6 @@ const docTemplate = `{ } } }, - "/ns/{nsId}/defaultResources": { - "delete": { - "description": "Delete all Default Resource Objects in the given namespace", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "[Infra resource] MCIR Common" - ], - "summary": "Delete all Default Resource Objects in the given namespace", - "operationId": "DelAllDefaultResources", - "parameters": [ - { - "type": "string", - "default": "default", - "description": "Namespace ID", - "name": "nsId", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/common.IdList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/common.SimpleMsg" - } - } - } - } - }, "/ns/{nsId}/installBenchmarkAgent/mci/{mciId}": { "post": { "description": "Install the benchmark agent to specified MCI", @@ -7910,6 +7870,46 @@ const docTemplate = `{ } } }, + "/ns/{nsId}/sharedResources": { + "delete": { + "description": "Delete all Default Resource Objects in the given namespace", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "[Infra resource] MCIR Common" + ], + "summary": "Delete all Default Resource Objects in the given namespace", + "operationId": "DelAllSharedResources", + "parameters": [ + { + "type": "string", + "default": "default", + "description": "Namespace ID", + "name": "nsId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/common.IdList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/common.SimpleMsg" + } + } + } + } + }, "/object": { "get": { "description": "Get value of an object", diff --git a/src/api/rest/docs/swagger.json b/src/api/rest/docs/swagger.json index ce64287a4..a7cb95270 100644 --- a/src/api/rest/docs/swagger.json +++ b/src/api/rest/docs/swagger.json @@ -1879,46 +1879,6 @@ } } }, - "/ns/{nsId}/defaultResources": { - "delete": { - "description": "Delete all Default Resource Objects in the given namespace", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "[Infra resource] MCIR Common" - ], - "summary": "Delete all Default Resource Objects in the given namespace", - "operationId": "DelAllDefaultResources", - "parameters": [ - { - "type": "string", - "default": "default", - "description": "Namespace ID", - "name": "nsId", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/common.IdList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/common.SimpleMsg" - } - } - } - } - }, "/ns/{nsId}/installBenchmarkAgent/mci/{mciId}": { "post": { "description": "Install the benchmark agent to specified MCI", @@ -7903,6 +7863,46 @@ } } }, + "/ns/{nsId}/sharedResources": { + "delete": { + "description": "Delete all Default Resource Objects in the given namespace", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "[Infra resource] MCIR Common" + ], + "summary": "Delete all Default Resource Objects in the given namespace", + "operationId": "DelAllSharedResources", + "parameters": [ + { + "type": "string", + "default": "default", + "description": "Namespace ID", + "name": "nsId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/common.IdList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/common.SimpleMsg" + } + } + } + } + }, "/object": { "get": { "description": "Get value of an object", diff --git a/src/api/rest/docs/swagger.yaml b/src/api/rest/docs/swagger.yaml index b54c20968..546de6fca 100644 --- a/src/api/rest/docs/swagger.yaml +++ b/src/api/rest/docs/swagger.yaml @@ -4459,33 +4459,6 @@ paths: summary: Control the lifecycle of VM (suspend, resume, reboot, terminate) tags: - '[MC-Infra] MCI Control lifecycle' - /ns/{nsId}/defaultResources: - delete: - consumes: - - application/json - description: Delete all Default Resource Objects in the given namespace - operationId: DelAllDefaultResources - parameters: - - default: default - description: Namespace ID - in: path - name: nsId - required: true - type: string - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/common.IdList' - "404": - description: Not Found - schema: - $ref: '#/definitions/common.SimpleMsg' - summary: Delete all Default Resource Objects in the given namespace - tags: - - '[Infra resource] MCIR Common' /ns/{nsId}/installBenchmarkAgent/mci/{mciId}: post: consumes: @@ -8565,6 +8538,33 @@ paths: summary: Delete Subnet tags: - '[Infra resource] MCIR Network management' + /ns/{nsId}/sharedResources: + delete: + consumes: + - application/json + description: Delete all Default Resource Objects in the given namespace + operationId: DelAllSharedResources + parameters: + - default: default + description: Namespace ID + in: path + name: nsId + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/common.IdList' + "404": + description: Not Found + schema: + $ref: '#/definitions/common.SimpleMsg' + summary: Delete all Default Resource Objects in the given namespace + tags: + - '[Infra resource] MCIR Common' /object: delete: consumes: