elabapi-python 5.3.1__tar.gz → 5.3.2__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-5.3.1 → elabapi_python-5.3.2}/PKG-INFO +1 -1
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/README.md +5 -1
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/__init__.py +2 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/__init__.py +1 -0
- elabapi_python-5.3.2/elabapi_python/api/links_to_compounds_api.py +354 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api_client.py +1 -1
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/configuration.py +1 -1
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/__init__.py +1 -0
- elabapi_python-5.3.2/elabapi_python/models/compounds_subid_body.py +118 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python.egg-info/PKG-INFO +1 -1
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python.egg-info/SOURCES.txt +4 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/setup.py +1 -1
- elabapi_python-5.3.2/test/test_compounds_subid_body.py +39 -0
- elabapi_python-5.3.2/test/test_links_to_compounds_api.py +54 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/api_keys_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/comments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/compounds_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/config_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/events_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/experiments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/experiments_categories_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/experiments_status_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/experiments_templates_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/exports_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/extra_fields_keys_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/favorite_tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/idps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/import_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/info_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/items_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/items_types__resources_templates_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/links_to_experiments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/links_to_items_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/notifications_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/reports_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/resources_categories_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/resources_status_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/revisions_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/steps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/team_tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/teamgroups_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/teams_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/todolist_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/unfinished_steps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/uploads_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/user_uploads_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/api/users_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/any_ofuploads_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/apikey.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/apikeys_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/comment.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/compound.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/compound_create_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/compound_duplicate_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/compounds_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/config.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/entity.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/entity_editable.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/entity_template.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/entity_template_editable.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/event.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/event_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/eventid_delta.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/events_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/exclusive_edit_mode.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiment.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_links_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_templates_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/experiments_templates_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/export.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/exports_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/extra_fields_keys.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/favtags_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id2.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id3.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id4.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_comments_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_experiments_categories_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_experiments_status_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_items_status_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_resources_categories_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_steps_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_tags_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_tags_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_teamgroups_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/id_uploads_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/idp.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/idps_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/idps_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/import_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response200.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2001.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2002.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2003.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2003_query_parameters.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2004.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2005.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2006.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/inline_response2007.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/item.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/items_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/items_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/items_links_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/items_types_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/items_types_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/link.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/metadata.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/metadata_elabftw.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/metadata_elabftw_extra_fields_groups.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/metadata_extra_fields.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/notification.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/one_of_compound_duplicate_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/revision.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/revisions_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/statuslike.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/step.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/steps_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/tag.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/tags_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/tags_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/team.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/teamgroup.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/teamgroup_users.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/teamgroups_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/teams_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/teams_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/todoitem.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/todolist_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/todolist_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/unfinished_step.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/unfinished_steps.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/upload.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/uploads_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/uploads_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/users.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/users_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/users_full.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/users_full_teams.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/models/users_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python/rest.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python.egg-info/dependency_links.txt +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python.egg-info/requires.txt +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/elabapi_python.egg-info/top_level.txt +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/setup.cfg +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/__init__.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_any_ofuploads_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_api_keys_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_apikey.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_apikeys_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_comment.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_comments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_compound.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_compound_create_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_compound_duplicate_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_compounds_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_compounds_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_config.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_config_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_entity.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_entity_editable.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_entity_template.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_entity_template_editable.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_event.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_event_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_eventid_delta.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_events_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_events_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_exclusive_edit_mode.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiment.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_categories_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_links_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_status_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_templates_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_templates_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_experiments_templates_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_export.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_exports_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_exports_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_extra_fields_keys.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_extra_fields_keys_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_favorite_tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_favtags_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id2.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id3.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id4.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_comments_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_experiments_categories_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_experiments_status_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_items_status_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_resources_categories_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_steps_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_tags_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_tags_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_teamgroups_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_id_uploads_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_idp.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_idps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_idps_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_idps_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_import_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_import_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_info_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response200.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2001.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2002.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2003.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2003_query_parameters.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2004.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2005.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2006.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_inline_response2007.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_item.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_links_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_types__resources_templates_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_types_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_items_types_id_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_link.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_links_to_experiments_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_links_to_items_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_metadata.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_metadata_elabftw.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_metadata_elabftw_extra_fields_groups.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_metadata_extra_fields.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_notification.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_notifications_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_one_of_compound_duplicate_request.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_reports_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_resources_categories_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_resources_status_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_revision.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_revisions_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_revisions_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_statuslike.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_step.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_steps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_steps_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_tag.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_tags_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_tags_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_team.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_team_tags_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teamgroup.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teamgroup_users.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teamgroups_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teamgroups_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teams_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teams_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_teams_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_todoitem.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_todolist_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_todolist_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_todolist_id_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_unfinished_step.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_unfinished_steps.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_unfinished_steps_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_upload.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_uploads_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_uploads_subid_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_uploads_subid_body1.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_user_uploads_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users_api.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users_body.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users_full.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users_full_teams.py +0 -0
- {elabapi_python-5.3.1 → elabapi_python-5.3.2}/test/test_users_id_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: 5.3.
|
|
7
|
+
- Package version: 5.3.2
|
|
8
8
|
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
9
9
|
|
|
10
10
|
## Requirements.
|
|
@@ -176,6 +176,9 @@ Class | Method | HTTP request | Description
|
|
|
176
176
|
*ItemsTypesResourcesTemplatesApi* | [**post_items_types**](docs/ItemsTypesResourcesTemplatesApi.md#post_items_types) | **POST** /items_types | Create a resource template
|
|
177
177
|
*ItemsTypesResourcesTemplatesApi* | [**post_items_types_by_id**](docs/ItemsTypesResourcesTemplatesApi.md#post_items_types_by_id) | **POST** /items_types/{id} | Duplicate a resource template with its ID
|
|
178
178
|
*ItemsTypesResourcesTemplatesApi* | [**read_items_types**](docs/ItemsTypesResourcesTemplatesApi.md#read_items_types) | **GET** /items_types | Read all resources templates that are accessible
|
|
179
|
+
*LinksToCompoundsApi* | [**delete_entity_compounds_link**](docs/LinksToCompoundsApi.md#delete_entity_compounds_link) | **DELETE** /{entity_type}/{id}/compounds/{subid} | Delete a compound link.
|
|
180
|
+
*LinksToCompoundsApi* | [**post_entity_compounds_links**](docs/LinksToCompoundsApi.md#post_entity_compounds_links) | **POST** /{entity_type}/{id}/compounds/{subid} | Link an entity to a compound.
|
|
181
|
+
*LinksToCompoundsApi* | [**read_entity_compounds_links**](docs/LinksToCompoundsApi.md#read_entity_compounds_links) | **GET** /{entity_type}/{id}/compounds | Read all compounds links of that entity.
|
|
179
182
|
*LinksToExperimentsApi* | [**delete_entity_experiments_link**](docs/LinksToExperimentsApi.md#delete_entity_experiments_link) | **DELETE** /{entity_type}/{id}/experiments_links/{subid} | Delete an experiment link.
|
|
180
183
|
*LinksToExperimentsApi* | [**post_entity_experiments_links**](docs/LinksToExperimentsApi.md#post_entity_experiments_links) | **POST** /{entity_type}/{id}/experiments_links/{subid} | Create or import a link.
|
|
181
184
|
*LinksToExperimentsApi* | [**read_entity_experiments_links**](docs/LinksToExperimentsApi.md#read_entity_experiments_links) | **GET** /{entity_type}/{id}/experiments_links | Read all experiments links of that entity.
|
|
@@ -251,6 +254,7 @@ Class | Method | HTTP request | Description
|
|
|
251
254
|
- [CompoundCreateRequest](docs/CompoundCreateRequest.md)
|
|
252
255
|
- [CompoundDuplicateRequest](docs/CompoundDuplicateRequest.md)
|
|
253
256
|
- [CompoundsBody](docs/CompoundsBody.md)
|
|
257
|
+
- [CompoundsSubidBody](docs/CompoundsSubidBody.md)
|
|
254
258
|
- [Config](docs/Config.md)
|
|
255
259
|
- [Entity](docs/Entity.md)
|
|
256
260
|
- [EntityEditable](docs/EntityEditable.md)
|
|
@@ -32,6 +32,7 @@ from elabapi_python.api.import_api import ImportApi
|
|
|
32
32
|
from elabapi_python.api.info_api import InfoApi
|
|
33
33
|
from elabapi_python.api.items_api import ItemsApi
|
|
34
34
|
from elabapi_python.api.items_types__resources_templates_api import ItemsTypesResourcesTemplatesApi
|
|
35
|
+
from elabapi_python.api.links_to_compounds_api import LinksToCompoundsApi
|
|
35
36
|
from elabapi_python.api.links_to_experiments_api import LinksToExperimentsApi
|
|
36
37
|
from elabapi_python.api.links_to_items_api import LinksToItemsApi
|
|
37
38
|
from elabapi_python.api.notifications_api import NotificationsApi
|
|
@@ -61,6 +62,7 @@ from elabapi_python.models.compound import Compound
|
|
|
61
62
|
from elabapi_python.models.compound_create_request import CompoundCreateRequest
|
|
62
63
|
from elabapi_python.models.compound_duplicate_request import CompoundDuplicateRequest
|
|
63
64
|
from elabapi_python.models.compounds_body import CompoundsBody
|
|
65
|
+
from elabapi_python.models.compounds_subid_body import CompoundsSubidBody
|
|
64
66
|
from elabapi_python.models.config import Config
|
|
65
67
|
from elabapi_python.models.entity import Entity
|
|
66
68
|
from elabapi_python.models.entity_editable import EntityEditable
|
|
@@ -20,6 +20,7 @@ from elabapi_python.api.import_api import ImportApi
|
|
|
20
20
|
from elabapi_python.api.info_api import InfoApi
|
|
21
21
|
from elabapi_python.api.items_api import ItemsApi
|
|
22
22
|
from elabapi_python.api.items_types__resources_templates_api import ItemsTypesResourcesTemplatesApi
|
|
23
|
+
from elabapi_python.api.links_to_compounds_api import LinksToCompoundsApi
|
|
23
24
|
from elabapi_python.api.links_to_experiments_api import LinksToExperimentsApi
|
|
24
25
|
from elabapi_python.api.links_to_items_api import LinksToItemsApi
|
|
25
26
|
from elabapi_python.api.notifications_api import NotificationsApi
|
|
@@ -0,0 +1,354 @@
|
|
|
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 re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from elabapi_python.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class LinksToCompoundsApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def delete_entity_compounds_link(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
36
|
+
"""Delete a compound link. # noqa: E501
|
|
37
|
+
|
|
38
|
+
The link gets deleted. # 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.delete_entity_compounds_link(entity_type, id, subid, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param str entity_type: Entity type (required)
|
|
46
|
+
:param int id: ID of the entity (required)
|
|
47
|
+
:param int subid: ID of the compound linked (required)
|
|
48
|
+
:return: None
|
|
49
|
+
If the method is called asynchronously,
|
|
50
|
+
returns the request thread.
|
|
51
|
+
"""
|
|
52
|
+
kwargs['_return_http_data_only'] = True
|
|
53
|
+
if kwargs.get('async_req'):
|
|
54
|
+
return self.delete_entity_compounds_link_with_http_info(entity_type, id, subid, **kwargs) # noqa: E501
|
|
55
|
+
else:
|
|
56
|
+
(data) = self.delete_entity_compounds_link_with_http_info(entity_type, id, subid, **kwargs) # noqa: E501
|
|
57
|
+
return data
|
|
58
|
+
|
|
59
|
+
def delete_entity_compounds_link_with_http_info(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
60
|
+
"""Delete a compound link. # noqa: E501
|
|
61
|
+
|
|
62
|
+
The link gets deleted. # noqa: E501
|
|
63
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
64
|
+
asynchronous HTTP request, please pass async_req=True
|
|
65
|
+
>>> thread = api.delete_entity_compounds_link_with_http_info(entity_type, id, subid, async_req=True)
|
|
66
|
+
>>> result = thread.get()
|
|
67
|
+
|
|
68
|
+
:param async_req bool
|
|
69
|
+
:param str entity_type: Entity type (required)
|
|
70
|
+
:param int id: ID of the entity (required)
|
|
71
|
+
:param int subid: ID of the compound linked (required)
|
|
72
|
+
:return: None
|
|
73
|
+
If the method is called asynchronously,
|
|
74
|
+
returns the request thread.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
all_params = ['entity_type', 'id', 'subid'] # noqa: E501
|
|
78
|
+
all_params.append('async_req')
|
|
79
|
+
all_params.append('_return_http_data_only')
|
|
80
|
+
all_params.append('_preload_content')
|
|
81
|
+
all_params.append('_request_timeout')
|
|
82
|
+
|
|
83
|
+
params = locals()
|
|
84
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
85
|
+
if key not in all_params:
|
|
86
|
+
raise TypeError(
|
|
87
|
+
"Got an unexpected keyword argument '%s'"
|
|
88
|
+
" to method delete_entity_compounds_link" % key
|
|
89
|
+
)
|
|
90
|
+
params[key] = val
|
|
91
|
+
del params['kwargs']
|
|
92
|
+
# verify the required parameter 'entity_type' is set
|
|
93
|
+
if ('entity_type' not in params or
|
|
94
|
+
params['entity_type'] is None):
|
|
95
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `delete_entity_compounds_link`") # noqa: E501
|
|
96
|
+
# verify the required parameter 'id' is set
|
|
97
|
+
if ('id' not in params or
|
|
98
|
+
params['id'] is None):
|
|
99
|
+
raise ValueError("Missing the required parameter `id` when calling `delete_entity_compounds_link`") # noqa: E501
|
|
100
|
+
# verify the required parameter 'subid' is set
|
|
101
|
+
if ('subid' not in params or
|
|
102
|
+
params['subid'] is None):
|
|
103
|
+
raise ValueError("Missing the required parameter `subid` when calling `delete_entity_compounds_link`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
collection_formats = {}
|
|
106
|
+
|
|
107
|
+
path_params = {}
|
|
108
|
+
if 'entity_type' in params:
|
|
109
|
+
path_params['entity_type'] = params['entity_type'] # noqa: E501
|
|
110
|
+
if 'id' in params:
|
|
111
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
112
|
+
if 'subid' in params:
|
|
113
|
+
path_params['subid'] = params['subid'] # noqa: E501
|
|
114
|
+
|
|
115
|
+
query_params = []
|
|
116
|
+
|
|
117
|
+
header_params = {}
|
|
118
|
+
|
|
119
|
+
form_params = []
|
|
120
|
+
local_var_files = {}
|
|
121
|
+
|
|
122
|
+
body_params = None
|
|
123
|
+
# Authentication setting
|
|
124
|
+
auth_settings = ['token'] # noqa: E501
|
|
125
|
+
|
|
126
|
+
return self.api_client.call_api(
|
|
127
|
+
'/{entity_type}/{id}/compounds/{subid}', 'DELETE',
|
|
128
|
+
path_params,
|
|
129
|
+
query_params,
|
|
130
|
+
header_params,
|
|
131
|
+
body=body_params,
|
|
132
|
+
post_params=form_params,
|
|
133
|
+
files=local_var_files,
|
|
134
|
+
response_type=None, # noqa: E501
|
|
135
|
+
auth_settings=auth_settings,
|
|
136
|
+
async_req=params.get('async_req'),
|
|
137
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
138
|
+
_preload_content=params.get('_preload_content', True),
|
|
139
|
+
_request_timeout=params.get('_request_timeout'),
|
|
140
|
+
collection_formats=collection_formats)
|
|
141
|
+
|
|
142
|
+
def post_entity_compounds_links(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
143
|
+
"""Link an entity to a compound. # noqa: E501
|
|
144
|
+
|
|
145
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
146
|
+
asynchronous HTTP request, please pass async_req=True
|
|
147
|
+
>>> thread = api.post_entity_compounds_links(entity_type, id, subid, async_req=True)
|
|
148
|
+
>>> result = thread.get()
|
|
149
|
+
|
|
150
|
+
:param async_req bool
|
|
151
|
+
:param str entity_type: Entity type (required)
|
|
152
|
+
:param int id: ID of the entity (required)
|
|
153
|
+
:param int subid: ID of the compound linked (required)
|
|
154
|
+
:param CompoundsSubidBody body: Parameters for creating a link.
|
|
155
|
+
:return: None
|
|
156
|
+
If the method is called asynchronously,
|
|
157
|
+
returns the request thread.
|
|
158
|
+
"""
|
|
159
|
+
kwargs['_return_http_data_only'] = True
|
|
160
|
+
if kwargs.get('async_req'):
|
|
161
|
+
return self.post_entity_compounds_links_with_http_info(entity_type, id, subid, **kwargs) # noqa: E501
|
|
162
|
+
else:
|
|
163
|
+
(data) = self.post_entity_compounds_links_with_http_info(entity_type, id, subid, **kwargs) # noqa: E501
|
|
164
|
+
return data
|
|
165
|
+
|
|
166
|
+
def post_entity_compounds_links_with_http_info(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
167
|
+
"""Link an entity to a compound. # noqa: E501
|
|
168
|
+
|
|
169
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
170
|
+
asynchronous HTTP request, please pass async_req=True
|
|
171
|
+
>>> thread = api.post_entity_compounds_links_with_http_info(entity_type, id, subid, async_req=True)
|
|
172
|
+
>>> result = thread.get()
|
|
173
|
+
|
|
174
|
+
:param async_req bool
|
|
175
|
+
:param str entity_type: Entity type (required)
|
|
176
|
+
:param int id: ID of the entity (required)
|
|
177
|
+
:param int subid: ID of the compound linked (required)
|
|
178
|
+
:param CompoundsSubidBody body: Parameters for creating a link.
|
|
179
|
+
:return: None
|
|
180
|
+
If the method is called asynchronously,
|
|
181
|
+
returns the request thread.
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
all_params = ['entity_type', 'id', 'subid', 'body'] # noqa: E501
|
|
185
|
+
all_params.append('async_req')
|
|
186
|
+
all_params.append('_return_http_data_only')
|
|
187
|
+
all_params.append('_preload_content')
|
|
188
|
+
all_params.append('_request_timeout')
|
|
189
|
+
|
|
190
|
+
params = locals()
|
|
191
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
192
|
+
if key not in all_params:
|
|
193
|
+
raise TypeError(
|
|
194
|
+
"Got an unexpected keyword argument '%s'"
|
|
195
|
+
" to method post_entity_compounds_links" % key
|
|
196
|
+
)
|
|
197
|
+
params[key] = val
|
|
198
|
+
del params['kwargs']
|
|
199
|
+
# verify the required parameter 'entity_type' is set
|
|
200
|
+
if ('entity_type' not in params or
|
|
201
|
+
params['entity_type'] is None):
|
|
202
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `post_entity_compounds_links`") # noqa: E501
|
|
203
|
+
# verify the required parameter 'id' is set
|
|
204
|
+
if ('id' not in params or
|
|
205
|
+
params['id'] is None):
|
|
206
|
+
raise ValueError("Missing the required parameter `id` when calling `post_entity_compounds_links`") # noqa: E501
|
|
207
|
+
# verify the required parameter 'subid' is set
|
|
208
|
+
if ('subid' not in params or
|
|
209
|
+
params['subid'] is None):
|
|
210
|
+
raise ValueError("Missing the required parameter `subid` when calling `post_entity_compounds_links`") # noqa: E501
|
|
211
|
+
|
|
212
|
+
collection_formats = {}
|
|
213
|
+
|
|
214
|
+
path_params = {}
|
|
215
|
+
if 'entity_type' in params:
|
|
216
|
+
path_params['entity_type'] = params['entity_type'] # noqa: E501
|
|
217
|
+
if 'id' in params:
|
|
218
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
219
|
+
if 'subid' in params:
|
|
220
|
+
path_params['subid'] = params['subid'] # noqa: E501
|
|
221
|
+
|
|
222
|
+
query_params = []
|
|
223
|
+
|
|
224
|
+
header_params = {}
|
|
225
|
+
|
|
226
|
+
form_params = []
|
|
227
|
+
local_var_files = {}
|
|
228
|
+
|
|
229
|
+
body_params = None
|
|
230
|
+
if 'body' in params:
|
|
231
|
+
body_params = params['body']
|
|
232
|
+
# HTTP header `Content-Type`
|
|
233
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
234
|
+
['application/json']) # noqa: E501
|
|
235
|
+
|
|
236
|
+
# Authentication setting
|
|
237
|
+
auth_settings = ['token'] # noqa: E501
|
|
238
|
+
|
|
239
|
+
return self.api_client.call_api(
|
|
240
|
+
'/{entity_type}/{id}/compounds/{subid}', 'POST',
|
|
241
|
+
path_params,
|
|
242
|
+
query_params,
|
|
243
|
+
header_params,
|
|
244
|
+
body=body_params,
|
|
245
|
+
post_params=form_params,
|
|
246
|
+
files=local_var_files,
|
|
247
|
+
response_type=None, # noqa: E501
|
|
248
|
+
auth_settings=auth_settings,
|
|
249
|
+
async_req=params.get('async_req'),
|
|
250
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
251
|
+
_preload_content=params.get('_preload_content', True),
|
|
252
|
+
_request_timeout=params.get('_request_timeout'),
|
|
253
|
+
collection_formats=collection_formats)
|
|
254
|
+
|
|
255
|
+
def read_entity_compounds_links(self, entity_type, id, **kwargs): # noqa: E501
|
|
256
|
+
"""Read all compounds links of that entity. # noqa: E501
|
|
257
|
+
|
|
258
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
259
|
+
asynchronous HTTP request, please pass async_req=True
|
|
260
|
+
>>> thread = api.read_entity_compounds_links(entity_type, id, async_req=True)
|
|
261
|
+
>>> result = thread.get()
|
|
262
|
+
|
|
263
|
+
:param async_req bool
|
|
264
|
+
:param str entity_type: Entity type (required)
|
|
265
|
+
:param int id: ID of the entity (required)
|
|
266
|
+
:return: list[Link]
|
|
267
|
+
If the method is called asynchronously,
|
|
268
|
+
returns the request thread.
|
|
269
|
+
"""
|
|
270
|
+
kwargs['_return_http_data_only'] = True
|
|
271
|
+
if kwargs.get('async_req'):
|
|
272
|
+
return self.read_entity_compounds_links_with_http_info(entity_type, id, **kwargs) # noqa: E501
|
|
273
|
+
else:
|
|
274
|
+
(data) = self.read_entity_compounds_links_with_http_info(entity_type, id, **kwargs) # noqa: E501
|
|
275
|
+
return data
|
|
276
|
+
|
|
277
|
+
def read_entity_compounds_links_with_http_info(self, entity_type, id, **kwargs): # noqa: E501
|
|
278
|
+
"""Read all compounds links of that entity. # noqa: E501
|
|
279
|
+
|
|
280
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
281
|
+
asynchronous HTTP request, please pass async_req=True
|
|
282
|
+
>>> thread = api.read_entity_compounds_links_with_http_info(entity_type, id, async_req=True)
|
|
283
|
+
>>> result = thread.get()
|
|
284
|
+
|
|
285
|
+
:param async_req bool
|
|
286
|
+
:param str entity_type: Entity type (required)
|
|
287
|
+
:param int id: ID of the entity (required)
|
|
288
|
+
:return: list[Link]
|
|
289
|
+
If the method is called asynchronously,
|
|
290
|
+
returns the request thread.
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
all_params = ['entity_type', 'id'] # noqa: E501
|
|
294
|
+
all_params.append('async_req')
|
|
295
|
+
all_params.append('_return_http_data_only')
|
|
296
|
+
all_params.append('_preload_content')
|
|
297
|
+
all_params.append('_request_timeout')
|
|
298
|
+
|
|
299
|
+
params = locals()
|
|
300
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
301
|
+
if key not in all_params:
|
|
302
|
+
raise TypeError(
|
|
303
|
+
"Got an unexpected keyword argument '%s'"
|
|
304
|
+
" to method read_entity_compounds_links" % key
|
|
305
|
+
)
|
|
306
|
+
params[key] = val
|
|
307
|
+
del params['kwargs']
|
|
308
|
+
# verify the required parameter 'entity_type' is set
|
|
309
|
+
if ('entity_type' not in params or
|
|
310
|
+
params['entity_type'] is None):
|
|
311
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `read_entity_compounds_links`") # noqa: E501
|
|
312
|
+
# verify the required parameter 'id' is set
|
|
313
|
+
if ('id' not in params or
|
|
314
|
+
params['id'] is None):
|
|
315
|
+
raise ValueError("Missing the required parameter `id` when calling `read_entity_compounds_links`") # noqa: E501
|
|
316
|
+
|
|
317
|
+
collection_formats = {}
|
|
318
|
+
|
|
319
|
+
path_params = {}
|
|
320
|
+
if 'entity_type' in params:
|
|
321
|
+
path_params['entity_type'] = params['entity_type'] # noqa: E501
|
|
322
|
+
if 'id' in params:
|
|
323
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
324
|
+
|
|
325
|
+
query_params = []
|
|
326
|
+
|
|
327
|
+
header_params = {}
|
|
328
|
+
|
|
329
|
+
form_params = []
|
|
330
|
+
local_var_files = {}
|
|
331
|
+
|
|
332
|
+
body_params = None
|
|
333
|
+
# HTTP header `Accept`
|
|
334
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
335
|
+
['application/json']) # noqa: E501
|
|
336
|
+
|
|
337
|
+
# Authentication setting
|
|
338
|
+
auth_settings = ['token'] # noqa: E501
|
|
339
|
+
|
|
340
|
+
return self.api_client.call_api(
|
|
341
|
+
'/{entity_type}/{id}/compounds', 'GET',
|
|
342
|
+
path_params,
|
|
343
|
+
query_params,
|
|
344
|
+
header_params,
|
|
345
|
+
body=body_params,
|
|
346
|
+
post_params=form_params,
|
|
347
|
+
files=local_var_files,
|
|
348
|
+
response_type='list[Link]', # noqa: E501
|
|
349
|
+
auth_settings=auth_settings,
|
|
350
|
+
async_req=params.get('async_req'),
|
|
351
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
352
|
+
_preload_content=params.get('_preload_content', True),
|
|
353
|
+
_request_timeout=params.get('_request_timeout'),
|
|
354
|
+
collection_formats=collection_formats)
|
|
@@ -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/5.3.
|
|
75
|
+
self.user_agent = 'Swagger-Codegen/5.3.2/python'
|
|
76
76
|
|
|
77
77
|
def __del__(self):
|
|
78
78
|
self.pool.close()
|
|
@@ -250,5 +250,5 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
250
250
|
"OS: {env}\n"\
|
|
251
251
|
"Python Version: {pyversion}\n"\
|
|
252
252
|
"Version of the API: 2.0.0\n"\
|
|
253
|
-
"SDK Package Version: 5.3.
|
|
253
|
+
"SDK Package Version: 5.3.2".\
|
|
254
254
|
format(env=sys.platform, pyversion=sys.version)
|
|
@@ -22,6 +22,7 @@ from elabapi_python.models.compound import Compound
|
|
|
22
22
|
from elabapi_python.models.compound_create_request import CompoundCreateRequest
|
|
23
23
|
from elabapi_python.models.compound_duplicate_request import CompoundDuplicateRequest
|
|
24
24
|
from elabapi_python.models.compounds_body import CompoundsBody
|
|
25
|
+
from elabapi_python.models.compounds_subid_body import CompoundsSubidBody
|
|
25
26
|
from elabapi_python.models.config import Config
|
|
26
27
|
from elabapi_python.models.entity import Entity
|
|
27
28
|
from elabapi_python.models.entity_editable import EntityEditable
|
|
@@ -0,0 +1,118 @@
|
|
|
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 CompoundsSubidBody(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
|
+
'action': 'str'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'action': 'action'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, action=None): # noqa: E501
|
|
39
|
+
"""CompoundsSubidBody - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._action = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
if action is not None:
|
|
43
|
+
self.action = action
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def action(self):
|
|
47
|
+
"""Gets the action of this CompoundsSubidBody. # noqa: E501
|
|
48
|
+
|
|
49
|
+
The `create` action will create the link. # noqa: E501
|
|
50
|
+
|
|
51
|
+
:return: The action of this CompoundsSubidBody. # noqa: E501
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._action
|
|
55
|
+
|
|
56
|
+
@action.setter
|
|
57
|
+
def action(self, action):
|
|
58
|
+
"""Sets the action of this CompoundsSubidBody.
|
|
59
|
+
|
|
60
|
+
The `create` action will create the link. # noqa: E501
|
|
61
|
+
|
|
62
|
+
:param action: The action of this CompoundsSubidBody. # noqa: E501
|
|
63
|
+
:type: str
|
|
64
|
+
"""
|
|
65
|
+
allowed_values = ["create"] # noqa: E501
|
|
66
|
+
if action not in allowed_values:
|
|
67
|
+
raise ValueError(
|
|
68
|
+
"Invalid value for `action` ({0}), must be one of {1}" # noqa: E501
|
|
69
|
+
.format(action, allowed_values)
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
self._action = action
|
|
73
|
+
|
|
74
|
+
def to_dict(self):
|
|
75
|
+
"""Returns the model properties as a dict"""
|
|
76
|
+
result = {}
|
|
77
|
+
|
|
78
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
79
|
+
value = getattr(self, attr)
|
|
80
|
+
if isinstance(value, list):
|
|
81
|
+
result[attr] = list(map(
|
|
82
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
83
|
+
value
|
|
84
|
+
))
|
|
85
|
+
elif hasattr(value, "to_dict"):
|
|
86
|
+
result[attr] = value.to_dict()
|
|
87
|
+
elif isinstance(value, dict):
|
|
88
|
+
result[attr] = dict(map(
|
|
89
|
+
lambda item: (item[0], item[1].to_dict())
|
|
90
|
+
if hasattr(item[1], "to_dict") else item,
|
|
91
|
+
value.items()
|
|
92
|
+
))
|
|
93
|
+
else:
|
|
94
|
+
result[attr] = value
|
|
95
|
+
if issubclass(CompoundsSubidBody, dict):
|
|
96
|
+
for key, value in self.items():
|
|
97
|
+
result[key] = value
|
|
98
|
+
|
|
99
|
+
return result
|
|
100
|
+
|
|
101
|
+
def to_str(self):
|
|
102
|
+
"""Returns the string representation of the model"""
|
|
103
|
+
return pprint.pformat(self.to_dict())
|
|
104
|
+
|
|
105
|
+
def __repr__(self):
|
|
106
|
+
"""For `print` and `pprint`"""
|
|
107
|
+
return self.to_str()
|
|
108
|
+
|
|
109
|
+
def __eq__(self, other):
|
|
110
|
+
"""Returns true if both objects are equal"""
|
|
111
|
+
if not isinstance(other, CompoundsSubidBody):
|
|
112
|
+
return False
|
|
113
|
+
|
|
114
|
+
return self.__dict__ == other.__dict__
|
|
115
|
+
|
|
116
|
+
def __ne__(self, other):
|
|
117
|
+
"""Returns true if both objects are not equal"""
|
|
118
|
+
return not self == other
|
|
@@ -27,6 +27,7 @@ elabapi_python/api/import_api.py
|
|
|
27
27
|
elabapi_python/api/info_api.py
|
|
28
28
|
elabapi_python/api/items_api.py
|
|
29
29
|
elabapi_python/api/items_types__resources_templates_api.py
|
|
30
|
+
elabapi_python/api/links_to_compounds_api.py
|
|
30
31
|
elabapi_python/api/links_to_experiments_api.py
|
|
31
32
|
elabapi_python/api/links_to_items_api.py
|
|
32
33
|
elabapi_python/api/notifications_api.py
|
|
@@ -53,6 +54,7 @@ elabapi_python/models/compound.py
|
|
|
53
54
|
elabapi_python/models/compound_create_request.py
|
|
54
55
|
elabapi_python/models/compound_duplicate_request.py
|
|
55
56
|
elabapi_python/models/compounds_body.py
|
|
57
|
+
elabapi_python/models/compounds_subid_body.py
|
|
56
58
|
elabapi_python/models/config.py
|
|
57
59
|
elabapi_python/models/entity.py
|
|
58
60
|
elabapi_python/models/entity_editable.py
|
|
@@ -154,6 +156,7 @@ test/test_compound_create_request.py
|
|
|
154
156
|
test/test_compound_duplicate_request.py
|
|
155
157
|
test/test_compounds_api.py
|
|
156
158
|
test/test_compounds_body.py
|
|
159
|
+
test/test_compounds_subid_body.py
|
|
157
160
|
test/test_config.py
|
|
158
161
|
test/test_config_api.py
|
|
159
162
|
test/test_entity.py
|
|
@@ -224,6 +227,7 @@ test/test_items_types__resources_templates_api.py
|
|
|
224
227
|
test/test_items_types_id_body.py
|
|
225
228
|
test/test_items_types_id_body1.py
|
|
226
229
|
test/test_link.py
|
|
230
|
+
test/test_links_to_compounds_api.py
|
|
227
231
|
test/test_links_to_experiments_api.py
|
|
228
232
|
test/test_links_to_items_api.py
|
|
229
233
|
test/test_metadata.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.compounds_subid_body import CompoundsSubidBody # noqa: E501
|
|
19
|
+
from elabapi_python.rest import ApiException
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TestCompoundsSubidBody(unittest.TestCase):
|
|
23
|
+
"""CompoundsSubidBody unit test stubs"""
|
|
24
|
+
|
|
25
|
+
def setUp(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def tearDown(self):
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
def testCompoundsSubidBody(self):
|
|
32
|
+
"""Test CompoundsSubidBody"""
|
|
33
|
+
# FIXME: construct object with mandatory attributes with example values
|
|
34
|
+
# model = elabapi_python.models.compounds_subid_body.CompoundsSubidBody() # noqa: E501
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == '__main__':
|
|
39
|
+
unittest.main()
|