Skip to content
Permalink
Browse files
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.
  • Loading branch information
cezarsa authored and Sander van Harmelen committed Aug 27, 2018
1 parent 50cce66 commit a833aae31566d0d93bc0729bf9265a3df3ed24c9
Showing 6 changed files with 380 additions and 378 deletions.
@@ -354,7 +354,7 @@ type CreateAccountResponse struct {
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 @@ type DisableAccountResponse struct {
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 @@ type EnableAccountResponse struct {
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 @@ type Account struct {
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 ListProjectAccountsResponse struct {
}

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 @@ type LockAccountResponse struct {
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 @@ type MarkDefaultZoneForAccountResponse struct {
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 @@ type UpdateAccountResponse struct {
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"`

0 comments on commit a833aae

Please sign in to comment.