U wâ’i¹ã@s(dZddlZddlZGdd„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„eZdZdZddiZddiZdddddd œZdd d „Zed d„ƒZ e j dd„ƒZ dd„Z dd„Z dd„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ÚhttpZtelegramNcCsd|_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__0szNotificationRule.__init__cCs|jS)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 r7s zNotificationRule.typecCs|dkrtdƒ‚||_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`)Ú ValueErrorrr r r r rBs cCs |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_modelOs z%NotificationRule.get_real_child_modelcCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr)Úxr r r Ú]óz*NotificationRule.to_dict..rcSs&t|ddƒr"|d|d ¡fS|S)Nérrr)Úitemr r r rds ÿ) Ú openapi_typesÚitemsÚgetattrÚ isinstanceÚlistÚmaprrÚdict)r ÚresultÚattrÚ_Úvaluer r r rUs"  þ   ý  zNotificationRule.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatrrr r r Úto_strmszNotificationRule.to_strcCs| ¡S)zFor `print` and `pprint`.)r*rr r r Ú__repr__qszNotificationRule.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)r rÚ__dict__©r Úotherr r r Ú__eq__us zNotificationRule.__eq__cCs ||k S)z*Return true if both objects are not equal.r r-r r r Ú__ne__|szNotificationRule.__ne__)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr ÚpropertyrÚsetterrrr*r+r/r0r r r r rs0ÿÿû   r)r4r(ÚreÚobjectrr r r r Ús