U wi @ 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 ZdZdddddZdddd dZd#ddZed d Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zdd Z dd Zdd Zdd 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_levelcountperiodZcurrentLevelZ previousLevelr r Nc C sZ d| _ 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 discriminatorr r r r )selfr r r r r S/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/status_rule.py__init__. s zStatusRule.__init__c C s | j S )zGet the current_level of this StatusRule. :return: The current_level of this StatusRule. :rtype: RuleStatusLevel r r r r r r ? s zStatusRule.current_levelc C s || _ dS )zSet the current_level of this StatusRule. :param current_level: The current_level of this StatusRule. :type: RuleStatusLevel Nr )r r r r r r H s c C s | j S )zGet the previous_level of this StatusRule. :return: The previous_level of this StatusRule. :rtype: RuleStatusLevel r r r r r r Q s zStatusRule.previous_levelc C s || _ dS )zSet the previous_level of this StatusRule. :param previous_level: The previous_level of this StatusRule. :type: RuleStatusLevel Nr )r r r r r r Z s c C s | j S )znGet the count of this StatusRule. :return: The count of this StatusRule. :rtype: int r r r r r r c s zStatusRule.countc C s || _ dS )zrSet the count of this StatusRule. :param count: The count of this StatusRule. :type: int Nr )r r r r r r l s c C s | j S )zpGet the period of this StatusRule. :return: The period of this StatusRule. :rtype: str r r r r r r u s zStatusRule.periodc C s || _ dS )zuSet the period of this StatusRule. :param period: The period of this StatusRule. :type: str Nr )r r r r r r ~ s c C s i }| j D ]z\}}t| |}t|trBttdd |||<