From ec5961bc8b54a4023ac2bded5b09ee4d3a6010f9 Mon Sep 17 00:00:00 2001 From: Yunkon Kim Date: Wed, 28 Feb 2024 10:27:04 +0900 Subject: [PATCH] Fix typo --- src/api/rest/docs/docs.go | 2 +- src/api/rest/docs/swagger.json | 2 +- src/api/rest/docs/swagger.yaml | 2 +- src/core/mcis/provisioning.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 12e576b9a..faf54e723 100644 --- a/src/api/rest/docs/docs.go +++ b/src/api/rest/docs/docs.go @@ -11564,7 +11564,7 @@ const docTemplate = `{ "type": "string", "example": "3" }, - "vmUserPassword default:": { + "vmUserPassword": { "type": "string" } } diff --git a/src/api/rest/docs/swagger.json b/src/api/rest/docs/swagger.json index a5e6db714..988244171 100644 --- a/src/api/rest/docs/swagger.json +++ b/src/api/rest/docs/swagger.json @@ -11557,7 +11557,7 @@ "type": "string", "example": "3" }, - "vmUserPassword default:": { + "vmUserPassword": { "type": "string" } } diff --git a/src/api/rest/docs/swagger.yaml b/src/api/rest/docs/swagger.yaml index f32e036a9..3488e7028 100644 --- a/src/api/rest/docs/swagger.yaml +++ b/src/api/rest/docs/swagger.yaml @@ -2399,7 +2399,7 @@ definitions: VMs will be created accordingly. example: "3" type: string - 'vmUserPassword default:': + vmUserPassword: type: string required: - commonImage diff --git a/src/core/mcis/provisioning.go b/src/core/mcis/provisioning.go index f70f54a49..3fd2824a1 100644 --- a/src/core/mcis/provisioning.go +++ b/src/core/mcis/provisioning.go @@ -242,7 +242,7 @@ type TbVmDynamicReq struct { RootDiskType string `json:"rootDiskType,omitempty" example:"default, TYPE1, ..."` // "", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHDD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_essd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"] RootDiskSize string `json:"rootDiskSize,omitempty" example:"default, 30, 42, ..."` // "default", Integer (GB): ["50", ..., "1000"] - VmUserPassword string `json:"vmUserPassword default:""` + VmUserPassword string `json:"vmUserPassword" default:""` // if ConnectionName is given, the VM tries to use associtated credential. // if not, it will use predefined ConnectionName in Spec objects ConnectionName string `json:"connectionName,omitempty" default:""`