flywheel-sdk 20.0.0rc0__py2.py3-none-any.whl → 20.1.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 +1 -0
- flywheel/api/acquisitions_api.py +2 -2
- flywheel/api/analyses_api.py +2 -2
- flywheel/api/collections_api.py +2 -2
- flywheel/api/dataexplorer_api.py +109 -0
- flywheel/api/files_api.py +2 -2
- flywheel/api/groups_api.py +2 -2
- flywheel/api/jobs_api.py +211 -0
- flywheel/api/projects_api.py +2 -2
- flywheel/api/resolve_api.py +10 -2
- flywheel/api/sessions_api.py +2 -2
- flywheel/api/subjects_api.py +2 -2
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/flywheel.py +44 -9
- flywheel/models/__init__.py +2 -1
- flywheel/models/action.py +4 -0
- flywheel/models/delete_by_search_query.py +251 -0
- flywheel/models/features.py +58 -4
- flywheel/models/search_query.py +30 -30
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0rc0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0rc0.dist-info}/RECORD +25 -24
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0rc0.dist-info}/LICENSE.txt +0 -0
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0rc0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0rc0.dist-info}/top_level.txt +0 -0
flywheel/flywheel.py
CHANGED
|
@@ -40,7 +40,7 @@ from flywheel.view_builder import ViewBuilder
|
|
|
40
40
|
from flywheel.finder import Finder
|
|
41
41
|
import flywheel.api
|
|
42
42
|
|
|
43
|
-
SDK_VERSION = "20.
|
|
43
|
+
SDK_VERSION = "20.1.0-rc0"
|
|
44
44
|
|
|
45
45
|
def config_from_api_key(api_key):
|
|
46
46
|
parts = api_key.split(':')
|
|
@@ -382,7 +382,7 @@ class Flywheel:
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
def delete_acquisitions_by_query(self, body, **kwargs): # noqa: E501
|
|
385
|
-
"""Delete multiple acquisitions by query
|
|
385
|
+
"""*DEPRECATED* Delete multiple acquisitions by query
|
|
386
386
|
|
|
387
387
|
Delete multiple acquisitions by query
|
|
388
388
|
|
|
@@ -902,7 +902,7 @@ class Flywheel:
|
|
|
902
902
|
|
|
903
903
|
|
|
904
904
|
def delete_analyses_by_query(self, body, **kwargs): # noqa: E501
|
|
905
|
-
"""Delete multiple analyses by query
|
|
905
|
+
"""*DEPRECATED* Delete multiple analyses by query
|
|
906
906
|
|
|
907
907
|
Delete multiple analyses by query
|
|
908
908
|
|
|
@@ -1582,7 +1582,7 @@ class Flywheel:
|
|
|
1582
1582
|
|
|
1583
1583
|
|
|
1584
1584
|
def delete_collections_by_query(self, body, **kwargs): # noqa: E501
|
|
1585
|
-
"""Delete multiple collections by query
|
|
1585
|
+
"""*DEPRECATED* Delete multiple collections by query
|
|
1586
1586
|
|
|
1587
1587
|
Delete multiple collections by query
|
|
1588
1588
|
|
|
@@ -2677,6 +2677,17 @@ class Flywheel:
|
|
|
2677
2677
|
return self.data_view_executions_api.save_data_view_execution(data_view_execution_id, **kwargs)
|
|
2678
2678
|
|
|
2679
2679
|
|
|
2680
|
+
def delete_by_search(self, body, **kwargs): # noqa: E501
|
|
2681
|
+
"""Delete containers by a search query
|
|
2682
|
+
|
|
2683
|
+
:param DeleteBySearchQuery body: (required)
|
|
2684
|
+
:param ContainerDeleteReason delete_reason:
|
|
2685
|
+
:param bool async_: Perform the request asynchronously
|
|
2686
|
+
:return: DeletedResult
|
|
2687
|
+
"""
|
|
2688
|
+
return self.dataexplorer_api.delete_by_search(body, **kwargs)
|
|
2689
|
+
|
|
2690
|
+
|
|
2680
2691
|
def delete_save_search(self, search_id, **kwargs): # noqa: E501
|
|
2681
2692
|
"""Delete a saved search
|
|
2682
2693
|
|
|
@@ -3097,7 +3108,7 @@ class Flywheel:
|
|
|
3097
3108
|
|
|
3098
3109
|
|
|
3099
3110
|
def delete_files_by_query(self, body, **kwargs): # noqa: E501
|
|
3100
|
-
"""Delete multiple files by query
|
|
3111
|
+
"""*DEPRECATED* Delete multiple files by query
|
|
3101
3112
|
|
|
3102
3113
|
Delete multiple files by query
|
|
3103
3114
|
|
|
@@ -3603,7 +3614,7 @@ class Flywheel:
|
|
|
3603
3614
|
|
|
3604
3615
|
|
|
3605
3616
|
def delete_groups_by_query(self, body, **kwargs): # noqa: E501
|
|
3606
|
-
"""Delete multiple groups by query
|
|
3617
|
+
"""*DEPRECATED* Delete multiple groups by query
|
|
3607
3618
|
|
|
3608
3619
|
Delete multiple groups by query
|
|
3609
3620
|
|
|
@@ -3871,6 +3882,28 @@ class Flywheel:
|
|
|
3871
3882
|
return self.jobs_api.determine_provider_for_job(body, **kwargs)
|
|
3872
3883
|
|
|
3873
3884
|
|
|
3885
|
+
def engine_complete_job(self, job_id, body, **kwargs): # noqa: E501
|
|
3886
|
+
"""Complete a job, with information.
|
|
3887
|
+
|
|
3888
|
+
:param str job_id: (required)
|
|
3889
|
+
:param JobComplete body: (required)
|
|
3890
|
+
:param str job_ticket_id: ticket id for job completion
|
|
3891
|
+
:param bool async_: Perform the request asynchronously
|
|
3892
|
+
:return: None
|
|
3893
|
+
"""
|
|
3894
|
+
return self.jobs_api.engine_complete_job(job_id, body, **kwargs)
|
|
3895
|
+
|
|
3896
|
+
|
|
3897
|
+
def engine_prepare_complete_job(self, job_id, **kwargs): # noqa: E501
|
|
3898
|
+
"""Create a ticket for completing a job, with id and status.
|
|
3899
|
+
|
|
3900
|
+
:param str job_id: (required)
|
|
3901
|
+
:param bool async_: Perform the request asynchronously
|
|
3902
|
+
:return: JobTicketOutput
|
|
3903
|
+
"""
|
|
3904
|
+
return self.jobs_api.engine_prepare_complete_job(job_id, **kwargs)
|
|
3905
|
+
|
|
3906
|
+
|
|
3874
3907
|
def get_all_jobs(self, **kwargs): # noqa: E501
|
|
3875
3908
|
"""Return all jobs
|
|
3876
3909
|
|
|
@@ -4359,7 +4392,7 @@ class Flywheel:
|
|
|
4359
4392
|
|
|
4360
4393
|
|
|
4361
4394
|
def delete_projects_by_query(self, body, **kwargs): # noqa: E501
|
|
4362
|
-
"""Delete multiple projects by query
|
|
4395
|
+
"""*DEPRECATED* Delete multiple projects by query
|
|
4363
4396
|
|
|
4364
4397
|
Delete multiple projects by query
|
|
4365
4398
|
|
|
@@ -5263,6 +5296,7 @@ class Flywheel:
|
|
|
5263
5296
|
:param ResolveInput body: (required)
|
|
5264
5297
|
:param bool full_tree:
|
|
5265
5298
|
:param bool exhaustive:
|
|
5299
|
+
:param bool include_all_info: Include all info in returned objects
|
|
5266
5300
|
:param bool async_: Perform the request asynchronously
|
|
5267
5301
|
:return: ResolverNode
|
|
5268
5302
|
"""
|
|
@@ -5278,6 +5312,7 @@ class Flywheel:
|
|
|
5278
5312
|
:param bool full_tree: Parse full download style paths (e.g. group/PROJECTS/project_label/SUBJECTS/...)
|
|
5279
5313
|
:param bool minattr: Return only minimal attributes
|
|
5280
5314
|
:param bool exhaustive: Set to return a complete list regardless of permissions
|
|
5315
|
+
:param bool include_all_info: Include all info in returned objects
|
|
5281
5316
|
:param bool async_: Perform the request asynchronously
|
|
5282
5317
|
:return: ResolveOutput
|
|
5283
5318
|
"""
|
|
@@ -5531,7 +5566,7 @@ class Flywheel:
|
|
|
5531
5566
|
|
|
5532
5567
|
|
|
5533
5568
|
def delete_sessions_by_query(self, body, **kwargs): # noqa: E501
|
|
5534
|
-
"""Delete multiple sessions by query
|
|
5569
|
+
"""*DEPRECATED* Delete multiple sessions by query
|
|
5535
5570
|
|
|
5536
5571
|
Delete multiple sessions by query
|
|
5537
5572
|
|
|
@@ -6427,7 +6462,7 @@ class Flywheel:
|
|
|
6427
6462
|
|
|
6428
6463
|
|
|
6429
6464
|
def delete_subjects_by_query(self, body, **kwargs): # noqa: E501
|
|
6430
|
-
"""Delete multiple subjects by query
|
|
6465
|
+
"""*DEPRECATED* Delete multiple subjects by query
|
|
6431
6466
|
|
|
6432
6467
|
Delete multiple subjects by query
|
|
6433
6468
|
|
flywheel/models/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Flywheel: API for data import, automated curation, image processing, machine learning workflows, and secure collaboration. # noqa: E501
|
|
8
8
|
|
|
9
|
-
OpenAPI spec version: 20.
|
|
9
|
+
OpenAPI spec version: 20.1.0-rc0
|
|
10
10
|
|
|
11
11
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
"""
|
|
@@ -172,6 +172,7 @@ from flywheel.models.data_view_save_data_view_input import DataViewSaveDataViewI
|
|
|
172
172
|
from flywheel.models.data_view_zip_filter_spec import DataViewZipFilterSpec
|
|
173
173
|
from flywheel.models.default_flywheel_role import DefaultFlywheelRole
|
|
174
174
|
from flywheel.models.deid_log_skip_reason import DeidLogSkipReason
|
|
175
|
+
from flywheel.models.delete_by_search_query import DeleteBySearchQuery
|
|
175
176
|
from flywheel.models.deleted_file import DeletedFile
|
|
176
177
|
from flywheel.models.deleted_result import DeletedResult
|
|
177
178
|
from flywheel.models.deprecated_action import DeprecatedAction
|
flywheel/models/action.py
CHANGED
|
@@ -81,6 +81,10 @@ class Action(str, enum.Enum):
|
|
|
81
81
|
AZUREML_ACCESS = "azureml_access"
|
|
82
82
|
AUDIT_TRAIL_REPORTS_MANAGE = "audit_trail_reports_manage"
|
|
83
83
|
AUDIT_TRAIL_REPORTS_VIEW = "audit_trail_reports_view"
|
|
84
|
+
TASKS_VIEW = "tasks_view"
|
|
85
|
+
TASKS_CREATE = "tasks_create"
|
|
86
|
+
TASKS_MODIFY = "tasks_modify"
|
|
87
|
+
TASKS_ASSIGN = "tasks_assign"
|
|
84
88
|
|
|
85
89
|
def __str__(self):
|
|
86
90
|
return self.value
|
|
@@ -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
|
+
class DeleteBySearchQuery(object):
|
|
22
|
+
|
|
23
|
+
swagger_types = {
|
|
24
|
+
'return_type': 'SearchReturnType',
|
|
25
|
+
'structured_query': 'str',
|
|
26
|
+
'search_string': 'str',
|
|
27
|
+
'filters': 'list[object]'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'return_type': 'return_type',
|
|
32
|
+
'structured_query': 'structured_query',
|
|
33
|
+
'search_string': 'search_string',
|
|
34
|
+
'filters': 'filters'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
rattribute_map = {
|
|
38
|
+
'return_type': 'return_type',
|
|
39
|
+
'structured_query': 'structured_query',
|
|
40
|
+
'search_string': 'search_string',
|
|
41
|
+
'filters': 'filters'
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
def __init__(self, return_type=None, structured_query=None, search_string=None, filters=None): # noqa: E501
|
|
45
|
+
"""DeleteBySearchQuery - a model defined in Swagger"""
|
|
46
|
+
super(DeleteBySearchQuery, self).__init__()
|
|
47
|
+
|
|
48
|
+
self._return_type = None
|
|
49
|
+
self._structured_query = None
|
|
50
|
+
self._search_string = None
|
|
51
|
+
self._filters = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
self.alt_discriminator = None
|
|
54
|
+
|
|
55
|
+
self.return_type = return_type
|
|
56
|
+
if structured_query is not None:
|
|
57
|
+
self.structured_query = structured_query
|
|
58
|
+
if search_string is not None:
|
|
59
|
+
self.search_string = search_string
|
|
60
|
+
if filters is not None:
|
|
61
|
+
self.filters = filters
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def return_type(self):
|
|
65
|
+
"""Gets the return_type of this DeleteBySearchQuery.
|
|
66
|
+
|
|
67
|
+
Sets the type of search results to delete
|
|
68
|
+
|
|
69
|
+
:return: The return_type of this DeleteBySearchQuery.
|
|
70
|
+
:rtype: SearchReturnType
|
|
71
|
+
"""
|
|
72
|
+
return self._return_type
|
|
73
|
+
|
|
74
|
+
@return_type.setter
|
|
75
|
+
def return_type(self, return_type):
|
|
76
|
+
"""Sets the return_type of this DeleteBySearchQuery.
|
|
77
|
+
|
|
78
|
+
Sets the type of search results to delete
|
|
79
|
+
|
|
80
|
+
:param return_type: The return_type of this DeleteBySearchQuery. # noqa: E501
|
|
81
|
+
:type: SearchReturnType
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._return_type = return_type
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def structured_query(self):
|
|
88
|
+
"""Gets the structured_query of this DeleteBySearchQuery.
|
|
89
|
+
|
|
90
|
+
Represents structured query language search
|
|
91
|
+
|
|
92
|
+
:return: The structured_query of this DeleteBySearchQuery.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._structured_query
|
|
96
|
+
|
|
97
|
+
@structured_query.setter
|
|
98
|
+
def structured_query(self, structured_query):
|
|
99
|
+
"""Sets the structured_query of this DeleteBySearchQuery.
|
|
100
|
+
|
|
101
|
+
Represents structured query language search
|
|
102
|
+
|
|
103
|
+
:param structured_query: The structured_query of this DeleteBySearchQuery. # noqa: E501
|
|
104
|
+
:type: str
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
self._structured_query = structured_query
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def search_string(self):
|
|
111
|
+
"""Gets the search_string of this DeleteBySearchQuery.
|
|
112
|
+
|
|
113
|
+
Represents the plain text search query
|
|
114
|
+
|
|
115
|
+
:return: The search_string of this DeleteBySearchQuery.
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._search_string
|
|
119
|
+
|
|
120
|
+
@search_string.setter
|
|
121
|
+
def search_string(self, search_string):
|
|
122
|
+
"""Sets the search_string of this DeleteBySearchQuery.
|
|
123
|
+
|
|
124
|
+
Represents the plain text search query
|
|
125
|
+
|
|
126
|
+
:param search_string: The search_string of this DeleteBySearchQuery. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._search_string = search_string
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def filters(self):
|
|
134
|
+
"""Gets the filters of this DeleteBySearchQuery.
|
|
135
|
+
|
|
136
|
+
See https://www.elastic.co/guide/en/elasticsearch/reference/current/term-level-queries.html
|
|
137
|
+
|
|
138
|
+
:return: The filters of this DeleteBySearchQuery.
|
|
139
|
+
:rtype: list[object]
|
|
140
|
+
"""
|
|
141
|
+
return self._filters
|
|
142
|
+
|
|
143
|
+
@filters.setter
|
|
144
|
+
def filters(self, filters):
|
|
145
|
+
"""Sets the filters of this DeleteBySearchQuery.
|
|
146
|
+
|
|
147
|
+
See https://www.elastic.co/guide/en/elasticsearch/reference/current/term-level-queries.html
|
|
148
|
+
|
|
149
|
+
:param filters: The filters of this DeleteBySearchQuery. # noqa: E501
|
|
150
|
+
:type: list[object]
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._filters = filters
|
|
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, DeleteBySearchQuery):
|
|
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
|
flywheel/models/features.py
CHANGED
|
@@ -53,6 +53,7 @@ class Features(object):
|
|
|
53
53
|
'multipart_signed_url': 'bool',
|
|
54
54
|
'multiproject': 'bool',
|
|
55
55
|
'ohif_multi_subject_view': 'bool',
|
|
56
|
+
'ohif_meteor': 'bool',
|
|
56
57
|
'ohif_react': 'bool',
|
|
57
58
|
'ohif_react_beta': 'bool',
|
|
58
59
|
'ohif_slice_order': 'str',
|
|
@@ -81,7 +82,8 @@ class Features(object):
|
|
|
81
82
|
'userpilot': 'bool',
|
|
82
83
|
'validate_classification': 'bool',
|
|
83
84
|
'virus_scan': 'bool',
|
|
84
|
-
'legacy_dicom_uploader': 'bool'
|
|
85
|
+
'legacy_dicom_uploader': 'bool',
|
|
86
|
+
'tasks_refactor': 'bool'
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
attribute_map = {
|
|
@@ -117,6 +119,7 @@ class Features(object):
|
|
|
117
119
|
'multipart_signed_url': 'multipart_signed_url',
|
|
118
120
|
'multiproject': 'multiproject',
|
|
119
121
|
'ohif_multi_subject_view': 'ohif_multi_subject_view',
|
|
122
|
+
'ohif_meteor': 'ohif_meteor',
|
|
120
123
|
'ohif_react': 'ohif_react',
|
|
121
124
|
'ohif_react_beta': 'ohif_react_beta',
|
|
122
125
|
'ohif_slice_order': 'ohif_slice_order',
|
|
@@ -145,7 +148,8 @@ class Features(object):
|
|
|
145
148
|
'userpilot': 'userpilot',
|
|
146
149
|
'validate_classification': 'validate_classification',
|
|
147
150
|
'virus_scan': 'virus_scan',
|
|
148
|
-
'legacy_dicom_uploader': 'legacy_dicom_uploader'
|
|
151
|
+
'legacy_dicom_uploader': 'legacy_dicom_uploader',
|
|
152
|
+
'tasks_refactor': 'tasks_refactor'
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
rattribute_map = {
|
|
@@ -181,6 +185,7 @@ class Features(object):
|
|
|
181
185
|
'multipart_signed_url': 'multipart_signed_url',
|
|
182
186
|
'multiproject': 'multiproject',
|
|
183
187
|
'ohif_multi_subject_view': 'ohif_multi_subject_view',
|
|
188
|
+
'ohif_meteor': 'ohif_meteor',
|
|
184
189
|
'ohif_react': 'ohif_react',
|
|
185
190
|
'ohif_react_beta': 'ohif_react_beta',
|
|
186
191
|
'ohif_slice_order': 'ohif_slice_order',
|
|
@@ -209,10 +214,11 @@ class Features(object):
|
|
|
209
214
|
'userpilot': 'userpilot',
|
|
210
215
|
'validate_classification': 'validate_classification',
|
|
211
216
|
'virus_scan': 'virus_scan',
|
|
212
|
-
'legacy_dicom_uploader': 'legacy_dicom_uploader'
|
|
217
|
+
'legacy_dicom_uploader': 'legacy_dicom_uploader',
|
|
218
|
+
'tasks_refactor': 'tasks_refactor'
|
|
213
219
|
}
|
|
214
220
|
|
|
215
|
-
def __init__(self, api_enabled_gear_rules=True, auth0=None, audit_trail=False, azureml_integration=False, cold_job_logs=False, collections=False, copy_by_reference=True, core_api=True, crawler=False, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dicom_web_uploader_non_21_cfr=True, dimse=False, elastic_search_primary=False, exchange=False, exchange_admin=False, external_routing=False, gear_access=True, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, jupyterhub_external_storage=True, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v2_adhoc_indexing=True, ohif_v3=True, ohif_v3_beta=False, ohif_v3_default_app=False, ohif_v3_readonly=False, project_export=True, project_import=True, project_list_uses_stats=False, project_locking=False, reader_tasks=False, rts_sync=False, sentry_logging=None, session_templates_non_21_cfr=True, shared_projects=False, signed_url=False, study_task_status=False, tagging=False, tags_in_lists=True, task_manager_data_views=True, transform_search_fields=True, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=False, virus_scan=False, legacy_dicom_uploader=False): # noqa: E501
|
|
221
|
+
def __init__(self, api_enabled_gear_rules=True, auth0=None, audit_trail=False, azureml_integration=False, cold_job_logs=False, collections=False, copy_by_reference=True, core_api=True, crawler=False, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dicom_web_uploader_non_21_cfr=True, dimse=False, elastic_search_primary=False, exchange=False, exchange_admin=False, external_routing=False, gear_access=True, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, jupyterhub_external_storage=True, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_meteor=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v2_adhoc_indexing=True, ohif_v3=True, ohif_v3_beta=False, ohif_v3_default_app=False, ohif_v3_readonly=False, project_export=True, project_import=True, project_list_uses_stats=False, project_locking=False, reader_tasks=False, rts_sync=False, sentry_logging=None, session_templates_non_21_cfr=True, shared_projects=False, signed_url=False, study_task_status=False, tagging=False, tags_in_lists=True, task_manager_data_views=True, transform_search_fields=True, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=False, virus_scan=False, legacy_dicom_uploader=False, tasks_refactor=False): # noqa: E501
|
|
216
222
|
"""Features - a model defined in Swagger"""
|
|
217
223
|
super(Features, self).__init__()
|
|
218
224
|
|
|
@@ -248,6 +254,7 @@ class Features(object):
|
|
|
248
254
|
self._multipart_signed_url = None
|
|
249
255
|
self._multiproject = None
|
|
250
256
|
self._ohif_multi_subject_view = None
|
|
257
|
+
self._ohif_meteor = None
|
|
251
258
|
self._ohif_react = None
|
|
252
259
|
self._ohif_react_beta = None
|
|
253
260
|
self._ohif_slice_order = None
|
|
@@ -277,6 +284,7 @@ class Features(object):
|
|
|
277
284
|
self._validate_classification = None
|
|
278
285
|
self._virus_scan = None
|
|
279
286
|
self._legacy_dicom_uploader = None
|
|
287
|
+
self._tasks_refactor = None
|
|
280
288
|
self.discriminator = None
|
|
281
289
|
self.alt_discriminator = None
|
|
282
290
|
|
|
@@ -344,6 +352,8 @@ class Features(object):
|
|
|
344
352
|
self.multiproject = multiproject
|
|
345
353
|
if ohif_multi_subject_view is not None:
|
|
346
354
|
self.ohif_multi_subject_view = ohif_multi_subject_view
|
|
355
|
+
if ohif_meteor is not None:
|
|
356
|
+
self.ohif_meteor = ohif_meteor
|
|
347
357
|
if ohif_react is not None:
|
|
348
358
|
self.ohif_react = ohif_react
|
|
349
359
|
if ohif_react_beta is not None:
|
|
@@ -402,6 +412,8 @@ class Features(object):
|
|
|
402
412
|
self.virus_scan = virus_scan
|
|
403
413
|
if legacy_dicom_uploader is not None:
|
|
404
414
|
self.legacy_dicom_uploader = legacy_dicom_uploader
|
|
415
|
+
if tasks_refactor is not None:
|
|
416
|
+
self.tasks_refactor = tasks_refactor
|
|
405
417
|
|
|
406
418
|
@property
|
|
407
419
|
def api_enabled_gear_rules(self):
|
|
@@ -1075,6 +1087,27 @@ class Features(object):
|
|
|
1075
1087
|
|
|
1076
1088
|
self._ohif_multi_subject_view = ohif_multi_subject_view
|
|
1077
1089
|
|
|
1090
|
+
@property
|
|
1091
|
+
def ohif_meteor(self):
|
|
1092
|
+
"""Gets the ohif_meteor of this Features.
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
:return: The ohif_meteor of this Features.
|
|
1096
|
+
:rtype: bool
|
|
1097
|
+
"""
|
|
1098
|
+
return self._ohif_meteor
|
|
1099
|
+
|
|
1100
|
+
@ohif_meteor.setter
|
|
1101
|
+
def ohif_meteor(self, ohif_meteor):
|
|
1102
|
+
"""Sets the ohif_meteor of this Features.
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
:param ohif_meteor: The ohif_meteor of this Features. # noqa: E501
|
|
1106
|
+
:type: bool
|
|
1107
|
+
"""
|
|
1108
|
+
|
|
1109
|
+
self._ohif_meteor = ohif_meteor
|
|
1110
|
+
|
|
1078
1111
|
@property
|
|
1079
1112
|
def ohif_react(self):
|
|
1080
1113
|
"""Gets the ohif_react of this Features.
|
|
@@ -1684,6 +1717,27 @@ class Features(object):
|
|
|
1684
1717
|
|
|
1685
1718
|
self._legacy_dicom_uploader = legacy_dicom_uploader
|
|
1686
1719
|
|
|
1720
|
+
@property
|
|
1721
|
+
def tasks_refactor(self):
|
|
1722
|
+
"""Gets the tasks_refactor of this Features.
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
:return: The tasks_refactor of this Features.
|
|
1726
|
+
:rtype: bool
|
|
1727
|
+
"""
|
|
1728
|
+
return self._tasks_refactor
|
|
1729
|
+
|
|
1730
|
+
@tasks_refactor.setter
|
|
1731
|
+
def tasks_refactor(self, tasks_refactor):
|
|
1732
|
+
"""Sets the tasks_refactor of this Features.
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
:param tasks_refactor: The tasks_refactor of this Features. # noqa: E501
|
|
1736
|
+
:type: bool
|
|
1737
|
+
"""
|
|
1738
|
+
|
|
1739
|
+
self._tasks_refactor = tasks_refactor
|
|
1740
|
+
|
|
1687
1741
|
|
|
1688
1742
|
@staticmethod
|
|
1689
1743
|
def positional_to_model(value):
|
flywheel/models/search_query.py
CHANGED
|
@@ -26,8 +26,8 @@ class SearchQuery(object):
|
|
|
26
26
|
'return_type': 'SearchReturnType',
|
|
27
27
|
'structured_query': 'str',
|
|
28
28
|
'search_string': 'str',
|
|
29
|
-
'all_data': 'bool',
|
|
30
29
|
'filters': 'list[object]',
|
|
30
|
+
'all_data': 'bool',
|
|
31
31
|
'sort': 'Sort',
|
|
32
32
|
'size': 'int'
|
|
33
33
|
}
|
|
@@ -36,8 +36,8 @@ class SearchQuery(object):
|
|
|
36
36
|
'return_type': 'return_type',
|
|
37
37
|
'structured_query': 'structured_query',
|
|
38
38
|
'search_string': 'search_string',
|
|
39
|
-
'all_data': 'all_data',
|
|
40
39
|
'filters': 'filters',
|
|
40
|
+
'all_data': 'all_data',
|
|
41
41
|
'sort': 'sort',
|
|
42
42
|
'size': 'size'
|
|
43
43
|
}
|
|
@@ -46,21 +46,21 @@ class SearchQuery(object):
|
|
|
46
46
|
'return_type': 'return_type',
|
|
47
47
|
'structured_query': 'structured_query',
|
|
48
48
|
'search_string': 'search_string',
|
|
49
|
-
'all_data': 'all_data',
|
|
50
49
|
'filters': 'filters',
|
|
50
|
+
'all_data': 'all_data',
|
|
51
51
|
'sort': 'sort',
|
|
52
52
|
'size': 'size'
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
def __init__(self, return_type=None, structured_query=None, search_string=None,
|
|
55
|
+
def __init__(self, return_type=None, structured_query=None, search_string=None, filters=None, all_data=False, sort=None, size=None): # noqa: E501
|
|
56
56
|
"""SearchQuery - a model defined in Swagger"""
|
|
57
57
|
super(SearchQuery, self).__init__()
|
|
58
58
|
|
|
59
59
|
self._return_type = None
|
|
60
60
|
self._structured_query = None
|
|
61
61
|
self._search_string = None
|
|
62
|
-
self._all_data = None
|
|
63
62
|
self._filters = None
|
|
63
|
+
self._all_data = None
|
|
64
64
|
self._sort = None
|
|
65
65
|
self._size = None
|
|
66
66
|
self.discriminator = None
|
|
@@ -71,10 +71,10 @@ class SearchQuery(object):
|
|
|
71
71
|
self.structured_query = structured_query
|
|
72
72
|
if search_string is not None:
|
|
73
73
|
self.search_string = search_string
|
|
74
|
-
if all_data is not None:
|
|
75
|
-
self.all_data = all_data
|
|
76
74
|
if filters is not None:
|
|
77
75
|
self.filters = filters
|
|
76
|
+
if all_data is not None:
|
|
77
|
+
self.all_data = all_data
|
|
78
78
|
if sort is not None:
|
|
79
79
|
self.sort = sort
|
|
80
80
|
if size is not None:
|
|
@@ -149,29 +149,6 @@ class SearchQuery(object):
|
|
|
149
149
|
|
|
150
150
|
self._search_string = search_string
|
|
151
151
|
|
|
152
|
-
@property
|
|
153
|
-
def all_data(self):
|
|
154
|
-
"""Gets the all_data of this SearchQuery.
|
|
155
|
-
|
|
156
|
-
When set will include all data that the user does not have access to read
|
|
157
|
-
|
|
158
|
-
:return: The all_data of this SearchQuery.
|
|
159
|
-
:rtype: bool
|
|
160
|
-
"""
|
|
161
|
-
return self._all_data
|
|
162
|
-
|
|
163
|
-
@all_data.setter
|
|
164
|
-
def all_data(self, all_data):
|
|
165
|
-
"""Sets the all_data of this SearchQuery.
|
|
166
|
-
|
|
167
|
-
When set will include all data that the user does not have access to read
|
|
168
|
-
|
|
169
|
-
:param all_data: The all_data of this SearchQuery. # noqa: E501
|
|
170
|
-
:type: bool
|
|
171
|
-
"""
|
|
172
|
-
|
|
173
|
-
self._all_data = all_data
|
|
174
|
-
|
|
175
152
|
@property
|
|
176
153
|
def filters(self):
|
|
177
154
|
"""Gets the filters of this SearchQuery.
|
|
@@ -195,6 +172,29 @@ class SearchQuery(object):
|
|
|
195
172
|
|
|
196
173
|
self._filters = filters
|
|
197
174
|
|
|
175
|
+
@property
|
|
176
|
+
def all_data(self):
|
|
177
|
+
"""Gets the all_data of this SearchQuery.
|
|
178
|
+
|
|
179
|
+
When set will include all data that the user does not have access to read
|
|
180
|
+
|
|
181
|
+
:return: The all_data of this SearchQuery.
|
|
182
|
+
:rtype: bool
|
|
183
|
+
"""
|
|
184
|
+
return self._all_data
|
|
185
|
+
|
|
186
|
+
@all_data.setter
|
|
187
|
+
def all_data(self, all_data):
|
|
188
|
+
"""Sets the all_data of this SearchQuery.
|
|
189
|
+
|
|
190
|
+
When set will include all data that the user does not have access to read
|
|
191
|
+
|
|
192
|
+
:param all_data: The all_data of this SearchQuery. # noqa: E501
|
|
193
|
+
:type: bool
|
|
194
|
+
"""
|
|
195
|
+
|
|
196
|
+
self._all_data = all_data
|
|
197
|
+
|
|
198
198
|
@property
|
|
199
199
|
def sort(self):
|
|
200
200
|
"""Gets the sort of this SearchQuery.
|