U wi0@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@s.eZdZdZdddddddddddddddddZddd d d d d ddddddddddZdTddZeddZej ddZeddZ e j ddZ ed 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*Zej d+d*Zed,d-Zej d.d-Zed/d0Zej d1d0Zed2d3Zej d4d3Zed5d6Zej d7d6Zed8d9Zej d:d9Zed;d<Zej d=d<Zed>d?Zej d@d?ZedAdBZej dCdBZedDdEZej dFdEZedGdHZej dIdHZdJdKZdLdMZdNdOZdPdQZdRdSZdS)USourcezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Z SourceLinksstrboolz list[str])linksidorg_iddefaultnametypeurlinsecure_skip_verifytelegraftokenusernamepassword shared_secretmeta_url default_rp languagesrrZorgIDrr r r ZinsecureSkipVerifyr rrrZ sharedSecretZmetaUrlZ defaultRPrNcCsVd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_|dk rt||_|dk r||_|dk r||_|dk r||_|dk r||_|dk r||_|dk r||_|dk r||_| dk r| |_| dk r| |_| dk r| |_| dk r| |_| dk r"| |_|dk r2||_|dk rB||_|dk rR||_ dS)z$Source - a model defined in OpenAPI.N)!_links_id_org_id_default_name_type_url_insecure_skip_verify _telegraf_token _username _password_shared_secret _meta_url _default_rp _languagesZ discriminatorrrrrr r r r r rrrrrrr)selfrrrrr r r r r rrrrrrrr&N/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/source.py__init__Fsb      zSource.__init__cCs|jS)znGet the links of this Source. :return: The links of this Source. :rtype: SourceLinks rr%r&r&r'r{sz Source.linkscCs ||_dS)zrSet the links of this Source. :param links: The links of this Source. :type: SourceLinks Nr))r%rr&r&r'rscCs|jS)z`Get the id of this Source. :return: The id of this Source. :rtype: str rr*r&r&r'rsz Source.idcCs ||_dS)zaSet the id of this Source. :param id: The id of this Source. :type: str Nr+)r%rr&r&r'rscCs|jS)zhGet the org_id of this Source. :return: The org_id of this Source. :rtype: str rr*r&r&r'rsz Source.org_idcCs ||_dS)zmSet the org_id of this Source. :param org_id: The org_id of this Source. :type: str Nr,)r%rr&r&r'rscCs|jS)zkGet the default of this Source. :return: The default of this Source. :rtype: bool rr*r&r&r'rszSource.defaultcCs ||_dS)zqSet the default of this Source. :param default: The default of this Source. :type: bool Nr-)r%rr&r&r'rscCs|jS)zdGet the name of this Source. :return: The name of this Source. :rtype: str rr*r&r&r'r sz Source.namecCs ||_dS)zgSet the name of this Source. :param name: The name of this Source. :type: str Nr.)r%r r&r&r'r scCs|jS)zdGet the type of this Source. :return: The type of this Source. :rtype: str rr*r&r&r'r sz Source.typecCs ||_dS)zgSet the type of this Source. :param type: The type of this Source. :type: str Nr/)r%r r&r&r'r scCs|jS)zbGet the url of this Source. :return: The url of this Source. :rtype: str rr*r&r&r'r sz Source.urlcCs ||_dS)zdSet the url of this Source. :param url: The url of this Source. :type: str Nr0)r%r r&r&r'r scCs|jS)zGet the insecure_skip_verify of this Source. :return: The insecure_skip_verify of this Source. :rtype: bool rr*r&r&r'r szSource.insecure_skip_verifycCs ||_dS)zSet the insecure_skip_verify of this Source. :param insecure_skip_verify: The insecure_skip_verify of this Source. :type: bool Nr1)r%r r&r&r'r scCs|jS)zlGet the telegraf of this Source. :return: The telegraf of this Source. :rtype: str rr*r&r&r'r szSource.telegrafcCs ||_dS)zsSet the telegraf of this Source. :param telegraf: The telegraf of this Source. :type: str Nr2)r%r r&r&r'r scCs|jS)zfGet the token of this Source. :return: The token of this Source. :rtype: str rr*r&r&r'rsz Source.tokencCs ||_dS)zjSet the token of this Source. :param token: The token of this Source. :type: str Nr3)r%rr&r&r'r&scCs|jS)zlGet the username of this Source. :return: The username of this Source. :rtype: str rr*r&r&r'r/szSource.usernamecCs ||_dS)zsSet the username of this Source. :param username: The username of this Source. :type: str Nr4)r%rr&r&r'r8scCs|jS)zlGet the password of this Source. :return: The password of this Source. :rtype: str r r*r&r&r'rAszSource.passwordcCs ||_dS)zsSet the password of this Source. :param password: The password of this Source. :type: str Nr5)r%rr&r&r'rJscCs|jS)zvGet the shared_secret of this Source. :return: The shared_secret of this Source. :rtype: str r!r*r&r&r'rSszSource.shared_secretcCs ||_dS)zSet the shared_secret of this Source. :param shared_secret: The shared_secret of this Source. :type: str Nr6)r%rr&r&r'r\scCs|jS)zlGet the meta_url of this Source. :return: The meta_url of this Source. :rtype: str r"r*r&r&r'reszSource.meta_urlcCs ||_dS)zsSet the meta_url of this Source. :param meta_url: The meta_url of this Source. :type: str Nr7)r%rr&r&r'rnscCs|jS)zpGet the default_rp of this Source. :return: The default_rp of this Source. :rtype: str r#r*r&r&r'rwszSource.default_rpcCs ||_dS)zySet the default_rp of this Source. :param default_rp: The default_rp of this Source. :type: str Nr8)r%rr&r&r'rscCs|jS)ztGet the languages of this Source. :return: The languages of this Source. :rtype: list[str] )r$r*r&r&r'rszSource.languagesc CsXddg}t|t|sNtddttt|t|dtt|||_dS)z|Set the languages of this Source. :param languages: The languages of this Source. :type: list[str] ZfluxZinfluxqlz?Invalid values for `languages` [{0}], must be a subset of [{1}]z, N)setissubset ValueErrorformatjoinmaprr$)r%rZallowed_valuesr&r&r'rscCsi}|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'z Source.to_dict..r?cSs&t|ddr"|d|dfS|S)Nr?rr@)itemr&r&r'rCs ) openapi_typesitemsgetattr isinstancelistr>rAr?dict)r%resultattr_valuer&r&r'r?s"       zSource.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatr?r*r&r&r'to_strsz Source.to_strcCs|S)zFor `print` and `pprint`.)rSr*r&r&r'__repr__szSource.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rJr__dict__r%otherr&r&r'__eq__s z Source.__eq__cCs ||k S)z*Return true if both objects are not equal.r&rVr&r&r'__ne__sz Source.__ne__)NNNNNNNNNNNNNNNN)__name__ __module__ __qualname____doc__rGZ attribute_mapr(propertyrsetterrrrr r r r r rrrrrrrr?rSrTrXrYr&r&r&r'rs 5                                r)r]rQreobjectrr&r&r&r's