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 d d ZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZddZdS)UserzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. str)idnamestatusrrrNactivecCs>d|_d|_d|_d|_|dk r&||_||_|dk r:||_dS)z"User - a model defined in OpenAPI.N)_id_name_statusZ discriminatorrrr)selfrrrr L/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/user.py__init__,sz User.__init__cCs|jS)zrGet the id of this User. The user ID. :return: The id of this User. :rtype: str rr r r r r9s zUser.idcCs ||_dS)zsSet the id of this User. The user ID. :param id: The id of this User. :type: str Nr)r rr r r rDs cCs|jS)zxGet the name of this User. The user name. :return: The name of this User. :rtype: str )r rr r r rOs z User.namecCs|dkrtd||_dS)z{Set the name of this User. The user name. :param name: The name of this User. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr )r rr r r rZs cCs|jS)zGet the status of this User. If `inactive`, the user is inactive. Default is `active`. :return: The status of this User. :rtype: str r rr r r rgs z User.statuscCs ||_dS)zSet the status of this User. If `inactive`, the user is inactive. Default is `active`. :param status: The status of this User. :type: str Nr)r rr r r rrs 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 zUser.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemr r r rs ) openapi_typesitemsgetattr isinstancelistmaprrdict)r resultattr_valuer r r r}s"       z User.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrr r r to_strsz User.to_strcCs|S)zFor `print` and `pprint`.)r(rr r r __repr__sz User.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)rr__dict__r otherr r r __eq__s z User.__eq__cCs ||k S)z*Return true if both objects are not equal.r r+r r r __ne__sz User.__ne__)NNr)__name__ __module__ __qualname____doc__rZ attribute_maprpropertyrsetterrrrr(r)r-r.r r r r rs6       r)r2r&reobjectrr r r r s