U vâ’i=$ ã @ s( d Z ddlZddlZG dd„ 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 @ sä e Zd ZdZddddddœZdddd d dœZd+dd„Zedd„ ƒZej dd„ ƒZedd„ ƒZ e j dd„ ƒZ edd„ ƒZej dd„ ƒZedd„ ƒZej dd„ ƒZedd„ ƒZ e j d d„ ƒZ d!d"„ Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd S ),ÚDialectz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚboolÚstrz list[str])ÚheaderÚ delimiterÚannotationsÚcomment_prefixÚdate_time_formatr r r Z commentPrefixZdateTimeFormatTú,Nú#ÚRFC3339c C sn d| _ d| _d| _d| _d| _d| _|dk r2|| _|dk r@|| _|dk rN|| _|dk r\|| _ |dk rj|| _ dS )z%Dialect - a model defined in OpenAPI.N)Ú_headerÚ _delimiterÚ_annotationsÚ_comment_prefixÚ_date_time_formatZ discriminatorr r r r r )Úselfr r r r r © r úO/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/dialect.pyÚ__init__0 s zDialect.__init__c C s | j S )zŸGet the header of this Dialect. If true, the results contain a header row. :return: The header of this Dialect. :rtype: bool ©r ©r r r r r D s zDialect.headerc C s || _ dS )z¤Set the header of this Dialect. If true, the results contain a header row. :param header: The header of this Dialect. :type: bool Nr )r r r r r r O s c C s | j S )zµGet the delimiter of this Dialect. The separator used between cells. Default is a comma (`,`). :return: The delimiter of this Dialect. :rtype: str )r r r r r r Z s zDialect.delimiterc C sB |dk rt |ƒdkrtdƒ‚|dk r8t |ƒdk r8tdƒ‚|| _dS )z½Set the delimiter of this Dialect. The separator used between cells. Default is a comma (`,`). :param delimiter: The delimiter of this Dialect. :type: str Né zGInvalid value for `delimiter`, length must be less than or equal to `1`zJInvalid value for `delimiter`, length must be greater than or equal to `1`)ÚlenÚ ValueErrorr )r r r r r r e s c C s | j S )ae Get the annotations of this Dialect. Annotation rows to include in the results. An _annotation_ is metadata associated with an object (column) in the data model. #### Related guides - See [Annotated CSV annotations](https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/#annotations) for examples and more information. For more information about **annotations** in tabular data, see [W3 metadata vocabulary for tabular data](https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns). :return: The annotations of this Dialect. :rtype: list[str] )r r r r r r t s zDialect.annotationsc C sZ dddg}t |ƒ t |ƒ¡sPtd d ttt |ƒt |ƒ ƒ¡d tt|ƒ¡¡ƒ‚|| _dS )ao Set the annotations of this Dialect. Annotation rows to include in the results. An _annotation_ is metadata associated with an object (column) in the data model. #### Related guides - See [Annotated CSV annotations](https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/#annotations) for examples and more information. For more information about **annotations** in tabular data, see [W3 metadata vocabulary for tabular data](https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns). :param annotations: The annotations of this Dialect. :type: list[str] ÚgroupÚdatatypeÚdefaultzAInvalid values for `annotations` [{0}], must be a subset of [{1}]z, N)ÚsetÚissubsetr ÚformatÚjoinÚmapr r )r r Zallowed_valuesr r r r s þÿc C s | j S )zÎGet the comment_prefix of this Dialect. The character prefixed to comment strings. Default is a number sign (`#`). :return: The comment_prefix of this Dialect. :rtype: str )r r r r r r ‘ s zDialect.comment_prefixc C sB |dk rt |ƒdkrtdƒ‚|dk r8t |ƒdk r8tdƒ‚|| _dS )zÛSet the comment_prefix of this Dialect. The character prefixed to comment strings. Default is a number sign (`#`). :param comment_prefix: The comment_prefix of this Dialect. :type: str Nr zLInvalid value for `comment_prefix`, length must be less than or equal to `1`r zOInvalid value for `comment_prefix`, length must be greater than or equal to `0`)r r r )r r r r r r œ s c C s | j S )aU Get the date_time_format of this Dialect. The format for timestamps in results. Default is [`RFC3339` date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp). To include nanoseconds in timestamps, use `RFC3339Nano`. #### Example formatted date/time values | Format | Value | |:------------|:----------------------------| | `RFC3339` | `"2006-01-02T15:04:05Z07:00"` | | `RFC3339Nano` | `"2006-01-02T15:04:05.999999999Z07:00"` | :return: The date_time_format of this Dialect. :rtype: str ©r r r r r r « s zDialect.date_time_formatc C s || _ dS )ad Set the date_time_format of this Dialect. The format for timestamps in results. Default is [`RFC3339` date/time format](https://docs.influxdata.com/influxdb/latest/reference/glossary/#rfc3339-timestamp). To include nanoseconds in timestamps, use `RFC3339Nano`. #### Example formatted date/time values | Format | Value | |:------------|:----------------------------| | `RFC3339` | `"2006-01-02T15:04:05Z07:00"` | | `RFC3339Nano` | `"2006-01-02T15:04:05.999999999Z07:00"` | :param date_time_format: The date_time_format of this Dialect. :type: str Nr# )r r r r r r ¶ s c C sŽ i }| j ¡ D ]z\}}t| |ƒ}t|tƒrBttdd„ |ƒƒ||<