summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0
Commit message (Collapse)AuthorAgeFilesLines
* Support unscoped token requestguang-yee2016-02-191-1/+5
| | | | | | | | Make scope check optional for the "token issue" command as unscoped token is a valid Keystone V2/V3 API. Change-Id: Ie1cded4dbfdafd3a78c0ebdf89e3f66762509930 Closes-Bug: #1543214
* log take_action parameters in a single placeAkihiro Motoki2016-02-028-161/+31
| | | | | | | | | | | | Previously each command logs take_action parameters explicitly by using @utils.log_method decorator or log.debug(). Some commands have no logging. This commit calls a logger in the base class and drops all logging definition from individual commands. Closes-Bug: #1532294 Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
* Implementation for project unset cmd for python-openstackclient.Jude Job2016-01-041-0/+56
| | | | | | | | | This patch introduces a unit test class TestProjectUnset for testing unset cmd. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ib4a414d2313e3d37e48d1cb3639f064231aec508 Closes-Bug: #1486597
* Switch to ksa SessionDean Troyer2015-12-023-8/+8
| | | | | | | | * Change session imports to keystoneauth1 * Change keystoneclient.exception imports to keystoneauth1 * Change exceptions raised from internal API from keystoneclient to openstack.common Change-Id: I046d89f561d6fe04baae53726f9749d2e7fe2056
* Use a common decorator to log 'take_action' activationJoshua Harlow2015-09-018-32/+33
| | | | | | | | | Instead of duplicating the same log statement throughout the code, the same logic can be provided by a shared decorator that abstracts away the logging capability and unifies it behind a common function instead. Change-Id: Icc63bced7347c8bbf0299a4c5821425a10892a79
* only return endpoints that have urlGuojian Shao2015-07-161-2/+4
| | | | | Change-Id: I97a502252c0c377fce573e92b83c0122812f6f80 Closes-Bug: #1474656
* openstack catalog list always returns publicURL for internalURL and adminURLMartin Schuppert2015-07-081-1/+1
| | | | | | | | With this change 'openstack catalog list' returns the correspoding URL for publicURL, internalURL and adminURL in _format_endpoints . Change-Id: I5d946c9d70a2d3c22a7cc77067fec8e2e9aa4940 Closes-Bug: 1472629
* Clean up ec2 credentials help textDean Troyer2015-06-031-7/+11
| | | | | | | Re-sync the text in v2 and v3 help and the docs Depends-On: If4ac5356ade8cff347bb9eb9f88d1ace82bb7275 Change-Id: Iabef2f271fcf46748295c29713fea1811dcab29c
* Fix catalog list when region name is absentDean Troyer2015-03-061-1/+2
| | | | | | | | Some service catalogs in the wild have services without region names defined. Let's be nice and stuff in a default value indicating this state. Closes-Bug: #1429211 Change-Id: I3ebe2534dc6e3438aaeddc7757fb2db4117eae4b
* Fix identity v2 catalog listTerryHowe2015-03-041-1/+2
| | | | | | | The v2 catalog list was only printing the last endpoint in the catalog. Change-Id: I5401a11eedb3be1513c86261329de50c8ad82720
* Update service clist commands for v2 and v3Dean Troyer2015-01-161-7/+7
| | | | | | | | | | | | Changes to the 'service list' commands for Identity v2 and v3: * Document support for --long * Add Description to v3 output with --long * v3 output is now (ID, Name, Type), with (Description, Enabled) added with --long * Change v2 output to match v3 output, with the absense of Enabled. * Update doc to match Closes-Bug: #1411337 Change-Id: I999e3df22f61350cdeba63bbb7d01145c2ffeeaf
* Merge "Rework role list v2 for --user and --project"Jenkins2015-01-131-2/+67
|\
| * Rework role list v2 for --user and --projectSteve Martinelli2015-01-101-2/+67
| | | | | | | | | | | | | | | | | | `os user role list` does the same as v3's `os role list`. We should rework v2's `role list` to basically call `os user role list` under the covers. Closes-Bug: #1409179 Change-Id: I9839f6be139d6a6a3f6bbf79957e218dd8e03fe3
* | Merge "Tweaks to the catalog doc and show command"Jenkins2015-01-131-1/+6
|\ \
| * | Tweaks to the catalog doc and show commandSteve Martinelli2015-01-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Looks like providing a service id isn't working, so it the help message was reduced to just type and name. Added a bit more to the docs, too. Change-Id: Id7f8b48bdf99773ad55ca7f204f3c779f84633d5
* | | Merge "Fine tune some of the helps commands"Jenkins2015-01-134-8/+8
|\ \ \ | |/ /
| * | Fine tune some of the helps commandsSteve Martinelli2015-01-135-9/+9
| |/ | | | | | | | | | | | | | | | | try and add some consistency with the show and delete commands. replace 'show x' with 'display x' change 'delete a y' with just 'delete y' Change-Id: I47dfa8ee23ac5c41b355796415eb515155832f65
* | Merge "fix some small issues in catalog show"Jenkins2015-01-121-12/+7
|\ \
| * | fix some small issues in catalog showwanghong2015-01-121-12/+7
| |/ | | | | | | | | | | | | | | | | | | | | I think there are three issues we should fix: 1. wrong indentation of 'continue' 2. currently, name is optional for service, but according to the currrent logic, if a service doesn't have name attribute we will select it anyway 3. we always loop all catalogs Change-Id: I9fce66677affa396b6a12afea76e87cab9215a58
* | Command docs: add serviceDean Troyer2015-01-121-3/+3
|/ | | | | | | Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com> Change-Id: Icd39e6d769fd4c4797fcf4ef9eb97c71ed166b3b Closes-Bug: #1404434
* Merge "Add endpoint v3 docs"Jenkins2015-01-041-20/+27
|\
| * Add endpoint v3 docsDean Troyer2015-01-021-20/+27
| | | | | | | | | | | | (update: change version description formats for API versioning) Change-Id: I499ea1d80ad6ad6392468305f761e695d7261e33
* | Merge "type should be required for v2.0 service create"Jenkins2015-01-031-8/+33
|\ \
| * | type should be required for v2.0 service createlin-hua-cheng2014-12-301-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updated the service name to be optional, mostly matching the cli arguments with v3 service create. Implemented the following changes on service create: - if only a single positional is present, it's a <type>. This is not currently legal so it is considered a new case. - if --type option is present the positional is handled as <name>; display deprecation message - if --name option is present the positional is handled as <type>. Making --type optional is new, but back-compatible - Made --name and --type mutually exclusive. - only '--name <service-name> <type>' shall appear in the help output Change-Id: I8fd4adba3d8cd00d5a8cacc2c494d99d492c45a3 Closes-Bug: #1404073
* | | Command docs: ec2 credentialsDean Troyer2015-01-021-6/+8
| |/ |/| | | | | | | | | Add ec2 credentials docs Change-Id: I1699d1c8e9859153557081966654646966a3268d
* | add multi-delete support for identitywanghong2014-12-233-27/+30
|/ | | | | | | | | | | | | | This is part2. Add support for these objects: identity.project(v2.0) identity.role(v2.0) identity.user(v2.0) identity.project(v3) identity.role(v3) identity.user(v3) identity.group(v3) Closes-Bug: #1400597 Change-Id: I270434d657cf4ddc23c3aba2c704d6ef184b0dbc
* Don't import form keystoneclient.openstack.commonJamie Lennox2014-12-173-3/+3
| | | | | | | | The keystoneclient.openstack.common directory is where we sync files from oslo incubator. It is not a public directory and should not be being consumed by openstackclient. Change-Id: I011bb95c2c824e2dbc4b822ca922ae77b8d9b955
* Followup for ec2 credentials command fixDean Troyer2014-12-051-0/+12
| | | | | | | | Add functional tests for 'ec2 credentials' commands. Also fix tenant_id in output for create and show. Change-Id: I6ba3249b67408571624709e17f8aa2ac6d80237d
* Fix ec2 credentials commands for new authDean Troyer2014-12-051-5/+5
| | | | | | | | These commands were not updated for the new authentication model. Closes-Bug: 1399757 Change-Id: I5d4beb9d1fa6914fef5e4c7b459cdd967e614b24
* Safely pop project parent idSteve Martinelli2014-12-041-3/+5
| | | | | | | | | Since we don't support multitenancy yet, we should just pop the parent id of a project. When keystoneclient supports mulittenancy we should bring everything in at once (CRUD), and these changes should be removed. Change-Id: I82c7c825502124a24ccdbadf09ecb2748887ca5d
* Command object docs: project, role, userDean Troyer2014-12-013-44/+55
| | | | | | | | | project role user user role Change-Id: I445e09a3ffb69114912ae562a9285963a636bfd1
* Begin copying wiki command list hereDean Troyer2014-11-191-1/+1
| | | | | | | | | | * Sort by command objects * Drop the comparison to the project CLIs * Minor updates to command help to match docs Initially include the cross-API commands to establish the structure and format. Change-Id: I77a7b3c89e088b66aa62941e29ce0b65b532285b
* Add additional support for --or-showSteve Martinelli2014-11-142-7/+38
| | | | | | | | Add --or-show for the following: * v2 roles * v2 projects Change-Id: Ibbae19cda668575b9527fbd259f1298c48b8265b
* Add --or-show option to user createDean Troyer2014-11-071-7/+23
| | | | | | | | | | | | | | | | The --or-show option is added to create commands for the common case of needing to ensure an object exists and getting its properties if it does or creating a new one if it does not exist. Note that if the object exists, any additional options that would set values in a newly created object are ignored if the object exists. FakeResource needs the __name__ attribute to fall through utils.find_resource. Prove the concept on v2 user create then propogate once we're happy with it... Change-Id: I6268566514840c284e6a1d44b409a81d6699ef99
* Remove ClientManager._service_catalogDean Troyer2014-10-181-1/+2
| | | | | | | | | | Anything that needs a service catalog can get it directly from auth_ref.service_catalog, no need to carry the extra attribute. ClientManager.get_endpoint_for_service_type() reamins the proper method to get an endpoint for clients that still need one directly. Change-Id: I809091c9c71d08f29606d7fd8b500898ff2cb8ae
* Merge "Mark identity v2 resources for translation"Jenkins2014-10-127-60/+64
|\
| * Mark identity v2 resources for translationSteve Martinelli2014-10-097-60/+64
| | | | | | | | | | | | mark v2 catalog, ec2, endpoint, project, role, service and token Change-Id: I14a5852bfee4ca9e25130d001fdadd7778ad0996
* | Add translation markers for user v2 actionsSteve Martinelli2014-10-091-20/+21
|/ | | | | | implements bp use_i18n Change-Id: I86508a232c9cf88695b7982dad0b9b02eaf8b3a1
* Merge "Add service catalog commands"Jenkins2014-09-191-0/+98
|\
| * Add service catalog commandsDean Troyer2014-09-181-0/+98
| | | | | | | | | | | | | | | | 'catalog list' and 'catalog show' for Identity v2 Identity v2 only so far. Change-Id: I9df0dac3d5bb7c18f38a81bd7d29f8119462d3a5
* | Return current user/project for user/project show commandsDean Troyer2014-09-142-17/+53
|/ | | | | | | | If non-admin user attempts 'project show' or 'user show' on the currently authenticated project or user return the information that is already in the service catalog rather than throwing a Forbidden error. Change-Id: Ieeb6eacf71a471e410fbd3c09e7871740547e890
* Use Keystone client session.SessionDean Troyer2014-09-081-2/+1
| | | | | | | | | | | | | | This replaces the restapi requests wrapper with the one from Keystone client so we can take advantage of the auth plugins. As a first step only the v2 and v3 token and password plugins are supported. This maintainis no changes to the command options or environment variables. The next steps will include reworking the other API client interfaces to fully utilize the single auth session. Blueprint: ksc-session-auth Change-Id: I47ec63291e4c3cf36c8061299a4764f60b36ab89
* user create v2.0 depends on tenantId in responseSteve Martinelli2014-08-041-3/+4
| | | | | | | | User create for v2.0 no longer always contains a tenantId in the response. Add a guard to check for tenantId first before pop'ing it. Change-Id: I428dbc26520bb86efad33768ce04f584217ad168 Closes-Bug: #1352119
* Normalize more help stringsDean Troyer2014-07-241-1/+1
| | | | Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
* Rename token classes to match commandDean Troyer2014-06-271-7/+9
| | | | | | | The token create/delete commands were renamed but not the class names. Rename them to match. Change-Id: Icbf9c0a954ed0332fa4c99e4ee2612bb11f89e3a
* Merge "Change the token verb to issue/revoke"Jenkins2014-06-181-2/+2
|\
| * Change the token verb to issue/revokeTerry Howe2014-06-181-2/+2
| | | | | | | | | | | | | | | | | | 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
* | Merge "Add token delete command for identity v2"Jenkins2014-06-181-0/+22
|\ \ | |/
| * Add token delete command for identity v2Terry Howe2014-05-231-0/+22
| | | | | | | | | | | | | | | | Identity v2 has undocumented support for token delete and keystoneclient also has support. Change-Id: Ib98d17958ceb88f7b63471691dee71fdb884ce2e Closes-Bug: #1318442
* | Merge "replace string format arguments with function parameters"Jenkins2014-06-107-30/+30
|\ \