flywheel-sdk 21.0.0rc0__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.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/METADATA +1 -1
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/RECORD +71 -23
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
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
|
+
from flywheel.models.libs_workflows_models_task_status import LibsWorkflowsModelsTaskStatus # noqa: F401,E501
|
|
22
|
+
from flywheel.models.task_priority import TaskPriority # noqa: F401,E501
|
|
23
|
+
|
|
24
|
+
class ReaderTaskModify(object):
|
|
25
|
+
|
|
26
|
+
swagger_types = {
|
|
27
|
+
'due_date': 'datetime',
|
|
28
|
+
'status': 'LibsWorkflowsModelsTaskStatus',
|
|
29
|
+
'priority': 'TaskPriority',
|
|
30
|
+
'tags': 'list[str]',
|
|
31
|
+
'transitions': 'dict(str, datetime)'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'due_date': 'due_date',
|
|
36
|
+
'status': 'status',
|
|
37
|
+
'priority': 'priority',
|
|
38
|
+
'tags': 'tags',
|
|
39
|
+
'transitions': 'transitions'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
rattribute_map = {
|
|
43
|
+
'due_date': 'due_date',
|
|
44
|
+
'status': 'status',
|
|
45
|
+
'priority': 'priority',
|
|
46
|
+
'tags': 'tags',
|
|
47
|
+
'transitions': 'transitions'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
def __init__(self, due_date=None, status=None, priority=None, tags=None, transitions=None): # noqa: E501
|
|
51
|
+
"""ReaderTaskModify - a model defined in Swagger"""
|
|
52
|
+
super(ReaderTaskModify, self).__init__()
|
|
53
|
+
|
|
54
|
+
self._due_date = None
|
|
55
|
+
self._status = None
|
|
56
|
+
self._priority = None
|
|
57
|
+
self._tags = None
|
|
58
|
+
self._transitions = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
self.alt_discriminator = None
|
|
61
|
+
|
|
62
|
+
if due_date is not None:
|
|
63
|
+
self.due_date = due_date
|
|
64
|
+
if status is not None:
|
|
65
|
+
self.status = status
|
|
66
|
+
if priority is not None:
|
|
67
|
+
self.priority = priority
|
|
68
|
+
if tags is not None:
|
|
69
|
+
self.tags = tags
|
|
70
|
+
if transitions is not None:
|
|
71
|
+
self.transitions = transitions
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def due_date(self):
|
|
75
|
+
"""Gets the due_date of this ReaderTaskModify.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:return: The due_date of this ReaderTaskModify.
|
|
79
|
+
:rtype: datetime
|
|
80
|
+
"""
|
|
81
|
+
return self._due_date
|
|
82
|
+
|
|
83
|
+
@due_date.setter
|
|
84
|
+
def due_date(self, due_date):
|
|
85
|
+
"""Sets the due_date of this ReaderTaskModify.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:param due_date: The due_date of this ReaderTaskModify. # noqa: E501
|
|
89
|
+
:type: datetime
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
self._due_date = due_date
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def status(self):
|
|
96
|
+
"""Gets the status of this ReaderTaskModify.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:return: The status of this ReaderTaskModify.
|
|
100
|
+
:rtype: LibsWorkflowsModelsTaskStatus
|
|
101
|
+
"""
|
|
102
|
+
return self._status
|
|
103
|
+
|
|
104
|
+
@status.setter
|
|
105
|
+
def status(self, status):
|
|
106
|
+
"""Sets the status of this ReaderTaskModify.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
:param status: The status of this ReaderTaskModify. # noqa: E501
|
|
110
|
+
:type: LibsWorkflowsModelsTaskStatus
|
|
111
|
+
"""
|
|
112
|
+
|
|
113
|
+
self._status = status
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def priority(self):
|
|
117
|
+
"""Gets the priority of this ReaderTaskModify.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The priority of this ReaderTaskModify.
|
|
121
|
+
:rtype: TaskPriority
|
|
122
|
+
"""
|
|
123
|
+
return self._priority
|
|
124
|
+
|
|
125
|
+
@priority.setter
|
|
126
|
+
def priority(self, priority):
|
|
127
|
+
"""Sets the priority of this ReaderTaskModify.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param priority: The priority of this ReaderTaskModify. # noqa: E501
|
|
131
|
+
:type: TaskPriority
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._priority = priority
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def tags(self):
|
|
138
|
+
"""Gets the tags of this ReaderTaskModify.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The tags of this ReaderTaskModify.
|
|
142
|
+
:rtype: list[str]
|
|
143
|
+
"""
|
|
144
|
+
return self._tags
|
|
145
|
+
|
|
146
|
+
@tags.setter
|
|
147
|
+
def tags(self, tags):
|
|
148
|
+
"""Sets the tags of this ReaderTaskModify.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param tags: The tags of this ReaderTaskModify. # noqa: E501
|
|
152
|
+
:type: list[str]
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._tags = tags
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def transitions(self):
|
|
159
|
+
"""Gets the transitions of this ReaderTaskModify.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
:return: The transitions of this ReaderTaskModify.
|
|
163
|
+
:rtype: dict(str, datetime)
|
|
164
|
+
"""
|
|
165
|
+
return self._transitions
|
|
166
|
+
|
|
167
|
+
@transitions.setter
|
|
168
|
+
def transitions(self, transitions):
|
|
169
|
+
"""Sets the transitions of this ReaderTaskModify.
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:param transitions: The transitions of this ReaderTaskModify. # noqa: E501
|
|
173
|
+
:type: dict(str, datetime)
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
self._transitions = transitions
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def positional_to_model(value):
|
|
181
|
+
"""Converts a positional argument to a model value"""
|
|
182
|
+
return value
|
|
183
|
+
|
|
184
|
+
def return_value(self):
|
|
185
|
+
"""Unwraps return value from model"""
|
|
186
|
+
return self
|
|
187
|
+
|
|
188
|
+
def to_dict(self):
|
|
189
|
+
"""Returns the model properties as a dict"""
|
|
190
|
+
result = {}
|
|
191
|
+
|
|
192
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
193
|
+
value = getattr(self, attr)
|
|
194
|
+
if isinstance(value, list):
|
|
195
|
+
result[attr] = list(map(
|
|
196
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
197
|
+
value
|
|
198
|
+
))
|
|
199
|
+
elif hasattr(value, "to_dict"):
|
|
200
|
+
result[attr] = value.to_dict()
|
|
201
|
+
elif isinstance(value, dict):
|
|
202
|
+
result[attr] = dict(map(
|
|
203
|
+
lambda item: (item[0], item[1].to_dict())
|
|
204
|
+
if hasattr(item[1], "to_dict") else item,
|
|
205
|
+
value.items()
|
|
206
|
+
))
|
|
207
|
+
else:
|
|
208
|
+
result[attr] = value
|
|
209
|
+
|
|
210
|
+
return result
|
|
211
|
+
|
|
212
|
+
def to_str(self):
|
|
213
|
+
"""Returns the string representation of the model"""
|
|
214
|
+
return pprint.pformat(self.to_dict())
|
|
215
|
+
|
|
216
|
+
def __repr__(self):
|
|
217
|
+
"""For `print` and `pprint`"""
|
|
218
|
+
return self.to_str()
|
|
219
|
+
|
|
220
|
+
def __eq__(self, other):
|
|
221
|
+
"""Returns true if both objects are equal"""
|
|
222
|
+
if not isinstance(other, ReaderTaskModify):
|
|
223
|
+
return False
|
|
224
|
+
|
|
225
|
+
return self.__dict__ == other.__dict__
|
|
226
|
+
|
|
227
|
+
def __ne__(self, other):
|
|
228
|
+
"""Returns true if both objects are not equal"""
|
|
229
|
+
return not self == other
|
|
230
|
+
|
|
231
|
+
# Container emulation
|
|
232
|
+
def __getitem__(self, key):
|
|
233
|
+
"""Returns the value of key"""
|
|
234
|
+
key = self._map_key(key)
|
|
235
|
+
return getattr(self, key)
|
|
236
|
+
|
|
237
|
+
def __setitem__(self, key, value):
|
|
238
|
+
"""Sets the value of key"""
|
|
239
|
+
key = self._map_key(key)
|
|
240
|
+
setattr(self, key, value)
|
|
241
|
+
|
|
242
|
+
def __contains__(self, key):
|
|
243
|
+
"""Checks if the given value is a key in this object"""
|
|
244
|
+
key = self._map_key(key, raise_on_error=False)
|
|
245
|
+
return key is not None
|
|
246
|
+
|
|
247
|
+
def keys(self):
|
|
248
|
+
"""Returns the list of json properties in the object"""
|
|
249
|
+
return self.__class__.rattribute_map.keys()
|
|
250
|
+
|
|
251
|
+
def values(self):
|
|
252
|
+
"""Returns the list of values in the object"""
|
|
253
|
+
for key in self.__class__.attribute_map.keys():
|
|
254
|
+
yield getattr(self, key)
|
|
255
|
+
|
|
256
|
+
def items(self):
|
|
257
|
+
"""Returns the list of json property to value mapping"""
|
|
258
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
259
|
+
yield key, getattr(self, prop)
|
|
260
|
+
|
|
261
|
+
def get(self, key, default=None):
|
|
262
|
+
"""Get the value of the provided json property, or default"""
|
|
263
|
+
key = self._map_key(key, raise_on_error=False)
|
|
264
|
+
if key:
|
|
265
|
+
return getattr(self, key, default)
|
|
266
|
+
return default
|
|
267
|
+
|
|
268
|
+
def _map_key(self, key, raise_on_error=True):
|
|
269
|
+
result = self.__class__.rattribute_map.get(key)
|
|
270
|
+
if result is None:
|
|
271
|
+
if raise_on_error:
|
|
272
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
273
|
+
return None
|
|
274
|
+
return '_' + result
|