U wi,@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@seZdZdZddddZddddZdd d Zed d Zej dd ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZd S) ModelPropertyzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strZ PropertyKey Expression)typekeyvaluerrrNcCsFd|_d|_d|_d|_|dk r&||_|dk r4||_|dk rB||_dS)z+ModelProperty - a model defined in OpenAPI.N)_type_key_valueZ discriminatorrrr)selfrrrr V/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/model_property.py__init__,szModelProperty.__init__cCs|jS)zGet the type of this ModelProperty. Type of AST node :return: The type of this ModelProperty. :rtype: str rr r r r r:s zModelProperty.typecCs ||_dS)zSet the type of this ModelProperty. Type of AST node :param type: The type of this ModelProperty. :type: str Nr)r rr r r rEs cCs|jS)zxGet the key of this ModelProperty. :return: The key of this ModelProperty. :rtype: PropertyKey r rr r r rPszModelProperty.keycCs ||_dS)zzSet the key of this ModelProperty. :param key: The key of this ModelProperty. :type: PropertyKey Nr)r rr r r rYscCs|jS)z{Get the value of this ModelProperty. :return: The value of this ModelProperty. :rtype: Expression r rr r r rbszModelProperty.valuecCs ||_dS)zSet the value of this ModelProperty. :param value: The value of this ModelProperty. :type: Expression Nr)r rr r r rkscCsi}|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 |z'ModelProperty.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_rr r r rts"       zModelProperty.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_strszModelProperty.to_strcCs|S)zFor `print` and `pprint`.)r'rr r r __repr__szModelProperty.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zModelProperty.__eq__cCs ||k S)z*Return true if both objects are not equal.r r*r r r __ne__szModelProperty.__ne__)NNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr'r(r,r-r r r r rs6       r)r1r%reobjectrr r r r s