U wi@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@seZdZdZdddZdddZddd Zed d Zej d d Zed dZ e j ddZ ddZ ddZ ddZ ddZddZdS) ThresholdBasezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ZCheckStatusLevelbool)level all_valuesrZ allValuesNcCs2d|_d|_d|_|dk r ||_|dk r.||_dS)z+ThresholdBase - a model defined in OpenAPI.N)_level _all_valuesZ discriminatorrr)selfrrr V/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/threshold_base.py__init__*szThresholdBase.__init__cCs|jS)zGet the level of this ThresholdBase. :return: The level of this ThresholdBase. :rtype: CheckStatusLevel rrr r r r5szThresholdBase.levelcCs ||_dS)zSet the level of this ThresholdBase. :param level: The level of this ThresholdBase. :type: CheckStatusLevel Nr )rrr r r r>scCs|jS)zGet the all_values of this ThresholdBase. If true, only alert if all values meet threshold. :return: The all_values of this ThresholdBase. :rtype: bool rr r r r rGs zThresholdBase.all_valuescCs ||_dS)zSet the all_values of this ThresholdBase. If true, only alert if all values meet threshold. :param all_values: The all_values of this ThresholdBase. :type: bool Nr)rrr r 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 r ez'ThresholdBase.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rls ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuer r r r]s"       zThresholdBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrr r r r to_struszThresholdBase.to_strcCs|S)zFor `print` and `pprint`.)r$r r r r __repr__yszThresholdBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__rotherr r r __eq__}s zThresholdBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r r'r r r __ne__szThresholdBase.__ne__)NN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrr$r%r)r*r r r r rs*     r)r.r"reobjectrr r r r s