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: Updates header and query params based on authentication setting.
  
  :param headers: Header parameters dict to be updated.
  :param queries: Query parameters tuple list to be updated.
  :param auth_settings: Authentication setting identifiers list.
  :resource_path: A string representation of the HTTP request resource path.
  :method: A string representation of the HTTP request method.
  :body: A object representing the body of the HTTP request.
  The object type is the return value of sanitize_for_serialization().
  :param request_auth: if set, the provided settings will
                       override the token in the configuration.
docstr_tok: ["Updates","header","and","query","params","based","on","authentication","setting",".",":","param","headers",":","Header","parameters","dict","to","be","updated",".",":","param","queries",":","Query","parameters","tuple","list","to","be","updated",".",":","param","auth_settings",":","Authentication","setting","identifiers","list",".",":","resource_path",":","A","string","representation","of","the","HTTP","request","resource","path",".",":","method",":","A","string","representation","of","the","HTTP","request","method",".",":","body",":","A","object","representing","the","body","of","the","HTTP","request",".","The","object","type","is","the","return","value","of","sanitize_for_serialization","(",")",".",":","param","request_auth",":","if","set",",","the","provided","settings","will","override","the","token","in","the","configuration","."]
code: def update_params_for_auth(
      self,
      headers,
      queries,
      auth_settings,
      resource_path,
      method,
      body,
      request_auth=None,
  ):
      """Updates header and query params based on authentication setting.
  
      :param headers: Header parameters dict to be updated.
      :param queries: Query parameters tuple list to be updated.
      :param auth_settings: Authentication setting identifiers list.
      :resource_path: A string representation of the HTTP request resource path.
      :method: A string representation of the HTTP request method.
      :body: A object representing the body of the HTTP request.
      The object type is the return value of sanitize_for_serialization().
      :param request_auth: if set, the provided settings will
                           override the token in the configuration.
      """
      if not auth_settings:
          return
  
      if request_auth:
          self._apply_auth_params(
              headers,
              queries,
              resource_path,
              method,
              body,
              request_auth,
          )
          return
  
      for auth in auth_settings:
          auth_setting = self.configuration.auth_settings().get(auth)
          if auth_setting:
              self._apply_auth_params(
                  headers,
                  queries,
                  resource_path,
                  method,
                  body,
                  auth_setting,
              )
  
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 22 for calling the ApiClient obj's underlying member method code with example usage: obj.update_params_for_auth(headers, queries, auth_settings, resource_path, method, body, request_auth) without return types