Skip to content

Commit eb0a2f9

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Update doc for credential in indentityv3"
2 parents 60639d7 + c0467ed commit eb0a2f9

2 files changed

Lines changed: 107 additions & 21 deletions

File tree

Lines changed: 97 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,113 @@
1-
===========
1+
==========
22
credential
3-
===========
3+
==========
44

55
Identity v3
66

77
credential create
8-
------------------
8+
-----------------
99

10-
.. ''[consider rolling the ec2 creds into this too]''
10+
Create new credential
1111

12+
.. program:: credential create
1213
.. code:: bash
1314
1415
os credential create
15-
--x509
16-
[<private-key-file>]
17-
[<certificate-file>]
16+
[--type <type>]
17+
[--project <project>]
18+
<user> <data>
19+
20+
.. option:: --type <type>
21+
22+
New credential type
23+
24+
.. option:: --project <project>
25+
26+
Project which limits the scope of the credential (name or ID)
27+
28+
.. _credential_create:
29+
.. describe:: <user>
30+
31+
User that owns the credential (name or ID)
32+
33+
.. describe:: <data>
34+
35+
New credential data
36+
37+
credential delete
38+
-----------------
39+
40+
Delete credential(s)
41+
42+
.. program:: credential delete
43+
.. code:: bash
44+
45+
os credential delete
46+
<credential-id> [<credential-id> ...]
47+
48+
.. _credential_delete:
49+
.. describe:: <credential-id>
50+
51+
ID(s) of credential to delete
52+
53+
credential list
54+
---------------
55+
56+
List credentials
57+
58+
.. program:: credential list
59+
.. code:: bash
60+
61+
os credential list
62+
63+
credential set
64+
--------------
65+
66+
Set credential properties
67+
68+
.. program:: credential set
69+
.. code:: bash
70+
71+
os credential set
72+
[--user <user>]
73+
[--type <type>]
74+
[--data <data>]
75+
[--project <project>]
76+
<credential-id>
77+
78+
.. option:: --user <user>
79+
80+
User that owns the credential (name or ID)
81+
82+
.. option:: --type <type>
83+
84+
New credential type
85+
86+
.. option:: --data <data>
87+
88+
New credential data
89+
90+
.. option:: --project <project>
91+
92+
Project which limits the scope of the credential (name or ID)
93+
94+
.. _credential_set:
95+
.. describe:: <credential-id>
96+
97+
ID of credential to change
1898

1999
credential show
20-
----------------
100+
---------------
101+
102+
Display credential details
21103

104+
.. program:: credential show
22105
.. code:: bash
23106
24107
os credential show
25-
[--token]
26-
[--user]
27-
[--x509 [--root]]
108+
<credential-id>
109+
110+
.. _credential_show:
111+
.. describe:: <credential-id>
112+
113+
ID of credential to display

openstackclient/identity/v3/credential.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030

3131
class CreateCredential(command.ShowOne):
32-
"""Create credential command"""
32+
"""Create new credential"""
3333

3434
def get_parser(self, prog_name):
3535
parser = super(CreateCredential, self).get_parser(prog_name)
3636
parser.add_argument(
3737
'user',
3838
metavar='<user>',
39-
help=_('Name or ID of user that owns the credential'),
39+
help=_('user that owns the credential (name or ID)'),
4040
)
4141
parser.add_argument(
4242
'--type',
@@ -53,8 +53,8 @@ def get_parser(self, prog_name):
5353
parser.add_argument(
5454
'--project',
5555
metavar='<project>',
56-
help=_('Project name or ID which limits the '
57-
'scope of the credential'),
56+
help=_('Project which limits the scope of '
57+
'the credential (name or ID)'),
5858
)
5959
return parser
6060

@@ -110,7 +110,7 @@ def take_action(self, parsed_args):
110110

111111

112112
class ListCredential(command.Lister):
113-
"""List credential command"""
113+
"""List credentials"""
114114

115115
def take_action(self, parsed_args):
116116
columns = ('ID', 'Type', 'User ID', 'Blob', 'Project ID')
@@ -124,7 +124,7 @@ def take_action(self, parsed_args):
124124

125125

126126
class SetCredential(command.Command):
127-
"""Set credential command"""
127+
"""Set credential properties"""
128128

129129
def get_parser(self, prog_name):
130130
parser = super(SetCredential, self).get_parser(prog_name)
@@ -137,7 +137,7 @@ def get_parser(self, prog_name):
137137
'--user',
138138
metavar='<user>',
139139
required=True,
140-
help=_('Name or ID of user that owns the credential'),
140+
help=_('User that owns the credential (name or ID)'),
141141
)
142142
parser.add_argument(
143143
'--type',
@@ -155,8 +155,8 @@ def get_parser(self, prog_name):
155155
parser.add_argument(
156156
'--project',
157157
metavar='<project>',
158-
help=_('Project name or ID which limits the '
159-
'scope of the credential'),
158+
help=_('Project which limits the scope of '
159+
'the credential (name or ID)'),
160160
)
161161
return parser
162162

@@ -180,7 +180,7 @@ def take_action(self, parsed_args):
180180

181181

182182
class ShowCredential(command.ShowOne):
183-
"""Show credential command"""
183+
"""Display credential details"""
184184

185185
def get_parser(self, prog_name):
186186
parser = super(ShowCredential, self).get_parser(prog_name)

0 commit comments

Comments
 (0)