U wi @ s4 d Z ddlZddlZddlmZ G dd deZdS )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 e Zd ZdZddddddddddddddddddddddddd d Zddd ddddddddddddddddddd d!d"d#d Zd7d%d&Zed'd( Zej d)d( Zed*d+ Z e j d,d+ Z d-d. Zd/d0 Zd1d2 Z d3d4 Zd5d6 Zd$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]zlist[Label]ZNotificationRuleBaseLinks)typemessage_templatelatest_completedlast_run_statuslast_run_erroridendpoint_idorg_idtask_idowner_id created_at updated_atstatusnamesleep_untileveryoffsetrunbook_linklimit_everylimit tag_rulesdescriptionstatus_ruleslabelslinksr ZmessageTemplateZlatestCompletedZ lastRunStatusZlastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtr r Z sleepUntilr r ZrunbookLinkZ limitEveryr ZtagRulesr ZstatusRulesr r Nc C s\ t j| ||||||| | ||| ||||||||||||d d| _d| _d| _|| _|| _dS )z;PagerDutyNotificationRuleBase - a model defined in OpenAPI.)r r r r r r r r r r r r r r r r r r r r r r r N)r __init___type_message_templateZ discriminatorr r )selfr r r r r r r r r r r r r r r r r r r r r r r r r r$ i/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/pager_duty_notification_rule_base.pyr Z s :z&PagerDutyNotificationRuleBase.__init__c C s | j S )zGet the type of this PagerDutyNotificationRuleBase. :return: The type of this PagerDutyNotificationRuleBase. :rtype: str )r! r# r$ r$ r% r e s z"PagerDutyNotificationRuleBase.typec C s |dkrt d|| _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# r r$ r$ r% r n s c C s | j S )zGet the message_template of this PagerDutyNotificationRuleBase. :return: The message_template of this PagerDutyNotificationRuleBase. :rtype: str )r" r&