# Path: barbicanclient/client.py
# LOG = logging.getLogger(__name__)
# _DEFAULT_SERVICE_TYPE = 'key-manager'
# _DEFAULT_SERVICE_INTERFACE = 'public'
# _DEFAULT_API_VERSION = 'v1'
# _SUPPORTED_API_VERSION_MAP = {'v1': 'barbicanclient.v1.client.Client'}
# class _HTTPClient(adapter.Adapter):
# class _LazyImporter(object):
#     def __init__(self, session, project_id=None, **kwargs):
#     def request(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, path, *args, **kwargs):
#     def _fix_path(self, path):
#     def _get_raw(self, path, *args, **kwargs):
#     def _check_status_code(self, resp):
#     def _get_error_message(self, resp):
# def Client(version=None, session=None, *args, **kwargs):
# def env(*vars, **kwargs):
#     def __init__(self, module):
#     def __getattr__(self, name):


from barbicanclient import client
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#   WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#   License for the specific language governing permissions and limitations
#   under the License.

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



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,
                         interface=instance.interface)


def build_option_parser(parser):
    """Hook to add global options."""
    parser.add_argument('--os-key-manager-api-version',
                        metavar='<key-manager-api-version>',

# Path: barbicanclient/client.py
# LOG = logging.getLogger(__name__)
# _DEFAULT_SERVICE_TYPE = 'key-manager'
# _DEFAULT_SERVICE_INTERFACE = 'public'
# _DEFAULT_API_VERSION = 'v1'
# _SUPPORTED_API_VERSION_MAP = {'v1': 'barbicanclient.v1.client.Client'}
# class _HTTPClient(adapter.Adapter):
# class _LazyImporter(object):
#     def __init__(self, session, project_id=None, **kwargs):
#     def request(self, *args, **kwargs):
#     def get(self, *args, **kwargs):
#     def post(self, path, *args, **kwargs):
#     def _fix_path(self, path):
#     def _get_raw(self, path, *args, **kwargs):
#     def _check_status_code(self, resp):
#     def _get_error_message(self, resp):
# def Client(version=None, session=None, *args, **kwargs):
# def env(*vars, **kwargs):
#     def __init__(self, module):
#     def __getattr__(self, name):


# Path: barbicanclient/osc_plugin.py
from barbicanclient import client

#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#   WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#   License for the specific language governing permissions and limitations
#   under the License.

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



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,
                         interface=instance.interface)


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(