U vi$@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@sjeZdZdZddddddddddddddddddddZd d d d d dddddddddddddddZdCdd Zed!d"Zej d#d"Zed$d%Z e j d&d%Z ed'd(Z e j d)d(Z ed*d+Z e j d,d+Z ed-d.Z e j d/d.Z ed0d1Zej d2d1Zed3d4Zej d5d4Zed6d7Zej d8d7Zd9d:Zd;d<Zd=d>Zd?d@ZdAdBZdS)DHTTPNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzdict(str, str)datetimez list[Label]ZNotificationEndpointBaseLinksZNotificationEndpointType)urlusernamepasswordtokenmethod auth_methodcontent_templateheadersidorg_iduser_id created_at updated_at descriptionnamestatuslabelslinkstyperrrr r Z authMethodZcontentTemplater rZorgIDZuserIDZ createdAtZ updatedAtrrrrrrNactivehttpcCstj|| | | | | ||||||d d|_d|_d|_d|_d|_d|_d|_d|_ d|_ ||_ |dk rl||_ |dk rz||_ |dk r||_||_||_|dk r||_|dk r||_dS)z6HTTPNotificationEndpoint - a model defined in OpenAPI.) rrrrrrrrrrrN)r__init___url _username _password_token_method _auth_method_content_template_headersZ discriminatorrrrr r r r r )selfrrrr r r r r rrrrrrrrrrrr%b/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/http_notification_endpoint.pyrNs."z!HTTPNotificationEndpoint.__init__cCs|jS)zGet the url of this HTTPNotificationEndpoint. :return: The url of this HTTPNotificationEndpoint. :rtype: str )rr$r%r%r&rjszHTTPNotificationEndpoint.urlcCs|dkrtd||_dS)zSet the url of this HTTPNotificationEndpoint. :param url: The url of this HTTPNotificationEndpoint. :type: str Nz+Invalid value for `url`, must not be `None`) ValueErrorr)r$rr%r%r&rsscCs|jS)zGet the username of this HTTPNotificationEndpoint. :return: The username of this HTTPNotificationEndpoint. :rtype: str rr'r%r%r&r~sz!HTTPNotificationEndpoint.usernamecCs ||_dS)zSet the username of this HTTPNotificationEndpoint. :param username: The username of this HTTPNotificationEndpoint. :type: str Nr))r$rr%r%r&rscCs|jS)zGet the password of this HTTPNotificationEndpoint. :return: The password of this HTTPNotificationEndpoint. :rtype: str rr'r%r%r&rsz!HTTPNotificationEndpoint.passwordcCs ||_dS)zSet the password of this HTTPNotificationEndpoint. :param password: The password of this HTTPNotificationEndpoint. :type: str Nr*)r$rr%r%r&rscCs|jS)zGet the token of this HTTPNotificationEndpoint. :return: The token of this HTTPNotificationEndpoint. :rtype: str rr'r%r%r&r szHTTPNotificationEndpoint.tokencCs ||_dS)zSet the token of this HTTPNotificationEndpoint. :param token: The token of this HTTPNotificationEndpoint. :type: str Nr+)r$r r%r%r&r scCs|jS)zGet the method of this HTTPNotificationEndpoint. :return: The method of this HTTPNotificationEndpoint. :rtype: str )r r'r%r%r&r szHTTPNotificationEndpoint.methodcCs|dkrtd||_dS)zSet the method of this HTTPNotificationEndpoint. :param method: The method of this HTTPNotificationEndpoint. :type: str Nz.Invalid value for `method`, must not be `None`)r(r )r$r r%r%r&r scCs|jS)zGet the auth_method of this HTTPNotificationEndpoint. :return: The auth_method of this HTTPNotificationEndpoint. :rtype: str )r!r'r%r%r&r sz$HTTPNotificationEndpoint.auth_methodcCs|dkrtd||_dS)zSet the auth_method of this HTTPNotificationEndpoint. :param auth_method: The auth_method of this HTTPNotificationEndpoint. :type: str Nz3Invalid value for `auth_method`, must not be `None`)r(r!)r$r r%r%r&r scCs|jS)zGet the content_template of this HTTPNotificationEndpoint. :return: The content_template of this HTTPNotificationEndpoint. :rtype: str r"r'r%r%r&r sz)HTTPNotificationEndpoint.content_templatecCs ||_dS)zSet the content_template of this HTTPNotificationEndpoint. :param content_template: The content_template of this HTTPNotificationEndpoint. :type: str Nr,)r$r r%r%r&r scCs|jS)zGet the headers of this HTTPNotificationEndpoint. Customized headers. :return: The headers of this HTTPNotificationEndpoint. :rtype: dict(str, str) r#r'r%r%r&r s z HTTPNotificationEndpoint.headerscCs ||_dS)zSet the headers of this HTTPNotificationEndpoint. Customized headers. :param headers: The headers of this HTTPNotificationEndpoint. :type: dict(str, str) Nr-)r$r r%r%r&r s 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.)xr%r%r& z2HTTPNotificationEndpoint.to_dict..r.cSs&t|ddr"|d|dfS|S)Nr.rr/)itemr%r%r&r2s ) openapi_typesitemsgetattr isinstancelistmapr0r.dict)r$resultattr_valuer%r%r&r.s"       z HTTPNotificationEndpoint.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr.r'r%r%r&to_strszHTTPNotificationEndpoint.to_strcCs|S)zFor `print` and `pprint`.)rCr'r%r%r&__repr__ sz!HTTPNotificationEndpoint.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r9r__dict__r$otherr%r%r&__eq__$s zHTTPNotificationEndpoint.__eq__cCs ||k S)z*Return true if both objects are not equal.r%rFr%r%r&__ne__+szHTTPNotificationEndpoint.__ne__)NNNNNNNNNNNNNNNrNNr)__name__ __module__ __qualname____doc__r6Z attribute_maprpropertyrsetterrrr r r r r r.rCrDrHrIr%r%r%r&rs                 r)rMrAreZ:influxdb_client.domain.notification_endpoint_discriminatorrrr%r%r%r&s