U viE@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@seZdZdZdddZdddZddd Zed d Zej d d Zed dZ e j ddZ ddZ ddZ ddZ ddZddZdS) DecimalPlaceszNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. boolint) is_enforceddigitsZ isEnforcedrNcCs2d|_d|_d|_|dk r ||_|dk r.||_dS)z+DecimalPlaces - a model defined in OpenAPI.N) _is_enforced_digitsZ discriminatorrr)selfrrr V/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/decimal_places.py__init__*szDecimalPlaces.__init__cCs|jS)zGet the is_enforced of this DecimalPlaces. Indicates whether decimal point setting should be enforced :return: The is_enforced of this DecimalPlaces. :rtype: bool rr r r r r5s zDecimalPlaces.is_enforcedcCs ||_dS)zSet the is_enforced of this DecimalPlaces. Indicates whether decimal point setting should be enforced :param is_enforced: The is_enforced of this DecimalPlaces. :type: bool Nr )r rr r r r@s cCs|jS)zGet the digits of this DecimalPlaces. The number of digits after decimal to display :return: The digits of this DecimalPlaces. :rtype: int rrr r r rKs zDecimalPlaces.digitscCs ||_dS)zSet the digits of this DecimalPlaces. The number of digits after decimal to display :param digits: The digits of this DecimalPlaces. :type: int Nr)r rr r r rVs 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 iz'DecimalPlaces.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rps ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r ras"       zDecimalPlaces.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_stryszDecimalPlaces.to_strcCs|S)zFor `print` and `pprint`.)r%rr r r __repr__}szDecimalPlaces.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zDecimalPlaces.__eq__cCs ||k S)z*Return true if both objects are not equal.r r(r r r __ne__szDecimalPlaces.__ne__)NN)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrr%r&r*r+r r r r rs*     r)r/r#reobjectrr r r r s