From 38333c0fa604da218f643a1c93e88121e219691c Mon Sep 17 00:00:00 2001 From: Darkiiiiiice Date: Fri, 18 Oct 2024 19:53:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update.=20golang=20sdk=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8C=87=E5=AE=9AVM=E5=89=AF=E6=9C=AC=E6=95=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/instance.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/instance.go b/service/instance.go index d1e0a2b..d837146 100644 --- a/service/instance.go +++ b/service/instance.go @@ -599,6 +599,7 @@ type RunInstancesInput struct { UserdataValue *string `json:"userdata_value" name:"userdata_value" location:"params"` Volumes []*string `json:"volumes" name:"volumes" location:"params"` VxNets []*string `json:"vxnets" name:"vxnets" location:"params"` + RepCount *string `json:"rep_count" name:"rep_count" location:"params"` } func (v *RunInstancesInput) Validate() error { @@ -645,8 +646,8 @@ func (v *RunInstancesInput) Validate() error { if v.CPUModel != nil { cpuModelValidValues := []string{"Westmere", "SandyBridge", "IvyBridge", "Haswell", "Broadwell", "EPYC", - "Skylake", "CascadeLake", "IceLake", "SapphireRapids", "Haswell-noTSX", - "EPYC-Rome"} + "Skylake", "CascadeLake", "IceLake", "SapphireRapids", "Haswell-noTSX", + "EPYC-Rome"} cpuModelParameterValue := fmt.Sprint(*v.CPUModel) cpuModelIsValid := false From e801e83473e24d91a4802ba95acb23e2934a121d Mon Sep 17 00:00:00 2001 From: Darkiiiiiice Date: Fri, 18 Oct 2024 19:56:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update.=20golang=20sdk=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8C=87=E5=AE=9AVM=E5=89=AF=E6=9C=AC=E6=95=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/instance.go b/service/instance.go index d837146..2b30ca5 100644 --- a/service/instance.go +++ b/service/instance.go @@ -599,7 +599,7 @@ type RunInstancesInput struct { UserdataValue *string `json:"userdata_value" name:"userdata_value" location:"params"` Volumes []*string `json:"volumes" name:"volumes" location:"params"` VxNets []*string `json:"vxnets" name:"vxnets" location:"params"` - RepCount *string `json:"rep_count" name:"rep_count" location:"params"` + RepCount *int `json:"rep_count" name:"rep_count" location:"params"` } func (v *RunInstancesInput) Validate() error {