U wi@s4dZddlZddlZddlmZGdddeZdS)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 N) ThresholdBasec@seZdZdZdddddddZddd d d d dZd'ddZeddZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ dd Zd!d"Zd#d$Zd%d&ZdS)(RangeThresholdzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strfloatboolZCheckStatusLevel)typeminmaxwithinlevel all_valuesrrr r r Z allValuesrangeNcCsJtj|||dd|_d|_d|_d|_d|_||_||_||_ ||_ dS)z,RangeThreshold - a model defined in OpenAPI.)r r N) r__init___type_min_max_withinZ discriminatorrrr r )selfrrr r r r rW/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/range_threshold.pyr4szRangeThreshold.__init__cCs|jS)ztGet the type of this RangeThreshold. :return: The type of this RangeThreshold. :rtype: str )rrrrrrCszRangeThreshold.typecCs|dkrtd||_dS)zwSet the type of this RangeThreshold. :param type: The type of this RangeThreshold. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr)rrrrrrLscCs|jS)ztGet the min of this RangeThreshold. :return: The min of this RangeThreshold. :rtype: float )rrrrrrWszRangeThreshold.mincCs|dkrtd||_dS)zvSet the min of this RangeThreshold. :param min: The min of this RangeThreshold. :type: float Nz+Invalid value for `min`, must not be `None`)rr)rrrrrr`scCs|jS)ztGet the max of this RangeThreshold. :return: The max of this RangeThreshold. :rtype: float )rrrrrr kszRangeThreshold.maxcCs|dkrtd||_dS)zvSet the max of this RangeThreshold. :param max: The max of this RangeThreshold. :type: float Nz+Invalid value for `max`, must not be `None`)rr)rr rrrr tscCs|jS)zyGet the within of this RangeThreshold. :return: The within of this RangeThreshold. :rtype: bool )rrrrrr szRangeThreshold.withincCs|dkrtd||_dS)z~Set the within of this RangeThreshold. :param within: The within of this RangeThreshold. :type: bool Nz.Invalid value for `within`, must not be `None`)rr)rr rrrr scCsi}|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(RangeThreshold.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zRangeThreshold.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszRangeThreshold.to_strcCs|S)zFor `print` and `pprint`.)r-rrrr__repr__szRangeThreshold.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r#r__dict__rotherrrr__eq__s zRangeThreshold.__eq__cCs ||k S)z*Return true if both objects are not equal.rr0rrr__ne__szRangeThreshold.__ne__)r NNNNN)__name__ __module__ __qualname____doc__r Z attribute_maprpropertyrsetterrr r rr-r.r2r3rrrrrsJ          r)r7r+reZ%influxdb_client.domain.threshold_baserrrrrrs