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)NotificationRuleDiscriminatorc@s"eZdZdZdddddddddddddddddddddddddd d d Zd d ddddddddddddddddddd d!d"d#d$d%d&d Zd@d(d)Zed*d+Zej d,d+Zed-d.Z e j d/d.Z ed0d1Z e j d2d1Z ed3d4Z e j d5d4Z d6d7Z d8d9Zd:d;Zdd?Zd'S)ATelegramNotificationRuleBasezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strbooldatetimeZTaskStatusTypeintz list[TagRule]zlist[StatusRule]z list[Label]ZNotificationRuleBaseLinks)typemessage_template parse_modedisable_web_page_previewlatest_completedlast_run_statuslast_run_errorid endpoint_idorg_idtask_idowner_id created_at updated_atstatusname sleep_untileveryoffset runbook_link limit_everylimit tag_rules description status_ruleslabelslinksrZmessageTemplateZ parseModeZdisableWebPagePreviewZlatestCompletedZ lastRunStatusZ lastRunErrorrZ endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesr!r"NcCstj|||||| | | | | ||||||||||||||dd|_d|_d|_d|_d|_||_||_|dk rr||_ |dk r||_ dS)z:TelegramNotificationRuleBase - a model defined in OpenAPI.)r r rrrrrrrrrrrrrrrrrrr r!r"N) r__init___type_message_template _parse_mode_disable_web_page_previewZ discriminatorrr r r )selfrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r)g/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/telegram_notification_rule_base.pyr#^s:z%TelegramNotificationRuleBase.__init__cCs|jS)zGet the type of this TelegramNotificationRuleBase. The discriminator between other types of notification rules is "telegram". :return: The type of this TelegramNotificationRuleBase. :rtype: str )r$r(r)r)r*ros z!TelegramNotificationRuleBase.typecCs|dkrtd||_dS)zSet the type of this TelegramNotificationRuleBase. The discriminator between other types of notification rules is "telegram". :param type: The type of this TelegramNotificationRuleBase. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr$)r(rr)r)r*rzs cCs|jS)zGet the message_template of this TelegramNotificationRuleBase. The message template as a flux interpolated string. :return: The message_template of this TelegramNotificationRuleBase. :rtype: str )r%r+r)r)r*r s z-TelegramNotificationRuleBase.message_templatecCs|dkrtd||_dS)zSet the message_template of this TelegramNotificationRuleBase. The message template as a flux interpolated string. :param message_template: The message_template of this TelegramNotificationRuleBase. :type: str Nz8Invalid value for `message_template`, must not be `None`)r,r%)r(r r)r)r*r s cCs|jS)aGet the parse_mode of this TelegramNotificationRuleBase. Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options. Defaults to "MarkdownV2". :return: The parse_mode of this TelegramNotificationRuleBase. :rtype: str r&r+r)r)r*r s z'TelegramNotificationRuleBase.parse_modecCs ||_dS)a"Set the parse_mode of this TelegramNotificationRuleBase. Parse mode of the message text per https://core.telegram.org/bots/api#formatting-options. Defaults to "MarkdownV2". :param parse_mode: The parse_mode of this TelegramNotificationRuleBase. :type: str Nr-)r(r r)r)r*r s cCs|jS)aGet the disable_web_page_preview of this TelegramNotificationRuleBase. Disables preview of web links in the sent messages when "true". Defaults to "false". :return: The disable_web_page_preview of this TelegramNotificationRuleBase. :rtype: bool r'r+r)r)r*r s z5TelegramNotificationRuleBase.disable_web_page_previewcCs ||_dS)a.Set the disable_web_page_preview of this TelegramNotificationRuleBase. Disables preview of web links in the sent messages when "true". Defaults to "false". :param disable_web_page_preview: The disable_web_page_preview of this TelegramNotificationRuleBase. :type: bool Nr.)r(r r)r)r*r s cCsi}|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/)xr)r)r*z6TelegramNotificationRuleBase.to_dict..r/cSs&t|ddr"|d|dfS|S)Nr/rr0)itemr)r)r*r3s ) openapi_typesitemsgetattr isinstancelistmapr1r/dict)r(resultattr_valuer)r)r*r/s"       z$TelegramNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr/r+r)r)r*to_strsz#TelegramNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)rDr+r)r)r*__repr__sz%TelegramNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r:r__dict__r(otherr)r)r*__eq__s z#TelegramNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r)rGr)r)r*__ne__sz#TelegramNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r7Z attribute_mapr#propertyrsetterr r r r/rDrErIrJr)r)r)r*rs         r)rNrBreZ6influxdb_client.domain.notification_rule_discriminatorrrr)r)r)r*s