4 cloudFPGA Resource Manager API
6 No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
8 OpenAPI spec version: 0.8
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
13 from __future__
import absolute_import
17 import multiprocessing
22 from six.moves
import http_client
as httplib
27 super(TypeWithDefault, cls).
__init__(name, bases, dct)
32 cls.
_default_default = type.__call__(cls)
33 return copy.copy(cls.
_default_default)
36 cls.
_default_default = copy.copy(default)
40 """NOTE: This class is auto generated by the swagger code generator program.
42 Ref: https://github.com/swagger-api/swagger-codegen
43 Do not edit the class manually.
66 self.
loggerlogger[
"package_logger"] = logging.getLogger(
"swagger_client")
67 self.
loggerlogger[
"urllib3_logger"] = logging.getLogger(
"urllib3")
108 If the logger_file is None, then add stream handler and remove file
109 handler. Otherwise, add file handler and remove stream handler.
111 :param value: The logger_file path.
120 If the logger_file is None, then add stream handler and remove file
121 handler. Otherwise, add file handler and remove stream handler.
123 :param value: The logger_file path.
132 for _, logger
in six.iteritems(self.
loggerlogger):
141 for _, logger
in six.iteritems(self.
loggerlogger):
150 :param value: The debug status, True or False.
159 :param value: The debug status, True or False.
165 for _, logger
in six.iteritems(self.
loggerlogger):
166 logger.setLevel(logging.DEBUG)
168 httplib.HTTPConnection.debuglevel = 1
172 for _, logger
in six.iteritems(self.
loggerlogger):
173 logger.setLevel(logging.WARNING)
175 httplib.HTTPConnection.debuglevel = 0
179 """The logger format.
181 The logger_formatter will be updated when sets logger_format.
183 :param value: The format string.
188 @logger_format.setter
190 """The logger format.
192 The logger_formatter will be updated when sets logger_format.
194 :param value: The format string.
201 """Gets API key (with prefix if set).
203 :param identifier: The identifier of apiKey.
204 :return: The token for api key authentication.
209 key = self.
api_keyapi_key.get(identifier)
213 return "%s %s" % (prefix, key)
218 """Gets HTTP basic authentication header (string).
220 :return: The token for basic HTTP authentication.
222 return urllib3.util.make_headers(
224 ).get(
'authorization')
227 """Gets Auth Settings dict for api client.
229 :return: The Auth Settings information dict.
235 """Gets the essential information for debugging.
237 :return: The report for debugging.
239 return "Python SDK Debug Report:\n"\
241 "Python Version: {pyversion}\n"\
242 "Version of the API: 0.8\n"\
243 "SDK Package Version: 1.0.0".\
244 format(env=sys.platform, pyversion=sys.version)
def logger_format(self, value)
def logger_file(self, value)
def get_basic_auth_token(self)
safe_chars_for_path_param
def get_api_key_with_prefix(self, identifier)
def to_debug_report(self)
def __init__(cls, name, bases, dct)
def set_default(cls, default)