U vi @ s( d Z ddlZddlZG dd 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 Nc @ s e Zd ZdZddddddZddddd dZd&ddZed d Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j dd Z dd Zdd Zd 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)codemessageoperrliner r r r r Nc C sf d| _ 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 discriminatorr r r r r )selfr r r r r r [/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/line_protocol_error.py__init__0 s zLineProtocolError.__init__c C s | j S )zGet the code of this LineProtocolError. Code is the machine-readable error code. :return: The code of this LineProtocolError. :rtype: str )r r r r r r C s zLineProtocolError.codec C s |dkrt d|| _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 )r r r r r r N s c C s | j S )zGet the message of this LineProtocolError. Human-readable message. :return: The message of this LineProtocolError. :rtype: str r r r r r r [ s zLineProtocolError.messagec C s || _ dS )zSet the message of this LineProtocolError. Human-readable message. :param message: The message of this LineProtocolError. :type: str Nr )r r r r r r f s c C s | j S )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 r r r r r q s zLineProtocolError.opc C s || _ 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 )r r r r r r | s c C s | j S )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 r r r r r s zLineProtocolError.errc C s || _ 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 )r r r r r r s c C s | j S )zGet the line of this LineProtocolError. First line in the request body that contains malformed data. :return: The line of this LineProtocolError. :rtype: int r r r r r r s zLineProtocolError.linec C s || _ 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 )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<