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