Sander van Harmelen [Sat, 9 Nov 2019 09:37:53 +0000 (10:37 +0100)]
Merge pull request #123 from xanzy/svh/b-user-data
Unwrap the GetVirtualMachineUserData response
Sander van Harmelen [Wed, 6 Nov 2019 19:16:37 +0000 (20:16 +0100)]
Unwrap the GetVirtualMachineUserData response
Sander van Harmelen [Sun, 8 Sep 2019 07:22:41 +0000 (09:22 +0200)]
Tweak the solution just a little
Sander van Harmelen [Sun, 8 Sep 2019 07:25:02 +0000 (09:25 +0200)]
Merge pull request #119 from cezarsa/detailsencoding
Change details field encoding to match cloudstack expectations
Cezar Sa Espinola [Sat, 31 Aug 2019 13:45:42 +0000 (10:45 -0300)]
Change details field encoding to match cloudstack expectations
How the details field must be encoded changes depending on the command
implementation. Some commands allow arbitrary keys and some other
commands require only 2 keys to exist ('key' and 'value') and allow a
list of such key value pairs as the details field.
I wasn't able to find anything in the documentation that would make it
clear which encoding was required for each command and had to look at
cloudstack's code to figure this out.
Here is a list of the commands singled out in this commit and references
to the required encoding in cloudstack's code:
addGuestOs
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/admin/guest/AddGuestOsCmd.java#L88-L89
updateGuestOs
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/admin/guest/UpdateGuestOsCmd.java#L80-L81
addImageStore
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java#L90-L91
createSecondaryStagingStore
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java#L80
updateCloudToUseObjectStore
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/admin/storage/UpdateCloudToUseObjectStoreCmd.java#L84-L85
addResourceDetail
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/api/src/main/java/org/apache/cloudstack/api/command/user/volume/AddResourceDetailCmd.java#L68-L69
updateZone
https://github.com/apache/cloudstack/blob/
87c43501608a1df72a2f01ed17a522233e6617b0/server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java#L1866-L1867
Sander van Harmelen [Fri, 7 Jun 2019 06:47:02 +0000 (08:47 +0200)]
Merge pull request #116 from xanzy/svh/f-http-client
Introduce optional client configuration options
Sander van Harmelen [Wed, 5 Jun 2019 12:36:58 +0000 (14:36 +0200)]
Introduce optional client configuration options
Sander van Harmelen [Sun, 26 May 2019 09:54:53 +0000 (11:54 +0200)]
Merge pull request #114 from xanzy/svh/b-float64
Fix the type check to test for float64
Sander van Harmelen [Sun, 26 May 2019 09:54:01 +0000 (11:54 +0200)]
Fix the type check to test for float64
Sander van Harmelen [Sun, 26 May 2019 08:51:17 +0000 (10:51 +0200)]
Merge pull request #113 from xanzy/svh/f-cs-4.12
Update to support CloudStack 4.12.x.x
Sander van Harmelen [Fri, 10 May 2019 09:44:25 +0000 (11:44 +0200)]
Update to support CloudStack 4.12.x.x
Sander van Harmelen [Tue, 23 Apr 2019 12:38:34 +0000 (14:38 +0200)]
Merge pull request #112 from xanzy/svh/f-with-domain
Add a `WithDomain` helper to set `domainid` fields
Sander van Harmelen [Tue, 23 Apr 2019 12:34:54 +0000 (14:34 +0200)]
Add a `WithDomain` helper to set `domainid` fields
Sander van Harmelen [Mon, 24 Dec 2018 12:12:22 +0000 (13:12 +0100)]
Merge pull request #108 from xanzy/svh/b-http-client
Fix the transport so connections are managed correctly
Sander van Harmelen [Mon, 24 Dec 2018 12:09:13 +0000 (13:09 +0100)]
Fix the transport so connections are managed correctly
Sander van Harmelen [Mon, 24 Dec 2018 10:18:42 +0000 (11:18 +0100)]
Merge pull request #107 from xanzy/f-4.11.2.0
Update to support CloudStack 4.11
Sander van Harmelen [Sat, 22 Dec 2018 11:46:05 +0000 (12:46 +0100)]
Update to support CloudStack 4.11
And fix a few minor issues caused by PR #106
Sander van Harmelen [Sun, 16 Dec 2018 12:21:07 +0000 (13:21 +0100)]
Avoid embedded structs by generating new struct types (#106)
These changes are based on PR #104 contributed by @cezarsa! The result it the same, but the implementation is slightly different.
Thank you very much for your PR @cezarsa!
Closes #104
Ryan Hamilton [Fri, 12 Oct 2018 20:53:18 +0000 (13:53 -0700)]
Fixed typo within README.md (#102)
Cezar Sá Espinola [Mon, 27 Aug 2018 20:52:50 +0000 (17:52 -0300)]
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.
Sander van Harmelen [Wed, 23 May 2018 08:50:01 +0000 (10:50 +0200)]
Change synchronous boolean response to bool (#99)
The `success` fields in newer versions of CloudStack will use a `bool` value instead of a `string`, matching the behavious of asynchronious responses.
To make sure this change is backwards compatible the related types now have a custom `UnmarshalJSON` method that unmarshals the data (string or bool) into the new bool field.
Sander van Harmelen [Thu, 19 Apr 2018 19:16:51 +0000 (21:16 +0200)]
Make sure we treat `OutOfBandManagementResponse` correctly (#97)
Sander van Harmelen [Mon, 16 Apr 2018 11:55:48 +0000 (13:55 +0200)]
Add support for the login command
Sander van Harmelen [Tue, 20 Mar 2018 22:55:36 +0000 (23:55 +0100)]
Update the generated code using the correct layout
Sander van Harmelen [Tue, 20 Mar 2018 22:53:47 +0000 (23:53 +0100)]
Update layout to match CS 4.9.3
Sander van Harmelen [Tue, 20 Mar 2018 10:30:31 +0000 (11:30 +0100)]
Update the generated code
Sander van Harmelen [Tue, 20 Mar 2018 10:30:21 +0000 (11:30 +0100)]
Add option to generate code from a custom input file
Daniel Paul Carbone [Fri, 9 Feb 2018 05:04:21 +0000 (23:04 -0600)]
Generation updates:
- Allowing generation based on local "listApis" response
- Adding flag to prevent ",omitempty" on generated response models
- Changing "set" type from "[]string" to "[]interface{}"
- Adding "massageServices" function to facilitate manual cleanup of
somewhat...loose listApis response from cloudstack.
- Updating "cloudstack" package based on 4.8 api response
Sander van Harmelen [Mon, 19 Mar 2018 19:35:42 +0000 (20:35 +0100)]
Update to support CloudStack 4.9.3 (#91)
Sander van Harmelen [Sat, 13 Jan 2018 11:26:33 +0000 (12:26 +0100)]
Update encoding of 'details' maps (#86)
Update encoding of 'details' maps
Sander van Harmelen [Sat, 13 Jan 2018 11:25:49 +0000 (12:25 +0100)]
Allow setting default options (#85)
Using it looks like this:
```
// Create a new API client
cs := cloudstack.NewAsyncClient("https://cloudstack.company.com", "your-api-key", "your-api-secret", false)
// Set an option
cs.DefaultOptions(WithProject(“project”))
// Or set multiple options
cs.DefautlOptions(WithProject(“project”), WithVPCID(“xxxx”))
```
Sander van Harmelen [Thu, 5 Oct 2017 09:31:45 +0000 (11:31 +0200)]
Tweak the CustomService (#83)
André Carvalho [Thu, 5 Oct 2017 09:09:34 +0000 (06:09 -0300)]
adds support for custom services (#82)
pdube [Mon, 2 Oct 2017 18:44:02 +0000 (14:44 -0400)]
Fixed responses for create user and register user keys (#81)
Sander van Harmelen [Sun, 24 Sep 2017 14:35:58 +0000 (16:35 +0200)]
Correctly unmarshal the `CreateAccountResponse` (#80)
Fixes #78
Sander van Harmelen [Fri, 25 Aug 2017 08:34:59 +0000 (10:34 +0200)]
Add an example of how to use the package (#74)
Sander van Harmelen [Thu, 11 May 2017 07:54:48 +0000 (09:54 +0200)]
Make sure the FirewallService works with old CS version (#72)
Sander van Harmelen [Wed, 26 Oct 2016 18:16:49 +0000 (20:16 +0200)]
Fix the authorizeSecurityGroup[In|E]gress responses (#69)
Sander van Harmelen [Mon, 24 Oct 2016 10:36:39 +0000 (12:36 +0200)]
Fix/improve #66 (#68)
Fixing it this way makes it cleaner to use/set the `usersecuritygrouplist` in clients using this, and keeps it simular in use compared to working with `serviceproviderlist` and `tags`.
Fixes #67
Sander van Harmelen [Sun, 23 Oct 2016 09:28:36 +0000 (11:28 +0200)]
Fix usersecuritygrouplist parameters (#66)
Sander van Harmelen [Wed, 28 Sep 2016 15:38:44 +0000 (17:38 +0200)]
Fix a bug in the createSecurityGroup call (#62) (#63)
Sander van Harmelen [Wed, 31 Aug 2016 14:38:59 +0000 (16:38 +0200)]
Fix a bug in the listAffinityGroup call (#61)
It reports the number of VirtualMachines in the groups as being the number of groups found.
Sander van Harmelen [Mon, 29 Aug 2016 09:53:18 +0000 (11:53 +0200)]
Fix a bug that created bad parameter names (#60)
When the parameter is called `type` we have to convert this to prevent using the reserved keyword `type` as a variable name. But we were doing it in a few other locations as well. That’s fixed now.
Sander van Harmelen [Thu, 28 Jul 2016 18:03:36 +0000 (20:03 +0200)]
Add a copy of the license file to the cloudstack package
Sander van Harmelen [Wed, 27 Jul 2016 11:02:17 +0000 (13:02 +0200)]
Fix the ListLoadBalancerRuleInstances response (#59)
This one can have two possible response types, depending on the query values used. By adding this, both types are supported.
Sander van Harmelen [Tue, 26 Jul 2016 17:27:01 +0000 (19:27 +0200)]
Improver helper function to retrieve ID (#58)
Sander van Harmelen [Wed, 18 May 2016 12:33:22 +0000 (14:33 +0200)]
Merge pull request #56 from svanharmelen/f-list-with-vpcid-option
Add an option to search with VPC ID
Sander van Harmelen [Wed, 18 May 2016 12:32:33 +0000 (14:32 +0200)]
Add an option to search with VPC ID
Sander van Harmelen [Mon, 2 May 2016 10:32:14 +0000 (12:32 +0200)]
Merge pull request #55 from svanharmelen/b-loadbalancerruleinstance-response
Fix issue #54
Sander van Harmelen [Mon, 2 May 2016 10:28:32 +0000 (12:28 +0200)]
Fix issue #54
This fixes issue #54 by adding some specific tweaks needed to handle
the `listLoadBalancerRuleInstances` response correctly.
Unfortunately the CloudStack API has a few strange corner
cases/inconsistencies that requires specific handling of certain calls.
Sander van Harmelen [Thu, 21 Apr 2016 14:52:44 +0000 (16:52 +0200)]
Merge pull request #53 from svanharmelen/f-project-support
Add better support for using projects with the helper functions
Sander van Harmelen [Thu, 21 Apr 2016 14:51:29 +0000 (16:51 +0200)]
Add better support for using projects with the helper functions
Sander van Harmelen [Tue, 19 Apr 2016 19:34:13 +0000 (21:34 +0200)]
Merge pull request #51 from svanharmelen/f-v50
Change repo layout and updated to latest version
Sander van Harmelen [Tue, 19 Apr 2016 19:28:38 +0000 (21:28 +0200)]
Make sure the FirewallService remains backwards compatible
Sander van Harmelen [Tue, 19 Apr 2016 13:38:59 +0000 (15:38 +0200)]
Generate packages based on latest API output
Also cleanup the old packages and make sure the the current package is
backwards compatible.
Sander van Harmelen [Fri, 29 Jan 2016 15:37:40 +0000 (16:37 +0100)]
Merge pull request #50 from Carles-Figuerola/f-createnetworkoffering
Add a special use case for CreateNetworkOffering
Carles Figuerola [Fri, 29 Jan 2016 15:32:55 +0000 (09:32 -0600)]
Add a special use case for CreateNetworkOffering
Sander van Harmelen [Fri, 29 Jan 2016 15:14:55 +0000 (16:14 +0100)]
Merge pull request #49 from svanharmelen/dev
Introduce a way to have specific key/value names
Sander van Harmelen [Fri, 29 Jan 2016 14:50:18 +0000 (15:50 +0100)]
Introduce a way to have specific key/value names
This is an alternative solution for PR #47.
By using this approach we don’t have to make any changes to the raw
output generated by the `listApis` API call (which is saved in the
`v43.go` and `v44.go` files).
So when we now want to generate code based on a new version, we only
have to paste the output of the `listApis` call info a new `vxx.go`
file and were good to go, without having to manually alter the file.
Next to all that’ it simple feels a little cleaner and more robust
:wink:
Sander van Harmelen [Fri, 29 Jan 2016 14:12:44 +0000 (15:12 +0100)]
Merge pull request #48 from svanharmelen/dev
Add a special use case for CreateServiceOffering
Sander van Harmelen [Fri, 29 Jan 2016 14:12:06 +0000 (15:12 +0100)]
Add a special use case for CreateServiceOffering
I tried to make this a more generic fix as it seems more API’s have
this pattern, but it seems CloudStack is just too inconsistent for this.
Fixes #44
Sander van Harmelen [Mon, 25 Jan 2016 17:03:51 +0000 (18:03 +0100)]
Merge pull request #45 from svanharmelen/Dev
Fix listAsyncJobs
Sander van Harmelen [Mon, 25 Jan 2016 17:03:37 +0000 (18:03 +0100)]
Fix listAsyncJobs
Sander van Harmelen [Thu, 3 Dec 2015 12:13:49 +0000 (13:13 +0100)]
Merge pull request #43 from svanharmelen/dev
Tweak the async logic
Sander van Harmelen [Thu, 3 Dec 2015 11:17:44 +0000 (12:17 +0100)]
Add a simple kind of exponential backoff feature for async clients
Sander van Harmelen [Mon, 30 Nov 2015 23:37:48 +0000 (00:37 +0100)]
Improve async job handling and increase default timeout
Sander van Harmelen [Wed, 25 Nov 2015 17:17:36 +0000 (18:17 +0100)]
Merge pull request #42 from svanharmelen/dev
Extend the ISO helper functions
Sander van Harmelen [Wed, 25 Nov 2015 17:16:09 +0000 (18:16 +0100)]
Extend the ISO helper functions
Sander van Harmelen [Tue, 13 Oct 2015 11:30:51 +0000 (13:30 +0200)]
Merge pull request #41 from svanharmelen/dev
Generate new code form files instead of API calls
Sander van Harmelen [Tue, 13 Oct 2015 11:26:32 +0000 (13:26 +0200)]
Generate new code form files instead of API calls
This release adds the possibility to generate updated packages based on
the files in this repo instead of needing actual access to a certain
CloudStack environment.
Sander van Harmelen [Tue, 13 Oct 2015 08:43:22 +0000 (10:43 +0200)]
Merge pull request #40 from svanharmelen/dev
Make closing the body a little more robust
Sander van Harmelen [Tue, 13 Oct 2015 08:29:48 +0000 (10:29 +0200)]
Make closing the body a little more robust
And with that also a little more idiomatic
Sander van Harmelen [Tue, 22 Sep 2015 10:27:29 +0000 (12:27 +0200)]
Merge pull request #39 from benjvi/http-timeout-and-retry
Added http request timeout & queryAsyncJobResult retry
Benjamin Vickers [Wed, 16 Sep 2015 11:43:57 +0000 (12:43 +0100)]
http request timeout & queryasynjob retry
Sander van Harmelen [Thu, 10 Sep 2015 11:03:49 +0000 (13:03 +0200)]
Merge pull request #38 from benjvi/list-apis-v43
add listApis response for v43
Benjamin Vickers [Thu, 10 Sep 2015 09:06:55 +0000 (10:06 +0100)]
add listApis response for v43
Sander van Harmelen [Mon, 7 Sep 2015 13:13:34 +0000 (15:13 +0200)]
Merge pull request #37 from svanharmelen/dev
Add listApis response for v44
Sander van Harmelen [Mon, 7 Sep 2015 13:12:25 +0000 (15:12 +0200)]
Add listApis response for v44
Sander van Harmelen [Sun, 6 Sep 2015 11:10:42 +0000 (13:10 +0200)]
Merge pull request #36 from glenjamin/master
Capitalise the k in apiKey, as some api handlers require this
Glen Mailer [Sun, 6 Sep 2015 10:01:15 +0000 (11:01 +0100)]
Capitalise the k in apiKey, as some api handlers require this
Sander van Harmelen [Thu, 16 Jul 2015 16:11:13 +0000 (18:11 +0200)]
Merge pull request #34 from svanharmelen/dev
Adding a special case for secondary IPs
Sander van Harmelen [Thu, 16 Jul 2015 16:10:53 +0000 (18:10 +0200)]
Adding a special case for secondary IPs
Sander van Harmelen [Wed, 15 Jul 2015 08:38:38 +0000 (10:38 +0200)]
Merge pull request #33 from svanharmelen/dev
Export the HTTPGETOnly field for direct access
Sander van Harmelen [Wed, 15 Jul 2015 08:37:35 +0000 (10:37 +0200)]
Export the HTTPGETOnly field for direct access
As you would need both read and write access, it makes sense to just
export the field instead of writing a getter and setter.
Sander van Harmelen [Wed, 15 Jul 2015 08:20:34 +0000 (10:20 +0200)]
Merge pull request #32 from svanharmelen/dev
Add option to only use HTTP GET calls
Sander van Harmelen [Wed, 15 Jul 2015 08:19:18 +0000 (10:19 +0200)]
Add option to only use HTTP GET calls
Sander van Harmelen [Fri, 12 Jun 2015 17:45:18 +0000 (19:45 +0200)]
Merge pull request #29 from benjvi/update-cloudstack-43
Generate v4.3 code for getID projects update
Benjamin Vickers [Fri, 12 Jun 2015 15:14:29 +0000 (16:14 +0100)]
gen. v4.3 code for id projects update
Sander van Harmelen [Tue, 9 Jun 2015 09:22:20 +0000 (11:22 +0200)]
Merge pull request #28 from svanharmelen/dev
Make the GetXXXID also search projects
Sander van Harmelen [Tue, 9 Jun 2015 09:21:32 +0000 (11:21 +0200)]
Make the GetXXXID also search projects
Sander van Harmelen [Mon, 8 Jun 2015 15:31:11 +0000 (17:31 +0200)]
Merge pull request #27 from svanharmelen/dev
Generated packages based on latests fixes...
Sander van Harmelen [Mon, 8 Jun 2015 15:30:55 +0000 (17:30 +0200)]
Generated packages based on latests fixes...
Sander van Harmelen [Mon, 8 Jun 2015 15:24:34 +0000 (17:24 +0200)]
Merge pull request #26 from benjvi/listNetworks
Fixes for API requests that contain maps and lists
Benjamin Vickers [Fri, 8 May 2015 16:18:33 +0000 (17:18 +0100)]
dont encrypt param keys when making cloudstack requests
Generate cloudstack43 code
Benjamin Vickers [Fri, 8 May 2015 14:06:22 +0000 (15:06 +0100)]
Remove extraneous space breaking list values in requests
Sander van Harmelen [Wed, 3 Jun 2015 08:30:56 +0000 (10:30 +0200)]
Merge pull request #25 from svanharmelen/dev
Generated the packages using on the last updates
Sander van Harmelen [Wed, 3 Jun 2015 08:30:35 +0000 (10:30 +0200)]
Generated the packages using on the last updates
Sander van Harmelen [Tue, 2 Jun 2015 19:23:34 +0000 (21:23 +0200)]
Merge pull request #24 from benjvi/postuserdataupdate
updateVirtualMachine should use POST
Sander van Harmelen [Sat, 30 May 2015 18:50:23 +0000 (20:50 +0200)]
Merge pull request #23 from benjvi/project-generate-cloudstack43
Generate cloudstack43 services including latest updates
Benjamin Vickers [Fri, 29 May 2015 14:09:12 +0000 (15:09 +0100)]
Generate cloudstack43 services including latest updates