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