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 ZdZdddddZdddddZd!d d Zedd Zej d d Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zdd Z dd Zdd Zdd Zdd ZdS )"ErrorzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. str)codemessageoperrr r r r Nc C sR d| _ d| _d| _d| _d| _|| _|dk r2|| _|dk r@|| _|dk rN|| _dS )z#Error - a model defined in OpenAPI.N) _code_message_op_errZ discriminatorr r r r )selfr r r r r M/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/error.py__init__. s zError.__init__c C s | j S )zGet the code of this Error. code is the machine-readable error code. :return: The code of this Error. :rtype: str )r r r r r r > s z Error.codec C s |dkrt d|| _dS )zSet the code of this Error. code is the machine-readable error code. :param code: The code of this Error. :type: str Nz,Invalid value for `code`, must not be `None`) ValueErrorr )r r r r r r I s c C s | j S )zGet the message of this Error. Human-readable message. :return: The message of this Error. :rtype: str r r r r r r V s z Error.messagec C s || _ dS )zSet the message of this Error. Human-readable message. :param message: The message of this Error. :type: str Nr )r r r r r r a s c C s | j S )zGet the op of this Error. Describes the logical code operation when the error occurred. Useful for debugging. :return: The op of this Error. :rtype: str r r r r r r l s zError.opc C s || _ dS )zSet the op of this Error. Describes the logical code operation when the error occurred. Useful for debugging. :param op: The op of this Error. :type: str Nr )r r r r r r w s c C s | j S )zGet the err of this Error. Stack of errors that occurred during processing of the request. Useful for debugging. :return: The err of this Error. :rtype: str r r r r r r s z Error.errc C s || _ dS )zSet the err of this Error. Stack of errors that occurred during processing of the request. Useful for debugging. :param err: The err of this Error. :type: str Nr )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<