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,192 @@
|
|
|
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
|
+
class FormResponseCreate(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'task_id': 'str',
|
|
25
|
+
'data': 'object'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'task_id': 'task_id',
|
|
30
|
+
'data': 'data'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
rattribute_map = {
|
|
34
|
+
'task_id': 'task_id',
|
|
35
|
+
'data': 'data'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, task_id=None, data=None): # noqa: E501
|
|
39
|
+
"""FormResponseCreate - a model defined in Swagger"""
|
|
40
|
+
super(FormResponseCreate, self).__init__()
|
|
41
|
+
|
|
42
|
+
self._task_id = None
|
|
43
|
+
self._data = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
self.alt_discriminator = None
|
|
46
|
+
|
|
47
|
+
self.task_id = task_id
|
|
48
|
+
self.data = data
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def task_id(self):
|
|
52
|
+
"""Gets the task_id of this FormResponseCreate.
|
|
53
|
+
|
|
54
|
+
ID of the task this response is linked to
|
|
55
|
+
|
|
56
|
+
:return: The task_id of this FormResponseCreate.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._task_id
|
|
60
|
+
|
|
61
|
+
@task_id.setter
|
|
62
|
+
def task_id(self, task_id):
|
|
63
|
+
"""Sets the task_id of this FormResponseCreate.
|
|
64
|
+
|
|
65
|
+
ID of the task this response is linked to
|
|
66
|
+
|
|
67
|
+
:param task_id: The task_id of this FormResponseCreate. # noqa: E501
|
|
68
|
+
:type: str
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
self._task_id = task_id
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def data(self):
|
|
75
|
+
"""Gets the data of this FormResponseCreate.
|
|
76
|
+
|
|
77
|
+
User's form input data
|
|
78
|
+
|
|
79
|
+
:return: The data of this FormResponseCreate.
|
|
80
|
+
:rtype: object
|
|
81
|
+
"""
|
|
82
|
+
return self._data
|
|
83
|
+
|
|
84
|
+
@data.setter
|
|
85
|
+
def data(self, data):
|
|
86
|
+
"""Sets the data of this FormResponseCreate.
|
|
87
|
+
|
|
88
|
+
User's form input data
|
|
89
|
+
|
|
90
|
+
:param data: The data of this FormResponseCreate. # noqa: E501
|
|
91
|
+
:type: object
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._data = data
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@staticmethod
|
|
98
|
+
def positional_to_model(value):
|
|
99
|
+
"""Converts a positional argument to a model value"""
|
|
100
|
+
return value
|
|
101
|
+
|
|
102
|
+
def return_value(self):
|
|
103
|
+
"""Unwraps return value from model"""
|
|
104
|
+
return self
|
|
105
|
+
|
|
106
|
+
def to_dict(self):
|
|
107
|
+
"""Returns the model properties as a dict"""
|
|
108
|
+
result = {}
|
|
109
|
+
|
|
110
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
111
|
+
value = getattr(self, attr)
|
|
112
|
+
if isinstance(value, list):
|
|
113
|
+
result[attr] = list(map(
|
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
115
|
+
value
|
|
116
|
+
))
|
|
117
|
+
elif hasattr(value, "to_dict"):
|
|
118
|
+
result[attr] = value.to_dict()
|
|
119
|
+
elif isinstance(value, dict):
|
|
120
|
+
result[attr] = dict(map(
|
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
|
123
|
+
value.items()
|
|
124
|
+
))
|
|
125
|
+
else:
|
|
126
|
+
result[attr] = value
|
|
127
|
+
|
|
128
|
+
return result
|
|
129
|
+
|
|
130
|
+
def to_str(self):
|
|
131
|
+
"""Returns the string representation of the model"""
|
|
132
|
+
return pprint.pformat(self.to_dict())
|
|
133
|
+
|
|
134
|
+
def __repr__(self):
|
|
135
|
+
"""For `print` and `pprint`"""
|
|
136
|
+
return self.to_str()
|
|
137
|
+
|
|
138
|
+
def __eq__(self, other):
|
|
139
|
+
"""Returns true if both objects are equal"""
|
|
140
|
+
if not isinstance(other, FormResponseCreate):
|
|
141
|
+
return False
|
|
142
|
+
|
|
143
|
+
return self.__dict__ == other.__dict__
|
|
144
|
+
|
|
145
|
+
def __ne__(self, other):
|
|
146
|
+
"""Returns true if both objects are not equal"""
|
|
147
|
+
return not self == other
|
|
148
|
+
|
|
149
|
+
# Container emulation
|
|
150
|
+
def __getitem__(self, key):
|
|
151
|
+
"""Returns the value of key"""
|
|
152
|
+
key = self._map_key(key)
|
|
153
|
+
return getattr(self, key)
|
|
154
|
+
|
|
155
|
+
def __setitem__(self, key, value):
|
|
156
|
+
"""Sets the value of key"""
|
|
157
|
+
key = self._map_key(key)
|
|
158
|
+
setattr(self, key, value)
|
|
159
|
+
|
|
160
|
+
def __contains__(self, key):
|
|
161
|
+
"""Checks if the given value is a key in this object"""
|
|
162
|
+
key = self._map_key(key, raise_on_error=False)
|
|
163
|
+
return key is not None
|
|
164
|
+
|
|
165
|
+
def keys(self):
|
|
166
|
+
"""Returns the list of json properties in the object"""
|
|
167
|
+
return self.__class__.rattribute_map.keys()
|
|
168
|
+
|
|
169
|
+
def values(self):
|
|
170
|
+
"""Returns the list of values in the object"""
|
|
171
|
+
for key in self.__class__.attribute_map.keys():
|
|
172
|
+
yield getattr(self, key)
|
|
173
|
+
|
|
174
|
+
def items(self):
|
|
175
|
+
"""Returns the list of json property to value mapping"""
|
|
176
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
177
|
+
yield key, getattr(self, prop)
|
|
178
|
+
|
|
179
|
+
def get(self, key, default=None):
|
|
180
|
+
"""Get the value of the provided json property, or default"""
|
|
181
|
+
key = self._map_key(key, raise_on_error=False)
|
|
182
|
+
if key:
|
|
183
|
+
return getattr(self, key, default)
|
|
184
|
+
return default
|
|
185
|
+
|
|
186
|
+
def _map_key(self, key, raise_on_error=True):
|
|
187
|
+
result = self.__class__.rattribute_map.get(key)
|
|
188
|
+
if result is None:
|
|
189
|
+
if raise_on_error:
|
|
190
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
191
|
+
return None
|
|
192
|
+
return '_' + result
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import enum
|
|
22
|
+
|
|
23
|
+
class LibsWorkflowsModelsParentType(str, enum.Enum):
|
|
24
|
+
PROJECT = "project"
|
|
25
|
+
SUBJECT = "subject"
|
|
26
|
+
SESSION = "session"
|
|
27
|
+
ACQUISITION = "acquisition"
|
|
28
|
+
FILE = "file"
|
|
29
|
+
|
|
30
|
+
def __str__(self):
|
|
31
|
+
return self.value
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
import enum
|
|
22
|
+
|
|
23
|
+
class LibsWorkflowsModelsTaskStatus(str, enum.Enum):
|
|
24
|
+
TODO = "todo"
|
|
25
|
+
IN_PROGRESS = "in_progress"
|
|
26
|
+
COMPLETED = "completed"
|
|
27
|
+
BLOCKED = "blocked"
|
|
28
|
+
CANCELLED = "cancelled"
|
|
29
|
+
|
|
30
|
+
def __str__(self):
|
|
31
|
+
return self.value
|
|
@@ -35,7 +35,8 @@ class ModifyUserInput(object):
|
|
|
35
35
|
'preferences': 'UserPreferences',
|
|
36
36
|
'root': 'bool',
|
|
37
37
|
'password': 'str',
|
|
38
|
-
'central_revision': 'int'
|
|
38
|
+
'central_revision': 'int',
|
|
39
|
+
'ldap_sync_id': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
@@ -49,7 +50,8 @@ class ModifyUserInput(object):
|
|
|
49
50
|
'preferences': 'preferences',
|
|
50
51
|
'root': 'root',
|
|
51
52
|
'password': 'password',
|
|
52
|
-
'central_revision': 'central_revision'
|
|
53
|
+
'central_revision': 'central_revision',
|
|
54
|
+
'ldap_sync_id': 'ldap_sync_id'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
rattribute_map = {
|
|
@@ -63,10 +65,11 @@ class ModifyUserInput(object):
|
|
|
63
65
|
'preferences': 'preferences',
|
|
64
66
|
'root': 'root',
|
|
65
67
|
'password': 'password',
|
|
66
|
-
'central_revision': 'central_revision'
|
|
68
|
+
'central_revision': 'central_revision',
|
|
69
|
+
'ldap_sync_id': 'ldap_sync_id'
|
|
67
70
|
}
|
|
68
71
|
|
|
69
|
-
def __init__(self, firstname=None, lastname=None, email=None, avatars=None, avatar=None, roles=None, disabled=None, preferences=None, root=None, password=None, central_revision=None): # noqa: E501
|
|
72
|
+
def __init__(self, firstname=None, lastname=None, email=None, avatars=None, avatar=None, roles=None, disabled=None, preferences=None, root=None, password=None, central_revision=None, ldap_sync_id=None): # noqa: E501
|
|
70
73
|
"""ModifyUserInput - a model defined in Swagger"""
|
|
71
74
|
super(ModifyUserInput, self).__init__()
|
|
72
75
|
|
|
@@ -81,6 +84,7 @@ class ModifyUserInput(object):
|
|
|
81
84
|
self._root = None
|
|
82
85
|
self._password = None
|
|
83
86
|
self._central_revision = None
|
|
87
|
+
self._ldap_sync_id = None
|
|
84
88
|
self.discriminator = None
|
|
85
89
|
self.alt_discriminator = None
|
|
86
90
|
|
|
@@ -106,6 +110,8 @@ class ModifyUserInput(object):
|
|
|
106
110
|
self.password = password
|
|
107
111
|
if central_revision is not None:
|
|
108
112
|
self.central_revision = central_revision
|
|
113
|
+
if ldap_sync_id is not None:
|
|
114
|
+
self.ldap_sync_id = ldap_sync_id
|
|
109
115
|
|
|
110
116
|
@property
|
|
111
117
|
def firstname(self):
|
|
@@ -338,6 +344,27 @@ class ModifyUserInput(object):
|
|
|
338
344
|
|
|
339
345
|
self._central_revision = central_revision
|
|
340
346
|
|
|
347
|
+
@property
|
|
348
|
+
def ldap_sync_id(self):
|
|
349
|
+
"""Gets the ldap_sync_id of this ModifyUserInput.
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
:return: The ldap_sync_id of this ModifyUserInput.
|
|
353
|
+
:rtype: str
|
|
354
|
+
"""
|
|
355
|
+
return self._ldap_sync_id
|
|
356
|
+
|
|
357
|
+
@ldap_sync_id.setter
|
|
358
|
+
def ldap_sync_id(self, ldap_sync_id):
|
|
359
|
+
"""Sets the ldap_sync_id of this ModifyUserInput.
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
:param ldap_sync_id: The ldap_sync_id of this ModifyUserInput. # noqa: E501
|
|
363
|
+
:type: str
|
|
364
|
+
"""
|
|
365
|
+
|
|
366
|
+
self._ldap_sync_id = ldap_sync_id
|
|
367
|
+
|
|
341
368
|
|
|
342
369
|
@staticmethod
|
|
343
370
|
def positional_to_model(value):
|
|
@@ -0,0 +1,217 @@
|
|
|
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.core_workflows_form_responses_models_form_response_output import CoreWorkflowsFormResponsesModelsFormResponseOutput # noqa: F401,E501
|
|
22
|
+
|
|
23
|
+
class PageGenericFormResponseOutput(object):
|
|
24
|
+
|
|
25
|
+
swagger_types = {
|
|
26
|
+
'count': 'int',
|
|
27
|
+
'total': 'int',
|
|
28
|
+
'results': 'list[CoreWorkflowsFormResponsesModelsFormResponseOutput]'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'count': 'count',
|
|
33
|
+
'total': 'total',
|
|
34
|
+
'results': 'results'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
rattribute_map = {
|
|
38
|
+
'count': 'count',
|
|
39
|
+
'total': 'total',
|
|
40
|
+
'results': 'results'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, count=None, total=None, results=None): # noqa: E501
|
|
44
|
+
"""PageGenericFormResponseOutput - a model defined in Swagger"""
|
|
45
|
+
super(PageGenericFormResponseOutput, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._count = None
|
|
48
|
+
self._total = None
|
|
49
|
+
self._results = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.alt_discriminator = None
|
|
52
|
+
|
|
53
|
+
if count is not None:
|
|
54
|
+
self.count = count
|
|
55
|
+
self.total = total
|
|
56
|
+
self.results = results
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def count(self):
|
|
60
|
+
"""Gets the count of this PageGenericFormResponseOutput.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The count of this PageGenericFormResponseOutput.
|
|
64
|
+
:rtype: int
|
|
65
|
+
"""
|
|
66
|
+
return self._count
|
|
67
|
+
|
|
68
|
+
@count.setter
|
|
69
|
+
def count(self, count):
|
|
70
|
+
"""Sets the count of this PageGenericFormResponseOutput.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param count: The count of this PageGenericFormResponseOutput. # noqa: E501
|
|
74
|
+
:type: int
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._count = count
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def total(self):
|
|
81
|
+
"""Gets the total of this PageGenericFormResponseOutput.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:return: The total of this PageGenericFormResponseOutput.
|
|
85
|
+
:rtype: int
|
|
86
|
+
"""
|
|
87
|
+
return self._total
|
|
88
|
+
|
|
89
|
+
@total.setter
|
|
90
|
+
def total(self, total):
|
|
91
|
+
"""Sets the total of this PageGenericFormResponseOutput.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:param total: The total of this PageGenericFormResponseOutput. # noqa: E501
|
|
95
|
+
:type: int
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
self._total = total
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def results(self):
|
|
102
|
+
"""Gets the results of this PageGenericFormResponseOutput.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:return: The results of this PageGenericFormResponseOutput.
|
|
106
|
+
:rtype: list[CoreWorkflowsFormResponsesModelsFormResponseOutput]
|
|
107
|
+
"""
|
|
108
|
+
return self._results
|
|
109
|
+
|
|
110
|
+
@results.setter
|
|
111
|
+
def results(self, results):
|
|
112
|
+
"""Sets the results of this PageGenericFormResponseOutput.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param results: The results of this PageGenericFormResponseOutput. # noqa: E501
|
|
116
|
+
:type: list[CoreWorkflowsFormResponsesModelsFormResponseOutput]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
self._results = results
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@staticmethod
|
|
123
|
+
def positional_to_model(value):
|
|
124
|
+
"""Converts a positional argument to a model value"""
|
|
125
|
+
return value
|
|
126
|
+
|
|
127
|
+
def return_value(self):
|
|
128
|
+
"""Unwraps return value from model"""
|
|
129
|
+
return self
|
|
130
|
+
|
|
131
|
+
def to_dict(self):
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, PageGenericFormResponseOutput):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.__dict__ == other.__dict__
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
return not self == other
|
|
173
|
+
|
|
174
|
+
# Container emulation
|
|
175
|
+
def __getitem__(self, key):
|
|
176
|
+
"""Returns the value of key"""
|
|
177
|
+
key = self._map_key(key)
|
|
178
|
+
return getattr(self, key)
|
|
179
|
+
|
|
180
|
+
def __setitem__(self, key, value):
|
|
181
|
+
"""Sets the value of key"""
|
|
182
|
+
key = self._map_key(key)
|
|
183
|
+
setattr(self, key, value)
|
|
184
|
+
|
|
185
|
+
def __contains__(self, key):
|
|
186
|
+
"""Checks if the given value is a key in this object"""
|
|
187
|
+
key = self._map_key(key, raise_on_error=False)
|
|
188
|
+
return key is not None
|
|
189
|
+
|
|
190
|
+
def keys(self):
|
|
191
|
+
"""Returns the list of json properties in the object"""
|
|
192
|
+
return self.__class__.rattribute_map.keys()
|
|
193
|
+
|
|
194
|
+
def values(self):
|
|
195
|
+
"""Returns the list of values in the object"""
|
|
196
|
+
for key in self.__class__.attribute_map.keys():
|
|
197
|
+
yield getattr(self, key)
|
|
198
|
+
|
|
199
|
+
def items(self):
|
|
200
|
+
"""Returns the list of json property to value mapping"""
|
|
201
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
202
|
+
yield key, getattr(self, prop)
|
|
203
|
+
|
|
204
|
+
def get(self, key, default=None):
|
|
205
|
+
"""Get the value of the provided json property, or default"""
|
|
206
|
+
key = self._map_key(key, raise_on_error=False)
|
|
207
|
+
if key:
|
|
208
|
+
return getattr(self, key, default)
|
|
209
|
+
return default
|
|
210
|
+
|
|
211
|
+
def _map_key(self, key, raise_on_error=True):
|
|
212
|
+
result = self.__class__.rattribute_map.get(key)
|
|
213
|
+
if result is None:
|
|
214
|
+
if raise_on_error:
|
|
215
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
216
|
+
return None
|
|
217
|
+
return '_' + result
|