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"eZdZdZddddddddddddddddddddddddddd d Zd d d ddddddddddddddddddd d!d"d#d$d%d Zd?d'd(Zed)d*Zej d+d*Zed,d-Z e j d.d-Z ed/d0Z e j d1d0Z ed2d3Z e j d4d3Z d5d6Z d7d8Zd9d:Zd;d<Zd=d>Zd&S)@SMTPNotificationRuleBasezNOTE: 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)typesubject_template body_templatetolatest_completedlast_run_statuslast_run_errorid endpoint_idorg_idtask_idowner_id created_at updated_atstatusname sleep_untileveryoffset runbook_link limit_everylimit tag_rules description status_ruleslabelslinksrZsubjectTemplateZ bodyTemplater ZlatestCompletedZ lastRunStatusZ lastRunErrorrZ endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesr r!NcCs|tj|||||| | | | | ||||||||||||||dd|_d|_d|_d|_d|_||_||_|dk rr||_ ||_ dS)z6SMTPNotificationRuleBase - a model defined in OpenAPI.)r r r rrrrrrrrrrrrrrrrrrr r!N) r__init___type_subject_template_body_template_toZ discriminatorrrr r )selfrrr r r r r rrrrrrrrrrrrrrrrrrr r!r(c/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/smtp_notification_rule_base.pyr"^s:z!SMTPNotificationRuleBase.__init__cCs|jS)zGet the type of this SMTPNotificationRuleBase. :return: The type of this SMTPNotificationRuleBase. :rtype: str )r#r'r(r(r)rnszSMTPNotificationRuleBase.typecCs|dkrtd||_dS)zSet the type of this SMTPNotificationRuleBase. :param type: The type of this SMTPNotificationRuleBase. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr#)r'rr(r(r)rwscCs|jS)zGet the subject_template of this SMTPNotificationRuleBase. :return: The subject_template of this SMTPNotificationRuleBase. :rtype: str )r$r*r(r(r)rsz)SMTPNotificationRuleBase.subject_templatecCs|dkrtd||_dS)zSet the subject_template of this SMTPNotificationRuleBase. :param subject_template: The subject_template of this SMTPNotificationRuleBase. :type: str Nz8Invalid value for `subject_template`, must not be `None`)r+r$)r'rr(r(r)rscCs|jS)zGet the body_template of this SMTPNotificationRuleBase. :return: The body_template of this SMTPNotificationRuleBase. :rtype: str r%r*r(r(r)r sz&SMTPNotificationRuleBase.body_templatecCs ||_dS)zSet the body_template of this SMTPNotificationRuleBase. :param body_template: The body_template of this SMTPNotificationRuleBase. :type: str Nr,)r'r r(r(r)r scCs|jS)zGet the to of this SMTPNotificationRuleBase. :return: The to of this SMTPNotificationRuleBase. :rtype: str )r&r*r(r(r)r szSMTPNotificationRuleBase.tocCs|dkrtd||_dS)zSet the to of this SMTPNotificationRuleBase. :param to: The to of this SMTPNotificationRuleBase. :type: str Nz*Invalid value for `to`, 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)z2SMTPNotificationRuleBase.to_dict..r-cSs&t|ddr"|d|dfS|S)Nr-rr.)itemr(r(r)r1s ) openapi_typesitemsgetattr isinstancelistmapr/r-dict)r'resultattr_valuer(r(r)r-s"       z SMTPNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr-r*r(r(r)to_strszSMTPNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)rBr*r(r(r)__repr__sz!SMTPNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r8r__dict__r'otherr(r(r)__eq__s zSMTPNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r(rEr(r(r)__ne__szSMTPNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r5Z attribute_mapr"propertyrsetterrr r r-rBrCrGrHr(r(r(r)rs         r)rLr@reZ6influxdb_client.domain.notification_rule_discriminatorrrr(r(r(r)s