Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove historic add VM way #1210

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 8 additions & 68 deletions src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2452,66 +2452,6 @@ const docTemplate = `{
}
}
}
},
"post": {
"description": "Create multiple VMs by subGroup in specified MCIS",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Infra service] MCIS Provisioning management"
],
"summary": "Create multiple VMs by subGroup in specified MCIS",
"parameters": [
{
"type": "string",
"default": "ns01",
"description": "Namespace ID",
"name": "nsId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "mcis01",
"description": "MCIS ID",
"name": "mcisId",
"in": "path",
"required": true
},
{
"description": "Details for subGroup",
"name": "vmReq",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/mcis.TbVmReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.TbMcisInfo"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
}
},
"/ns/{nsId}/mcis/{mcisId}/subgroup/{subgroupId}": {
Expand Down Expand Up @@ -2546,7 +2486,7 @@ const docTemplate = `{
},
{
"type": "string",
"default": "group-0",
"default": "g1",
"description": "subGroup ID",
"name": "subgroupId",
"in": "path",
Expand Down Expand Up @@ -2614,7 +2554,7 @@ const docTemplate = `{
},
{
"type": "string",
"default": "group-0",
"default": "g1",
"description": "subGroup ID",
"name": "subgroupId",
"in": "path",
Expand Down Expand Up @@ -2654,7 +2594,7 @@ const docTemplate = `{
},
"/ns/{nsId}/mcis/{mcisId}/vm": {
"post": {
"description": "Create VM in specified MCIS",
"description": "Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize for multiple VMs)",
"consumes": [
"application/json"
],
Expand All @@ -2664,7 +2604,7 @@ const docTemplate = `{
"tags": [
"[Infra service] MCIS Provisioning management"
],
"summary": "Create VM in specified MCIS",
"summary": "Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize for multiple VMs)",
"parameters": [
{
"type": "string",
Expand All @@ -2683,7 +2623,7 @@ const docTemplate = `{
"required": true
},
{
"description": "Details for an VM object",
"description": "Details for VMs(subGroup)",
"name": "vmReq",
"in": "body",
"required": true,
Expand All @@ -2696,7 +2636,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.TbVmInfo"
"$ref": "#/definitions/mcis.TbMcisInfo"
}
},
"404": {
Expand Down Expand Up @@ -9181,7 +9121,7 @@ const docTemplate = `{
},
"subGroupId": {
"type": "string",
"example": "group-0"
"example": "g1"
},
"vms": {
"type": "array",
Expand All @@ -9206,7 +9146,7 @@ const docTemplate = `{
},
"subGroupId": {
"type": "string",
"example": "group-0"
"example": "g1"
}
}
},
Expand Down
76 changes: 8 additions & 68 deletions src/api/rest/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2444,66 +2444,6 @@
}
}
}
},
"post": {
"description": "Create multiple VMs by subGroup in specified MCIS",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Infra service] MCIS Provisioning management"
],
"summary": "Create multiple VMs by subGroup in specified MCIS",
"parameters": [
{
"type": "string",
"default": "ns01",
"description": "Namespace ID",
"name": "nsId",
"in": "path",
"required": true
},
{
"type": "string",
"default": "mcis01",
"description": "MCIS ID",
"name": "mcisId",
"in": "path",
"required": true
},
{
"description": "Details for subGroup",
"name": "vmReq",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/mcis.TbVmReq"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.TbMcisInfo"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
}
},
"/ns/{nsId}/mcis/{mcisId}/subgroup/{subgroupId}": {
Expand Down Expand Up @@ -2538,7 +2478,7 @@
},
{
"type": "string",
"default": "group-0",
"default": "g1",
"description": "subGroup ID",
"name": "subgroupId",
"in": "path",
Expand Down Expand Up @@ -2606,7 +2546,7 @@
},
{
"type": "string",
"default": "group-0",
"default": "g1",
"description": "subGroup ID",
"name": "subgroupId",
"in": "path",
Expand Down Expand Up @@ -2646,7 +2586,7 @@
},
"/ns/{nsId}/mcis/{mcisId}/vm": {
"post": {
"description": "Create VM in specified MCIS",
"description": "Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize for multiple VMs)",
"consumes": [
"application/json"
],
Expand All @@ -2656,7 +2596,7 @@
"tags": [
"[Infra service] MCIS Provisioning management"
],
"summary": "Create VM in specified MCIS",
"summary": "Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize for multiple VMs)",
"parameters": [
{
"type": "string",
Expand All @@ -2675,7 +2615,7 @@
"required": true
},
{
"description": "Details for an VM object",
"description": "Details for VMs(subGroup)",
"name": "vmReq",
"in": "body",
"required": true,
Expand All @@ -2688,7 +2628,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/mcis.TbVmInfo"
"$ref": "#/definitions/mcis.TbMcisInfo"
}
},
"404": {
Expand Down Expand Up @@ -9173,7 +9113,7 @@
},
"subGroupId": {
"type": "string",
"example": "group-0"
"example": "g1"
},
"vms": {
"type": "array",
Expand All @@ -9198,7 +9138,7 @@
},
"subGroupId": {
"type": "string",
"example": "group-0"
"example": "g1"
}
}
},
Expand Down
59 changes: 10 additions & 49 deletions src/api/rest/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ definitions:
example: TCP
type: string
subGroupId:
example: group-0
example: g1
type: string
vms:
items:
Expand All @@ -1899,7 +1899,7 @@ definitions:
example: TCP
type: string
subGroupId:
example: group-0
example: g1
type: string
type: object
mcis.TbScaleOutSubGroupReq:
Expand Down Expand Up @@ -3952,47 +3952,6 @@ paths:
summary: List SubGroup IDs in a specified MCIS
tags:
- '[Infra service] MCIS Provisioning management'
post:
consumes:
- application/json
description: Create multiple VMs by subGroup in specified MCIS
parameters:
- default: ns01
description: Namespace ID
in: path
name: nsId
required: true
type: string
- default: mcis01
description: MCIS ID
in: path
name: mcisId
required: true
type: string
- description: Details for subGroup
in: body
name: vmReq
required: true
schema:
$ref: '#/definitions/mcis.TbVmReq'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/mcis.TbMcisInfo'
"404":
description: Not Found
schema:
$ref: '#/definitions/common.SimpleMsg'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/common.SimpleMsg'
summary: Create multiple VMs by subGroup in specified MCIS
tags:
- '[Infra service] MCIS Provisioning management'
/ns/{nsId}/mcis/{mcisId}/subgroup/{subgroupId}:
get:
consumes:
Expand All @@ -4011,7 +3970,7 @@ paths:
name: mcisId
required: true
type: string
- default: group-0
- default: g1
description: subGroup ID
in: path
name: subgroupId
Expand Down Expand Up @@ -4058,7 +4017,7 @@ paths:
name: mcisId
required: true
type: string
- default: group-0
- default: g1
description: subGroup ID
in: path
name: subgroupId
Expand Down Expand Up @@ -4092,7 +4051,8 @@ paths:
post:
consumes:
- application/json
description: Create VM in specified MCIS
description: Create and add homogeneous VMs(subGroup) to a specified MCIS (Set
subGroupSize for multiple VMs)
parameters:
- default: ns01
description: Namespace ID
Expand All @@ -4106,7 +4066,7 @@ paths:
name: mcisId
required: true
type: string
- description: Details for an VM object
- description: Details for VMs(subGroup)
in: body
name: vmReq
required: true
Expand All @@ -4118,7 +4078,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/mcis.TbVmInfo'
$ref: '#/definitions/mcis.TbMcisInfo'
"404":
description: Not Found
schema:
Expand All @@ -4127,7 +4087,8 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/common.SimpleMsg'
summary: Create VM in specified MCIS
summary: Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize
for multiple VMs)
tags:
- '[Infra service] MCIS Provisioning management'
/ns/{nsId}/mcis/{mcisId}/vm/{vmId}:
Expand Down
Loading