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.
Files changed (71) 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/container_type.py +1 -0
  19. flywheel/models/{create_report_input.py → core_models_audit_trail_create_report_input.py} +24 -24
  20. flywheel/models/{modify_report_input.py → core_models_audit_trail_modify_report_input.py} +8 -8
  21. flywheel/models/{parent_type.py → core_models_search_parent_type.py} +1 -1
  22. flywheel/models/core_workflows_form_responses_models_form_parents.py +162 -0
  23. flywheel/models/core_workflows_form_responses_models_form_response_output.py +438 -0
  24. flywheel/models/core_workflows_reader_models_reader_task_parents.py +268 -0
  25. flywheel/models/current_user_output.py +31 -4
  26. flywheel/models/custom_field.py +404 -0
  27. flywheel/models/custom_form.py +242 -0
  28. flywheel/models/e_signature.py +241 -0
  29. flywheel/models/features.py +1 -28
  30. flywheel/models/field_type.py +35 -0
  31. flywheel/models/form_response_base.py +310 -0
  32. flywheel/models/form_response_create.py +192 -0
  33. flywheel/models/libs_workflows_models_parent_type.py +31 -0
  34. flywheel/models/libs_workflows_models_task_status.py +31 -0
  35. flywheel/models/modify_user_input.py +31 -4
  36. flywheel/models/page_generic_form_response_output.py +217 -0
  37. flywheel/models/page_generic_protocol.py +242 -0
  38. flywheel/models/page_generic_reader_task_output.py +242 -0
  39. flywheel/models/page_generic_staffing_pool.py +242 -0
  40. flywheel/models/protocol.py +511 -0
  41. flywheel/models/protocol_e_signature_config.py +190 -0
  42. flywheel/models/protocol_input.py +352 -0
  43. flywheel/models/protocol_modify.py +275 -0
  44. flywheel/models/protocol_status.py +29 -0
  45. flywheel/models/reader_batch_create.py +460 -0
  46. flywheel/models/reader_task.py +723 -0
  47. flywheel/models/reader_task_config.py +188 -0
  48. flywheel/models/reader_task_create.py +541 -0
  49. flywheel/models/reader_task_modify.py +274 -0
  50. flywheel/models/reader_task_output.py +750 -0
  51. flywheel/models/reader_task_parent_details.py +295 -0
  52. flywheel/models/save_search_parent.py +4 -4
  53. flywheel/models/select_item.py +189 -0
  54. flywheel/models/staffing_pool.py +322 -0
  55. flywheel/models/staffing_pool_create.py +215 -0
  56. flywheel/models/staffing_pool_list.py +163 -0
  57. flywheel/models/staffing_pool_modify.py +217 -0
  58. flywheel/models/status_transitions.py +244 -0
  59. flywheel/models/task_assign.py +192 -0
  60. flywheel/models/task_facet.py +28 -0
  61. flywheel/models/task_parent_ref.py +243 -0
  62. flywheel/models/task_parent_ref_input.py +217 -0
  63. flywheel/models/task_priority.py +30 -0
  64. flywheel/models/task_submission.py +188 -0
  65. flywheel/models/user_input.py +31 -4
  66. flywheel/models/validation_rule.py +189 -0
  67. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/METADATA +1 -1
  68. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/RECORD +71 -23
  69. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/WHEEL +0 -0
  70. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/licenses/LICENSE.txt +0 -0
  71. {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,750 @@
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.core_workflows_reader_models_reader_task_parents import CoreWorkflowsReaderModelsReaderTaskParents # noqa: F401,E501
23
+ from flywheel.models.e_signature import ESignature # noqa: F401,E501
24
+ from flywheel.models.libs_workflows_models_task_status import LibsWorkflowsModelsTaskStatus # noqa: F401,E501
25
+ from flywheel.models.reader_task_parent_details import ReaderTaskParentDetails # noqa: F401,E501
26
+ from flywheel.models.status_transitions import StatusTransitions # noqa: F401,E501
27
+ from flywheel.models.task_parent_ref import TaskParentRef # noqa: F401,E501
28
+ from flywheel.models.task_priority import TaskPriority # noqa: F401,E501
29
+
30
+ class ReaderTaskOutput(object):
31
+
32
+ swagger_types = {
33
+ 'id': 'str',
34
+ 'type': 'str',
35
+ 'task_id': 'str',
36
+ 'batch_number': 'int',
37
+ 'item_number': 'int',
38
+ 'subcategory': 'str',
39
+ 'status': 'LibsWorkflowsModelsTaskStatus',
40
+ 'assignee': 'Assignee',
41
+ 'creator': 'str',
42
+ 'parent_ref': 'TaskParentRef',
43
+ 'staffing_pool': 'str',
44
+ 'parents': 'CoreWorkflowsReaderModelsReaderTaskParents',
45
+ 'created': 'datetime',
46
+ 'modified': 'datetime',
47
+ 'due_date': 'datetime',
48
+ 'description': 'str',
49
+ 'priority': 'TaskPriority',
50
+ 'protocol_id': 'str',
51
+ 'protocol_label': 'str',
52
+ 'tags': 'list[str]',
53
+ 'transitions': 'StatusTransitions',
54
+ 'esignature': 'ESignature',
55
+ 'parent_details': 'ReaderTaskParentDetails'
56
+ }
57
+
58
+ attribute_map = {
59
+ 'id': '_id',
60
+ 'type': 'type',
61
+ 'task_id': 'task_id',
62
+ 'batch_number': 'batch_number',
63
+ 'item_number': 'item_number',
64
+ 'subcategory': 'subcategory',
65
+ 'status': 'status',
66
+ 'assignee': 'assignee',
67
+ 'creator': 'creator',
68
+ 'parent_ref': 'parent_ref',
69
+ 'staffing_pool': 'staffing_pool',
70
+ 'parents': 'parents',
71
+ 'created': 'created',
72
+ 'modified': 'modified',
73
+ 'due_date': 'due_date',
74
+ 'description': 'description',
75
+ 'priority': 'priority',
76
+ 'protocol_id': 'protocol_id',
77
+ 'protocol_label': 'protocol_label',
78
+ 'tags': 'tags',
79
+ 'transitions': 'transitions',
80
+ 'esignature': 'esignature',
81
+ 'parent_details': 'parent_details'
82
+ }
83
+
84
+ rattribute_map = {
85
+ '_id': 'id',
86
+ 'type': 'type',
87
+ 'task_id': 'task_id',
88
+ 'batch_number': 'batch_number',
89
+ 'item_number': 'item_number',
90
+ 'subcategory': 'subcategory',
91
+ 'status': 'status',
92
+ 'assignee': 'assignee',
93
+ 'creator': 'creator',
94
+ 'parent_ref': 'parent_ref',
95
+ 'staffing_pool': 'staffing_pool',
96
+ 'parents': 'parents',
97
+ 'created': 'created',
98
+ 'modified': 'modified',
99
+ 'due_date': 'due_date',
100
+ 'description': 'description',
101
+ 'priority': 'priority',
102
+ 'protocol_id': 'protocol_id',
103
+ 'protocol_label': 'protocol_label',
104
+ 'tags': 'tags',
105
+ 'transitions': 'transitions',
106
+ 'esignature': 'esignature',
107
+ 'parent_details': 'parent_details'
108
+ }
109
+
110
+ def __init__(self, id=None, type=None, task_id=None, batch_number=None, item_number=None, subcategory=None, status=None, assignee=None, creator=None, parent_ref=None, staffing_pool=None, parents=None, created=None, modified=None, due_date=None, description=None, priority=None, protocol_id=None, protocol_label=None, tags=None, transitions=None, esignature=None, parent_details=None): # noqa: E501
111
+ """ReaderTaskOutput - a model defined in Swagger"""
112
+ super(ReaderTaskOutput, self).__init__()
113
+
114
+ self._id = None
115
+ self._type = None
116
+ self._task_id = None
117
+ self._batch_number = None
118
+ self._item_number = None
119
+ self._subcategory = None
120
+ self._status = None
121
+ self._assignee = None
122
+ self._creator = None
123
+ self._parent_ref = None
124
+ self._staffing_pool = None
125
+ self._parents = None
126
+ self._created = None
127
+ self._modified = None
128
+ self._due_date = None
129
+ self._description = None
130
+ self._priority = None
131
+ self._protocol_id = None
132
+ self._protocol_label = None
133
+ self._tags = None
134
+ self._transitions = None
135
+ self._esignature = None
136
+ self._parent_details = None
137
+ self.discriminator = None
138
+ self.alt_discriminator = None
139
+
140
+ self.id = id
141
+ self.type = type
142
+ self.task_id = task_id
143
+ self.batch_number = batch_number
144
+ self.item_number = item_number
145
+ self.subcategory = subcategory
146
+ self.status = status
147
+ if assignee is not None:
148
+ self.assignee = assignee
149
+ self.creator = creator
150
+ self.parent_ref = parent_ref
151
+ if staffing_pool is not None:
152
+ self.staffing_pool = staffing_pool
153
+ self.parents = parents
154
+ if created is not None:
155
+ self.created = created
156
+ if modified is not None:
157
+ self.modified = modified
158
+ self.due_date = due_date
159
+ self.description = description
160
+ self.priority = priority
161
+ self.protocol_id = protocol_id
162
+ self.protocol_label = protocol_label
163
+ if tags is not None:
164
+ self.tags = tags
165
+ if transitions is not None:
166
+ self.transitions = transitions
167
+ if esignature is not None:
168
+ self.esignature = esignature
169
+ self.parent_details = parent_details
170
+
171
+ @property
172
+ def id(self):
173
+ """Gets the id of this ReaderTaskOutput.
174
+
175
+
176
+ :return: The id of this ReaderTaskOutput.
177
+ :rtype: str
178
+ """
179
+ return self._id
180
+
181
+ @id.setter
182
+ def id(self, id):
183
+ """Sets the id of this ReaderTaskOutput.
184
+
185
+
186
+ :param id: The id of this ReaderTaskOutput. # noqa: E501
187
+ :type: str
188
+ """
189
+
190
+ self._id = id
191
+
192
+ @property
193
+ def type(self):
194
+ """Gets the type of this ReaderTaskOutput.
195
+
196
+
197
+ :return: The type of this ReaderTaskOutput.
198
+ :rtype: str
199
+ """
200
+ return self._type
201
+
202
+ @type.setter
203
+ def type(self, type):
204
+ """Sets the type of this ReaderTaskOutput.
205
+
206
+
207
+ :param type: The type of this ReaderTaskOutput. # noqa: E501
208
+ :type: str
209
+ """
210
+
211
+ self._type = type
212
+
213
+ @property
214
+ def task_id(self):
215
+ """Gets the task_id of this ReaderTaskOutput.
216
+
217
+
218
+ :return: The task_id of this ReaderTaskOutput.
219
+ :rtype: str
220
+ """
221
+ return self._task_id
222
+
223
+ @task_id.setter
224
+ def task_id(self, task_id):
225
+ """Sets the task_id of this ReaderTaskOutput.
226
+
227
+
228
+ :param task_id: The task_id of this ReaderTaskOutput. # noqa: E501
229
+ :type: str
230
+ """
231
+
232
+ self._task_id = task_id
233
+
234
+ @property
235
+ def batch_number(self):
236
+ """Gets the batch_number of this ReaderTaskOutput.
237
+
238
+
239
+ :return: The batch_number of this ReaderTaskOutput.
240
+ :rtype: int
241
+ """
242
+ return self._batch_number
243
+
244
+ @batch_number.setter
245
+ def batch_number(self, batch_number):
246
+ """Sets the batch_number of this ReaderTaskOutput.
247
+
248
+
249
+ :param batch_number: The batch_number of this ReaderTaskOutput. # noqa: E501
250
+ :type: int
251
+ """
252
+
253
+ self._batch_number = batch_number
254
+
255
+ @property
256
+ def item_number(self):
257
+ """Gets the item_number of this ReaderTaskOutput.
258
+
259
+
260
+ :return: The item_number of this ReaderTaskOutput.
261
+ :rtype: int
262
+ """
263
+ return self._item_number
264
+
265
+ @item_number.setter
266
+ def item_number(self, item_number):
267
+ """Sets the item_number of this ReaderTaskOutput.
268
+
269
+
270
+ :param item_number: The item_number of this ReaderTaskOutput. # noqa: E501
271
+ :type: int
272
+ """
273
+
274
+ self._item_number = item_number
275
+
276
+ @property
277
+ def subcategory(self):
278
+ """Gets the subcategory of this ReaderTaskOutput.
279
+
280
+
281
+ :return: The subcategory of this ReaderTaskOutput.
282
+ :rtype: str
283
+ """
284
+ return self._subcategory
285
+
286
+ @subcategory.setter
287
+ def subcategory(self, subcategory):
288
+ """Sets the subcategory of this ReaderTaskOutput.
289
+
290
+
291
+ :param subcategory: The subcategory of this ReaderTaskOutput. # noqa: E501
292
+ :type: str
293
+ """
294
+
295
+ self._subcategory = subcategory
296
+
297
+ @property
298
+ def status(self):
299
+ """Gets the status of this ReaderTaskOutput.
300
+
301
+
302
+ :return: The status of this ReaderTaskOutput.
303
+ :rtype: LibsWorkflowsModelsTaskStatus
304
+ """
305
+ return self._status
306
+
307
+ @status.setter
308
+ def status(self, status):
309
+ """Sets the status of this ReaderTaskOutput.
310
+
311
+
312
+ :param status: The status of this ReaderTaskOutput. # noqa: E501
313
+ :type: LibsWorkflowsModelsTaskStatus
314
+ """
315
+
316
+ self._status = status
317
+
318
+ @property
319
+ def assignee(self):
320
+ """Gets the assignee of this ReaderTaskOutput.
321
+
322
+
323
+ :return: The assignee of this ReaderTaskOutput.
324
+ :rtype: Assignee
325
+ """
326
+ return self._assignee
327
+
328
+ @assignee.setter
329
+ def assignee(self, assignee):
330
+ """Sets the assignee of this ReaderTaskOutput.
331
+
332
+
333
+ :param assignee: The assignee of this ReaderTaskOutput. # noqa: E501
334
+ :type: Assignee
335
+ """
336
+
337
+ self._assignee = assignee
338
+
339
+ @property
340
+ def creator(self):
341
+ """Gets the creator of this ReaderTaskOutput.
342
+
343
+
344
+ :return: The creator of this ReaderTaskOutput.
345
+ :rtype: str
346
+ """
347
+ return self._creator
348
+
349
+ @creator.setter
350
+ def creator(self, creator):
351
+ """Sets the creator of this ReaderTaskOutput.
352
+
353
+
354
+ :param creator: The creator of this ReaderTaskOutput. # noqa: E501
355
+ :type: str
356
+ """
357
+
358
+ self._creator = creator
359
+
360
+ @property
361
+ def parent_ref(self):
362
+ """Gets the parent_ref of this ReaderTaskOutput.
363
+
364
+
365
+ :return: The parent_ref of this ReaderTaskOutput.
366
+ :rtype: TaskParentRef
367
+ """
368
+ return self._parent_ref
369
+
370
+ @parent_ref.setter
371
+ def parent_ref(self, parent_ref):
372
+ """Sets the parent_ref of this ReaderTaskOutput.
373
+
374
+
375
+ :param parent_ref: The parent_ref of this ReaderTaskOutput. # noqa: E501
376
+ :type: TaskParentRef
377
+ """
378
+
379
+ self._parent_ref = parent_ref
380
+
381
+ @property
382
+ def staffing_pool(self):
383
+ """Gets the staffing_pool of this ReaderTaskOutput.
384
+
385
+
386
+ :return: The staffing_pool of this ReaderTaskOutput.
387
+ :rtype: str
388
+ """
389
+ return self._staffing_pool
390
+
391
+ @staffing_pool.setter
392
+ def staffing_pool(self, staffing_pool):
393
+ """Sets the staffing_pool of this ReaderTaskOutput.
394
+
395
+
396
+ :param staffing_pool: The staffing_pool of this ReaderTaskOutput. # noqa: E501
397
+ :type: str
398
+ """
399
+
400
+ self._staffing_pool = staffing_pool
401
+
402
+ @property
403
+ def parents(self):
404
+ """Gets the parents of this ReaderTaskOutput.
405
+
406
+
407
+ :return: The parents of this ReaderTaskOutput.
408
+ :rtype: CoreWorkflowsReaderModelsReaderTaskParents
409
+ """
410
+ return self._parents
411
+
412
+ @parents.setter
413
+ def parents(self, parents):
414
+ """Sets the parents of this ReaderTaskOutput.
415
+
416
+
417
+ :param parents: The parents of this ReaderTaskOutput. # noqa: E501
418
+ :type: CoreWorkflowsReaderModelsReaderTaskParents
419
+ """
420
+
421
+ self._parents = parents
422
+
423
+ @property
424
+ def created(self):
425
+ """Gets the created of this ReaderTaskOutput.
426
+
427
+
428
+ :return: The created of this ReaderTaskOutput.
429
+ :rtype: datetime
430
+ """
431
+ return self._created
432
+
433
+ @created.setter
434
+ def created(self, created):
435
+ """Sets the created of this ReaderTaskOutput.
436
+
437
+
438
+ :param created: The created of this ReaderTaskOutput. # noqa: E501
439
+ :type: datetime
440
+ """
441
+
442
+ self._created = created
443
+
444
+ @property
445
+ def modified(self):
446
+ """Gets the modified of this ReaderTaskOutput.
447
+
448
+
449
+ :return: The modified of this ReaderTaskOutput.
450
+ :rtype: datetime
451
+ """
452
+ return self._modified
453
+
454
+ @modified.setter
455
+ def modified(self, modified):
456
+ """Sets the modified of this ReaderTaskOutput.
457
+
458
+
459
+ :param modified: The modified of this ReaderTaskOutput. # noqa: E501
460
+ :type: datetime
461
+ """
462
+
463
+ self._modified = modified
464
+
465
+ @property
466
+ def due_date(self):
467
+ """Gets the due_date of this ReaderTaskOutput.
468
+
469
+
470
+ :return: The due_date of this ReaderTaskOutput.
471
+ :rtype: datetime
472
+ """
473
+ return self._due_date
474
+
475
+ @due_date.setter
476
+ def due_date(self, due_date):
477
+ """Sets the due_date of this ReaderTaskOutput.
478
+
479
+
480
+ :param due_date: The due_date of this ReaderTaskOutput. # noqa: E501
481
+ :type: datetime
482
+ """
483
+
484
+ self._due_date = due_date
485
+
486
+ @property
487
+ def description(self):
488
+ """Gets the description of this ReaderTaskOutput.
489
+
490
+
491
+ :return: The description of this ReaderTaskOutput.
492
+ :rtype: str
493
+ """
494
+ return self._description
495
+
496
+ @description.setter
497
+ def description(self, description):
498
+ """Sets the description of this ReaderTaskOutput.
499
+
500
+
501
+ :param description: The description of this ReaderTaskOutput. # noqa: E501
502
+ :type: str
503
+ """
504
+
505
+ self._description = description
506
+
507
+ @property
508
+ def priority(self):
509
+ """Gets the priority of this ReaderTaskOutput.
510
+
511
+
512
+ :return: The priority of this ReaderTaskOutput.
513
+ :rtype: TaskPriority
514
+ """
515
+ return self._priority
516
+
517
+ @priority.setter
518
+ def priority(self, priority):
519
+ """Sets the priority of this ReaderTaskOutput.
520
+
521
+
522
+ :param priority: The priority of this ReaderTaskOutput. # noqa: E501
523
+ :type: TaskPriority
524
+ """
525
+
526
+ self._priority = priority
527
+
528
+ @property
529
+ def protocol_id(self):
530
+ """Gets the protocol_id of this ReaderTaskOutput.
531
+
532
+
533
+ :return: The protocol_id of this ReaderTaskOutput.
534
+ :rtype: str
535
+ """
536
+ return self._protocol_id
537
+
538
+ @protocol_id.setter
539
+ def protocol_id(self, protocol_id):
540
+ """Sets the protocol_id of this ReaderTaskOutput.
541
+
542
+
543
+ :param protocol_id: The protocol_id of this ReaderTaskOutput. # noqa: E501
544
+ :type: str
545
+ """
546
+
547
+ self._protocol_id = protocol_id
548
+
549
+ @property
550
+ def protocol_label(self):
551
+ """Gets the protocol_label of this ReaderTaskOutput.
552
+
553
+
554
+ :return: The protocol_label of this ReaderTaskOutput.
555
+ :rtype: str
556
+ """
557
+ return self._protocol_label
558
+
559
+ @protocol_label.setter
560
+ def protocol_label(self, protocol_label):
561
+ """Sets the protocol_label of this ReaderTaskOutput.
562
+
563
+
564
+ :param protocol_label: The protocol_label of this ReaderTaskOutput. # noqa: E501
565
+ :type: str
566
+ """
567
+
568
+ self._protocol_label = protocol_label
569
+
570
+ @property
571
+ def tags(self):
572
+ """Gets the tags of this ReaderTaskOutput.
573
+
574
+
575
+ :return: The tags of this ReaderTaskOutput.
576
+ :rtype: list[str]
577
+ """
578
+ return self._tags
579
+
580
+ @tags.setter
581
+ def tags(self, tags):
582
+ """Sets the tags of this ReaderTaskOutput.
583
+
584
+
585
+ :param tags: The tags of this ReaderTaskOutput. # noqa: E501
586
+ :type: list[str]
587
+ """
588
+
589
+ self._tags = tags
590
+
591
+ @property
592
+ def transitions(self):
593
+ """Gets the transitions of this ReaderTaskOutput.
594
+
595
+
596
+ :return: The transitions of this ReaderTaskOutput.
597
+ :rtype: StatusTransitions
598
+ """
599
+ return self._transitions
600
+
601
+ @transitions.setter
602
+ def transitions(self, transitions):
603
+ """Sets the transitions of this ReaderTaskOutput.
604
+
605
+
606
+ :param transitions: The transitions of this ReaderTaskOutput. # noqa: E501
607
+ :type: StatusTransitions
608
+ """
609
+
610
+ self._transitions = transitions
611
+
612
+ @property
613
+ def esignature(self):
614
+ """Gets the esignature of this ReaderTaskOutput.
615
+
616
+
617
+ :return: The esignature of this ReaderTaskOutput.
618
+ :rtype: ESignature
619
+ """
620
+ return self._esignature
621
+
622
+ @esignature.setter
623
+ def esignature(self, esignature):
624
+ """Sets the esignature of this ReaderTaskOutput.
625
+
626
+
627
+ :param esignature: The esignature of this ReaderTaskOutput. # noqa: E501
628
+ :type: ESignature
629
+ """
630
+
631
+ self._esignature = esignature
632
+
633
+ @property
634
+ def parent_details(self):
635
+ """Gets the parent_details of this ReaderTaskOutput.
636
+
637
+
638
+ :return: The parent_details of this ReaderTaskOutput.
639
+ :rtype: ReaderTaskParentDetails
640
+ """
641
+ return self._parent_details
642
+
643
+ @parent_details.setter
644
+ def parent_details(self, parent_details):
645
+ """Sets the parent_details of this ReaderTaskOutput.
646
+
647
+
648
+ :param parent_details: The parent_details of this ReaderTaskOutput. # noqa: E501
649
+ :type: ReaderTaskParentDetails
650
+ """
651
+
652
+ self._parent_details = parent_details
653
+
654
+
655
+ @staticmethod
656
+ def positional_to_model(value):
657
+ """Converts a positional argument to a model value"""
658
+ return value
659
+
660
+ def return_value(self):
661
+ """Unwraps return value from model"""
662
+ return self
663
+
664
+ def to_dict(self):
665
+ """Returns the model properties as a dict"""
666
+ result = {}
667
+
668
+ for attr, _ in six.iteritems(self.swagger_types):
669
+ value = getattr(self, attr)
670
+ if isinstance(value, list):
671
+ result[attr] = list(map(
672
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
673
+ value
674
+ ))
675
+ elif hasattr(value, "to_dict"):
676
+ result[attr] = value.to_dict()
677
+ elif isinstance(value, dict):
678
+ result[attr] = dict(map(
679
+ lambda item: (item[0], item[1].to_dict())
680
+ if hasattr(item[1], "to_dict") else item,
681
+ value.items()
682
+ ))
683
+ else:
684
+ result[attr] = value
685
+
686
+ return result
687
+
688
+ def to_str(self):
689
+ """Returns the string representation of the model"""
690
+ return pprint.pformat(self.to_dict())
691
+
692
+ def __repr__(self):
693
+ """For `print` and `pprint`"""
694
+ return self.to_str()
695
+
696
+ def __eq__(self, other):
697
+ """Returns true if both objects are equal"""
698
+ if not isinstance(other, ReaderTaskOutput):
699
+ return False
700
+
701
+ return self.__dict__ == other.__dict__
702
+
703
+ def __ne__(self, other):
704
+ """Returns true if both objects are not equal"""
705
+ return not self == other
706
+
707
+ # Container emulation
708
+ def __getitem__(self, key):
709
+ """Returns the value of key"""
710
+ key = self._map_key(key)
711
+ return getattr(self, key)
712
+
713
+ def __setitem__(self, key, value):
714
+ """Sets the value of key"""
715
+ key = self._map_key(key)
716
+ setattr(self, key, value)
717
+
718
+ def __contains__(self, key):
719
+ """Checks if the given value is a key in this object"""
720
+ key = self._map_key(key, raise_on_error=False)
721
+ return key is not None
722
+
723
+ def keys(self):
724
+ """Returns the list of json properties in the object"""
725
+ return self.__class__.rattribute_map.keys()
726
+
727
+ def values(self):
728
+ """Returns the list of values in the object"""
729
+ for key in self.__class__.attribute_map.keys():
730
+ yield getattr(self, key)
731
+
732
+ def items(self):
733
+ """Returns the list of json property to value mapping"""
734
+ for key, prop in self.__class__.rattribute_map.items():
735
+ yield key, getattr(self, prop)
736
+
737
+ def get(self, key, default=None):
738
+ """Get the value of the provided json property, or default"""
739
+ key = self._map_key(key, raise_on_error=False)
740
+ if key:
741
+ return getattr(self, key, default)
742
+ return default
743
+
744
+ def _map_key(self, key, raise_on_error=True):
745
+ result = self.__class__.rattribute_map.get(key)
746
+ if result is None:
747
+ if raise_on_error:
748
+ raise AttributeError('Invalid attribute name: {}'.format(key))
749
+ return None
750
+ return '_' + result