elabapi-python 0.1.6__tar.gz → 0.1.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/PKG-INFO +1 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/README.md +3 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/__init__.py +1 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/items_api.py +5 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/users_api.py +103 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api_client.py +1 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/configuration.py +1 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/__init__.py +1 -0
- elabapi-python-0.1.7/elabapi_python/models/users_id_body.py +84 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python.egg-info/PKG-INFO +1 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python.egg-info/SOURCES.txt +3 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/setup.py +1 -1
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_users_api.py +7 -0
- elabapi-python-0.1.7/test/test_users_id_body.py +39 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/__init__.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/api_keys_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/comments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/config_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/events_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/experiments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/experiments_templates_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/favorite_tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/items_types_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/links_to_experiments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/links_to_items_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/notifications_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/status_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/steps_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/team_tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/teamgroups_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/teams_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/todolist_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/unfinished_steps_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/uploads_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/apikey.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/apikeys_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/comment.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/config.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/entity.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/event.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/events_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/events_id_body1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/eventsid_delta.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiment.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiment_template.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_links_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_templates_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_templates_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/favtags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id2.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_comments_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_status_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_steps_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_tags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_teamgroups_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/id_uploads_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/inline_response200.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/inline_response2001.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/inline_response2002.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/inline_response2003.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/item.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_links_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_type.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_types_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/link.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/notification.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/status.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/step.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/steps_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/tag.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/tags_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/team.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/team_tags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/team_tags_body1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/team_tags_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/teamgroup.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/teamgroup_users.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/teamgroups_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/teams_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/todoitem.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/todolist_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/todolist_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/unfinished_step.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/unfinished_steps.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/upload.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/uploads_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/users.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/users_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/rest.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python.egg-info/dependency_links.txt +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python.egg-info/requires.txt +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python.egg-info/top_level.txt +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/setup.cfg +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/__init__.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_api_keys_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_apikey.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_apikeys_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_comment.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_comments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_config.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_config_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_entity.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_event.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_events_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_events_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_events_id_body1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_eventsid_delta.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiment.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiment_template.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_links_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_templates_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_templates_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_experiments_templates_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_favorite_tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_favtags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id2.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_comments_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_status_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_steps_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_tags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_teamgroups_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_id_uploads_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_inline_response200.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_inline_response2001.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_inline_response2002.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_inline_response2003.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_item.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_links_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_type.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_types_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_items_types_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_link.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_links_to_experiments_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_links_to_items_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_notification.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_notifications_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_status.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_status_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_step.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_steps_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_steps_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_tag.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_tags_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_team.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_team_tags_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_team_tags_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_team_tags_body1.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_team_tags_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teamgroup.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teamgroup_users.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teamgroups_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teamgroups_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teams_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_teams_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_todoitem.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_todolist_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_todolist_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_todolist_id_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_unfinished_step.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_unfinished_steps.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_unfinished_steps_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_upload.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_uploads_api.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_uploads_subid_body.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_users.py +0 -0
- {elabapi-python-0.1.6 → elabapi-python-0.1.7}/test/test_users_body.py +0 -0
|
@@ -4,7 +4,7 @@ This document describes all available endpoints and methods for eLabFTW's API ve
|
|
|
4
4
|
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
5
5
|
|
|
6
6
|
- API version: 2.0.0
|
|
7
|
-
- Package version: 0.1.
|
|
7
|
+
- Package version: 0.1.7
|
|
8
8
|
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
9
9
|
|
|
10
10
|
## Requirements.
|
|
@@ -195,6 +195,7 @@ Class | Method | HTTP request | Description
|
|
|
195
195
|
*UploadsApi* | [**post_upload_replace**](docs/UploadsApi.md#post_upload_replace) | **POST** /{entity_type}/{id}/uploads/{subid} | Replace an existing uploaded file. The existing file will be archived and the new one will be added.
|
|
196
196
|
*UploadsApi* | [**read_upload**](docs/UploadsApi.md#read_upload) | **GET** /{entity_type}/{id}/uploads/{subid} | Read an upload.
|
|
197
197
|
*UploadsApi* | [**read_uploads**](docs/UploadsApi.md#read_uploads) | **GET** /{entity_type}/{id}/uploads | Read attached files of that entity.
|
|
198
|
+
*UsersApi* | [**patch_user**](docs/UsersApi.md#patch_user) | **PATCH** /users/{id} | Modify a user.
|
|
198
199
|
*UsersApi* | [**post_user**](docs/UsersApi.md#post_user) | **POST** /users | Create a new user.
|
|
199
200
|
*UsersApi* | [**read_user**](docs/UsersApi.md#read_user) | **GET** /users/{id} | Read information of a user.
|
|
200
201
|
*UsersApi* | [**read_users**](docs/UsersApi.md#read_users) | **GET** /users | Read users from instance.
|
|
@@ -261,6 +262,7 @@ Class | Method | HTTP request | Description
|
|
|
261
262
|
- [UploadsSubidBody](docs/UploadsSubidBody.md)
|
|
262
263
|
- [Users](docs/Users.md)
|
|
263
264
|
- [UsersBody](docs/UsersBody.md)
|
|
265
|
+
- [UsersIdBody](docs/UsersIdBody.md)
|
|
264
266
|
|
|
265
267
|
## Documentation For Authorization
|
|
266
268
|
|
|
@@ -101,3 +101,4 @@ from elabapi_python.models.upload import Upload
|
|
|
101
101
|
from elabapi_python.models.uploads_subid_body import UploadsSubidBody
|
|
102
102
|
from elabapi_python.models.users import Users
|
|
103
103
|
from elabapi_python.models.users_body import UsersBody
|
|
104
|
+
from elabapi_python.models.users_id_body import UsersIdBody
|
|
@@ -137,6 +137,7 @@ class ItemsApi(object):
|
|
|
137
137
|
|
|
138
138
|
:param async_req bool
|
|
139
139
|
:param int id: ID of the item (required)
|
|
140
|
+
:param str format: Get the entity in a different format like csv, pdf, eln or zip. \"pdfa\" means archive pdf (PDF/A), same with \"zipa\".
|
|
140
141
|
:return: Item
|
|
141
142
|
If the method is called asynchronously,
|
|
142
143
|
returns the request thread.
|
|
@@ -158,12 +159,13 @@ class ItemsApi(object):
|
|
|
158
159
|
|
|
159
160
|
:param async_req bool
|
|
160
161
|
:param int id: ID of the item (required)
|
|
162
|
+
:param str format: Get the entity in a different format like csv, pdf, eln or zip. \"pdfa\" means archive pdf (PDF/A), same with \"zipa\".
|
|
161
163
|
:return: Item
|
|
162
164
|
If the method is called asynchronously,
|
|
163
165
|
returns the request thread.
|
|
164
166
|
"""
|
|
165
167
|
|
|
166
|
-
all_params = ['id'] # noqa: E501
|
|
168
|
+
all_params = ['id', 'format'] # noqa: E501
|
|
167
169
|
all_params.append('async_req')
|
|
168
170
|
all_params.append('_return_http_data_only')
|
|
169
171
|
all_params.append('_preload_content')
|
|
@@ -190,6 +192,8 @@ class ItemsApi(object):
|
|
|
190
192
|
path_params['id'] = params['id'] # noqa: E501
|
|
191
193
|
|
|
192
194
|
query_params = []
|
|
195
|
+
if 'format' in params:
|
|
196
|
+
query_params.append(('format', params['format'])) # noqa: E501
|
|
193
197
|
|
|
194
198
|
header_params = {}
|
|
195
199
|
|
|
@@ -32,6 +32,109 @@ class UsersApi(object):
|
|
|
32
32
|
api_client = ApiClient()
|
|
33
33
|
self.api_client = api_client
|
|
34
34
|
|
|
35
|
+
def patch_user(self, id, **kwargs): # noqa: E501
|
|
36
|
+
"""Modify a user. # noqa: E501
|
|
37
|
+
|
|
38
|
+
Note: it is possible to use \"me\" instead of the userid to access the user of the API key. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.patch_user(id, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param Id id: ID of the user or `me`. (required)
|
|
46
|
+
:param UsersIdBody body: Parameters for modifying a user.
|
|
47
|
+
:return: Users
|
|
48
|
+
If the method is called asynchronously,
|
|
49
|
+
returns the request thread.
|
|
50
|
+
"""
|
|
51
|
+
kwargs['_return_http_data_only'] = True
|
|
52
|
+
if kwargs.get('async_req'):
|
|
53
|
+
return self.patch_user_with_http_info(id, **kwargs) # noqa: E501
|
|
54
|
+
else:
|
|
55
|
+
(data) = self.patch_user_with_http_info(id, **kwargs) # noqa: E501
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
def patch_user_with_http_info(self, id, **kwargs): # noqa: E501
|
|
59
|
+
"""Modify a user. # noqa: E501
|
|
60
|
+
|
|
61
|
+
Note: it is possible to use \"me\" instead of the userid to access the user of the API key. # noqa: E501
|
|
62
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
63
|
+
asynchronous HTTP request, please pass async_req=True
|
|
64
|
+
>>> thread = api.patch_user_with_http_info(id, async_req=True)
|
|
65
|
+
>>> result = thread.get()
|
|
66
|
+
|
|
67
|
+
:param async_req bool
|
|
68
|
+
:param Id id: ID of the user or `me`. (required)
|
|
69
|
+
:param UsersIdBody body: Parameters for modifying a user.
|
|
70
|
+
:return: Users
|
|
71
|
+
If the method is called asynchronously,
|
|
72
|
+
returns the request thread.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
all_params = ['id', 'body'] # noqa: E501
|
|
76
|
+
all_params.append('async_req')
|
|
77
|
+
all_params.append('_return_http_data_only')
|
|
78
|
+
all_params.append('_preload_content')
|
|
79
|
+
all_params.append('_request_timeout')
|
|
80
|
+
|
|
81
|
+
params = locals()
|
|
82
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
83
|
+
if key not in all_params:
|
|
84
|
+
raise TypeError(
|
|
85
|
+
"Got an unexpected keyword argument '%s'"
|
|
86
|
+
" to method patch_user" % key
|
|
87
|
+
)
|
|
88
|
+
params[key] = val
|
|
89
|
+
del params['kwargs']
|
|
90
|
+
# verify the required parameter 'id' is set
|
|
91
|
+
if ('id' not in params or
|
|
92
|
+
params['id'] is None):
|
|
93
|
+
raise ValueError("Missing the required parameter `id` when calling `patch_user`") # noqa: E501
|
|
94
|
+
|
|
95
|
+
collection_formats = {}
|
|
96
|
+
|
|
97
|
+
path_params = {}
|
|
98
|
+
if 'id' in params:
|
|
99
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
100
|
+
|
|
101
|
+
query_params = []
|
|
102
|
+
|
|
103
|
+
header_params = {}
|
|
104
|
+
|
|
105
|
+
form_params = []
|
|
106
|
+
local_var_files = {}
|
|
107
|
+
|
|
108
|
+
body_params = None
|
|
109
|
+
if 'body' in params:
|
|
110
|
+
body_params = params['body']
|
|
111
|
+
# HTTP header `Accept`
|
|
112
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
113
|
+
['application/json']) # noqa: E501
|
|
114
|
+
|
|
115
|
+
# HTTP header `Content-Type`
|
|
116
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
117
|
+
['application/json']) # noqa: E501
|
|
118
|
+
|
|
119
|
+
# Authentication setting
|
|
120
|
+
auth_settings = ['token'] # noqa: E501
|
|
121
|
+
|
|
122
|
+
return self.api_client.call_api(
|
|
123
|
+
'/users/{id}', 'PATCH',
|
|
124
|
+
path_params,
|
|
125
|
+
query_params,
|
|
126
|
+
header_params,
|
|
127
|
+
body=body_params,
|
|
128
|
+
post_params=form_params,
|
|
129
|
+
files=local_var_files,
|
|
130
|
+
response_type='Users', # noqa: E501
|
|
131
|
+
auth_settings=auth_settings,
|
|
132
|
+
async_req=params.get('async_req'),
|
|
133
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
134
|
+
_preload_content=params.get('_preload_content', True),
|
|
135
|
+
_request_timeout=params.get('_request_timeout'),
|
|
136
|
+
collection_formats=collection_formats)
|
|
137
|
+
|
|
35
138
|
def post_user(self, **kwargs): # noqa: E501
|
|
36
139
|
"""Create a new user. # noqa: E501
|
|
37
140
|
|
|
@@ -72,7 +72,7 @@ class ApiClient(object):
|
|
|
72
72
|
self.default_headers[header_name] = header_value
|
|
73
73
|
self.cookie = cookie
|
|
74
74
|
# Set default User-Agent.
|
|
75
|
-
self.user_agent = 'Swagger-Codegen/0.1.
|
|
75
|
+
self.user_agent = 'Swagger-Codegen/0.1.7/python'
|
|
76
76
|
|
|
77
77
|
def __del__(self):
|
|
78
78
|
self.pool.close()
|
|
@@ -247,5 +247,5 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
247
247
|
"OS: {env}\n"\
|
|
248
248
|
"Python Version: {pyversion}\n"\
|
|
249
249
|
"Version of the API: 2.0.0\n"\
|
|
250
|
-
"SDK Package Version: 0.1.
|
|
250
|
+
"SDK Package Version: 0.1.7".\
|
|
251
251
|
format(env=sys.platform, pyversion=sys.version)
|
|
@@ -74,3 +74,4 @@ from elabapi_python.models.upload import Upload
|
|
|
74
74
|
from elabapi_python.models.uploads_subid_body import UploadsSubidBody
|
|
75
75
|
from elabapi_python.models.users import Users
|
|
76
76
|
from elabapi_python.models.users_body import UsersBody
|
|
77
|
+
from elabapi_python.models.users_id_body import UsersIdBody
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eLabFTW REST API v2 Documentation
|
|
5
|
+
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class UsersIdBody(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
attribute_map = {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def __init__(self): # noqa: E501
|
|
37
|
+
"""UsersIdBody - a model defined in Swagger""" # noqa: E501
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
def to_dict(self):
|
|
41
|
+
"""Returns the model properties as a dict"""
|
|
42
|
+
result = {}
|
|
43
|
+
|
|
44
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
45
|
+
value = getattr(self, attr)
|
|
46
|
+
if isinstance(value, list):
|
|
47
|
+
result[attr] = list(map(
|
|
48
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
49
|
+
value
|
|
50
|
+
))
|
|
51
|
+
elif hasattr(value, "to_dict"):
|
|
52
|
+
result[attr] = value.to_dict()
|
|
53
|
+
elif isinstance(value, dict):
|
|
54
|
+
result[attr] = dict(map(
|
|
55
|
+
lambda item: (item[0], item[1].to_dict())
|
|
56
|
+
if hasattr(item[1], "to_dict") else item,
|
|
57
|
+
value.items()
|
|
58
|
+
))
|
|
59
|
+
else:
|
|
60
|
+
result[attr] = value
|
|
61
|
+
if issubclass(UsersIdBody, dict):
|
|
62
|
+
for key, value in self.items():
|
|
63
|
+
result[key] = value
|
|
64
|
+
|
|
65
|
+
return result
|
|
66
|
+
|
|
67
|
+
def to_str(self):
|
|
68
|
+
"""Returns the string representation of the model"""
|
|
69
|
+
return pprint.pformat(self.to_dict())
|
|
70
|
+
|
|
71
|
+
def __repr__(self):
|
|
72
|
+
"""For `print` and `pprint`"""
|
|
73
|
+
return self.to_str()
|
|
74
|
+
|
|
75
|
+
def __eq__(self, other):
|
|
76
|
+
"""Returns true if both objects are equal"""
|
|
77
|
+
if not isinstance(other, UsersIdBody):
|
|
78
|
+
return False
|
|
79
|
+
|
|
80
|
+
return self.__dict__ == other.__dict__
|
|
81
|
+
|
|
82
|
+
def __ne__(self, other):
|
|
83
|
+
"""Returns true if both objects are not equal"""
|
|
84
|
+
return not self == other
|
|
@@ -93,6 +93,7 @@ elabapi_python/models/upload.py
|
|
|
93
93
|
elabapi_python/models/uploads_subid_body.py
|
|
94
94
|
elabapi_python/models/users.py
|
|
95
95
|
elabapi_python/models/users_body.py
|
|
96
|
+
elabapi_python/models/users_id_body.py
|
|
96
97
|
test/__init__.py
|
|
97
98
|
test/test_api_keys_api.py
|
|
98
99
|
test/test_apikey.py
|
|
@@ -175,4 +176,5 @@ test/test_uploads_api.py
|
|
|
175
176
|
test/test_uploads_subid_body.py
|
|
176
177
|
test/test_users.py
|
|
177
178
|
test/test_users_api.py
|
|
178
|
-
test/test_users_body.py
|
|
179
|
+
test/test_users_body.py
|
|
180
|
+
test/test_users_id_body.py
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
eLabFTW REST API v2 Documentation
|
|
5
|
+
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
import elabapi_python
|
|
18
|
+
from elabapi_python.models.users_id_body import UsersIdBody # noqa: E501
|
|
19
|
+
from elabapi_python.rest import ApiException
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TestUsersIdBody(unittest.TestCase):
|
|
23
|
+
"""UsersIdBody unit test stubs"""
|
|
24
|
+
|
|
25
|
+
def setUp(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def tearDown(self):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
def testUsersIdBody(self):
|
|
32
|
+
"""Test UsersIdBody"""
|
|
33
|
+
# FIXME: construct object with mandatory attributes with example values
|
|
34
|
+
# model = elabapi_python.models.users_id_body.UsersIdBody() # noqa: E501
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == '__main__':
|
|
39
|
+
unittest.main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/experiments_templates_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/api/links_to_experiments_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_links_subid_body.py
RENAMED
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_templates_body.py
RENAMED
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/experiments_templates_id_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/items_links_subid_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{elabapi-python-0.1.6 → elabapi-python-0.1.7}/elabapi_python/models/teamgroups_subid_body.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|