class_docstr: Generic API client for OpenAPI client library builds.
  
  OpenAPI 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 OpenAPI
  templates.
  
  :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
  :param pool_threads: The number of threads to use for async requests
      to the API. More threads means more concurrent API requests.
class_docstr_tok: ["Generic","API","client","for","OpenAPI","client","library","builds",".","OpenAPI","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","OpenAPI","templates",".",":","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",":","param","pool_threads",":","The","number","of","threads","to","use","for","async","requests","to","the","API",".","More","threads","means","more","concurrent","API","requests","."]
docstr: Makes the HTTP request using RESTClient.
docstr_tok: ["Makes","the","HTTP","request","using","RESTClient","."]
code: def 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."""
      if method == "GET":
          return self.rest_client.get_request(
              url,
              query_params=query_params,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              headers=headers,
          )
      elif method == "HEAD":
          return self.rest_client.head_request(
              url,
              query_params=query_params,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              headers=headers,
          )
      elif method == "OPTIONS":
          return self.rest_client.options_request(
              url,
              query_params=query_params,
              headers=headers,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
          )
      elif method == "POST":
          return self.rest_client.post_request(
              url,
              query_params=query_params,
              headers=headers,
              post_params=post_params,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              body=body,
          )
      elif method == "PUT":
          return self.rest_client.put_request(
              url,
              query_params=query_params,
              headers=headers,
              post_params=post_params,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              body=body,
          )
      elif method == "PATCH":
          return self.rest_client.patch_request(
              url,
              query_params=query_params,
              headers=headers,
              post_params=post_params,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              body=body,
          )
      elif method == "DELETE":
          return self.rest_client.delete_request(
              url,
              query_params=query_params,
              headers=headers,
              _preload_content=_preload_content,
              _request_timeout=_request_timeout,
              body=body,
          )
      else:
          raise ApiValueError(
              "http method must be `GET`, `HEAD`, `OPTIONS`,"
              " `POST`, `PATCH`, `PUT` or `DELETE`."
          )
  
imports: import atexit
  import datetime
  from dateutil.parser import parse
  import json
  import mimetypes
  from multiprocessing.pool import ThreadPool
  import os
  import re
  import tempfile
  from urllib.parse import quote
  from lightly.openapi_generated.swagger_client.configuration import Configuration
  from lightly.openapi_generated.swagger_client.api_response import ApiResponse
  import lightly.openapi_generated.swagger_client.models
  from lightly.openapi_generated.swagger_client import rest
  from lightly.openapi_generated.swagger_client.exceptions import ApiValueError, ApiException
label_desc: Use image node_id 16 for calling the ApiClient obj's underlying member method code with example usage: obj.request(method, url, query_params, headers, post_params, body, _preload_content, _request_timeout) and returns: self, self, self, self, self, self, self