U vi; @ s d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z ddl mZ zddlZW n e k r| e dY nX G dd d ejZG d d deZdS )a InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech )absolute_importN) urlencode)ApiException)_BaseRESTClientz'OpenAPI Python client requires urllib3.c @ s* e Zd ZdZdd Zdd Zd ddZdS ) RESTResponseNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. c C s" || _ |j| _|j| _|j| _dS )zInitialize with HTTP response.N)urllib3_responsestatusreasondata)selfresp r K/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/_sync/rest.py__init__% s zRESTResponse.__init__c C s | j jS )z,Return a dictionary of the response headers.)r headers)r r r r getheaders, s zRESTResponse.getheadersNc C s | j j||S )zReturn a given response header.)r r get)r namedefaultr r r getheader0 s zRESTResponse.getheader)N)__name__ __module____qualname____doc__r r r r r r r r s r c @ sz e Zd ZdZdddZddd Zdd dZddd Zd ddZd!ddZ d"ddZ d#ddZd$ddZdd Z dd ZdS )%RESTClientObjectr NFc C s || _ || _|| _|| _|jr&tj}ntj}|jr:|j}nd}i }|j dk rV|j |d<