flywheel-sdk 20.2.0rc2__py2.py3-none-any.whl → 20.3.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.
- flywheel/__init__.py +7 -2
- flywheel/api/acquisitions_api.py +42 -0
- flywheel/api/analyses_api.py +42 -4
- flywheel/api/audit_trail_api.py +6 -0
- flywheel/api/auth_api.py +2 -0
- flywheel/api/batch_api.py +7 -0
- flywheel/api/bulk_api.py +2 -0
- flywheel/api/change_log_api.py +3 -0
- flywheel/api/collections_api.py +35 -0
- flywheel/api/config_api.py +4 -0
- flywheel/api/container_type_api.py +2 -0
- flywheel/api/containers_api.py +40 -0
- flywheel/api/data_view_executions_api.py +6 -0
- flywheel/api/dataexplorer_api.py +12 -0
- flywheel/api/devices_api.py +12 -0
- flywheel/api/dimse_api.py +9 -0
- flywheel/api/download_api.py +3 -0
- flywheel/api/files_api.py +19 -0
- flywheel/api/gears_api.py +18 -0
- flywheel/api/groups_api.py +27 -0
- flywheel/api/jobs_api.py +22 -0
- flywheel/api/jupyterlab_servers_api.py +3 -0
- flywheel/api/modalities_api.py +6 -0
- flywheel/api/packfiles_api.py +2 -0
- flywheel/api/projects_api.py +68 -0
- flywheel/api/reports_api.py +11 -0
- flywheel/api/resolve_api.py +3 -0
- flywheel/api/roles_api.py +6 -0
- flywheel/api/sessions_api.py +160 -0
- flywheel/api/site_api.py +16 -0
- flywheel/api/subjects_api.py +45 -0
- flywheel/api/tree_api.py +3 -0
- flywheel/api/uids_api.py +2 -0
- flywheel/api/upload_api.py +8 -0
- flywheel/api/users_api.py +20 -0
- flywheel/api/views_api.py +10 -0
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +53 -2
- flywheel/flywheel.py +28 -2
- flywheel/models/__init__.py +8 -3
- flywheel/models/{project_copy_filter.py → copy_filter.py} +28 -28
- flywheel/models/{project_copy_status.py → copy_status.py} +1 -1
- flywheel/models/cvat_info.py +243 -0
- flywheel/models/cvat_settings.py +271 -0
- flywheel/models/cvat_settings_input.py +271 -0
- flywheel/models/cvat_sync_state.py +29 -0
- flywheel/models/features.py +55 -1
- flywheel/models/file.py +29 -1
- flywheel/models/file_list_output.py +29 -1
- flywheel/models/file_node.py +29 -1
- flywheel/models/file_output.py +29 -1
- flywheel/models/file_upsert_output.py +29 -1
- flywheel/models/mixins.py +0 -3
- flywheel/models/project_container_output.py +1 -1
- flywheel/models/project_copy_input.py +4 -4
- flywheel/models/project_modify.py +4 -4
- flywheel/models/project_node.py +1 -1
- flywheel/models/project_output.py +4 -4
- flywheel/models/project_settings_input.py +32 -4
- flywheel/models/project_settings_output.py +32 -4
- flywheel/models/search_parent_project.py +1 -1
- flywheel/models/search_parent_session.py +1 -0
- flywheel/models/session_container_output.py +1 -0
- flywheel/models/session_copy_input.py +244 -0
- flywheel/models/session_list_output.py +32 -4
- flywheel/models/session_node.py +1 -0
- flywheel/models/session_output.py +29 -1
- flywheel/util.py +10 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/RECORD +73 -68
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,271 @@
|
|
|
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 CVATSettings(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'enabled': 'bool',
|
|
25
|
+
'tags': 'list[str]',
|
|
26
|
+
'export_formats': 'list[str]',
|
|
27
|
+
'cvat_organization_id': 'str',
|
|
28
|
+
'cvat_project_id': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'enabled': 'enabled',
|
|
33
|
+
'tags': 'tags',
|
|
34
|
+
'export_formats': 'export_formats',
|
|
35
|
+
'cvat_organization_id': 'cvat_organization_id',
|
|
36
|
+
'cvat_project_id': 'cvat_project_id'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rattribute_map = {
|
|
40
|
+
'enabled': 'enabled',
|
|
41
|
+
'tags': 'tags',
|
|
42
|
+
'export_formats': 'export_formats',
|
|
43
|
+
'cvat_organization_id': 'cvat_organization_id',
|
|
44
|
+
'cvat_project_id': 'cvat_project_id'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, enabled=False, tags=None, export_formats=None, cvat_organization_id=None, cvat_project_id=None): # noqa: E501
|
|
48
|
+
"""CVATSettings - a model defined in Swagger"""
|
|
49
|
+
super(CVATSettings, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._enabled = None
|
|
52
|
+
self._tags = None
|
|
53
|
+
self._export_formats = None
|
|
54
|
+
self._cvat_organization_id = None
|
|
55
|
+
self._cvat_project_id = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
self.alt_discriminator = None
|
|
58
|
+
|
|
59
|
+
if enabled is not None:
|
|
60
|
+
self.enabled = enabled
|
|
61
|
+
if tags is not None:
|
|
62
|
+
self.tags = tags
|
|
63
|
+
if export_formats is not None:
|
|
64
|
+
self.export_formats = export_formats
|
|
65
|
+
if cvat_organization_id is not None:
|
|
66
|
+
self.cvat_organization_id = cvat_organization_id
|
|
67
|
+
if cvat_project_id is not None:
|
|
68
|
+
self.cvat_project_id = cvat_project_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def enabled(self):
|
|
72
|
+
"""Gets the enabled of this CVATSettings.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The enabled of this CVATSettings.
|
|
76
|
+
:rtype: bool
|
|
77
|
+
"""
|
|
78
|
+
return self._enabled
|
|
79
|
+
|
|
80
|
+
@enabled.setter
|
|
81
|
+
def enabled(self, enabled):
|
|
82
|
+
"""Sets the enabled of this CVATSettings.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param enabled: The enabled of this CVATSettings. # noqa: E501
|
|
86
|
+
:type: bool
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._enabled = enabled
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def tags(self):
|
|
93
|
+
"""Gets the tags of this CVATSettings.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The tags of this CVATSettings.
|
|
97
|
+
:rtype: list[str]
|
|
98
|
+
"""
|
|
99
|
+
return self._tags
|
|
100
|
+
|
|
101
|
+
@tags.setter
|
|
102
|
+
def tags(self, tags):
|
|
103
|
+
"""Sets the tags of this CVATSettings.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param tags: The tags of this CVATSettings. # noqa: E501
|
|
107
|
+
:type: list[str]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._tags = tags
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def export_formats(self):
|
|
114
|
+
"""Gets the export_formats of this CVATSettings.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The export_formats of this CVATSettings.
|
|
118
|
+
:rtype: list[str]
|
|
119
|
+
"""
|
|
120
|
+
return self._export_formats
|
|
121
|
+
|
|
122
|
+
@export_formats.setter
|
|
123
|
+
def export_formats(self, export_formats):
|
|
124
|
+
"""Sets the export_formats of this CVATSettings.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param export_formats: The export_formats of this CVATSettings. # noqa: E501
|
|
128
|
+
:type: list[str]
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._export_formats = export_formats
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def cvat_organization_id(self):
|
|
135
|
+
"""Gets the cvat_organization_id of this CVATSettings.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The cvat_organization_id of this CVATSettings.
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._cvat_organization_id
|
|
142
|
+
|
|
143
|
+
@cvat_organization_id.setter
|
|
144
|
+
def cvat_organization_id(self, cvat_organization_id):
|
|
145
|
+
"""Sets the cvat_organization_id of this CVATSettings.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param cvat_organization_id: The cvat_organization_id of this CVATSettings. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._cvat_organization_id = cvat_organization_id
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def cvat_project_id(self):
|
|
156
|
+
"""Gets the cvat_project_id of this CVATSettings.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:return: The cvat_project_id of this CVATSettings.
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
162
|
+
return self._cvat_project_id
|
|
163
|
+
|
|
164
|
+
@cvat_project_id.setter
|
|
165
|
+
def cvat_project_id(self, cvat_project_id):
|
|
166
|
+
"""Sets the cvat_project_id of this CVATSettings.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:param cvat_project_id: The cvat_project_id of this CVATSettings. # noqa: E501
|
|
170
|
+
:type: str
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
self._cvat_project_id = cvat_project_id
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def positional_to_model(value):
|
|
178
|
+
"""Converts a positional argument to a model value"""
|
|
179
|
+
return value
|
|
180
|
+
|
|
181
|
+
def return_value(self):
|
|
182
|
+
"""Unwraps return value from model"""
|
|
183
|
+
return self
|
|
184
|
+
|
|
185
|
+
def to_dict(self):
|
|
186
|
+
"""Returns the model properties as a dict"""
|
|
187
|
+
result = {}
|
|
188
|
+
|
|
189
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
190
|
+
value = getattr(self, attr)
|
|
191
|
+
if isinstance(value, list):
|
|
192
|
+
result[attr] = list(map(
|
|
193
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
194
|
+
value
|
|
195
|
+
))
|
|
196
|
+
elif hasattr(value, "to_dict"):
|
|
197
|
+
result[attr] = value.to_dict()
|
|
198
|
+
elif isinstance(value, dict):
|
|
199
|
+
result[attr] = dict(map(
|
|
200
|
+
lambda item: (item[0], item[1].to_dict())
|
|
201
|
+
if hasattr(item[1], "to_dict") else item,
|
|
202
|
+
value.items()
|
|
203
|
+
))
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
return pprint.pformat(self.to_dict())
|
|
212
|
+
|
|
213
|
+
def __repr__(self):
|
|
214
|
+
"""For `print` and `pprint`"""
|
|
215
|
+
return self.to_str()
|
|
216
|
+
|
|
217
|
+
def __eq__(self, other):
|
|
218
|
+
"""Returns true if both objects are equal"""
|
|
219
|
+
if not isinstance(other, CVATSettings):
|
|
220
|
+
return False
|
|
221
|
+
|
|
222
|
+
return self.__dict__ == other.__dict__
|
|
223
|
+
|
|
224
|
+
def __ne__(self, other):
|
|
225
|
+
"""Returns true if both objects are not equal"""
|
|
226
|
+
return not self == other
|
|
227
|
+
|
|
228
|
+
# Container emulation
|
|
229
|
+
def __getitem__(self, key):
|
|
230
|
+
"""Returns the value of key"""
|
|
231
|
+
key = self._map_key(key)
|
|
232
|
+
return getattr(self, key)
|
|
233
|
+
|
|
234
|
+
def __setitem__(self, key, value):
|
|
235
|
+
"""Sets the value of key"""
|
|
236
|
+
key = self._map_key(key)
|
|
237
|
+
setattr(self, key, value)
|
|
238
|
+
|
|
239
|
+
def __contains__(self, key):
|
|
240
|
+
"""Checks if the given value is a key in this object"""
|
|
241
|
+
key = self._map_key(key, raise_on_error=False)
|
|
242
|
+
return key is not None
|
|
243
|
+
|
|
244
|
+
def keys(self):
|
|
245
|
+
"""Returns the list of json properties in the object"""
|
|
246
|
+
return self.__class__.rattribute_map.keys()
|
|
247
|
+
|
|
248
|
+
def values(self):
|
|
249
|
+
"""Returns the list of values in the object"""
|
|
250
|
+
for key in self.__class__.attribute_map.keys():
|
|
251
|
+
yield getattr(self, key)
|
|
252
|
+
|
|
253
|
+
def items(self):
|
|
254
|
+
"""Returns the list of json property to value mapping"""
|
|
255
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
256
|
+
yield key, getattr(self, prop)
|
|
257
|
+
|
|
258
|
+
def get(self, key, default=None):
|
|
259
|
+
"""Get the value of the provided json property, or default"""
|
|
260
|
+
key = self._map_key(key, raise_on_error=False)
|
|
261
|
+
if key:
|
|
262
|
+
return getattr(self, key, default)
|
|
263
|
+
return default
|
|
264
|
+
|
|
265
|
+
def _map_key(self, key, raise_on_error=True):
|
|
266
|
+
result = self.__class__.rattribute_map.get(key)
|
|
267
|
+
if result is None:
|
|
268
|
+
if raise_on_error:
|
|
269
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
270
|
+
return None
|
|
271
|
+
return '_' + result
|
|
@@ -0,0 +1,271 @@
|
|
|
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 CVATSettingsInput(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'enabled': 'bool',
|
|
25
|
+
'tags': 'list[str]',
|
|
26
|
+
'export_formats': 'list[str]',
|
|
27
|
+
'cvat_organization_id': 'str',
|
|
28
|
+
'cvat_project_id': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'enabled': 'enabled',
|
|
33
|
+
'tags': 'tags',
|
|
34
|
+
'export_formats': 'export_formats',
|
|
35
|
+
'cvat_organization_id': 'cvat_organization_id',
|
|
36
|
+
'cvat_project_id': 'cvat_project_id'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rattribute_map = {
|
|
40
|
+
'enabled': 'enabled',
|
|
41
|
+
'tags': 'tags',
|
|
42
|
+
'export_formats': 'export_formats',
|
|
43
|
+
'cvat_organization_id': 'cvat_organization_id',
|
|
44
|
+
'cvat_project_id': 'cvat_project_id'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, enabled=None, tags=None, export_formats=None, cvat_organization_id=None, cvat_project_id=None): # noqa: E501
|
|
48
|
+
"""CVATSettingsInput - a model defined in Swagger"""
|
|
49
|
+
super(CVATSettingsInput, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._enabled = None
|
|
52
|
+
self._tags = None
|
|
53
|
+
self._export_formats = None
|
|
54
|
+
self._cvat_organization_id = None
|
|
55
|
+
self._cvat_project_id = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
self.alt_discriminator = None
|
|
58
|
+
|
|
59
|
+
if enabled is not None:
|
|
60
|
+
self.enabled = enabled
|
|
61
|
+
if tags is not None:
|
|
62
|
+
self.tags = tags
|
|
63
|
+
if export_formats is not None:
|
|
64
|
+
self.export_formats = export_formats
|
|
65
|
+
if cvat_organization_id is not None:
|
|
66
|
+
self.cvat_organization_id = cvat_organization_id
|
|
67
|
+
if cvat_project_id is not None:
|
|
68
|
+
self.cvat_project_id = cvat_project_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def enabled(self):
|
|
72
|
+
"""Gets the enabled of this CVATSettingsInput.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The enabled of this CVATSettingsInput.
|
|
76
|
+
:rtype: bool
|
|
77
|
+
"""
|
|
78
|
+
return self._enabled
|
|
79
|
+
|
|
80
|
+
@enabled.setter
|
|
81
|
+
def enabled(self, enabled):
|
|
82
|
+
"""Sets the enabled of this CVATSettingsInput.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param enabled: The enabled of this CVATSettingsInput. # noqa: E501
|
|
86
|
+
:type: bool
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._enabled = enabled
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def tags(self):
|
|
93
|
+
"""Gets the tags of this CVATSettingsInput.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The tags of this CVATSettingsInput.
|
|
97
|
+
:rtype: list[str]
|
|
98
|
+
"""
|
|
99
|
+
return self._tags
|
|
100
|
+
|
|
101
|
+
@tags.setter
|
|
102
|
+
def tags(self, tags):
|
|
103
|
+
"""Sets the tags of this CVATSettingsInput.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param tags: The tags of this CVATSettingsInput. # noqa: E501
|
|
107
|
+
:type: list[str]
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._tags = tags
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def export_formats(self):
|
|
114
|
+
"""Gets the export_formats of this CVATSettingsInput.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The export_formats of this CVATSettingsInput.
|
|
118
|
+
:rtype: list[str]
|
|
119
|
+
"""
|
|
120
|
+
return self._export_formats
|
|
121
|
+
|
|
122
|
+
@export_formats.setter
|
|
123
|
+
def export_formats(self, export_formats):
|
|
124
|
+
"""Sets the export_formats of this CVATSettingsInput.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param export_formats: The export_formats of this CVATSettingsInput. # noqa: E501
|
|
128
|
+
:type: list[str]
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._export_formats = export_formats
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def cvat_organization_id(self):
|
|
135
|
+
"""Gets the cvat_organization_id of this CVATSettingsInput.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The cvat_organization_id of this CVATSettingsInput.
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._cvat_organization_id
|
|
142
|
+
|
|
143
|
+
@cvat_organization_id.setter
|
|
144
|
+
def cvat_organization_id(self, cvat_organization_id):
|
|
145
|
+
"""Sets the cvat_organization_id of this CVATSettingsInput.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param cvat_organization_id: The cvat_organization_id of this CVATSettingsInput. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._cvat_organization_id = cvat_organization_id
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
def cvat_project_id(self):
|
|
156
|
+
"""Gets the cvat_project_id of this CVATSettingsInput.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
:return: The cvat_project_id of this CVATSettingsInput.
|
|
160
|
+
:rtype: str
|
|
161
|
+
"""
|
|
162
|
+
return self._cvat_project_id
|
|
163
|
+
|
|
164
|
+
@cvat_project_id.setter
|
|
165
|
+
def cvat_project_id(self, cvat_project_id):
|
|
166
|
+
"""Sets the cvat_project_id of this CVATSettingsInput.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
:param cvat_project_id: The cvat_project_id of this CVATSettingsInput. # noqa: E501
|
|
170
|
+
:type: str
|
|
171
|
+
"""
|
|
172
|
+
|
|
173
|
+
self._cvat_project_id = cvat_project_id
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
@staticmethod
|
|
177
|
+
def positional_to_model(value):
|
|
178
|
+
"""Converts a positional argument to a model value"""
|
|
179
|
+
return value
|
|
180
|
+
|
|
181
|
+
def return_value(self):
|
|
182
|
+
"""Unwraps return value from model"""
|
|
183
|
+
return self
|
|
184
|
+
|
|
185
|
+
def to_dict(self):
|
|
186
|
+
"""Returns the model properties as a dict"""
|
|
187
|
+
result = {}
|
|
188
|
+
|
|
189
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
190
|
+
value = getattr(self, attr)
|
|
191
|
+
if isinstance(value, list):
|
|
192
|
+
result[attr] = list(map(
|
|
193
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
194
|
+
value
|
|
195
|
+
))
|
|
196
|
+
elif hasattr(value, "to_dict"):
|
|
197
|
+
result[attr] = value.to_dict()
|
|
198
|
+
elif isinstance(value, dict):
|
|
199
|
+
result[attr] = dict(map(
|
|
200
|
+
lambda item: (item[0], item[1].to_dict())
|
|
201
|
+
if hasattr(item[1], "to_dict") else item,
|
|
202
|
+
value.items()
|
|
203
|
+
))
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
return pprint.pformat(self.to_dict())
|
|
212
|
+
|
|
213
|
+
def __repr__(self):
|
|
214
|
+
"""For `print` and `pprint`"""
|
|
215
|
+
return self.to_str()
|
|
216
|
+
|
|
217
|
+
def __eq__(self, other):
|
|
218
|
+
"""Returns true if both objects are equal"""
|
|
219
|
+
if not isinstance(other, CVATSettingsInput):
|
|
220
|
+
return False
|
|
221
|
+
|
|
222
|
+
return self.__dict__ == other.__dict__
|
|
223
|
+
|
|
224
|
+
def __ne__(self, other):
|
|
225
|
+
"""Returns true if both objects are not equal"""
|
|
226
|
+
return not self == other
|
|
227
|
+
|
|
228
|
+
# Container emulation
|
|
229
|
+
def __getitem__(self, key):
|
|
230
|
+
"""Returns the value of key"""
|
|
231
|
+
key = self._map_key(key)
|
|
232
|
+
return getattr(self, key)
|
|
233
|
+
|
|
234
|
+
def __setitem__(self, key, value):
|
|
235
|
+
"""Sets the value of key"""
|
|
236
|
+
key = self._map_key(key)
|
|
237
|
+
setattr(self, key, value)
|
|
238
|
+
|
|
239
|
+
def __contains__(self, key):
|
|
240
|
+
"""Checks if the given value is a key in this object"""
|
|
241
|
+
key = self._map_key(key, raise_on_error=False)
|
|
242
|
+
return key is not None
|
|
243
|
+
|
|
244
|
+
def keys(self):
|
|
245
|
+
"""Returns the list of json properties in the object"""
|
|
246
|
+
return self.__class__.rattribute_map.keys()
|
|
247
|
+
|
|
248
|
+
def values(self):
|
|
249
|
+
"""Returns the list of values in the object"""
|
|
250
|
+
for key in self.__class__.attribute_map.keys():
|
|
251
|
+
yield getattr(self, key)
|
|
252
|
+
|
|
253
|
+
def items(self):
|
|
254
|
+
"""Returns the list of json property to value mapping"""
|
|
255
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
256
|
+
yield key, getattr(self, prop)
|
|
257
|
+
|
|
258
|
+
def get(self, key, default=None):
|
|
259
|
+
"""Get the value of the provided json property, or default"""
|
|
260
|
+
key = self._map_key(key, raise_on_error=False)
|
|
261
|
+
if key:
|
|
262
|
+
return getattr(self, key, default)
|
|
263
|
+
return default
|
|
264
|
+
|
|
265
|
+
def _map_key(self, key, raise_on_error=True):
|
|
266
|
+
result = self.__class__.rattribute_map.get(key)
|
|
267
|
+
if result is None:
|
|
268
|
+
if raise_on_error:
|
|
269
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
270
|
+
return None
|
|
271
|
+
return '_' + result
|
|
@@ -0,0 +1,29 @@
|
|
|
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 CVATSyncState(str, enum.Enum):
|
|
24
|
+
NOT_SYNCED = "not_synced"
|
|
25
|
+
SYNCED = "synced"
|
|
26
|
+
ERROR = "error"
|
|
27
|
+
|
|
28
|
+
def __str__(self):
|
|
29
|
+
return self.value
|