summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2014-12-30 17:46:02 -0600
committerDean Troyer <dtroyer@gmail.com>2015-01-02 11:29:07 -0600
commitb56da8dde2ef78f057e67b0b307ee7ce2dff2d7d (patch)
tree51bb0d95a05cf9efc4044866de9ea34795ec1bbe /openstackclient/identity/v2_0
parent457f4c899845abc1f9fe54fbb694efeeb61313d8 (diff)
downloadpython-openstackclient-b56da8dde2ef78f057e67b0b307ee7ce2dff2d7d.tar.gz
Add endpoint v3 docs
(update: change version description formats for API versioning) Change-Id: I499ea1d80ad6ad6392468305f761e695d7261e33
Diffstat (limited to 'openstackclient/identity/v2_0')
-rw-r--r--openstackclient/identity/v2_0/endpoint.py47
1 files changed, 27 insertions, 20 deletions
diff --git a/openstackclient/identity/v2_0/endpoint.py b/openstackclient/identity/v2_0/endpoint.py
index c5189b62..370a931d 100644
--- a/openstackclient/identity/v2_0/endpoint.py
+++ b/openstackclient/identity/v2_0/endpoint.py
@@ -28,7 +28,7 @@ from openstackclient.identity import common
class CreateEndpoint(show.ShowOne):
- """Create endpoint"""
+ """Create new endpoint"""
log = logging.getLogger(__name__ + '.CreateEndpoint')
@@ -36,25 +36,30 @@ class CreateEndpoint(show.ShowOne):
parser = super(CreateEndpoint, self).get_parser(prog_name)
parser.add_argument(
'service',
- metavar='<endpoint-service>',
- help=_('New endpoint service'))
- parser.add_argument(
- '--region',
- metavar='<region>',
- help=_('New endpoint region'))
+ metavar='<service>',
+ help=_('New endpoint service (name or ID)'),
+ )
parser.add_argument(
'--publicurl',
- metavar='<public-url>',
+ metavar='<url>',
required=True,
- help=_('New endpoint public URL'))
+ help=_('New endpoint public URL (required)'),
+ )
parser.add_argument(
'--adminurl',
- metavar='<admin-url>',
- help=_('New endpoint admin URL'))
+ metavar='<url>',
+ help=_('New endpoint admin URL'),
+ )
parser.add_argument(
'--internalurl',
- metavar='<internal-url>',
- help=_('New endpoint internal URL'))
+ metavar='<url>',
+ help=_('New endpoint internal URL'),
+ )
+ parser.add_argument(
+ '--region',
+ metavar='<region-id>',
+ help=_('New endpoint region ID'),
+ )
return parser
def take_action(self, parsed_args):
@@ -76,7 +81,7 @@ class CreateEndpoint(show.ShowOne):
class DeleteEndpoint(command.Command):
- """Delete endpoint command"""
+ """Delete endpoint"""
log = logging.getLogger(__name__ + '.DeleteEndpoint')
@@ -85,7 +90,7 @@ class DeleteEndpoint(command.Command):
parser.add_argument(
'endpoint',
metavar='<endpoint-id>',
- help=_('ID of endpoint to delete'))
+ help=_('Endpoint ID to delete'))
return parser
def take_action(self, parsed_args):
@@ -96,7 +101,7 @@ class DeleteEndpoint(command.Command):
class ListEndpoint(lister.Lister):
- """List endpoint command"""
+ """List endpoints"""
log = logging.getLogger(__name__ + '.ListEndpoint')
@@ -106,7 +111,8 @@ class ListEndpoint(lister.Lister):
'--long',
action='store_true',
default=False,
- help=_('List additional fields in output'))
+ help=_('List additional fields in output'),
+ )
return parser
def take_action(self, parsed_args):
@@ -131,7 +137,7 @@ class ListEndpoint(lister.Lister):
class ShowEndpoint(show.ShowOne):
- """Show endpoint command"""
+ """Display endpoint details"""
log = logging.getLogger(__name__ + '.ShowEndpoint')
@@ -139,8 +145,9 @@ class ShowEndpoint(show.ShowOne):
parser = super(ShowEndpoint, self).get_parser(prog_name)
parser.add_argument(
'endpoint_or_service',
- metavar='<endpoint_or_service>',
- help=_('Endpoint ID or name, type or ID of service to display'))
+ metavar='<endpoint-id>',
+ help=_('Endpoint ID to display'),
+ )
return parser
def take_action(self, parsed_args):