elabapi-python 5.0.2__py3-none-any.whl → 5.2.0__py3-none-any.whl
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/__init__.py +25 -7
- elabapi_python/api/__init__.py +4 -0
- elabapi_python/api/api_keys_api.py +2 -6
- elabapi_python/api/comments_api.py +0 -4
- elabapi_python/api/config_api.py +0 -4
- elabapi_python/api/events_api.py +0 -4
- elabapi_python/api/experiments_api.py +150 -17
- elabapi_python/api/experiments_categories_api.py +12 -16
- elabapi_python/api/experiments_status_api.py +0 -4
- elabapi_python/api/experiments_templates_api.py +110 -17
- elabapi_python/api/exports_api.py +391 -0
- elabapi_python/api/extra_fields_keys_api.py +2 -2
- elabapi_python/api/favorite_tags_api.py +3 -7
- elabapi_python/api/idps_api.py +0 -4
- elabapi_python/api/import_api.py +223 -0
- elabapi_python/api/items_api.py +154 -17
- elabapi_python/api/items_types_api.py +0 -4
- elabapi_python/api/links_to_experiments_api.py +0 -4
- elabapi_python/api/links_to_items_api.py +0 -4
- elabapi_python/api/notifications_api.py +11 -15
- elabapi_python/api/reports_api.py +128 -0
- elabapi_python/api/resources_status_api.py +2 -6
- elabapi_python/api/revisions_api.py +3 -108
- elabapi_python/api/steps_api.py +0 -4
- elabapi_python/api/tags_api.py +4 -8
- elabapi_python/api/team_tags_api.py +96 -153
- elabapi_python/api/teamgroups_api.py +0 -4
- elabapi_python/api/teams_api.py +2 -2
- elabapi_python/api/todolist_api.py +0 -4
- elabapi_python/api/uploads_api.py +10 -6
- elabapi_python/api/user_uploads_api.py +126 -0
- elabapi_python/api/users_api.py +11 -3
- elabapi_python/api_client.py +1 -1
- elabapi_python/configuration.py +1 -1
- elabapi_python/models/__init__.py +21 -7
- elabapi_python/models/{experiments_templates_body.py → any_ofuploads_subid_body1.py} +5 -33
- elabapi_python/models/apikey.py +55 -3
- elabapi_python/models/apikeys_body.py +1 -1
- elabapi_python/models/config.py +175 -1
- elabapi_python/models/entity.py +35 -347
- elabapi_python/models/entity_editable.py +498 -0
- elabapi_python/models/entity_template.py +1130 -0
- elabapi_python/models/entity_template_editable.py +146 -0
- elabapi_python/models/exclusive_edit_mode.py +196 -0
- elabapi_python/models/experiments_body.py +271 -21
- elabapi_python/models/experiments_id_body.py +85 -1
- elabapi_python/models/experiments_id_body1.py +84 -0
- elabapi_python/models/experiments_templates_id_body.py +57 -1
- elabapi_python/models/experiments_templates_id_body1.py +84 -0
- elabapi_python/models/export.py +578 -0
- elabapi_python/models/exports_body.py +315 -0
- elabapi_python/models/id4.py +84 -0
- elabapi_python/models/id_experiments_categories_body.py +4 -4
- elabapi_python/models/id_tags_body.py +2 -2
- elabapi_python/models/{team_tags_body.py → id_tags_body1.py} +10 -10
- elabapi_python/models/idps_id_body.py +6 -0
- elabapi_python/models/import_body.py +232 -0
- elabapi_python/models/inline_response200.py +87 -3
- elabapi_python/models/inline_response2001.py +79 -45
- elabapi_python/models/inline_response2002.py +44 -44
- elabapi_python/models/inline_response2003.py +17 -43
- elabapi_python/models/{items_body.py → inline_response2003_query_parameters.py} +35 -37
- elabapi_python/models/inline_response2006.py +175 -71
- elabapi_python/models/inline_response2007.py +83 -31
- elabapi_python/models/inline_response2008.py +188 -0
- elabapi_python/models/items_id_body.py +85 -1
- elabapi_python/models/items_id_body1.py +84 -0
- elabapi_python/models/items_type.py +3 -3
- elabapi_python/models/items_types_body.py +24 -18
- elabapi_python/models/link.py +133 -3
- elabapi_python/models/metadata.py +138 -0
- elabapi_python/models/metadata_elabftw.py +140 -0
- elabapi_python/models/{team_tags_id_body.py → metadata_elabftw_extra_fields_groups.py} +35 -37
- elabapi_python/models/metadata_extra_fields.py +194 -0
- elabapi_python/models/revision.py +3 -29
- elabapi_python/models/revisions_subid_body.py +6 -0
- elabapi_python/models/tag.py +81 -3
- elabapi_python/models/tags_subid_body.py +39 -6
- elabapi_python/models/{team_tags_body1.py → tags_subid_body1.py} +17 -10
- elabapi_python/models/team.py +84 -126
- elabapi_python/models/{id_revisions_body.py → teams_id_body.py} +5 -32
- elabapi_python/models/uploads_subid_body1.py +6 -0
- elabapi_python/models/users.py +55 -1
- {elabapi_python-5.0.2.dist-info → elabapi_python-5.2.0.dist-info}/METADATA +9 -4
- {elabapi_python-5.0.2.dist-info → elabapi_python-5.2.0.dist-info}/RECORD +119 -83
- {elabapi_python-5.0.2.dist-info → elabapi_python-5.2.0.dist-info}/WHEEL +1 -1
- test/test_any_ofuploads_subid_body1.py +39 -0
- test/{test_team_tags_id_body.py → test_entity_editable.py} +6 -6
- test/test_entity_template.py +39 -0
- test/test_entity_template_editable.py +39 -0
- test/{test_id_revisions_body.py → test_exclusive_edit_mode.py} +6 -6
- test/test_experiments_api.py +7 -0
- test/test_experiments_categories_api.py +2 -2
- test/test_experiments_id_body1.py +39 -0
- test/test_experiments_templates_api.py +7 -0
- test/{test_experiments_templates_body.py → test_experiments_templates_id_body1.py} +6 -6
- test/{test_items_body.py → test_export.py} +6 -6
- test/test_exports_api.py +61 -0
- test/{test_team_tags_body1.py → test_exports_body.py} +6 -6
- test/test_id4.py +39 -0
- test/test_id_tags_body1.py +39 -0
- test/test_import_api.py +47 -0
- test/test_import_body.py +39 -0
- test/test_inline_response2003_query_parameters.py +39 -0
- test/{test_experiment_template.py → test_inline_response2008.py} +6 -6
- test/test_items_api.py +7 -0
- test/{test_team_tags_body.py → test_items_id_body1.py} +6 -6
- test/test_metadata.py +39 -0
- test/test_metadata_elabftw.py +39 -0
- test/test_metadata_elabftw_extra_fields_groups.py +39 -0
- test/test_metadata_extra_fields.py +39 -0
- test/test_reports_api.py +40 -0
- test/test_resources_status_api.py +1 -1
- test/test_revisions_api.py +0 -7
- test/test_tags_subid_body1.py +39 -0
- test/test_team_tags_api.py +0 -7
- test/test_teams_id_body.py +39 -0
- test/test_user_uploads_api.py +40 -0
- elabapi_python/models/experiment_template.py +0 -656
- {elabapi_python-5.0.2.dist-info → elabapi_python-5.2.0.dist-info}/top_level.txt +0 -0
elabapi_python/__init__.py
CHANGED
|
@@ -23,15 +23,18 @@ from elabapi_python.api.experiments_api import ExperimentsApi
|
|
|
23
23
|
from elabapi_python.api.experiments_categories_api import ExperimentsCategoriesApi
|
|
24
24
|
from elabapi_python.api.experiments_status_api import ExperimentsStatusApi
|
|
25
25
|
from elabapi_python.api.experiments_templates_api import ExperimentsTemplatesApi
|
|
26
|
+
from elabapi_python.api.exports_api import ExportsApi
|
|
26
27
|
from elabapi_python.api.extra_fields_keys_api import ExtraFieldsKeysApi
|
|
27
28
|
from elabapi_python.api.favorite_tags_api import FavoriteTagsApi
|
|
28
29
|
from elabapi_python.api.idps_api import IdpsApi
|
|
30
|
+
from elabapi_python.api.import_api import ImportApi
|
|
29
31
|
from elabapi_python.api.info_api import InfoApi
|
|
30
32
|
from elabapi_python.api.items_api import ItemsApi
|
|
31
33
|
from elabapi_python.api.items_types_api import ItemsTypesApi
|
|
32
34
|
from elabapi_python.api.links_to_experiments_api import LinksToExperimentsApi
|
|
33
35
|
from elabapi_python.api.links_to_items_api import LinksToItemsApi
|
|
34
36
|
from elabapi_python.api.notifications_api import NotificationsApi
|
|
37
|
+
from elabapi_python.api.reports_api import ReportsApi
|
|
35
38
|
from elabapi_python.api.resources_status_api import ResourcesStatusApi
|
|
36
39
|
from elabapi_python.api.revisions_api import RevisionsApi
|
|
37
40
|
from elabapi_python.api.steps_api import StepsApi
|
|
@@ -42,60 +45,76 @@ from elabapi_python.api.teams_api import TeamsApi
|
|
|
42
45
|
from elabapi_python.api.todolist_api import TodolistApi
|
|
43
46
|
from elabapi_python.api.unfinished_steps_api import UnfinishedStepsApi
|
|
44
47
|
from elabapi_python.api.uploads_api import UploadsApi
|
|
48
|
+
from elabapi_python.api.user_uploads_api import UserUploadsApi
|
|
45
49
|
from elabapi_python.api.users_api import UsersApi
|
|
46
50
|
# import ApiClient
|
|
47
51
|
from elabapi_python.api_client import ApiClient
|
|
48
52
|
from elabapi_python.configuration import Configuration
|
|
49
53
|
# import models into sdk package
|
|
54
|
+
from elabapi_python.models.any_ofuploads_subid_body1 import AnyOfuploadsSubidBody1
|
|
50
55
|
from elabapi_python.models.apikey import Apikey
|
|
51
56
|
from elabapi_python.models.apikeys_body import ApikeysBody
|
|
52
57
|
from elabapi_python.models.comment import Comment
|
|
53
58
|
from elabapi_python.models.config import Config
|
|
54
59
|
from elabapi_python.models.entity import Entity
|
|
60
|
+
from elabapi_python.models.entity_editable import EntityEditable
|
|
61
|
+
from elabapi_python.models.entity_template import EntityTemplate
|
|
62
|
+
from elabapi_python.models.entity_template_editable import EntityTemplateEditable
|
|
55
63
|
from elabapi_python.models.event import Event
|
|
56
64
|
from elabapi_python.models.event_id_body import EventIdBody
|
|
57
65
|
from elabapi_python.models.eventid_delta import EventidDelta
|
|
58
66
|
from elabapi_python.models.events_id_body import EventsIdBody
|
|
67
|
+
from elabapi_python.models.exclusive_edit_mode import ExclusiveEditMode
|
|
59
68
|
from elabapi_python.models.experiment import Experiment
|
|
60
|
-
from elabapi_python.models.experiment_template import ExperimentTemplate
|
|
61
69
|
from elabapi_python.models.experiments_body import ExperimentsBody
|
|
62
70
|
from elabapi_python.models.experiments_id_body import ExperimentsIdBody
|
|
71
|
+
from elabapi_python.models.experiments_id_body1 import ExperimentsIdBody1
|
|
63
72
|
from elabapi_python.models.experiments_links_subid_body import ExperimentsLinksSubidBody
|
|
64
|
-
from elabapi_python.models.experiments_templates_body import ExperimentsTemplatesBody
|
|
65
73
|
from elabapi_python.models.experiments_templates_id_body import ExperimentsTemplatesIdBody
|
|
74
|
+
from elabapi_python.models.experiments_templates_id_body1 import ExperimentsTemplatesIdBody1
|
|
75
|
+
from elabapi_python.models.export import Export
|
|
76
|
+
from elabapi_python.models.exports_body import ExportsBody
|
|
66
77
|
from elabapi_python.models.extra_fields_keys import ExtraFieldsKeys
|
|
67
78
|
from elabapi_python.models.favtags_body import FavtagsBody
|
|
68
79
|
from elabapi_python.models.id import Id
|
|
69
80
|
from elabapi_python.models.id1 import Id1
|
|
70
81
|
from elabapi_python.models.id2 import Id2
|
|
71
82
|
from elabapi_python.models.id3 import Id3
|
|
83
|
+
from elabapi_python.models.id4 import Id4
|
|
72
84
|
from elabapi_python.models.id_comments_body import IdCommentsBody
|
|
73
85
|
from elabapi_python.models.id_experiments_categories_body import IdExperimentsCategoriesBody
|
|
74
86
|
from elabapi_python.models.id_experiments_status_body import IdExperimentsStatusBody
|
|
75
87
|
from elabapi_python.models.id_items_status_body import IdItemsStatusBody
|
|
76
|
-
from elabapi_python.models.id_revisions_body import IdRevisionsBody
|
|
77
88
|
from elabapi_python.models.id_steps_body import IdStepsBody
|
|
78
89
|
from elabapi_python.models.id_tags_body import IdTagsBody
|
|
90
|
+
from elabapi_python.models.id_tags_body1 import IdTagsBody1
|
|
79
91
|
from elabapi_python.models.id_teamgroups_body import IdTeamgroupsBody
|
|
80
92
|
from elabapi_python.models.id_uploads_body import IdUploadsBody
|
|
81
93
|
from elabapi_python.models.idp import Idp
|
|
82
94
|
from elabapi_python.models.idps_body import IdpsBody
|
|
83
95
|
from elabapi_python.models.idps_id_body import IdpsIdBody
|
|
96
|
+
from elabapi_python.models.import_body import ImportBody
|
|
84
97
|
from elabapi_python.models.inline_response200 import InlineResponse200
|
|
85
98
|
from elabapi_python.models.inline_response2001 import InlineResponse2001
|
|
86
99
|
from elabapi_python.models.inline_response2002 import InlineResponse2002
|
|
87
100
|
from elabapi_python.models.inline_response2003 import InlineResponse2003
|
|
101
|
+
from elabapi_python.models.inline_response2003_query_parameters import InlineResponse2003QueryParameters
|
|
88
102
|
from elabapi_python.models.inline_response2004 import InlineResponse2004
|
|
89
103
|
from elabapi_python.models.inline_response2005 import InlineResponse2005
|
|
90
104
|
from elabapi_python.models.inline_response2006 import InlineResponse2006
|
|
91
105
|
from elabapi_python.models.inline_response2007 import InlineResponse2007
|
|
106
|
+
from elabapi_python.models.inline_response2008 import InlineResponse2008
|
|
92
107
|
from elabapi_python.models.item import Item
|
|
93
|
-
from elabapi_python.models.items_body import ItemsBody
|
|
94
108
|
from elabapi_python.models.items_id_body import ItemsIdBody
|
|
109
|
+
from elabapi_python.models.items_id_body1 import ItemsIdBody1
|
|
95
110
|
from elabapi_python.models.items_links_subid_body import ItemsLinksSubidBody
|
|
96
111
|
from elabapi_python.models.items_type import ItemsType
|
|
97
112
|
from elabapi_python.models.items_types_body import ItemsTypesBody
|
|
98
113
|
from elabapi_python.models.link import Link
|
|
114
|
+
from elabapi_python.models.metadata import Metadata
|
|
115
|
+
from elabapi_python.models.metadata_elabftw import MetadataElabftw
|
|
116
|
+
from elabapi_python.models.metadata_elabftw_extra_fields_groups import MetadataElabftwExtraFieldsGroups
|
|
117
|
+
from elabapi_python.models.metadata_extra_fields import MetadataExtraFields
|
|
99
118
|
from elabapi_python.models.notification import Notification
|
|
100
119
|
from elabapi_python.models.revision import Revision
|
|
101
120
|
from elabapi_python.models.revisions_subid_body import RevisionsSubidBody
|
|
@@ -104,14 +123,13 @@ from elabapi_python.models.step import Step
|
|
|
104
123
|
from elabapi_python.models.steps_subid_body import StepsSubidBody
|
|
105
124
|
from elabapi_python.models.tag import Tag
|
|
106
125
|
from elabapi_python.models.tags_subid_body import TagsSubidBody
|
|
126
|
+
from elabapi_python.models.tags_subid_body1 import TagsSubidBody1
|
|
107
127
|
from elabapi_python.models.team import Team
|
|
108
|
-
from elabapi_python.models.team_tags_body import TeamTagsBody
|
|
109
|
-
from elabapi_python.models.team_tags_body1 import TeamTagsBody1
|
|
110
|
-
from elabapi_python.models.team_tags_id_body import TeamTagsIdBody
|
|
111
128
|
from elabapi_python.models.teamgroup import Teamgroup
|
|
112
129
|
from elabapi_python.models.teamgroup_users import TeamgroupUsers
|
|
113
130
|
from elabapi_python.models.teamgroups_subid_body import TeamgroupsSubidBody
|
|
114
131
|
from elabapi_python.models.teams_body import TeamsBody
|
|
132
|
+
from elabapi_python.models.teams_id_body import TeamsIdBody
|
|
115
133
|
from elabapi_python.models.todoitem import Todoitem
|
|
116
134
|
from elabapi_python.models.todolist_body import TodolistBody
|
|
117
135
|
from elabapi_python.models.todolist_id_body import TodolistIdBody
|
elabapi_python/api/__init__.py
CHANGED
|
@@ -11,15 +11,18 @@ from elabapi_python.api.experiments_api import ExperimentsApi
|
|
|
11
11
|
from elabapi_python.api.experiments_categories_api import ExperimentsCategoriesApi
|
|
12
12
|
from elabapi_python.api.experiments_status_api import ExperimentsStatusApi
|
|
13
13
|
from elabapi_python.api.experiments_templates_api import ExperimentsTemplatesApi
|
|
14
|
+
from elabapi_python.api.exports_api import ExportsApi
|
|
14
15
|
from elabapi_python.api.extra_fields_keys_api import ExtraFieldsKeysApi
|
|
15
16
|
from elabapi_python.api.favorite_tags_api import FavoriteTagsApi
|
|
16
17
|
from elabapi_python.api.idps_api import IdpsApi
|
|
18
|
+
from elabapi_python.api.import_api import ImportApi
|
|
17
19
|
from elabapi_python.api.info_api import InfoApi
|
|
18
20
|
from elabapi_python.api.items_api import ItemsApi
|
|
19
21
|
from elabapi_python.api.items_types_api import ItemsTypesApi
|
|
20
22
|
from elabapi_python.api.links_to_experiments_api import LinksToExperimentsApi
|
|
21
23
|
from elabapi_python.api.links_to_items_api import LinksToItemsApi
|
|
22
24
|
from elabapi_python.api.notifications_api import NotificationsApi
|
|
25
|
+
from elabapi_python.api.reports_api import ReportsApi
|
|
23
26
|
from elabapi_python.api.resources_status_api import ResourcesStatusApi
|
|
24
27
|
from elabapi_python.api.revisions_api import RevisionsApi
|
|
25
28
|
from elabapi_python.api.steps_api import StepsApi
|
|
@@ -30,4 +33,5 @@ from elabapi_python.api.teams_api import TeamsApi
|
|
|
30
33
|
from elabapi_python.api.todolist_api import TodolistApi
|
|
31
34
|
from elabapi_python.api.unfinished_steps_api import UnfinishedStepsApi
|
|
32
35
|
from elabapi_python.api.uploads_api import UploadsApi
|
|
36
|
+
from elabapi_python.api.user_uploads_api import UserUploadsApi
|
|
33
37
|
from elabapi_python.api.users_api import UsersApi
|
|
@@ -104,10 +104,6 @@ class ApiKeysApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
-
# HTTP header `Content-Type`
|
|
108
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
-
['application/json']) # noqa: E501
|
|
110
|
-
|
|
111
107
|
# Authentication setting
|
|
112
108
|
auth_settings = ['token'] # noqa: E501
|
|
113
109
|
|
|
@@ -217,7 +213,7 @@ class ApiKeysApi(object):
|
|
|
217
213
|
def post_apikeys(self, **kwargs): # noqa: E501
|
|
218
214
|
"""Create an API key # noqa: E501
|
|
219
215
|
|
|
220
|
-
Create an API key. The cleartext key is sent back in the location header.
|
|
216
|
+
Create an API key. The cleartext key is sent back in the location header. # noqa: E501
|
|
221
217
|
This method makes a synchronous HTTP request by default. To make an
|
|
222
218
|
asynchronous HTTP request, please pass async_req=True
|
|
223
219
|
>>> thread = api.post_apikeys(async_req=True)
|
|
@@ -239,7 +235,7 @@ class ApiKeysApi(object):
|
|
|
239
235
|
def post_apikeys_with_http_info(self, **kwargs): # noqa: E501
|
|
240
236
|
"""Create an API key # noqa: E501
|
|
241
237
|
|
|
242
|
-
Create an API key. The cleartext key is sent back in the location header.
|
|
238
|
+
Create an API key. The cleartext key is sent back in the location header. # noqa: E501
|
|
243
239
|
This method makes a synchronous HTTP request by default. To make an
|
|
244
240
|
asynchronous HTTP request, please pass async_req=True
|
|
245
241
|
>>> thread = api.post_apikeys_with_http_info(async_req=True)
|
|
@@ -120,10 +120,6 @@ class CommentsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
-
# HTTP header `Content-Type`
|
|
124
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
-
['application/json']) # noqa: E501
|
|
126
|
-
|
|
127
123
|
# Authentication setting
|
|
128
124
|
auth_settings = ['token'] # noqa: E501
|
|
129
125
|
|
elabapi_python/api/config_api.py
CHANGED
|
@@ -94,10 +94,6 @@ class ConfigApi(object):
|
|
|
94
94
|
local_var_files = {}
|
|
95
95
|
|
|
96
96
|
body_params = None
|
|
97
|
-
# HTTP header `Content-Type`
|
|
98
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
99
|
-
['application/json']) # noqa: E501
|
|
100
|
-
|
|
101
97
|
# Authentication setting
|
|
102
98
|
auth_settings = ['token'] # noqa: E501
|
|
103
99
|
|
elabapi_python/api/events_api.py
CHANGED
|
@@ -102,10 +102,6 @@ class EventsApi(object):
|
|
|
102
102
|
local_var_files = {}
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
|
-
# HTTP header `Content-Type`
|
|
106
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
107
|
-
['application/json']) # noqa: E501
|
|
108
|
-
|
|
109
105
|
# Authentication setting
|
|
110
106
|
auth_settings = ['token'] # noqa: E501
|
|
111
107
|
|
|
@@ -104,10 +104,6 @@ class ExperimentsApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
-
# HTTP header `Content-Type`
|
|
108
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
-
['application/json']) # noqa: E501
|
|
110
|
-
|
|
111
107
|
# Authentication setting
|
|
112
108
|
auth_settings = ['token'] # noqa: E501
|
|
113
109
|
|
|
@@ -138,7 +134,11 @@ class ExperimentsApi(object):
|
|
|
138
134
|
:param async_req bool
|
|
139
135
|
:param int id: ID of the experiment (required)
|
|
140
136
|
: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\".
|
|
141
|
-
:
|
|
137
|
+
:param bool json: Include a full JSON export in the ZIP archive. Only applicable if format is zip(a).
|
|
138
|
+
:param bool with_title: Include the title in the QR code. Only applicable if format is qrpng.
|
|
139
|
+
:param int size: Specify the size of the QR code in pixels. Only applicable if format is qrpng.
|
|
140
|
+
:param bool changelog: Toggles if the changelog should be included in PDF exports (pdf, pdfa, zip, zipa). Changelog is by default included if the export provides PDF/A, otherwise not.
|
|
141
|
+
:return: Entity
|
|
142
142
|
If the method is called asynchronously,
|
|
143
143
|
returns the request thread.
|
|
144
144
|
"""
|
|
@@ -160,12 +160,16 @@ class ExperimentsApi(object):
|
|
|
160
160
|
:param async_req bool
|
|
161
161
|
:param int id: ID of the experiment (required)
|
|
162
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\".
|
|
163
|
-
:
|
|
163
|
+
:param bool json: Include a full JSON export in the ZIP archive. Only applicable if format is zip(a).
|
|
164
|
+
:param bool with_title: Include the title in the QR code. Only applicable if format is qrpng.
|
|
165
|
+
:param int size: Specify the size of the QR code in pixels. Only applicable if format is qrpng.
|
|
166
|
+
:param bool changelog: Toggles if the changelog should be included in PDF exports (pdf, pdfa, zip, zipa). Changelog is by default included if the export provides PDF/A, otherwise not.
|
|
167
|
+
:return: Entity
|
|
164
168
|
If the method is called asynchronously,
|
|
165
169
|
returns the request thread.
|
|
166
170
|
"""
|
|
167
171
|
|
|
168
|
-
all_params = ['id', 'format'] # noqa: E501
|
|
172
|
+
all_params = ['id', 'format', 'json', 'with_title', 'size', 'changelog'] # noqa: E501
|
|
169
173
|
all_params.append('async_req')
|
|
170
174
|
all_params.append('_return_http_data_only')
|
|
171
175
|
all_params.append('_preload_content')
|
|
@@ -194,6 +198,14 @@ class ExperimentsApi(object):
|
|
|
194
198
|
query_params = []
|
|
195
199
|
if 'format' in params:
|
|
196
200
|
query_params.append(('format', params['format'])) # noqa: E501
|
|
201
|
+
if 'json' in params:
|
|
202
|
+
query_params.append(('json', params['json'])) # noqa: E501
|
|
203
|
+
if 'with_title' in params:
|
|
204
|
+
query_params.append(('withTitle', params['with_title'])) # noqa: E501
|
|
205
|
+
if 'size' in params:
|
|
206
|
+
query_params.append(('size', params['size'])) # noqa: E501
|
|
207
|
+
if 'changelog' in params:
|
|
208
|
+
query_params.append(('changelog', params['changelog'])) # noqa: E501
|
|
197
209
|
|
|
198
210
|
header_params = {}
|
|
199
211
|
|
|
@@ -216,7 +228,7 @@ class ExperimentsApi(object):
|
|
|
216
228
|
body=body_params,
|
|
217
229
|
post_params=form_params,
|
|
218
230
|
files=local_var_files,
|
|
219
|
-
response_type='
|
|
231
|
+
response_type='Entity', # noqa: E501
|
|
220
232
|
auth_settings=auth_settings,
|
|
221
233
|
async_req=params.get('async_req'),
|
|
222
234
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -234,7 +246,7 @@ class ExperimentsApi(object):
|
|
|
234
246
|
|
|
235
247
|
:param async_req bool
|
|
236
248
|
:param int id: ID of the experiment (required)
|
|
237
|
-
:param
|
|
249
|
+
:param ExperimentsIdBody1 body: Parameters for patching an experiment
|
|
238
250
|
:return: Experiment
|
|
239
251
|
If the method is called asynchronously,
|
|
240
252
|
returns the request thread.
|
|
@@ -256,7 +268,7 @@ class ExperimentsApi(object):
|
|
|
256
268
|
|
|
257
269
|
:param async_req bool
|
|
258
270
|
:param int id: ID of the experiment (required)
|
|
259
|
-
:param
|
|
271
|
+
:param ExperimentsIdBody1 body: Parameters for patching an experiment
|
|
260
272
|
:return: Experiment
|
|
261
273
|
If the method is called asynchronously,
|
|
262
274
|
returns the request thread.
|
|
@@ -414,6 +426,103 @@ class ExperimentsApi(object):
|
|
|
414
426
|
_request_timeout=params.get('_request_timeout'),
|
|
415
427
|
collection_formats=collection_formats)
|
|
416
428
|
|
|
429
|
+
def post_experiment_by_id(self, id, **kwargs): # noqa: E501
|
|
430
|
+
"""Duplicate an experiment with its ID # noqa: E501
|
|
431
|
+
|
|
432
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
433
|
+
asynchronous HTTP request, please pass async_req=True
|
|
434
|
+
>>> thread = api.post_experiment_by_id(id, async_req=True)
|
|
435
|
+
>>> result = thread.get()
|
|
436
|
+
|
|
437
|
+
:param async_req bool
|
|
438
|
+
:param int id: The unique identifier of the experiment to duplicate. (required)
|
|
439
|
+
:param ExperimentsIdBody body: Parameters for duplicating an experiment
|
|
440
|
+
:return: None
|
|
441
|
+
If the method is called asynchronously,
|
|
442
|
+
returns the request thread.
|
|
443
|
+
"""
|
|
444
|
+
kwargs['_return_http_data_only'] = True
|
|
445
|
+
if kwargs.get('async_req'):
|
|
446
|
+
return self.post_experiment_by_id_with_http_info(id, **kwargs) # noqa: E501
|
|
447
|
+
else:
|
|
448
|
+
(data) = self.post_experiment_by_id_with_http_info(id, **kwargs) # noqa: E501
|
|
449
|
+
return data
|
|
450
|
+
|
|
451
|
+
def post_experiment_by_id_with_http_info(self, id, **kwargs): # noqa: E501
|
|
452
|
+
"""Duplicate an experiment with its ID # noqa: E501
|
|
453
|
+
|
|
454
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
455
|
+
asynchronous HTTP request, please pass async_req=True
|
|
456
|
+
>>> thread = api.post_experiment_by_id_with_http_info(id, async_req=True)
|
|
457
|
+
>>> result = thread.get()
|
|
458
|
+
|
|
459
|
+
:param async_req bool
|
|
460
|
+
:param int id: The unique identifier of the experiment to duplicate. (required)
|
|
461
|
+
:param ExperimentsIdBody body: Parameters for duplicating an experiment
|
|
462
|
+
:return: None
|
|
463
|
+
If the method is called asynchronously,
|
|
464
|
+
returns the request thread.
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
all_params = ['id', 'body'] # noqa: E501
|
|
468
|
+
all_params.append('async_req')
|
|
469
|
+
all_params.append('_return_http_data_only')
|
|
470
|
+
all_params.append('_preload_content')
|
|
471
|
+
all_params.append('_request_timeout')
|
|
472
|
+
|
|
473
|
+
params = locals()
|
|
474
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
475
|
+
if key not in all_params:
|
|
476
|
+
raise TypeError(
|
|
477
|
+
"Got an unexpected keyword argument '%s'"
|
|
478
|
+
" to method post_experiment_by_id" % key
|
|
479
|
+
)
|
|
480
|
+
params[key] = val
|
|
481
|
+
del params['kwargs']
|
|
482
|
+
# verify the required parameter 'id' is set
|
|
483
|
+
if ('id' not in params or
|
|
484
|
+
params['id'] is None):
|
|
485
|
+
raise ValueError("Missing the required parameter `id` when calling `post_experiment_by_id`") # noqa: E501
|
|
486
|
+
|
|
487
|
+
collection_formats = {}
|
|
488
|
+
|
|
489
|
+
path_params = {}
|
|
490
|
+
if 'id' in params:
|
|
491
|
+
path_params['id'] = params['id'] # noqa: E501
|
|
492
|
+
|
|
493
|
+
query_params = []
|
|
494
|
+
|
|
495
|
+
header_params = {}
|
|
496
|
+
|
|
497
|
+
form_params = []
|
|
498
|
+
local_var_files = {}
|
|
499
|
+
|
|
500
|
+
body_params = None
|
|
501
|
+
if 'body' in params:
|
|
502
|
+
body_params = params['body']
|
|
503
|
+
# HTTP header `Content-Type`
|
|
504
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
505
|
+
['application/json']) # noqa: E501
|
|
506
|
+
|
|
507
|
+
# Authentication setting
|
|
508
|
+
auth_settings = ['token'] # noqa: E501
|
|
509
|
+
|
|
510
|
+
return self.api_client.call_api(
|
|
511
|
+
'/experiments/{id}', 'POST',
|
|
512
|
+
path_params,
|
|
513
|
+
query_params,
|
|
514
|
+
header_params,
|
|
515
|
+
body=body_params,
|
|
516
|
+
post_params=form_params,
|
|
517
|
+
files=local_var_files,
|
|
518
|
+
response_type=None, # noqa: E501
|
|
519
|
+
auth_settings=auth_settings,
|
|
520
|
+
async_req=params.get('async_req'),
|
|
521
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
522
|
+
_preload_content=params.get('_preload_content', True),
|
|
523
|
+
_request_timeout=params.get('_request_timeout'),
|
|
524
|
+
collection_formats=collection_formats)
|
|
525
|
+
|
|
417
526
|
def read_experiments(self, **kwargs): # noqa: E501
|
|
418
527
|
"""Read all experiments that are accessible # noqa: E501
|
|
419
528
|
|
|
@@ -425,12 +534,18 @@ class ExperimentsApi(object):
|
|
|
425
534
|
:param async_req bool
|
|
426
535
|
:param str q: Search for a term in title, body or elabid.
|
|
427
536
|
:param str extended: Extended search (advanced query).
|
|
428
|
-
:param int related: Look only for entries linked to this
|
|
429
|
-
:param
|
|
537
|
+
:param int related: Look only for entries linked to this entry id.
|
|
538
|
+
:param str related_origin: When using the \"related\" query parameter, select the type of the related ID (experiments or items)
|
|
539
|
+
:param str cat: Add a filter on the Category. Supports comma separated list of numbers, including \"null\".
|
|
540
|
+
:param str status: Add a filter on the Status. Supports comma separated list of numbers, including \"null\".
|
|
430
541
|
:param list[str] tags: An array of tags for filtering results containing all of these tags.
|
|
431
542
|
:param int limit: Limit the number of results.
|
|
432
543
|
:param int offset: Skip a number of results. Use with limit to work the pagination.
|
|
433
|
-
:param
|
|
544
|
+
:param str owner: Filter results by author (user id)
|
|
545
|
+
:param int scope: Set the scope for the results. 1: self, 2: team, 3: everything. It defaults to the user value stored in preferences.
|
|
546
|
+
:param str order: Change the ordering of the results.
|
|
547
|
+
:param str sort: Change the sorting of results: ascending or descending.
|
|
548
|
+
:param str state: Filter results based on their state: 1 (Normal), 2 (Archived), 3 (Deleted). Supports comma separated values.
|
|
434
549
|
:return: list[Experiment]
|
|
435
550
|
If the method is called asynchronously,
|
|
436
551
|
returns the request thread.
|
|
@@ -453,18 +568,24 @@ class ExperimentsApi(object):
|
|
|
453
568
|
:param async_req bool
|
|
454
569
|
:param str q: Search for a term in title, body or elabid.
|
|
455
570
|
:param str extended: Extended search (advanced query).
|
|
456
|
-
:param int related: Look only for entries linked to this
|
|
457
|
-
:param
|
|
571
|
+
:param int related: Look only for entries linked to this entry id.
|
|
572
|
+
:param str related_origin: When using the \"related\" query parameter, select the type of the related ID (experiments or items)
|
|
573
|
+
:param str cat: Add a filter on the Category. Supports comma separated list of numbers, including \"null\".
|
|
574
|
+
:param str status: Add a filter on the Status. Supports comma separated list of numbers, including \"null\".
|
|
458
575
|
:param list[str] tags: An array of tags for filtering results containing all of these tags.
|
|
459
576
|
:param int limit: Limit the number of results.
|
|
460
577
|
:param int offset: Skip a number of results. Use with limit to work the pagination.
|
|
461
|
-
:param
|
|
578
|
+
:param str owner: Filter results by author (user id)
|
|
579
|
+
:param int scope: Set the scope for the results. 1: self, 2: team, 3: everything. It defaults to the user value stored in preferences.
|
|
580
|
+
:param str order: Change the ordering of the results.
|
|
581
|
+
:param str sort: Change the sorting of results: ascending or descending.
|
|
582
|
+
:param str state: Filter results based on their state: 1 (Normal), 2 (Archived), 3 (Deleted). Supports comma separated values.
|
|
462
583
|
:return: list[Experiment]
|
|
463
584
|
If the method is called asynchronously,
|
|
464
585
|
returns the request thread.
|
|
465
586
|
"""
|
|
466
587
|
|
|
467
|
-
all_params = ['q', 'extended', 'related', 'cat', 'tags', 'limit', 'offset', 'owner'] # noqa: E501
|
|
588
|
+
all_params = ['q', 'extended', 'related', 'related_origin', 'cat', 'status', 'tags', 'limit', 'offset', 'owner', 'scope', 'order', 'sort', 'state'] # noqa: E501
|
|
468
589
|
all_params.append('async_req')
|
|
469
590
|
all_params.append('_return_http_data_only')
|
|
470
591
|
all_params.append('_preload_content')
|
|
@@ -491,8 +612,12 @@ class ExperimentsApi(object):
|
|
|
491
612
|
query_params.append(('extended', params['extended'])) # noqa: E501
|
|
492
613
|
if 'related' in params:
|
|
493
614
|
query_params.append(('related', params['related'])) # noqa: E501
|
|
615
|
+
if 'related_origin' in params:
|
|
616
|
+
query_params.append(('related_origin', params['related_origin'])) # noqa: E501
|
|
494
617
|
if 'cat' in params:
|
|
495
618
|
query_params.append(('cat', params['cat'])) # noqa: E501
|
|
619
|
+
if 'status' in params:
|
|
620
|
+
query_params.append(('status', params['status'])) # noqa: E501
|
|
496
621
|
if 'tags' in params:
|
|
497
622
|
query_params.append(('tags[]', params['tags'])) # noqa: E501
|
|
498
623
|
collection_formats['tags[]'] = 'multi' # noqa: E501
|
|
@@ -502,6 +627,14 @@ class ExperimentsApi(object):
|
|
|
502
627
|
query_params.append(('offset', params['offset'])) # noqa: E501
|
|
503
628
|
if 'owner' in params:
|
|
504
629
|
query_params.append(('owner', params['owner'])) # noqa: E501
|
|
630
|
+
if 'scope' in params:
|
|
631
|
+
query_params.append(('scope', params['scope'])) # noqa: E501
|
|
632
|
+
if 'order' in params:
|
|
633
|
+
query_params.append(('order', params['order'])) # noqa: E501
|
|
634
|
+
if 'sort' in params:
|
|
635
|
+
query_params.append(('sort', params['sort'])) # noqa: E501
|
|
636
|
+
if 'state' in params:
|
|
637
|
+
query_params.append(('state', params['state'])) # noqa: E501
|
|
505
638
|
|
|
506
639
|
header_params = {}
|
|
507
640
|
|
|
@@ -42,7 +42,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
42
42
|
|
|
43
43
|
:param async_req bool
|
|
44
44
|
:param int id: ID of the team. (required)
|
|
45
|
-
:param int subid: ID of the
|
|
45
|
+
:param int subid: ID of the category. (required)
|
|
46
46
|
:return: None
|
|
47
47
|
If the method is called asynchronously,
|
|
48
48
|
returns the request thread.
|
|
@@ -64,7 +64,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
64
64
|
|
|
65
65
|
:param async_req bool
|
|
66
66
|
:param int id: ID of the team. (required)
|
|
67
|
-
:param int subid: ID of the
|
|
67
|
+
:param int subid: ID of the category. (required)
|
|
68
68
|
:return: None
|
|
69
69
|
If the method is called asynchronously,
|
|
70
70
|
returns the request thread.
|
|
@@ -110,10 +110,6 @@ class ExperimentsCategoriesApi(object):
|
|
|
110
110
|
local_var_files = {}
|
|
111
111
|
|
|
112
112
|
body_params = None
|
|
113
|
-
# HTTP header `Content-Type`
|
|
114
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
115
|
-
['application/json']) # noqa: E501
|
|
116
|
-
|
|
117
113
|
# Authentication setting
|
|
118
114
|
auth_settings = ['token'] # noqa: E501
|
|
119
115
|
|
|
@@ -143,7 +139,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
143
139
|
|
|
144
140
|
:param async_req bool
|
|
145
141
|
:param int id: ID of the team. (required)
|
|
146
|
-
:param int subid: ID of the
|
|
142
|
+
:param int subid: ID of the category. (required)
|
|
147
143
|
:param Statuslike body: Parameters for modifying a category.
|
|
148
144
|
:return: Statuslike
|
|
149
145
|
If the method is called asynchronously,
|
|
@@ -166,7 +162,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
166
162
|
|
|
167
163
|
:param async_req bool
|
|
168
164
|
:param int id: ID of the team. (required)
|
|
169
|
-
:param int subid: ID of the
|
|
165
|
+
:param int subid: ID of the category. (required)
|
|
170
166
|
:param Statuslike body: Parameters for modifying a category.
|
|
171
167
|
:return: Statuslike
|
|
172
168
|
If the method is called asynchronously,
|
|
@@ -243,7 +239,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
243
239
|
collection_formats=collection_formats)
|
|
244
240
|
|
|
245
241
|
def post_team_one_expcat(self, id, **kwargs): # noqa: E501
|
|
246
|
-
"""Create a new experiments
|
|
242
|
+
"""Create a new category for experiments. # noqa: E501
|
|
247
243
|
|
|
248
244
|
This method makes a synchronous HTTP request by default. To make an
|
|
249
245
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -252,7 +248,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
252
248
|
|
|
253
249
|
:param async_req bool
|
|
254
250
|
:param int id: ID of the team. (required)
|
|
255
|
-
:param IdExperimentsCategoriesBody body: Parameters for creating a
|
|
251
|
+
:param IdExperimentsCategoriesBody body: Parameters for creating a category.
|
|
256
252
|
:return: None
|
|
257
253
|
If the method is called asynchronously,
|
|
258
254
|
returns the request thread.
|
|
@@ -265,7 +261,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
265
261
|
return data
|
|
266
262
|
|
|
267
263
|
def post_team_one_expcat_with_http_info(self, id, **kwargs): # noqa: E501
|
|
268
|
-
"""Create a new experiments
|
|
264
|
+
"""Create a new category for experiments. # noqa: E501
|
|
269
265
|
|
|
270
266
|
This method makes a synchronous HTTP request by default. To make an
|
|
271
267
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -274,7 +270,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
274
270
|
|
|
275
271
|
:param async_req bool
|
|
276
272
|
:param int id: ID of the team. (required)
|
|
277
|
-
:param IdExperimentsCategoriesBody body: Parameters for creating a
|
|
273
|
+
:param IdExperimentsCategoriesBody body: Parameters for creating a category.
|
|
278
274
|
:return: None
|
|
279
275
|
If the method is called asynchronously,
|
|
280
276
|
returns the request thread.
|
|
@@ -433,7 +429,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
433
429
|
collection_formats=collection_formats)
|
|
434
430
|
|
|
435
431
|
def read_team_one_expcat(self, id, subid, **kwargs): # noqa: E501
|
|
436
|
-
"""Read a
|
|
432
|
+
"""Read a category. # noqa: E501
|
|
437
433
|
|
|
438
434
|
This method makes a synchronous HTTP request by default. To make an
|
|
439
435
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -442,7 +438,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
442
438
|
|
|
443
439
|
:param async_req bool
|
|
444
440
|
:param int id: ID of the team. (required)
|
|
445
|
-
:param int subid: ID of the
|
|
441
|
+
:param int subid: ID of the category. (required)
|
|
446
442
|
:return: Statuslike
|
|
447
443
|
If the method is called asynchronously,
|
|
448
444
|
returns the request thread.
|
|
@@ -455,7 +451,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
455
451
|
return data
|
|
456
452
|
|
|
457
453
|
def read_team_one_expcat_with_http_info(self, id, subid, **kwargs): # noqa: E501
|
|
458
|
-
"""Read a
|
|
454
|
+
"""Read a category. # noqa: E501
|
|
459
455
|
|
|
460
456
|
This method makes a synchronous HTTP request by default. To make an
|
|
461
457
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -464,7 +460,7 @@ class ExperimentsCategoriesApi(object):
|
|
|
464
460
|
|
|
465
461
|
:param async_req bool
|
|
466
462
|
:param int id: ID of the team. (required)
|
|
467
|
-
:param int subid: ID of the
|
|
463
|
+
:param int subid: ID of the category. (required)
|
|
468
464
|
:return: Statuslike
|
|
469
465
|
If the method is called asynchronously,
|
|
470
466
|
returns the request thread.
|
|
@@ -110,10 +110,6 @@ class ExperimentsStatusApi(object):
|
|
|
110
110
|
local_var_files = {}
|
|
111
111
|
|
|
112
112
|
body_params = None
|
|
113
|
-
# HTTP header `Content-Type`
|
|
114
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
115
|
-
['application/json']) # noqa: E501
|
|
116
|
-
|
|
117
113
|
# Authentication setting
|
|
118
114
|
auth_settings = ['token'] # noqa: E501
|
|
119
115
|
|