U wiy @ 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)!NotificationEndpointDiscriminatorc @ s e Zd ZdZdddddddddddddd Zdd d ddd dddddddd Zd*ddZedd Zej dd Zedd Z e j dd Z d d! Zd"d# Zd$d% Z d&d' Zd(d) ZdS )+TelegramNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimezlist[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType) tokenchannelidorg_iduser_id created_at updated_atdescriptionnamestatuslabelslinkstyper r r ZorgIDZuserIDZ createdAtZ updatedAtr r r r r r Nactivetelegramc C sD t j| ||||||| | ||| d d| _d| _d| _|| _|| _dS )z:TelegramNotificationEndpoint - a model defined in OpenAPI.)r r r r r r r r r r r N)r __init___token_channelZ discriminatorr r )selfr r r r r r r r r r r r r r f/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/telegram_notification_endpoint.pyr B s "z%TelegramNotificationEndpoint.__init__c C s | j S )zGet the token of this TelegramNotificationEndpoint. Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot . :return: The token of this TelegramNotificationEndpoint. :rtype: str )r r r r r r M s z"TelegramNotificationEndpoint.tokenc C s |dkrt d|| _dS )zSet the token of this TelegramNotificationEndpoint. Specifies the Telegram bot token. See https://core.telegram.org/bots#creating-a-new-bot . :param token: The token of this TelegramNotificationEndpoint. :type: str Nz-Invalid value for `token`, must not be `None`) ValueErrorr )r r r r r r X s c C s | j S )zGet the channel of this TelegramNotificationEndpoint. The ID of the telegram channel; a chat_id in https://core.telegram.org/bots/api#sendmessage . :return: The channel of this TelegramNotificationEndpoint. :rtype: str )r r r r r r e s z$TelegramNotificationEndpoint.channelc C s |dkrt d|| _dS )a Set the channel of this TelegramNotificationEndpoint. The ID of the telegram channel; a chat_id in https://core.telegram.org/bots/api#sendmessage . :param channel: The channel of this TelegramNotificationEndpoint. :type: str Nz/Invalid value for `channel`, must not be `None`)r r )r r r r r r p s c C s i }| j D ]z\}}t| |}t|trBttdd |||<