davidjumani [Mon, 29 Nov 2021 10:17:17 +0000 (15:47 +0530)]
Support 4.x compatibility (#23)
* handle type compatibilty for 4.x baseline
* fix CSLong to be more permissive and add unit test
* Rename CSLong to UUID
Co-authored-by: Xavier MARCELET <xavier.marcelet@orange.com>
Rohit Yadav [Fri, 19 Nov 2021 08:37:20 +0000 (14:07 +0530)]
generate: update listApis.json with 4.16.0.0 api cache
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Pearl Dsilva [Fri, 19 Nov 2021 08:34:49 +0000 (14:04 +0530)]
Fix add tests (#16)
* refactor tests
* Decouple Test data from tests
* Update listApis and add/refactor tests
Xavier MARCELET [Fri, 19 Nov 2021 06:56:52 +0000 (07:56 +0100)]
Fix GetUploadParamsFor{Volume,Template} (#19)
* fix reponse parsing for Template:getUploadParamsForTemplate and Volume:getUploadParamsForVolume
* add generate binary in gitignore
Xavier MARCELET [Thu, 18 Nov 2021 10:49:59 +0000 (11:49 +0100)]
allow to configure http client timeout (#20)
davidjumani [Sun, 7 Nov 2021 11:19:32 +0000 (16:49 +0530)]
Adding interfaces for better operability and mock / testing (#17)
* Adding interfaces for better operability and mock / testing
* Update readme
* Add support for getters
davidjumani [Wed, 20 Oct 2021 08:45:52 +0000 (14:15 +0530)]
Cleanup tests (#18)
Pearl Dsilva [Thu, 14 Oct 2021 09:20:57 +0000 (14:50 +0530)]
Refactor tests - decouple test data from test files (#14)
* refactor tests
* Decouple Test data from tests
Pearl Dsilva [Thu, 7 Oct 2021 07:12:52 +0000 (12:42 +0530)]
Tests for resource operations and services (#11)
* Tests for resource operations and services
* add license headers and some basic examples
davidjumani [Thu, 7 Oct 2021 07:02:00 +0000 (12:32 +0530)]
Adding WithListall option (#13)
Pearl Dsilva [Tue, 5 Oct 2021 05:13:19 +0000 (10:43 +0530)]
Update SDK documentation (#12)
davidjumani [Fri, 1 Oct 2021 10:01:22 +0000 (15:31 +0530)]
Fix type of downloaddetails (#10)
Pearl Dsilva [Thu, 30 Sep 2021 09:34:44 +0000 (15:04 +0530)]
Use autogenerated code for hostservice (#9)
Rohit Yadav [Mon, 20 Sep 2021 08:09:09 +0000 (13:39 +0530)]
generate: update listApis against 4.15.2
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Pierre-Luc Dion [Tue, 31 Aug 2021 12:30:14 +0000 (08:30 -0400)]
Merge pull request #7 from orange-cloudfoundry/main
Fix generator for map parameters that are lists of objects
Xavier MARCELET [Mon, 30 Aug 2021 12:17:36 +0000 (14:17 +0200)]
fix handling of map parameters
Pierre-Luc Dion [Sat, 28 Aug 2021 02:53:36 +0000 (22:53 -0400)]
Better fix for #4 that also work on 4.12. (#6)
Pierre-Luc Dion [Fri, 27 Aug 2021 06:58:29 +0000 (02:58 -0400)]
fix #4: only work on 4.15 (#5)
Rohit Yadav [Tue, 27 Jul 2021 09:18:16 +0000 (14:48 +0530)]
Update README.md
Olivier Lemasle [Tue, 27 Jul 2021 09:17:41 +0000 (11:17 +0200)]
Update README (#2)
- Use v2 path, now that it exists
- Update CloudStack API doc link, since it has been updated to 4.15.1.0 (and
the old link was broken)
Rohit Yadav [Tue, 27 Jul 2021 09:07:05 +0000 (14:37 +0530)]
.asf.yaml: trivial edit
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Tue, 27 Jul 2021 07:01:45 +0000 (12:31 +0530)]
performrelease: add script to assist with cutting RC
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Tue, 27 Jul 2021 06:28:03 +0000 (11:58 +0530)]
cloudstack: remove Nuage service
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Tue, 27 Jul 2021 06:25:38 +0000 (11:55 +0530)]
cloudstack: auto-generate sdk based on 4.15.1.0 listApis.json
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Tue, 27 Jul 2021 06:24:20 +0000 (11:54 +0530)]
layout: remove Nuage service, Nuage related feature/APIs were deprecated and removed
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Tue, 27 Jul 2021 06:23:50 +0000 (11:53 +0530)]
listApis: update as per 4.15.1.0 version
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Olivier Lemasle [Tue, 27 Jul 2021 06:14:37 +0000 (08:14 +0200)]
Update go module path with Apache home (#1)
Rohit Yadav [Tue, 27 Jul 2021 06:12:02 +0000 (11:42 +0530)]
.asf.yaml: enable issues, wiki, projects
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Rohit Yadav [Mon, 26 Jul 2021 06:04:48 +0000 (11:34 +0530)]
README: update history and reference to IP clearance
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sander van Harmelen [Mon, 21 Jun 2021 11:00:31 +0000 (13:00 +0200)]
Update license to Apache License, Version 2.0
Sander van Harmelen [Tue, 16 Mar 2021 17:45:32 +0000 (18:45 +0100)]
Merge pull request #136 from ovear/master
Correct listVirtualMachinesMetrics json tag.
Ovear [Fri, 12 Mar 2021 14:31:23 +0000 (22:31 +0800)]
correct listVirtualMachinesMetrics json tag.
Sander van Harmelen [Wed, 6 Jan 2021 10:44:19 +0000 (11:44 +0100)]
Merge pull request #133 from weizhouapache/bugfix-listcapabilities
Fix bug while list capabilties
Sander van Harmelen [Wed, 6 Jan 2021 10:42:39 +0000 (11:42 +0100)]
Tweak the solution a bit
Wei Zhou [Wed, 6 Jan 2021 09:49:05 +0000 (09:49 +0000)]
Fix it in generate.go
Sander van Harmelen [Tue, 5 Jan 2021 13:54:06 +0000 (14:54 +0100)]
Update my mail address in the README
Wei Zhou [Tue, 5 Jan 2021 13:03:48 +0000 (13:03 +0000)]
Fix bug while list capabilties
Different from other list commands, listcapabilities does not return an array list.
```
(localcloud) 🐱 > list capabilities
{
"capability": {
"allowusercreateprojects": true,
"allowuserexpungerecovervm": true,
"allowuserexpungerecovervolume": true,
"allowuserviewalldomainaccounts": false,
"allowuserviewdestroyedvm": true,
"cloudstackversion": "4.15.0.0",
"customdiskofferingmaxsize": 1024,
"customdiskofferingminsize": 1,
"dynamicrolesenabled": true,
"kubernetesclusterexperimentalfeaturesenabled": false,
"kubernetesserviceenabled": true,
"kvmsnapshotenabled": true,
"projectinviterequired": false,
"regionsecondaryenabled": false,
"securitygroupsenabled": false,
"supportELB": "false",
"userpublictemplateenabled": true
}
}
```
for other list apis, e.g. list templates
```
(localcloud) 🐱 > list templates templatefilter=all filter=id,name
{
"count": 2,
"template": [
{
"id": "
b54e8a17-ebe5-4849-a015-
2698e1d01768",
"name": "SystemVM Template (KVM)"
},
{
"id": "
63985306-48ee-11eb-8680-
069fc4003392",
"name": "CentOS 5.5(64-bit) no GUI (KVM)"
}
]
}
```
Sander van Harmelen [Thu, 25 Jun 2020 16:35:57 +0000 (18:35 +0200)]
Merge pull request #129 from xanzy/svh/f-metrics
Add missing metric methods
Sander van Harmelen [Thu, 25 Jun 2020 16:31:38 +0000 (18:31 +0200)]
Add missing metric methods
Sander van Harmelen [Tue, 31 Mar 2020 21:37:29 +0000 (23:37 +0200)]
Merge pull request #127 from nettoclaudio/fix/send-resourcetags-sorted
Present map API type in a predictable order
Claudio Netto [Tue, 31 Mar 2020 20:30:55 +0000 (17:30 -0300)]
move the generic helper func to cloudstack file
Claudio Netto [Tue, 31 Mar 2020 14:39:12 +0000 (11:39 -0300)]
Send map API types in a predictable order (sorted by key name)
Claudio Netto [Mon, 30 Mar 2020 20:07:33 +0000 (17:07 -0300)]
Submit resource tags in a predictable order
Sander van Harmelen [Wed, 13 Nov 2019 13:57:25 +0000 (14:57 +0100)]
Make the module inline with the version
Sander van Harmelen [Tue, 12 Nov 2019 18:04:48 +0000 (19:04 +0100)]
Merge pull request #124 from cezarsa/withzone
Add WithZone function to filter resources from a zone
Cezar Sa Espinola [Tue, 12 Nov 2019 17:02:37 +0000 (14:02 -0300)]
Add WithZone function to filter resources from a zone
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