Commit Graph

951 Commits

Author SHA1 Message Date
Kris McQueen ea84f3bde2 registerTemplate and registerIso expect the template to be returned, not the template id...fixed 2010-10-07 15:10:02 -07:00
Kris McQueen 7c4a06a764 fix the method name for listIsos command 2010-10-07 15:10:02 -07:00
Kris McQueen e18895f15b account and domainid are required parameters when disabling an account 2010-10-07 15:09:28 -07:00
Kris McQueen bef7998bbf resolving merge conflicts between the documentation changes and other API refactoring work 2010-10-07 15:07:49 -07:00
Kris McQueen 335613a8a9 Add the mirrored property to the disk offering response 2010-10-07 15:03:47 -07:00
alena e7b478f43d Added descriptions for Api commands and corresponding requrest parameters 2010-10-07 14:46:29 -07:00
Kris McQueen fbb5a109cc Fix return types for resetVmPassword and upgradeVirtualMachine commands. Fix response for resetVmPassword to be a vm rather than success/failure. Make sure the password is a transient variable for the resetVmPassword command so that the new password is returned to the user. 2010-10-06 18:29:27 -07:00
Kris McQueen 6db9f377a3 use the name of the configuration variable rather than the name of the command 2010-10-06 18:28:12 -07:00
Kris McQueen 1ae2273871 when updating the account, use the correct name for the updates 2010-10-06 18:27:46 -07:00
Kris McQueen ec62ef3cd7 Injection doesn't work on private methods, restore the visibility of the methods so injection works. 2010-10-06 18:25:58 -07:00
Kris McQueen 5fa6ff7fe4 Manual snapshots won't have an async job id, the job id gets set when the recurring snapshots get scheduled for execution. If the policy id is MANUAL, don't search for a job id. 2010-10-06 18:24:19 -07:00
Kris McQueen 9c593352d0 Fixing events for async jobs so that there's a scheduled event recorded with appropriate type/description whenever the API framework schedules the async command to run. A few miscellaneous fixes as well uncovered during regression testing (router response was not parsed correctly by UI, etc.) 2010-10-05 20:26:18 -07:00
Kris McQueen 24bd6a39e6 Fix the type of the id attribute in BaseAsyncCmd (it should be Long), deleteNetworkRuleConfig is async command again (this was a regression), misc event and account verification fixes 2010-10-04 10:36:44 -07:00
alena 136060e5cf 1) Finished XmlApiDoc writer. The program gets api classes from commands.properties.in file, and build Command objects with "name"/"description"/"request"/"response" fields. Request and response are represented by the list of arguments, each argument contains "name"/"description"/"isrequired" fields. The commands are being serialized to commands.xml using imported xstream library, and can be desiarialized later - it will help to compare commands from differemt product versions.
2) Added description() methods to Implementation and Param annotations.
2010-10-04 09:50:14 -07:00
alena 46a433d750 Incremental checkin for ApiXmlDocBuilder 2010-10-04 09:50:14 -07:00
Kris McQueen 41a16a478a Fixes required for regressions found running automated tests. (1) method signatures that weren't properly refactored to new API framework (2) API request parameter types should always be specified lest they default to String which may or may not be desired (3) better exception handling with regard to Queued commands and generic exceptions (4) fix eventing to pass the proper accountId where neccessary 2010-10-01 14:11:18 -07:00
Kris McQueen 5f2acc8cdd Fixing API responses for user VMs (we need to return ipaddress rather than privateip) and domain routers (guestMacAddress != guestmacaddress for case sensitive string comparison) 2010-09-30 14:22:10 -07:00
Kris McQueen bc2449a69a If the session in invalidated due to a bad session key, just return to avoid the situation where the session is invalidated twice (which causes IllegalStateException) 2010-09-30 11:39:36 -07:00
Kris McQueen 0105aec338 Always set the response type on the command object so that the correct output is generated. Add both Strings and Longs to the login response (domainId and userId will be the Longs). Use the correct method name for ListSystemVMsCmd. 2010-09-29 17:32:19 -07:00
Kris McQueen da660f2575 Change session parameters to be their actual type (domainId and userId are saved to the session as Longs and not Strings) 2010-09-29 15:18:43 -07:00
Kris McQueen 9e2d1f5e70 Refactoring disableUser and disableAccount to new API framework (they are both async commands). 2010-09-29 13:57:26 -07:00
Kris McQueen 95a7f20a0a Adding in XML response serializing. Now the new API framework supports both XML and JSON responses the way the old framework did. 2010-09-28 17:36:27 -07:00
Kris McQueen 2fde826a77 fix up a few merge conflicts from the big merge master->2.1.refactor that were overlooked 2010-09-28 16:35:15 -07:00
Kris McQueen 848ce60097 Merging master into 2.1.refactor, resolve the merge conflicts as best I can. New commands related to extracting template/iso/volume and related to instance groups were refactored to the new API framework. 2010-09-28 15:47:14 -07:00
Kris McQueen 62257d4021 Fix serializing async job responses by writing a custom adapter for ResponseObjects. Improve exception handling when calling async commands (the job still needs to complete, but with FAILED status). 2010-09-24 13:52:35 -07:00
Alena Prokharchyk 9228088ce3 bug 6103: Made "capacity.skipcounting.hours" to apply only for Stopped vms. Introduced "capacity.skipcounting.destroyed.hours" config value that is used for vms in Destroyed state
status 6103: resolved fixed
2010-09-24 11:30:44 -07:00
Alex Huang c48bd7cf63 revert console proxy 2010-09-24 10:33:04 -07:00
Alex Huang 42986f43ba removed service offering from storageallocator 2010-09-24 10:27:02 -07:00
Jessica Wang e6c2f7fa0b new UI - volumes page - snapshot tab - implement create volume action. 2010-09-23 20:49:20 -07:00
Jessica Wang 5e36d7ed35 new UI - volumes page - snapshot tab - implement delete snapshot action. 2010-09-23 20:32:19 -07:00
Jessica Wang 8604f70d71 new UI - volumes page - snapshot tab - build action list. 2010-09-23 20:21:19 -07:00
Jessica Wang 96fd242feb new UI - Volumes page - add Snapshot tab that list all snapshots under this volume. 2010-09-23 19:48:51 -07:00
Jessica Wang c3abad736c new UI - after subgrid item action is finished, show message in 1st grid row in the subgrid. 2010-09-23 18:45:25 -07:00
NIKITA 4ba08d0fa4 UI change for Actions dropdown 2010-09-23 18:40:11 -07:00
Jessica Wang 97eeee7677 new UI - after details tab action is finished, show success/fail message on the top of right panel instead of showing a dialog covering action panel. 2010-09-23 18:03:23 -07:00
Kris McQueen 2a4ddac41a Change getResponse() to return a ResponseObject so that the caller can choose how to serialize. This in in preparation for serializing the async commands to the database with class information and deserializing them into the ResponseObject itself when queryAsyncJobResult is called. Once the ResponseObject is deserialized, the proper string can be returned to the caller.
The previous behavior had the JSON response from the command embedded into the queryAsyncJobResult response as a string rather than a JSON object which prevented the client from being able to read the response.  With this new behavior an actual JSON object should be returned which can then be parsed on the client side.
2010-09-23 17:34:28 -07:00
Jessica Wang 5999da510c new UI - fix a bug - instances page's middle menu action list is empty. 2010-09-23 17:32:17 -07:00
NIKITA ea1c90388e Left menu icons added for IP Address, Network Group, Snapshots and Volume 2010-09-23 17:19:31 -07:00
Jessica Wang ea5d33315d new UI - snapshots page - implement create template from snapshot action. 2010-09-23 17:15:49 -07:00
Jessica Wang e8a16e052c new UI - snapshots page - implement delete snapshot action. 2010-09-23 16:59:19 -07:00
Jessica Wang e583473252 new UI - snapshots page - implement create volume action. 2010-09-23 16:44:20 -07:00
anthony c9ae6fd09d record used byte not available byte 2010-09-23 16:25:17 -07:00
abhishek 188711c18d bug 6236: fixing some more api issues, this time with the stopped vm.
status 6236: resolved fixed
2010-09-23 16:21:10 -07:00
abhishek 24dd41f9d0 some api changes to enable vm functioning 2010-09-23 16:09:21 -07:00
abhishek eee7c2c97e bug 6212: returning a whole bunch of new params in the api response
status 6212: resolved fixed
2010-09-23 15:36:19 -07:00
Jessica Wang a6ca920452 for bug 6163 - change direct tagged IP range to no longer restrict it to an account. 2010-09-23 15:25:42 -07:00
abhishek 320df380c9 bug 6217: incremental fix for the vm api
bug 6217: resolved fixed
2010-09-23 14:56:25 -07:00
abhishek 29f8c5d94c bug 6217: incremental checkin 2010-09-23 14:55:13 -07:00
abhishek e0dcb95511 bug 6217: incremental checkin 2010-09-23 14:55:13 -07:00
abhishek 5d97c029bf bug 6217: incremental checkin 2010-09-23 14:55:13 -07:00