flywheel-sdk 20.0.0__py2.py3-none-any.whl → 20.1.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flywheel/__init__.py +1 -6
- 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/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 +22 -9
- flywheel/models/__init__.py +2 -7
- flywheel/models/action.py +4 -3
- flywheel/models/container_type.py +0 -1
- flywheel/models/current_user_output.py +4 -32
- flywheel/models/{azure_ml_workspace_input.py → delete_by_search_query.py} +96 -34
- flywheel/models/features.py +31 -4
- flywheel/models/modify_user_input.py +4 -32
- flywheel/models/project_settings_workspaces.py +4 -31
- flywheel/models/project_settings_workspaces_input.py +4 -32
- flywheel/models/search_query.py +30 -30
- {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/RECORD +29 -34
- {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/WHEEL +1 -1
- flywheel/models/azure_ml_account.py +0 -188
- flywheel/models/azure_ml_initialization.py +0 -244
- flywheel/models/azure_ml_integration.py +0 -218
- flywheel/models/azure_ml_resource_init_status.py +0 -31
- flywheel/models/azure_ml_workspace.py +0 -347
- {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/LICENSE.txt +0 -0
- {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/top_level.txt +0 -0
flywheel/__init__.py
CHANGED
|
@@ -111,12 +111,6 @@ from flywheel.models.avatars import Avatars
|
|
|
111
111
|
from flywheel.models.aws_creds import AwsCreds
|
|
112
112
|
from flywheel.models.aws_storage import AwsStorage
|
|
113
113
|
from flywheel.models.azure_creds import AzureCreds
|
|
114
|
-
from flywheel.models.azure_ml_account import AzureMLAccount
|
|
115
|
-
from flywheel.models.azure_ml_initialization import AzureMLInitialization
|
|
116
|
-
from flywheel.models.azure_ml_integration import AzureMLIntegration
|
|
117
|
-
from flywheel.models.azure_ml_resource_init_status import AzureMLResourceInitStatus
|
|
118
|
-
from flywheel.models.azure_ml_workspace import AzureMLWorkspace
|
|
119
|
-
from flywheel.models.azure_ml_workspace_input import AzureMLWorkspaceInput
|
|
120
114
|
from flywheel.models.base_aet import BaseAET
|
|
121
115
|
from flywheel.models.base_compute import BaseCompute
|
|
122
116
|
from flywheel.models.batch import Batch
|
|
@@ -224,6 +218,7 @@ from flywheel.models.data_view_save_data_view_input import DataViewSaveDataViewI
|
|
|
224
218
|
from flywheel.models.data_view_zip_filter_spec import DataViewZipFilterSpec
|
|
225
219
|
from flywheel.models.default_flywheel_role import DefaultFlywheelRole
|
|
226
220
|
from flywheel.models.deid_log_skip_reason import DeidLogSkipReason
|
|
221
|
+
from flywheel.models.delete_by_search_query import DeleteBySearchQuery
|
|
227
222
|
from flywheel.models.deleted_file import DeletedFile
|
|
228
223
|
from flywheel.models.deleted_result import DeletedResult
|
|
229
224
|
from flywheel.models.deprecated_action import DeprecatedAction
|
flywheel/api/acquisitions_api.py
CHANGED
|
@@ -1576,7 +1576,7 @@ class AcquisitionsApi(object):
|
|
|
1576
1576
|
collection_formats=collection_formats)
|
|
1577
1577
|
|
|
1578
1578
|
def delete_acquisitions_by_query(self, body, **kwargs): # noqa: E501
|
|
1579
|
-
"""Delete multiple acquisitions by query
|
|
1579
|
+
"""*DEPRECATED* Delete multiple acquisitions by query
|
|
1580
1580
|
|
|
1581
1581
|
Delete multiple acquisitions by query
|
|
1582
1582
|
This method makes a synchronous HTTP request by default.
|
|
@@ -1603,7 +1603,7 @@ class AcquisitionsApi(object):
|
|
|
1603
1603
|
|
|
1604
1604
|
|
|
1605
1605
|
def delete_acquisitions_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1606
|
-
"""Delete multiple acquisitions by query
|
|
1606
|
+
"""*DEPRECATED* Delete multiple acquisitions by query
|
|
1607
1607
|
|
|
1608
1608
|
Delete multiple acquisitions by query
|
|
1609
1609
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/analyses_api.py
CHANGED
|
@@ -365,7 +365,7 @@ class AnalysesApi(object):
|
|
|
365
365
|
collection_formats=collection_formats)
|
|
366
366
|
|
|
367
367
|
def delete_analyses_by_query(self, body, **kwargs): # noqa: E501
|
|
368
|
-
"""Delete multiple analyses by query
|
|
368
|
+
"""*DEPRECATED* Delete multiple analyses by query
|
|
369
369
|
|
|
370
370
|
Delete multiple analyses by query
|
|
371
371
|
This method makes a synchronous HTTP request by default.
|
|
@@ -392,7 +392,7 @@ class AnalysesApi(object):
|
|
|
392
392
|
|
|
393
393
|
|
|
394
394
|
def delete_analyses_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
395
|
-
"""Delete multiple analyses by query
|
|
395
|
+
"""*DEPRECATED* Delete multiple analyses by query
|
|
396
396
|
|
|
397
397
|
Delete multiple analyses by query
|
|
398
398
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/collections_api.py
CHANGED
|
@@ -1323,7 +1323,7 @@ class CollectionsApi(object):
|
|
|
1323
1323
|
collection_formats=collection_formats)
|
|
1324
1324
|
|
|
1325
1325
|
def delete_collections_by_query(self, body, **kwargs): # noqa: E501
|
|
1326
|
-
"""Delete multiple collections by query
|
|
1326
|
+
"""*DEPRECATED* Delete multiple collections by query
|
|
1327
1327
|
|
|
1328
1328
|
Delete multiple collections by query
|
|
1329
1329
|
This method makes a synchronous HTTP request by default.
|
|
@@ -1350,7 +1350,7 @@ class CollectionsApi(object):
|
|
|
1350
1350
|
|
|
1351
1351
|
|
|
1352
1352
|
def delete_collections_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1353
|
-
"""Delete multiple collections by query
|
|
1353
|
+
"""*DEPRECATED* Delete multiple collections by query
|
|
1354
1354
|
|
|
1355
1355
|
Delete multiple collections by query
|
|
1356
1356
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/dataexplorer_api.py
CHANGED
|
@@ -30,6 +30,115 @@ class DataexplorerApi(object):
|
|
|
30
30
|
api_client = ApiClient()
|
|
31
31
|
self.api_client = api_client
|
|
32
32
|
|
|
33
|
+
def delete_by_search(self, body, **kwargs): # noqa: E501
|
|
34
|
+
"""Delete containers by a search query
|
|
35
|
+
|
|
36
|
+
This method makes a synchronous HTTP request by default.
|
|
37
|
+
|
|
38
|
+
:param DeleteBySearchQuery body: (required)
|
|
39
|
+
:param ContainerDeleteReason delete_reason:
|
|
40
|
+
:param bool async_: Perform the request asynchronously
|
|
41
|
+
:return: DeletedResult
|
|
42
|
+
"""
|
|
43
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
44
|
+
kwargs['_return_http_data_only'] = True
|
|
45
|
+
|
|
46
|
+
if kwargs.get('async_'):
|
|
47
|
+
return self.delete_by_search_with_http_info(body, **kwargs) # noqa: E501
|
|
48
|
+
else:
|
|
49
|
+
(data) = self.delete_by_search_with_http_info(body, **kwargs) # noqa: E501
|
|
50
|
+
if (
|
|
51
|
+
data
|
|
52
|
+
and hasattr(data, 'return_value')
|
|
53
|
+
and not ignore_simplified_return_value
|
|
54
|
+
):
|
|
55
|
+
return data.return_value()
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def delete_by_search_with_http_info(self, body, **kwargs): # noqa: E501
|
|
60
|
+
"""Delete containers by a search query
|
|
61
|
+
|
|
62
|
+
This method makes a synchronous HTTP request by default.
|
|
63
|
+
|
|
64
|
+
:param DeleteBySearchQuery body: (required)
|
|
65
|
+
:param ContainerDeleteReason delete_reason:
|
|
66
|
+
:param bool async_: Perform the request asynchronously
|
|
67
|
+
:return: DeletedResult
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
all_params = ['body','delete_reason',] # noqa: E501
|
|
71
|
+
all_params.append('async_')
|
|
72
|
+
all_params.append('_return_http_data_only')
|
|
73
|
+
all_params.append('_preload_content')
|
|
74
|
+
all_params.append('_request_timeout')
|
|
75
|
+
all_params.append('_request_out')
|
|
76
|
+
|
|
77
|
+
params = locals()
|
|
78
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
+
if key not in all_params:
|
|
80
|
+
raise TypeError(
|
|
81
|
+
"Got an unexpected keyword argument '%s'"
|
|
82
|
+
" to method delete_by_search" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'body' is set
|
|
87
|
+
if ('body' not in params or
|
|
88
|
+
params['body'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `body` when calling `delete_by_search`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
if 'delete_reason' in params:
|
|
97
|
+
query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
if 'body' in params:
|
|
106
|
+
if 'DeleteBySearchQuery'.startswith('union'):
|
|
107
|
+
body_type = type(params['body'])
|
|
108
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
109
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
110
|
+
else:
|
|
111
|
+
body_params = params['body']
|
|
112
|
+
else:
|
|
113
|
+
body_params = flywheel.models.DeleteBySearchQuery.positional_to_model(params['body'])
|
|
114
|
+
# HTTP header `Accept`
|
|
115
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
116
|
+
['application/json']) # noqa: E501
|
|
117
|
+
|
|
118
|
+
# HTTP header `Content-Type`
|
|
119
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
120
|
+
['application/json']) # noqa: E501
|
|
121
|
+
|
|
122
|
+
# Authentication setting
|
|
123
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
124
|
+
|
|
125
|
+
return self.api_client.call_api(
|
|
126
|
+
'/dataexplorer/search', 'DELETE',
|
|
127
|
+
path_params,
|
|
128
|
+
query_params,
|
|
129
|
+
header_params,
|
|
130
|
+
body=body_params,
|
|
131
|
+
post_params=form_params,
|
|
132
|
+
files=local_var_files,
|
|
133
|
+
response_type='DeletedResult', # noqa: E501
|
|
134
|
+
auth_settings=auth_settings,
|
|
135
|
+
async_=params.get('async_'),
|
|
136
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
137
|
+
_preload_content=params.get('_preload_content', True),
|
|
138
|
+
_request_timeout=params.get('_request_timeout'),
|
|
139
|
+
_request_out=params.get('_request_out'),
|
|
140
|
+
collection_formats=collection_formats)
|
|
141
|
+
|
|
33
142
|
def delete_save_search(self, search_id, **kwargs): # noqa: E501
|
|
34
143
|
"""Delete a saved search
|
|
35
144
|
|
flywheel/api/files_api.py
CHANGED
|
@@ -455,7 +455,7 @@ class FilesApi(object):
|
|
|
455
455
|
collection_formats=collection_formats)
|
|
456
456
|
|
|
457
457
|
def delete_files_by_query(self, body, **kwargs): # noqa: E501
|
|
458
|
-
"""Delete multiple files by query
|
|
458
|
+
"""*DEPRECATED* Delete multiple files by query
|
|
459
459
|
|
|
460
460
|
Delete multiple files by query
|
|
461
461
|
This method makes a synchronous HTTP request by default.
|
|
@@ -482,7 +482,7 @@ class FilesApi(object):
|
|
|
482
482
|
|
|
483
483
|
|
|
484
484
|
def delete_files_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
485
|
-
"""Delete multiple files by query
|
|
485
|
+
"""*DEPRECATED* Delete multiple files by query
|
|
486
486
|
|
|
487
487
|
Delete multiple files by query
|
|
488
488
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/groups_api.py
CHANGED
|
@@ -1344,7 +1344,7 @@ class GroupsApi(object):
|
|
|
1344
1344
|
collection_formats=collection_formats)
|
|
1345
1345
|
|
|
1346
1346
|
def delete_groups_by_query(self, body, **kwargs): # noqa: E501
|
|
1347
|
-
"""Delete multiple groups by query
|
|
1347
|
+
"""*DEPRECATED* Delete multiple groups by query
|
|
1348
1348
|
|
|
1349
1349
|
Delete multiple groups by query
|
|
1350
1350
|
This method makes a synchronous HTTP request by default.
|
|
@@ -1371,7 +1371,7 @@ class GroupsApi(object):
|
|
|
1371
1371
|
|
|
1372
1372
|
|
|
1373
1373
|
def delete_groups_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1374
|
-
"""Delete multiple groups by query
|
|
1374
|
+
"""*DEPRECATED* Delete multiple groups by query
|
|
1375
1375
|
|
|
1376
1376
|
Delete multiple groups by query
|
|
1377
1377
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/projects_api.py
CHANGED
|
@@ -2037,7 +2037,7 @@ class ProjectsApi(object):
|
|
|
2037
2037
|
collection_formats=collection_formats)
|
|
2038
2038
|
|
|
2039
2039
|
def delete_projects_by_query(self, body, **kwargs): # noqa: E501
|
|
2040
|
-
"""Delete multiple projects by query
|
|
2040
|
+
"""*DEPRECATED* Delete multiple projects by query
|
|
2041
2041
|
|
|
2042
2042
|
Delete multiple projects by query
|
|
2043
2043
|
This method makes a synchronous HTTP request by default.
|
|
@@ -2064,7 +2064,7 @@ class ProjectsApi(object):
|
|
|
2064
2064
|
|
|
2065
2065
|
|
|
2066
2066
|
def delete_projects_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2067
|
-
"""Delete multiple projects by query
|
|
2067
|
+
"""*DEPRECATED* Delete multiple projects by query
|
|
2068
2068
|
|
|
2069
2069
|
Delete multiple projects by query
|
|
2070
2070
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/resolve_api.py
CHANGED
|
@@ -39,6 +39,7 @@ class ResolveApi(object):
|
|
|
39
39
|
:param ResolveInput body: (required)
|
|
40
40
|
:param bool full_tree:
|
|
41
41
|
:param bool exhaustive:
|
|
42
|
+
:param bool include_all_info: Include all info in returned objects
|
|
42
43
|
:param bool async_: Perform the request asynchronously
|
|
43
44
|
:return: ResolverNode
|
|
44
45
|
"""
|
|
@@ -67,11 +68,12 @@ class ResolveApi(object):
|
|
|
67
68
|
:param ResolveInput body: (required)
|
|
68
69
|
:param bool full_tree:
|
|
69
70
|
:param bool exhaustive:
|
|
71
|
+
:param bool include_all_info: Include all info in returned objects
|
|
70
72
|
:param bool async_: Perform the request asynchronously
|
|
71
73
|
:return: ResolverNode
|
|
72
74
|
"""
|
|
73
75
|
|
|
74
|
-
all_params = ['body','full_tree','exhaustive',] # noqa: E501
|
|
76
|
+
all_params = ['body','full_tree','exhaustive','include_all_info',] # noqa: E501
|
|
75
77
|
all_params.append('async_')
|
|
76
78
|
all_params.append('_return_http_data_only')
|
|
77
79
|
all_params.append('_preload_content')
|
|
@@ -101,6 +103,8 @@ class ResolveApi(object):
|
|
|
101
103
|
query_params.append(('full_tree', params['full_tree'])) # noqa: E501
|
|
102
104
|
if 'exhaustive' in params:
|
|
103
105
|
query_params.append(('exhaustive', params['exhaustive'])) # noqa: E501
|
|
106
|
+
if 'include_all_info' in params:
|
|
107
|
+
query_params.append(('include_all_info', params['include_all_info'])) # noqa: E501
|
|
104
108
|
|
|
105
109
|
header_params = {}
|
|
106
110
|
|
|
@@ -155,6 +159,7 @@ class ResolveApi(object):
|
|
|
155
159
|
:param bool full_tree: Parse full download style paths (e.g. group/PROJECTS/project_label/SUBJECTS/...)
|
|
156
160
|
:param bool minattr: Return only minimal attributes
|
|
157
161
|
:param bool exhaustive: Set to return a complete list regardless of permissions
|
|
162
|
+
:param bool include_all_info: Include all info in returned objects
|
|
158
163
|
:param bool async_: Perform the request asynchronously
|
|
159
164
|
:return: ResolveOutput
|
|
160
165
|
"""
|
|
@@ -184,11 +189,12 @@ class ResolveApi(object):
|
|
|
184
189
|
:param bool full_tree: Parse full download style paths (e.g. group/PROJECTS/project_label/SUBJECTS/...)
|
|
185
190
|
:param bool minattr: Return only minimal attributes
|
|
186
191
|
:param bool exhaustive: Set to return a complete list regardless of permissions
|
|
192
|
+
:param bool include_all_info: Include all info in returned objects
|
|
187
193
|
:param bool async_: Perform the request asynchronously
|
|
188
194
|
:return: ResolveOutput
|
|
189
195
|
"""
|
|
190
196
|
|
|
191
|
-
all_params = ['body','full_tree','minattr','exhaustive',] # noqa: E501
|
|
197
|
+
all_params = ['body','full_tree','minattr','exhaustive','include_all_info',] # noqa: E501
|
|
192
198
|
all_params.append('async_')
|
|
193
199
|
all_params.append('_return_http_data_only')
|
|
194
200
|
all_params.append('_preload_content')
|
|
@@ -220,6 +226,8 @@ class ResolveApi(object):
|
|
|
220
226
|
query_params.append(('minattr', params['minattr'])) # noqa: E501
|
|
221
227
|
if 'exhaustive' in params:
|
|
222
228
|
query_params.append(('exhaustive', params['exhaustive'])) # noqa: E501
|
|
229
|
+
if 'include_all_info' in params:
|
|
230
|
+
query_params.append(('include_all_info', params['include_all_info'])) # noqa: E501
|
|
223
231
|
|
|
224
232
|
header_params = {}
|
|
225
233
|
|
flywheel/api/sessions_api.py
CHANGED
|
@@ -1576,7 +1576,7 @@ class SessionsApi(object):
|
|
|
1576
1576
|
collection_formats=collection_formats)
|
|
1577
1577
|
|
|
1578
1578
|
def delete_sessions_by_query(self, body, **kwargs): # noqa: E501
|
|
1579
|
-
"""Delete multiple sessions by query
|
|
1579
|
+
"""*DEPRECATED* Delete multiple sessions by query
|
|
1580
1580
|
|
|
1581
1581
|
Delete multiple sessions by query
|
|
1582
1582
|
This method makes a synchronous HTTP request by default.
|
|
@@ -1603,7 +1603,7 @@ class SessionsApi(object):
|
|
|
1603
1603
|
|
|
1604
1604
|
|
|
1605
1605
|
def delete_sessions_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1606
|
-
"""Delete multiple sessions by query
|
|
1606
|
+
"""*DEPRECATED* Delete multiple sessions by query
|
|
1607
1607
|
|
|
1608
1608
|
Delete multiple sessions by query
|
|
1609
1609
|
This method makes a synchronous HTTP request by default.
|
flywheel/api/subjects_api.py
CHANGED
|
@@ -1683,7 +1683,7 @@ class SubjectsApi(object):
|
|
|
1683
1683
|
collection_formats=collection_formats)
|
|
1684
1684
|
|
|
1685
1685
|
def delete_subjects_by_query(self, body, **kwargs): # noqa: E501
|
|
1686
|
-
"""Delete multiple subjects by query
|
|
1686
|
+
"""*DEPRECATED* Delete multiple subjects by query
|
|
1687
1687
|
|
|
1688
1688
|
Delete multiple subjects by query
|
|
1689
1689
|
This method makes a synchronous HTTP request by default.
|
|
@@ -1710,7 +1710,7 @@ class SubjectsApi(object):
|
|
|
1710
1710
|
|
|
1711
1711
|
|
|
1712
1712
|
def delete_subjects_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1713
|
-
"""Delete multiple subjects by query
|
|
1713
|
+
"""*DEPRECATED* Delete multiple subjects by query
|
|
1714
1714
|
|
|
1715
1715
|
Delete multiple subjects by query
|
|
1716
1716
|
This method makes a synchronous HTTP request by default.
|
flywheel/api_client.py
CHANGED
|
@@ -84,7 +84,7 @@ class ApiClient(object):
|
|
|
84
84
|
self.default_query_params = []
|
|
85
85
|
self.cookie = cookie
|
|
86
86
|
# Set default User-Agent.
|
|
87
|
-
self.user_agent = 'Swagger-Codegen/20.
|
|
87
|
+
self.user_agent = 'Swagger-Codegen/20.1.0/python'
|
|
88
88
|
self.last_response = None
|
|
89
89
|
self._version_check_fn = None
|
|
90
90
|
self._context = context
|
flywheel/configuration.py
CHANGED
|
@@ -252,6 +252,6 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
252
252
|
return "Python SDK Debug Report:\n"\
|
|
253
253
|
"OS: {env}\n"\
|
|
254
254
|
"Python Version: {pyversion}\n"\
|
|
255
|
-
"Version of the API: 20.
|
|
256
|
-
"SDK Package Version: 20.
|
|
255
|
+
"Version of the API: 20.1.0\n"\
|
|
256
|
+
"SDK Package Version: 20.1.0".\
|
|
257
257
|
format(env=sys.platform, pyversion=sys.version)
|
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"
|
|
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
|
|
|
@@ -4381,7 +4392,7 @@ class Flywheel:
|
|
|
4381
4392
|
|
|
4382
4393
|
|
|
4383
4394
|
def delete_projects_by_query(self, body, **kwargs): # noqa: E501
|
|
4384
|
-
"""Delete multiple projects by query
|
|
4395
|
+
"""*DEPRECATED* Delete multiple projects by query
|
|
4385
4396
|
|
|
4386
4397
|
Delete multiple projects by query
|
|
4387
4398
|
|
|
@@ -5285,6 +5296,7 @@ class Flywheel:
|
|
|
5285
5296
|
:param ResolveInput body: (required)
|
|
5286
5297
|
:param bool full_tree:
|
|
5287
5298
|
:param bool exhaustive:
|
|
5299
|
+
:param bool include_all_info: Include all info in returned objects
|
|
5288
5300
|
:param bool async_: Perform the request asynchronously
|
|
5289
5301
|
:return: ResolverNode
|
|
5290
5302
|
"""
|
|
@@ -5300,6 +5312,7 @@ class Flywheel:
|
|
|
5300
5312
|
:param bool full_tree: Parse full download style paths (e.g. group/PROJECTS/project_label/SUBJECTS/...)
|
|
5301
5313
|
:param bool minattr: Return only minimal attributes
|
|
5302
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
|
|
5303
5316
|
:param bool async_: Perform the request asynchronously
|
|
5304
5317
|
:return: ResolveOutput
|
|
5305
5318
|
"""
|
|
@@ -5553,7 +5566,7 @@ class Flywheel:
|
|
|
5553
5566
|
|
|
5554
5567
|
|
|
5555
5568
|
def delete_sessions_by_query(self, body, **kwargs): # noqa: E501
|
|
5556
|
-
"""Delete multiple sessions by query
|
|
5569
|
+
"""*DEPRECATED* Delete multiple sessions by query
|
|
5557
5570
|
|
|
5558
5571
|
Delete multiple sessions by query
|
|
5559
5572
|
|
|
@@ -6449,7 +6462,7 @@ class Flywheel:
|
|
|
6449
6462
|
|
|
6450
6463
|
|
|
6451
6464
|
def delete_subjects_by_query(self, body, **kwargs): # noqa: E501
|
|
6452
|
-
"""Delete multiple subjects by query
|
|
6465
|
+
"""*DEPRECATED* Delete multiple subjects by query
|
|
6453
6466
|
|
|
6454
6467
|
Delete multiple subjects by query
|
|
6455
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
|
|
10
10
|
|
|
11
11
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
"""
|
|
@@ -59,12 +59,6 @@ from flywheel.models.avatars import Avatars
|
|
|
59
59
|
from flywheel.models.aws_creds import AwsCreds
|
|
60
60
|
from flywheel.models.aws_storage import AwsStorage
|
|
61
61
|
from flywheel.models.azure_creds import AzureCreds
|
|
62
|
-
from flywheel.models.azure_ml_account import AzureMLAccount
|
|
63
|
-
from flywheel.models.azure_ml_initialization import AzureMLInitialization
|
|
64
|
-
from flywheel.models.azure_ml_integration import AzureMLIntegration
|
|
65
|
-
from flywheel.models.azure_ml_resource_init_status import AzureMLResourceInitStatus
|
|
66
|
-
from flywheel.models.azure_ml_workspace import AzureMLWorkspace
|
|
67
|
-
from flywheel.models.azure_ml_workspace_input import AzureMLWorkspaceInput
|
|
68
62
|
from flywheel.models.base_aet import BaseAET
|
|
69
63
|
from flywheel.models.base_compute import BaseCompute
|
|
70
64
|
from flywheel.models.batch import Batch
|
|
@@ -172,6 +166,7 @@ from flywheel.models.data_view_save_data_view_input import DataViewSaveDataViewI
|
|
|
172
166
|
from flywheel.models.data_view_zip_filter_spec import DataViewZipFilterSpec
|
|
173
167
|
from flywheel.models.default_flywheel_role import DefaultFlywheelRole
|
|
174
168
|
from flywheel.models.deid_log_skip_reason import DeidLogSkipReason
|
|
169
|
+
from flywheel.models.delete_by_search_query import DeleteBySearchQuery
|
|
175
170
|
from flywheel.models.deleted_file import DeletedFile
|
|
176
171
|
from flywheel.models.deleted_result import DeletedResult
|
|
177
172
|
from flywheel.models.deprecated_action import DeprecatedAction
|
flywheel/models/action.py
CHANGED
|
@@ -76,11 +76,12 @@ class Action(str, enum.Enum):
|
|
|
76
76
|
JUPYTERLAB_SERVERS_CREATE = "jupyterlab_servers_create"
|
|
77
77
|
JUPYTERLAB_SERVERS_MODIFY = "jupyterlab_servers_modify"
|
|
78
78
|
JUPYTERLAB_SERVERS_DELETE = "jupyterlab_servers_delete"
|
|
79
|
-
AZUREML_READ = "azureml_read"
|
|
80
|
-
AZUREML_MODIFY = "azureml_modify"
|
|
81
|
-
AZUREML_ACCESS = "azureml_access"
|
|
82
79
|
AUDIT_TRAIL_REPORTS_MANAGE = "audit_trail_reports_manage"
|
|
83
80
|
AUDIT_TRAIL_REPORTS_VIEW = "audit_trail_reports_view"
|
|
81
|
+
TASKS_VIEW = "tasks_view"
|
|
82
|
+
TASKS_CREATE = "tasks_create"
|
|
83
|
+
TASKS_MODIFY = "tasks_modify"
|
|
84
|
+
TASKS_ASSIGN = "tasks_assign"
|
|
84
85
|
|
|
85
86
|
def __str__(self):
|
|
86
87
|
return self.value
|
|
@@ -19,7 +19,6 @@ import re # noqa: F401
|
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
21
|
from flywheel.models.api_key_output import ApiKeyOutput # noqa: F401,E501
|
|
22
|
-
from flywheel.models.azure_ml_account import AzureMLAccount # noqa: F401,E501
|
|
23
22
|
from flywheel.models.legacy_api_key_output import LegacyApiKeyOutput # noqa: F401,E501
|
|
24
23
|
from flywheel.models.user_preferences import UserPreferences # noqa: F401,E501
|
|
25
24
|
|
|
@@ -45,8 +44,7 @@ class CurrentUserOutput(object):
|
|
|
45
44
|
'info': 'object',
|
|
46
45
|
'firstlogin': 'str',
|
|
47
46
|
'lastlogin': 'str',
|
|
48
|
-
'visited_projects': 'list[str]'
|
|
49
|
-
'azureml_account': 'AzureMLAccount'
|
|
47
|
+
'visited_projects': 'list[str]'
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
attribute_map = {
|
|
@@ -69,8 +67,7 @@ class CurrentUserOutput(object):
|
|
|
69
67
|
'info': 'info',
|
|
70
68
|
'firstlogin': 'firstlogin',
|
|
71
69
|
'lastlogin': 'lastlogin',
|
|
72
|
-
'visited_projects': 'visited_projects'
|
|
73
|
-
'azureml_account': 'azureml_account'
|
|
70
|
+
'visited_projects': 'visited_projects'
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
rattribute_map = {
|
|
@@ -93,11 +90,10 @@ class CurrentUserOutput(object):
|
|
|
93
90
|
'info': 'info',
|
|
94
91
|
'firstlogin': 'firstlogin',
|
|
95
92
|
'lastlogin': 'lastlogin',
|
|
96
|
-
'visited_projects': 'visited_projects'
|
|
97
|
-
'azureml_account': 'azureml_account'
|
|
93
|
+
'visited_projects': 'visited_projects'
|
|
98
94
|
}
|
|
99
95
|
|
|
100
|
-
def __init__(self, id=None, user_id=None, firstname=None, lastname=None, email=None, auth0sub=None, roles=None, root=False, api_key=None, api_keys=None, avatar=None, avatars=None, disabled=None, preferences=None, created=None, modified=None, info=None, firstlogin=None, lastlogin=None, visited_projects=None
|
|
96
|
+
def __init__(self, id=None, user_id=None, firstname=None, lastname=None, email=None, auth0sub=None, roles=None, root=False, api_key=None, api_keys=None, avatar=None, avatars=None, disabled=None, preferences=None, created=None, modified=None, info=None, firstlogin=None, lastlogin=None, visited_projects=None): # noqa: E501
|
|
101
97
|
"""CurrentUserOutput - a model defined in Swagger"""
|
|
102
98
|
super(CurrentUserOutput, self).__init__()
|
|
103
99
|
|
|
@@ -121,7 +117,6 @@ class CurrentUserOutput(object):
|
|
|
121
117
|
self._firstlogin = None
|
|
122
118
|
self._lastlogin = None
|
|
123
119
|
self._visited_projects = None
|
|
124
|
-
self._azureml_account = None
|
|
125
120
|
self.discriminator = None
|
|
126
121
|
self.alt_discriminator = None
|
|
127
122
|
|
|
@@ -157,8 +152,6 @@ class CurrentUserOutput(object):
|
|
|
157
152
|
self.lastlogin = lastlogin
|
|
158
153
|
if visited_projects is not None:
|
|
159
154
|
self.visited_projects = visited_projects
|
|
160
|
-
if azureml_account is not None:
|
|
161
|
-
self.azureml_account = azureml_account
|
|
162
155
|
|
|
163
156
|
@property
|
|
164
157
|
def id(self):
|
|
@@ -580,27 +573,6 @@ class CurrentUserOutput(object):
|
|
|
580
573
|
|
|
581
574
|
self._visited_projects = visited_projects
|
|
582
575
|
|
|
583
|
-
@property
|
|
584
|
-
def azureml_account(self):
|
|
585
|
-
"""Gets the azureml_account of this CurrentUserOutput.
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
:return: The azureml_account of this CurrentUserOutput.
|
|
589
|
-
:rtype: AzureMLAccount
|
|
590
|
-
"""
|
|
591
|
-
return self._azureml_account
|
|
592
|
-
|
|
593
|
-
@azureml_account.setter
|
|
594
|
-
def azureml_account(self, azureml_account):
|
|
595
|
-
"""Sets the azureml_account of this CurrentUserOutput.
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
:param azureml_account: The azureml_account of this CurrentUserOutput. # noqa: E501
|
|
599
|
-
:type: AzureMLAccount
|
|
600
|
-
"""
|
|
601
|
-
|
|
602
|
-
self._azureml_account = azureml_account
|
|
603
|
-
|
|
604
576
|
|
|
605
577
|
@staticmethod
|
|
606
578
|
def positional_to_model(value):
|