fix:Modify configuration file fields
Former-commit-id: b3e7609f704e567a9501719fe9ca56d81f9bc4f4
This commit is contained in:
parent
9ab14b2f01
commit
c6ad5637be
|
@ -107,7 +107,7 @@ type (
|
|||
NsID string `json:"nsID"`
|
||||
Replicas int64 `json:"replicas,optional"`
|
||||
MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
server []ServerCommit `json:"server,optional"`
|
||||
servers []ServerCommit `json:"servers,optional"`
|
||||
platform string `json:"platform,optional"`
|
||||
}
|
||||
ServerCommit {
|
||||
|
|
|
@ -36,7 +36,7 @@ type (
|
|||
absolute Absolute `json:"absolute,optional"`
|
||||
}
|
||||
GetComputeLimitsReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
GetComputeLimitsResp {
|
||||
|
@ -66,7 +66,7 @@ type (
|
|||
absolute VolumeAbsolute `json:"absolute,optional"`
|
||||
}
|
||||
GetVolumeLimitsReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
GetVolumeLimitsResp {
|
||||
|
@ -81,7 +81,7 @@ type (
|
|||
ListServersReq {
|
||||
Limit int32 `form:"limit,optional"`
|
||||
OffSet int32 `form:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListServersResp {
|
||||
TotalNumber uint32 `json:"totalNumber" copier:"TotalNumber"`
|
||||
|
@ -111,7 +111,7 @@ type (
|
|||
|
||||
type (
|
||||
ListServersDetailedReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListServersDetailedResp {
|
||||
ServersDetailed []ServersDetailed `json:"servers" copier:"ServersDetailed"`
|
||||
|
@ -137,7 +137,7 @@ type (
|
|||
type(
|
||||
GetServersDetailedByIdReq{
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
GetServersDetailedByIdResp{
|
||||
|
@ -222,7 +222,7 @@ type(
|
|||
UpdateServerReq{
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
ServerUpdate ServerUpdate `json:"server_update" copier:"ServerUpdate"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ServerUpdate{
|
||||
Server Server `json:"server" copier:"Server"`
|
||||
|
@ -239,7 +239,7 @@ type (
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"action,optional" copier:"Action"`
|
||||
start_action string `json:"start_action" copier:"start_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
StartServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
|
@ -253,19 +253,20 @@ type(
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"action,optional" copier:"Action"`
|
||||
stop_action string `json:"stop_action" copier:"stop_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
StopServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||
Code int32 `json:"code,omitempty"` }
|
||||
Code int32 `json:"code,omitempty"`
|
||||
}
|
||||
)
|
||||
|
||||
type(
|
||||
RebootServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
RebootServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
|
@ -281,7 +282,7 @@ type(
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
pause_action string `json:"pause_action" copier:"pause_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
PauseServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
|
@ -295,7 +296,7 @@ type(
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
unpause_action string `json:"unpause_action" copier:"unpause_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
UnpauseServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
|
@ -307,7 +308,7 @@ type(
|
|||
type (
|
||||
DeleteServerReq {
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
DeleteServerResp {
|
||||
|
@ -320,7 +321,7 @@ type (
|
|||
type (
|
||||
CreateServerReq {
|
||||
Server Server `json:"server" copier:"Server"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
CreateServerResp {
|
||||
Server ServerResp `json:"server" copier:"Server"`
|
||||
|
@ -361,7 +362,7 @@ type (
|
|||
type(
|
||||
RebuildServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Rebuild Rebuild `json:"rebuild" copier:"Rebuild"`
|
||||
}
|
||||
RebuildServerResp {
|
||||
|
@ -435,7 +436,7 @@ type(
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
shelve_action string `json:"shelve_action" copier:"shelve_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ShelveServerResp {
|
||||
Msg string `json:"msg,omitempty"`
|
||||
|
@ -447,7 +448,7 @@ type(
|
|||
type(
|
||||
RescueServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
RescueServerResp {
|
||||
|
@ -465,7 +466,7 @@ type(
|
|||
UnRescueServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
|
@ -480,7 +481,7 @@ type(
|
|||
ChangeAdministrativePasswordReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Changepassword string `json:"changePassword" copier:"Changepassword"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
ChangePassword ChangePassword `json:"changepassword" copier:"ChangePassword"`
|
||||
}
|
||||
ChangeAdministrativePasswordResp {
|
||||
|
@ -497,7 +498,7 @@ type(
|
|||
SuspendServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
|
@ -512,7 +513,7 @@ type(
|
|||
AddSecurityGroupToServerReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
AddSecurityGroup AddSecurityGroup `json:"addSecurityGroup" copier:"AddSecurityGroup"`
|
||||
}
|
||||
|
@ -529,7 +530,7 @@ type(
|
|||
type(
|
||||
removeSecurityGroupReq{
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
RemoveSecurityGroup RemoveSecurityGroup `json:"removeSecurityGroup" copier:"RemoveSecurityGroup"`
|
||||
}
|
||||
removeSecurityGroupResp {
|
||||
|
@ -565,7 +566,7 @@ type(
|
|||
|
||||
type(
|
||||
DeleteFlavorReq{
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
FlavorId string `json:"flavor_id" copier:"FlavorId"`
|
||||
}
|
||||
|
@ -581,8 +582,7 @@ type(
|
|||
/******************find images end*************************/
|
||||
type (
|
||||
ListImagesReq {
|
||||
Limit int32 `form:"limit,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListImagesResp {
|
||||
First string `json:"first" copier:"First"`
|
||||
|
@ -651,7 +651,7 @@ type (
|
|||
type (
|
||||
UploadOsImageReq {
|
||||
ImageId string `form:"image_id" copier:"ImageId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
UploadOsImageResp {
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -663,7 +663,7 @@ type (
|
|||
type (
|
||||
DeleteImageReq {
|
||||
ImageId string `form:"image_id" copier:"ImageId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
DeleteImageResp {
|
||||
Code int32 `json:"code,omitempty"`
|
||||
|
@ -695,7 +695,7 @@ type (
|
|||
|
||||
type (
|
||||
ListNetworksReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListNetworksResp {
|
||||
Networks []Network `json:"networks" copier:"Networks"`
|
||||
|
@ -734,7 +734,7 @@ type (
|
|||
type (
|
||||
DeleteNetworkReq {
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
DeleteNetworkResp {
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -745,7 +745,7 @@ type (
|
|||
type (
|
||||
CreateNetworkReq {
|
||||
Network CreateNetwork `json:"network" copier:"Network"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
CreateNetworkResp {
|
||||
Network Network `json:"network" copier:"Network"`
|
||||
|
@ -763,7 +763,7 @@ type (
|
|||
type (
|
||||
CreateSubnetReq {
|
||||
Subnet Subnet `json:"subnet" copier:"Subnet"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
CreateSubnetResp {
|
||||
Subnet SubnetResp `json:"subnet" copier:"Subnet"`
|
||||
|
@ -816,7 +816,7 @@ type (
|
|||
type(
|
||||
ShowNetworkDetailsReq{
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ShowNetworkDetailsResp{
|
||||
Network Networkdetail `json:"network" copier:"Network"`
|
||||
|
@ -855,7 +855,7 @@ type(
|
|||
UpdateNetworkReq {
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Network Network `json:"network" copier:"Network"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
UpdateNetworkResp {
|
||||
Network Network `json:"network" copier:"Network"`
|
||||
|
@ -882,7 +882,7 @@ type(
|
|||
ListSubnetsReq {
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListSubnetsResp {
|
||||
Subnets []Subnets `json:"subnets" copier:"Subnets"`
|
||||
|
@ -923,7 +923,7 @@ type(
|
|||
type(
|
||||
DeleteSubnetReq{
|
||||
subnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
DeleteSubnetResp{
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -935,7 +935,7 @@ type(
|
|||
type(
|
||||
UpdateSubnetReq{
|
||||
subnetId string `json:"subnet_id,optional" copier:"subnetId"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
UpdateSubnetResp{
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -980,7 +980,7 @@ type (
|
|||
ListNetworkSegmentRangesReq{
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
ListNetworkSegmentRangesResp{
|
||||
|
@ -1012,7 +1012,7 @@ type (
|
|||
type(
|
||||
DeleteNetworkSegmentRangesReq{
|
||||
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"`
|
||||
}
|
||||
DeleteNetworkSegmentRangesResp{
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -1025,7 +1025,7 @@ type(
|
|||
UpdateNetworkSegmentRangesReq{
|
||||
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"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
UpdateNetworkSegmentRangesResp{
|
||||
NetworkSegmentRange Network_segment_range `json:"network_segment_range,optional" copier:"NetworkSegmentRange"`
|
||||
|
@ -1099,7 +1099,7 @@ type (
|
|||
ListPortsReq{
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListPortsResp{
|
||||
ports []PortLists `json:"ports,optional" copier:"ports"`
|
||||
|
@ -1155,7 +1155,7 @@ type (
|
|||
type(
|
||||
DeletePortReq{
|
||||
port_id string `json:"port_id,optional" copier:"port_id"`
|
||||
platform string `json:"platform,optional" copier:"platform"`
|
||||
platform string `form:"platform,optional" copier:"platform"`
|
||||
}
|
||||
DeletePortResp{
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -1168,7 +1168,7 @@ type(
|
|||
UpdatePortReq{
|
||||
port_id string `json:"port_id,optional" copier:"port_id"`
|
||||
port Port `json:"port,optional" copier:"port"`
|
||||
platform string `json:"platform,optional" copier:"platform"`
|
||||
platform string `form:"platform,optional" copier:"platform"`
|
||||
}
|
||||
UpdatePortResp{
|
||||
port Port `json:"port,optional" copier:"port"`
|
||||
|
@ -1182,7 +1182,7 @@ type(
|
|||
ShowPortDetailsReq{
|
||||
port_id string `json:"port_id,optional" copier:"port_id"`
|
||||
fields string `json:"fields,optional" copier:"fields"`
|
||||
platform string `json:"platform,optional" copier:"platform"`
|
||||
platform string `form:"platform,optional" copier:"platform"`
|
||||
}
|
||||
ShowPortDetailsResp{
|
||||
port Port `json:"port,optional" copier:"port"`
|
||||
|
@ -1197,7 +1197,7 @@ type(
|
|||
ListRoutersReq{
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListRoutersResp{
|
||||
routers []Routers `json:"routers,optional" copier:"routers"`
|
||||
|
@ -1288,7 +1288,7 @@ type(
|
|||
type(
|
||||
UpdateRouterReq{
|
||||
router Router `json:"router,optional" copier:"router"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
|
||||
}
|
||||
UpdateRouterResp{
|
||||
|
@ -1302,7 +1302,7 @@ type(
|
|||
type(
|
||||
ShowRouterDetailsReq{
|
||||
router Router `json:"router,optional" copier:"router"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
|
||||
}
|
||||
ShowRouterDetailsResp{
|
||||
|
@ -1315,7 +1315,7 @@ type(
|
|||
|
||||
type(
|
||||
DeleteRouterReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
router_id string `json:"router_id,optional" copier:"router_id"`
|
||||
}
|
||||
DeleteRouterResp{
|
||||
|
@ -1328,7 +1328,7 @@ type(
|
|||
//浮动IPs
|
||||
type(
|
||||
ListFloatingIPsReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
Limit int32 `json:"limit,optional" copier:"Limit"`
|
||||
OffSet int32 `json:"offSet,optional" copier:"OffSet"`
|
||||
}
|
||||
|
@ -1413,7 +1413,7 @@ type(
|
|||
|
||||
type (
|
||||
UpdateFloatingIPReq{
|
||||
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 Floatingip `json:"floatingip,optional" copier:"floatingip"`
|
||||
}
|
||||
|
@ -1427,7 +1427,7 @@ type (
|
|||
|
||||
type (
|
||||
DeleteFloatingIPReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
floatingip_id string `json:"floatingip_id,optional" copier:"floatingip_id"`
|
||||
}
|
||||
DeleteFloatingIPResp{
|
||||
|
@ -1453,7 +1453,7 @@ type (
|
|||
//firewall
|
||||
type (
|
||||
ListFirewallGroupsReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
fields string `json:"fields,optional" copier:"fields"`
|
||||
}
|
||||
ListFirewallGroupsResp{
|
||||
|
@ -1480,7 +1480,7 @@ type (
|
|||
type(
|
||||
DeleteFirewallGroupReq {
|
||||
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"`
|
||||
}
|
||||
DeleteFirewallGroupResp {
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -1518,7 +1518,7 @@ type(
|
|||
type (
|
||||
UpdateFirewallGroupReq{
|
||||
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"`
|
||||
}
|
||||
UpdateFirewallGroupResp{
|
||||
|
@ -1531,7 +1531,7 @@ type (
|
|||
|
||||
type (
|
||||
ShowFirewallGroupDetailsReq{
|
||||
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"`
|
||||
}
|
||||
ShowFirewallGroupDetailsResp{
|
||||
|
@ -1567,7 +1567,7 @@ type(
|
|||
|
||||
type(
|
||||
DeleteFirewallPolicyReq{
|
||||
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"`
|
||||
}
|
||||
DeleteFirewallPolicyResp{
|
||||
|
@ -1579,7 +1579,7 @@ type(
|
|||
|
||||
type(
|
||||
ListFirewallPoliciesReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
fields string `json:"fields,optional" copier:"fields"`
|
||||
}
|
||||
ListFirewallPoliciesResp{
|
||||
|
@ -1647,7 +1647,7 @@ type(
|
|||
|
||||
type (
|
||||
DeleteFirewallRuleReq{
|
||||
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"`
|
||||
}
|
||||
DeleteFirewallRuleResp{
|
||||
|
@ -1659,7 +1659,7 @@ type (
|
|||
|
||||
type (
|
||||
ListFirewallRulesReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
fields string `json:"fields,optional" copier:"fields"`
|
||||
}
|
||||
ListFirewallRulesResp{
|
||||
|
@ -1690,7 +1690,7 @@ type (
|
|||
|
||||
type (
|
||||
ShowFirewallRuleDetailsReq{
|
||||
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"`
|
||||
}
|
||||
ShowFirewallRuleDetailsResp{
|
||||
|
@ -1704,7 +1704,7 @@ type (
|
|||
//Security Group
|
||||
type (
|
||||
ListSecurityGroupsReq{
|
||||
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"`
|
||||
}
|
||||
ListSecurityGroupsResp{
|
||||
|
@ -1730,7 +1730,7 @@ type (
|
|||
|
||||
type (
|
||||
CreateSecurityGroupReq{
|
||||
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"`
|
||||
}
|
||||
CreateSecurityGroupResp{
|
||||
|
@ -1776,7 +1776,7 @@ type (
|
|||
|
||||
type(
|
||||
DeleteSecurityGroupReq{
|
||||
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"`
|
||||
}
|
||||
DeleteSecurityGroupResp{
|
||||
|
@ -1788,7 +1788,7 @@ type(
|
|||
|
||||
type(
|
||||
UpdateSecurityGroupReq{
|
||||
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"`
|
||||
}
|
||||
UpdateSecurityGroupResp{
|
||||
|
@ -1802,7 +1802,7 @@ type(
|
|||
|
||||
type(
|
||||
ShowSecurityGroupReq{
|
||||
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"`
|
||||
fields string `json:"fields,optional" copier:"fields"`
|
||||
verbose string `json:"verbose,optional" copier:"verbose"`
|
||||
|
@ -1818,7 +1818,7 @@ type(
|
|||
//SecurityGroupRules
|
||||
type(
|
||||
ListSecurityGroupRulesReq{
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
ListSecurityGroupRulesResp{
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -1861,7 +1861,7 @@ type(
|
|||
|
||||
type(
|
||||
ShowSecurityGroupRuleReq{
|
||||
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"`
|
||||
}
|
||||
ShowSecurityGroupRuleResp{
|
||||
|
@ -1874,7 +1874,7 @@ type(
|
|||
|
||||
type(
|
||||
DeleteSecurityGroupRuleReq{
|
||||
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"`
|
||||
}
|
||||
DeleteSecurityGroupRuleResp{
|
||||
|
@ -1890,7 +1890,7 @@ type(
|
|||
/******************find ListVolumesDetail start*************************/
|
||||
type (
|
||||
ListVolumesDetailReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListVolumesDetailResp {
|
||||
VolumeDetail []VolumeDetail `json:"volumes" copier:"VolumeDetail"`
|
||||
|
@ -1925,7 +1925,7 @@ type (
|
|||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||
Cascade bool `json:"cascade" copier:"Cascade"`
|
||||
Force bool `json:"force" copier:"force"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
DeleteVolumeResp {
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -1976,7 +1976,7 @@ type (
|
|||
)
|
||||
type (
|
||||
ListVolumeTypesReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListVolumeTypesResp {
|
||||
VolumeTypes []Volume_types `json:"volume_types" copier:"VolumeTypes"`
|
||||
|
@ -2002,7 +2002,7 @@ type(
|
|||
UpdateVolumeReq {
|
||||
Volume Volume `json:"volume" copier:"Volume"`
|
||||
VolumeId string `json:"volume_id" copier:"VolumeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
UpdateVolumeResp {
|
||||
Volume Volume `json:"volume" copier:"Volume"`
|
||||
|
@ -2015,7 +2015,7 @@ type(
|
|||
type(
|
||||
GetVolumeDetailedByIdReq {
|
||||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
GetVolumeDetailedByIdResp {
|
||||
Volume VolumeDetailed `json:"volume" copier:"Volume"`
|
||||
|
@ -2067,7 +2067,7 @@ type(
|
|||
type(
|
||||
DeleteVolumeTypeReq {
|
||||
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
DeleteVolumeTypeResp {
|
||||
Code int32 `json:"code,omitempty" copier:"Code"`
|
||||
|
@ -2087,7 +2087,7 @@ type(
|
|||
CreatedAt string `json:"created_at" copier:"CreatedAt"`
|
||||
ConsumesQuota bool `json:"consumes_quota" copier:"ConsumesQuota"`
|
||||
UpdatedAt string `json:"updated_at" copier:"UpdatedAt"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
ListVolumesResp {
|
||||
Volumes []VolumesList `json:"volumes" copier:"Volumes"`
|
||||
|
@ -2106,7 +2106,7 @@ type(
|
|||
|
||||
type (
|
||||
ListFlavorsDetailReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
ListFlavorsDetailResp {
|
||||
|
@ -2133,7 +2133,7 @@ type (
|
|||
/******************Bare Metal start*************************/
|
||||
type(
|
||||
ListNodesReq {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Limit int64 `json:"limit" copier:"Limit"`
|
||||
Marker string `json:"marker" copier:"Marker"`
|
||||
SortDir string `json:"sort_dir" copier:"SortDir"`
|
||||
|
|
|
@ -5,7 +5,8 @@ Port: 8999
|
|||
Timeout: 50000
|
||||
|
||||
DB:
|
||||
DataSource: root:uJpLd6u-J?HC1@(10.206.0.12:3306)/pcm?parseTime=true&loc=Local
|
||||
# DataSource: root:uJpLd6u-J?HC1@(10.206.0.12:3306)/pcm?parseTime=true&loc=Local
|
||||
DataSource: root:uJpLd6u-J?HC1@(47.92.88.143:3306)/pcm?parseTime=true&loc=Local
|
||||
|
||||
Redis:
|
||||
Host: 10.206.0.12:6379
|
||||
|
|
|
@ -134,16 +134,6 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||
Path: "/core/metrics",
|
||||
Handler: core.MetricsHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/core/pullTaskInfo",
|
||||
Handler: core.PullTaskInfoHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/core/pushTaskInfo",
|
||||
Handler: core.PushTaskInfoHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
rest.WithPrefix("/pcm/v1"),
|
||||
)
|
||||
|
|
|
@ -8,6 +8,7 @@ import (
|
|||
"gitlink.org.cn/JointCloud/pcm-coordinator/api/pkg/response"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/constants"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models"
|
||||
tool "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils"
|
||||
"time"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
|
@ -41,14 +42,15 @@ func (l *CommitVmTaskLogic) CommitVmTask(req *types.CommitVmTaskReq) (resp *type
|
|||
if tx.Error != nil {
|
||||
return nil, tx.Error
|
||||
}
|
||||
/* hpc := models.Hpc{}
|
||||
tool.Convert(req, &hpc)*/
|
||||
vm := models.Vm{}
|
||||
tool.Convert(req, &vm)
|
||||
mqInfo := response.TaskInfo{
|
||||
TaskId: taskModel.Id,
|
||||
TaskType: "vm",
|
||||
MatchLabels: req.MatchLabels,
|
||||
NsID: req.NsID,
|
||||
}
|
||||
//req.TaskId = taskModel.Id
|
||||
mqs.InsQueue.Beta.Add(&mqInfo)
|
||||
return
|
||||
}
|
||||
|
|
|
@ -3,11 +3,9 @@ package vm
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/jinzhu/copier"
|
||||
"github.com/pkg/errors"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils"
|
||||
"gitlink.org.cn/JointCloud/pcm-openstack/openstack"
|
||||
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc"
|
||||
|
@ -33,9 +31,10 @@ func NewGetImageNumLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetIm
|
|||
func (l *GetImageNumLogic) GetImageNum(req *types.ListImagesReq) (resp *types.ImageNum, err error) {
|
||||
// todo: add your logic here and delete this line
|
||||
resp = &types.ImageNum{}
|
||||
ListImagesReq := &openstack.ListImagesReq{}
|
||||
err = copier.CopyWithOption(ListImagesReq, req, copier.Option{Converters: utils.Converters})
|
||||
ListImagesResp, err := l.svcCtx.OpenstackRpc.ListImages(l.ctx, ListImagesReq)
|
||||
listImagesReq := &openstack.ListImagesReq{}
|
||||
listImagesReq.Platform = req.Platform
|
||||
//err = copier.CopyWithOption(ListImagesReq, req, copier.Option{Converters: utils.Converters})
|
||||
ListImagesResp, err := l.svcCtx.OpenstackRpc.ListImages(l.ctx, listImagesReq)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(xerr.NewErrMsg("Failed to get Networks list"), "Failed to get db Servers list err : %v ,req:%+v", err, req)
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package vm
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/jinzhu/copier"
|
||||
"github.com/pkg/errors"
|
||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/helper/xerr"
|
||||
|
@ -41,7 +40,6 @@ func (l *GetNetworkNumLogic) GetNetworkNum(req *types.ListNetworksReq) (resp *ty
|
|||
}
|
||||
var count int = len(ListNetworksResp.Networks)
|
||||
resp.NetworkNum = int32(count)
|
||||
fmt.Println(count)
|
||||
if err != nil {
|
||||
return nil, result.NewDefaultError(err.Error())
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ type CommitVmTaskReq struct {
|
|||
NsID string `json:"nsID"`
|
||||
Replicas int64 `json:"replicas,optional"`
|
||||
MatchLabels map[string]string `json:"matchLabels,optional"`
|
||||
Server ServerCommit `json:"server,optional"`
|
||||
Servers []ServerCommit `json:"servers,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
}
|
||||
|
||||
|
@ -2569,7 +2569,7 @@ type Limits struct {
|
|||
}
|
||||
|
||||
type GetComputeLimitsReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type GetComputeLimitsResp struct {
|
||||
|
@ -2601,7 +2601,7 @@ type VolumeLimits struct {
|
|||
}
|
||||
|
||||
type GetVolumeLimitsReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type GetVolumeLimitsResp struct {
|
||||
|
@ -2614,7 +2614,7 @@ type GetVolumeLimitsResp struct {
|
|||
type ListServersReq struct {
|
||||
Limit int32 `form:"limit,optional"`
|
||||
OffSet int32 `form:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListServersResp struct {
|
||||
|
@ -2643,7 +2643,7 @@ type Servers_links struct {
|
|||
}
|
||||
|
||||
type ListServersDetailedReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListServersDetailedResp struct {
|
||||
|
@ -2667,7 +2667,7 @@ type ServersDetailed struct {
|
|||
|
||||
type GetServersDetailedByIdReq struct {
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type GetServersDetailedByIdResp struct {
|
||||
|
@ -2755,7 +2755,7 @@ type ExtraSpecs struct {
|
|||
type UpdateServerReq struct {
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
ServerUpdate ServerUpdate `json:"server_update" copier:"ServerUpdate"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ServerUpdate struct {
|
||||
|
@ -2773,7 +2773,7 @@ type StartServerReq struct {
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"action,optional" copier:"Action"`
|
||||
Start_action string `json:"start_action" copier:"start_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type StartServerResp struct {
|
||||
|
@ -2786,7 +2786,7 @@ type StopServerReq struct {
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"action,optional" copier:"Action"`
|
||||
Stop_action string `json:"stop_action" copier:"stop_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type StopServerResp struct {
|
||||
|
@ -2798,7 +2798,7 @@ type StopServerResp struct {
|
|||
type RebootServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Reboot Reboot `json:"reboot" copier:"Reboot"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type RebootServerResp struct {
|
||||
|
@ -2815,7 +2815,7 @@ type PauseServerReq struct {
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
Pause_action string `json:"pause_action" copier:"pause_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type PauseServerResp struct {
|
||||
|
@ -2828,7 +2828,7 @@ type UnpauseServerReq struct {
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
Unpause_action string `json:"unpause_action" copier:"unpause_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type UnpauseServerResp struct {
|
||||
|
@ -2839,7 +2839,7 @@ type UnpauseServerResp struct {
|
|||
|
||||
type DeleteServerReq struct {
|
||||
ServerId string `form:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type DeleteServerResp struct {
|
||||
|
@ -2850,7 +2850,7 @@ type DeleteServerResp struct {
|
|||
|
||||
type CreateServerReq struct {
|
||||
Server Server `json:"server" copier:"Server"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type CreateServerResp struct {
|
||||
|
@ -2894,7 +2894,7 @@ type ServerResp struct {
|
|||
|
||||
type RebuildServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Rebuild Rebuild `json:"rebuild" copier:"Rebuild"`
|
||||
}
|
||||
|
||||
|
@ -2969,7 +2969,7 @@ type ShelveServerReq struct {
|
|||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Action []map[string]string `json:"Action,optional" copier:"Action"`
|
||||
Shelve_action string `json:"shelve_action" copier:"shelve_action"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ShelveServerResp struct {
|
||||
|
@ -2980,7 +2980,7 @@ type ShelveServerResp struct {
|
|||
|
||||
type RescueServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
|
||||
|
@ -2998,7 +2998,7 @@ type Rescue struct {
|
|||
type UnRescueServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
|
@ -3012,7 +3012,7 @@ type UnRescueServerResp struct {
|
|||
type ChangeAdministrativePasswordReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Changepassword string `json:"changePassword" copier:"Changepassword"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
ChangePassword ChangePassword `json:"changepassword" copier:"ChangePassword"`
|
||||
}
|
||||
|
||||
|
@ -3029,7 +3029,7 @@ type ChangePassword struct {
|
|||
type SuspendServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
Rescue Rescue `json:"rescue" copier:"Rescue"`
|
||||
}
|
||||
|
@ -3043,7 +3043,7 @@ type SuspendServerResp struct {
|
|||
type AddSecurityGroupToServerReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
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"`
|
||||
AddSecurityGroup AddSecurityGroup `json:"addSecurityGroup" copier:"AddSecurityGroup"`
|
||||
}
|
||||
|
@ -3060,7 +3060,7 @@ type AddSecurityGroup struct {
|
|||
|
||||
type RemoveSecurityGroupReq struct {
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
RemoveSecurityGroup RemoveSecurityGroup `json:"removeSecurityGroup" copier:"RemoveSecurityGroup"`
|
||||
}
|
||||
|
||||
|
@ -3096,7 +3096,7 @@ type FlavorServer struct {
|
|||
}
|
||||
|
||||
type DeleteFlavorReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
ServerId string `json:"server_id" copier:"ServerId"`
|
||||
FlavorId string `json:"flavor_id" copier:"FlavorId"`
|
||||
}
|
||||
|
@ -3108,8 +3108,7 @@ type DeleteFlavorResp struct {
|
|||
}
|
||||
|
||||
type ListImagesReq struct {
|
||||
Limit int32 `form:"limit,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListImagesResp struct {
|
||||
|
@ -3179,7 +3178,7 @@ type CreateImageResp struct {
|
|||
|
||||
type UploadOsImageReq struct {
|
||||
ImageId string `form:"image_id" copier:"ImageId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type UploadOsImageResp struct {
|
||||
|
@ -3190,7 +3189,7 @@ type UploadOsImageResp struct {
|
|||
|
||||
type DeleteImageReq struct {
|
||||
ImageId string `form:"image_id" copier:"ImageId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type DeleteImageResp struct {
|
||||
|
@ -3214,7 +3213,7 @@ type ImageNum struct {
|
|||
}
|
||||
|
||||
type ListNetworksReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListNetworksResp struct {
|
||||
|
@ -3254,7 +3253,7 @@ type Network struct {
|
|||
|
||||
type DeleteNetworkReq struct {
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type DeleteNetworkResp struct {
|
||||
|
@ -3265,7 +3264,7 @@ type DeleteNetworkResp struct {
|
|||
|
||||
type CreateNetworkReq struct {
|
||||
Network CreateNetwork `json:"network" copier:"Network"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type CreateNetworkResp struct {
|
||||
|
@ -3283,7 +3282,7 @@ type CreateNetwork struct {
|
|||
|
||||
type CreateSubnetReq struct {
|
||||
Subnet Subnet `json:"subnet" copier:"Subnet"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type CreateSubnetResp struct {
|
||||
|
@ -3338,7 +3337,7 @@ type Allocation_pools struct {
|
|||
|
||||
type ShowNetworkDetailsReq struct {
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ShowNetworkDetailsResp struct {
|
||||
|
@ -3377,7 +3376,7 @@ type Networkdetail struct {
|
|||
type UpdateNetworkReq struct {
|
||||
NetworkId string `form:"network_id" copier:"NetworkId"`
|
||||
Network Network `json:"network" copier:"Network"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type UpdateNetworkResp struct {
|
||||
|
@ -3402,7 +3401,7 @@ type BulkCreateNetworksResp struct {
|
|||
type ListSubnetsReq struct {
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListSubnetsResp struct {
|
||||
|
@ -3444,7 +3443,7 @@ type Allocation_pool struct {
|
|||
|
||||
type DeleteSubnetReq struct {
|
||||
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 {
|
||||
|
@ -3455,7 +3454,7 @@ type DeleteSubnetResp struct {
|
|||
|
||||
type UpdateSubnetReq struct {
|
||||
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 {
|
||||
|
@ -3500,7 +3499,7 @@ type Used struct {
|
|||
type ListNetworkSegmentRangesReq struct {
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListNetworkSegmentRangesResp struct {
|
||||
|
@ -3530,7 +3529,7 @@ type Network_segment_ranges struct {
|
|||
|
||||
type DeleteNetworkSegmentRangesReq struct {
|
||||
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 {
|
||||
|
@ -3542,7 +3541,7 @@ type DeleteNetworkSegmentRangesResp struct {
|
|||
type UpdateNetworkSegmentRangesReq struct {
|
||||
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"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
|
||||
type UpdateNetworkSegmentRangesResp struct {
|
||||
|
@ -3614,7 +3613,7 @@ type CreatePortResp struct {
|
|||
type ListPortsReq struct {
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListPortsResp struct {
|
||||
|
@ -3673,7 +3672,7 @@ type Fixed_ips struct {
|
|||
|
||||
type DeletePortReq struct {
|
||||
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 {
|
||||
|
@ -3685,7 +3684,7 @@ type DeletePortResp struct {
|
|||
type UpdatePortReq struct {
|
||||
Port_id string `json:"port_id,optional" copier:"port_id"`
|
||||
Port Port `json:"port,optional" copier:"port"`
|
||||
Platform string `json:"platform,optional" copier:"platform"`
|
||||
Platform string `form:"platform,optional" copier:"platform"`
|
||||
}
|
||||
|
||||
type UpdatePortResp struct {
|
||||
|
@ -3698,7 +3697,7 @@ type UpdatePortResp struct {
|
|||
type ShowPortDetailsReq struct {
|
||||
Port_id string `json:"port_id,optional" copier:"port_id"`
|
||||
Fields string `json:"fields,optional" copier:"fields"`
|
||||
Platform string `json:"platform,optional" copier:"platform"`
|
||||
Platform string `form:"platform,optional" copier:"platform"`
|
||||
}
|
||||
|
||||
type ShowPortDetailsResp struct {
|
||||
|
@ -3711,7 +3710,7 @@ type ShowPortDetailsResp struct {
|
|||
type ListRoutersReq struct {
|
||||
Limit int32 `json:"limit,optional"`
|
||||
OffSet int32 `json:"offSet,optional"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListRoutersResp struct {
|
||||
|
@ -3805,7 +3804,7 @@ type Router struct {
|
|||
|
||||
type UpdateRouterReq struct {
|
||||
Router Router `json:"router,optional" copier:"router"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
|
||||
type UpdateRouterResp struct {
|
||||
|
@ -3817,7 +3816,7 @@ type UpdateRouterResp struct {
|
|||
|
||||
type ShowRouterDetailsReq struct {
|
||||
Router Router `json:"router,optional" copier:"router"`
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
|
||||
type ShowRouterDetailsResp struct {
|
||||
|
@ -3828,7 +3827,7 @@ type ShowRouterDetailsResp 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"`
|
||||
}
|
||||
|
||||
|
@ -3839,7 +3838,7 @@ type DeleteRouterResp 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"`
|
||||
OffSet int32 `json:"offSet,optional" copier:"OffSet"`
|
||||
}
|
||||
|
@ -3926,7 +3925,7 @@ type Floatingip 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 Floatingip `json:"floatingip,optional" copier:"floatingip"`
|
||||
}
|
||||
|
@ -3939,7 +3938,7 @@ type UpdateFloatingIPResp 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"`
|
||||
}
|
||||
|
||||
|
@ -3962,7 +3961,7 @@ type ShowFloatingIPDetailsResp 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"`
|
||||
}
|
||||
|
||||
|
@ -3989,7 +3988,7 @@ type Firewall_groups struct {
|
|||
|
||||
type DeleteFirewallGroupReq struct {
|
||||
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 {
|
||||
|
@ -4026,7 +4025,7 @@ type Firewall_group struct {
|
|||
|
||||
type UpdateFirewallGroupReq struct {
|
||||
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"`
|
||||
}
|
||||
|
||||
|
@ -4038,7 +4037,7 @@ type UpdateFirewallGroupResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4073,7 +4072,7 @@ type Firewall_policy 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"`
|
||||
}
|
||||
|
||||
|
@ -4084,7 +4083,7 @@ type DeleteFirewallPolicyResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4150,7 +4149,7 @@ type Firewall_rule 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"`
|
||||
}
|
||||
|
||||
|
@ -4161,7 +4160,7 @@ type DeleteFirewallRuleResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4192,7 +4191,7 @@ type Firewall_rules 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"`
|
||||
}
|
||||
|
||||
|
@ -4204,7 +4203,7 @@ type ShowFirewallRuleDetailsResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4230,7 +4229,7 @@ type Security_groups 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"`
|
||||
}
|
||||
|
||||
|
@ -4277,7 +4276,7 @@ type Security_group_rules 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"`
|
||||
}
|
||||
|
||||
|
@ -4288,7 +4287,7 @@ type DeleteSecurityGroupResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4300,7 +4299,7 @@ type UpdateSecurityGroupResp 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"`
|
||||
Fields string `json:"fields,optional" copier:"fields"`
|
||||
Verbose string `json:"verbose,optional" copier:"verbose"`
|
||||
|
@ -4314,7 +4313,7 @@ type ShowSecurityGroupResp struct {
|
|||
}
|
||||
|
||||
type ListSecurityGroupRulesReq struct {
|
||||
Platform string `json:"platform,optional" copier:"Platform"`
|
||||
Platform string `form:"platform,optional" copier:"Platform"`
|
||||
}
|
||||
|
||||
type ListSecurityGroupRulesResp struct {
|
||||
|
@ -4356,7 +4355,7 @@ type Security_group_rule 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"`
|
||||
}
|
||||
|
||||
|
@ -4368,7 +4367,7 @@ type ShowSecurityGroupRuleResp 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"`
|
||||
}
|
||||
|
||||
|
@ -4380,7 +4379,7 @@ type DeleteSecurityGroupRuleResp struct {
|
|||
}
|
||||
|
||||
type ListVolumesDetailReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListVolumesDetailResp struct {
|
||||
|
@ -4414,7 +4413,7 @@ type DeleteVolumeReq struct {
|
|||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||
Cascade bool `json:"cascade" copier:"Cascade"`
|
||||
Force bool `json:"force" copier:"force"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type DeleteVolumeResp struct {
|
||||
|
@ -4464,7 +4463,7 @@ type VolumeResp struct {
|
|||
}
|
||||
|
||||
type ListVolumeTypesReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListVolumeTypesResp struct {
|
||||
|
@ -4491,7 +4490,7 @@ type Extra_specs struct {
|
|||
type UpdateVolumeReq struct {
|
||||
Volume Volume `json:"volume" copier:"Volume"`
|
||||
VolumeId string `json:"volume_id" copier:"VolumeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type UpdateVolumeResp struct {
|
||||
|
@ -4503,7 +4502,7 @@ type UpdateVolumeResp struct {
|
|||
|
||||
type GetVolumeDetailedByIdReq struct {
|
||||
VolumeId string `form:"volume_id" copier:"VolumeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type GetVolumeDetailedByIdResp struct {
|
||||
|
@ -4555,7 +4554,7 @@ type VolumeType struct {
|
|||
|
||||
type DeleteVolumeTypeReq struct {
|
||||
VolumeTypeId string `json:"volume_type_id" copier:"VolumeTypeId"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type DeleteVolumeTypeResp struct {
|
||||
|
@ -4575,7 +4574,7 @@ type ListVolumesReq struct {
|
|||
CreatedAt string `json:"created_at" copier:"CreatedAt"`
|
||||
ConsumesQuota bool `json:"consumes_quota" copier:"ConsumesQuota"`
|
||||
UpdatedAt string `json:"updated_at" copier:"UpdatedAt"`
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListVolumesResp struct {
|
||||
|
@ -4592,7 +4591,7 @@ type VolumesList struct {
|
|||
}
|
||||
|
||||
type ListFlavorsDetailReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type ListFlavorsDetailResp struct {
|
||||
|
@ -4617,7 +4616,7 @@ type Flavors struct {
|
|||
}
|
||||
|
||||
type ListNodesReq struct {
|
||||
Platform string `json:"platform,optional"`
|
||||
Platform string `form:"platform,optional"`
|
||||
Limit int64 `json:"limit" copier:"Limit"`
|
||||
Marker string `json:"marker" copier:"Marker"`
|
||||
SortDir string `json:"sort_dir" copier:"SortDir"`
|
||||
|
|
Loading…
Reference in New Issue