U wip@s(dZddlZddlZGdddeZdS)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 Nc@seZdZdZddiZddiZdddddZdd d Zed d Z e j dd Z ddZ ddZ ddZ ddZddZddZd S)PostNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. typeZNotificationEndpointTypeZSlackNotificationEndpointZPagerDutyNotificationEndpointZHTTPNotificationEndpointZTelegramNotificationEndpoint)ZslackZ pagerdutyhttpZtelegramNcCsd|_d|_||_dS)z6PostNotificationEndpoint - a model defined in OpenAPI.Nr)_type discriminatorrselfrr b/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/post_notification_endpoint.py__init__/sz!PostNotificationEndpoint.__init__cCs|jS)zGet the type of this PostNotificationEndpoint. :return: The type of this PostNotificationEndpoint. :rtype: NotificationEndpointType )rrr r r r6szPostNotificationEndpoint.typecCs|dkrtd||_dS)zSet the type of this PostNotificationEndpoint. :param type: The type of this PostNotificationEndpoint. :type: NotificationEndpointType Nz,Invalid value for `type`, must not be `None`) ValueErrorrrr r r r?scCs |j|j}||}|j|S)z:Return the real base class specified by the discriminator.) attribute_maprdiscriminator_value_class_mapget)rdataZdiscriminator_keyZdiscriminator_valuer r r get_real_child_modelJs z-PostNotificationEndpoint.get_real_child_modelcCsi}|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 Xz2PostNotificationEndpoint.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r r_s ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuer r r rPs"       z PostNotificationEndpoint.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrr r r r to_strhszPostNotificationEndpoint.to_strcCs|S)zFor `print` and `pprint`.)r(r r r r __repr__lsz!PostNotificationEndpoint.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__rotherr r r __eq__ps zPostNotificationEndpoint.__eq__cCs ||k S)z*Return true if both objects are not equal.r r+r r r __ne__wszPostNotificationEndpoint.__ne__)N)__name__ __module__ __qualname____doc__rrrr propertyrsetterrrr(r)r-r.r r r r rs.   r)r2r&reobjectrr r r r s