# Path: ironicclient/common/http.py
# DEFAULT_VER = '1.9'
# LAST_KNOWN_API_VERSION = 78
# LATEST_VERSION = '1.{}'.format(LAST_KNOWN_API_VERSION)
# LOG = logging.getLogger(__name__)
# USER_AGENT = 'python-ironicclient'
# CHUNKSIZE = 1024 * 64  # 64kB
# _MAJOR_VERSION = 1
# API_VERSION = '/v%d' % _MAJOR_VERSION
# API_VERSION_SELECTED_STATES = ('user', 'negotiated', 'cached', 'default')
# DEFAULT_MAX_RETRIES = 5
# DEFAULT_RETRY_INTERVAL = 2
# SENSITIVE_HEADERS = ('X-Auth-Token',)
# SUPPORTED_ENDPOINT_SCHEME = ('http', 'https')
# _API_VERSION_RE = re.compile(r'/+(v%d)?/*$' % _MAJOR_VERSION)
# _RETRY_EXCEPTIONS = (exc.Conflict, exc.ServiceUnavailable,
#                      exc.ConnectionRefused, kexc.RetriableConnectionFailure)
# def _trim_endpoint_api_version(url):
# def _extract_error_json(body):
# def get_server(url):
#     def negotiate_version(self, conn, resp):
#         def _query_server(conn):
#     def _generic_parse_version_headers(self, accessor_func):
#     def _parse_version_headers(self, accessor_func):
#     def _make_simple_request(self, conn, method, url):
#     def _must_negotiate_version(self):
# def with_retries(func):
#     def wrapper(self, url, method, **kwargs):
#     def __init__(self,
#                  os_ironic_api_version,
#                  api_version_select_state,
#                  max_retries,
#                  retry_interval,
#                  **kwargs):
#     def _parse_version_headers(self, resp):
#     def _get_endpoint_filter(self):
#     def _make_simple_request(self, conn, method, url):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
# def _construct_http_client(session,
#                            token=None,
#                            auth_ref=None,
#                            os_ironic_api_version=DEFAULT_VER,
#                            api_version_select_state='default',
#                            max_retries=DEFAULT_MAX_RETRIES,
#                            retry_interval=DEFAULT_RETRY_INTERVAL,
#                            timeout=600,
#                            ca_file=None,
#                            cert_file=None,
#                            key_file=None,
#                            insecure=None,
#                            **kwargs):
# class VersionNegotiationMixin(object):
# class SessionClient(VersionNegotiationMixin, adapter.LegacyJsonAdapter):


import argparse
import logging
from osc_lib import utils
from ironicclient.common import http
#
#   Copyright 2015 Red Hat, Inc.
#
#   Licensed under the Apache License, Version 2.0 (the "License"); you may
#   not use this file except in compliance with the License. You may obtain
#   a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#   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 Bare Metal service."""




LOG = logging.getLogger(__name__)

CLIENT_CLASS = 'ironicclient.v1.client.Client'
API_VERSION_OPTION = 'os_baremetal_api_version'
API_NAME = 'baremetal'
# NOTE(TheJulia) Latest known version tracking has been moved
# to the ironicclient/common/http.py file as the OSC committment
# is latest known, and we should only store it in one location.

# Path: ironicclient/common/http.py
# DEFAULT_VER = '1.9'
# LAST_KNOWN_API_VERSION = 78
# LATEST_VERSION = '1.{}'.format(LAST_KNOWN_API_VERSION)
# LOG = logging.getLogger(__name__)
# USER_AGENT = 'python-ironicclient'
# CHUNKSIZE = 1024 * 64  # 64kB
# _MAJOR_VERSION = 1
# API_VERSION = '/v%d' % _MAJOR_VERSION
# API_VERSION_SELECTED_STATES = ('user', 'negotiated', 'cached', 'default')
# DEFAULT_MAX_RETRIES = 5
# DEFAULT_RETRY_INTERVAL = 2
# SENSITIVE_HEADERS = ('X-Auth-Token',)
# SUPPORTED_ENDPOINT_SCHEME = ('http', 'https')
# _API_VERSION_RE = re.compile(r'/+(v%d)?/*$' % _MAJOR_VERSION)
# _RETRY_EXCEPTIONS = (exc.Conflict, exc.ServiceUnavailable,
#                      exc.ConnectionRefused, kexc.RetriableConnectionFailure)
# def _trim_endpoint_api_version(url):
# def _extract_error_json(body):
# def get_server(url):
#     def negotiate_version(self, conn, resp):
#         def _query_server(conn):
#     def _generic_parse_version_headers(self, accessor_func):
#     def _parse_version_headers(self, accessor_func):
#     def _make_simple_request(self, conn, method, url):
#     def _must_negotiate_version(self):
# def with_retries(func):
#     def wrapper(self, url, method, **kwargs):
#     def __init__(self,
#                  os_ironic_api_version,
#                  api_version_select_state,
#                  max_retries,
#                  retry_interval,
#                  **kwargs):
#     def _parse_version_headers(self, resp):
#     def _get_endpoint_filter(self):
#     def _make_simple_request(self, conn, method, url):
#     def _http_request(self, url, method, **kwargs):
#     def json_request(self, method, url, **kwargs):
#     def raw_request(self, method, url, **kwargs):
# def _construct_http_client(session,
#                            token=None,
#                            auth_ref=None,
#                            os_ironic_api_version=DEFAULT_VER,
#                            api_version_select_state='default',
#                            max_retries=DEFAULT_MAX_RETRIES,
#                            retry_interval=DEFAULT_RETRY_INTERVAL,
#                            timeout=600,
#                            ca_file=None,
#                            cert_file=None,
#                            key_file=None,
#                            insecure=None,
#                            **kwargs):
# class VersionNegotiationMixin(object):
# class SessionClient(VersionNegotiationMixin, adapter.LegacyJsonAdapter):


# Path: ironicclient/osc/plugin.py
import argparse
import logging
from osc_lib import utils
from ironicclient.common import http

#
#   Copyright 2015 Red Hat, Inc.
#
#   Licensed under the Apache License, Version 2.0 (the "License"); you may
#   not use this file except in compliance with the License. You may obtain
#   a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#   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 Bare Metal service."""




LOG = logging.getLogger(__name__)

CLIENT_CLASS = 'ironicclient.v1.client.Client'
API_VERSION_OPTION = 'os_baremetal_api_version'
API_NAME = 'baremetal'
# NOTE(TheJulia) Latest known version tracking has been moved
# to the ironicclient/common/http.py file as the OSC committment
# is latest known, and we should only store it in one location.

LAST_KNOWN_API_VERSION = http.LAST_KNOWN_API_VERSION