-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing API calls for Cloudstack 4.20 #91
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
listApis
output, namely:I have ported them from listApis.json from the commit d4d7f16, except
cloudianSsoLogin
which I could not find anywhere. Therefore, I've removed this call fromlayout.go
.This commit also includes changes to
layout.go
that introduces new API calls, and also moves some Netscaler-related API calls to the new ServiceNetscalerService
.make all
generatedThere were no errors/warnings during the make all.