U vi@s(dZddlZddlZGdddeZdS)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 Nc@seZdZdZddddddZddddd dZd&d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZddZd d!Zd"d#Zd$d%Zd S)'LineProtocolErrorzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strint)codemessageoperrlinerrrrr NcCsfd|_d|_d|_d|_d|_d|_||_|dk r8||_|dk rF||_|dk rT||_ |dk rb||_ dS)z/LineProtocolError - a model defined in OpenAPI.N) _code_message_op_err_lineZ discriminatorrrrrr )selfrrrrr r[/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/line_protocol_error.py__init__0szLineProtocolError.__init__cCs|jS)zGet the code of this LineProtocolError. Code is the machine-readable error code. :return: The code of this LineProtocolError. :rtype: str )r rrrrrCs zLineProtocolError.codecCs|dkrtd||_dS)zSet the code of this LineProtocolError. Code is the machine-readable error code. :param code: The code of this LineProtocolError. :type: str Nz,Invalid value for `code`, must not be `None`) ValueErrorr )rrrrrrNs cCs|jS)zGet the message of this LineProtocolError. Human-readable message. :return: The message of this LineProtocolError. :rtype: str r rrrrr[s zLineProtocolError.messagecCs ||_dS)zSet the message of this LineProtocolError. Human-readable message. :param message: The message of this LineProtocolError. :type: str Nr)rrrrrrfs cCs|jS)zGet the op of this LineProtocolError. Describes the logical code operation when the error occurred. Useful for debugging. :return: The op of this LineProtocolError. :rtype: str r rrrrrqs zLineProtocolError.opcCs ||_dS)zSet the op of this LineProtocolError. Describes the logical code operation when the error occurred. Useful for debugging. :param op: The op of this LineProtocolError. :type: str Nr)rrrrrr|s cCs|jS)zGet the err of this LineProtocolError. Stack of errors that occurred during processing of the request. Useful for debugging. :return: The err of this LineProtocolError. :rtype: str r rrrrrs zLineProtocolError.errcCs ||_dS)zSet the err of this LineProtocolError. Stack of errors that occurred during processing of the request. Useful for debugging. :param err: The err of this LineProtocolError. :type: str Nr)rrrrrrs cCs|jS)zGet the line of this LineProtocolError. First line in the request body that contains malformed data. :return: The line of this LineProtocolError. :rtype: int rrrrrr s zLineProtocolError.linecCs ||_dS)zSet the line of this LineProtocolError. First line in the request body that contains malformed data. :param line: The line of this LineProtocolError. :type: int Nr)rr rrrr s cCsi}|jD]z\}}t||}t|trBttdd|||<qt|drZ|||<qt|trttdd|||<q|||<q|S)z&Return the model properties as a dict.cSst|dr|S|S)Nto_dicthasattrr)xrrrz+LineProtocolError.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zLineProtocolError.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszLineProtocolError.to_strcCs|S)zFor `print` and `pprint`.)r.rrrr__repr__szLineProtocolError.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r$r__dict__rotherrrr__eq__s zLineProtocolError.__eq__cCs ||k S)z*Return true if both objects are not equal.rr1rrr__ne__szLineProtocolError.__ne__)NNNNN)__name__ __module__ __qualname____doc__r!Z attribute_maprpropertyrsetterrrrr rr.r/r3r4rrrrrsN            r)r8r,reobjectrrrrrs