Update secondarystoragetotal field to float64 for Cloudstack 4.11.1.0 (#101)
After Cloudstack 4.11.1.0 the secondarystoragetotal field was changed
from Long to Float in Cloudstack in apache/cloudstack#2439.
Changing this in the generated client seems safe and backward compatible
because long values will still be parsed correctly as a float64.
diff --git a/cloudstack/AccountService.go b/cloudstack/AccountService.go
index a24e1e2..19f3177 100644
--- a/cloudstack/AccountService.go
+++ b/cloudstack/AccountService.go
@@ -354,7 +354,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -684,7 +684,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -832,7 +832,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -1225,7 +1225,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -1416,34 +1416,34 @@
}
type ProjectAccount struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
@@ -1567,7 +1567,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -1739,7 +1739,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
@@ -1926,7 +1926,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
diff --git a/cloudstack/DomainService.go b/cloudstack/DomainService.go
index 114058f..4e1e675 100644
--- a/cloudstack/DomainService.go
+++ b/cloudstack/DomainService.go
@@ -105,51 +105,51 @@
}
type CreateDomainResponse struct {
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Haschild bool `json:"haschild"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Level int `json:"level"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networkdomain string `json:"networkdomain"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Parentdomainid string `json:"parentdomainid"`
- Parentdomainname string `json:"parentdomainname"`
- Path string `json:"path"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectavailable string `json:"projectavailable"`
- Projectlimit string `json:"projectlimit"`
- Projecttotal int64 `json:"projecttotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Haschild bool `json:"haschild"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Level int `json:"level"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networkdomain string `json:"networkdomain"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Parentdomainid string `json:"parentdomainid"`
+ Parentdomainname string `json:"parentdomainname"`
+ Path string `json:"path"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectavailable string `json:"projectavailable"`
+ Projectlimit string `json:"projectlimit"`
+ Projecttotal int64 `json:"projecttotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type DeleteDomainParams struct {
@@ -437,51 +437,51 @@
}
type DomainChildren struct {
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Haschild bool `json:"haschild"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Level int `json:"level"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networkdomain string `json:"networkdomain"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Parentdomainid string `json:"parentdomainid"`
- Parentdomainname string `json:"parentdomainname"`
- Path string `json:"path"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectavailable string `json:"projectavailable"`
- Projectlimit string `json:"projectlimit"`
- Projecttotal int64 `json:"projecttotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Haschild bool `json:"haschild"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Level int `json:"level"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networkdomain string `json:"networkdomain"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Parentdomainid string `json:"parentdomainid"`
+ Parentdomainname string `json:"parentdomainname"`
+ Path string `json:"path"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectavailable string `json:"projectavailable"`
+ Projectlimit string `json:"projectlimit"`
+ Projecttotal int64 `json:"projecttotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type ListDomainsParams struct {
@@ -689,51 +689,51 @@
}
type Domain struct {
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Haschild bool `json:"haschild"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Level int `json:"level"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networkdomain string `json:"networkdomain"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Parentdomainid string `json:"parentdomainid"`
- Parentdomainname string `json:"parentdomainname"`
- Path string `json:"path"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectavailable string `json:"projectavailable"`
- Projectlimit string `json:"projectlimit"`
- Projecttotal int64 `json:"projecttotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Haschild bool `json:"haschild"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Level int `json:"level"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networkdomain string `json:"networkdomain"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Parentdomainid string `json:"parentdomainid"`
+ Parentdomainname string `json:"parentdomainname"`
+ Path string `json:"path"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectavailable string `json:"projectavailable"`
+ Projectlimit string `json:"projectlimit"`
+ Projecttotal int64 `json:"projecttotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
type UpdateDomainParams struct {
@@ -806,49 +806,49 @@
}
type UpdateDomainResponse struct {
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Haschild bool `json:"haschild"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Level int `json:"level"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networkdomain string `json:"networkdomain"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Parentdomainid string `json:"parentdomainid"`
- Parentdomainname string `json:"parentdomainname"`
- Path string `json:"path"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Projectavailable string `json:"projectavailable"`
- Projectlimit string `json:"projectlimit"`
- Projecttotal int64 `json:"projecttotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
- Templateavailable string `json:"templateavailable"`
- Templatelimit string `json:"templatelimit"`
- Templatetotal int64 `json:"templatetotal"`
- Vmavailable string `json:"vmavailable"`
- Vmlimit string `json:"vmlimit"`
- Vmtotal int64 `json:"vmtotal"`
- Volumeavailable string `json:"volumeavailable"`
- Volumelimit string `json:"volumelimit"`
- Volumetotal int64 `json:"volumetotal"`
- Vpcavailable string `json:"vpcavailable"`
- Vpclimit string `json:"vpclimit"`
- Vpctotal int64 `json:"vpctotal"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Haschild bool `json:"haschild"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Level int `json:"level"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networkdomain string `json:"networkdomain"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Parentdomainid string `json:"parentdomainid"`
+ Parentdomainname string `json:"parentdomainname"`
+ Path string `json:"path"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Projectavailable string `json:"projectavailable"`
+ Projectlimit string `json:"projectlimit"`
+ Projecttotal int64 `json:"projecttotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
+ Templateavailable string `json:"templateavailable"`
+ Templatelimit string `json:"templatelimit"`
+ Templatetotal int64 `json:"templatetotal"`
+ Vmavailable string `json:"vmavailable"`
+ Vmlimit string `json:"vmlimit"`
+ Vmtotal int64 `json:"vmtotal"`
+ Volumeavailable string `json:"volumeavailable"`
+ Volumelimit string `json:"volumelimit"`
+ Volumetotal int64 `json:"volumetotal"`
+ Vpcavailable string `json:"vpcavailable"`
+ Vpclimit string `json:"vpclimit"`
+ Vpctotal int64 `json:"vpctotal"`
}
diff --git a/cloudstack/LDAPService.go b/cloudstack/LDAPService.go
index 1188d20..9b2a542 100644
--- a/cloudstack/LDAPService.go
+++ b/cloudstack/LDAPService.go
@@ -648,7 +648,7 @@
Roletype string `json:"roletype"`
Secondarystorageavailable string `json:"secondarystorageavailable"`
Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
Sentbytes int64 `json:"sentbytes"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
diff --git a/cloudstack/ProjectService.go b/cloudstack/ProjectService.go
index 926ddcf..34f6ed7 100644
--- a/cloudstack/ProjectService.go
+++ b/cloudstack/ProjectService.go
@@ -92,35 +92,35 @@
}
type ActivateProjectResponse struct {
- JobID string `json:"jobid"`
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ JobID string `json:"jobid"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
@@ -251,35 +251,35 @@
}
type CreateProjectResponse struct {
- JobID string `json:"jobid"`
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ JobID string `json:"jobid"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
@@ -919,34 +919,34 @@
}
type Project struct {
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
@@ -1043,35 +1043,35 @@
}
type SuspendProjectResponse struct {
- JobID string `json:"jobid"`
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ JobID string `json:"jobid"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
@@ -1190,35 +1190,35 @@
}
type UpdateProjectResponse struct {
- JobID string `json:"jobid"`
- Account string `json:"account"`
- Cpuavailable string `json:"cpuavailable"`
- Cpulimit string `json:"cpulimit"`
- Cputotal int64 `json:"cputotal"`
- Displaytext string `json:"displaytext"`
- Domain string `json:"domain"`
- Domainid string `json:"domainid"`
- Id string `json:"id"`
- Ipavailable string `json:"ipavailable"`
- Iplimit string `json:"iplimit"`
- Iptotal int64 `json:"iptotal"`
- Memoryavailable string `json:"memoryavailable"`
- Memorylimit string `json:"memorylimit"`
- Memorytotal int64 `json:"memorytotal"`
- Name string `json:"name"`
- Networkavailable string `json:"networkavailable"`
- Networklimit string `json:"networklimit"`
- Networktotal int64 `json:"networktotal"`
- Primarystorageavailable string `json:"primarystorageavailable"`
- Primarystoragelimit string `json:"primarystoragelimit"`
- Primarystoragetotal int64 `json:"primarystoragetotal"`
- Secondarystorageavailable string `json:"secondarystorageavailable"`
- Secondarystoragelimit string `json:"secondarystoragelimit"`
- Secondarystoragetotal int64 `json:"secondarystoragetotal"`
- Snapshotavailable string `json:"snapshotavailable"`
- Snapshotlimit string `json:"snapshotlimit"`
- Snapshottotal int64 `json:"snapshottotal"`
- State string `json:"state"`
+ JobID string `json:"jobid"`
+ Account string `json:"account"`
+ Cpuavailable string `json:"cpuavailable"`
+ Cpulimit string `json:"cpulimit"`
+ Cputotal int64 `json:"cputotal"`
+ Displaytext string `json:"displaytext"`
+ Domain string `json:"domain"`
+ Domainid string `json:"domainid"`
+ Id string `json:"id"`
+ Ipavailable string `json:"ipavailable"`
+ Iplimit string `json:"iplimit"`
+ Iptotal int64 `json:"iptotal"`
+ Memoryavailable string `json:"memoryavailable"`
+ Memorylimit string `json:"memorylimit"`
+ Memorytotal int64 `json:"memorytotal"`
+ Name string `json:"name"`
+ Networkavailable string `json:"networkavailable"`
+ Networklimit string `json:"networklimit"`
+ Networktotal int64 `json:"networktotal"`
+ Primarystorageavailable string `json:"primarystorageavailable"`
+ Primarystoragelimit string `json:"primarystoragelimit"`
+ Primarystoragetotal int64 `json:"primarystoragetotal"`
+ Secondarystorageavailable string `json:"secondarystorageavailable"`
+ Secondarystoragelimit string `json:"secondarystoragelimit"`
+ Secondarystoragetotal float64 `json:"secondarystoragetotal"`
+ Snapshotavailable string `json:"snapshotavailable"`
+ Snapshotlimit string `json:"snapshotlimit"`
+ Snapshottotal int64 `json:"snapshottotal"`
+ State string `json:"state"`
Tags []struct {
Account string `json:"account"`
Customer string `json:"customer"`
diff --git a/generate/generate.go b/generate/generate.go
index a441efb..9201532 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -1403,6 +1403,8 @@
return "int"
case "long":
return "int64"
+ case "float":
+ return "float64"
case "list":
return "[]string"
case "map":
diff --git a/generate/listApis.json b/generate/listApis.json
index 98a5c3b..b726a7e 100644
--- a/generate/listApis.json
+++ b/generate/listApis.json
@@ -443,7 +443,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the list of users associated with account",
@@ -8479,7 +8479,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of network traffic bytes received",
@@ -20300,7 +20300,7 @@
{
"description": "the total secondary storage space (in GiB) owned by domain",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of virtual machines deployed by this domain",
@@ -21411,7 +21411,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of cpu cores owned by project",
@@ -21891,7 +21891,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of cpu cores the account can own",
@@ -29186,7 +29186,7 @@
{
"description": "the total secondary storage space (in GiB) owned by domain",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the path of the domain",
@@ -37326,7 +37326,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the network domain",
@@ -37743,7 +37743,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total volume being used by this account",
@@ -38320,7 +38320,7 @@
{
"description": "the total secondary storage space (in GiB) owned by domain",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of virtual machines available for this domain to acquire",
@@ -50766,7 +50766,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total secondary storage space (in GiB) the project can own",
@@ -51284,7 +51284,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "true if account is default, false otherwise",
@@ -55297,7 +55297,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of vpcs the project can own",
@@ -61374,7 +61374,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of snapshots available for this project",
@@ -72539,7 +72539,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the list of resource tags associated with vm",
@@ -74966,7 +74966,7 @@
{
"description": "the total secondary storage space (in GiB) owned by domain",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total primary storage space (in GiB) available to be used for this domain",
@@ -79200,7 +79200,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of projects available for administration by this account",
@@ -81843,7 +81843,7 @@
{
"description": "the total secondary storage space (in GiB) owned by project",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total secondary storage space (in GiB) available to be used for this project",
@@ -82660,7 +82660,7 @@
{
"description": "the total secondary storage space (in GiB) owned by account",
"name": "secondarystoragetotal",
- "type": "long"
+ "type": "float"
},
{
"description": "the total number of virtual machines running for this account",