
from barbicanclient import client


DEFAULT_API_VERSION = '1'
API_VERSION_OPTION = 'os_key_manager_api_version'
API_NAME = 'key_manager'
API_VERSIONS = {
    '1': 'barbicanclient.client.Client',
}


def make_client(instance):
    """Returns a Barbican service client."""
    return client.Client(session=instance.session,
                         region_name=instance._region_name)


def build_option_parser(parser):
    """Hook to add global options."""
    parser.add_argument('--os-key-manager-api-version',
                        metavar='<key-manager-api-version>',
                        default=client.env(
                            'OS_KEY_MANAGER_API_VERSION',
                            default=DEFAULT_API_VERSION),
                        help=('Barbican API version, default=' +
                              DEFAULT_API_VERSION +
                              ' (Env: OS_KEY_MANAGER_API_VERSION)'))
    return parser


"""OpenStackClient plugin for Key Manager service."""

from barbicanclient import client


DEFAULT_API_VERSION = '1'
API_VERSION_OPTION = 'os_key_manager_api_version'
API_NAME = 'key_manager'
API_VERSIONS = {
    '1': 'barbicanclient.client.Client',
}


def make_client(instance):
    """Returns a Barbican service client."""
    return client.Client(session=instance.session,
                         region_name=instance._region_name)


def build_option_parser(parser):
    """Hook to add global options."""
    parser.add_argument('--os-key-manager-api-version',
                        metavar='<key-manager-api-version>',
                        default=client.env(
                            'OS_KEY_MANAGER_API_VERSION',
                            default=DEFAULT_API_VERSION),
                        help=('Barbican API version, default=' +
                              DEFAULT_API_VERSION +
                              ' (Env: OS_KEY_MANAGER_API_VERSION)'))
    return parser

Add plug-in summary for osc doc
Add plug-in summary for osc doc

Stevedore Sphinx extension handles this comment.
http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html

Change-Id: Id6339d11b900a644647c8c25bbd630ef52a60aab

+ 
+ """OpenStackClient plugin for Key Manager service."""
  
  from barbicanclient import client
  
  
  DEFAULT_API_VERSION = '1'
  API_VERSION_OPTION = 'os_key_manager_api_version'
  API_NAME = 'key_manager'
  API_VERSIONS = {
      '1': 'barbicanclient.client.Client',
  }
  
  
  def make_client(instance):
      """Returns a Barbican service client."""
      return client.Client(session=instance.session,
                           region_name=instance._region_name)
  
  
  def build_option_parser(parser):
      """Hook to add global options."""
      parser.add_argument('--os-key-manager-api-version',
                          metavar='<key-manager-api-version>',
                          default=client.env(
                              'OS_KEY_MANAGER_API_VERSION',
                              default=DEFAULT_API_VERSION),
                          help=('Barbican API version, default=' +
                                DEFAULT_API_VERSION +
                                ' (Env: OS_KEY_MANAGER_API_VERSION)'))
      return parser
  
Add plug-in summary for osc doc
## Code Before:

from barbicanclient import client


DEFAULT_API_VERSION = '1'
API_VERSION_OPTION = 'os_key_manager_api_version'
API_NAME = 'key_manager'
API_VERSIONS = {
    '1': 'barbicanclient.client.Client',
}


def make_client(instance):
    """Returns a Barbican service client."""
    return client.Client(session=instance.session,
                         region_name=instance._region_name)


def build_option_parser(parser):
    """Hook to add global options."""
    parser.add_argument('--os-key-manager-api-version',
                        metavar='<key-manager-api-version>',
                        default=client.env(
                            'OS_KEY_MANAGER_API_VERSION',
                            default=DEFAULT_API_VERSION),
                        help=('Barbican API version, default=' +
                              DEFAULT_API_VERSION +
                              ' (Env: OS_KEY_MANAGER_API_VERSION)'))
    return parser

## Instruction:
Add plug-in summary for osc doc
## Code After:

"""OpenStackClient plugin for Key Manager service."""

from barbicanclient import client


DEFAULT_API_VERSION = '1'
API_VERSION_OPTION = 'os_key_manager_api_version'
API_NAME = 'key_manager'
API_VERSIONS = {
    '1': 'barbicanclient.client.Client',
}


def make_client(instance):
    """Returns a Barbican service client."""
    return client.Client(session=instance.session,
                         region_name=instance._region_name)


def build_option_parser(parser):
    """Hook to add global options."""
    parser.add_argument('--os-key-manager-api-version',
                        metavar='<key-manager-api-version>',
                        default=client.env(
                            'OS_KEY_MANAGER_API_VERSION',
                            default=DEFAULT_API_VERSION),
                        help=('Barbican API version, default=' +
                              DEFAULT_API_VERSION +
                              ' (Env: OS_KEY_MANAGER_API_VERSION)'))
    return parser
