U wiy@s4dZddlZddlZddlmZGdddeZdS)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@seZdZdZdddddddddddddd Zdd d d d d dddddddd Zd*ddZeddZej ddZeddZ e j ddZ d d!Z d"d#Z d$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. strdatetimez list[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType) tokenchannelidorg_iduser_id created_at updated_at descriptionnamestatuslabelslinkstyperrrZorgIDZuserIDZ createdAtZ updatedAtr rrrrrNactivetelegramcCsDtj|||||||| | | | | d d|_d|_d|_||_||_dS)z:TelegramNotificationEndpoint - a model defined in OpenAPI.) rr r r r r rrrrrN)r__init___token_channelZ discriminatorrr)selfrrrr r r r r rrrrrrf/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/telegram_notification_endpoint.pyrBs "z%TelegramNotificationEndpoint.__init__cCs|jS)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 )rrrrrrMs z"TelegramNotificationEndpoint.tokencCs|dkrtd||_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)rrrrrrXs cCs|jS)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 )rrrrrres z$TelegramNotificationEndpoint.channelcCs|dkrtd||_dS)aSet 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`)rr)rrrrrrps cCsi}|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_dicthasattrr)xrrrz6TelegramNotificationEndpoint.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrr!s ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrr}s"       z$TelegramNotificationEndpoint.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strsz#TelegramNotificationEndpoint.to_strcCs|S)zFor `print` and `pprint`.)r2rrrr__repr__sz%TelegramNotificationEndpoint.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r(r__dict__rotherrrr__eq__s z#TelegramNotificationEndpoint.__eq__cCs ||k S)z*Return true if both objects are not equal.rr5rrr__ne__sz#TelegramNotificationEndpoint.__ne__) NNNNNNNNNrNNr)__name__ __module__ __qualname____doc__r%Z attribute_maprpropertyrsetterrrr2r3r7r8rrrrrsV     r)r<r0reZ:influxdb_client.domain.notification_endpoint_discriminatorrrrrrrs