U wip @ s( d Z ddlZddlZG 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 Nc @ s e Zd ZdZddiZddiZdddddZdd dZedd Z e j dd Z dd Zdd Zdd Z dd Zdd Zdd Zd S )PostNotificationEndpointzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. typeZNotificationEndpointTypeZSlackNotificationEndpointZPagerDutyNotificationEndpointZHTTPNotificationEndpointZTelegramNotificationEndpoint)ZslackZ pagerdutyhttpZtelegramNc C s d| _ d| _|| _dS )z6PostNotificationEndpoint - a model defined in OpenAPI.Nr )_type discriminatorr selfr r b/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/post_notification_endpoint.py__init__/ s z!PostNotificationEndpoint.__init__c C s | j S )zGet the type of this PostNotificationEndpoint. :return: The type of this PostNotificationEndpoint. :rtype: NotificationEndpointType )r r r r r r 6 s zPostNotificationEndpoint.typec C s |dkrt d|| _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`) ValueErrorr r r r r r ? s c C s | j | j }|| }| j|S )z:Return the real base class specified by the discriminator.) attribute_mapr discriminator_value_class_mapget)r dataZdiscriminator_keyZdiscriminator_valuer r r get_real_child_modelJ s z-PostNotificationEndpoint.get_real_child_modelc C s i }| j D ]z\}}t| |}t|trBttdd |||<