U viS@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@seZdZdZdddddZdddddZd"d d Zed d Zej dd ZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZ ddZddZddZd d!Zd S)#ConditionalExpressionzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strr)typetest alternate consequentrrrrNcCsdt|d|_d|_d|_d|_d|_|dk r6||_|dk rD||_|dk rR||_ |dk r`||_ dS)z3ConditionalExpression - a model defined in OpenAPI.N) r__init___type_test _alternate _consequentZ discriminatorrrrr)selfrrrrr^/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/conditional_expression.pyr 0s zConditionalExpression.__init__cCs|jS)zGet the type of this ConditionalExpression. Type of AST node :return: The type of this ConditionalExpression. :rtype: str r rrrrrCs zConditionalExpression.typecCs ||_dS)zSet the type of this ConditionalExpression. Type of AST node :param type: The type of this ConditionalExpression. :type: str Nr)rrrrrrNs cCs|jS)zGet the test of this ConditionalExpression. :return: The test of this ConditionalExpression. :rtype: Expression r rrrrrYszConditionalExpression.testcCs ||_dS)zSet the test of this ConditionalExpression. :param test: The test of this ConditionalExpression. :type: Expression Nr)rrrrrrbscCs|jS)zGet the alternate of this ConditionalExpression. :return: The alternate of this ConditionalExpression. :rtype: Expression r rrrrrkszConditionalExpression.alternatecCs ||_dS)zSet the alternate of this ConditionalExpression. :param alternate: The alternate of this ConditionalExpression. :type: Expression Nr)rrrrrrtscCs|jS)zGet the consequent of this ConditionalExpression. :return: The consequent of this ConditionalExpression. :rtype: Expression r rrrrr}sz ConditionalExpression.consequentcCs ||_dS)zSet the consequent of this ConditionalExpression. :param consequent: The consequent of this ConditionalExpression. :type: Expression Nr)rrrrrrscCsi}|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)xrrrz/ConditionalExpression.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zConditionalExpression.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszConditionalExpression.to_strcCs|S)zFor `print` and `pprint`.)r+rrrr__repr__szConditionalExpression.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r!r__dict__rotherrrr__eq__s zConditionalExpression.__eq__cCs ||k S)z*Return true if both objects are not equal.rr.rrr__ne__szConditionalExpression.__ne__)NNNN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrrrr+r,r0r1rrrrrsB         r)r5r)reZ!influxdb_client.domain.expressionrrrrrrs