summaryrefslogtreecommitdiff
path: root/troveclient/base.py
Commit message (Collapse)AuthorAgeFilesLines
* move old apiclient code out of openstack/commonSteve Martinelli2016-11-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | As part of the first community-wide goal [1], teams were asked to remove the openstack/common package of their projects if one existed. This was a byproduct of the old oslo-incubator form of syncing common functionality. The package, apiclient, was moved to a top level location and cliutils was moved to the common module. There are no oslo specific libraries, the recommended solution is to move it in tree and maintain it there. Specifically in this patch, I also rearranged some of the imports to make them match up with the hacking guidelines while I was re-ordering them for the refactor anyway. Lastly, the apiclient/fake_client.py was deleted since it was not used. [1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html Change-Id: Ib7b691240b819c9c91b100ca47ffaba75b281c78
* Implements Datastore Registration APISushil Kumar2015-08-211-6/+9
| | | | | | | | | | | | | | | | | Adds the mgmt APIs for 1. Create datastore-version. 2. List datastore-versions. 3. Get details of a datastore-version. 4. Update the attributes of an existing datastore-version. 5. Delete a datastore-version. Added the code to management.py and the unit-tests, this code would help for writing integration tests to trove for the newly added management-apis. Change-Id: I915baa4c5c8bbe3f0483bcaeaa5ce95044d35bf7 Implements: blueprint datastore-registration-api
* Clean up remaining references to TROVE_URLAlex Tomic2015-03-051-1/+1
| | | | | | | | | | | | Replaced last remaining reference to TROVE_URL in python-troveclient. Currently the user along with OS_URL , or TROVE_URL , is used as part of a hash for a unique directory for the bash completion cache. Since I'm not sure if there is a reason why the legacy URLs are used here, I've replaced TROVE_URL with NOVA_URL instead of OS_AUTH_URL which might be more appropriate for this purpose. Change-Id: Id30aeae992aecba3c1fbe53c2ce421157410ca20 Closes-Bug: #1238282
* Fixes trove show outputSushil Kumar2014-10-221-1/+1
| | | | | | | | | | | | | | | Reasons: - trove show gives different output for id and names as input, as explained in bug, with name it shows less information. Changes: - Returns the object found by id after finding the matching object from the list of obtained instances, which results in getting same attributes for output irrespective whichever way the command is used. Change-Id: Ib397d5791e9a6f10c10c2ab3160401c1c7cfa214 Closes-Bug: #1384055
* Merge "Add datastore filter to backup-list"Jenkins2014-06-101-2/+6
|\
| * Add datastore filter to backup-listSteve Leon2014-06-031-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix enhances the backup-list command to optionally receive a datastore name or ID to filter the backup list by. The filter is sent as a query string. To attach the query string to the URL and have it still work with the URL for pagination, i have made some changes in the way url with query strings are constructed. This includes the pagination URL. partially implements: blueprint backup-metadata Change-Id: I0b9ef3ec7f51ed76517a22f9c0edfdce3694a36f
* | Add instance_metadata functionality to the trove python libraryDaniel Salinas2014-05-241-0/+4
|/ | | | | | Implements: blueprint trove-metadata Change-Id: I4e498844afd2d2730fad2176dccaf1d61d8798c1
* Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-18/+16
| | | | | | | | | | | | | | Reasons: - F821 is disabled. - H306 is disabled. - H402 is disabled. - H404 is disabled. Changes: - Updates tox.ini to enable F821, H306, H402 and H404 rules. - Updates code for F821, H306, H402 and H404 violation. Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
* Merge "Remove dependent module py3kcompat"Jenkins2014-04-251-3/+3
|\
| * Remove dependent module py3kcompatllg82122014-02-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | Module py3kcompat was removed from oslo-incubator, we can use six directly. * Sync commit of removing py3kcompat from oslo * use six replace usage of py3kcompat Change-Id: I15b9ffb10e2d5765a1ed07dd5fd4e2bf7b21ec49 Closes-Bug: #1280033
* | Remove vim headerHe Yongli2014-02-161-2/+0
|/ | | | | | | | | | | No need to set tabstop tons of times, this can be set in your vimrc file instead. More disucssion: http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html Change-Id: I45766d91f0c0b3622bbdc7dc5517497c87ebee8c Closes-Bug: #1229324
* Use Resource() class from common Oslo codeekudryashova2014-01-281-63/+4
| | | | | | | | | | In the process of unification of the clients code we should reuse common functionality from Oslo. Resource() class from trove duplicates Oslo funclionality, so we replace it with inheritance Related to blueprint common-client-library-2 Change-Id: I9809bd3036a5b544b8ff011432f64dc5af793f61
* Merge "Adding pagination support for backups"Jenkins2014-01-091-2/+18
|\
| * Adding pagination support for backupsRobert Myers2013-12-111-2/+18
| | | | | | | | | | | | | | | | | | | | * add a _pagination method to base Manager * switched existing paginated list to use the new method * removed description from backup list and added updated Implements: blueprint paginate-backup-list Change-Id: If33c55a35bae8ebd6ed654af5ce6dfd7f9e40096
* | Fixed misspellings of common wordsNikhil Manchanda2013-12-031-2/+2
|/ | | | | | | Fixed misspelling of common words found by the 'misspellings' tool. Closes-Bug: #1257531 Change-Id: Ic6bedbce3a242d6e1340ecc442d29605af8be9a4
* Fixing copyright and license headersMichael Basnight2013-10-221-1/+3
| | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* change mode to octal for os.makedirs()Kui Shi2013-10-151-1/+1
| | | | | | Partial implements: blueprint py33-support Change-Id: I7a4307dfd526821e96b5c04ff636e650f20b753a
* Massive refactoring to the troveclientMichael Basnight2013-10-091-14/+19
| | | | | | | | | | | | | | | | The new client adheres to the standards of the other clients now. It prints out tables, uses ENVVAR's for auth, no longer stores pickled json in a login token, uses openstack common, and moves the cli operations into a v1 module for the future of trove when it has a v2 api. Please note for compatibility, the troveclient.compat module has the old cli. In order to deploy it, amend the setup.cfg to include the compat module. implements blueprint cli-compliance-upgrade Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
* Replace OpenStack LLC with OpenStack FoundationZhiQiang Fan2013-09-201-1/+1
| | | | | | | | Some files still use trademark OpenStack LLC in header, which should be changed to OpenStack Foundation. Change-Id: Ib30cd06cdd13b9f949e028753716aa55736f4a40 Fixes-Bug: #1214176
* PEP8 with tox -epep8 check failsDenis M2013-08-301-3/+4
| | | | | Change-Id: Ife06919f321ab4ad73bece2e6080fbd7d947eeef Fixes: bug #1219014
* Rename from reddwarf to trove.0.1.3Michael Basnight2013-06-211-0/+293
Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf