U wâ’iïã@s(dZddlZddlZGdd„deƒZdS)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@seZdZdZdddddddœZdd d d d d dœZd-dd„Zedd„ƒZej dd„ƒZedd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ ed d!„ƒZej d"d!„ƒZd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„ZdS).ÚQueryz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚFileÚstrzdict(str, object)ÚDialectÚdatetime)ÚexternÚqueryÚtypeÚparamsÚdialectÚnowrrr r r r NcCszd|_d|_d|_d|_d|_d|_d|_|dk r8||_||_|dk rL||_ |dk rZ||_ |dk rh||_ |dk rv||_ dS)z#Query - a model defined in OpenAPI.N) Ú_externÚ_queryÚ_typeÚ_paramsÚ_dialectÚ_nowZ discriminatorrrr r r r )Úselfrrr r r r ©rúM/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/query.pyÚ__init__2s$zQuery.__init__cCs|jS)zgGet the extern of this Query. :return: The extern of this Query. :rtype: File ©r ©rrrrrHsz Query.externcCs ||_dS)zlSet the extern of this Query. :param extern: The extern of this Query. :type: File Nr)rrrrrrQscCs|jS)zŠGet the query of this Query. The query script to execute. :return: The query of this Query. :rtype: str )rrrrrrZs z Query.querycCs|dkrtdƒ‚||_dS)zŽSet the query of this Query. The query script to execute. :param query: The query of this Query. :type: str Nz-Invalid value for `query`, must not be `None`)Ú ValueErrorr)rrrrrres cCs|jS)zŽGet the type of this Query. The type of query. Must be "flux". :return: The type of this Query. :rtype: str ©rrrrrr rs z Query.typecCs ||_dS)z‘Set the type of this Query. The type of query. Must be "flux". :param type: The type of this Query. :type: str Nr)rr rrrr }s cCs|jS)aÓGet the params of this Query. Key-value pairs passed as parameters during query execution. To use parameters in your query, pass a _`query`_ with `params` references (in dot notation)--for example: ```json query: "from(bucket: params.mybucket)\\ |> range(start: params.rangeStart) |> limit(n:1)" ``` and pass _`params`_ with the key-value pairs--for example: ```json params: { "mybucket": "environment", "rangeStart": "-30d" } ``` During query execution, InfluxDB passes _`params`_ to your script and substitutes the values. #### Limitations - If you use _`params`_, you can't use _`extern`_. :return: The params of this Query. :rtype: dict(str, object) ©rrrrrr ˆs z Query.paramscCs ||_dS)aØSet the params of this Query. Key-value pairs passed as parameters during query execution. To use parameters in your query, pass a _`query`_ with `params` references (in dot notation)--for example: ```json query: "from(bucket: params.mybucket)\\ |> range(start: params.rangeStart) |> limit(n:1)" ``` and pass _`params`_ with the key-value pairs--for example: ```json params: { "mybucket": "environment", "rangeStart": "-30d" } ``` During query execution, InfluxDB passes _`params`_ to your script and substitutes the values. #### Limitations - If you use _`params`_, you can't use _`extern`_. :param params: The params of this Query. :type: dict(str, object) Nr)rr rrrr “s cCs|jS)zlGet the dialect of this Query. :return: The dialect of this Query. :rtype: Dialect ©rrrrrr žsz Query.dialectcCs ||_dS)zrSet the dialect of this Query. :param dialect: The dialect of this Query. :type: Dialect Nr)rr rrrr §scCs|jS)zÒGet the now of this Query. Specifies the time that should be reported as `now` in the query. Default is the server `now` time. :return: The now of this Query. :rtype: datetime ©rrrrrr °s z Query.nowcCs ||_dS)zÔSet the now of this Query. Specifies the time that should be reported as `now` in the query. Default is the server `now` time. :param now: The now of this Query. :type: datetime Nr)rr rrrr »s cCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr)ÚxrrrÚÎózQuery.to_dict..rcSs&t|ddƒr"|d|d ¡fS|S)Nérrr)Úitemrrrr"Õs ÿ) Ú openapi_typesÚitemsÚgetattrÚ isinstanceÚlistÚmapr rÚdict)rÚresultÚattrÚ_ÚvaluerrrrÆs"  þ   ý  z Query.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatrrrrrÚto_strÞsz Query.to_strcCs| ¡S)zFor `print` and `pprint`.)r3rrrrÚ__repr__âszQuery.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)r)rÚ__dict__©rÚotherrrrÚ__eq__æs z Query.__eq__cCs ||k S)z*Return true if both objects are not equal.rr6rrrÚ__ne__ísz Query.__ne__)NNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r&Z attribute_maprÚpropertyrÚsetterrr r r r rr3r4r8r9rrrrrsZú ú             r)r=r1ÚreÚobjectrrrrrÚs