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,404 @@
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.field_type import FieldType # noqa: F401,E501
22
+ from flywheel.models.select_item import SelectItem # noqa: F401,E501
23
+ from flywheel.models.validation_rule import ValidationRule # noqa: F401,E501
24
+
25
+ class CustomField(object):
26
+
27
+ swagger_types = {
28
+ 'type': 'FieldType',
29
+ 'label': 'str',
30
+ 'description': 'str',
31
+ 'placeholder': 'str',
32
+ 'key': 'str',
33
+ 'helper_text': 'str',
34
+ 'error_text': 'str',
35
+ 'hide': 'union[boolean,list[object]]',
36
+ 'validation': 'list[ValidationRule]',
37
+ 'options': 'list[SelectItem]'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'type': 'type',
42
+ 'label': 'label',
43
+ 'description': 'description',
44
+ 'placeholder': 'placeholder',
45
+ 'key': 'key',
46
+ 'helper_text': 'helperText',
47
+ 'error_text': 'errorText',
48
+ 'hide': 'hide',
49
+ 'validation': 'validation',
50
+ 'options': 'options'
51
+ }
52
+
53
+ rattribute_map = {
54
+ 'type': 'type',
55
+ 'label': 'label',
56
+ 'description': 'description',
57
+ 'placeholder': 'placeholder',
58
+ 'key': 'key',
59
+ 'helperText': 'helper_text',
60
+ 'errorText': 'error_text',
61
+ 'hide': 'hide',
62
+ 'validation': 'validation',
63
+ 'options': 'options'
64
+ }
65
+
66
+ def __init__(self, type=None, label=None, description=None, placeholder=None, key=None, helper_text=None, error_text=None, hide=None, validation=None, options=None): # noqa: E501
67
+ """CustomField - a model defined in Swagger"""
68
+ super(CustomField, self).__init__()
69
+
70
+ self._type = None
71
+ self._label = None
72
+ self._description = None
73
+ self._placeholder = None
74
+ self._key = None
75
+ self._helper_text = None
76
+ self._error_text = None
77
+ self._hide = None
78
+ self._validation = None
79
+ self._options = None
80
+ self.discriminator = None
81
+ self.alt_discriminator = None
82
+
83
+ self.type = type
84
+ self.label = label
85
+ self.description = description
86
+ self.placeholder = placeholder
87
+ self.key = key
88
+ self.helper_text = helper_text
89
+ if error_text is not None:
90
+ self.error_text = error_text
91
+ if hide is not None:
92
+ self.hide = hide
93
+ if validation is not None:
94
+ self.validation = validation
95
+ if options is not None:
96
+ self.options = options
97
+
98
+ @property
99
+ def type(self):
100
+ """Gets the type of this CustomField.
101
+
102
+
103
+ :return: The type of this CustomField.
104
+ :rtype: FieldType
105
+ """
106
+ return self._type
107
+
108
+ @type.setter
109
+ def type(self, type):
110
+ """Sets the type of this CustomField.
111
+
112
+
113
+ :param type: The type of this CustomField. # noqa: E501
114
+ :type: FieldType
115
+ """
116
+
117
+ self._type = type
118
+
119
+ @property
120
+ def label(self):
121
+ """Gets the label of this CustomField.
122
+
123
+
124
+ :return: The label of this CustomField.
125
+ :rtype: str
126
+ """
127
+ return self._label
128
+
129
+ @label.setter
130
+ def label(self, label):
131
+ """Sets the label of this CustomField.
132
+
133
+
134
+ :param label: The label of this CustomField. # noqa: E501
135
+ :type: str
136
+ """
137
+
138
+ self._label = label
139
+
140
+ @property
141
+ def description(self):
142
+ """Gets the description of this CustomField.
143
+
144
+
145
+ :return: The description of this CustomField.
146
+ :rtype: str
147
+ """
148
+ return self._description
149
+
150
+ @description.setter
151
+ def description(self, description):
152
+ """Sets the description of this CustomField.
153
+
154
+
155
+ :param description: The description of this CustomField. # noqa: E501
156
+ :type: str
157
+ """
158
+
159
+ self._description = description
160
+
161
+ @property
162
+ def placeholder(self):
163
+ """Gets the placeholder of this CustomField.
164
+
165
+
166
+ :return: The placeholder of this CustomField.
167
+ :rtype: str
168
+ """
169
+ return self._placeholder
170
+
171
+ @placeholder.setter
172
+ def placeholder(self, placeholder):
173
+ """Sets the placeholder of this CustomField.
174
+
175
+
176
+ :param placeholder: The placeholder of this CustomField. # noqa: E501
177
+ :type: str
178
+ """
179
+
180
+ self._placeholder = placeholder
181
+
182
+ @property
183
+ def key(self):
184
+ """Gets the key of this CustomField.
185
+
186
+
187
+ :return: The key of this CustomField.
188
+ :rtype: str
189
+ """
190
+ return self._key
191
+
192
+ @key.setter
193
+ def key(self, key):
194
+ """Sets the key of this CustomField.
195
+
196
+
197
+ :param key: The key of this CustomField. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._key = key
202
+
203
+ @property
204
+ def helper_text(self):
205
+ """Gets the helper_text of this CustomField.
206
+
207
+
208
+ :return: The helper_text of this CustomField.
209
+ :rtype: str
210
+ """
211
+ return self._helper_text
212
+
213
+ @helper_text.setter
214
+ def helper_text(self, helper_text):
215
+ """Sets the helper_text of this CustomField.
216
+
217
+
218
+ :param helper_text: The helper_text of this CustomField. # noqa: E501
219
+ :type: str
220
+ """
221
+
222
+ self._helper_text = helper_text
223
+
224
+ @property
225
+ def error_text(self):
226
+ """Gets the error_text of this CustomField.
227
+
228
+
229
+ :return: The error_text of this CustomField.
230
+ :rtype: str
231
+ """
232
+ return self._error_text
233
+
234
+ @error_text.setter
235
+ def error_text(self, error_text):
236
+ """Sets the error_text of this CustomField.
237
+
238
+
239
+ :param error_text: The error_text of this CustomField. # noqa: E501
240
+ :type: str
241
+ """
242
+
243
+ self._error_text = error_text
244
+
245
+ @property
246
+ def hide(self):
247
+ """Gets the hide of this CustomField.
248
+
249
+
250
+ :return: The hide of this CustomField.
251
+ :rtype: union[boolean,list[object]]
252
+ """
253
+ return self._hide
254
+
255
+ @hide.setter
256
+ def hide(self, hide):
257
+ """Sets the hide of this CustomField.
258
+
259
+
260
+ :param hide: The hide of this CustomField. # noqa: E501
261
+ :type: union[boolean,list[object]]
262
+ """
263
+
264
+ self._hide = hide
265
+
266
+ @property
267
+ def validation(self):
268
+ """Gets the validation of this CustomField.
269
+
270
+
271
+ :return: The validation of this CustomField.
272
+ :rtype: list[ValidationRule]
273
+ """
274
+ return self._validation
275
+
276
+ @validation.setter
277
+ def validation(self, validation):
278
+ """Sets the validation of this CustomField.
279
+
280
+
281
+ :param validation: The validation of this CustomField. # noqa: E501
282
+ :type: list[ValidationRule]
283
+ """
284
+
285
+ self._validation = validation
286
+
287
+ @property
288
+ def options(self):
289
+ """Gets the options of this CustomField.
290
+
291
+
292
+ :return: The options of this CustomField.
293
+ :rtype: list[SelectItem]
294
+ """
295
+ return self._options
296
+
297
+ @options.setter
298
+ def options(self, options):
299
+ """Sets the options of this CustomField.
300
+
301
+
302
+ :param options: The options of this CustomField. # noqa: E501
303
+ :type: list[SelectItem]
304
+ """
305
+
306
+ self._options = options
307
+
308
+
309
+ @staticmethod
310
+ def positional_to_model(value):
311
+ """Converts a positional argument to a model value"""
312
+ return value
313
+
314
+ def return_value(self):
315
+ """Unwraps return value from model"""
316
+ return self
317
+
318
+ def to_dict(self):
319
+ """Returns the model properties as a dict"""
320
+ result = {}
321
+
322
+ for attr, _ in six.iteritems(self.swagger_types):
323
+ value = getattr(self, attr)
324
+ if isinstance(value, list):
325
+ result[attr] = list(map(
326
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
327
+ value
328
+ ))
329
+ elif hasattr(value, "to_dict"):
330
+ result[attr] = value.to_dict()
331
+ elif isinstance(value, dict):
332
+ result[attr] = dict(map(
333
+ lambda item: (item[0], item[1].to_dict())
334
+ if hasattr(item[1], "to_dict") else item,
335
+ value.items()
336
+ ))
337
+ else:
338
+ result[attr] = value
339
+
340
+ return result
341
+
342
+ def to_str(self):
343
+ """Returns the string representation of the model"""
344
+ return pprint.pformat(self.to_dict())
345
+
346
+ def __repr__(self):
347
+ """For `print` and `pprint`"""
348
+ return self.to_str()
349
+
350
+ def __eq__(self, other):
351
+ """Returns true if both objects are equal"""
352
+ if not isinstance(other, CustomField):
353
+ return False
354
+
355
+ return self.__dict__ == other.__dict__
356
+
357
+ def __ne__(self, other):
358
+ """Returns true if both objects are not equal"""
359
+ return not self == other
360
+
361
+ # Container emulation
362
+ def __getitem__(self, key):
363
+ """Returns the value of key"""
364
+ key = self._map_key(key)
365
+ return getattr(self, key)
366
+
367
+ def __setitem__(self, key, value):
368
+ """Sets the value of key"""
369
+ key = self._map_key(key)
370
+ setattr(self, key, value)
371
+
372
+ def __contains__(self, key):
373
+ """Checks if the given value is a key in this object"""
374
+ key = self._map_key(key, raise_on_error=False)
375
+ return key is not None
376
+
377
+ def keys(self):
378
+ """Returns the list of json properties in the object"""
379
+ return self.__class__.rattribute_map.keys()
380
+
381
+ def values(self):
382
+ """Returns the list of values in the object"""
383
+ for key in self.__class__.attribute_map.keys():
384
+ yield getattr(self, key)
385
+
386
+ def items(self):
387
+ """Returns the list of json property to value mapping"""
388
+ for key, prop in self.__class__.rattribute_map.items():
389
+ yield key, getattr(self, prop)
390
+
391
+ def get(self, key, default=None):
392
+ """Get the value of the provided json property, or default"""
393
+ key = self._map_key(key, raise_on_error=False)
394
+ if key:
395
+ return getattr(self, key, default)
396
+ return default
397
+
398
+ def _map_key(self, key, raise_on_error=True):
399
+ result = self.__class__.rattribute_map.get(key)
400
+ if result is None:
401
+ if raise_on_error:
402
+ raise AttributeError('Invalid attribute name: {}'.format(key))
403
+ return None
404
+ return '_' + result
@@ -0,0 +1,242 @@
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.custom_field import CustomField # noqa: F401,E501
22
+
23
+ class CustomForm(object):
24
+
25
+ swagger_types = {
26
+ 'title': 'str',
27
+ 'description': 'str',
28
+ 'defaults': 'object',
29
+ 'fields': 'list[CustomField]'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'title': 'title',
34
+ 'description': 'description',
35
+ 'defaults': 'defaults',
36
+ 'fields': 'fields'
37
+ }
38
+
39
+ rattribute_map = {
40
+ 'title': 'title',
41
+ 'description': 'description',
42
+ 'defaults': 'defaults',
43
+ 'fields': 'fields'
44
+ }
45
+
46
+ def __init__(self, title=None, description=None, defaults=None, fields=None): # noqa: E501
47
+ """CustomForm - a model defined in Swagger"""
48
+ super(CustomForm, self).__init__()
49
+
50
+ self._title = None
51
+ self._description = None
52
+ self._defaults = None
53
+ self._fields = None
54
+ self.discriminator = None
55
+ self.alt_discriminator = None
56
+
57
+ self.title = title
58
+ self.description = description
59
+ self.defaults = defaults
60
+ self.fields = fields
61
+
62
+ @property
63
+ def title(self):
64
+ """Gets the title of this CustomForm.
65
+
66
+
67
+ :return: The title of this CustomForm.
68
+ :rtype: str
69
+ """
70
+ return self._title
71
+
72
+ @title.setter
73
+ def title(self, title):
74
+ """Sets the title of this CustomForm.
75
+
76
+
77
+ :param title: The title of this CustomForm. # noqa: E501
78
+ :type: str
79
+ """
80
+
81
+ self._title = title
82
+
83
+ @property
84
+ def description(self):
85
+ """Gets the description of this CustomForm.
86
+
87
+
88
+ :return: The description of this CustomForm.
89
+ :rtype: str
90
+ """
91
+ return self._description
92
+
93
+ @description.setter
94
+ def description(self, description):
95
+ """Sets the description of this CustomForm.
96
+
97
+
98
+ :param description: The description of this CustomForm. # noqa: E501
99
+ :type: str
100
+ """
101
+
102
+ self._description = description
103
+
104
+ @property
105
+ def defaults(self):
106
+ """Gets the defaults of this CustomForm.
107
+
108
+
109
+ :return: The defaults of this CustomForm.
110
+ :rtype: object
111
+ """
112
+ return self._defaults
113
+
114
+ @defaults.setter
115
+ def defaults(self, defaults):
116
+ """Sets the defaults of this CustomForm.
117
+
118
+
119
+ :param defaults: The defaults of this CustomForm. # noqa: E501
120
+ :type: object
121
+ """
122
+
123
+ self._defaults = defaults
124
+
125
+ @property
126
+ def fields(self):
127
+ """Gets the fields of this CustomForm.
128
+
129
+
130
+ :return: The fields of this CustomForm.
131
+ :rtype: list[CustomField]
132
+ """
133
+ return self._fields
134
+
135
+ @fields.setter
136
+ def fields(self, fields):
137
+ """Sets the fields of this CustomForm.
138
+
139
+
140
+ :param fields: The fields of this CustomForm. # noqa: E501
141
+ :type: list[CustomField]
142
+ """
143
+
144
+ self._fields = fields
145
+
146
+
147
+ @staticmethod
148
+ def positional_to_model(value):
149
+ """Converts a positional argument to a model value"""
150
+ return value
151
+
152
+ def return_value(self):
153
+ """Unwraps return value from model"""
154
+ return self
155
+
156
+ def to_dict(self):
157
+ """Returns the model properties as a dict"""
158
+ result = {}
159
+
160
+ for attr, _ in six.iteritems(self.swagger_types):
161
+ value = getattr(self, attr)
162
+ if isinstance(value, list):
163
+ result[attr] = list(map(
164
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
165
+ value
166
+ ))
167
+ elif hasattr(value, "to_dict"):
168
+ result[attr] = value.to_dict()
169
+ elif isinstance(value, dict):
170
+ result[attr] = dict(map(
171
+ lambda item: (item[0], item[1].to_dict())
172
+ if hasattr(item[1], "to_dict") else item,
173
+ value.items()
174
+ ))
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ return pprint.pformat(self.to_dict())
183
+
184
+ def __repr__(self):
185
+ """For `print` and `pprint`"""
186
+ return self.to_str()
187
+
188
+ def __eq__(self, other):
189
+ """Returns true if both objects are equal"""
190
+ if not isinstance(other, CustomForm):
191
+ return False
192
+
193
+ return self.__dict__ == other.__dict__
194
+
195
+ def __ne__(self, other):
196
+ """Returns true if both objects are not equal"""
197
+ return not self == other
198
+
199
+ # Container emulation
200
+ def __getitem__(self, key):
201
+ """Returns the value of key"""
202
+ key = self._map_key(key)
203
+ return getattr(self, key)
204
+
205
+ def __setitem__(self, key, value):
206
+ """Sets the value of key"""
207
+ key = self._map_key(key)
208
+ setattr(self, key, value)
209
+
210
+ def __contains__(self, key):
211
+ """Checks if the given value is a key in this object"""
212
+ key = self._map_key(key, raise_on_error=False)
213
+ return key is not None
214
+
215
+ def keys(self):
216
+ """Returns the list of json properties in the object"""
217
+ return self.__class__.rattribute_map.keys()
218
+
219
+ def values(self):
220
+ """Returns the list of values in the object"""
221
+ for key in self.__class__.attribute_map.keys():
222
+ yield getattr(self, key)
223
+
224
+ def items(self):
225
+ """Returns the list of json property to value mapping"""
226
+ for key, prop in self.__class__.rattribute_map.items():
227
+ yield key, getattr(self, prop)
228
+
229
+ def get(self, key, default=None):
230
+ """Get the value of the provided json property, or default"""
231
+ key = self._map_key(key, raise_on_error=False)
232
+ if key:
233
+ return getattr(self, key, default)
234
+ return default
235
+
236
+ def _map_key(self, key, raise_on_error=True):
237
+ result = self.__class__.rattribute_map.get(key)
238
+ if result is None:
239
+ if raise_on_error:
240
+ raise AttributeError('Invalid attribute name: {}'.format(key))
241
+ return None
242
+ return '_' + result