U vi@s4dZddlZddlZddlmZGdddeZdS)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 N) Expressionc@seZdZdZdddZdddZddd Zed d Zej d d Zed dZ e j ddZ ddZ ddZ ddZ ddZddZdS)ArrayExpressionzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[Expression])typeelementsrrNcCs<t|d|_d|_d|_|dk r*||_|dk r8||_dS)z-ArrayExpression - a model defined in OpenAPI.N)r__init___type _elementsZ discriminatorrr)selfrrr X/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/array_expression.pyr,s zArrayExpression.__init__cCs|jS)zGet the type of this ArrayExpression. Type of AST node :return: The type of this ArrayExpression. :rtype: str rr r r r r9s zArrayExpression.typecCs ||_dS)zSet the type of this ArrayExpression. Type of AST node :param type: The type of this ArrayExpression. :type: str Nr )r rr r r rDs cCs|jS)zGet the elements of this ArrayExpression. Elements of the array :return: The elements of this ArrayExpression. :rtype: list[Expression] r rr r r rOs zArrayExpression.elementscCs ||_dS)zSet the elements of this ArrayExpression. Elements of the array :param elements: The elements of this ArrayExpression. :type: list[Expression] Nr)r rr r r rZs 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)xr r r mz)ArrayExpression.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rts ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r res"       zArrayExpression.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_str}szArrayExpression.to_strcCs|S)zFor `print` and `pprint`.)r%rr r r __repr__szArrayExpression.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zArrayExpression.__eq__cCs ||k S)z*Return true if both objects are not equal.r r(r r r __ne__szArrayExpression.__ne__)NN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrr%r&r*r+r r r r rs*     r)r/r#reZ!influxdb_client.domain.expressionrrr r r r s