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@seZdZdZddddZddddZdd d Zed d Zej d d ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZdS)IndexExpressionzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strr)typearrayindexrrrNcCsPt|d|_d|_d|_d|_|dk r0||_|dk r>||_|dk rL||_dS)z-IndexExpression - a model defined in OpenAPI.N) r__init___type_array_indexZ discriminatorrrr)selfrrrr X/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/index_expression.pyr.s zIndexExpression.__init__cCs|jS)zGet the type of this IndexExpression. Type of AST node :return: The type of this IndexExpression. :rtype: str r r r r rr>s zIndexExpression.typecCs ||_dS)zSet the type of this IndexExpression. Type of AST node :param type: The type of this IndexExpression. :type: str Nr)r rr r rrIs cCs|jS)zGet the array of this IndexExpression. :return: The array of this IndexExpression. :rtype: Expression r rr r rrTszIndexExpression.arraycCs ||_dS)zSet the array of this IndexExpression. :param array: The array of this IndexExpression. :type: Expression Nr)r rr r rr]scCs|jS)zGet the index of this IndexExpression. :return: The index of this IndexExpression. :rtype: Expression r rr r rrfszIndexExpression.indexcCs ||_dS)zSet the index of this IndexExpression. :param index: The index of this IndexExpression. :type: Expression Nr)r rr r rroscCsi}|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 rz)IndexExpression.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r rrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r rrxs"       zIndexExpression.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r rto_strszIndexExpression.to_strcCs|S)zFor `print` and `pprint`.)r(rr r r__repr__szIndexExpression.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r__eq__s zIndexExpression.__eq__cCs ||k S)z*Return true if both objects are not equal.r r+r r r__ne__szIndexExpression.__ne__)NNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr(r)r-r.r r r rrs6       r)r2r&reZ!influxdb_client.domain.expressionrrr r r rs