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
flywheel/models/project_node.py
CHANGED
|
@@ -18,13 +18,13 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.edition import Edition # noqa: F401,E501
|
|
22
23
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
23
24
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
24
25
|
from flywheel.models.ldap_sync_status import LdapSyncStatus # noqa: F401,E501
|
|
25
26
|
from flywheel.models.locked import Locked # noqa: F401,E501
|
|
26
27
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
27
|
-
from flywheel.models.project_copy_status import ProjectCopyStatus # noqa: F401,E501
|
|
28
28
|
from flywheel.models.project_output import ProjectOutput # noqa: F401,E501
|
|
29
29
|
from flywheel.models.project_parents import ProjectParents # noqa: F401,E501
|
|
30
30
|
from flywheel.models.project_settings_output import ProjectSettingsOutput # noqa: F401,E501
|
|
@@ -18,13 +18,13 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.edition import Edition # noqa: F401,E501
|
|
22
23
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
23
24
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
24
25
|
from flywheel.models.ldap_sync_status import LdapSyncStatus # noqa: F401,E501
|
|
25
26
|
from flywheel.models.locked import Locked # noqa: F401,E501
|
|
26
27
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
27
|
-
from flywheel.models.project_copy_status import ProjectCopyStatus # noqa: F401,E501
|
|
28
28
|
from flywheel.models.project_parents import ProjectParents # noqa: F401,E501
|
|
29
29
|
from flywheel.models.project_settings_output import ProjectSettingsOutput # noqa: F401,E501
|
|
30
30
|
from flywheel.models.project_stats import ProjectStats # noqa: F401,E501
|
|
@@ -59,7 +59,7 @@ class ProjectOutput(ProjectMixin):
|
|
|
59
59
|
'modified': 'datetime',
|
|
60
60
|
'created': 'datetime',
|
|
61
61
|
'copyable': 'bool',
|
|
62
|
-
'copy_status': '
|
|
62
|
+
'copy_status': 'CopyStatus',
|
|
63
63
|
'copy_failure_reason': 'str',
|
|
64
64
|
'copy_of': 'str',
|
|
65
65
|
'original_copy_of': 'str',
|
|
@@ -692,7 +692,7 @@ class ProjectOutput(ProjectMixin):
|
|
|
692
692
|
|
|
693
693
|
|
|
694
694
|
:return: The copy_status of this ProjectOutput.
|
|
695
|
-
:rtype:
|
|
695
|
+
:rtype: CopyStatus
|
|
696
696
|
"""
|
|
697
697
|
return self._copy_status
|
|
698
698
|
|
|
@@ -702,7 +702,7 @@ class ProjectOutput(ProjectMixin):
|
|
|
702
702
|
|
|
703
703
|
|
|
704
704
|
:param copy_status: The copy_status of this ProjectOutput. # noqa: E501
|
|
705
|
-
:type:
|
|
705
|
+
:type: CopyStatus
|
|
706
706
|
"""
|
|
707
707
|
|
|
708
708
|
self._copy_status = copy_status
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.cvat_settings_input import CVATSettingsInput # noqa: F401,E501
|
|
21
22
|
from flywheel.models.form_definition import FormDefinition # noqa: F401,E501
|
|
22
23
|
from flywheel.models.project_settings_sharing_input import ProjectSettingsSharingInput # noqa: F401,E501
|
|
23
24
|
from flywheel.models.project_settings_workspaces_input import ProjectSettingsWorkspacesInput # noqa: F401,E501
|
|
@@ -31,7 +32,8 @@ class ProjectSettingsInput(object):
|
|
|
31
32
|
'forms': 'dict(str, list[FormDefinition])',
|
|
32
33
|
'external_routing_id': 'str',
|
|
33
34
|
'sharing': 'ProjectSettingsSharingInput',
|
|
34
|
-
'workspaces': 'ProjectSettingsWorkspacesInput'
|
|
35
|
+
'workspaces': 'ProjectSettingsWorkspacesInput',
|
|
36
|
+
'cvat': 'CVATSettingsInput'
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
attribute_map = {
|
|
@@ -40,7 +42,8 @@ class ProjectSettingsInput(object):
|
|
|
40
42
|
'forms': 'forms',
|
|
41
43
|
'external_routing_id': 'external_routing_id',
|
|
42
44
|
'sharing': 'sharing',
|
|
43
|
-
'workspaces': 'workspaces'
|
|
45
|
+
'workspaces': 'workspaces',
|
|
46
|
+
'cvat': 'cvat'
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
rattribute_map = {
|
|
@@ -49,10 +52,11 @@ class ProjectSettingsInput(object):
|
|
|
49
52
|
'forms': 'forms',
|
|
50
53
|
'external_routing_id': 'external_routing_id',
|
|
51
54
|
'sharing': 'sharing',
|
|
52
|
-
'workspaces': 'workspaces'
|
|
55
|
+
'workspaces': 'workspaces',
|
|
56
|
+
'cvat': 'cvat'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, viewer_apps=None, deid_profile=None, forms=None, external_routing_id=None, sharing=None, workspaces=None): # noqa: E501
|
|
59
|
+
def __init__(self, viewer_apps=None, deid_profile=None, forms=None, external_routing_id=None, sharing=None, workspaces=None, cvat=None): # noqa: E501
|
|
56
60
|
"""ProjectSettingsInput - a model defined in Swagger"""
|
|
57
61
|
super(ProjectSettingsInput, self).__init__()
|
|
58
62
|
|
|
@@ -62,6 +66,7 @@ class ProjectSettingsInput(object):
|
|
|
62
66
|
self._external_routing_id = None
|
|
63
67
|
self._sharing = None
|
|
64
68
|
self._workspaces = None
|
|
69
|
+
self._cvat = None
|
|
65
70
|
self.discriminator = None
|
|
66
71
|
self.alt_discriminator = None
|
|
67
72
|
|
|
@@ -77,6 +82,8 @@ class ProjectSettingsInput(object):
|
|
|
77
82
|
self.sharing = sharing
|
|
78
83
|
if workspaces is not None:
|
|
79
84
|
self.workspaces = workspaces
|
|
85
|
+
if cvat is not None:
|
|
86
|
+
self.cvat = cvat
|
|
80
87
|
|
|
81
88
|
@property
|
|
82
89
|
def viewer_apps(self):
|
|
@@ -204,6 +211,27 @@ class ProjectSettingsInput(object):
|
|
|
204
211
|
|
|
205
212
|
self._workspaces = workspaces
|
|
206
213
|
|
|
214
|
+
@property
|
|
215
|
+
def cvat(self):
|
|
216
|
+
"""Gets the cvat of this ProjectSettingsInput.
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:return: The cvat of this ProjectSettingsInput.
|
|
220
|
+
:rtype: CVATSettingsInput
|
|
221
|
+
"""
|
|
222
|
+
return self._cvat
|
|
223
|
+
|
|
224
|
+
@cvat.setter
|
|
225
|
+
def cvat(self, cvat):
|
|
226
|
+
"""Sets the cvat of this ProjectSettingsInput.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
:param cvat: The cvat of this ProjectSettingsInput. # noqa: E501
|
|
230
|
+
:type: CVATSettingsInput
|
|
231
|
+
"""
|
|
232
|
+
|
|
233
|
+
self._cvat = cvat
|
|
234
|
+
|
|
207
235
|
|
|
208
236
|
@staticmethod
|
|
209
237
|
def positional_to_model(value):
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.cvat_settings import CVATSettings # noqa: F401,E501
|
|
21
22
|
from flywheel.models.form_definition import FormDefinition # noqa: F401,E501
|
|
22
23
|
from flywheel.models.project_settings_sharing import ProjectSettingsSharing # noqa: F401,E501
|
|
23
24
|
from flywheel.models.viewer_app import ViewerApp # noqa: F401,E501
|
|
@@ -30,7 +31,8 @@ class ProjectSettingsOutput(object):
|
|
|
30
31
|
'forms': 'dict(str, list[FormDefinition])',
|
|
31
32
|
'external_routing_id': 'str',
|
|
32
33
|
'sharing': 'ProjectSettingsSharing',
|
|
33
|
-
'workspaces': 'ProjectSettingsWorkspaces'
|
|
34
|
+
'workspaces': 'ProjectSettingsWorkspaces',
|
|
35
|
+
'cvat': 'CVATSettings'
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
attribute_map = {
|
|
@@ -39,7 +41,8 @@ class ProjectSettingsOutput(object):
|
|
|
39
41
|
'forms': 'forms',
|
|
40
42
|
'external_routing_id': 'external_routing_id',
|
|
41
43
|
'sharing': 'sharing',
|
|
42
|
-
'workspaces': 'workspaces'
|
|
44
|
+
'workspaces': 'workspaces',
|
|
45
|
+
'cvat': 'cvat'
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
rattribute_map = {
|
|
@@ -48,10 +51,11 @@ class ProjectSettingsOutput(object):
|
|
|
48
51
|
'forms': 'forms',
|
|
49
52
|
'external_routing_id': 'external_routing_id',
|
|
50
53
|
'sharing': 'sharing',
|
|
51
|
-
'workspaces': 'workspaces'
|
|
54
|
+
'workspaces': 'workspaces',
|
|
55
|
+
'cvat': 'cvat'
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
def __init__(self, viewer_apps=None, deid_profile=None, forms=None, external_routing_id=None, sharing=None, workspaces=None): # noqa: E501
|
|
58
|
+
def __init__(self, viewer_apps=None, deid_profile=None, forms=None, external_routing_id=None, sharing=None, workspaces=None, cvat=None): # noqa: E501
|
|
55
59
|
"""ProjectSettingsOutput - a model defined in Swagger"""
|
|
56
60
|
super(ProjectSettingsOutput, self).__init__()
|
|
57
61
|
|
|
@@ -61,6 +65,7 @@ class ProjectSettingsOutput(object):
|
|
|
61
65
|
self._external_routing_id = None
|
|
62
66
|
self._sharing = None
|
|
63
67
|
self._workspaces = None
|
|
68
|
+
self._cvat = None
|
|
64
69
|
self.discriminator = None
|
|
65
70
|
self.alt_discriminator = None
|
|
66
71
|
|
|
@@ -76,6 +81,8 @@ class ProjectSettingsOutput(object):
|
|
|
76
81
|
self.sharing = sharing
|
|
77
82
|
if workspaces is not None:
|
|
78
83
|
self.workspaces = workspaces
|
|
84
|
+
if cvat is not None:
|
|
85
|
+
self.cvat = cvat
|
|
79
86
|
|
|
80
87
|
@property
|
|
81
88
|
def viewer_apps(self):
|
|
@@ -203,6 +210,27 @@ class ProjectSettingsOutput(object):
|
|
|
203
210
|
|
|
204
211
|
self._workspaces = workspaces
|
|
205
212
|
|
|
213
|
+
@property
|
|
214
|
+
def cvat(self):
|
|
215
|
+
"""Gets the cvat of this ProjectSettingsOutput.
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
:return: The cvat of this ProjectSettingsOutput.
|
|
219
|
+
:rtype: CVATSettings
|
|
220
|
+
"""
|
|
221
|
+
return self._cvat
|
|
222
|
+
|
|
223
|
+
@cvat.setter
|
|
224
|
+
def cvat(self, cvat):
|
|
225
|
+
"""Sets the cvat of this ProjectSettingsOutput.
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
:param cvat: The cvat of this ProjectSettingsOutput. # noqa: E501
|
|
229
|
+
:type: CVATSettings
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
self._cvat = cvat
|
|
233
|
+
|
|
206
234
|
|
|
207
235
|
@staticmethod
|
|
208
236
|
def positional_to_model(value):
|
|
@@ -19,13 +19,13 @@ import re # noqa: F401
|
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
21
|
from flywheel.models.container_type import ContainerType # noqa: F401,E501
|
|
22
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
22
23
|
from flywheel.models.edition import Edition # noqa: F401,E501
|
|
23
24
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
24
25
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
25
26
|
from flywheel.models.ldap_sync_status import LdapSyncStatus # noqa: F401,E501
|
|
26
27
|
from flywheel.models.locked import Locked # noqa: F401,E501
|
|
27
28
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
28
|
-
from flywheel.models.project_copy_status import ProjectCopyStatus # noqa: F401,E501
|
|
29
29
|
from flywheel.models.project_output import ProjectOutput # noqa: F401,E501
|
|
30
30
|
from flywheel.models.project_parents import ProjectParents # noqa: F401,E501
|
|
31
31
|
from flywheel.models.project_settings_output import ProjectSettingsOutput # noqa: F401,E501
|
|
@@ -19,6 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
21
|
from flywheel.models.container_type import ContainerType # noqa: F401,E501
|
|
22
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
22
23
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
23
24
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
24
25
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
22
23
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
23
24
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
@@ -0,0 +1,244 @@
|
|
|
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.copy_filter import CopyFilter # noqa: F401,E501
|
|
22
|
+
|
|
23
|
+
class SessionCopyInput(object):
|
|
24
|
+
|
|
25
|
+
swagger_types = {
|
|
26
|
+
'dst_session_label': 'str',
|
|
27
|
+
'dst_project_id': 'str',
|
|
28
|
+
'dst_subject_id': 'str',
|
|
29
|
+
'filter': 'CopyFilter'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
attribute_map = {
|
|
33
|
+
'dst_session_label': 'dst_session_label',
|
|
34
|
+
'dst_project_id': 'dst_project_id',
|
|
35
|
+
'dst_subject_id': 'dst_subject_id',
|
|
36
|
+
'filter': 'filter'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rattribute_map = {
|
|
40
|
+
'dst_session_label': 'dst_session_label',
|
|
41
|
+
'dst_project_id': 'dst_project_id',
|
|
42
|
+
'dst_subject_id': 'dst_subject_id',
|
|
43
|
+
'filter': 'filter'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
def __init__(self, dst_session_label=None, dst_project_id=None, dst_subject_id=None, filter=None): # noqa: E501
|
|
47
|
+
"""SessionCopyInput - a model defined in Swagger"""
|
|
48
|
+
super(SessionCopyInput, self).__init__()
|
|
49
|
+
|
|
50
|
+
self._dst_session_label = None
|
|
51
|
+
self._dst_project_id = None
|
|
52
|
+
self._dst_subject_id = None
|
|
53
|
+
self._filter = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
self.alt_discriminator = None
|
|
56
|
+
|
|
57
|
+
self.dst_session_label = dst_session_label
|
|
58
|
+
if dst_project_id is not None:
|
|
59
|
+
self.dst_project_id = dst_project_id
|
|
60
|
+
if dst_subject_id is not None:
|
|
61
|
+
self.dst_subject_id = dst_subject_id
|
|
62
|
+
self.filter = filter
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def dst_session_label(self):
|
|
66
|
+
"""Gets the dst_session_label of this SessionCopyInput.
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:return: The dst_session_label of this SessionCopyInput.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._dst_session_label
|
|
73
|
+
|
|
74
|
+
@dst_session_label.setter
|
|
75
|
+
def dst_session_label(self, dst_session_label):
|
|
76
|
+
"""Sets the dst_session_label of this SessionCopyInput.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
:param dst_session_label: The dst_session_label of this SessionCopyInput. # noqa: E501
|
|
80
|
+
:type: str
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
self._dst_session_label = dst_session_label
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def dst_project_id(self):
|
|
87
|
+
"""Gets the dst_project_id of this SessionCopyInput.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The dst_project_id of this SessionCopyInput.
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._dst_project_id
|
|
94
|
+
|
|
95
|
+
@dst_project_id.setter
|
|
96
|
+
def dst_project_id(self, dst_project_id):
|
|
97
|
+
"""Sets the dst_project_id of this SessionCopyInput.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param dst_project_id: The dst_project_id of this SessionCopyInput. # noqa: E501
|
|
101
|
+
:type: str
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
self._dst_project_id = dst_project_id
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def dst_subject_id(self):
|
|
108
|
+
"""Gets the dst_subject_id of this SessionCopyInput.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:return: The dst_subject_id of this SessionCopyInput.
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._dst_subject_id
|
|
115
|
+
|
|
116
|
+
@dst_subject_id.setter
|
|
117
|
+
def dst_subject_id(self, dst_subject_id):
|
|
118
|
+
"""Sets the dst_subject_id of this SessionCopyInput.
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param dst_subject_id: The dst_subject_id of this SessionCopyInput. # noqa: E501
|
|
122
|
+
:type: str
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
self._dst_subject_id = dst_subject_id
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def filter(self):
|
|
129
|
+
"""Gets the filter of this SessionCopyInput.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:return: The filter of this SessionCopyInput.
|
|
133
|
+
:rtype: CopyFilter
|
|
134
|
+
"""
|
|
135
|
+
return self._filter
|
|
136
|
+
|
|
137
|
+
@filter.setter
|
|
138
|
+
def filter(self, filter):
|
|
139
|
+
"""Sets the filter of this SessionCopyInput.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:param filter: The filter of this SessionCopyInput. # noqa: E501
|
|
143
|
+
:type: CopyFilter
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
self._filter = filter
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def positional_to_model(value):
|
|
151
|
+
"""Converts a positional argument to a model value"""
|
|
152
|
+
return value
|
|
153
|
+
|
|
154
|
+
def return_value(self):
|
|
155
|
+
"""Unwraps return value from model"""
|
|
156
|
+
return self
|
|
157
|
+
|
|
158
|
+
def to_dict(self):
|
|
159
|
+
"""Returns the model properties as a dict"""
|
|
160
|
+
result = {}
|
|
161
|
+
|
|
162
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
163
|
+
value = getattr(self, attr)
|
|
164
|
+
if isinstance(value, list):
|
|
165
|
+
result[attr] = list(map(
|
|
166
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
167
|
+
value
|
|
168
|
+
))
|
|
169
|
+
elif hasattr(value, "to_dict"):
|
|
170
|
+
result[attr] = value.to_dict()
|
|
171
|
+
elif isinstance(value, dict):
|
|
172
|
+
result[attr] = dict(map(
|
|
173
|
+
lambda item: (item[0], item[1].to_dict())
|
|
174
|
+
if hasattr(item[1], "to_dict") else item,
|
|
175
|
+
value.items()
|
|
176
|
+
))
|
|
177
|
+
else:
|
|
178
|
+
result[attr] = value
|
|
179
|
+
|
|
180
|
+
return result
|
|
181
|
+
|
|
182
|
+
def to_str(self):
|
|
183
|
+
"""Returns the string representation of the model"""
|
|
184
|
+
return pprint.pformat(self.to_dict())
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print` and `pprint`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, SessionCopyInput):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|
|
200
|
+
|
|
201
|
+
# Container emulation
|
|
202
|
+
def __getitem__(self, key):
|
|
203
|
+
"""Returns the value of key"""
|
|
204
|
+
key = self._map_key(key)
|
|
205
|
+
return getattr(self, key)
|
|
206
|
+
|
|
207
|
+
def __setitem__(self, key, value):
|
|
208
|
+
"""Sets the value of key"""
|
|
209
|
+
key = self._map_key(key)
|
|
210
|
+
setattr(self, key, value)
|
|
211
|
+
|
|
212
|
+
def __contains__(self, key):
|
|
213
|
+
"""Checks if the given value is a key in this object"""
|
|
214
|
+
key = self._map_key(key, raise_on_error=False)
|
|
215
|
+
return key is not None
|
|
216
|
+
|
|
217
|
+
def keys(self):
|
|
218
|
+
"""Returns the list of json properties in the object"""
|
|
219
|
+
return self.__class__.rattribute_map.keys()
|
|
220
|
+
|
|
221
|
+
def values(self):
|
|
222
|
+
"""Returns the list of values in the object"""
|
|
223
|
+
for key in self.__class__.attribute_map.keys():
|
|
224
|
+
yield getattr(self, key)
|
|
225
|
+
|
|
226
|
+
def items(self):
|
|
227
|
+
"""Returns the list of json property to value mapping"""
|
|
228
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
229
|
+
yield key, getattr(self, prop)
|
|
230
|
+
|
|
231
|
+
def get(self, key, default=None):
|
|
232
|
+
"""Get the value of the provided json property, or default"""
|
|
233
|
+
key = self._map_key(key, raise_on_error=False)
|
|
234
|
+
if key:
|
|
235
|
+
return getattr(self, key, default)
|
|
236
|
+
return default
|
|
237
|
+
|
|
238
|
+
def _map_key(self, key, raise_on_error=True):
|
|
239
|
+
result = self.__class__.rattribute_map.get(key)
|
|
240
|
+
if result is None:
|
|
241
|
+
if raise_on_error:
|
|
242
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
243
|
+
return None
|
|
244
|
+
return '_' + result
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.file_list_output import FileListOutput # noqa: F401,E501
|
|
22
23
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
23
24
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
@@ -55,7 +56,8 @@ class SessionListOutput(SessionMixin):
|
|
|
55
56
|
'join_origin': 'JoinOrigins',
|
|
56
57
|
'analyses': 'list[union[AnalysisListOutput,AnalysisListOutputInflatedJob]]',
|
|
57
58
|
'copy_of': 'object',
|
|
58
|
-
'original_copy_of': 'object'
|
|
59
|
+
'original_copy_of': 'object',
|
|
60
|
+
'copy_status': 'CopyStatus'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
attribute_map = {
|
|
@@ -85,7 +87,8 @@ class SessionListOutput(SessionMixin):
|
|
|
85
87
|
'join_origin': 'join-origin',
|
|
86
88
|
'analyses': 'analyses',
|
|
87
89
|
'copy_of': 'copy_of',
|
|
88
|
-
'original_copy_of': 'original_copy_of'
|
|
90
|
+
'original_copy_of': 'original_copy_of',
|
|
91
|
+
'copy_status': 'copy_status'
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
rattribute_map = {
|
|
@@ -115,10 +118,11 @@ class SessionListOutput(SessionMixin):
|
|
|
115
118
|
'join-origin': 'join_origin',
|
|
116
119
|
'analyses': 'analyses',
|
|
117
120
|
'copy_of': 'copy_of',
|
|
118
|
-
'original_copy_of': 'original_copy_of'
|
|
121
|
+
'original_copy_of': 'original_copy_of',
|
|
122
|
+
'copy_status': 'copy_status'
|
|
119
123
|
}
|
|
120
124
|
|
|
121
|
-
def __init__(self, id=None, group=None, project=None, parents=None, label=None, uid=None, timestamp=None, timezone=None, permissions=None, tags=None, notes=None, subject=None, age=None, weight=None, operator=None, files=None, info=None, info_exists=None, created=None, modified=None, revision=None, satisfies_template=None, project_has_template=False, join_origin=None, analyses=None, copy_of=None, original_copy_of=None): # noqa: E501
|
|
125
|
+
def __init__(self, id=None, group=None, project=None, parents=None, label=None, uid=None, timestamp=None, timezone=None, permissions=None, tags=None, notes=None, subject=None, age=None, weight=None, operator=None, files=None, info=None, info_exists=None, created=None, modified=None, revision=None, satisfies_template=None, project_has_template=False, join_origin=None, analyses=None, copy_of=None, original_copy_of=None, copy_status=None): # noqa: E501
|
|
122
126
|
"""SessionListOutput - a model defined in Swagger"""
|
|
123
127
|
super(SessionListOutput, self).__init__()
|
|
124
128
|
|
|
@@ -149,6 +153,7 @@ class SessionListOutput(SessionMixin):
|
|
|
149
153
|
self._analyses = None
|
|
150
154
|
self._copy_of = None
|
|
151
155
|
self._original_copy_of = None
|
|
156
|
+
self._copy_status = None
|
|
152
157
|
self.discriminator = None
|
|
153
158
|
self.alt_discriminator = None
|
|
154
159
|
|
|
@@ -193,6 +198,8 @@ class SessionListOutput(SessionMixin):
|
|
|
193
198
|
self.analyses = analyses
|
|
194
199
|
self.copy_of = copy_of
|
|
195
200
|
self.original_copy_of = original_copy_of
|
|
201
|
+
if copy_status is not None:
|
|
202
|
+
self.copy_status = copy_status
|
|
196
203
|
|
|
197
204
|
@property
|
|
198
205
|
def id(self):
|
|
@@ -761,6 +768,27 @@ class SessionListOutput(SessionMixin):
|
|
|
761
768
|
|
|
762
769
|
self._original_copy_of = original_copy_of
|
|
763
770
|
|
|
771
|
+
@property
|
|
772
|
+
def copy_status(self):
|
|
773
|
+
"""Gets the copy_status of this SessionListOutput.
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
:return: The copy_status of this SessionListOutput.
|
|
777
|
+
:rtype: CopyStatus
|
|
778
|
+
"""
|
|
779
|
+
return self._copy_status
|
|
780
|
+
|
|
781
|
+
@copy_status.setter
|
|
782
|
+
def copy_status(self, copy_status):
|
|
783
|
+
"""Sets the copy_status of this SessionListOutput.
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
:param copy_status: The copy_status of this SessionListOutput. # noqa: E501
|
|
787
|
+
:type: CopyStatus
|
|
788
|
+
"""
|
|
789
|
+
|
|
790
|
+
self._copy_status = copy_status
|
|
791
|
+
|
|
764
792
|
|
|
765
793
|
@staticmethod
|
|
766
794
|
def positional_to_model(value):
|
flywheel/models/session_node.py
CHANGED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
22
23
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
23
24
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
+
from flywheel.models.copy_status import CopyStatus # noqa: F401,E501
|
|
21
22
|
from flywheel.models.file_output import FileOutput # noqa: F401,E501
|
|
22
23
|
from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
|
|
23
24
|
from flywheel.models.note import Note # noqa: F401,E501
|
|
@@ -55,6 +56,7 @@ class SessionOutput(SessionMixin):
|
|
|
55
56
|
'join_origin': 'JoinOrigins',
|
|
56
57
|
'copy_of': 'str',
|
|
57
58
|
'original_copy_of': 'str',
|
|
59
|
+
'copy_status': 'CopyStatus',
|
|
58
60
|
'info_exists': 'bool'
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -85,6 +87,7 @@ class SessionOutput(SessionMixin):
|
|
|
85
87
|
'join_origin': 'join-origin',
|
|
86
88
|
'copy_of': 'copy_of',
|
|
87
89
|
'original_copy_of': 'original_copy_of',
|
|
90
|
+
'copy_status': 'copy_status',
|
|
88
91
|
'info_exists': 'info_exists'
|
|
89
92
|
}
|
|
90
93
|
|
|
@@ -115,10 +118,11 @@ class SessionOutput(SessionMixin):
|
|
|
115
118
|
'join-origin': 'join_origin',
|
|
116
119
|
'copy_of': 'copy_of',
|
|
117
120
|
'original_copy_of': 'original_copy_of',
|
|
121
|
+
'copy_status': 'copy_status',
|
|
118
122
|
'info_exists': 'info_exists'
|
|
119
123
|
}
|
|
120
124
|
|
|
121
|
-
def __init__(self, id=None, group=None, project=None, parents=None, label=None, info=None, uid=None, timestamp=None, timezone=None, tags=None, notes=None, permissions=None, subject=None, age=None, weight=None, operator=None, files=None, created=None, modified=None, revision=None, satisfies_template=None, analyses=None, project_has_template=False, join_origin=None, copy_of=None, original_copy_of=None, info_exists=None): # noqa: E501
|
|
125
|
+
def __init__(self, id=None, group=None, project=None, parents=None, label=None, info=None, uid=None, timestamp=None, timezone=None, tags=None, notes=None, permissions=None, subject=None, age=None, weight=None, operator=None, files=None, created=None, modified=None, revision=None, satisfies_template=None, analyses=None, project_has_template=False, join_origin=None, copy_of=None, original_copy_of=None, copy_status=None, info_exists=None): # noqa: E501
|
|
122
126
|
"""SessionOutput - a model defined in Swagger"""
|
|
123
127
|
super(SessionOutput, self).__init__()
|
|
124
128
|
|
|
@@ -148,6 +152,7 @@ class SessionOutput(SessionMixin):
|
|
|
148
152
|
self._join_origin = None
|
|
149
153
|
self._copy_of = None
|
|
150
154
|
self._original_copy_of = None
|
|
155
|
+
self._copy_status = None
|
|
151
156
|
self._info_exists = None
|
|
152
157
|
self.discriminator = None
|
|
153
158
|
self.alt_discriminator = None
|
|
@@ -191,6 +196,8 @@ class SessionOutput(SessionMixin):
|
|
|
191
196
|
self.join_origin = join_origin
|
|
192
197
|
self.copy_of = copy_of
|
|
193
198
|
self.original_copy_of = original_copy_of
|
|
199
|
+
if copy_status is not None:
|
|
200
|
+
self.copy_status = copy_status
|
|
194
201
|
if info_exists is not None:
|
|
195
202
|
self.info_exists = info_exists
|
|
196
203
|
|
|
@@ -740,6 +747,27 @@ class SessionOutput(SessionMixin):
|
|
|
740
747
|
|
|
741
748
|
self._original_copy_of = original_copy_of
|
|
742
749
|
|
|
750
|
+
@property
|
|
751
|
+
def copy_status(self):
|
|
752
|
+
"""Gets the copy_status of this SessionOutput.
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
:return: The copy_status of this SessionOutput.
|
|
756
|
+
:rtype: CopyStatus
|
|
757
|
+
"""
|
|
758
|
+
return self._copy_status
|
|
759
|
+
|
|
760
|
+
@copy_status.setter
|
|
761
|
+
def copy_status(self, copy_status):
|
|
762
|
+
"""Sets the copy_status of this SessionOutput.
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
:param copy_status: The copy_status of this SessionOutput. # noqa: E501
|
|
766
|
+
:type: CopyStatus
|
|
767
|
+
"""
|
|
768
|
+
|
|
769
|
+
self._copy_status = copy_status
|
|
770
|
+
|
|
743
771
|
@property
|
|
744
772
|
def info_exists(self):
|
|
745
773
|
"""Gets the info_exists of this SessionOutput.
|