U vi@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 d d ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZdS)DurationzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strint)type magnitudeunitrrrNcCsFd|_d|_d|_d|_|dk r&||_|dk r4||_|dk rB||_dS)z&Duration - a model defined in OpenAPI.N)_type _magnitude_unitZ discriminatorrrr)selfrrrr P/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/duration.py__init__,szDuration.__init__cCs|jS)zGet the type of this Duration. Type of AST node :return: The type of this Duration. :rtype: str rr r r r r:s z Duration.typecCs ||_dS)zSet the type of this Duration. Type of AST node :param type: The type of this Duration. :type: str Nr)r rr r r rEs cCs|jS)zrGet the magnitude of this Duration. :return: The magnitude of this Duration. :rtype: int r rr r r rPszDuration.magnitudecCs ||_dS)zzSet the magnitude of this Duration. :param magnitude: The magnitude of this Duration. :type: int Nr)r rr r r rYscCs|jS)zhGet the unit of this Duration. :return: The unit of this Duration. :rtype: str r rr r r rbsz Duration.unitcCs ||_dS)zkSet the unit of this Duration. :param unit: The unit of this Duration. :type: str 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"Duration.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r rts"       zDuration.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_strszDuration.to_strcCs|S)zFor `print` and `pprint`.)r(rr r r __repr__szDuration.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s zDuration.__eq__cCs ||k S)z*Return true if both objects are not equal.r r+r r r __ne__szDuration.__ne__)NNN)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr(r)r-r.r r r r rs6       r)r2r&reobjectrr r r r s