diff --git a/api/desc/core/pcm-core.api b/api/desc/core/pcm-core.api index c3063b85..a61f1a35 100644 --- a/api/desc/core/pcm-core.api +++ b/api/desc/core/pcm-core.api @@ -109,6 +109,7 @@ type ( ) type ( + commitVmTaskReq { Name string `json:"name"` NsID string `json:"nsID"` @@ -698,7 +699,8 @@ type clusterSumReq { } type clusterSumReqResp { - ClusterSum int `json:"ClusterSum,omitempty"` + PodSum int `json:"podSum,omitempty"` + VmSum int `json:"vmSum,omitempty"` AdapterSum int `json:"AdapterSum,omitempty"` TaskSum int `json:"TaskSum,omitempty"` } diff --git a/api/internal/logic/adapters/getclustersumlogic.go b/api/internal/logic/adapters/getclustersumlogic.go index 0659e3e1..4a934fed 100644 --- a/api/internal/logic/adapters/getclustersumlogic.go +++ b/api/internal/logic/adapters/getclustersumlogic.go @@ -28,7 +28,8 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type resp = &types.ClusterSumReqResp{} var AdapterSum int // - var ClusterSum int // + var podSum int // + var vmSum int // var TaskSum int // // 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) return nil, tx.Error } - // - sqlStrCluster := "SELECT COUNT(*) FROM `t_cluster`t where t.label ='openstack' || t.label='kubernetes'\n" - txCluster := l.svcCtx.DbEngin.Raw(sqlStrCluster).Scan(&ClusterSum) - if txCluster.Error != nil { + //vm + 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" + txClusterVm := l.svcCtx.DbEngin.Raw(sqlStrVm).Scan(&vmSum) + if txClusterVm.Error != nil { 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`" @@ -52,7 +60,8 @@ func (l *GetClusterSumLogic) GetClusterSum(req *types.ClusterSumReq) (resp *type return nil, txTask.Error } resp.TaskSum = TaskSum - resp.ClusterSum = ClusterSum + resp.VmSum = vmSum + resp.PodSum = podSum resp.AdapterSum = AdapterSum return resp, nil } diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 6f165681..074e9a0b 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -678,7 +678,8 @@ type ClusterSumReq struct { } type ClusterSumReqResp struct { - ClusterSum int `json:"ClusterSum,omitempty"` + PodSum int `json:"podSum,omitempty"` + VmSum int `json:"vmSum,omitempty"` AdapterSum int `json:"AdapterSum,omitempty"` TaskSum int `json:"TaskSum,omitempty"` } @@ -2589,7 +2590,7 @@ type Limits struct { } type GetComputeLimitsReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type GetComputeLimitsResp struct { @@ -2621,7 +2622,7 @@ type VolumeLimits struct { } type GetVolumeLimitsReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type GetVolumeLimitsResp struct { @@ -2634,7 +2635,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 { @@ -2663,7 +2664,7 @@ type Servers_links struct { } type ListServersDetailedReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type ListServersDetailedResp struct { @@ -2687,7 +2688,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 { @@ -2775,7 +2776,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 { @@ -2793,7 +2794,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 { @@ -2806,7 +2807,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 { @@ -2818,7 +2819,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 { @@ -2835,7 +2836,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 { @@ -2848,7 +2849,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 { @@ -2859,7 +2860,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 { @@ -2870,7 +2871,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 { @@ -2914,7 +2915,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"` } @@ -2989,7 +2990,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 { @@ -3000,7 +3001,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"` } @@ -3018,7 +3019,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"` } @@ -3032,7 +3033,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"` } @@ -3049,7 +3050,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"` } @@ -3063,7 +3064,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"` } @@ -3080,7 +3081,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"` } @@ -3116,7 +3117,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"` } @@ -3128,8 +3129,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 { @@ -3199,7 +3199,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 { @@ -3210,7 +3210,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 { @@ -3234,7 +3234,7 @@ type ImageNum struct { } type ListNetworksReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type ListNetworksResp struct { @@ -3274,7 +3274,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 { @@ -3285,7 +3285,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 { @@ -3303,7 +3303,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 { @@ -3358,7 +3358,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 { @@ -3397,7 +3397,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 { @@ -3422,7 +3422,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 { @@ -3464,7 +3464,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 { @@ -3475,7 +3475,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 { @@ -3520,7 +3520,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 { @@ -3550,7 +3550,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 { @@ -3562,7 +3562,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 { @@ -3634,7 +3634,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 { @@ -3693,7 +3693,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 { @@ -3705,7 +3705,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 { @@ -3718,7 +3718,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 { @@ -3731,7 +3731,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 { @@ -3825,7 +3825,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 { @@ -3837,7 +3837,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 { @@ -3848,7 +3848,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"` } @@ -3859,7 +3859,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"` } @@ -3946,7 +3946,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"` } @@ -3959,7 +3959,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"` } @@ -3982,7 +3982,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"` } @@ -4009,7 +4009,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 { @@ -4046,7 +4046,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"` } @@ -4058,7 +4058,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"` } @@ -4093,7 +4093,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"` } @@ -4104,7 +4104,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"` } @@ -4170,7 +4170,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"` } @@ -4181,7 +4181,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"` } @@ -4212,7 +4212,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"` } @@ -4224,7 +4224,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"` } @@ -4250,7 +4250,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"` } @@ -4297,7 +4297,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"` } @@ -4308,7 +4308,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"` } @@ -4320,7 +4320,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"` @@ -4334,7 +4334,7 @@ type ShowSecurityGroupResp struct { } type ListSecurityGroupRulesReq struct { - Platform string `json:"platform,optional" copier:"Platform"` + Platform string `form:"platform,optional" copier:"Platform"` } type ListSecurityGroupRulesResp struct { @@ -4376,7 +4376,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"` } @@ -4388,7 +4388,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"` } @@ -4400,7 +4400,7 @@ type DeleteSecurityGroupRuleResp struct { } type ListVolumesDetailReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type ListVolumesDetailResp struct { @@ -4434,7 +4434,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 { @@ -4484,7 +4484,7 @@ type VolumeResp struct { } type ListVolumeTypesReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type ListVolumeTypesResp struct { @@ -4511,7 +4511,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 { @@ -4523,7 +4523,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 { @@ -4575,7 +4575,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 { @@ -4595,7 +4595,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 { @@ -4612,7 +4612,7 @@ type VolumesList struct { } type ListFlavorsDetailReq struct { - Platform string `json:"platform,optional"` + Platform string `form:"platform,optional"` } type ListFlavorsDetailResp struct { @@ -4637,7 +4637,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"`