Skip to content
Permalink
Browse files
Update to support CloudStack 4.11
And fix a few minor issues caused by PR #106
  • Loading branch information
Sander van Harmelen committed Dec 22, 2018
1 parent 433f6cc commit 06356a3f821022e58a4942c9d40f3099c1a1d740
Showing 52 changed files with 55,507 additions and 58,645 deletions.
@@ -6,11 +6,11 @@ A CloudStack API client enabling Go programs to interact with CloudStack in a si

This package covers the complete CloudStack API and is well tested. Of course there will still be untested corner cases when you have over 400 API commands that you can use, but over all it's safe to use this package.

To be able to find the API command you want, they are grouped by 'services' which match the grouping you can see/find on the [CloudStack API docs](http://cloudstack.apache.org/docs/api/apidocs-4.8/TOC_Root_Admin.html) website.
To be able to find the API command you want, they are grouped by 'services' which match the grouping you can see/find on the [CloudStack API docs](http://cloudstack.apache.org/docs/api/apidocs-4.11/TOC_Root_Admin.html) website.

## Usage

The cloudstack package is always generated against the latest stable CloudStack release (currently v4.8.x). Luckily the API doesn't change that much, and were it does we try to make sure the generated package is able handle both the old and the new case. Over time it will be impossible to support all version with just one package, but until now we seem to manage this pretty well.
The cloudstack package is always generated against the latest stable CloudStack release (currently v4.11.x). Luckily the API doesn't change that much, and were it does we try to make sure the generated package is able handle both the old and the new case. Over time it will be impossible to support all version with just one package, but until now we seem to manage this pretty well.

Please see the package documentation on [GoDocs](http://godoc.org/github.com/xanzy/go-cloudstack/cloudstack).

@@ -398,6 +398,7 @@ type CreateAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type DeleteAccountParams struct {
@@ -730,6 +731,7 @@ type DisableAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type EnableAccountParams struct {
@@ -880,6 +882,7 @@ type EnableAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type GetSolidFireAccountIdParams struct {
@@ -1275,6 +1278,7 @@ type AccountUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type ListProjectAccountsParams struct {
@@ -1424,52 +1428,53 @@ 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 float64 `json:"secondarystoragetotal"`
Snapshotavailable string `json:"snapshotavailable"`
Snapshotlimit string `json:"snapshotlimit"`
Snapshottotal int64 `json:"snapshottotal"`
State string `json:"state"`
Tags []ProjectAccountTags `json:"tags"`
Templateavailable string `json:"templateavailable"`
Templatelimit string `json:"templatelimit"`
Templatetotal int64 `json:"templatetotal"`
Vmavailable string `json:"vmavailable"`
Vmlimit string `json:"vmlimit"`
Vmrunning int `json:"vmrunning"`
Vmstopped int `json:"vmstopped"`
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 ProjectAccountTags 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"`
Projectaccountname string `json:"projectaccountname"`
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 []Tags `json:"tags"`
Templateavailable string `json:"templateavailable"`
Templatelimit string `json:"templatelimit"`
Templatetotal int64 `json:"templatetotal"`
Vmavailable string `json:"vmavailable"`
Vmlimit string `json:"vmlimit"`
Vmrunning int `json:"vmrunning"`
Vmstopped int `json:"vmstopped"`
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 Tags struct {
Account string `json:"account"`
Customer string `json:"customer"`
Domain string `json:"domain"`
@@ -1621,6 +1626,7 @@ type LockAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type MarkDefaultZoneForAccountParams struct {
@@ -1795,6 +1801,7 @@ type MarkDefaultZoneForAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

type UpdateAccountParams struct {
@@ -1984,4 +1991,5 @@ type UpdateAccountResponseUser struct {
State string `json:"state"`
Timezone string `json:"timezone"`
Username string `json:"username"`
Usersource string `json:"usersource"`
}

0 comments on commit 06356a3

Please sign in to comment.