U viP@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@seZdZdZddddddZddd d d dZd(d dZeddZej ddZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZd d!Zd"d#Zd$d%Zd&d'Zd S))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])typenamepackageimportsbodyrrrrrNcCsnd|_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 discriminatorrrrrr)selfrrrrrrL/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/file.py__init__0s z File.__init__cCs|jS)zzGet the type of this File. Type of AST node :return: The type of this File. :rtype: str r rrrrrDs z File.typecCs ||_dS)z}Set the type of this File. Type of AST node :param type: The type of this File. :type: str Nr)rrrrrrOs cCs|jS)zGet the name of this File. The name of the file. :return: The name of this File. :rtype: str r rrrrrZs z File.namecCs ||_dS)zSet the name of this File. The name of the file. :param name: The name of this File. :type: str Nr)rrrrrres cCs|jS)zpGet the package of this File. :return: The package of this File. :rtype: PackageClause r rrrrrpsz File.packagecCs ||_dS)zvSet the package of this File. :param package: The package of this File. :type: PackageClause Nr)rrrrrryscCs|jS)zGet the imports of this File. A list of package imports :return: The imports of this File. :rtype: list[ImportDeclaration] r rrrrrs z File.importscCs ||_dS)zSet the imports of this File. A list of package imports :param imports: The imports of this File. :type: list[ImportDeclaration] Nr)rrrrrrs cCs|jS)zGet the body of this File. List of Flux statements :return: The body of this File. :rtype: list[Statement] r rrrrrs z File.bodycCs ||_dS)zSet the body of this File. List of Flux statements :param body: The body of this File. :type: list[Statement] Nr)rrrrrrs cCsi}|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)xrrrzFile.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       z File.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strsz File.to_strcCs|S)zFor `print` and `pprint`.)r-rrrr__repr__sz File.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r#r__dict__rotherrrr__eq__s z File.__eq__cCs ||k S)z*Return true if both objects are not equal.rr0rrr__ne__sz File.__ne__)NNNNN)__name__ __module__ __qualname____doc__r Z attribute_maprpropertyrsetterrrrrrr-r.r2r3rrrrrsN            r)r7r+reobjectrrrrrs