U wâ’i¹ ã @ s( d Z ddlZddlZG dd„ deƒZdS )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 ZdZddiZddiZdddddd œZddd„Zed d„ ƒZ e j dd„ ƒZ dd„ Zdd„ Zdd„ Z dd„ Zdd„ Zdd„ Zd S )ÚNotificationRulez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚtypeÚstrZSlackNotificationRuleZPagerDutyNotificationRuleZSMTPNotificationRuleZHTTPNotificationRuleZTelegramNotificationRule)ZslackZ pagerdutyÚsmtpÚhttpZtelegramNc C s d| _ d| _|| _dS )z.NotificationRule - a model defined in OpenAPI.Nr )Ú_typeÚ discriminatorr ©Úselfr © r úY/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/notification_rule.pyÚ__init__0 s zNotificationRule.__init__c C s | j S )zÌGet the type of this NotificationRule. The discriminator between other types of notification rules is "telegram". :return: The type of this NotificationRule. :rtype: str )r ©r r r r r 7 s zNotificationRule.typec C s |dkrt dƒ‚|| _dS )zÏSet the type of this NotificationRule. The discriminator between other types of notification rules is "telegram". :param type: The type of this NotificationRule. :type: str Nz,Invalid value for `type`, must not be `None`)Ú ValueErrorr r r r r r B s c C s | j | j }|| }| j |¡S )z:Return the real base class specified by the discriminator.)Ú attribute_mapr Údiscriminator_value_class_mapÚget)r ÚdataZdiscriminator_keyZdiscriminator_valuer r r Úget_real_child_modelO s z%NotificationRule.get_real_child_modelc C sŽ i }| j ¡ D ]z\}}t| |ƒ}t|tƒrBttdd„ |ƒƒ||<