U wâ’iÉã@s(dZddlZddlZGdd„deƒZdS)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ŠeZdZdZdddœZdddœZddd „Zed d „ƒZej d d „ƒZed d„ƒZ e j dd„ƒZ dd„Z dd„Z dd„Z dd„Zdd„ZdS)Ú Permissionz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚstrZPermissionResource)ÚactionÚresourcerrNcCs"d|_d|_d|_||_||_dS)z(Permission - a model defined in OpenAPI.N)Ú_actionÚ _resourceZ discriminatorrr)Úselfrr©r úR/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/permission.pyÚ__init__*s zPermission.__init__cCs|jS)zpGet the action of this Permission. :return: The action of this Permission. :rtype: str )r©rr r r r3szPermission.actioncCs|dkrtdƒ‚||_dS)zuSet the action of this Permission. :param action: The action of this Permission. :type: str Nz.Invalid value for `action`, must not be `None`)Ú ValueErrorr)rrr r r r<scCs|jS)zƒGet the resource of this Permission. :return: The resource of this Permission. :rtype: PermissionResource )rr r r r rGszPermission.resourcecCs|dkrtdƒ‚||_dS)zŠSet the resource of this Permission. :param resource: The resource of this Permission. :type: PermissionResource Nz0Invalid value for `resource`, must not be `None`)r r)rrr r r rPscCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr)Úxr r r Úcóz$Permission.to_dict..rcSs&t|ddƒr"|d|d ¡fS|S)Nérrr)Úitemr r r rjs ÿ) Ú openapi_typesÚitemsÚgetattrÚ isinstanceÚlistÚmaprrÚdict)rÚresultÚattrÚ_Úvaluer r r r[s"  þ   ý  zPermission.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatrr r r r Úto_strsszPermission.to_strcCs| ¡S)zFor `print` and `pprint`.)r#r r r r Ú__repr__wszPermission.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)rrÚ__dict__©rÚotherr r r Ú__eq__{s zPermission.__eq__cCs ||k S)z*Return true if both objects are not equal.r r&r r r Ú__ne__‚szPermission.__ne__)NN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rZ attribute_mapr ÚpropertyrÚsetterrrr#r$r(r)r r r r rs*þþ     r)r-r!ÚreÚobjectrr r r r Ús