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@seZdZdZdddddZdddd dZd#d d Zed dZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ ddZddZdd Zd!d"Zd S)$ StatusRulezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ZRuleStatusLevelintstr) current_levelprevious_levelcountperiodZ currentLevelZ previousLevelrrNcCsZd|_d|_d|_d|_d|_|dk r,||_|dk r:||_|dk rH||_|dk rV||_dS)z(StatusRule - a model defined in OpenAPI.N) _current_level_previous_level_count_periodZ discriminatorrrrr)selfrrrrrS/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/status_rule.py__init__.szStatusRule.__init__cCs|jS)zGet the current_level of this StatusRule. :return: The current_level of this StatusRule. :rtype: RuleStatusLevel r r rrrr?szStatusRule.current_levelcCs ||_dS)zSet the current_level of this StatusRule. :param current_level: The current_level of this StatusRule. :type: RuleStatusLevel Nr)r rrrrrHscCs|jS)zGet the previous_level of this StatusRule. :return: The previous_level of this StatusRule. :rtype: RuleStatusLevel r rrrrrQszStatusRule.previous_levelcCs ||_dS)zSet the previous_level of this StatusRule. :param previous_level: The previous_level of this StatusRule. :type: RuleStatusLevel Nr)r rrrrrZscCs|jS)znGet the count of this StatusRule. :return: The count of this StatusRule. :rtype: int r rrrrrcszStatusRule.countcCs ||_dS)zrSet the count of this StatusRule. :param count: The count of this StatusRule. :type: int Nr)r rrrrrlscCs|jS)zpGet the period of this StatusRule. :return: The period of this StatusRule. :rtype: str r rrrrruszStatusRule.periodcCs ||_dS)zuSet the period of this StatusRule. :param period: The period of this StatusRule. :type: str Nr)r rrrrr~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$StatusRule.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuerrrrs"       zStatusRule.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszStatusRule.to_strcCs|S)zFor `print` and `pprint`.)r+rrrr__repr__szStatusRule.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r!r__dict__r otherrrr__eq__s zStatusRule.__eq__cCs ||k S)z*Return true if both objects are not equal.rr.rrr__ne__szStatusRule.__ne__)NNNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrrr+r,r0r1rrrrrsB         r)r5r)reobjectrrrrrs