Former-commit-id: a3af50a8d77c3307a6727064dc38117dc2323139
This commit is contained in:
zhouqunjie 2024-03-25 15:12:28 +08:00
commit f8edde58f1
3 changed files with 95 additions and 84 deletions

View File

@ -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"`
} }

View File

@ -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
} }

View File

@ -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"`
} }
@ -2589,7 +2590,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 {
@ -2621,7 +2622,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 {
@ -2634,7 +2635,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 {
@ -2663,7 +2664,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 {
@ -2687,7 +2688,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 {
@ -2775,7 +2776,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 {
@ -2793,7 +2794,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 {
@ -2806,7 +2807,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 {
@ -2818,7 +2819,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 {
@ -2835,7 +2836,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 {
@ -2848,7 +2849,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 {
@ -2859,7 +2860,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 {
@ -2870,7 +2871,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 {
@ -2914,7 +2915,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"`
} }
@ -2989,7 +2990,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 {
@ -3000,7 +3001,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"`
} }
@ -3018,7 +3019,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"`
} }
@ -3032,7 +3033,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"`
} }
@ -3049,7 +3050,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"`
} }
@ -3063,7 +3064,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"`
} }
@ -3080,7 +3081,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"`
} }
@ -3116,7 +3117,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"`
} }
@ -3128,8 +3129,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 {
@ -3199,7 +3199,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 {
@ -3210,7 +3210,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 {
@ -3234,7 +3234,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 {
@ -3274,7 +3274,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 {
@ -3285,7 +3285,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 {
@ -3303,7 +3303,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 {
@ -3358,7 +3358,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 {
@ -3397,7 +3397,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 {
@ -3422,7 +3422,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 {
@ -3464,7 +3464,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 {
@ -3475,7 +3475,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 {
@ -3520,7 +3520,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 {
@ -3550,7 +3550,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 {
@ -3562,7 +3562,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 {
@ -3634,7 +3634,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 {
@ -3693,7 +3693,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 {
@ -3705,7 +3705,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 {
@ -3718,7 +3718,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 {
@ -3731,7 +3731,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 {
@ -3825,7 +3825,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 {
@ -3837,7 +3837,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 {
@ -3848,7 +3848,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"`
} }
@ -3859,7 +3859,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"`
} }
@ -3946,7 +3946,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"`
} }
@ -3959,7 +3959,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"`
} }
@ -3982,7 +3982,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"`
} }
@ -4009,7 +4009,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 {
@ -4046,7 +4046,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"`
} }
@ -4058,7 +4058,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"`
} }
@ -4093,7 +4093,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"`
} }
@ -4104,7 +4104,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"`
} }
@ -4170,7 +4170,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"`
} }
@ -4181,7 +4181,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"`
} }
@ -4212,7 +4212,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"`
} }
@ -4224,7 +4224,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"`
} }
@ -4250,7 +4250,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"`
} }
@ -4297,7 +4297,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"`
} }
@ -4308,7 +4308,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"`
} }
@ -4320,7 +4320,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"`
@ -4334,7 +4334,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 {
@ -4376,7 +4376,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"`
} }
@ -4388,7 +4388,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"`
} }
@ -4400,7 +4400,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 {
@ -4434,7 +4434,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 {
@ -4484,7 +4484,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 {
@ -4511,7 +4511,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 {
@ -4523,7 +4523,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 {
@ -4575,7 +4575,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 {
@ -4595,7 +4595,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 {
@ -4612,7 +4612,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 {
@ -4637,7 +4637,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"`