diff --git a/src/api/rest/docs/docs.go b/src/api/rest/docs/docs.go index 12e576b9..faf54e72 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 a5e6db71..98824417 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 f32e036a..3488e702 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 f70f54a4..3fd2824a 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:""`