U viP @ s( d Z ddlZddlZG dd deZdS )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 ZdZddddddZddd d ddZd(d dZedd Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j dd Z dd Zd d! Zd"d# Zd$d% Zd&d' ZdS ))FilezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strZ PackageClausezlist[ImportDeclaration]zlist[Statement])typenamepackageimportsbodyr r r r r Nc C sn d| _ d| _d| _d| _d| _d| _|dk r2|| _|dk r@|| _|dk rN|| _|dk r\|| _ |dk rj|| _ dS )z"File - a model defined in OpenAPI.N)_type_name_package_imports_bodyZ discriminatorr r r r r )selfr r r r r r L/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/file.py__init__0 s z File.__init__c C s | j S )zzGet the type of this File. Type of AST node :return: The type of this File. :rtype: str r r r r r r D s z File.typec C s || _ dS )z}Set the type of this File. Type of AST node :param type: The type of this File. :type: str Nr )r r r r r r O s c C s | j S )zGet the name of this File. The name of the file. :return: The name of this File. :rtype: str r r r r r r Z s z File.namec C s || _ dS )zSet the name of this File. The name of the file. :param name: The name of this File. :type: str Nr )r r r r r r e s c C s | j S )zpGet the package of this File. :return: The package of this File. :rtype: PackageClause r r r r r r p s zFile.packagec C s || _ dS )zvSet the package of this File. :param package: The package of this File. :type: PackageClause Nr )r r r r r r y s c C s | j S )zGet the imports of this File. A list of package imports :return: The imports of this File. :rtype: list[ImportDeclaration] r r r r r r s zFile.importsc C s || _ dS )zSet the imports of this File. A list of package imports :param imports: The imports of this File. :type: list[ImportDeclaration] Nr )r r r r r r s c C s | j S )zGet the body of this File. List of Flux statements :return: The body of this File. :rtype: list[Statement] r r r r r r s z File.bodyc C s || _ dS )zSet the body of this File. List of Flux statements :param body: The body of this File. :type: list[Statement] Nr )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<