U wiQ@s(dZddlZddlZGdddeZdS)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 Nc@seZdZdZddddddddddddddddddddddd d Zd d d ddddddddddddddddddd d!d Zdtd#d$Zed%d&Zej d'd&Zed(d)Z e j d*d)Z ed+d,Z e j d-d,Z ed.d/Z e j d0d/Z ed1d2Z e j d3d2Z ed4d5Zej d6d5Zed7d8Zej d9d8Zed:d;Zej dZej d?d>Zed@dAZej dBdAZedCdDZej dEdDZedFdGZej dHdGZedIdJZej dKdJZedLdMZej dNdMZedOdPZej dQdPZedRdSZej dTdSZedUdVZej dWdVZedXdYZej dZdYZed[d\Zej d]d\Zed^d_Zej d`d_ZedadbZej dcdbZedddeZej dfdeZedgdhZej didhZdjdkZ dldmZ!dndoZ"dpdqZ#drdsZ$d"S)uNotificationRuleBasezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. datetimestrZTaskStatusTypeintz list[TagRule]zlist[StatusRule]z list[Label]ZNotificationRuleBaseLinks)latest_completedlast_run_statuslast_run_errorid endpoint_idorg_idtask_idowner_id created_at updated_atstatusname sleep_untileveryoffset runbook_link limit_everylimit tag_rules description status_ruleslabelslinksZlatestCompletedZ lastRunStatusZ lastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtrrZ sleepUntilrrZ runbookLinkZ limitEveryrZtagRulesrZ statusRulesrrNcCsd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_|dk r||_|dk r||_|dk r||_|dk r||_||_||_|dk r||_|dk r||_| dk r| |_ | dk r| |_!| |_"| |_#| dk r*| |_$|dk r:||_%|dk rJ||_&|dk rZ||_'|dk rj||_(|dk rz||_)|dk r||_*|dk r||_+||_,|dk r||_-|dk r||_.dS)z2NotificationRuleBase - a model defined in OpenAPI.N)/_latest_completed_last_run_status_last_run_error_id _endpoint_id_org_id_task_id _owner_id _created_at _updated_at_status_name _sleep_until_every_offset _runbook_link _limit_every_limit _tag_rules _description _status_rules_labels_linksZ discriminatorrrrr r r r r rrrrrrrrrrrrrrr)selfrrrr r r r r rrrrrrrrrrrrrrrr5^/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/notification_rule_base.py__init__Ts           zNotificationRuleBase.__init__cCs|jS)aMGet the latest_completed of this NotificationRuleBase. A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run. :return: The latest_completed of this NotificationRuleBase. :rtype: datetime rr4r5r5r6rs z%NotificationRuleBase.latest_completedcCs ||_dS)a\Set the latest_completed of this NotificationRuleBase. A timestamp ([RFC3339 date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp)) of the latest scheduled and completed run. :param latest_completed: The latest_completed of this NotificationRuleBase. :type: datetime Nr8)r4rr5r5r6rs cCs|jS)zGet the last_run_status of this NotificationRuleBase. :return: The last_run_status of this NotificationRuleBase. :rtype: str rr9r5r5r6rsz$NotificationRuleBase.last_run_statuscCs ||_dS)zSet the last_run_status of this NotificationRuleBase. :param last_run_status: The last_run_status of this NotificationRuleBase. :type: str Nr:)r4rr5r5r6rscCs|jS)zGet the last_run_error of this NotificationRuleBase. :return: The last_run_error of this NotificationRuleBase. :rtype: str rr9r5r5r6rsz#NotificationRuleBase.last_run_errorcCs ||_dS)zSet the last_run_error of this NotificationRuleBase. :param last_run_error: The last_run_error of this NotificationRuleBase. :type: str Nr;)r4rr5r5r6rscCs|jS)z|Get the id of this NotificationRuleBase. :return: The id of this NotificationRuleBase. :rtype: str r r9r5r5r6r szNotificationRuleBase.idcCs ||_dS)z}Set the id of this NotificationRuleBase. :param id: The id of this NotificationRuleBase. :type: str Nr<)r4r r5r5r6r scCs|jS)zGet the endpoint_id of this NotificationRuleBase. :return: The endpoint_id of this NotificationRuleBase. :rtype: str )r!r9r5r5r6r sz NotificationRuleBase.endpoint_idcCs|dkrtd||_dS)zSet the endpoint_id of this NotificationRuleBase. :param endpoint_id: The endpoint_id of this NotificationRuleBase. :type: str Nz3Invalid value for `endpoint_id`, must not be `None`) ValueErrorr!)r4r r5r5r6r scCs|jS)zGet the org_id of this NotificationRuleBase. The ID of the organization that owns this notification rule. :return: The org_id of this NotificationRuleBase. :rtype: str )r"r9r5r5r6r s zNotificationRuleBase.org_idcCs|dkrtd||_dS)zSet the org_id of this NotificationRuleBase. The ID of the organization that owns this notification rule. :param org_id: The org_id of this NotificationRuleBase. :type: str Nz.Invalid value for `org_id`, must not be `None`)r=r")r4r r5r5r6r s cCs|jS)zGet the task_id of this NotificationRuleBase. The ID of the task associated with this notification rule. :return: The task_id of this NotificationRuleBase. :rtype: str r#r9r5r5r6r s zNotificationRuleBase.task_idcCs ||_dS)zSet the task_id of this NotificationRuleBase. The ID of the task associated with this notification rule. :param task_id: The task_id of this NotificationRuleBase. :type: str Nr>)r4r r5r5r6r s cCs|jS)zGet the owner_id of this NotificationRuleBase. The ID of creator used to create this notification rule. :return: The owner_id of this NotificationRuleBase. :rtype: str r$r9r5r5r6r 's zNotificationRuleBase.owner_idcCs ||_dS)zSet the owner_id of this NotificationRuleBase. The ID of creator used to create this notification rule. :param owner_id: The owner_id of this NotificationRuleBase. :type: str Nr?)r4r r5r5r6r 2s cCs|jS)zGet the created_at of this NotificationRuleBase. :return: The created_at of this NotificationRuleBase. :rtype: datetime r%r9r5r5r6r=szNotificationRuleBase.created_atcCs ||_dS)zSet the created_at of this NotificationRuleBase. :param created_at: The created_at of this NotificationRuleBase. :type: datetime Nr@)r4rr5r5r6rFscCs|jS)zGet the updated_at of this NotificationRuleBase. :return: The updated_at of this NotificationRuleBase. :rtype: datetime r&r9r5r5r6rOszNotificationRuleBase.updated_atcCs ||_dS)zSet the updated_at of this NotificationRuleBase. :param updated_at: The updated_at of this NotificationRuleBase. :type: datetime NrA)r4rr5r5r6rXscCs|jS)zGet the status of this NotificationRuleBase. :return: The status of this NotificationRuleBase. :rtype: TaskStatusType )r'r9r5r5r6raszNotificationRuleBase.statuscCs|dkrtd||_dS)zSet the status of this NotificationRuleBase. :param status: The status of this NotificationRuleBase. :type: TaskStatusType Nz.Invalid value for `status`, must not be `None`)r=r')r4rr5r5r6rjscCs|jS)zGet the name of this NotificationRuleBase. Human-readable name describing the notification rule. :return: The name of this NotificationRuleBase. :rtype: str )r(r9r5r5r6rus zNotificationRuleBase.namecCs|dkrtd||_dS)zSet the name of this NotificationRuleBase. Human-readable name describing the notification rule. :param name: The name of this NotificationRuleBase. :type: str Nz,Invalid value for `name`, must not be `None`)r=r()r4rr5r5r6rs cCs|jS)zGet the sleep_until of this NotificationRuleBase. :return: The sleep_until of this NotificationRuleBase. :rtype: str r)r9r5r5r6rsz NotificationRuleBase.sleep_untilcCs ||_dS)zSet the sleep_until of this NotificationRuleBase. :param sleep_until: The sleep_until of this NotificationRuleBase. :type: str NrB)r4rr5r5r6rscCs|jS)zGet the every of this NotificationRuleBase. The notification repetition interval. :return: The every of this NotificationRuleBase. :rtype: str r*r9r5r5r6rs zNotificationRuleBase.everycCs ||_dS)zSet the every of this NotificationRuleBase. The notification repetition interval. :param every: The every of this NotificationRuleBase. :type: str NrC)r4rr5r5r6rs cCs|jS)zGet the offset of this NotificationRuleBase. Duration to delay after the schedule, before executing check. :return: The offset of this NotificationRuleBase. :rtype: str r+r9r5r5r6rs zNotificationRuleBase.offsetcCs ||_dS)zSet the offset of this NotificationRuleBase. Duration to delay after the schedule, before executing check. :param offset: The offset of this NotificationRuleBase. :type: str NrD)r4rr5r5r6rs cCs|jS)zGet the runbook_link of this NotificationRuleBase. :return: The runbook_link of this NotificationRuleBase. :rtype: str r,r9r5r5r6rsz!NotificationRuleBase.runbook_linkcCs ||_dS)zSet the runbook_link of this NotificationRuleBase. :param runbook_link: The runbook_link of this NotificationRuleBase. :type: str NrE)r4rr5r5r6rscCs|jS)zGet the limit_every of this NotificationRuleBase. Don't notify me more than times every seconds. If set, limit cannot be empty. :return: The limit_every of this NotificationRuleBase. :rtype: int r-r9r5r5r6rs z NotificationRuleBase.limit_everycCs ||_dS)aSet the limit_every of this NotificationRuleBase. Don't notify me more than times every seconds. If set, limit cannot be empty. :param limit_every: The limit_every of this NotificationRuleBase. :type: int NrF)r4rr5r5r6rs cCs|jS)zGet the limit of this NotificationRuleBase. Don't notify me more than times every seconds. If set, limitEvery cannot be empty. :return: The limit of this NotificationRuleBase. :rtype: int r.r9r5r5r6rs zNotificationRuleBase.limitcCs ||_dS)zSet the limit of this NotificationRuleBase. Don't notify me more than times every seconds. If set, limitEvery cannot be empty. :param limit: The limit of this NotificationRuleBase. :type: int NrG)r4rr5r5r6rs cCs|jS)zGet the tag_rules of this NotificationRuleBase. List of tag rules the notification rule attempts to match. :return: The tag_rules of this NotificationRuleBase. :rtype: list[TagRule] r/r9r5r5r6r s zNotificationRuleBase.tag_rulescCs ||_dS)zSet the tag_rules of this NotificationRuleBase. List of tag rules the notification rule attempts to match. :param tag_rules: The tag_rules of this NotificationRuleBase. :type: list[TagRule] NrH)r4rr5r5r6rs cCs|jS)zGet the description of this NotificationRuleBase. An optional description of the notification rule. :return: The description of this NotificationRuleBase. :rtype: str r0r9r5r5r6rs z NotificationRuleBase.descriptioncCs ||_dS)zSet the description of this NotificationRuleBase. An optional description of the notification rule. :param description: The description of this NotificationRuleBase. :type: str NrI)r4rr5r5r6r*s cCs|jS)zGet the status_rules of this NotificationRuleBase. List of status rules the notification rule attempts to match. :return: The status_rules of this NotificationRuleBase. :rtype: list[StatusRule] )r1r9r5r5r6r5s z!NotificationRuleBase.status_rulescCs|dkrtd||_dS)zSet the status_rules of this NotificationRuleBase. List of status rules the notification rule attempts to match. :param status_rules: The status_rules of this NotificationRuleBase. :type: list[StatusRule] Nz4Invalid value for `status_rules`, must not be `None`)r=r1)r4rr5r5r6r@s cCs|jS)zGet the labels of this NotificationRuleBase. :return: The labels of this NotificationRuleBase. :rtype: list[Label] r2r9r5r5r6rMszNotificationRuleBase.labelscCs ||_dS)zSet the labels of this NotificationRuleBase. :param labels: The labels of this NotificationRuleBase. :type: list[Label] NrJ)r4rr5r5r6rVscCs|jS)zGet the links of this NotificationRuleBase. :return: The links of this NotificationRuleBase. :rtype: NotificationRuleBaseLinks r3r9r5r5r6r_szNotificationRuleBase.linkscCs ||_dS)zSet the links of this NotificationRuleBase. :param links: The links of this NotificationRuleBase. :type: NotificationRuleBaseLinks NrK)r4rr5r5r6rhscCsi}|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_dicthasattrrL)xr5r5r6yz.NotificationRuleBase.to_dict..rLcSs&t|ddr"|d|dfS|S)NrLrrM)itemr5r5r6rPs ) openapi_typesitemsgetattr isinstancelistmaprNrLdict)r4resultattr_valuer5r5r6rLqs"       zNotificationRuleBase.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrLr9r5r5r6to_strszNotificationRuleBase.to_strcCs|S)zFor `print` and `pprint`.)rar9r5r5r6__repr__szNotificationRuleBase.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rWr__dict__r4otherr5r5r6__eq__s zNotificationRuleBase.__eq__cCs ||k S)z*Return true if both objects are not equal.r5rdr5r5r6__ne__szNotificationRuleBase.__ne__)NNNNNNNNNNNNNNNNNNNNNNN)%__name__ __module__ __qualname____doc__rTZ attribute_mapr7propertyrsetterrrr r r r r rrrrrrrrrrrrrrrrLrarbrfrgr5r5r5r6rs& E                                              r)rkr_reobjectrr5r5r5r6s