flywheel-sdk 21.0.0__py2.py3-none-any.whl → 21.1.0__py2.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.
- flywheel/__init__.py +51 -3
- flywheel/api/__init__.py +5 -0
- flywheel/api/audit_trail_api.py +8 -8
- flywheel/api/container_tasks_api.py +137 -0
- flywheel/api/form_responses_api.py +579 -0
- flywheel/api/jobs_api.py +97 -0
- flywheel/api/protocols_api.py +757 -0
- flywheel/api/staffing_pools_api.py +677 -0
- flywheel/api/tasks_api.py +897 -0
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/flywheel.py +369 -3
- flywheel/models/__init__.py +47 -4
- flywheel/models/action.py +3 -0
- flywheel/models/assignee.py +190 -0
- flywheel/models/assignee_type.py +28 -0
- flywheel/models/batch_create_filters.py +218 -0
- flywheel/models/container_type.py +1 -0
- flywheel/models/{create_report_input.py → core_models_audit_trail_create_report_input.py} +24 -24
- flywheel/models/{modify_report_input.py → core_models_audit_trail_modify_report_input.py} +8 -8
- flywheel/models/{parent_type.py → core_models_search_parent_type.py} +1 -1
- flywheel/models/core_workflows_form_responses_models_form_parents.py +162 -0
- flywheel/models/core_workflows_form_responses_models_form_response_output.py +438 -0
- flywheel/models/core_workflows_reader_models_reader_task_parents.py +268 -0
- flywheel/models/current_user_output.py +31 -4
- flywheel/models/custom_field.py +404 -0
- flywheel/models/custom_form.py +242 -0
- flywheel/models/e_signature.py +241 -0
- flywheel/models/features.py +1 -28
- flywheel/models/field_type.py +35 -0
- flywheel/models/form_response_base.py +310 -0
- flywheel/models/form_response_create.py +192 -0
- flywheel/models/libs_workflows_models_parent_type.py +31 -0
- flywheel/models/libs_workflows_models_task_status.py +31 -0
- flywheel/models/modify_user_input.py +31 -4
- flywheel/models/page_generic_form_response_output.py +217 -0
- flywheel/models/page_generic_protocol.py +242 -0
- flywheel/models/page_generic_reader_task_output.py +242 -0
- flywheel/models/page_generic_staffing_pool.py +242 -0
- flywheel/models/protocol.py +511 -0
- flywheel/models/protocol_e_signature_config.py +190 -0
- flywheel/models/protocol_input.py +352 -0
- flywheel/models/protocol_modify.py +275 -0
- flywheel/models/protocol_status.py +29 -0
- flywheel/models/reader_batch_create.py +460 -0
- flywheel/models/reader_task.py +723 -0
- flywheel/models/reader_task_config.py +188 -0
- flywheel/models/reader_task_create.py +541 -0
- flywheel/models/reader_task_modify.py +274 -0
- flywheel/models/reader_task_output.py +750 -0
- flywheel/models/reader_task_parent_details.py +295 -0
- flywheel/models/save_search_parent.py +4 -4
- flywheel/models/select_item.py +189 -0
- flywheel/models/staffing_pool.py +322 -0
- flywheel/models/staffing_pool_create.py +215 -0
- flywheel/models/staffing_pool_list.py +163 -0
- flywheel/models/staffing_pool_modify.py +217 -0
- flywheel/models/status_transitions.py +244 -0
- flywheel/models/task_assign.py +192 -0
- flywheel/models/task_facet.py +28 -0
- flywheel/models/task_parent_ref.py +243 -0
- flywheel/models/task_parent_ref_input.py +217 -0
- flywheel/models/task_priority.py +30 -0
- flywheel/models/task_submission.py +188 -0
- flywheel/models/user_input.py +31 -4
- flywheel/models/validation_rule.py +189 -0
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/METADATA +1 -1
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/RECORD +71 -23
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Flywheel
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 0.0.1
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## NOTE: This file is auto generated by the swagger code generator program.
|
|
15
|
+
## Do not edit the file manually.
|
|
16
|
+
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
class CoreWorkflowsReaderModelsReaderTaskParents(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'project': 'str',
|
|
25
|
+
'subject': 'str',
|
|
26
|
+
'session': 'str',
|
|
27
|
+
'acquisition': 'str',
|
|
28
|
+
'file': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'project': 'project',
|
|
33
|
+
'subject': 'subject',
|
|
34
|
+
'session': 'session',
|
|
35
|
+
'acquisition': 'acquisition',
|
|
36
|
+
'file': 'file'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rattribute_map = {
|
|
40
|
+
'project': 'project',
|
|
41
|
+
'subject': 'subject',
|
|
42
|
+
'session': 'session',
|
|
43
|
+
'acquisition': 'acquisition',
|
|
44
|
+
'file': 'file'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, project=None, subject=None, session=None, acquisition=None, file=None): # noqa: E501
|
|
48
|
+
"""CoreWorkflowsReaderModelsReaderTaskParents - a model defined in Swagger"""
|
|
49
|
+
super(CoreWorkflowsReaderModelsReaderTaskParents, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._project = None
|
|
52
|
+
self._subject = None
|
|
53
|
+
self._session = None
|
|
54
|
+
self._acquisition = None
|
|
55
|
+
self._file = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
self.alt_discriminator = None
|
|
58
|
+
|
|
59
|
+
self.project = project
|
|
60
|
+
self.subject = subject
|
|
61
|
+
self.session = session
|
|
62
|
+
if acquisition is not None:
|
|
63
|
+
self.acquisition = acquisition
|
|
64
|
+
if file is not None:
|
|
65
|
+
self.file = file
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def project(self):
|
|
69
|
+
"""Gets the project of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
:return: The project of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
73
|
+
:rtype: str
|
|
74
|
+
"""
|
|
75
|
+
return self._project
|
|
76
|
+
|
|
77
|
+
@project.setter
|
|
78
|
+
def project(self, project):
|
|
79
|
+
"""Sets the project of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
:param project: The project of this CoreWorkflowsReaderModelsReaderTaskParents. # noqa: E501
|
|
83
|
+
:type: str
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
self._project = project
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def subject(self):
|
|
90
|
+
"""Gets the subject of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:return: The subject of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._subject
|
|
97
|
+
|
|
98
|
+
@subject.setter
|
|
99
|
+
def subject(self, subject):
|
|
100
|
+
"""Sets the subject of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
:param subject: The subject of this CoreWorkflowsReaderModelsReaderTaskParents. # noqa: E501
|
|
104
|
+
:type: str
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._subject = subject
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def session(self):
|
|
111
|
+
"""Gets the session of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:return: The session of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
115
|
+
:rtype: str
|
|
116
|
+
"""
|
|
117
|
+
return self._session
|
|
118
|
+
|
|
119
|
+
@session.setter
|
|
120
|
+
def session(self, session):
|
|
121
|
+
"""Sets the session of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
:param session: The session of this CoreWorkflowsReaderModelsReaderTaskParents. # noqa: E501
|
|
125
|
+
:type: str
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._session = session
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def acquisition(self):
|
|
132
|
+
"""Gets the acquisition of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:return: The acquisition of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._acquisition
|
|
139
|
+
|
|
140
|
+
@acquisition.setter
|
|
141
|
+
def acquisition(self, acquisition):
|
|
142
|
+
"""Sets the acquisition of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
:param acquisition: The acquisition of this CoreWorkflowsReaderModelsReaderTaskParents. # noqa: E501
|
|
146
|
+
:type: str
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
self._acquisition = acquisition
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def file(self):
|
|
153
|
+
"""Gets the file of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:return: The file of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._file
|
|
160
|
+
|
|
161
|
+
@file.setter
|
|
162
|
+
def file(self, file):
|
|
163
|
+
"""Sets the file of this CoreWorkflowsReaderModelsReaderTaskParents.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:param file: The file of this CoreWorkflowsReaderModelsReaderTaskParents. # noqa: E501
|
|
167
|
+
:type: str
|
|
168
|
+
"""
|
|
169
|
+
|
|
170
|
+
self._file = file
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
@staticmethod
|
|
174
|
+
def positional_to_model(value):
|
|
175
|
+
"""Converts a positional argument to a model value"""
|
|
176
|
+
return value
|
|
177
|
+
|
|
178
|
+
def return_value(self):
|
|
179
|
+
"""Unwraps return value from model"""
|
|
180
|
+
return self
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
result[attr] = value
|
|
203
|
+
|
|
204
|
+
return result
|
|
205
|
+
|
|
206
|
+
def to_str(self):
|
|
207
|
+
"""Returns the string representation of the model"""
|
|
208
|
+
return pprint.pformat(self.to_dict())
|
|
209
|
+
|
|
210
|
+
def __repr__(self):
|
|
211
|
+
"""For `print` and `pprint`"""
|
|
212
|
+
return self.to_str()
|
|
213
|
+
|
|
214
|
+
def __eq__(self, other):
|
|
215
|
+
"""Returns true if both objects are equal"""
|
|
216
|
+
if not isinstance(other, CoreWorkflowsReaderModelsReaderTaskParents):
|
|
217
|
+
return False
|
|
218
|
+
|
|
219
|
+
return self.__dict__ == other.__dict__
|
|
220
|
+
|
|
221
|
+
def __ne__(self, other):
|
|
222
|
+
"""Returns true if both objects are not equal"""
|
|
223
|
+
return not self == other
|
|
224
|
+
|
|
225
|
+
# Container emulation
|
|
226
|
+
def __getitem__(self, key):
|
|
227
|
+
"""Returns the value of key"""
|
|
228
|
+
key = self._map_key(key)
|
|
229
|
+
return getattr(self, key)
|
|
230
|
+
|
|
231
|
+
def __setitem__(self, key, value):
|
|
232
|
+
"""Sets the value of key"""
|
|
233
|
+
key = self._map_key(key)
|
|
234
|
+
setattr(self, key, value)
|
|
235
|
+
|
|
236
|
+
def __contains__(self, key):
|
|
237
|
+
"""Checks if the given value is a key in this object"""
|
|
238
|
+
key = self._map_key(key, raise_on_error=False)
|
|
239
|
+
return key is not None
|
|
240
|
+
|
|
241
|
+
def keys(self):
|
|
242
|
+
"""Returns the list of json properties in the object"""
|
|
243
|
+
return self.__class__.rattribute_map.keys()
|
|
244
|
+
|
|
245
|
+
def values(self):
|
|
246
|
+
"""Returns the list of values in the object"""
|
|
247
|
+
for key in self.__class__.attribute_map.keys():
|
|
248
|
+
yield getattr(self, key)
|
|
249
|
+
|
|
250
|
+
def items(self):
|
|
251
|
+
"""Returns the list of json property to value mapping"""
|
|
252
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
253
|
+
yield key, getattr(self, prop)
|
|
254
|
+
|
|
255
|
+
def get(self, key, default=None):
|
|
256
|
+
"""Get the value of the provided json property, or default"""
|
|
257
|
+
key = self._map_key(key, raise_on_error=False)
|
|
258
|
+
if key:
|
|
259
|
+
return getattr(self, key, default)
|
|
260
|
+
return default
|
|
261
|
+
|
|
262
|
+
def _map_key(self, key, raise_on_error=True):
|
|
263
|
+
result = self.__class__.rattribute_map.get(key)
|
|
264
|
+
if result is None:
|
|
265
|
+
if raise_on_error:
|
|
266
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
267
|
+
return None
|
|
268
|
+
return '_' + result
|
|
@@ -44,7 +44,8 @@ class CurrentUserOutput(object):
|
|
|
44
44
|
'info': 'object',
|
|
45
45
|
'firstlogin': 'str',
|
|
46
46
|
'lastlogin': 'str',
|
|
47
|
-
'visited_projects': 'list[str]'
|
|
47
|
+
'visited_projects': 'list[str]',
|
|
48
|
+
'ldap_sync_id': 'str'
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
attribute_map = {
|
|
@@ -67,7 +68,8 @@ class CurrentUserOutput(object):
|
|
|
67
68
|
'info': 'info',
|
|
68
69
|
'firstlogin': 'firstlogin',
|
|
69
70
|
'lastlogin': 'lastlogin',
|
|
70
|
-
'visited_projects': 'visited_projects'
|
|
71
|
+
'visited_projects': 'visited_projects',
|
|
72
|
+
'ldap_sync_id': 'ldap_sync_id'
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
rattribute_map = {
|
|
@@ -90,10 +92,11 @@ class CurrentUserOutput(object):
|
|
|
90
92
|
'info': 'info',
|
|
91
93
|
'firstlogin': 'firstlogin',
|
|
92
94
|
'lastlogin': 'lastlogin',
|
|
93
|
-
'visited_projects': 'visited_projects'
|
|
95
|
+
'visited_projects': 'visited_projects',
|
|
96
|
+
'ldap_sync_id': 'ldap_sync_id'
|
|
94
97
|
}
|
|
95
98
|
|
|
96
|
-
def __init__(self, id=None, user_id=None, firstname=None, lastname=None, email=None, auth0sub=None, roles=None, root=False, api_key=None, api_keys=None, avatar=None, avatars=None, disabled=None, preferences=None, created=None, modified=None, info=None, firstlogin=None, lastlogin=None, visited_projects=None): # noqa: E501
|
|
99
|
+
def __init__(self, id=None, user_id=None, firstname=None, lastname=None, email=None, auth0sub=None, roles=None, root=False, api_key=None, api_keys=None, avatar=None, avatars=None, disabled=None, preferences=None, created=None, modified=None, info=None, firstlogin=None, lastlogin=None, visited_projects=None, ldap_sync_id=None): # noqa: E501
|
|
97
100
|
"""CurrentUserOutput - a model defined in Swagger"""
|
|
98
101
|
super(CurrentUserOutput, self).__init__()
|
|
99
102
|
|
|
@@ -117,6 +120,7 @@ class CurrentUserOutput(object):
|
|
|
117
120
|
self._firstlogin = None
|
|
118
121
|
self._lastlogin = None
|
|
119
122
|
self._visited_projects = None
|
|
123
|
+
self._ldap_sync_id = None
|
|
120
124
|
self.discriminator = None
|
|
121
125
|
self.alt_discriminator = None
|
|
122
126
|
|
|
@@ -152,6 +156,8 @@ class CurrentUserOutput(object):
|
|
|
152
156
|
self.lastlogin = lastlogin
|
|
153
157
|
if visited_projects is not None:
|
|
154
158
|
self.visited_projects = visited_projects
|
|
159
|
+
if ldap_sync_id is not None:
|
|
160
|
+
self.ldap_sync_id = ldap_sync_id
|
|
155
161
|
|
|
156
162
|
@property
|
|
157
163
|
def id(self):
|
|
@@ -573,6 +579,27 @@ class CurrentUserOutput(object):
|
|
|
573
579
|
|
|
574
580
|
self._visited_projects = visited_projects
|
|
575
581
|
|
|
582
|
+
@property
|
|
583
|
+
def ldap_sync_id(self):
|
|
584
|
+
"""Gets the ldap_sync_id of this CurrentUserOutput.
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
:return: The ldap_sync_id of this CurrentUserOutput.
|
|
588
|
+
:rtype: str
|
|
589
|
+
"""
|
|
590
|
+
return self._ldap_sync_id
|
|
591
|
+
|
|
592
|
+
@ldap_sync_id.setter
|
|
593
|
+
def ldap_sync_id(self, ldap_sync_id):
|
|
594
|
+
"""Sets the ldap_sync_id of this CurrentUserOutput.
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
:param ldap_sync_id: The ldap_sync_id of this CurrentUserOutput. # noqa: E501
|
|
598
|
+
:type: str
|
|
599
|
+
"""
|
|
600
|
+
|
|
601
|
+
self._ldap_sync_id = ldap_sync_id
|
|
602
|
+
|
|
576
603
|
|
|
577
604
|
@staticmethod
|
|
578
605
|
def positional_to_model(value):
|