U vi @ 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 )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]zlist[Label]ZNotificationRuleBaseLinks)typeurllatest_completedlast_run_statuslast_run_erroridendpoint_idorg_idtask_idowner_id created_at updated_atstatusnamesleep_untileveryoffsetrunbook_linklimit_everylimit tag_rulesdescriptionstatus_ruleslabelslinksr r ZlatestCompletedZ lastRunStatusZlastRunErrorr Z endpointIDZorgIDZtaskIDZownerIDZ createdAtZ updatedAtr r Z sleepUntilr r ZrunbookLinkZ limitEveryr ZtagRulesr ZstatusRulesr r Nc C sd t j| ||||||| | ||| ||||||||||||d d| _d| _d| _|| _|dk r`|| _dS )z6HTTPNotificationRuleBase - 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_urlZ 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$ c/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/http_notification_rule_base.pyr Z s :z!HTTPNotificationRuleBase.__init__c C s | j S )zGet the type of this HTTPNotificationRuleBase. :return: The type of this HTTPNotificationRuleBase. :rtype: str )r! r# r$ r$ r% r f s zHTTPNotificationRuleBase.typec C s |dkrt d|| _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# r r$ r$ r% r o s c C s | j S )zGet the url of this HTTPNotificationRuleBase. :return: The url of this HTTPNotificationRuleBase. :rtype: str r" r&