summaryrefslogtreecommitdiff
path: root/troveclient/v1/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove flavor API"Lingxian Kong2020-11-131-0/+2
| | | | | | | | | Story: 2008341 Task: 41242 This reverts commit 27cf71299ec51976fed8b18dbf5c0e4f9f4fd6f5. Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
* Support backup strategyLingxian Kong2020-07-161-0/+2
| | | | Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
* Remove flavor APILingxian Kong2020-05-081-2/+0
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Support to delete datastore versionLingxian Kong2020-01-071-12/+3
| | | | | | usage: openstack datastore version delete <datastore_version_id> Change-Id: I4b781e68b81a3888d15d002fcf488a1f765c9f6a
* Get all the database instances by adminLingxian Kong2019-05-211-3/+3
| | | | | | | | | | | | | | 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
* Client changes for datastore-version volume-typesMatt Van Dijk2016-11-291-0/+2
| | | | | | | | | Add trove client support for new volume-types listing and datastore version association listing. Co-Authored-By: amrith <amrith@tesora.com> Change-Id: Iafcd8d068b85c1993fac0471c04e57478c122bfe Depends-on: I790751ade042e271ba1cc902a8ef4d3c3a8dc557
* Expose Quota.update APIMorgan Jones2016-08-251-1/+2
| | | | | | | | | | | | There exists a method in the management API to change the quota for a given resource. This change exposes that API via a new "trove quota-update" command. Also, adds v1.Quotas to the python client. Note that this command requires admin privileges. Partial implements: blueprint bp/quota-management Change-Id: I6ca1a87fbc46781f83bc9b7bd33745783b8aaab1
* Make username and password non-required paramsMonty Taylor2016-05-091-1/+2
| | | | | | | | | | | | If a user is passing in a keystoneauth Session object to the session parameter, Session is the thing that should be handling auth interactions, and as such troveclient does not need to know the username and password. In fact, for a given session they may not be values that exist, depending on keystone auth plugin. Further, they are merely passthrough parameters to _construct_http_client which does not require them. Change-Id: I3b71c79a90736eef5d0951bb6e7b8a4d95ec015f
* Add suport for module maintenance commandsPeter Stachowski2016-02-241-0/+2
| | | | | | | | | | | | | | This adds support in the python API and Trove CLI for module maintenance commands. These commands include: - module-list - module-show - module-create - module-update - module-delete Partially Implements: blueprint module-management Change-Id: I54d37025275dee4731ad49ebbd21612c4464e4c4
* Merge "Pass all kwargs through to adapter"Jenkins2015-02-151-2/+3
|\
| * Pass all kwargs through to adapterJamie Lennox2015-01-161-2/+3
| | | | | | | | | | | | | | | | | | Part of the benefit of clients using the keystoneclient adapter to manage the session object is that we can have a standard set of kwargs that can be controlled from the adapter. This only works if the unknown kwargs are passed through to the adapter. Change-Id: I78f195ef739dbfe33a08f4dc1922b14ec77ae833
* | default endpoint_type to 'publicURL'Edmond Kotowski2015-01-121-2/+5
|/ | | | | | | | | | | | | | | When trying to create a troveclient.v1.client.Client without specifying endpoint_type explicitly it will raise an AuthorizationFailure exception. This was because troveclient.v1.client.Client defaulted endpoint_type=None which overrides the troveclient.client.HTTPClient default value of 'publicURL' to None. Fix was to default the endpoint_type to 'publicURL' in the troveclient.v1.client.Client __init__ method. Also updated the documentation and README.rst for creating a trove client object because it was out of date and incorrect. Change-Id: I64dfbaa4eefc73d01468470dbe9eba5e209ff157 Closes-Bug: 1409982
* Adds support for Keystone V3 APIBob Thyne2014-12-011-8/+14
| | | | | | | | | | | | | | | Updated trove client to support Keystone V3 API. The Keystoneclient session object is used for authentication, retrieving the service catalog and HTTP connection/session management. Added additional CLI parameters for Keystone V3. Added tests using requests_mock instead of mocking completely the session object like the previous failed patch: https://review.openstack.org/#/c/102315 Change-Id: Ib804c0a45b3b4d3f8670ec642b2c2fd1be6cd656
* Reverse fix for 1323866 as it regressed trove CLIAmrith Kumar2014-11-101-13/+8
| | | | | | | | | | | | | | | | | | | Trove CLI appears to be broken (fresh checkout, devstack as well as openstack gate). All commands fail with ERROR: __init__() got an unexpected keyword argument 'http_log_debug' Correcting the obvious place where this appears to be an issue is causing additional failures and as it is time-critical to get this back up and running, I'm proposing a reversal of the change from 3c47a1855b7ee1345dadfb00ae90a6279b7c424e while that change is completely reworked. I will ping trove core for an approval on this and if I don't get an approval, I'll fast track this reversal. Change-Id: Icac028cfafac57c7e3ef03d4277ae2b7833bf58f Partial-Bug: 1391840
* Adds support for Keystone V3 APIdaniel-a-nguyen2014-11-051-8/+13
| | | | | | | | | | | Updated trove client to support Keystone V3 API. The Keystoneclient session object is used for authentication, retrieving the service catalog and HTTP connection/session management. Added additional CLI parameters for Keystone V3. Change-Id: I800c252234be2ff11d818cf7513c61c5431eb15c Closes-Bug: 1323866
* adding configuration parameters mgmt apiCraig Vyvial2014-09-031-0/+3
| | | | | | | 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/+3
| | | | | | | | | | | | 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
* Merge "Add instance_metadata functionality to the trove python library"Jenkins2014-06-101-0/+2
|\
| * Add instance_metadata functionality to the trove python libraryDaniel Salinas2014-05-241-0/+2
| | | | | | | | | | | | Implements: blueprint trove-metadata Change-Id: I4e498844afd2d2730fad2176dccaf1d61d8798c1
* | Merge "fixed several pep8 issues"Jenkins2014-05-281-8/+8
|\ \ | |/ |/|
| * fixed several pep8 issuesChristian Berendt2014-05-131-8/+8
| | | | | | | | | | | | | | | | | | | | * E265 block comment should start with '# ' * E128 continuation line under-indented for visual indent * E713 test for membership should be 'not in' Tested with pep8 version 1.5.6 (2014-04-14). Change-Id: If2853c79bea91ebef5cd97dff66788b46b174a9a
* | Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-6/+4
|/ | | | | | | | | | | | | | 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
* adds support for configurations managementCraig Vyvial2014-02-051-0/+4
| | | | | | | | | | | | | | | | Reason: Adding configuration group support for the python-troveclient Changes: adding configuration api calls adding the compat client for tests and xml added the shell cmds for the configurations in the client made the path to datastore/version/parameters added unit tests partially implements blueprint configuration-management Change-Id: Ifc0b4077c93a805898b4cd157e33172f64e85b55
* Changes trove_client.client.HTTPClient toSushil Kumar2013-12-111-1/+1
| | | | | | | | | | | | | | | | | trove_client.HTTPClient Reasons: - trove shell is not working. - troveclient.client is now imported as trove_client but while calling the method it has been called as trove_client.client Changes: - Changes trove_client.client.HTTPClient to trove_client.HTTPClient in troveclient/v1/client.py Change-Id: I12b0a0d9792f69ad04a17c36a8de134f233afc85 Closes-Bug: #1259882
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-24/+22
| | | | | | | | | | | | 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
* Added a missing import statementDebasish Chowdhury2013-12-061-0/+1
| | | | | | | Fix for trove cli failing Change-Id: I9313d9eb271ba0294f8ed5eb104245c2b9f6cf28 Closes-Bug: #1258037
* Removes unused import statementsDebasish Chowdhury2013-11-301-9/+0
| | | | | Change-Id: If229aa3f6e1009e1abfba13aba3970bdf2dd3761 closes-bug: #1255885
* Support datastore typesAndrey Shestakov2013-10-311-0/+4
| | | | | | implements blueprint db-type-version Change-Id: I5dec99c44393c04d86c1a8e19c0b3ca59329fd87
* Merge "Add --bypass-url option to trove client"1.0.3Jenkins2013-10-251-2/+3
|\
| * Add --bypass-url option to trove clientdaniel-a-nguyen2013-10-211-2/+3
| | | | | | | | | | Change-Id: Ie0596f2dd302eec293f3a5ab3306d56fb0fdcdb8 Closes-Bug: #1240285
* | Fixing copyright and license headersMichael Basnight2013-10-221-0/+18
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Massive refactoring to the troveclientMichael Basnight2013-10-091-0/+105
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