U wi} @ s( d Z ddlZddlZG dd deZdS )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 @ s e Zd ZdZddddZddddZdd d Zedd Zej d d Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zdd Zdd ZdS )UserzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. str)idnamestatusr r r Nactivec C s> d| _ d| _d| _d| _|dk r&|| _|| _|dk r:|| _dS )z"User - a model defined in OpenAPI.N)_id_name_statusZ discriminatorr r r )selfr r r r L/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/user.py__init__, s z User.__init__c C s | j S )zrGet the id of this User. The user ID. :return: The id of this User. :rtype: str r r r r r r 9 s zUser.idc C s || _ dS )zsSet the id of this User. The user ID. :param id: The id of this User. :type: str Nr )r r r r r r D s c C s | j S )zxGet the name of this User. The user name. :return: The name of this User. :rtype: str )r r r r r r O s z User.namec C s |dkrt d|| _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 r r r r r Z s c C s | j S )zGet the status of this User. If `inactive`, the user is inactive. Default is `active`. :return: The status of this User. :rtype: str r r r r r r g s zUser.statusc C s || _ 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 r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<