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@seZdZdZddddddddddddddddddddddddd d Zd d d ddddddddddddddddddd d!d"d#d Zd7d%d&Zed'd(Zej d)d(Zed*d+Z e j d,d+Z d-d.Z d/d0Z d1d2Z d3d4Zd5d6Zd$S)8PagerDutyNotificationRuleBasezNOTE: 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)typemessage_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_ruleslabelslinksrZmessageTemplateZlatestCompletedZ lastRunStatusZ lastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesrrNcCs\tj|||||||| | | | | ||||||||||||dd|_d|_d|_||_||_dS)z;PagerDutyNotificationRuleBase - a model defined in OpenAPI.)r r r r r rrrrrrrrrrrrrrrrrrN)r__init___type_message_templateZ discriminatorrr)selfrrr r r r r rrrrrrrrrrrrrrrrrrr$i/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/pager_duty_notification_rule_base.pyr Zs :z&PagerDutyNotificationRuleBase.__init__cCs|jS)zGet the type of this PagerDutyNotificationRuleBase. :return: The type of this PagerDutyNotificationRuleBase. :rtype: str )r!r#r$r$r%resz"PagerDutyNotificationRuleBase.typecCs|dkrtd||_dS)zSet the type of this PagerDutyNotificationRuleBase. :param type: The type of this PagerDutyNotificationRuleBase. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr!)r#rr$r$r%rnscCs|jS)zGet the message_template of this PagerDutyNotificationRuleBase. :return: The message_template of this PagerDutyNotificationRuleBase. :rtype: str )r"r&r$r$r%rysz.PagerDutyNotificationRuleBase.message_templatecCs|dkrtd||_dS)zSet the message_template of this PagerDutyNotificationRuleBase. :param message_template: The message_template of this PagerDutyNotificationRuleBase. :type: str Nz8Invalid value for `message_template`, must not be `None`)r'r")r#rr$r$r%rscCsi}|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%z7PagerDutyNotificationRuleBase.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%PagerDutyNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr(r&r$r$r%to_strsz$PagerDutyNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)r=r&r$r$r%__repr__sz&PagerDutyNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r3r__dict__r#otherr$r$r%__eq__s z$PagerDutyNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r$r@r$r$r%__ne__sz$PagerDutyNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r0Z attribute_mapr propertyrsetterrr(r=r>rBrCr$r$r$r%rs     r)rGr;reZ6influxdb_client.domain.notification_rule_discriminatorrrr$r$r$r%s