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@seZdZdZdddddZdddddZd!d d Zed d Zej d d ZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ ddZddZddZdd ZdS)"ErrorzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. str)codemessageoperrrrrrNcCsRd|_d|_d|_d|_d|_||_|dk r2||_|dk r@||_|dk rN||_dS)z#Error - a model defined in OpenAPI.N) _code_message_op_errZ discriminatorrrrr)selfrrrrr M/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/error.py__init__.szError.__init__cCs|jS)zGet the code of this Error. code is the machine-readable error code. :return: The code of this Error. :rtype: str )rr r r rr>s z Error.codecCs|dkrtd||_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 rr r rrIs cCs|jS)zGet the message of this Error. Human-readable message. :return: The message of this Error. :rtype: str r rr r rrVs z Error.messagecCs ||_dS)zSet the message of this Error. Human-readable message. :param message: The message of this Error. :type: str Nr)r rr r rras cCs|jS)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 rr r rrls zError.opcCs ||_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 rr r rrws cCs|jS)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 rr r rrs z Error.errcCs ||_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 rr r rrs 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)xr r rzError.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r rrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r rrs"       z Error.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r rto_strsz Error.to_strcCs|S)zFor `print` and `pprint`.)r*rr r r__repr__szError.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r r__dict__r otherr r r__eq__s z Error.__eq__cCs ||k S)z*Return true if both objects are not equal.r r-r r r__ne__sz Error.__ne__)NNNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrrr*r+r/r0r r r rrsB         r)r4r(reobjectrr r r rs