U vi@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)8HTTPNotificationRuleBasezNOTE: 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)typeurllatest_completedlast_run_statuslast_run_errorid endpoint_idorg_idtask_idowner_id created_at updated_atstatusname sleep_untileveryoffset runbook_link limit_everylimit tag_rules description status_ruleslabelslinksrrZlatestCompletedZ lastRunStatusZ lastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesrrNcCsdtj|||||||| | | | | ||||||||||||dd|_d|_d|_||_|dk r`||_dS)z6HTTPNotificationRuleBase - a model defined in OpenAPI.)r r r r r rrrrrrrrrrrrrrrrrrN)r__init___type_urlZ discriminatorrr)selfrrr r r r r rrrrrrrrrrrrrrrrrrr$c/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/http_notification_rule_base.pyr Zs:z!HTTPNotificationRuleBase.__init__cCs|jS)zGet the type of this HTTPNotificationRuleBase. :return: The type of this HTTPNotificationRuleBase. :rtype: str )r!r#r$r$r%rfszHTTPNotificationRuleBase.typecCs|dkrtd||_dS)zSet the type of this HTTPNotificationRuleBase. :param type: The type of this HTTPNotificationRuleBase. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr!)r#rr$r$r%roscCs|jS)zGet the url of this HTTPNotificationRuleBase. :return: The url of this HTTPNotificationRuleBase. :rtype: str r"r&r$r$r%rzszHTTPNotificationRuleBase.urlcCs ||_dS)zSet the url of this HTTPNotificationRuleBase. :param url: The url of this HTTPNotificationRuleBase. :type: str Nr()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%z2HTTPNotificationRuleBase.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 HTTPNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr)r&r$r$r%to_strszHTTPNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)r>r&r$r$r%__repr__sz!HTTPNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r4r__dict__r#otherr$r$r%__eq__s zHTTPNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r$rAr$r$r%__ne__szHTTPNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__r1Z attribute_mapr propertyrsetterrr)r>r?rCrDr$r$r$r%rs     r)rHr<reZ6influxdb_client.domain.notification_rule_discriminatorrrr$r$r$r%s