fix:启动,停止,暂停实例修改字段

Former-commit-id: 5249571be4b75afe98e0d6fd41bbec6ed9fe28e3
This commit is contained in:
qiwang 2023-10-26 16:47:19 +08:00
parent 1a85671a2d
commit 3b845aaf94
4 changed files with 11 additions and 11 deletions

View File

@ -337,7 +337,7 @@ service pcm {
@handler DeleteNodeHandler @handler DeleteNodeHandler
delete /vm/deleteNode (DeleteNodeReq) returns (DeleteNodeResp) delete /vm/deleteNode (DeleteNodeReq) returns (DeleteNodeResp)
@handler ShowNodeDetailsHandler @handler ShowNodeDetailsHandler
delete /vm/showNodeDetails (ShowNodeDetailsReq) returns (ShowNodeDetailsResp) get /vm/showNodeDetails (ShowNodeDetailsReq) returns (ShowNodeDetailsResp)
} }
//存算联动 接口 //存算联动 接口

View File

@ -236,7 +236,7 @@ type(
type ( type (
StartServerReq { StartServerReq {
ServerId string `json:"server_id" copier:"ServerId"` ServerId string `json:"server_id" copier:"ServerId"`
Action []map[string]string `json:"Action,optional" copier:"Action"` Action []map[string]string `json:"action,optional" copier:"Action"`
start_action string `json:"start_action" copier:"start_action"` start_action string `json:"start_action" copier:"start_action"`
} }
@ -250,7 +250,7 @@ type (
type( type(
StopServerReq{ StopServerReq{
ServerId string `json:"server_id" copier:"ServerId"` ServerId string `json:"server_id" copier:"ServerId"`
Action []map[string]string `json:"Action,optional" copier:"Action"` Action []map[string]string `json:"action,optional" copier:"Action"`
stop_action string `json:"stop_action" copier:"stop_action"` stop_action string `json:"stop_action" copier:"stop_action"`
} }
StopServerResp { StopServerResp {
@ -742,7 +742,7 @@ type (
type( type(
UpdateVolumeReq { UpdateVolumeReq {
Volume Volume `json:"volume" copier:"Volume"` Volume Volume `json:"volume" copier:"Volume"`
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"` VolumeId string `json:"volume_id" copier:"VolumeId"`
} }
UpdateVolumeResp { UpdateVolumeResp {
Volume Volume `json:"volume" copier:"Volume"` Volume Volume `json:"volume" copier:"Volume"`
@ -794,7 +794,7 @@ type(
ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"` ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"`
} }
VolumeType { VolumeType {
VolumeType string `json:"Volume_type" copier:"VolumeType"` Name string `json:"name" copier:"Name"`
Description string `json:"description" copier:"Description"` Description string `json:"description" copier:"Description"`
ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"`
Id string `json:"id" copier:"Id"` Id string `json:"id" copier:"Id"`

View File

@ -552,7 +552,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: vm.DeleteNodeHandler(serverCtx), Handler: vm.DeleteNodeHandler(serverCtx),
}, },
{ {
Method: http.MethodDelete, Method: http.MethodGet,
Path: "/vm/showNodeDetails", Path: "/vm/showNodeDetails",
Handler: vm.ShowNodeDetailsHandler(serverCtx), Handler: vm.ShowNodeDetailsHandler(serverCtx),
}, },

View File

@ -2416,7 +2416,7 @@ type UpdateServerResp struct {
type StartServerReq struct { type StartServerReq struct {
ServerId string `json:"server_id" copier:"ServerId"` ServerId string `json:"server_id" copier:"ServerId"`
Action []map[string]string `json:"Action,optional" copier:"Action"` Action []map[string]string `json:"action,optional" copier:"Action"`
Start_action string `json:"start_action" copier:"start_action"` Start_action string `json:"start_action" copier:"start_action"`
} }
@ -2428,7 +2428,7 @@ type StartServerResp struct {
type StopServerReq struct { type StopServerReq struct {
ServerId string `json:"server_id" copier:"ServerId"` ServerId string `json:"server_id" copier:"ServerId"`
Action []map[string]string `json:"Action,optional" copier:"Action"` Action []map[string]string `json:"action,optional" copier:"Action"`
Stop_action string `json:"stop_action" copier:"stop_action"` Stop_action string `json:"stop_action" copier:"stop_action"`
} }
@ -2892,7 +2892,7 @@ type Extra_specs struct {
type UpdateVolumeReq struct { type UpdateVolumeReq struct {
Volume Volume `json:"volume" copier:"Volume"` Volume Volume `json:"volume" copier:"Volume"`
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"` VolumeId string `json:"volume_id" copier:"VolumeId"`
} }
type UpdateVolumeResp struct { type UpdateVolumeResp struct {
@ -2945,7 +2945,7 @@ type CreateVolumeTypeResp struct {
} }
type VolumeType struct { type VolumeType struct {
VolumeType string `json:"Volume_type" copier:"VolumeType"` Name string `json:"name" copier:"Name"`
Description string `json:"description" copier:"Description"` Description string `json:"description" copier:"Description"`
ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"` ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"`
Id string `json:"id" copier:"Id"` Id string `json:"id" copier:"Id"`