cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Public Member Functions | |
def | __init__ (self, configuration=None, header_name=None, header_value=None, cookie=None) |
def | __del__ (self) |
def | user_agent (self) |
def | user_agent (self, value) |
def | set_default_header (self, header_name, header_value) |
def | sanitize_for_serialization (self, obj) |
def | deserialize (self, response, response_type) |
def | call_api (self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None) |
def | request (self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, _request_timeout=None) |
def | parameters_to_tuples (self, params, collection_formats) |
def | prepare_post_parameters (self, post_params=None, files=None) |
def | select_header_accept (self, accepts) |
def | select_header_content_type (self, content_types) |
def | update_params_for_auth (self, headers, querys, auth_settings) |
Public Attributes | |
configuration | |
pool | |
rest_client | |
default_headers | |
cookie | |
user_agent | |
last_response | |
Static Public Attributes | |
tuple | PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types |
dictionary | NATIVE_TYPES_MAPPING |
Generic API client for Swagger client library builds. Swagger generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the Swagger templates. NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. :param header_value: a header value to pass when making calls to the API. :param cookie: a cookie to include in the header when making calls to the API
Definition at line 30 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.__init__ | ( | self, | |
configuration = None , |
|||
header_name = None , |
|||
header_value = None , |
|||
cookie = None |
|||
) |
Definition at line 62 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.__del__ | ( | self | ) |
Definition at line 77 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.call_api | ( | self, | |
resource_path, | |||
method, | |||
path_params = None , |
|||
query_params = None , |
|||
header_params = None , |
|||
body = None , |
|||
post_params = None , |
|||
files = None , |
|||
response_type = None , |
|||
auth_settings = None , |
|||
async_req = None , |
|||
_return_http_data_only = None , |
|||
collection_formats = None , |
|||
_preload_content = True , |
|||
_request_timeout = None |
|||
) |
Makes the HTTP request (synchronous) and returns deserialized data. To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. :param path_params: Path parameters in the url. :param query_params: Query parameters in the url. :param header_params: Header parameters to be placed in the request header. :param body: Request body. :param post_params dict: Request post form parameters, for `application/x-www-form-urlencoded`, `multipart/form-data`. :param auth_settings list: Auth Settings names for the request. :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, header, and post parameters. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. If parameter async_req is False or missing, then the method will return the response directly.
Definition at line 273 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.deserialize | ( | self, | |
response, | |||
response_type | |||
) |
Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for deserialized object, or string of class name. :return: deserialized object.
Definition at line 212 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.parameters_to_tuples | ( | self, | |
params, | |||
collection_formats | |||
) |
Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted
Definition at line 394 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.prepare_post_parameters | ( | self, | |
post_params = None , |
|||
files = None |
|||
) |
Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files.
Definition at line 424 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.request | ( | self, | |
method, | |||
url, | |||
query_params = None , |
|||
headers = None , |
|||
post_params = None , |
|||
body = None , |
|||
_preload_content = True , |
|||
_request_timeout = None |
|||
) |
Makes the HTTP request using RESTClient.
Definition at line 333 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.sanitize_for_serialization | ( | self, | |
obj | |||
) |
Builds a JSON POST object. If obj is None, return None. If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is swagger model, return the properties dict. :param obj: The data to serialize. :return: The serialized form of data.
Definition at line 170 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.select_header_accept | ( | self, | |
accepts | |||
) |
Returns `Accept` based on an array of accepts provided. :param accepts: List of headers. :return: Accept (e.g. application/json).
Definition at line 452 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.select_header_content_type | ( | self, | |
content_types | |||
) |
Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. :return: Content-Type (e.g. application/json).
Definition at line 468 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.set_default_header | ( | self, | |
header_name, | |||
header_value | |||
) |
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.update_params_for_auth | ( | self, | |
headers, | |||
querys, | |||
auth_settings | |||
) |
Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list.
Definition at line 484 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.user_agent | ( | self | ) |
User agent for this API client
Definition at line 82 of file api_client.py.
def cFSPlib.python_api_client.swagger_client.api_client.ApiClient.user_agent | ( | self, | |
value | |||
) |
Definition at line 87 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.configuration |
Definition at line 66 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.cookie |
Definition at line 73 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.default_headers |
Definition at line 70 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.last_response |
Definition at line 154 of file api_client.py.
|
static |
Definition at line 51 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.pool |
Definition at line 68 of file api_client.py.
|
static |
Definition at line 50 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.rest_client |
Definition at line 69 of file api_client.py.
cFSPlib.python_api_client.swagger_client.api_client.ApiClient.user_agent |
Definition at line 75 of file api_client.py.