Browse Source

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

Former-commit-id: 5249571be4
pull/9/head
qiwang 2 years ago
parent
commit
3b845aaf94
4 changed files with 11 additions and 11 deletions
  1. +1
    -1
      api/desc/pcm.api
  2. +4
    -4
      api/desc/vm/pcm-vm.api
  3. +1
    -1
      api/internal/handler/routes.go
  4. +5
    -5
      api/internal/types/types.go

+ 1
- 1
api/desc/pcm.api View File

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

//存算联动 接口


+ 4
- 4
api/desc/vm/pcm-vm.api View File

@@ -236,7 +236,7 @@ type(
type (
StartServerReq {
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"`

}
@@ -250,7 +250,7 @@ type (
type(
StopServerReq{
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"`
}
StopServerResp {
@@ -742,7 +742,7 @@ type (
type(
UpdateVolumeReq {
Volume Volume `json:"volume" copier:"Volume"`
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
VolumeId string `json:"volume_id" copier:"VolumeId"`
}
UpdateVolumeResp {
Volume Volume `json:"volume" copier:"Volume"`
@@ -794,7 +794,7 @@ type(
ErrorMsg string `json:"errorMsg,omitempty" copier:"ErrorMsg"`
}
VolumeType {
VolumeType string `json:"Volume_type" copier:"VolumeType"`
Name string `json:"name" copier:"Name"`
Description string `json:"description" copier:"Description"`
ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"`
Id string `json:"id" copier:"Id"`


+ 1
- 1
api/internal/handler/routes.go View File

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


+ 5
- 5
api/internal/types/types.go View File

@@ -2416,7 +2416,7 @@ type UpdateServerResp struct {

type StartServerReq struct {
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"`
}

@@ -2428,7 +2428,7 @@ type StartServerResp struct {

type StopServerReq struct {
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"`
}

@@ -2891,8 +2891,8 @@ type Extra_specs struct {
}

type UpdateVolumeReq struct {
Volume Volume `json:"volume" copier:"Volume"`
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
Volume Volume `json:"volume" copier:"Volume"`
VolumeId string `json:"volume_id" copier:"VolumeId"`
}

type UpdateVolumeResp struct {
@@ -2945,7 +2945,7 @@ type CreateVolumeTypeResp struct {
}

type VolumeType struct {
VolumeType string `json:"Volume_type" copier:"VolumeType"`
Name string `json:"name" copier:"Name"`
Description string `json:"description" copier:"Description"`
ExtraSpecs ExtraSpecs `json:"extra_specs" copier:"ExtraSpecs"`
Id string `json:"id" copier:"Id"`


Loading…
Cancel
Save