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@seZdZdZdddddddddddddddddddddddddd d Zd d d ddddddddddddddddddd d!d"d#d$d Zd;d&d'Zed(d)Zej d*d)Zed+d,Z e j d-d,Z ed.d/Z e j d0d/Z d1d2Z d3d4Z d5d6Zd7d8Zd9d:Zd%S)<SlackNotificationRuleBasezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimeZTaskStatusTypeintz list[TagRule]zlist[StatusRule]z list[Label]ZNotificationRuleBaseLinks)typechannelmessage_templatelatest_completedlast_run_statuslast_run_errorid endpoint_idorg_idtask_idowner_id created_at updated_atstatusname sleep_untileveryoffset runbook_link limit_everylimit tag_rules description status_ruleslabelslinksrrZmessageTemplateZlatestCompletedZ lastRunStatusZ lastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesrr NcCsptj||||||| | | | | |||||||||||||dd|_d|_d|_d|_||_|dk rf||_||_dS)z7SlackNotificationRuleBase - a model defined in OpenAPI.)r r r r rrrrrrrrrrrrrrrrrrr N) r__init___type_channel_message_templateZ discriminatorrrr )selfrrr r r r r rrrrrrrrrrrrrrrrrrr r&d/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/slack_notification_rule_base.pyr!\s:z"SlackNotificationRuleBase.__init__cCs|jS)zGet the type of this SlackNotificationRuleBase. :return: The type of this SlackNotificationRuleBase. :rtype: str )r"r%r&r&r'rjszSlackNotificationRuleBase.typecCs|dkrtd||_dS)zSet the type of this SlackNotificationRuleBase. :param type: The type of this SlackNotificationRuleBase. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr")r%rr&r&r'rsscCs|jS)zGet the channel of this SlackNotificationRuleBase. :return: The channel of this SlackNotificationRuleBase. :rtype: str r#r(r&r&r'r~sz!SlackNotificationRuleBase.channelcCs ||_dS)zSet the channel of this SlackNotificationRuleBase. :param channel: The channel of this SlackNotificationRuleBase. :type: str Nr*)r%rr&r&r'rscCs|jS)zGet the message_template of this SlackNotificationRuleBase. :return: The message_template of this SlackNotificationRuleBase. :rtype: str )r$r(r&r&r'r sz*SlackNotificationRuleBase.message_templatecCs|dkrtd||_dS)zSet the message_template of this SlackNotificationRuleBase. :param message_template: The message_template of this SlackNotificationRuleBase. :type: str Nz8Invalid value for `message_template`, must not be `None`)r)r$)r%r r&r&r'r 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+)xr&r&r'z3SlackNotificationRuleBase.to_dict..r+cSs&t|ddr"|d|dfS|S)Nr+rr,)itemr&r&r'r/s ) openapi_typesitemsgetattr isinstancelistmapr-r+dict)r%resultattr_valuer&r&r'r+s"       z!SlackNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr+r(r&r&r'to_strsz SlackNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)r@r(r&r&r'__repr__sz"SlackNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r6r__dict__r%otherr&r&r'__eq__s z SlackNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r&rCr&r&r'__ne__sz SlackNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r3Z attribute_mapr!propertyrsetterrr r+r@rArErFr&r&r&r'rs       r)rJr>reZ6influxdb_client.domain.notification_rule_discriminatorrrr&r&r&r's