summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v3
Commit message (Collapse)AuthorAgeFilesLines
* Complete Identity v3 list command filtersDean Troyer2014-06-192-23/+74
| | | | | | | Complete the 'group list' and 'user list' filter options following the refactor in https://review.openstack.org/69878 Change-Id: Ib4af417c56d4f7da4b88852f191af615cc7fa2ec
* Merge "Refactor role list subcommand for identity v3 api"Jenkins2014-06-193-158/+115
|\
| * Refactor role list subcommand for identity v3 apiQiu Yu2014-06-133-158/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently parts of user list and group list command are actually functioning as role listing, which is quite counter intuitive and misleading. This refactor change move role related logic to a single place of role list command. It now allows role grants listing for user/group + domain/project combinations. If no user or group specified, it will list all roles in the system, which is the default behaviour. Change-Id: I4ced6df4b76f018d01000d28b4281ad9f252ffcc
* | Merge "Change the token verb to issue/revoke"Jenkins2014-06-181-1/+1
|\ \
| * | Change the token verb to issue/revokeTerry Howe2014-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Change the token verb to issue/revoke as documented in: https://wiki.openstack.org/wiki/OpenStackClient/Commands#token https://wiki.openstack.org/wiki/OpenStackClient/Commands#Actions Change-Id: I44f77f98ad3269c4f2149301c204804dcb75ac81
* | | Refactor oauth1 code for updatesSteve Martinelli2014-06-142-141/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keystoneclient code for oauth1 support has changed. As such, we should remove the delete, list and authenticate functions, since they are not in keystoneclient. Also, we must now pass in the project id when creating a request token. Additionally we must now pass in roles when authorizing a request token. Added functional tests to ensure output and input args are the same. bp add-oauth-support Change-Id: I559c18a73ad95a0c8b7a6a95f463b78334186f61
* | | Merge "Add role assignments list support to identity v3"Jenkins2014-06-131-0/+156
|\ \ \ | |_|/ |/| |
| * | Add role assignments list support to identity v3henriquetruta2014-05-301-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assignments manager and its test class were created. Some fake stubs were also added on the fakes.py module. The "openstack role assignment list" command was created. Change-Id: Iae94f4fee608ea3e09ff38961ad22edc38efb89c Implements: blueprint roles-assignment-list Closes-Bug: 1246310
* | | Merge "replace string format arguments with function parameters"Jenkins2014-06-1012-67/+67
|\ \ \ | |/ / |/| |
| * | replace string format arguments with function parametersChristian Berendt2014-05-2012-67/+67
| |/ | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | Fixed several typos throughout the codebaseAlex Gaynor2014-05-211-1/+1
|/ | | | Change-Id: I048ee857fc1215fea7f60978364894e1b5abdf66
* Merge "Implement CRUD operations for Identity Providers"Jenkins2014-05-091-0/+180
|\
| * Implement CRUD operations for Identity ProvidersMarek Denis2014-04-241-0/+180
| | | | | | | | | | | | | | | | | | | | | | | | Operations for: * adding Identity Provider * listing Identity Providers * showing Identity Provider * updating Identity Provider * deleting Identity Provider Change-Id: I4557168309f93e4670116b5c3c0e29252ff0c40f Implements: bp/add-openstackclient-federation-crud
* | Merge "Make endpoint commands more consistent"Jenkins2014-04-232-20/+9
|\ \
| * | Make endpoint commands more consistentTerry Howe2014-03-282-20/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make endpoints more consistent across create, show, etc * Make the name option required for create * Use a common function to fetch services by id, name or type * Have show work by endpoint id or by service id, type or name * Have show display all the fields by default * Remove capability to filter queries by attribute value pairs Change-Id: Idaa4b8d930ba859fd62de777e44a10b1ed58c79b Partial-Bug: #1184012
* | | Merge "Pass arguments to v3 keystoneclient by kwarg"Jenkins2014-04-179-24/+24
|\ \ \
| * | | Pass arguments to v3 keystoneclient by kwargJamie Lennox2014-04-049-24/+24
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Keystoneclient has added the positional decorator which emits a warning if arguments aren't passed by keyword. This means we are getting warnings in certain places in openstackclient. Change-Id: Ic5446cd6f122cbb56fce543011386d53bc31fe18 Closes-Bug: #1302199
* | | move read_blob_file_contents to utilsSteve Martinelli2014-04-141-8/+2
|/ / | | | | | | | | | | | | | | Thinking ahead, a few other upcoming keystone features could benefit from reading contents from a file. Thus, moving the function from policy to utils. Change-Id: I713ab0e5a00c949ad996daf83b775a7c19044888
* | identity v3 allow project list filtering by domainSteven Hardy2014-03-131-1/+13
| | | | | | | | | | | | | | | | | | The underlying keystoneclient interface allows filtering by domain, so support it in the cli interface because it makes project list much nicer to use in a multi-domain deployment. Change-Id: If3f5cf1205c1e9cf314f8286a3ae81bda4456b8f Closes-Bug: #1289513
* | Merge "Add ability to set key value pairs in projects"Jenkins2014-03-131-0/+22
|\ \ | |/ |/|
| * Add ability to set key value pairs in projectsTerry Howe2014-03-061-0/+22
| | | | | | | | | | | | | | | | | | Add supporto of extra key value pairs for projects (aka tenants) * Added option --property key=value to create and set commands * Support for versions v2 and v3 Change-Id: I84064b8b308579d1b66c83b1ed3d1a37614ec087 Closes-Bug: #1220280
* | add interface and url to endpoint listDolph Mathews2014-03-071-14/+2
|/ | | | | | endpoint list is not terribly useful without these details Change-Id: I65b0bdf7667d73ceaad5856171678cabcde003f3
* Merge "Fix some help strings"Jenkins2014-02-235-7/+7
|\
| * Fix some help stringsAndreas Jaeger2014-02-215-7/+7
| | | | | | | | | | | | | | | | | | | | This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
* | Add ability to prompt for passwords for user create and setTerry Howe2014-02-211-0/+17
|/ | | | | | | | | | * Add get_password method to the utilities * Add --password-prompt option * Call the get_password method if a prompt is requested * Various tests Change-Id: I1786ad531e2a2fbcc21b8bc86aac0ccd7985995a Closes-Bug: 1100116
* Add token create subcommand for identity v3 apiQiu Yu2014-01-291-0/+18
| | | | | | | | | | Implements token create subcommand which is an equivalent of keystone token-get command. Original "wrap" parameter for keystone token-get is not implemented yet due to cliff Bug #1269299 This is a part of: blueprint add-identity-token-support Change-Id: I2255021c9d1f10f757686583b1ebe40b5f3a9ecb
* Remove copyright from empty filesAlexander Ignatov2014-01-201-14/+0
| | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* Identity v3 testsDean Troyer2013-09-094-180/+339
| | | | | | | | | * Add project, user, role and service v3 tests * Fix issues in commands with enable/disable * Make commands and tests more consistent between versions * Make formatting and comments more consistent Change-Id: Id21e7a5abd7e421a7742f937861ec46b53095fc7
* Re-order oauth commands and sync with keystoneclientSteve Martinelli2013-08-212-161/+193
| | | | | | | 1) split out token and consumer 2) sync parameters with keystoneclient Change-Id: I2d529f0f9087f9939101e963af3d801497fc1171
* Remove 'oauth authorization show' function from identity v3Steve Martinelli2013-07-311-24/+0
| | | | | | Remove the mentioned function since I removed it in the client. Change-Id: I45e713a1cdad92d257b895adfaa269404be6e6d8
* Begin Python 3 compatabilityDean Troyer2013-07-2910-35/+45
| | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* Add password field to set userSteve Martinelli2013-07-201-0/+2
| | | | | | | Noticed this was missing in set user, the password from parsed args wasn't being passed in. Change-Id: I0eb748444b86b374265b6e1dd02f69a922a9b043
* Add list and delete authorizations for oauth commandsSteve Martinelli2013-07-161-1/+86
| | | | | | | | * List user authorizations * Delete user authorization * Grouped the commands with oauth prefix Change-Id: I032ffa25181aad0fb4689f69cdca5a7adc6e29f1
* Merge "Add authenticate method to oauth code"Jenkins2013-07-151-27/+80
|\
| * Add authenticate method to oauth codeSteve Martinelli2013-07-101-27/+80
| | | | | | | | | | | | | | | | | | | | | | Forgot to add one last method when I initially checked in the first set of code; the authenticate method will return an actual keystone token that the user may now use. Also, I added some changes to other methods because the client has been updated. Change-Id: Ie2707689e0df1fb1bc92177f932baf23fe1ca920
* | Remove api = apiName calls from each methodSteve Martinelli2013-07-1210-58/+0
|/ | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
* Merge "Finish up v3 role commands"Jenkins2013-07-053-42/+280
|\
| * Finish up v3 role commandsSteve Martinelli2013-07-033-42/+280
| | | | | | | | | | | | | | | | | | | | | | | | * Add remove role * Add --role to group list * Add --role to user list * Fix groups in AddRole() * Remove the tweaks to utils.find_resource for domains; will address that across domains, projects, users and groups in another patch. I want to nail down the structure of these commands and get that into place Change-Id: I8673dd8221ef88978dada5a2833c187026bdb31a
* | Add methods for user and group interactionsSteve Martinelli2013-07-021-0/+117
| | | | | | | | | | | | | | | | * Add user to group * Contains user in group * Remove user from group Change-Id: If5219fa9d4761d7b97950c39556b3e1b8aab6517
* | Add OAuth support for Identity V3Steve Martinelli2013-06-261-0/+264
|/ | | | | | | | | | | | Added client side support for: * consumer CRUD * create request token * create access token * authroize request token blueprint: delegated-auth-via-oauth Change-Id: I8d325fcab07ac4dfd124a6e55053ded8d6bf662e
* Add domain and description to user for v3 identitySteve Martinelli2013-05-171-4/+41
| | | | | | | * splitting the changes seen in 27142 to a few new patches * this one will just update v3 user to have description and domain Change-Id: I9b4c365703da27e26ddc702f37cf5928e19cebdc
* Fix flake8 errors in anticipation of flake8 patch.Monty Taylor2013-05-143-3/+6
| | | | Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
* Add policy to identity v3Steve Martinelli2013-03-261-0/+186
| | | | | | | use file for data blobs add create/set/delete/show/list policy for v3 Change-Id: I5f68ef89dfb2241ea1aca00736ee6df5f6f03a9b
* Add endpoint v3 functionalitySteve Martinelli2013-03-191-0/+247
| | | | | | | | | simple rebase integrated dolphm and dtroyer comments Added create,list,delete,set,show endpoints modified setup.py Change-Id: Id6153db16db44130beb3b44a8e3e2f72e9a01e5f
* Add service v3 support for identitySteve Martinelli2013-03-191-0/+186
| | | | | | | | | simple rebase rewrite help for create, remove choices Added create/delete/list/show/set for service Modified setup.py Change-Id: I5ced0e214cc2f7fc70493c66b4381040ce8122fe
* Add functionality for add-role commandsSteve Martinelli2013-03-151-0/+81
| | | | | | | | | keep the functions sorted Please review carefully as I intend to mimic this logic with list and remove, I'm open to suggestions about handling thigs differently Change-Id: Ia6359134c44447f3b758870c4dc306ec1f970852
* Add role v3 support to identity in openstack clientSteve Martinelli2013-03-121-0/+144
| | | | | | | | Added create/delete/set/list/show support for roles Broken up to make reviewing easier. Will add more functionality (add/remove) later Change-Id: I95bddd27d8d9d251ad2fd60c3e3ee1e2cbcd7d4b
* add domain, credential to identity v3 apiSteve Martinelli2013-03-082-0/+392
| | | | | | | | | | | moved policy.py to it's own patch minor changes based on comments reworked it now that the domain specs have changed added credential - create, delete, update, show, list added domain - create, delete, update, show, list update setup.py entry points Change-Id: I6bbbb8fdfbc3e76ba75374e9579eb92c96c928fe
* Multiple API version supportDean Troyer2013-02-061-0/+247
| | | | | | | | | | | | | | | | * Use multiple entry point groups to represent each API+version combination supported * Add some tests Try it out: * Right now only '* user' commands have multiple overlapping versions; you can see the selection between v2.0 and v3 by looking at the command help output for 'tenant' vs 'project': os --os-identity-api-version=2.0 help set user os --os-identity-api-version=3 help set user Change-Id: I7114fd246843df0243d354a7cce697810bb7de62
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-312-78/+45
| | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe