flywheel-sdk 21.0.0rc0__py2.py3-none-any.whl → 21.1.0rc0__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.
Files changed (69) hide show
  1. flywheel/__init__.py +51 -3
  2. flywheel/api/__init__.py +5 -0
  3. flywheel/api/audit_trail_api.py +8 -8
  4. flywheel/api/container_tasks_api.py +137 -0
  5. flywheel/api/form_responses_api.py +579 -0
  6. flywheel/api/jobs_api.py +97 -0
  7. flywheel/api/protocols_api.py +757 -0
  8. flywheel/api/staffing_pools_api.py +677 -0
  9. flywheel/api/tasks_api.py +897 -0
  10. flywheel/api_client.py +1 -1
  11. flywheel/configuration.py +2 -2
  12. flywheel/flywheel.py +369 -3
  13. flywheel/models/__init__.py +47 -4
  14. flywheel/models/action.py +3 -0
  15. flywheel/models/assignee.py +190 -0
  16. flywheel/models/assignee_type.py +28 -0
  17. flywheel/models/batch_create_filters.py +218 -0
  18. flywheel/models/{create_report_input.py → core_models_audit_trail_create_report_input.py} +24 -24
  19. flywheel/models/{modify_report_input.py → core_models_audit_trail_modify_report_input.py} +8 -8
  20. flywheel/models/{parent_type.py → core_models_search_parent_type.py} +1 -1
  21. flywheel/models/core_workflows_form_responses_models_form_parents.py +162 -0
  22. flywheel/models/core_workflows_form_responses_models_form_response_output.py +438 -0
  23. flywheel/models/core_workflows_reader_models_reader_task_parents.py +268 -0
  24. flywheel/models/current_user_output.py +31 -4
  25. flywheel/models/custom_field.py +404 -0
  26. flywheel/models/custom_form.py +242 -0
  27. flywheel/models/e_signature.py +241 -0
  28. flywheel/models/field_type.py +35 -0
  29. flywheel/models/form_response_base.py +310 -0
  30. flywheel/models/form_response_create.py +192 -0
  31. flywheel/models/libs_workflows_models_parent_type.py +31 -0
  32. flywheel/models/libs_workflows_models_task_status.py +31 -0
  33. flywheel/models/modify_user_input.py +31 -4
  34. flywheel/models/page_generic_form_response_output.py +217 -0
  35. flywheel/models/page_generic_protocol.py +242 -0
  36. flywheel/models/page_generic_reader_task_output.py +242 -0
  37. flywheel/models/page_generic_staffing_pool.py +242 -0
  38. flywheel/models/protocol.py +511 -0
  39. flywheel/models/protocol_e_signature_config.py +190 -0
  40. flywheel/models/protocol_input.py +352 -0
  41. flywheel/models/protocol_modify.py +275 -0
  42. flywheel/models/protocol_status.py +29 -0
  43. flywheel/models/reader_batch_create.py +460 -0
  44. flywheel/models/reader_task.py +723 -0
  45. flywheel/models/reader_task_config.py +188 -0
  46. flywheel/models/reader_task_create.py +541 -0
  47. flywheel/models/reader_task_modify.py +274 -0
  48. flywheel/models/reader_task_output.py +750 -0
  49. flywheel/models/reader_task_parent_details.py +295 -0
  50. flywheel/models/save_search_parent.py +4 -4
  51. flywheel/models/select_item.py +189 -0
  52. flywheel/models/staffing_pool.py +322 -0
  53. flywheel/models/staffing_pool_create.py +215 -0
  54. flywheel/models/staffing_pool_list.py +163 -0
  55. flywheel/models/staffing_pool_modify.py +217 -0
  56. flywheel/models/status_transitions.py +244 -0
  57. flywheel/models/task_assign.py +192 -0
  58. flywheel/models/task_facet.py +28 -0
  59. flywheel/models/task_parent_ref.py +243 -0
  60. flywheel/models/task_parent_ref_input.py +217 -0
  61. flywheel/models/task_priority.py +30 -0
  62. flywheel/models/task_submission.py +188 -0
  63. flywheel/models/user_input.py +31 -4
  64. flywheel/models/validation_rule.py +189 -0
  65. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/METADATA +1 -1
  66. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/RECORD +69 -21
  67. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/WHEEL +0 -0
  68. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
  69. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,541 @@
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.assignee import Assignee # noqa: F401,E501
22
+ from flywheel.models.libs_workflows_models_task_status import LibsWorkflowsModelsTaskStatus # noqa: F401,E501
23
+ from flywheel.models.status_transitions import StatusTransitions # noqa: F401,E501
24
+ from flywheel.models.task_parent_ref_input import TaskParentRefInput # noqa: F401,E501
25
+ from flywheel.models.task_priority import TaskPriority # noqa: F401,E501
26
+
27
+ class ReaderTaskCreate(object):
28
+
29
+ swagger_types = {
30
+ 'type': 'str',
31
+ 'subcategory': 'str',
32
+ 'status': 'LibsWorkflowsModelsTaskStatus',
33
+ 'assignee': 'Assignee',
34
+ 'creator': 'str',
35
+ 'parent_ref': 'TaskParentRefInput',
36
+ 'staffing_pool': 'str',
37
+ 'created': 'datetime',
38
+ 'modified': 'datetime',
39
+ 'due_date': 'datetime',
40
+ 'description': 'str',
41
+ 'priority': 'TaskPriority',
42
+ 'protocol_id': 'str',
43
+ 'tags': 'list[str]',
44
+ 'transitions': 'StatusTransitions'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'type': 'type',
49
+ 'subcategory': 'subcategory',
50
+ 'status': 'status',
51
+ 'assignee': 'assignee',
52
+ 'creator': 'creator',
53
+ 'parent_ref': 'parent_ref',
54
+ 'staffing_pool': 'staffing_pool',
55
+ 'created': 'created',
56
+ 'modified': 'modified',
57
+ 'due_date': 'due_date',
58
+ 'description': 'description',
59
+ 'priority': 'priority',
60
+ 'protocol_id': 'protocol_id',
61
+ 'tags': 'tags',
62
+ 'transitions': 'transitions'
63
+ }
64
+
65
+ rattribute_map = {
66
+ 'type': 'type',
67
+ 'subcategory': 'subcategory',
68
+ 'status': 'status',
69
+ 'assignee': 'assignee',
70
+ 'creator': 'creator',
71
+ 'parent_ref': 'parent_ref',
72
+ 'staffing_pool': 'staffing_pool',
73
+ 'created': 'created',
74
+ 'modified': 'modified',
75
+ 'due_date': 'due_date',
76
+ 'description': 'description',
77
+ 'priority': 'priority',
78
+ 'protocol_id': 'protocol_id',
79
+ 'tags': 'tags',
80
+ 'transitions': 'transitions'
81
+ }
82
+
83
+ def __init__(self, type='reader', subcategory=None, status=None, assignee=None, creator=None, parent_ref=None, staffing_pool=None, created=None, modified=None, due_date=None, description=None, priority=None, protocol_id=None, tags=None, transitions=None): # noqa: E501
84
+ """ReaderTaskCreate - a model defined in Swagger"""
85
+ super(ReaderTaskCreate, self).__init__()
86
+
87
+ self._type = None
88
+ self._subcategory = None
89
+ self._status = None
90
+ self._assignee = None
91
+ self._creator = None
92
+ self._parent_ref = None
93
+ self._staffing_pool = None
94
+ self._created = None
95
+ self._modified = None
96
+ self._due_date = None
97
+ self._description = None
98
+ self._priority = None
99
+ self._protocol_id = None
100
+ self._tags = None
101
+ self._transitions = None
102
+ self.discriminator = None
103
+ self.alt_discriminator = None
104
+
105
+ if type is not None:
106
+ self.type = type
107
+ self.subcategory = subcategory
108
+ self.status = status
109
+ if assignee is not None:
110
+ self.assignee = assignee
111
+ if creator is not None:
112
+ self.creator = creator
113
+ self.parent_ref = parent_ref
114
+ if staffing_pool is not None:
115
+ self.staffing_pool = staffing_pool
116
+ if created is not None:
117
+ self.created = created
118
+ if modified is not None:
119
+ self.modified = modified
120
+ self.due_date = due_date
121
+ if description is not None:
122
+ self.description = description
123
+ self.priority = priority
124
+ self.protocol_id = protocol_id
125
+ if tags is not None:
126
+ self.tags = tags
127
+ if transitions is not None:
128
+ self.transitions = transitions
129
+
130
+ @property
131
+ def type(self):
132
+ """Gets the type of this ReaderTaskCreate.
133
+
134
+
135
+ :return: The type of this ReaderTaskCreate.
136
+ :rtype: str
137
+ """
138
+ return self._type
139
+
140
+ @type.setter
141
+ def type(self, type):
142
+ """Sets the type of this ReaderTaskCreate.
143
+
144
+
145
+ :param type: The type of this ReaderTaskCreate. # noqa: E501
146
+ :type: str
147
+ """
148
+
149
+ self._type = type
150
+
151
+ @property
152
+ def subcategory(self):
153
+ """Gets the subcategory of this ReaderTaskCreate.
154
+
155
+
156
+ :return: The subcategory of this ReaderTaskCreate.
157
+ :rtype: str
158
+ """
159
+ return self._subcategory
160
+
161
+ @subcategory.setter
162
+ def subcategory(self, subcategory):
163
+ """Sets the subcategory of this ReaderTaskCreate.
164
+
165
+
166
+ :param subcategory: The subcategory of this ReaderTaskCreate. # noqa: E501
167
+ :type: str
168
+ """
169
+
170
+ self._subcategory = subcategory
171
+
172
+ @property
173
+ def status(self):
174
+ """Gets the status of this ReaderTaskCreate.
175
+
176
+
177
+ :return: The status of this ReaderTaskCreate.
178
+ :rtype: LibsWorkflowsModelsTaskStatus
179
+ """
180
+ return self._status
181
+
182
+ @status.setter
183
+ def status(self, status):
184
+ """Sets the status of this ReaderTaskCreate.
185
+
186
+
187
+ :param status: The status of this ReaderTaskCreate. # noqa: E501
188
+ :type: LibsWorkflowsModelsTaskStatus
189
+ """
190
+
191
+ self._status = status
192
+
193
+ @property
194
+ def assignee(self):
195
+ """Gets the assignee of this ReaderTaskCreate.
196
+
197
+
198
+ :return: The assignee of this ReaderTaskCreate.
199
+ :rtype: Assignee
200
+ """
201
+ return self._assignee
202
+
203
+ @assignee.setter
204
+ def assignee(self, assignee):
205
+ """Sets the assignee of this ReaderTaskCreate.
206
+
207
+
208
+ :param assignee: The assignee of this ReaderTaskCreate. # noqa: E501
209
+ :type: Assignee
210
+ """
211
+
212
+ self._assignee = assignee
213
+
214
+ @property
215
+ def creator(self):
216
+ """Gets the creator of this ReaderTaskCreate.
217
+
218
+
219
+ :return: The creator of this ReaderTaskCreate.
220
+ :rtype: str
221
+ """
222
+ return self._creator
223
+
224
+ @creator.setter
225
+ def creator(self, creator):
226
+ """Sets the creator of this ReaderTaskCreate.
227
+
228
+
229
+ :param creator: The creator of this ReaderTaskCreate. # noqa: E501
230
+ :type: str
231
+ """
232
+
233
+ self._creator = creator
234
+
235
+ @property
236
+ def parent_ref(self):
237
+ """Gets the parent_ref of this ReaderTaskCreate.
238
+
239
+
240
+ :return: The parent_ref of this ReaderTaskCreate.
241
+ :rtype: TaskParentRefInput
242
+ """
243
+ return self._parent_ref
244
+
245
+ @parent_ref.setter
246
+ def parent_ref(self, parent_ref):
247
+ """Sets the parent_ref of this ReaderTaskCreate.
248
+
249
+
250
+ :param parent_ref: The parent_ref of this ReaderTaskCreate. # noqa: E501
251
+ :type: TaskParentRefInput
252
+ """
253
+
254
+ self._parent_ref = parent_ref
255
+
256
+ @property
257
+ def staffing_pool(self):
258
+ """Gets the staffing_pool of this ReaderTaskCreate.
259
+
260
+
261
+ :return: The staffing_pool of this ReaderTaskCreate.
262
+ :rtype: str
263
+ """
264
+ return self._staffing_pool
265
+
266
+ @staffing_pool.setter
267
+ def staffing_pool(self, staffing_pool):
268
+ """Sets the staffing_pool of this ReaderTaskCreate.
269
+
270
+
271
+ :param staffing_pool: The staffing_pool of this ReaderTaskCreate. # noqa: E501
272
+ :type: str
273
+ """
274
+
275
+ self._staffing_pool = staffing_pool
276
+
277
+ @property
278
+ def created(self):
279
+ """Gets the created of this ReaderTaskCreate.
280
+
281
+
282
+ :return: The created of this ReaderTaskCreate.
283
+ :rtype: datetime
284
+ """
285
+ return self._created
286
+
287
+ @created.setter
288
+ def created(self, created):
289
+ """Sets the created of this ReaderTaskCreate.
290
+
291
+
292
+ :param created: The created of this ReaderTaskCreate. # noqa: E501
293
+ :type: datetime
294
+ """
295
+
296
+ self._created = created
297
+
298
+ @property
299
+ def modified(self):
300
+ """Gets the modified of this ReaderTaskCreate.
301
+
302
+
303
+ :return: The modified of this ReaderTaskCreate.
304
+ :rtype: datetime
305
+ """
306
+ return self._modified
307
+
308
+ @modified.setter
309
+ def modified(self, modified):
310
+ """Sets the modified of this ReaderTaskCreate.
311
+
312
+
313
+ :param modified: The modified of this ReaderTaskCreate. # noqa: E501
314
+ :type: datetime
315
+ """
316
+
317
+ self._modified = modified
318
+
319
+ @property
320
+ def due_date(self):
321
+ """Gets the due_date of this ReaderTaskCreate.
322
+
323
+
324
+ :return: The due_date of this ReaderTaskCreate.
325
+ :rtype: datetime
326
+ """
327
+ return self._due_date
328
+
329
+ @due_date.setter
330
+ def due_date(self, due_date):
331
+ """Sets the due_date of this ReaderTaskCreate.
332
+
333
+
334
+ :param due_date: The due_date of this ReaderTaskCreate. # noqa: E501
335
+ :type: datetime
336
+ """
337
+
338
+ self._due_date = due_date
339
+
340
+ @property
341
+ def description(self):
342
+ """Gets the description of this ReaderTaskCreate.
343
+
344
+
345
+ :return: The description of this ReaderTaskCreate.
346
+ :rtype: str
347
+ """
348
+ return self._description
349
+
350
+ @description.setter
351
+ def description(self, description):
352
+ """Sets the description of this ReaderTaskCreate.
353
+
354
+
355
+ :param description: The description of this ReaderTaskCreate. # noqa: E501
356
+ :type: str
357
+ """
358
+
359
+ self._description = description
360
+
361
+ @property
362
+ def priority(self):
363
+ """Gets the priority of this ReaderTaskCreate.
364
+
365
+
366
+ :return: The priority of this ReaderTaskCreate.
367
+ :rtype: TaskPriority
368
+ """
369
+ return self._priority
370
+
371
+ @priority.setter
372
+ def priority(self, priority):
373
+ """Sets the priority of this ReaderTaskCreate.
374
+
375
+
376
+ :param priority: The priority of this ReaderTaskCreate. # noqa: E501
377
+ :type: TaskPriority
378
+ """
379
+
380
+ self._priority = priority
381
+
382
+ @property
383
+ def protocol_id(self):
384
+ """Gets the protocol_id of this ReaderTaskCreate.
385
+
386
+
387
+ :return: The protocol_id of this ReaderTaskCreate.
388
+ :rtype: str
389
+ """
390
+ return self._protocol_id
391
+
392
+ @protocol_id.setter
393
+ def protocol_id(self, protocol_id):
394
+ """Sets the protocol_id of this ReaderTaskCreate.
395
+
396
+
397
+ :param protocol_id: The protocol_id of this ReaderTaskCreate. # noqa: E501
398
+ :type: str
399
+ """
400
+
401
+ self._protocol_id = protocol_id
402
+
403
+ @property
404
+ def tags(self):
405
+ """Gets the tags of this ReaderTaskCreate.
406
+
407
+
408
+ :return: The tags of this ReaderTaskCreate.
409
+ :rtype: list[str]
410
+ """
411
+ return self._tags
412
+
413
+ @tags.setter
414
+ def tags(self, tags):
415
+ """Sets the tags of this ReaderTaskCreate.
416
+
417
+
418
+ :param tags: The tags of this ReaderTaskCreate. # noqa: E501
419
+ :type: list[str]
420
+ """
421
+
422
+ self._tags = tags
423
+
424
+ @property
425
+ def transitions(self):
426
+ """Gets the transitions of this ReaderTaskCreate.
427
+
428
+
429
+ :return: The transitions of this ReaderTaskCreate.
430
+ :rtype: StatusTransitions
431
+ """
432
+ return self._transitions
433
+
434
+ @transitions.setter
435
+ def transitions(self, transitions):
436
+ """Sets the transitions of this ReaderTaskCreate.
437
+
438
+
439
+ :param transitions: The transitions of this ReaderTaskCreate. # noqa: E501
440
+ :type: StatusTransitions
441
+ """
442
+
443
+ self._transitions = transitions
444
+
445
+
446
+ @staticmethod
447
+ def positional_to_model(value):
448
+ """Converts a positional argument to a model value"""
449
+ return value
450
+
451
+ def return_value(self):
452
+ """Unwraps return value from model"""
453
+ return self
454
+
455
+ def to_dict(self):
456
+ """Returns the model properties as a dict"""
457
+ result = {}
458
+
459
+ for attr, _ in six.iteritems(self.swagger_types):
460
+ value = getattr(self, attr)
461
+ if isinstance(value, list):
462
+ result[attr] = list(map(
463
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
464
+ value
465
+ ))
466
+ elif hasattr(value, "to_dict"):
467
+ result[attr] = value.to_dict()
468
+ elif isinstance(value, dict):
469
+ result[attr] = dict(map(
470
+ lambda item: (item[0], item[1].to_dict())
471
+ if hasattr(item[1], "to_dict") else item,
472
+ value.items()
473
+ ))
474
+ else:
475
+ result[attr] = value
476
+
477
+ return result
478
+
479
+ def to_str(self):
480
+ """Returns the string representation of the model"""
481
+ return pprint.pformat(self.to_dict())
482
+
483
+ def __repr__(self):
484
+ """For `print` and `pprint`"""
485
+ return self.to_str()
486
+
487
+ def __eq__(self, other):
488
+ """Returns true if both objects are equal"""
489
+ if not isinstance(other, ReaderTaskCreate):
490
+ return False
491
+
492
+ return self.__dict__ == other.__dict__
493
+
494
+ def __ne__(self, other):
495
+ """Returns true if both objects are not equal"""
496
+ return not self == other
497
+
498
+ # Container emulation
499
+ def __getitem__(self, key):
500
+ """Returns the value of key"""
501
+ key = self._map_key(key)
502
+ return getattr(self, key)
503
+
504
+ def __setitem__(self, key, value):
505
+ """Sets the value of key"""
506
+ key = self._map_key(key)
507
+ setattr(self, key, value)
508
+
509
+ def __contains__(self, key):
510
+ """Checks if the given value is a key in this object"""
511
+ key = self._map_key(key, raise_on_error=False)
512
+ return key is not None
513
+
514
+ def keys(self):
515
+ """Returns the list of json properties in the object"""
516
+ return self.__class__.rattribute_map.keys()
517
+
518
+ def values(self):
519
+ """Returns the list of values in the object"""
520
+ for key in self.__class__.attribute_map.keys():
521
+ yield getattr(self, key)
522
+
523
+ def items(self):
524
+ """Returns the list of json property to value mapping"""
525
+ for key, prop in self.__class__.rattribute_map.items():
526
+ yield key, getattr(self, prop)
527
+
528
+ def get(self, key, default=None):
529
+ """Get the value of the provided json property, or default"""
530
+ key = self._map_key(key, raise_on_error=False)
531
+ if key:
532
+ return getattr(self, key, default)
533
+ return default
534
+
535
+ def _map_key(self, key, raise_on_error=True):
536
+ result = self.__class__.rattribute_map.get(key)
537
+ if result is None:
538
+ if raise_on_error:
539
+ raise AttributeError('Invalid attribute name: {}'.format(key))
540
+ return None
541
+ return '_' + result