Add missing API calls for Cloudstack 4.20#91
Conversation
Pearl1594
left a comment
There was a problem hiding this comment.
code built successfully. code LGTM
|
@phsm I merged some PRs and now you are stuck with a lot of conflicts. So for I can see these are not complex, just a lot. Can you have a look, please? |
|
I see you've merged the previous PRs implementing the slices of API calls that had been emerged at different CS versions. This may as well render my PR obsolete. Later I will check the build against CS 4.20 |
|
@DaanHoogland updated both the code, and the PR header/description. |
| "ShutdownService": { | ||
| "readyForShutdown", | ||
| }, |
There was a problem hiding this comment.
any specific reason to remove this? @phsm as the generate.go file has a reference to this api, causing issues:
test/ShutdownService_test.go:42:15: client.Shutdown undefined (type *cloudstack.CloudStackClient has no field or method Shutdown)
test/ShutdownService_test.go:43:20: client.Shutdown undefined (type *cloudstack.CloudStackClient has no field or method Shutdown)
There was a problem hiding this comment.
The reason was to make the layout structure to follow the structure from here: https://cloudstack.apache.org/api/apidocs-4.20/
The "readyForShutdown" API call looks to be a part of ManagementService now.
|
For some reason, the tests seem to fail on this PR - @phsm can you please help us with this: examples/mock_test.go file layout.go |
because ReadyForShutdown() is a part of ManagementService
|
@Pearl1594 This was to tidy up an abandoned https://github.com/golang/mock/ package. I replaced the rest of the old package references with As for the "ShutdownService" removal: as I mentioned before, the intention was to keep the layout.go consistent with the API calls reference page. |
|
Thanks @phsm - tests now run successfully! Thank you 👍 |
Fixes #22
I've noticed that a lot of API calls are missing from the
cloudstack/directory.Thus, I took listApis output from the latest Cloudstack version at the time of writing this, 4.20.0.0, and added all those missing calls to the
layout.go.There are 2 commits in the PR:
listApisoutput, namely:I have ported them from listApis.json from the commit d4d7f16, except
cloudianSsoLoginwhich I could not find anywhere. Therefore, I've removed this call fromlayout.go.This commit also includes changes to
layout.gothat introduces new API calls, and also moves some Netscaler-related API calls to the new ServiceNetscalerService.make allgeneratedThere were no errors/warnings during the make all.