summaryrefslogtreecommitdiff
path: root/troveclient/v1/management.py
Commit message (Collapse)AuthorAgeFilesLines
* Support datastore version numberLingxian Kong2020-11-211-2/+8
| | | | | | | | | | | | | | - Support "--datastore-version-number" for creating configuration - Support "--datastore-version-number" for creating instance - Support "--version-number" for creating datastore version - Support "--version-name" for updating datastore version - Support showing version number for datastore version, instance and configuration Story: 2008358 Task: 41264 Change-Id: Ie84b4506736a82a214b0416f7e451d565552f651
* Revert "Remove flavor API"Lingxian Kong2020-11-131-0/+39
| | | | | | | | | Story: 2008341 Task: 41242 This reverts commit 27cf71299ec51976fed8b18dbf5c0e4f9f4fd6f5. Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
* image is not required for creating datastore versionLingxian Kong2020-10-091-1/+2
| | | | Change-Id: Ic4efe1fec9b26b90d1412ab13b94939961bb4be3
* Support updating datastore versionLingxian Kong2020-10-091-14/+20
| | | | Change-Id: Ie6f22493d1722f41db5aa1a601a652e7eefa29c4
* Support rebuild instance CLILingxian Kong2020-08-061-0/+5
| | | | Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
* Remove flavor APILingxian Kong2020-05-081-39/+0
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Add unit test for Management indexLingxian Kong2019-06-061-1/+1
| | | | Change-Id: If48449acf7037ffb04e1b5b9d1c4b059ea629055
* Restore the index method for Management classLingxian Kong2019-06-061-0/+4
| | | | Change-Id: Id9c9e6352742c672ae3f2764c42dd984c8202544
* Get all the database instances by adminLingxian Kong2019-05-211-19/+6
| | | | | | | | | | | | | | Currently, there is no way for the admin user to get databases of all the projects, which is very important for auditing or billing purpose. With this change, admin user can get all the database instances by running: $ openstack database instances list --all-projects Change-Id: I318907b1d4a63017f4a6f7967312770f8784c1f4 Story: #2005735 Task: #33393
* Avoid use xx=[] for parameter in functionjiansong2016-10-191-2/+4
| | | | | | | | | | | Use xx = [] for the parameter for function, this parameter will only be initialized at the first call, this is should be avoided. Better choice is to set the initial value to None, then the initialization time use xx= xx or [] more information:http://effbot.org/zone/default-values.htm Change-Id: Icbade7dd4c7d231ae65fd4f8de673b484bab721c
* Implements Datastore Registration APISushil Kumar2015-08-211-0/+57
| | | | | | | | | | | | | | | | | 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
* Fixes client to send 0 for min/max sizeTim Simpson2014-12-031-4/+4
| | | | | | | | | | | | | Previously, if 0 is passed as the min_size or max_size for a configuration, the Trove client would ignore it and not put it in the dict making up the request body. This changes that code to explicitly check if this value is not None instead of ignoring it if its zero. Co-Authored-By: Craig Vyvial <cp16net@gmail.com> Fixes bug: 1398995 Change-Id: I7f1d196b00a612365576bfb82fbfd35d647588d4
* adding configuration parameters mgmt apiCraig Vyvial2014-09-031-0/+66
| | | | | | | add the CRUD calls of configuration parameters mgmt calls partially implements blueprint configuration-parameters-in-db Change-Id: Iaaea946bdbcab91ca02e5e2cbf956a3980a461ab
* Clusters troveclient Implementationamcrn2014-09-021-0/+42
| | | | | | | | | | | | adds clusters support to the troveclient. Co-Authored-By: Ranjitha Vemula <rvemula@ebaysf.com> Co-Authored-By: Michael Yu <michayu@ebaysf.com> Co-Authored-By: Mat Lowery <mlowery@ebaysf.com> Partially implements: blueprint clustering Change-Id: I6ed2c4c79a17fcf8f14c587cab6a8ec3acaf319f
* Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-31/+13
| | | | | | | | | | | | | | 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
* 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
* Updates common.check_for_exceptions and its callsSushil Kumar2014-01-231-1/+1
| | | | | | | | | | | | | | | Reasons: - exceptions.from_response has 3 arguments but is being called with one argument less, which is url. Changes: - Updated common.check_for_exceptions to support urls as needed by troveclient.openstack.common.apiclient.exceptions.from_response. - Adds url to exceptions.from_response calls in troveclient. Closes-Bug: #1266239 Change-Id: Ie18c90349479f740369f63c48a8d9b463641f84d
* Adding pagination support for backupsRobert Myers2013-12-111-20/+1
| | | | | | | | | | * 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
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-11/+10
| | | | | | | | | | | | Reasons: - code should be pythonicaly clean, that is why number of ignored rules should reduced Changes: - E125, F811, H102, H103, F201, H23, H302, F841, H301, H702, H703 rules are now enabled Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
* Merge "Import urlutils module from openstack-common"Jenkins2013-10-231-3/+3
|\
| * Import urlutils module from openstack-commonKui Shi2013-10-231-3/+3
| | | | | | | | | | | | | | | | | | urlutils defines a series of urllib/urlparse modules for Python 2&3 compatability. Partial implements: blueprint py33-support Change-Id: I55c2c5d479d2f7a86d3a0c207dc40794006d951c
* | Fixing copyright and license headersMichael Basnight2013-10-221-1/+4
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Massive refactoring to the troveclientMichael Basnight2013-10-091-0/+183
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