Skip to content

Commit

Permalink
fix #4: only work on 4.15 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdion891 committed Aug 27, 2021
1 parent 8af9694 commit 46b776e
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions cloudstack/HostService.go
Expand Up @@ -189,7 +189,7 @@ type AddBaremetalHostResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -204,7 +204,7 @@ type AddBaremetalHostResponse struct {
Gpugroup []AddBaremetalHostResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -511,7 +511,7 @@ type AddHostResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -526,7 +526,7 @@ type AddHostResponse struct {
Gpugroup []AddHostResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -728,7 +728,7 @@ type CancelHostMaintenanceResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -743,7 +743,7 @@ type CancelHostMaintenanceResponse struct {
Gpugroup []CancelHostMaintenanceResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -1269,7 +1269,7 @@ type FindHostsForMigrationResponse struct {
JobID string `json:"jobid"`
Jobstatus int `json:"jobstatus"`
Lastpinged string `json:"lastpinged"`
Managementserverid int64 `json:"managementserverid"`
Managementserverid string `json:"managementserverid"`
Memoryallocated string `json:"memoryallocated"`
Memoryallocatedbytes int64 `json:"memoryallocatedbytes"`
Memoryallocatedpercentage string `json:"memoryallocatedpercentage"`
Expand Down Expand Up @@ -1841,7 +1841,7 @@ type Host struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -1856,7 +1856,7 @@ type Host struct {
Gpugroup []HostGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -1910,6 +1910,11 @@ type HostGpugroupVgpu struct {
Videoram int64 `json:"videoram"`
}

type HostHostha struct {
Haenable bool `json:"haenable"`
Hastate string `json:"hastate"`
}

type ListHostsMetricsParams struct {
p map[string]interface{}
}
Expand Down Expand Up @@ -2222,7 +2227,7 @@ type HostsMetric struct {
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpudisablethreshold bool `json:"cpudisablethreshold"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -2240,7 +2245,7 @@ type HostsMetric struct {
Gpugroup []HostsMetricGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -2381,7 +2386,7 @@ type PrepareHostForMaintenanceResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -2396,7 +2401,7 @@ type PrepareHostForMaintenanceResponse struct {
Gpugroup []PrepareHostForMaintenanceResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -2526,7 +2531,7 @@ type ReconnectHostResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -2541,7 +2546,7 @@ type ReconnectHostResponse struct {
Gpugroup []ReconnectHostResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down Expand Up @@ -2848,7 +2853,7 @@ type UpdateHostResponse struct {
Cpuallocatedpercentage string `json:"cpuallocatedpercentage"`
Cpuallocatedvalue int64 `json:"cpuallocatedvalue"`
Cpuallocatedwithoverprovisioning string `json:"cpuallocatedwithoverprovisioning"`
Cpuloadaverage string `json:"cpuloadaverage"`
Cpuloadaverage float64 `json:"cpuloadaverage"`
Cpunumber int `json:"cpunumber"`
Cpusockets int `json:"cpusockets"`
Cpuspeed int64 `json:"cpuspeed"`
Expand All @@ -2863,7 +2868,7 @@ type UpdateHostResponse struct {
Gpugroup []UpdateHostResponseGpugroup `json:"gpugroup"`
Hahost bool `json:"hahost"`
Hasenoughcapacity bool `json:"hasenoughcapacity"`
Hostha string `json:"hostha"`
Hostha HostHostha `json:"hostha"`
Hosttags string `json:"hosttags"`
Hypervisor string `json:"hypervisor"`
Hypervisorversion string `json:"hypervisorversion"`
Expand Down

0 comments on commit 46b776e

Please sign in to comment.