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)TelegrafRequestc @ s e Zd ZdZdddddddddZddd d ddd ddZd%ddZedd Zej dd Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zd!d" Zd#d$ ZdS )&TelegrafzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strobjectzlist[Label]ZTelegrafRequestMetadata)idlinkslabelsnamedescriptionmetadataconfigorg_idr r r r r r r ZorgIDNc C s\ t j| |||||d d| _d| _d| _d| _|dk r<|| _|dk rJ|| _|dk rX|| _dS )z&Telegraf - a model defined in OpenAPI.)r r r r r N) r __init___id_links_labelsZ discriminatorr r r ) selfr r r r r r r r r P/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/telegraf.pyr 8 s zTelegraf.__init__c C s | j S )zdGet the id of this Telegraf. :return: The id of this Telegraf. :rtype: str r r r r r r H s zTelegraf.idc C s || _ dS )zeSet the id of this Telegraf. :param id: The id of this Telegraf. :type: str Nr )r r r r r r Q s c C s | j S )zmGet the links of this Telegraf. :return: The links of this Telegraf. :rtype: object r r r r r r Z s zTelegraf.linksc C s || _ dS )zqSet the links of this Telegraf. :param links: The links of this Telegraf. :type: object Nr )r r r r r r c s c C s | j S )ztGet the labels of this Telegraf. :return: The labels of this Telegraf. :rtype: list[Label] r r r r r r l s zTelegraf.labelsc C s || _ dS )zySet the labels of this Telegraf. :param labels: The labels of this Telegraf. :type: list[Label] Nr )r r r r r r u s c C s i }| j D ]z\}}t| |}t|trBttdd |||<