summaryrefslogtreecommitdiff
path: root/reddwarfclient/xml.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename from reddwarf to trove.0.1.3Michael Basnight2013-06-211-293/+0
| | | | | | Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf
* Use a plain dict for Quotas.show method.Tim Simpson2013-04-101-4/+14
| | | | | | | | | This also fixes the XML version translator to convert the strings to integers. implements blueprint use-plain-dict-for-quotas-show Change-Id: I4764313a863e9c1fd0ee8fa00645b57535d47c76
* Adding client commands for Backup featureSteve Leon2013-04-011-1/+2
| | | | | | | | | - Added create, list and delete backup commands - Updated the create instance command to include optional param 'BackupRef' - Added 'backups' subcommand to 'instance' used to list all backups for that instance. Change-Id: Icc32e7097858708d0ed0f4c309d4c86f5cbd8aa6 BP: https://blueprints.launchpad.net/reddwarf/+spec/consistent-snapshots
* Updated TYPE_MAP for security group rulesNikhil Manchanda2013-03-261-0/+4
| | | | | | | | | Updated TYPE_MAP for security group rules so that from_port and to_port are correctly identified as ints for XML. Fixed bug:1160238 Change-Id: I432c7f01fc16c476d6452a4ac4e219dbfa6d0388
* Client Side Changes for Security Groups Support.Nikhil Manchanda2013-03-141-1/+2
| | | | | | | | | | | | | - Added new secgroups command with the following options - list - get - add_rule - delete_rule - Added corresponding calls into the REST API Implements blueprint: security-groups Change-Id: Ie6d4bc2ce31dc18f172e92efa46ccdeea3e0a22a
* Refactored client code and test to consume XMLdaniel-a-nguyen2013-03-121-1/+2
| | | | | | | Removed unused constants Change-Id: I7a965a498ab4607de145359697b7d5d976aaa4ff Fixes: bug #1154300
* Correcting the types of the values in the returned dataDJ Johnstone2013-01-311-6/+71
| | | | | Partially implements: blueprint test-with-xml Change-Id: I6db4ac284b224c994ec6b674cfb8cb053e4b2734
* Only pep8 violations fixVipul Sabhaya2012-11-011-6/+8
| | | | | | | | | | fix pep8 violations fix tox configurtion for pep8 fix pretty print for actions that return a response body Change-Id: I39a529bda8780649a5159761af7103eee8520412
* Added a ton of CLI options, plus fixed a CI bug.Tim Simpson2012-08-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * Renamed the auth_type "basic" to the more apt "auth1.1". * Made it possible to pass an "token" and "service_url" argument alone to the client. It wouldn't work with just this before. * The client now saves all arguments you give it to the pickled file, including the auth strategy, and preserves the token and service_url (which it didn't before) which makes exotic auth types such as "fake" easier to work with. * Not raising an error for a lack of an auth_url until auth occurs (which is usually right after creation of the client anyway for most auth types). * Moved oparser code into CliOption class. This is where the options live plus is the name of that pickled file that gets stored on login. * Added a "debug" option which avoids swallowing stack traces if something goes wrong with the CLI. Should make client work much easier. * Added a "verbose" option which changes the output to instead show the simulated CURL statement plus the request and response headers and bodies, which is useful because I... * Added an "xml" option which does all the communication in XML. * Fixed a bug which was affecting the CI tests where the client would fail if the response body could not be parsed. * Added all of Ed's work to update the mgmt CLI module with his newer named parameters.
* Made the client send and receive XML.Tim Simpson2012-07-261-0/+205
* Added a FakeAuth class, since it was so useful for hitting fake mode. * Added a morph_request and morph_response function to the ReddwarfHTTPClient class, to make it possible to use different content types (XML). * Added an XML module with a version of the client class that reads XML. * Added a "mgmt" attribute to the Dbaas class, so that management classes can be hit in a way that closer approximates their URLs. * Added a "resize_flavor" method, which is a clone of the "resize_instance" method, since that name makes a lot more sense.