U wi@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)+SlackNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strdatetimez list[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType) urltokenidorg_iduser_id created_at updated_at descriptionnamestatuslabelslinkstyperrrZorgIDZuserIDZ createdAtZ updatedAtr rrrrrNactiveslackcCsTtj|||||||| | | | | d d|_d|_d|_|dk rB||_|dk rP||_dS)z7SlackNotificationEndpoint - a model defined in OpenAPI.) rr r r r r rrrrrN)r__init___url_tokenZ discriminatorrr)selfrrrr r r r r rrrrrrc/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/slack_notification_endpoint.pyrBs"z"SlackNotificationEndpoint.__init__cCs|jS)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 rrrrrrOs zSlackNotificationEndpoint.urlcCs ||_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)rrrrrrZs cCs|jS)zGet the token of this SlackNotificationEndpoint. Specifies the API token string. Specify either `URL` or `Token`. :return: The token of this SlackNotificationEndpoint. :rtype: str rrrrrres zSlackNotificationEndpoint.tokencCs ||_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)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)xrrrz3SlackNotificationEndpoint.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrr"s ) openapi_typesitemsgetattr isinstancelistmapr rdict)rresultattr_valuerrrr{s"       z!SlackNotificationEndpoint.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strsz SlackNotificationEndpoint.to_strcCs|S)zFor `print` and `pprint`.)r3rrrr__repr__sz"SlackNotificationEndpoint.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r)r__dict__rotherrrr__eq__s z SlackNotificationEndpoint.__eq__cCs ||k S)z*Return true if both objects are not equal.rr6rrr__ne__sz SlackNotificationEndpoint.__ne__) NNNNNNNNNrNNr)__name__ __module__ __qualname____doc__r&Z attribute_maprpropertyrsetterrrr3r4r8r9rrrrrsV     r)r=r1reZ:influxdb_client.domain.notification_endpoint_discriminatorrrrrrrs