flywheel-sdk 21.0.0__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.0.dist-info → flywheel_sdk-21.1.0.dist-info}/METADATA +1 -1
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/RECORD +71 -23
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-21.0.0.dist-info → flywheel_sdk-21.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
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 CoreWorkflowsFormResponsesModelsFormParents(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'project': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'project': 'project'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
rattribute_map = {
|
|
32
|
+
'project': 'project'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, project=None): # noqa: E501
|
|
36
|
+
"""CoreWorkflowsFormResponsesModelsFormParents - a model defined in Swagger"""
|
|
37
|
+
super(CoreWorkflowsFormResponsesModelsFormParents, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._project = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
self.alt_discriminator = None
|
|
42
|
+
|
|
43
|
+
self.project = project
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def project(self):
|
|
47
|
+
"""Gets the project of this CoreWorkflowsFormResponsesModelsFormParents.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
:return: The project of this CoreWorkflowsFormResponsesModelsFormParents.
|
|
51
|
+
:rtype: str
|
|
52
|
+
"""
|
|
53
|
+
return self._project
|
|
54
|
+
|
|
55
|
+
@project.setter
|
|
56
|
+
def project(self, project):
|
|
57
|
+
"""Sets the project of this CoreWorkflowsFormResponsesModelsFormParents.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:param project: The project of this CoreWorkflowsFormResponsesModelsFormParents. # noqa: E501
|
|
61
|
+
:type: str
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
self._project = project
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@staticmethod
|
|
68
|
+
def positional_to_model(value):
|
|
69
|
+
"""Converts a positional argument to a model value"""
|
|
70
|
+
return value
|
|
71
|
+
|
|
72
|
+
def return_value(self):
|
|
73
|
+
"""Unwraps return value from model"""
|
|
74
|
+
return self
|
|
75
|
+
|
|
76
|
+
def to_dict(self):
|
|
77
|
+
"""Returns the model properties as a dict"""
|
|
78
|
+
result = {}
|
|
79
|
+
|
|
80
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
81
|
+
value = getattr(self, attr)
|
|
82
|
+
if isinstance(value, list):
|
|
83
|
+
result[attr] = list(map(
|
|
84
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
85
|
+
value
|
|
86
|
+
))
|
|
87
|
+
elif hasattr(value, "to_dict"):
|
|
88
|
+
result[attr] = value.to_dict()
|
|
89
|
+
elif isinstance(value, dict):
|
|
90
|
+
result[attr] = dict(map(
|
|
91
|
+
lambda item: (item[0], item[1].to_dict())
|
|
92
|
+
if hasattr(item[1], "to_dict") else item,
|
|
93
|
+
value.items()
|
|
94
|
+
))
|
|
95
|
+
else:
|
|
96
|
+
result[attr] = value
|
|
97
|
+
|
|
98
|
+
return result
|
|
99
|
+
|
|
100
|
+
def to_str(self):
|
|
101
|
+
"""Returns the string representation of the model"""
|
|
102
|
+
return pprint.pformat(self.to_dict())
|
|
103
|
+
|
|
104
|
+
def __repr__(self):
|
|
105
|
+
"""For `print` and `pprint`"""
|
|
106
|
+
return self.to_str()
|
|
107
|
+
|
|
108
|
+
def __eq__(self, other):
|
|
109
|
+
"""Returns true if both objects are equal"""
|
|
110
|
+
if not isinstance(other, CoreWorkflowsFormResponsesModelsFormParents):
|
|
111
|
+
return False
|
|
112
|
+
|
|
113
|
+
return self.__dict__ == other.__dict__
|
|
114
|
+
|
|
115
|
+
def __ne__(self, other):
|
|
116
|
+
"""Returns true if both objects are not equal"""
|
|
117
|
+
return not self == other
|
|
118
|
+
|
|
119
|
+
# Container emulation
|
|
120
|
+
def __getitem__(self, key):
|
|
121
|
+
"""Returns the value of key"""
|
|
122
|
+
key = self._map_key(key)
|
|
123
|
+
return getattr(self, key)
|
|
124
|
+
|
|
125
|
+
def __setitem__(self, key, value):
|
|
126
|
+
"""Sets the value of key"""
|
|
127
|
+
key = self._map_key(key)
|
|
128
|
+
setattr(self, key, value)
|
|
129
|
+
|
|
130
|
+
def __contains__(self, key):
|
|
131
|
+
"""Checks if the given value is a key in this object"""
|
|
132
|
+
key = self._map_key(key, raise_on_error=False)
|
|
133
|
+
return key is not None
|
|
134
|
+
|
|
135
|
+
def keys(self):
|
|
136
|
+
"""Returns the list of json properties in the object"""
|
|
137
|
+
return self.__class__.rattribute_map.keys()
|
|
138
|
+
|
|
139
|
+
def values(self):
|
|
140
|
+
"""Returns the list of values in the object"""
|
|
141
|
+
for key in self.__class__.attribute_map.keys():
|
|
142
|
+
yield getattr(self, key)
|
|
143
|
+
|
|
144
|
+
def items(self):
|
|
145
|
+
"""Returns the list of json property to value mapping"""
|
|
146
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
147
|
+
yield key, getattr(self, prop)
|
|
148
|
+
|
|
149
|
+
def get(self, key, default=None):
|
|
150
|
+
"""Get the value of the provided json property, or default"""
|
|
151
|
+
key = self._map_key(key, raise_on_error=False)
|
|
152
|
+
if key:
|
|
153
|
+
return getattr(self, key, default)
|
|
154
|
+
return default
|
|
155
|
+
|
|
156
|
+
def _map_key(self, key, raise_on_error=True):
|
|
157
|
+
result = self.__class__.rattribute_map.get(key)
|
|
158
|
+
if result is None:
|
|
159
|
+
if raise_on_error:
|
|
160
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
161
|
+
return None
|
|
162
|
+
return '_' + result
|
|
@@ -0,0 +1,438 @@
|
|
|
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_parents import CoreWorkflowsFormResponsesModelsFormParents # noqa: F401,E501
|
|
22
|
+
from flywheel.models.origin import Origin # noqa: F401,E501
|
|
23
|
+
|
|
24
|
+
class CoreWorkflowsFormResponsesModelsFormResponseOutput(object):
|
|
25
|
+
|
|
26
|
+
swagger_types = {
|
|
27
|
+
'id': 'str',
|
|
28
|
+
'task_id': 'str',
|
|
29
|
+
'protocol_id': 'str',
|
|
30
|
+
'data': 'object',
|
|
31
|
+
'submitted': 'bool',
|
|
32
|
+
'submitted_at': 'datetime',
|
|
33
|
+
'origin': 'Origin',
|
|
34
|
+
'parents': 'CoreWorkflowsFormResponsesModelsFormParents',
|
|
35
|
+
'created': 'datetime',
|
|
36
|
+
'modified': 'datetime',
|
|
37
|
+
'revision': 'int'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'id': 'id',
|
|
42
|
+
'task_id': 'task_id',
|
|
43
|
+
'protocol_id': 'protocol_id',
|
|
44
|
+
'data': 'data',
|
|
45
|
+
'submitted': 'submitted',
|
|
46
|
+
'submitted_at': 'submitted_at',
|
|
47
|
+
'origin': 'origin',
|
|
48
|
+
'parents': 'parents',
|
|
49
|
+
'created': 'created',
|
|
50
|
+
'modified': 'modified',
|
|
51
|
+
'revision': 'revision'
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
rattribute_map = {
|
|
55
|
+
'id': 'id',
|
|
56
|
+
'task_id': 'task_id',
|
|
57
|
+
'protocol_id': 'protocol_id',
|
|
58
|
+
'data': 'data',
|
|
59
|
+
'submitted': 'submitted',
|
|
60
|
+
'submitted_at': 'submitted_at',
|
|
61
|
+
'origin': 'origin',
|
|
62
|
+
'parents': 'parents',
|
|
63
|
+
'created': 'created',
|
|
64
|
+
'modified': 'modified',
|
|
65
|
+
'revision': 'revision'
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
def __init__(self, id=None, task_id=None, protocol_id=None, data=None, submitted=None, submitted_at=None, origin=None, parents=None, created=None, modified=None, revision=None): # noqa: E501
|
|
69
|
+
"""CoreWorkflowsFormResponsesModelsFormResponseOutput - a model defined in Swagger"""
|
|
70
|
+
super(CoreWorkflowsFormResponsesModelsFormResponseOutput, self).__init__()
|
|
71
|
+
|
|
72
|
+
self._id = None
|
|
73
|
+
self._task_id = None
|
|
74
|
+
self._protocol_id = None
|
|
75
|
+
self._data = None
|
|
76
|
+
self._submitted = None
|
|
77
|
+
self._submitted_at = None
|
|
78
|
+
self._origin = None
|
|
79
|
+
self._parents = None
|
|
80
|
+
self._created = None
|
|
81
|
+
self._modified = None
|
|
82
|
+
self._revision = None
|
|
83
|
+
self.discriminator = None
|
|
84
|
+
self.alt_discriminator = None
|
|
85
|
+
|
|
86
|
+
self.id = id
|
|
87
|
+
self.task_id = task_id
|
|
88
|
+
self.protocol_id = protocol_id
|
|
89
|
+
self.data = data
|
|
90
|
+
self.submitted = submitted
|
|
91
|
+
if submitted_at is not None:
|
|
92
|
+
self.submitted_at = submitted_at
|
|
93
|
+
self.origin = origin
|
|
94
|
+
self.parents = parents
|
|
95
|
+
self.created = created
|
|
96
|
+
self.modified = modified
|
|
97
|
+
self.revision = revision
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def id(self):
|
|
101
|
+
"""Gets the id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
102
|
+
|
|
103
|
+
Unique identifier for the response
|
|
104
|
+
|
|
105
|
+
:return: The id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._id
|
|
109
|
+
|
|
110
|
+
@id.setter
|
|
111
|
+
def id(self, id):
|
|
112
|
+
"""Sets the id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
113
|
+
|
|
114
|
+
Unique identifier for the response
|
|
115
|
+
|
|
116
|
+
:param id: The id of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
117
|
+
:type: str
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._id = id
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def task_id(self):
|
|
124
|
+
"""Gets the task_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
125
|
+
|
|
126
|
+
ID of the task this response is linked to
|
|
127
|
+
|
|
128
|
+
:return: The task_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
129
|
+
:rtype: str
|
|
130
|
+
"""
|
|
131
|
+
return self._task_id
|
|
132
|
+
|
|
133
|
+
@task_id.setter
|
|
134
|
+
def task_id(self, task_id):
|
|
135
|
+
"""Sets the task_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
136
|
+
|
|
137
|
+
ID of the task this response is linked to
|
|
138
|
+
|
|
139
|
+
:param task_id: The task_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
140
|
+
:type: str
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
self._task_id = task_id
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def protocol_id(self):
|
|
147
|
+
"""Gets the protocol_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
148
|
+
|
|
149
|
+
ID of the protocol this response is for
|
|
150
|
+
|
|
151
|
+
:return: The protocol_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
152
|
+
:rtype: str
|
|
153
|
+
"""
|
|
154
|
+
return self._protocol_id
|
|
155
|
+
|
|
156
|
+
@protocol_id.setter
|
|
157
|
+
def protocol_id(self, protocol_id):
|
|
158
|
+
"""Sets the protocol_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
159
|
+
|
|
160
|
+
ID of the protocol this response is for
|
|
161
|
+
|
|
162
|
+
:param protocol_id: The protocol_id of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
163
|
+
:type: str
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
self._protocol_id = protocol_id
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def data(self):
|
|
170
|
+
"""Gets the data of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
171
|
+
|
|
172
|
+
User's form input data
|
|
173
|
+
|
|
174
|
+
:return: The data of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
175
|
+
:rtype: object
|
|
176
|
+
"""
|
|
177
|
+
return self._data
|
|
178
|
+
|
|
179
|
+
@data.setter
|
|
180
|
+
def data(self, data):
|
|
181
|
+
"""Sets the data of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
182
|
+
|
|
183
|
+
User's form input data
|
|
184
|
+
|
|
185
|
+
:param data: The data of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
186
|
+
:type: object
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
self._data = data
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def submitted(self):
|
|
193
|
+
"""Gets the submitted of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
194
|
+
|
|
195
|
+
Whether the response has been submitted
|
|
196
|
+
|
|
197
|
+
:return: The submitted of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
198
|
+
:rtype: bool
|
|
199
|
+
"""
|
|
200
|
+
return self._submitted
|
|
201
|
+
|
|
202
|
+
@submitted.setter
|
|
203
|
+
def submitted(self, submitted):
|
|
204
|
+
"""Sets the submitted of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
205
|
+
|
|
206
|
+
Whether the response has been submitted
|
|
207
|
+
|
|
208
|
+
:param submitted: The submitted of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
209
|
+
:type: bool
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._submitted = submitted
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def submitted_at(self):
|
|
216
|
+
"""Gets the submitted_at of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
217
|
+
|
|
218
|
+
Timestamp of submission if submitted
|
|
219
|
+
|
|
220
|
+
:return: The submitted_at of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
221
|
+
:rtype: datetime
|
|
222
|
+
"""
|
|
223
|
+
return self._submitted_at
|
|
224
|
+
|
|
225
|
+
@submitted_at.setter
|
|
226
|
+
def submitted_at(self, submitted_at):
|
|
227
|
+
"""Sets the submitted_at of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
228
|
+
|
|
229
|
+
Timestamp of submission if submitted
|
|
230
|
+
|
|
231
|
+
:param submitted_at: The submitted_at of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
232
|
+
:type: datetime
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._submitted_at = submitted_at
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def origin(self):
|
|
239
|
+
"""Gets the origin of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
:return: The origin of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
243
|
+
:rtype: Origin
|
|
244
|
+
"""
|
|
245
|
+
return self._origin
|
|
246
|
+
|
|
247
|
+
@origin.setter
|
|
248
|
+
def origin(self, origin):
|
|
249
|
+
"""Sets the origin of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
:param origin: The origin of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
253
|
+
:type: Origin
|
|
254
|
+
"""
|
|
255
|
+
|
|
256
|
+
self._origin = origin
|
|
257
|
+
|
|
258
|
+
@property
|
|
259
|
+
def parents(self):
|
|
260
|
+
"""Gets the parents of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
:return: The parents of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
264
|
+
:rtype: CoreWorkflowsFormResponsesModelsFormParents
|
|
265
|
+
"""
|
|
266
|
+
return self._parents
|
|
267
|
+
|
|
268
|
+
@parents.setter
|
|
269
|
+
def parents(self, parents):
|
|
270
|
+
"""Sets the parents of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
:param parents: The parents of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
274
|
+
:type: CoreWorkflowsFormResponsesModelsFormParents
|
|
275
|
+
"""
|
|
276
|
+
|
|
277
|
+
self._parents = parents
|
|
278
|
+
|
|
279
|
+
@property
|
|
280
|
+
def created(self):
|
|
281
|
+
"""Gets the created of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
:return: The created of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
285
|
+
:rtype: datetime
|
|
286
|
+
"""
|
|
287
|
+
return self._created
|
|
288
|
+
|
|
289
|
+
@created.setter
|
|
290
|
+
def created(self, created):
|
|
291
|
+
"""Sets the created of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
:param created: The created of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
295
|
+
:type: datetime
|
|
296
|
+
"""
|
|
297
|
+
|
|
298
|
+
self._created = created
|
|
299
|
+
|
|
300
|
+
@property
|
|
301
|
+
def modified(self):
|
|
302
|
+
"""Gets the modified of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
:return: The modified of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
306
|
+
:rtype: datetime
|
|
307
|
+
"""
|
|
308
|
+
return self._modified
|
|
309
|
+
|
|
310
|
+
@modified.setter
|
|
311
|
+
def modified(self, modified):
|
|
312
|
+
"""Sets the modified of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
:param modified: The modified of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
316
|
+
:type: datetime
|
|
317
|
+
"""
|
|
318
|
+
|
|
319
|
+
self._modified = modified
|
|
320
|
+
|
|
321
|
+
@property
|
|
322
|
+
def revision(self):
|
|
323
|
+
"""Gets the revision of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
:return: The revision of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
327
|
+
:rtype: int
|
|
328
|
+
"""
|
|
329
|
+
return self._revision
|
|
330
|
+
|
|
331
|
+
@revision.setter
|
|
332
|
+
def revision(self, revision):
|
|
333
|
+
"""Sets the revision of this CoreWorkflowsFormResponsesModelsFormResponseOutput.
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
:param revision: The revision of this CoreWorkflowsFormResponsesModelsFormResponseOutput. # noqa: E501
|
|
337
|
+
:type: int
|
|
338
|
+
"""
|
|
339
|
+
|
|
340
|
+
self._revision = revision
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
@staticmethod
|
|
344
|
+
def positional_to_model(value):
|
|
345
|
+
"""Converts a positional argument to a model value"""
|
|
346
|
+
return value
|
|
347
|
+
|
|
348
|
+
def return_value(self):
|
|
349
|
+
"""Unwraps return value from model"""
|
|
350
|
+
return self
|
|
351
|
+
|
|
352
|
+
def to_dict(self):
|
|
353
|
+
"""Returns the model properties as a dict"""
|
|
354
|
+
result = {}
|
|
355
|
+
|
|
356
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
357
|
+
value = getattr(self, attr)
|
|
358
|
+
if isinstance(value, list):
|
|
359
|
+
result[attr] = list(map(
|
|
360
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
361
|
+
value
|
|
362
|
+
))
|
|
363
|
+
elif hasattr(value, "to_dict"):
|
|
364
|
+
result[attr] = value.to_dict()
|
|
365
|
+
elif isinstance(value, dict):
|
|
366
|
+
result[attr] = dict(map(
|
|
367
|
+
lambda item: (item[0], item[1].to_dict())
|
|
368
|
+
if hasattr(item[1], "to_dict") else item,
|
|
369
|
+
value.items()
|
|
370
|
+
))
|
|
371
|
+
else:
|
|
372
|
+
result[attr] = value
|
|
373
|
+
|
|
374
|
+
return result
|
|
375
|
+
|
|
376
|
+
def to_str(self):
|
|
377
|
+
"""Returns the string representation of the model"""
|
|
378
|
+
return pprint.pformat(self.to_dict())
|
|
379
|
+
|
|
380
|
+
def __repr__(self):
|
|
381
|
+
"""For `print` and `pprint`"""
|
|
382
|
+
return self.to_str()
|
|
383
|
+
|
|
384
|
+
def __eq__(self, other):
|
|
385
|
+
"""Returns true if both objects are equal"""
|
|
386
|
+
if not isinstance(other, CoreWorkflowsFormResponsesModelsFormResponseOutput):
|
|
387
|
+
return False
|
|
388
|
+
|
|
389
|
+
return self.__dict__ == other.__dict__
|
|
390
|
+
|
|
391
|
+
def __ne__(self, other):
|
|
392
|
+
"""Returns true if both objects are not equal"""
|
|
393
|
+
return not self == other
|
|
394
|
+
|
|
395
|
+
# Container emulation
|
|
396
|
+
def __getitem__(self, key):
|
|
397
|
+
"""Returns the value of key"""
|
|
398
|
+
key = self._map_key(key)
|
|
399
|
+
return getattr(self, key)
|
|
400
|
+
|
|
401
|
+
def __setitem__(self, key, value):
|
|
402
|
+
"""Sets the value of key"""
|
|
403
|
+
key = self._map_key(key)
|
|
404
|
+
setattr(self, key, value)
|
|
405
|
+
|
|
406
|
+
def __contains__(self, key):
|
|
407
|
+
"""Checks if the given value is a key in this object"""
|
|
408
|
+
key = self._map_key(key, raise_on_error=False)
|
|
409
|
+
return key is not None
|
|
410
|
+
|
|
411
|
+
def keys(self):
|
|
412
|
+
"""Returns the list of json properties in the object"""
|
|
413
|
+
return self.__class__.rattribute_map.keys()
|
|
414
|
+
|
|
415
|
+
def values(self):
|
|
416
|
+
"""Returns the list of values in the object"""
|
|
417
|
+
for key in self.__class__.attribute_map.keys():
|
|
418
|
+
yield getattr(self, key)
|
|
419
|
+
|
|
420
|
+
def items(self):
|
|
421
|
+
"""Returns the list of json property to value mapping"""
|
|
422
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
423
|
+
yield key, getattr(self, prop)
|
|
424
|
+
|
|
425
|
+
def get(self, key, default=None):
|
|
426
|
+
"""Get the value of the provided json property, or default"""
|
|
427
|
+
key = self._map_key(key, raise_on_error=False)
|
|
428
|
+
if key:
|
|
429
|
+
return getattr(self, key, default)
|
|
430
|
+
return default
|
|
431
|
+
|
|
432
|
+
def _map_key(self, key, raise_on_error=True):
|
|
433
|
+
result = self.__class__.rattribute_map.get(key)
|
|
434
|
+
if result is None:
|
|
435
|
+
if raise_on_error:
|
|
436
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
437
|
+
return None
|
|
438
|
+
return '_' + result
|