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)TelegrafRequestc @seZdZdZdddddddddZddd d d d d ddZd%ddZeddZej ddZeddZ e j ddZ eddZ e j ddZ ddZ ddZ 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. strobjectz list[Label]ZTelegrafRequestMetadata)idlinkslabelsname descriptionmetadataconfigorg_idrrrr r r r ZorgIDNc Cs\tj||||||dd|_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 discriminatorrrr) selfrrrr r r r r rP/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/telegraf.pyr8szTelegraf.__init__cCs|jS)zdGet the id of this Telegraf. :return: The id of this Telegraf. :rtype: str rrrrrrHsz Telegraf.idcCs ||_dS)zeSet the id of this Telegraf. :param id: The id of this Telegraf. :type: str Nr)rrrrrrQscCs|jS)zmGet the links of this Telegraf. :return: The links of this Telegraf. :rtype: object rrrrrrZszTelegraf.linkscCs ||_dS)zqSet the links of this Telegraf. :param links: The links of this Telegraf. :type: object Nr)rrrrrrcscCs|jS)ztGet the labels of this Telegraf. :return: The labels of this Telegraf. :rtype: list[Label] rrrrrrlszTelegraf.labelscCs ||_dS)zySet the labels of this Telegraf. :param labels: The labels of this Telegraf. :type: list[Label] Nr)rrrrrruscCsi}|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)xrrrz"Telegraf.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrr~s"       zTelegraf.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszTelegraf.to_strcCs|S)zFor `print` and `pprint`.)r.rrrr__repr__szTelegraf.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r$r__dict__rotherrrr__eq__s zTelegraf.__eq__cCs ||k S)z*Return true if both objects are not equal.rr1rrr__ne__szTelegraf.__ne__)NNNNNNNN)__name__ __module__ __qualname____doc__r!Z attribute_maprpropertyrsetterrrrr.r/r3r4rrrrrsJ        r)r8r,reZ'influxdb_client.domain.telegraf_requestrrrrrrs