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)!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 )+SlackNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimezlist[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType) urltokenidorg_iduser_id created_at updated_atdescriptionnamestatuslabelslinkstyper r r ZorgIDZuserIDZ createdAtZ updatedAtr r r r r r Nactiveslackc C sT t j| ||||||| | ||| d d| _d| _d| _|dk rB|| _|dk rP|| _dS )z7SlackNotificationEndpoint - a model defined in OpenAPI.)r r r r r r r r r r r N)r __init___url_tokenZ discriminatorr r )selfr 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/slack_notification_endpoint.pyr B s "z"SlackNotificationEndpoint.__init__c C s | j S )zGet the url of this SlackNotificationEndpoint. Specifies the URL of the Slack endpoint. Specify either `URL` or `Token`. :return: The url of this SlackNotificationEndpoint. :rtype: str r r r r r r O s zSlackNotificationEndpoint.urlc C s || _ dS )zSet the url of this SlackNotificationEndpoint. Specifies the URL of the Slack endpoint. Specify either `URL` or `Token`. :param url: The url of this SlackNotificationEndpoint. :type: str Nr )r r r r r r Z s c C s | j S )zGet the token of this SlackNotificationEndpoint. Specifies the API token string. Specify either `URL` or `Token`. :return: The token of this SlackNotificationEndpoint. :rtype: str r r r r r r e s zSlackNotificationEndpoint.tokenc C s || _ dS )zSet the token of this SlackNotificationEndpoint. Specifies the API token string. Specify either `URL` or `Token`. :param token: The token of this SlackNotificationEndpoint. :type: str Nr )r r r r r r p s c C s i }| j D ]z\}}t| |}t|trBttdd |||<