Merge pull request 'Modify the interface for querying the number of clusters' (#66) from qiwang/pcm-coordinator:master into master
Former-commit-id: e5b3488ecc29ee16408792a60cedc36572eb3c19
This commit is contained in:
commit
869279e19f
|
@ -109,6 +109,7 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
||||||
commitVmTaskReq {
|
commitVmTaskReq {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
NsID string `json:"nsID"`
|
NsID string `json:"nsID"`
|
||||||
|
@ -698,7 +699,8 @@ type clusterSumReq {
|
||||||
}
|
}
|
||||||
|
|
||||||
type clusterSumReqResp {
|
type clusterSumReqResp {
|
||||||
ClusterSum int `json:"ClusterSum,omitempty"`
|
PodSum int `json:"podSum,omitempty"`
|
||||||
|
VmSum int `json:"vmSum,omitempty"`
|
||||||
AdapterSum int `json:"AdapterSum,omitempty"`
|
AdapterSum int `json:"AdapterSum,omitempty"`
|
||||||
TaskSum int `json:"TaskSum,omitempty"`
|
TaskSum int `json:"TaskSum,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,8 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type
|
||||||
resp = &types.ClusterSumReqResp{}
|
resp = &types.ClusterSumReqResp{}
|
||||||
|
|
||||||
var AdapterSum int //
|
var AdapterSum int //
|
||||||
var ClusterSum int //
|
var podSum int //
|
||||||
|
var vmSum int //
|
||||||
var TaskSum int //
|
var TaskSum int //
|
||||||
//
|
//
|
||||||
sqlStr := "SELECT COUNT(*) FROM `t_adapter` t where t.type = 0"
|
sqlStr := "SELECT COUNT(*) FROM `t_adapter` t where t.type = 0"
|
||||||
|
@ -37,12 +38,19 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return nil, tx.Error
|
return nil, tx.Error
|
||||||
}
|
}
|
||||||
//
|
//vm
|
||||||
sqlStrCluster := "SELECT COUNT(*) FROM `t_cluster`t where t.label ='openstack' || t.label='kubernetes'\n"
|
sqlStrVm := "SELECT COUNT(*) FROM `t_adapter` t left join t_cluster tc on t.id=tc.adapter_id where t.type='3' and tc.deleted_at is null"
|
||||||
txCluster := l.svcCtx.DbEngin.Raw(sqlStrCluster).Scan(&ClusterSum)
|
txClusterVm := l.svcCtx.DbEngin.Raw(sqlStrVm).Scan(&vmSum)
|
||||||
if txCluster.Error != nil {
|
if txClusterVm.Error != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return nil, txCluster.Error
|
return nil, txClusterVm.Error
|
||||||
|
}
|
||||||
|
//pod
|
||||||
|
sqlStrPod := "SELECT COUNT(*) FROM `t_adapter` t left join t_cluster tc on t.id=tc.adapter_id where t.type='0' and tc.deleted_at is null"
|
||||||
|
txClusterPod := l.svcCtx.DbEngin.Raw(sqlStrPod).Scan(&podSum)
|
||||||
|
if txClusterPod.Error != nil {
|
||||||
|
logx.Error(err)
|
||||||
|
return nil, txClusterPod.Error
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
sqlStrTask := "SELECT COUNT(*) FROM `task`"
|
sqlStrTask := "SELECT COUNT(*) FROM `task`"
|
||||||
|
@ -52,7 +60,8 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type
|
||||||
return nil, txTask.Error
|
return nil, txTask.Error
|
||||||
}
|
}
|
||||||
resp.TaskSum = TaskSum
|
resp.TaskSum = TaskSum
|
||||||
resp.ClusterSum = ClusterSum
|
resp.VmSum = vmSum
|
||||||
|
resp.PodSum = podSum
|
||||||
resp.AdapterSum = AdapterSum
|
resp.AdapterSum = AdapterSum
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -678,7 +678,8 @@ type ClusterSumReq struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClusterSumReqResp struct {
|
type ClusterSumReqResp struct {
|
||||||
ClusterSum int `json:"ClusterSum,omitempty"`
|
PodSum int `json:"podSum,omitempty"`
|
||||||
|
VmSum int `json:"vmSum,omitempty"`
|
||||||
AdapterSum int `json:"AdapterSum,omitempty"`
|
AdapterSum int `json:"AdapterSum,omitempty"`
|
||||||
TaskSum int `json:"TaskSum,omitempty"`
|
TaskSum int `json:"TaskSum,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -2586,7 +2587,7 @@ type Limits struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetComputeLimitsReq struct {
|
type GetComputeLimitsReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetComputeLimitsResp struct {
|
type GetComputeLimitsResp struct {
|
||||||
|
@ -2618,7 +2619,7 @@ type VolumeLimits struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetVolumeLimitsReq struct {
|
type GetVolumeLimitsReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetVolumeLimitsResp struct {
|
type GetVolumeLimitsResp struct {
|
||||||
|
@ -2631,7 +2632,7 @@ type GetVolumeLimitsResp struct {
|
||||||
type ListServersReq struct {
|
type ListServersReq struct {
|
||||||
Limit int32 `form:"limit,optional"`
|
Limit int32 `form:"limit,optional"`
|
||||||
OffSet int32 `form:"offSet,optional"`
|
OffSet int32 `form:"offSet,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListServersResp struct {
|
type ListServersResp struct {
|
||||||
|
@ -2660,7 +2661,7 @@ type Servers_links struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListServersDetailedReq struct {
|
type ListServersDetailedReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListServersDetailedResp struct {
|
type ListServersDetailedResp struct {
|
||||||
|
@ -2684,7 +2685,7 @@ type ServersDetailed struct {
|
||||||
|
|
||||||
type GetServersDetailedByIdReq struct {
|
type GetServersDetailedByIdReq struct {
|
||||||
ServerId string `form:"server_id" copier:"ServerId"`
|
ServerId string `form:"server_id" copier:"ServerId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetServersDetailedByIdResp struct {
|
type GetServersDetailedByIdResp struct {
|
||||||
|
@ -2772,7 +2773,7 @@ type ExtraSpecs struct {
|
||||||
type UpdateServerReq struct {
|
type UpdateServerReq struct {
|
||||||
ServerId string `form:"server_id" copier:"ServerId"`
|
ServerId string `form:"server_id" copier:"ServerId"`
|
||||||
ServerUpdate ServerUpdate `json:"server_update" copier:"ServerUpdate"`
|
ServerUpdate ServerUpdate `json:"server_update" copier:"ServerUpdate"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ServerUpdate struct {
|
type ServerUpdate struct {
|
||||||
|
@ -2790,7 +2791,7 @@ 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"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StartServerResp struct {
|
type StartServerResp struct {
|
||||||
|
@ -2803,7 +2804,7 @@ 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"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type StopServerResp struct {
|
type StopServerResp struct {
|
||||||
|
@ -2815,7 +2816,7 @@ type StopServerResp struct {
|
||||||
type RebootServerReq struct {
|
type RebootServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RebootServerResp struct {
|
type RebootServerResp struct {
|
||||||
|
@ -2832,7 +2833,7 @@ type PauseServerReq 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"`
|
||||||
Pause_action string `json:"pause_action" copier:"pause_action"`
|
Pause_action string `json:"pause_action" copier:"pause_action"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PauseServerResp struct {
|
type PauseServerResp struct {
|
||||||
|
@ -2845,7 +2846,7 @@ type UnpauseServerReq 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"`
|
||||||
Unpause_action string `json:"unpause_action" copier:"unpause_action"`
|
Unpause_action string `json:"unpause_action" copier:"unpause_action"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UnpauseServerResp struct {
|
type UnpauseServerResp struct {
|
||||||
|
@ -2856,7 +2857,7 @@ type UnpauseServerResp struct {
|
||||||
|
|
||||||
type DeleteServerReq struct {
|
type DeleteServerReq struct {
|
||||||
ServerId string `form:"server_id" copier:"ServerId"`
|
ServerId string `form:"server_id" copier:"ServerId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteServerResp struct {
|
type DeleteServerResp struct {
|
||||||
|
@ -2867,7 +2868,7 @@ type DeleteServerResp struct {
|
||||||
|
|
||||||
type CreateServerReq struct {
|
type CreateServerReq struct {
|
||||||
Server Server `json:"server" copier:"Server"`
|
Server Server `json:"server" copier:"Server"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateServerResp struct {
|
type CreateServerResp struct {
|
||||||
|
@ -2911,7 +2912,7 @@ type ServerResp struct {
|
||||||
|
|
||||||
type RebuildServerReq struct {
|
type RebuildServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
Rebuild Rebuild `json:"rebuild" copier:"Rebuild"`
|
Rebuild Rebuild `json:"rebuild" copier:"Rebuild"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2986,7 +2987,7 @@ type ShelveServerReq 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"`
|
||||||
Shelve_action string `json:"shelve_action" copier:"shelve_action"`
|
Shelve_action string `json:"shelve_action" copier:"shelve_action"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShelveServerResp struct {
|
type ShelveServerResp struct {
|
||||||
|
@ -2997,7 +2998,7 @@ type ShelveServerResp struct {
|
||||||
|
|
||||||
type RescueServerReq struct {
|
type RescueServerReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3015,7 +3016,7 @@ type Rescue struct {
|
||||||
type UnRescueServerReq struct {
|
type UnRescueServerReq 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"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
||||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||||
}
|
}
|
||||||
|
@ -3029,7 +3030,7 @@ type UnRescueServerResp struct {
|
||||||
type ChangeAdministrativePasswordReq struct {
|
type ChangeAdministrativePasswordReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
Changepassword string `json:"changePassword" copier:"Changepassword"`
|
Changepassword string `json:"changePassword" copier:"Changepassword"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
ChangePassword ChangePassword `json:"changepassword" copier:"ChangePassword"`
|
ChangePassword ChangePassword `json:"changepassword" copier:"ChangePassword"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3046,7 +3047,7 @@ type ChangePassword struct {
|
||||||
type SuspendServerReq struct {
|
type SuspendServerReq 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"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
||||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||||
}
|
}
|
||||||
|
@ -3060,7 +3061,7 @@ type SuspendServerResp struct {
|
||||||
type AddSecurityGroupToServerReq struct {
|
type AddSecurityGroupToServerReq 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"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
UnRescue_action string `json:"UnRescue_action" copier:"UnRescue_action"`
|
||||||
AddSecurityGroup AddSecurityGroup `json:"addSecurityGroup" copier:"AddSecurityGroup"`
|
AddSecurityGroup AddSecurityGroup `json:"addSecurityGroup" copier:"AddSecurityGroup"`
|
||||||
}
|
}
|
||||||
|
@ -3077,7 +3078,7 @@ type AddSecurityGroup struct {
|
||||||
|
|
||||||
type RemoveSecurityGroupReq struct {
|
type RemoveSecurityGroupReq struct {
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
RemoveSecurityGroup RemoveSecurityGroup `json:"removeSecurityGroup" copier:"RemoveSecurityGroup"`
|
RemoveSecurityGroup RemoveSecurityGroup `json:"removeSecurityGroup" copier:"RemoveSecurityGroup"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3113,7 +3114,7 @@ type FlavorServer struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteFlavorReq struct {
|
type DeleteFlavorReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
ServerId string `json:"server_id" copier:"ServerId"`
|
ServerId string `json:"server_id" copier:"ServerId"`
|
||||||
FlavorId string `json:"flavor_id" copier:"FlavorId"`
|
FlavorId string `json:"flavor_id" copier:"FlavorId"`
|
||||||
}
|
}
|
||||||
|
@ -3125,8 +3126,7 @@ type DeleteFlavorResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListImagesReq struct {
|
type ListImagesReq struct {
|
||||||
Limit int32 `form:"limit,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListImagesResp struct {
|
type ListImagesResp struct {
|
||||||
|
@ -3196,7 +3196,7 @@ type CreateImageResp struct {
|
||||||
|
|
||||||
type UploadOsImageReq struct {
|
type UploadOsImageReq struct {
|
||||||
ImageId string `form:"image_id" copier:"ImageId"`
|
ImageId string `form:"image_id" copier:"ImageId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadOsImageResp struct {
|
type UploadOsImageResp struct {
|
||||||
|
@ -3207,7 +3207,7 @@ type UploadOsImageResp struct {
|
||||||
|
|
||||||
type DeleteImageReq struct {
|
type DeleteImageReq struct {
|
||||||
ImageId string `form:"image_id" copier:"ImageId"`
|
ImageId string `form:"image_id" copier:"ImageId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteImageResp struct {
|
type DeleteImageResp struct {
|
||||||
|
@ -3231,7 +3231,7 @@ type ImageNum struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListNetworksReq struct {
|
type ListNetworksReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListNetworksResp struct {
|
type ListNetworksResp struct {
|
||||||
|
@ -3271,7 +3271,7 @@ type Network struct {
|
||||||
|
|
||||||
type DeleteNetworkReq struct {
|
type DeleteNetworkReq struct {
|
||||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteNetworkResp struct {
|
type DeleteNetworkResp struct {
|
||||||
|
@ -3282,7 +3282,7 @@ type DeleteNetworkResp struct {
|
||||||
|
|
||||||
type CreateNetworkReq struct {
|
type CreateNetworkReq struct {
|
||||||
Network CreateNetwork `json:"network" copier:"Network"`
|
Network CreateNetwork `json:"network" copier:"Network"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateNetworkResp struct {
|
type CreateNetworkResp struct {
|
||||||
|
@ -3300,7 +3300,7 @@ type CreateNetwork struct {
|
||||||
|
|
||||||
type CreateSubnetReq struct {
|
type CreateSubnetReq struct {
|
||||||
Subnet Subnet `json:"subnet" copier:"Subnet"`
|
Subnet Subnet `json:"subnet" copier:"Subnet"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateSubnetResp struct {
|
type CreateSubnetResp struct {
|
||||||
|
@ -3355,7 +3355,7 @@ type Allocation_pools struct {
|
||||||
|
|
||||||
type ShowNetworkDetailsReq struct {
|
type ShowNetworkDetailsReq struct {
|
||||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowNetworkDetailsResp struct {
|
type ShowNetworkDetailsResp struct {
|
||||||
|
@ -3394,7 +3394,7 @@ type Networkdetail struct {
|
||||||
type UpdateNetworkReq struct {
|
type UpdateNetworkReq struct {
|
||||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||||
Network Network `json:"network" copier:"Network"`
|
Network Network `json:"network" copier:"Network"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateNetworkResp struct {
|
type UpdateNetworkResp struct {
|
||||||
|
@ -3419,7 +3419,7 @@ type BulkCreateNetworksResp struct {
|
||||||
type ListSubnetsReq struct {
|
type ListSubnetsReq struct {
|
||||||
Limit int32 `json:"limit,optional"`
|
Limit int32 `json:"limit,optional"`
|
||||||
OffSet int32 `json:"offSet,optional"`
|
OffSet int32 `json:"offSet,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListSubnetsResp struct {
|
type ListSubnetsResp struct {
|
||||||
|
@ -3461,7 +3461,7 @@ type Allocation_pool struct {
|
||||||
|
|
||||||
type DeleteSubnetReq struct {
|
type DeleteSubnetReq struct {
|
||||||
SubnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
SubnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteSubnetResp struct {
|
type DeleteSubnetResp struct {
|
||||||
|
@ -3472,7 +3472,7 @@ type DeleteSubnetResp struct {
|
||||||
|
|
||||||
type UpdateSubnetReq struct {
|
type UpdateSubnetReq struct {
|
||||||
SubnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
SubnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateSubnetResp struct {
|
type UpdateSubnetResp struct {
|
||||||
|
@ -3517,7 +3517,7 @@ type Used struct {
|
||||||
type ListNetworkSegmentRangesReq struct {
|
type ListNetworkSegmentRangesReq struct {
|
||||||
Limit int32 `json:"limit,optional"`
|
Limit int32 `json:"limit,optional"`
|
||||||
OffSet int32 `json:"offSet,optional"`
|
OffSet int32 `json:"offSet,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListNetworkSegmentRangesResp struct {
|
type ListNetworkSegmentRangesResp struct {
|
||||||
|
@ -3547,7 +3547,7 @@ type Network_segment_ranges struct {
|
||||||
|
|
||||||
type DeleteNetworkSegmentRangesReq struct {
|
type DeleteNetworkSegmentRangesReq struct {
|
||||||
Network_segment_range_id string `json:"network_segment_range_id,optional" copier:"network_segment_range_id"`
|
Network_segment_range_id string `json:"network_segment_range_id,optional" copier:"network_segment_range_id"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteNetworkSegmentRangesResp struct {
|
type DeleteNetworkSegmentRangesResp struct {
|
||||||
|
@ -3559,7 +3559,7 @@ type DeleteNetworkSegmentRangesResp struct {
|
||||||
type UpdateNetworkSegmentRangesReq struct {
|
type UpdateNetworkSegmentRangesReq struct {
|
||||||
Network_segment_range_id string `json:"network_segment_range_id,optional" copier:"network_segment_range_id"`
|
Network_segment_range_id string `json:"network_segment_range_id,optional" copier:"network_segment_range_id"`
|
||||||
NetworkSegmentRange Network_segment_range `json:"network_segment_range,optional" copier:"NetworkSegmentRange"`
|
NetworkSegmentRange Network_segment_range `json:"network_segment_range,optional" copier:"NetworkSegmentRange"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateNetworkSegmentRangesResp struct {
|
type UpdateNetworkSegmentRangesResp struct {
|
||||||
|
@ -3631,7 +3631,7 @@ type CreatePortResp struct {
|
||||||
type ListPortsReq struct {
|
type ListPortsReq struct {
|
||||||
Limit int32 `json:"limit,optional"`
|
Limit int32 `json:"limit,optional"`
|
||||||
OffSet int32 `json:"offSet,optional"`
|
OffSet int32 `json:"offSet,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListPortsResp struct {
|
type ListPortsResp struct {
|
||||||
|
@ -3690,7 +3690,7 @@ type Fixed_ips struct {
|
||||||
|
|
||||||
type DeletePortReq struct {
|
type DeletePortReq struct {
|
||||||
Port_id string `json:"port_id,optional" copier:"port_id"`
|
Port_id string `json:"port_id,optional" copier:"port_id"`
|
||||||
Platform string `json:"platform,optional" copier:"platform"`
|
Platform string `form:"platform,optional" copier:"platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeletePortResp struct {
|
type DeletePortResp struct {
|
||||||
|
@ -3702,7 +3702,7 @@ type DeletePortResp struct {
|
||||||
type UpdatePortReq struct {
|
type UpdatePortReq struct {
|
||||||
Port_id string `json:"port_id,optional" copier:"port_id"`
|
Port_id string `json:"port_id,optional" copier:"port_id"`
|
||||||
Port Port `json:"port,optional" copier:"port"`
|
Port Port `json:"port,optional" copier:"port"`
|
||||||
Platform string `json:"platform,optional" copier:"platform"`
|
Platform string `form:"platform,optional" copier:"platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdatePortResp struct {
|
type UpdatePortResp struct {
|
||||||
|
@ -3715,7 +3715,7 @@ type UpdatePortResp struct {
|
||||||
type ShowPortDetailsReq struct {
|
type ShowPortDetailsReq struct {
|
||||||
Port_id string `json:"port_id,optional" copier:"port_id"`
|
Port_id string `json:"port_id,optional" copier:"port_id"`
|
||||||
Fields string `json:"fields,optional" copier:"fields"`
|
Fields string `json:"fields,optional" copier:"fields"`
|
||||||
Platform string `json:"platform,optional" copier:"platform"`
|
Platform string `form:"platform,optional" copier:"platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowPortDetailsResp struct {
|
type ShowPortDetailsResp struct {
|
||||||
|
@ -3728,7 +3728,7 @@ type ShowPortDetailsResp struct {
|
||||||
type ListRoutersReq struct {
|
type ListRoutersReq struct {
|
||||||
Limit int32 `json:"limit,optional"`
|
Limit int32 `json:"limit,optional"`
|
||||||
OffSet int32 `json:"offSet,optional"`
|
OffSet int32 `json:"offSet,optional"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListRoutersResp struct {
|
type ListRoutersResp struct {
|
||||||
|
@ -3822,7 +3822,7 @@ type Router struct {
|
||||||
|
|
||||||
type UpdateRouterReq struct {
|
type UpdateRouterReq struct {
|
||||||
Router Router `json:"router,optional" copier:"router"`
|
Router Router `json:"router,optional" copier:"router"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateRouterResp struct {
|
type UpdateRouterResp struct {
|
||||||
|
@ -3834,7 +3834,7 @@ type UpdateRouterResp struct {
|
||||||
|
|
||||||
type ShowRouterDetailsReq struct {
|
type ShowRouterDetailsReq struct {
|
||||||
Router Router `json:"router,optional" copier:"router"`
|
Router Router `json:"router,optional" copier:"router"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowRouterDetailsResp struct {
|
type ShowRouterDetailsResp struct {
|
||||||
|
@ -3845,7 +3845,7 @@ type ShowRouterDetailsResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteRouterReq struct {
|
type DeleteRouterReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Router_id string `json:"router_id,optional" copier:"router_id"`
|
Router_id string `json:"router_id,optional" copier:"router_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3856,7 +3856,7 @@ type DeleteRouterResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFloatingIPsReq struct {
|
type ListFloatingIPsReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Limit int32 `json:"limit,optional" copier:"Limit"`
|
Limit int32 `json:"limit,optional" copier:"Limit"`
|
||||||
OffSet int32 `json:"offSet,optional" copier:"OffSet"`
|
OffSet int32 `json:"offSet,optional" copier:"OffSet"`
|
||||||
}
|
}
|
||||||
|
@ -3943,7 +3943,7 @@ type Floatingip struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateFloatingIPReq struct {
|
type UpdateFloatingIPReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Floatingip_id string `json:"floatingip_id,optional" copier:"floatingip_id"`
|
Floatingip_id string `json:"floatingip_id,optional" copier:"floatingip_id"`
|
||||||
Floatingip Floatingip `json:"floatingip,optional" copier:"floatingip"`
|
Floatingip Floatingip `json:"floatingip,optional" copier:"floatingip"`
|
||||||
}
|
}
|
||||||
|
@ -3956,7 +3956,7 @@ type UpdateFloatingIPResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteFloatingIPReq struct {
|
type DeleteFloatingIPReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Floatingip_id string `json:"floatingip_id,optional" copier:"floatingip_id"`
|
Floatingip_id string `json:"floatingip_id,optional" copier:"floatingip_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3979,7 +3979,7 @@ type ShowFloatingIPDetailsResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFirewallGroupsReq struct {
|
type ListFirewallGroupsReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Fields string `json:"fields,optional" copier:"fields"`
|
Fields string `json:"fields,optional" copier:"fields"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4006,7 +4006,7 @@ type Firewall_groups struct {
|
||||||
|
|
||||||
type DeleteFirewallGroupReq struct {
|
type DeleteFirewallGroupReq struct {
|
||||||
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteFirewallGroupResp struct {
|
type DeleteFirewallGroupResp struct {
|
||||||
|
@ -4043,7 +4043,7 @@ type Firewall_group struct {
|
||||||
|
|
||||||
type UpdateFirewallGroupReq struct {
|
type UpdateFirewallGroupReq struct {
|
||||||
Firewall_group Firewall_group `json:"firewall_group,optional" copier:"firewall_group"`
|
Firewall_group Firewall_group `json:"firewall_group,optional" copier:"firewall_group"`
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4055,7 +4055,7 @@ type UpdateFirewallGroupResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowFirewallGroupDetailsReq struct {
|
type ShowFirewallGroupDetailsReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
Firewall_group_id string `json:"firewall_group_id,optional" copier:"firewall_group_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4090,7 +4090,7 @@ type Firewall_policy struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteFirewallPolicyReq struct {
|
type DeleteFirewallPolicyReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_policy_id string `json:"firewall_policy_id,optional" copier:"firewall_policy_id"`
|
Firewall_policy_id string `json:"firewall_policy_id,optional" copier:"firewall_policy_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4101,7 +4101,7 @@ type DeleteFirewallPolicyResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFirewallPoliciesReq struct {
|
type ListFirewallPoliciesReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Fields string `json:"fields,optional" copier:"fields"`
|
Fields string `json:"fields,optional" copier:"fields"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4167,7 +4167,7 @@ type Firewall_rule struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteFirewallRuleReq struct {
|
type DeleteFirewallRuleReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4178,7 +4178,7 @@ type DeleteFirewallRuleResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFirewallRulesReq struct {
|
type ListFirewallRulesReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Fields string `json:"fields,optional" copier:"fields"`
|
Fields string `json:"fields,optional" copier:"fields"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4209,7 +4209,7 @@ type Firewall_rules struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowFirewallRuleDetailsReq struct {
|
type ShowFirewallRuleDetailsReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4221,7 +4221,7 @@ type ShowFirewallRuleDetailsResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListSecurityGroupsReq struct {
|
type ListSecurityGroupsReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Fields string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
Fields string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4247,7 +4247,7 @@ type Security_groups struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateSecurityGroupReq struct {
|
type CreateSecurityGroupReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
Firewall_rule_id string `json:"firewall_rule_id,optional" copier:"firewall_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4294,7 +4294,7 @@ type Security_group_rules struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteSecurityGroupReq struct {
|
type DeleteSecurityGroupReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4305,7 +4305,7 @@ type DeleteSecurityGroupResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateSecurityGroupReq struct {
|
type UpdateSecurityGroupReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4317,7 +4317,7 @@ type UpdateSecurityGroupResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowSecurityGroupReq struct {
|
type ShowSecurityGroupReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
Security_group_id string `json:"security_group_id,optional" copier:"security_group_id"`
|
||||||
Fields string `json:"fields,optional" copier:"fields"`
|
Fields string `json:"fields,optional" copier:"fields"`
|
||||||
Verbose string `json:"verbose,optional" copier:"verbose"`
|
Verbose string `json:"verbose,optional" copier:"verbose"`
|
||||||
|
@ -4331,7 +4331,7 @@ type ShowSecurityGroupResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListSecurityGroupRulesReq struct {
|
type ListSecurityGroupRulesReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListSecurityGroupRulesResp struct {
|
type ListSecurityGroupRulesResp struct {
|
||||||
|
@ -4373,7 +4373,7 @@ type Security_group_rule struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowSecurityGroupRuleReq struct {
|
type ShowSecurityGroupRuleReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Security_group_rule_id string `json:"security_group_rule_id,optional" copier:"security_group_rule_id"`
|
Security_group_rule_id string `json:"security_group_rule_id,optional" copier:"security_group_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4385,7 +4385,7 @@ type ShowSecurityGroupRuleResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteSecurityGroupRuleReq struct {
|
type DeleteSecurityGroupRuleReq struct {
|
||||||
Platform string `json:"platform,optional" copier:"Platform"`
|
Platform string `form:"platform,optional" copier:"Platform"`
|
||||||
Security_group_rule_id string `json:"security_group_rule_id,optional" copier:"security_group_rule_id"`
|
Security_group_rule_id string `json:"security_group_rule_id,optional" copier:"security_group_rule_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4397,7 +4397,7 @@ type DeleteSecurityGroupRuleResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListVolumesDetailReq struct {
|
type ListVolumesDetailReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListVolumesDetailResp struct {
|
type ListVolumesDetailResp struct {
|
||||||
|
@ -4431,7 +4431,7 @@ type DeleteVolumeReq struct {
|
||||||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||||
Cascade bool `json:"cascade" copier:"Cascade"`
|
Cascade bool `json:"cascade" copier:"Cascade"`
|
||||||
Force bool `json:"force" copier:"force"`
|
Force bool `json:"force" copier:"force"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteVolumeResp struct {
|
type DeleteVolumeResp struct {
|
||||||
|
@ -4481,7 +4481,7 @@ type VolumeResp struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListVolumeTypesReq struct {
|
type ListVolumeTypesReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListVolumeTypesResp struct {
|
type ListVolumeTypesResp struct {
|
||||||
|
@ -4508,7 +4508,7 @@ type Extra_specs struct {
|
||||||
type UpdateVolumeReq struct {
|
type UpdateVolumeReq struct {
|
||||||
Volume Volume `json:"volume" copier:"Volume"`
|
Volume Volume `json:"volume" copier:"Volume"`
|
||||||
VolumeId string `json:"volume_id" copier:"VolumeId"`
|
VolumeId string `json:"volume_id" copier:"VolumeId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateVolumeResp struct {
|
type UpdateVolumeResp struct {
|
||||||
|
@ -4520,7 +4520,7 @@ type UpdateVolumeResp struct {
|
||||||
|
|
||||||
type GetVolumeDetailedByIdReq struct {
|
type GetVolumeDetailedByIdReq struct {
|
||||||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetVolumeDetailedByIdResp struct {
|
type GetVolumeDetailedByIdResp struct {
|
||||||
|
@ -4572,7 +4572,7 @@ type VolumeType struct {
|
||||||
|
|
||||||
type DeleteVolumeTypeReq struct {
|
type DeleteVolumeTypeReq struct {
|
||||||
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
|
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteVolumeTypeResp struct {
|
type DeleteVolumeTypeResp struct {
|
||||||
|
@ -4592,7 +4592,7 @@ type ListVolumesReq struct {
|
||||||
CreatedAt string `json:"created_at" copier:"CreatedAt"`
|
CreatedAt string `json:"created_at" copier:"CreatedAt"`
|
||||||
ConsumesQuota bool `json:"consumes_quota" copier:"ConsumesQuota"`
|
ConsumesQuota bool `json:"consumes_quota" copier:"ConsumesQuota"`
|
||||||
UpdatedAt string `json:"updated_at" copier:"UpdatedAt"`
|
UpdatedAt string `json:"updated_at" copier:"UpdatedAt"`
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListVolumesResp struct {
|
type ListVolumesResp struct {
|
||||||
|
@ -4609,7 +4609,7 @@ type VolumesList struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFlavorsDetailReq struct {
|
type ListFlavorsDetailReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListFlavorsDetailResp struct {
|
type ListFlavorsDetailResp struct {
|
||||||
|
@ -4634,7 +4634,7 @@ type Flavors struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListNodesReq struct {
|
type ListNodesReq struct {
|
||||||
Platform string `json:"platform,optional"`
|
Platform string `form:"platform,optional"`
|
||||||
Limit int64 `json:"limit" copier:"Limit"`
|
Limit int64 `json:"limit" copier:"Limit"`
|
||||||
Marker string `json:"marker" copier:"Marker"`
|
Marker string `json:"marker" copier:"Marker"`
|
||||||
SortDir string `json:"sort_dir" copier:"SortDir"`
|
SortDir string `json:"sort_dir" copier:"SortDir"`
|
||||||
|
|
Loading…
Reference in New Issue