flywheel-sdk 20.2.0rc2__py2.py3-none-any.whl → 20.3.0rc0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flywheel/__init__.py +7 -2
- flywheel/api/acquisitions_api.py +42 -0
- flywheel/api/analyses_api.py +42 -4
- flywheel/api/audit_trail_api.py +6 -0
- flywheel/api/auth_api.py +2 -0
- flywheel/api/batch_api.py +7 -0
- flywheel/api/bulk_api.py +2 -0
- flywheel/api/change_log_api.py +3 -0
- flywheel/api/collections_api.py +35 -0
- flywheel/api/config_api.py +4 -0
- flywheel/api/container_type_api.py +2 -0
- flywheel/api/containers_api.py +40 -0
- flywheel/api/data_view_executions_api.py +6 -0
- flywheel/api/dataexplorer_api.py +12 -0
- flywheel/api/devices_api.py +12 -0
- flywheel/api/dimse_api.py +9 -0
- flywheel/api/download_api.py +3 -0
- flywheel/api/files_api.py +19 -0
- flywheel/api/gears_api.py +18 -0
- flywheel/api/groups_api.py +27 -0
- flywheel/api/jobs_api.py +22 -0
- flywheel/api/jupyterlab_servers_api.py +3 -0
- flywheel/api/modalities_api.py +6 -0
- flywheel/api/packfiles_api.py +2 -0
- flywheel/api/projects_api.py +68 -0
- flywheel/api/reports_api.py +11 -0
- flywheel/api/resolve_api.py +3 -0
- flywheel/api/roles_api.py +6 -0
- flywheel/api/sessions_api.py +160 -0
- flywheel/api/site_api.py +16 -0
- flywheel/api/subjects_api.py +45 -0
- flywheel/api/tree_api.py +3 -0
- flywheel/api/uids_api.py +2 -0
- flywheel/api/upload_api.py +8 -0
- flywheel/api/users_api.py +20 -0
- flywheel/api/views_api.py +10 -0
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +53 -2
- flywheel/flywheel.py +28 -2
- flywheel/models/__init__.py +8 -3
- flywheel/models/{project_copy_filter.py → copy_filter.py} +28 -28
- flywheel/models/{project_copy_status.py → copy_status.py} +1 -1
- flywheel/models/cvat_info.py +243 -0
- flywheel/models/cvat_settings.py +271 -0
- flywheel/models/cvat_settings_input.py +271 -0
- flywheel/models/cvat_sync_state.py +29 -0
- flywheel/models/features.py +55 -1
- flywheel/models/file.py +29 -1
- flywheel/models/file_list_output.py +29 -1
- flywheel/models/file_node.py +29 -1
- flywheel/models/file_output.py +29 -1
- flywheel/models/file_upsert_output.py +29 -1
- flywheel/models/mixins.py +0 -3
- flywheel/models/project_container_output.py +1 -1
- flywheel/models/project_copy_input.py +4 -4
- flywheel/models/project_modify.py +4 -4
- flywheel/models/project_node.py +1 -1
- flywheel/models/project_output.py +4 -4
- flywheel/models/project_settings_input.py +32 -4
- flywheel/models/project_settings_output.py +32 -4
- flywheel/models/search_parent_project.py +1 -1
- flywheel/models/search_parent_session.py +1 -0
- flywheel/models/session_container_output.py +1 -0
- flywheel/models/session_copy_input.py +244 -0
- flywheel/models/session_list_output.py +32 -4
- flywheel/models/session_node.py +1 -0
- flywheel/models/session_output.py +29 -1
- flywheel/util.py +10 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/RECORD +73 -68
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.2.0rc2.dist-info → flywheel_sdk-20.3.0rc0.dist-info}/top_level.txt +0 -0
flywheel/api/roles_api.py
CHANGED
|
@@ -20,6 +20,7 @@ import six
|
|
|
20
20
|
|
|
21
21
|
from flywheel.api_client import ApiClient
|
|
22
22
|
import flywheel.models
|
|
23
|
+
from flywheel.util import check_filename_params
|
|
23
24
|
|
|
24
25
|
# NOTE: This file is auto generated by the swagger code generator program.
|
|
25
26
|
# Do not edit the class manually.
|
|
@@ -85,6 +86,7 @@ class RolesApi(object):
|
|
|
85
86
|
if ('body' not in params or
|
|
86
87
|
params['body'] is None):
|
|
87
88
|
raise ValueError("Missing the required parameter `body` when calling `add_role`") # noqa: E501
|
|
89
|
+
check_filename_params(params)
|
|
88
90
|
|
|
89
91
|
collection_formats = {}
|
|
90
92
|
|
|
@@ -190,6 +192,7 @@ class RolesApi(object):
|
|
|
190
192
|
if ('role_id' not in params or
|
|
191
193
|
params['role_id'] is None):
|
|
192
194
|
raise ValueError("Missing the required parameter `role_id` when calling `delete_role`") # noqa: E501
|
|
195
|
+
check_filename_params(params)
|
|
193
196
|
|
|
194
197
|
collection_formats = {}
|
|
195
198
|
|
|
@@ -292,6 +295,7 @@ class RolesApi(object):
|
|
|
292
295
|
)
|
|
293
296
|
params[key] = val
|
|
294
297
|
del params['kwargs']
|
|
298
|
+
check_filename_params(params)
|
|
295
299
|
|
|
296
300
|
collection_formats = {}
|
|
297
301
|
|
|
@@ -399,6 +403,7 @@ class RolesApi(object):
|
|
|
399
403
|
if ('role_id' not in params or
|
|
400
404
|
params['role_id'] is None):
|
|
401
405
|
raise ValueError("Missing the required parameter `role_id` when calling `get_role`") # noqa: E501
|
|
406
|
+
check_filename_params(params)
|
|
402
407
|
|
|
403
408
|
collection_formats = {}
|
|
404
409
|
|
|
@@ -501,6 +506,7 @@ class RolesApi(object):
|
|
|
501
506
|
if ('body' not in params or
|
|
502
507
|
params['body'] is None):
|
|
503
508
|
raise ValueError("Missing the required parameter `body` when calling `modify_role`") # noqa: E501
|
|
509
|
+
check_filename_params(params)
|
|
504
510
|
|
|
505
511
|
collection_formats = {}
|
|
506
512
|
|
flywheel/api/sessions_api.py
CHANGED
|
@@ -20,6 +20,7 @@ import six
|
|
|
20
20
|
|
|
21
21
|
from flywheel.api_client import ApiClient
|
|
22
22
|
import flywheel.models
|
|
23
|
+
from flywheel.util import check_filename_params
|
|
23
24
|
|
|
24
25
|
# NOTE: This file is auto generated by the swagger code generator program.
|
|
25
26
|
# Do not edit the class manually.
|
|
@@ -87,6 +88,7 @@ class SessionsApi(object):
|
|
|
87
88
|
if ('body' not in params or
|
|
88
89
|
params['body'] is None):
|
|
89
90
|
raise ValueError("Missing the required parameter `body` when calling `add_session`") # noqa: E501
|
|
91
|
+
check_filename_params(params)
|
|
90
92
|
|
|
91
93
|
collection_formats = {}
|
|
92
94
|
|
|
@@ -204,6 +206,7 @@ class SessionsApi(object):
|
|
|
204
206
|
if ('body' not in params or
|
|
205
207
|
params['body'] is None):
|
|
206
208
|
raise ValueError("Missing the required parameter `body` when calling `add_session_analysis`") # noqa: E501
|
|
209
|
+
check_filename_params(params)
|
|
207
210
|
|
|
208
211
|
collection_formats = {}
|
|
209
212
|
|
|
@@ -331,6 +334,7 @@ class SessionsApi(object):
|
|
|
331
334
|
if ('body' not in params or
|
|
332
335
|
params['body'] is None):
|
|
333
336
|
raise ValueError("Missing the required parameter `body` when calling `add_session_analysis_note`") # noqa: E501
|
|
337
|
+
check_filename_params(params)
|
|
334
338
|
|
|
335
339
|
collection_formats = {}
|
|
336
340
|
|
|
@@ -448,6 +452,7 @@ class SessionsApi(object):
|
|
|
448
452
|
if ('body' not in params or
|
|
449
453
|
params['body'] is None):
|
|
450
454
|
raise ValueError("Missing the required parameter `body` when calling `add_session_note`") # noqa: E501
|
|
455
|
+
check_filename_params(params)
|
|
451
456
|
|
|
452
457
|
collection_formats = {}
|
|
453
458
|
|
|
@@ -563,6 +568,7 @@ class SessionsApi(object):
|
|
|
563
568
|
if ('body' not in params or
|
|
564
569
|
params['body'] is None):
|
|
565
570
|
raise ValueError("Missing the required parameter `body` when calling `add_session_tag`") # noqa: E501
|
|
571
|
+
check_filename_params(params)
|
|
566
572
|
|
|
567
573
|
collection_formats = {}
|
|
568
574
|
|
|
@@ -678,6 +684,7 @@ class SessionsApi(object):
|
|
|
678
684
|
if ('body' not in params or
|
|
679
685
|
params['body'] is None):
|
|
680
686
|
raise ValueError("Missing the required parameter `body` when calling `add_session_tags`") # noqa: E501
|
|
687
|
+
check_filename_params(params)
|
|
681
688
|
|
|
682
689
|
collection_formats = {}
|
|
683
690
|
|
|
@@ -782,6 +789,7 @@ class SessionsApi(object):
|
|
|
782
789
|
if ('session_id' not in params or
|
|
783
790
|
params['session_id'] is None):
|
|
784
791
|
raise ValueError("Missing the required parameter `session_id` when calling `delete_session`") # noqa: E501
|
|
792
|
+
check_filename_params(params)
|
|
785
793
|
|
|
786
794
|
collection_formats = {}
|
|
787
795
|
|
|
@@ -888,6 +896,7 @@ class SessionsApi(object):
|
|
|
888
896
|
if ('analysis_id' not in params or
|
|
889
897
|
params['analysis_id'] is None):
|
|
890
898
|
raise ValueError("Missing the required parameter `analysis_id` when calling `delete_session_analysis`") # noqa: E501
|
|
899
|
+
check_filename_params(params)
|
|
891
900
|
|
|
892
901
|
collection_formats = {}
|
|
893
902
|
|
|
@@ -1000,6 +1009,7 @@ class SessionsApi(object):
|
|
|
1000
1009
|
if ('note_id' not in params or
|
|
1001
1010
|
params['note_id'] is None):
|
|
1002
1011
|
raise ValueError("Missing the required parameter `note_id` when calling `delete_session_analysis_note`") # noqa: E501
|
|
1012
|
+
check_filename_params(params)
|
|
1003
1013
|
|
|
1004
1014
|
collection_formats = {}
|
|
1005
1015
|
|
|
@@ -1110,6 +1120,7 @@ class SessionsApi(object):
|
|
|
1110
1120
|
if ('filename' not in params or
|
|
1111
1121
|
params['filename'] is None):
|
|
1112
1122
|
raise ValueError("Missing the required parameter `filename` when calling `delete_session_file`") # noqa: E501
|
|
1123
|
+
check_filename_params(params)
|
|
1113
1124
|
|
|
1114
1125
|
collection_formats = {}
|
|
1115
1126
|
|
|
@@ -1218,6 +1229,7 @@ class SessionsApi(object):
|
|
|
1218
1229
|
if ('note_id' not in params or
|
|
1219
1230
|
params['note_id'] is None):
|
|
1220
1231
|
raise ValueError("Missing the required parameter `note_id` when calling `delete_session_note`") # noqa: E501
|
|
1232
|
+
check_filename_params(params)
|
|
1221
1233
|
|
|
1222
1234
|
collection_formats = {}
|
|
1223
1235
|
|
|
@@ -1322,6 +1334,7 @@ class SessionsApi(object):
|
|
|
1322
1334
|
if ('value' not in params or
|
|
1323
1335
|
params['value'] is None):
|
|
1324
1336
|
raise ValueError("Missing the required parameter `value` when calling `delete_session_tag`") # noqa: E501
|
|
1337
|
+
check_filename_params(params)
|
|
1325
1338
|
|
|
1326
1339
|
collection_formats = {}
|
|
1327
1340
|
|
|
@@ -1426,6 +1439,7 @@ class SessionsApi(object):
|
|
|
1426
1439
|
if ('body' not in params or
|
|
1427
1440
|
params['body'] is None):
|
|
1428
1441
|
raise ValueError("Missing the required parameter `body` when calling `delete_session_tags`") # noqa: E501
|
|
1442
|
+
check_filename_params(params)
|
|
1429
1443
|
|
|
1430
1444
|
collection_formats = {}
|
|
1431
1445
|
|
|
@@ -1530,6 +1544,7 @@ class SessionsApi(object):
|
|
|
1530
1544
|
if ('body' not in params or
|
|
1531
1545
|
params['body'] is None):
|
|
1532
1546
|
raise ValueError("Missing the required parameter `body` when calling `delete_sessions_by_ids`") # noqa: E501
|
|
1547
|
+
check_filename_params(params)
|
|
1533
1548
|
|
|
1534
1549
|
collection_formats = {}
|
|
1535
1550
|
|
|
@@ -1634,6 +1649,7 @@ class SessionsApi(object):
|
|
|
1634
1649
|
if ('body' not in params or
|
|
1635
1650
|
params['body'] is None):
|
|
1636
1651
|
raise ValueError("Missing the required parameter `body` when calling `delete_sessions_by_query`") # noqa: E501
|
|
1652
|
+
check_filename_params(params)
|
|
1637
1653
|
|
|
1638
1654
|
collection_formats = {}
|
|
1639
1655
|
|
|
@@ -1756,6 +1772,7 @@ class SessionsApi(object):
|
|
|
1756
1772
|
if ('file_name' not in params or
|
|
1757
1773
|
params['file_name'] is None):
|
|
1758
1774
|
raise ValueError("Missing the required parameter `file_name` when calling `download_file_from_session`") # noqa: E501
|
|
1775
|
+
check_filename_params(params)
|
|
1759
1776
|
|
|
1760
1777
|
collection_formats = {}
|
|
1761
1778
|
|
|
@@ -1891,6 +1908,7 @@ class SessionsApi(object):
|
|
|
1891
1908
|
if ('file_name' not in params or
|
|
1892
1909
|
params['file_name'] is None):
|
|
1893
1910
|
raise ValueError("Missing the required parameter `file_name` when calling `get_session_file_zip_info`") # noqa: E501
|
|
1911
|
+
check_filename_params(params)
|
|
1894
1912
|
|
|
1895
1913
|
collection_formats = {}
|
|
1896
1914
|
|
|
@@ -2028,6 +2046,7 @@ class SessionsApi(object):
|
|
|
2028
2046
|
if ('file_name' not in params or
|
|
2029
2047
|
params['file_name'] is None):
|
|
2030
2048
|
raise ValueError("Missing the required parameter `file_name` when calling `get_session_download_ticket`") # noqa: E501
|
|
2049
|
+
check_filename_params(params)
|
|
2031
2050
|
|
|
2032
2051
|
collection_formats = {}
|
|
2033
2052
|
|
|
@@ -2165,6 +2184,7 @@ class SessionsApi(object):
|
|
|
2165
2184
|
if ('filename' not in params or
|
|
2166
2185
|
params['filename'] is None):
|
|
2167
2186
|
raise ValueError("Missing the required parameter `filename` when calling `download_input_from_session_analysis`") # noqa: E501
|
|
2187
|
+
check_filename_params(params)
|
|
2168
2188
|
|
|
2169
2189
|
collection_formats = {}
|
|
2170
2190
|
|
|
@@ -2300,6 +2320,7 @@ class SessionsApi(object):
|
|
|
2300
2320
|
if ('filename' not in params or
|
|
2301
2321
|
params['filename'] is None):
|
|
2302
2322
|
raise ValueError("Missing the required parameter `filename` when calling `get_session_analysis_input_zip_info`") # noqa: E501
|
|
2323
|
+
check_filename_params(params)
|
|
2303
2324
|
|
|
2304
2325
|
collection_formats = {}
|
|
2305
2326
|
|
|
@@ -2437,6 +2458,7 @@ class SessionsApi(object):
|
|
|
2437
2458
|
if ('filename' not in params or
|
|
2438
2459
|
params['filename'] is None):
|
|
2439
2460
|
raise ValueError("Missing the required parameter `filename` when calling `get_session_analysis_input_download_ticket`") # noqa: E501
|
|
2461
|
+
check_filename_params(params)
|
|
2440
2462
|
|
|
2441
2463
|
collection_formats = {}
|
|
2442
2464
|
|
|
@@ -2572,6 +2594,7 @@ class SessionsApi(object):
|
|
|
2572
2594
|
if ('filename' not in params or
|
|
2573
2595
|
params['filename'] is None):
|
|
2574
2596
|
raise ValueError("Missing the required parameter `filename` when calling `download_output_from_session_analysis`") # noqa: E501
|
|
2597
|
+
check_filename_params(params)
|
|
2575
2598
|
|
|
2576
2599
|
collection_formats = {}
|
|
2577
2600
|
|
|
@@ -2707,6 +2730,7 @@ class SessionsApi(object):
|
|
|
2707
2730
|
if ('filename' not in params or
|
|
2708
2731
|
params['filename'] is None):
|
|
2709
2732
|
raise ValueError("Missing the required parameter `filename` when calling `get_session_analysis_output_zip_info`") # noqa: E501
|
|
2733
|
+
check_filename_params(params)
|
|
2710
2734
|
|
|
2711
2735
|
collection_formats = {}
|
|
2712
2736
|
|
|
@@ -2844,6 +2868,7 @@ class SessionsApi(object):
|
|
|
2844
2868
|
if ('filename' not in params or
|
|
2845
2869
|
params['filename'] is None):
|
|
2846
2870
|
raise ValueError("Missing the required parameter `filename` when calling `get_session_analysis_output_download_ticket`") # noqa: E501
|
|
2871
|
+
check_filename_params(params)
|
|
2847
2872
|
|
|
2848
2873
|
collection_formats = {}
|
|
2849
2874
|
|
|
@@ -2975,6 +3000,7 @@ class SessionsApi(object):
|
|
|
2975
3000
|
)
|
|
2976
3001
|
params[key] = val
|
|
2977
3002
|
del params['kwargs']
|
|
3003
|
+
check_filename_params(params)
|
|
2978
3004
|
|
|
2979
3005
|
collection_formats = {}
|
|
2980
3006
|
|
|
@@ -3100,6 +3126,7 @@ class SessionsApi(object):
|
|
|
3100
3126
|
if ('session_id' not in params or
|
|
3101
3127
|
params['session_id'] is None):
|
|
3102
3128
|
raise ValueError("Missing the required parameter `session_id` when calling `get_session`") # noqa: E501
|
|
3129
|
+
check_filename_params(params)
|
|
3103
3130
|
|
|
3104
3131
|
collection_formats = {}
|
|
3105
3132
|
|
|
@@ -3225,6 +3252,7 @@ class SessionsApi(object):
|
|
|
3225
3252
|
if ('session_id' not in params or
|
|
3226
3253
|
params['session_id'] is None):
|
|
3227
3254
|
raise ValueError("Missing the required parameter `session_id` when calling `get_session_acquisitions`") # noqa: E501
|
|
3255
|
+
check_filename_params(params)
|
|
3228
3256
|
|
|
3229
3257
|
collection_formats = {}
|
|
3230
3258
|
|
|
@@ -3366,6 +3394,7 @@ class SessionsApi(object):
|
|
|
3366
3394
|
if ('cid' not in params or
|
|
3367
3395
|
params['cid'] is None):
|
|
3368
3396
|
raise ValueError("Missing the required parameter `cid` when calling `get_session_analyses`") # noqa: E501
|
|
3397
|
+
check_filename_params(params)
|
|
3369
3398
|
|
|
3370
3399
|
collection_formats = {}
|
|
3371
3400
|
|
|
@@ -3497,6 +3526,7 @@ class SessionsApi(object):
|
|
|
3497
3526
|
if ('analysis_id' not in params or
|
|
3498
3527
|
params['analysis_id'] is None):
|
|
3499
3528
|
raise ValueError("Missing the required parameter `analysis_id` when calling `get_session_analysis`") # noqa: E501
|
|
3529
|
+
check_filename_params(params)
|
|
3500
3530
|
|
|
3501
3531
|
collection_formats = {}
|
|
3502
3532
|
|
|
@@ -3607,6 +3637,7 @@ class SessionsApi(object):
|
|
|
3607
3637
|
if ('filename' not in params or
|
|
3608
3638
|
params['filename'] is None):
|
|
3609
3639
|
raise ValueError("Missing the required parameter `filename` when calling `get_session_file_info`") # noqa: E501
|
|
3640
|
+
check_filename_params(params)
|
|
3610
3641
|
|
|
3611
3642
|
collection_formats = {}
|
|
3612
3643
|
|
|
@@ -3725,6 +3756,7 @@ class SessionsApi(object):
|
|
|
3725
3756
|
if ('session_id' not in params or
|
|
3726
3757
|
params['session_id'] is None):
|
|
3727
3758
|
raise ValueError("Missing the required parameter `session_id` when calling `get_session_jobs`") # noqa: E501
|
|
3759
|
+
check_filename_params(params)
|
|
3728
3760
|
|
|
3729
3761
|
collection_formats = {}
|
|
3730
3762
|
|
|
@@ -3850,6 +3882,7 @@ class SessionsApi(object):
|
|
|
3850
3882
|
if ('note_id' not in params or
|
|
3851
3883
|
params['note_id'] is None):
|
|
3852
3884
|
raise ValueError("Missing the required parameter `note_id` when calling `get_session_note`") # noqa: E501
|
|
3885
|
+
check_filename_params(params)
|
|
3853
3886
|
|
|
3854
3887
|
collection_formats = {}
|
|
3855
3888
|
|
|
@@ -3954,6 +3987,7 @@ class SessionsApi(object):
|
|
|
3954
3987
|
if ('value' not in params or
|
|
3955
3988
|
params['value'] is None):
|
|
3956
3989
|
raise ValueError("Missing the required parameter `value` when calling `get_session_tag`") # noqa: E501
|
|
3990
|
+
check_filename_params(params)
|
|
3957
3991
|
|
|
3958
3992
|
collection_formats = {}
|
|
3959
3993
|
|
|
@@ -4058,6 +4092,7 @@ class SessionsApi(object):
|
|
|
4058
4092
|
if ('body' not in params or
|
|
4059
4093
|
params['body'] is None):
|
|
4060
4094
|
raise ValueError("Missing the required parameter `body` when calling `modify_session`") # noqa: E501
|
|
4095
|
+
check_filename_params(params)
|
|
4061
4096
|
|
|
4062
4097
|
collection_formats = {}
|
|
4063
4098
|
|
|
@@ -4179,6 +4214,7 @@ class SessionsApi(object):
|
|
|
4179
4214
|
if ('body' not in params or
|
|
4180
4215
|
params['body'] is None):
|
|
4181
4216
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_analysis`") # noqa: E501
|
|
4217
|
+
check_filename_params(params)
|
|
4182
4218
|
|
|
4183
4219
|
collection_formats = {}
|
|
4184
4220
|
|
|
@@ -4302,6 +4338,7 @@ class SessionsApi(object):
|
|
|
4302
4338
|
if ('body' not in params or
|
|
4303
4339
|
params['body'] is None):
|
|
4304
4340
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_file`") # noqa: E501
|
|
4341
|
+
check_filename_params(params)
|
|
4305
4342
|
|
|
4306
4343
|
collection_formats = {}
|
|
4307
4344
|
|
|
@@ -4425,6 +4462,7 @@ class SessionsApi(object):
|
|
|
4425
4462
|
if ('body' not in params or
|
|
4426
4463
|
params['body'] is None):
|
|
4427
4464
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_file_classification`") # noqa: E501
|
|
4465
|
+
check_filename_params(params)
|
|
4428
4466
|
|
|
4429
4467
|
collection_formats = {}
|
|
4430
4468
|
|
|
@@ -4548,6 +4586,7 @@ class SessionsApi(object):
|
|
|
4548
4586
|
if ('body' not in params or
|
|
4549
4587
|
params['body'] is None):
|
|
4550
4588
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_file_info`") # noqa: E501
|
|
4589
|
+
check_filename_params(params)
|
|
4551
4590
|
|
|
4552
4591
|
collection_formats = {}
|
|
4553
4592
|
|
|
@@ -4665,6 +4704,7 @@ class SessionsApi(object):
|
|
|
4665
4704
|
if ('body' not in params or
|
|
4666
4705
|
params['body'] is None):
|
|
4667
4706
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_info`") # noqa: E501
|
|
4707
|
+
check_filename_params(params)
|
|
4668
4708
|
|
|
4669
4709
|
collection_formats = {}
|
|
4670
4710
|
|
|
@@ -4786,6 +4826,7 @@ class SessionsApi(object):
|
|
|
4786
4826
|
if ('body' not in params or
|
|
4787
4827
|
params['body'] is None):
|
|
4788
4828
|
raise ValueError("Missing the required parameter `body` when calling `modify_session_note`") # noqa: E501
|
|
4829
|
+
check_filename_params(params)
|
|
4789
4830
|
|
|
4790
4831
|
collection_formats = {}
|
|
4791
4832
|
|
|
@@ -4909,6 +4950,7 @@ class SessionsApi(object):
|
|
|
4909
4950
|
if ('body' not in params or
|
|
4910
4951
|
params['body'] is None):
|
|
4911
4952
|
raise ValueError("Missing the required parameter `body` when calling `rename_session_tag`") # noqa: E501
|
|
4953
|
+
check_filename_params(params)
|
|
4912
4954
|
|
|
4913
4955
|
collection_formats = {}
|
|
4914
4956
|
|
|
@@ -4963,6 +5005,122 @@ class SessionsApi(object):
|
|
|
4963
5005
|
_request_out=params.get('_request_out'),
|
|
4964
5006
|
collection_formats=collection_formats)
|
|
4965
5007
|
|
|
5008
|
+
def session_copy(self, session_id, body, **kwargs): # noqa: E501
|
|
5009
|
+
"""Smart copy a session
|
|
5010
|
+
|
|
5011
|
+
Smart copy a session
|
|
5012
|
+
This method makes a synchronous HTTP request by default.
|
|
5013
|
+
|
|
5014
|
+
:param str session_id: (required)
|
|
5015
|
+
:param SessionCopyInput body: (required)
|
|
5016
|
+
:param bool async_: Perform the request asynchronously
|
|
5017
|
+
:return: None
|
|
5018
|
+
"""
|
|
5019
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
5020
|
+
kwargs['_return_http_data_only'] = True
|
|
5021
|
+
|
|
5022
|
+
if kwargs.get('async_'):
|
|
5023
|
+
return self.session_copy_with_http_info(session_id, body, **kwargs) # noqa: E501
|
|
5024
|
+
else:
|
|
5025
|
+
(data) = self.session_copy_with_http_info(session_id, body, **kwargs) # noqa: E501
|
|
5026
|
+
if (
|
|
5027
|
+
data
|
|
5028
|
+
and hasattr(data, 'return_value')
|
|
5029
|
+
and not ignore_simplified_return_value
|
|
5030
|
+
):
|
|
5031
|
+
return data.return_value()
|
|
5032
|
+
return data
|
|
5033
|
+
|
|
5034
|
+
|
|
5035
|
+
def session_copy_with_http_info(self, session_id, body, **kwargs): # noqa: E501
|
|
5036
|
+
"""Smart copy a session
|
|
5037
|
+
|
|
5038
|
+
Smart copy a session
|
|
5039
|
+
This method makes a synchronous HTTP request by default.
|
|
5040
|
+
|
|
5041
|
+
:param str session_id: (required)
|
|
5042
|
+
:param SessionCopyInput body: (required)
|
|
5043
|
+
:param bool async_: Perform the request asynchronously
|
|
5044
|
+
:return: None
|
|
5045
|
+
"""
|
|
5046
|
+
|
|
5047
|
+
all_params = ['session_id','body',] # noqa: E501
|
|
5048
|
+
all_params.append('async_')
|
|
5049
|
+
all_params.append('_return_http_data_only')
|
|
5050
|
+
all_params.append('_preload_content')
|
|
5051
|
+
all_params.append('_request_timeout')
|
|
5052
|
+
all_params.append('_request_out')
|
|
5053
|
+
|
|
5054
|
+
params = locals()
|
|
5055
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
5056
|
+
if key not in all_params:
|
|
5057
|
+
raise TypeError(
|
|
5058
|
+
"Got an unexpected keyword argument '%s'"
|
|
5059
|
+
" to method session_copy" % key
|
|
5060
|
+
)
|
|
5061
|
+
params[key] = val
|
|
5062
|
+
del params['kwargs']
|
|
5063
|
+
# verify the required parameter 'session_id' is set
|
|
5064
|
+
if ('session_id' not in params or
|
|
5065
|
+
params['session_id'] is None):
|
|
5066
|
+
raise ValueError("Missing the required parameter `session_id` when calling `session_copy`") # noqa: E501
|
|
5067
|
+
# verify the required parameter 'body' is set
|
|
5068
|
+
if ('body' not in params or
|
|
5069
|
+
params['body'] is None):
|
|
5070
|
+
raise ValueError("Missing the required parameter `body` when calling `session_copy`") # noqa: E501
|
|
5071
|
+
check_filename_params(params)
|
|
5072
|
+
|
|
5073
|
+
collection_formats = {}
|
|
5074
|
+
|
|
5075
|
+
path_params = {}
|
|
5076
|
+
if 'session_id' in params:
|
|
5077
|
+
path_params['session_id'] = params['session_id'] # noqa: E501
|
|
5078
|
+
|
|
5079
|
+
query_params = []
|
|
5080
|
+
|
|
5081
|
+
header_params = {}
|
|
5082
|
+
|
|
5083
|
+
form_params = []
|
|
5084
|
+
local_var_files = {}
|
|
5085
|
+
|
|
5086
|
+
body_params = None
|
|
5087
|
+
if 'body' in params:
|
|
5088
|
+
if 'SessionCopyInput'.startswith('union'):
|
|
5089
|
+
body_type = type(params['body'])
|
|
5090
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
5091
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
5092
|
+
else:
|
|
5093
|
+
body_params = params['body']
|
|
5094
|
+
else:
|
|
5095
|
+
body_params = flywheel.models.SessionCopyInput.positional_to_model(params['body'])
|
|
5096
|
+
# HTTP header `Accept`
|
|
5097
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
5098
|
+
['application/json']) # noqa: E501
|
|
5099
|
+
|
|
5100
|
+
# HTTP header `Content-Type`
|
|
5101
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
5102
|
+
['application/json']) # noqa: E501
|
|
5103
|
+
|
|
5104
|
+
# Authentication setting
|
|
5105
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
5106
|
+
|
|
5107
|
+
return self.api_client.call_api(
|
|
5108
|
+
'/sessions/{session_id}/copy', 'POST',
|
|
5109
|
+
path_params,
|
|
5110
|
+
query_params,
|
|
5111
|
+
header_params,
|
|
5112
|
+
body=body_params,
|
|
5113
|
+
post_params=form_params,
|
|
5114
|
+
files=local_var_files,
|
|
5115
|
+
response_type=None, # noqa: E501
|
|
5116
|
+
auth_settings=auth_settings,
|
|
5117
|
+
async_=params.get('async_'),
|
|
5118
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
5119
|
+
_preload_content=params.get('_preload_content', True),
|
|
5120
|
+
_request_timeout=params.get('_request_timeout'),
|
|
5121
|
+
_request_out=params.get('_request_out'),
|
|
5122
|
+
collection_formats=collection_formats)
|
|
5123
|
+
|
|
4966
5124
|
def upload_file_to_session(self, container_id, file, **kwargs): # noqa: E501
|
|
4967
5125
|
"""Upload a file to a(n) session.
|
|
4968
5126
|
|
|
@@ -5042,6 +5200,7 @@ class SessionsApi(object):
|
|
|
5042
5200
|
if ('file' not in params or
|
|
5043
5201
|
params['file'] is None):
|
|
5044
5202
|
raise ValueError("Missing the required parameter `file` when calling `upload_file_to_session`") # noqa: E501
|
|
5203
|
+
check_filename_params(params)
|
|
5045
5204
|
|
|
5046
5205
|
collection_formats = {}
|
|
5047
5206
|
|
|
@@ -5183,6 +5342,7 @@ class SessionsApi(object):
|
|
|
5183
5342
|
if ('file' not in params or
|
|
5184
5343
|
params['file'] is None):
|
|
5185
5344
|
raise ValueError("Missing the required parameter `file` when calling `upload_output_to_session_analysis`") # noqa: E501
|
|
5345
|
+
check_filename_params(params)
|
|
5186
5346
|
|
|
5187
5347
|
collection_formats = {}
|
|
5188
5348
|
|
flywheel/api/site_api.py
CHANGED
|
@@ -20,6 +20,7 @@ import six
|
|
|
20
20
|
|
|
21
21
|
from flywheel.api_client import ApiClient
|
|
22
22
|
import flywheel.models
|
|
23
|
+
from flywheel.util import check_filename_params
|
|
23
24
|
|
|
24
25
|
# NOTE: This file is auto generated by the swagger code generator program.
|
|
25
26
|
# Do not edit the class manually.
|
|
@@ -85,6 +86,7 @@ class SiteApi(object):
|
|
|
85
86
|
if ('body' not in params or
|
|
86
87
|
params['body'] is None):
|
|
87
88
|
raise ValueError("Missing the required parameter `body` when calling `add_provider`") # noqa: E501
|
|
89
|
+
check_filename_params(params)
|
|
88
90
|
|
|
89
91
|
collection_formats = {}
|
|
90
92
|
|
|
@@ -190,6 +192,7 @@ class SiteApi(object):
|
|
|
190
192
|
if ('body' not in params or
|
|
191
193
|
params['body'] is None):
|
|
192
194
|
raise ValueError("Missing the required parameter `body` when calling `add_site_rule`") # noqa: E501
|
|
195
|
+
check_filename_params(params)
|
|
193
196
|
|
|
194
197
|
collection_formats = {}
|
|
195
198
|
|
|
@@ -297,6 +300,7 @@ class SiteApi(object):
|
|
|
297
300
|
if ('provider_id' not in params or
|
|
298
301
|
params['provider_id'] is None):
|
|
299
302
|
raise ValueError("Missing the required parameter `provider_id` when calling `delete_provider`") # noqa: E501
|
|
303
|
+
check_filename_params(params)
|
|
300
304
|
|
|
301
305
|
collection_formats = {}
|
|
302
306
|
|
|
@@ -385,6 +389,7 @@ class SiteApi(object):
|
|
|
385
389
|
)
|
|
386
390
|
params[key] = val
|
|
387
391
|
del params['kwargs']
|
|
392
|
+
check_filename_params(params)
|
|
388
393
|
|
|
389
394
|
collection_formats = {}
|
|
390
395
|
|
|
@@ -479,6 +484,7 @@ class SiteApi(object):
|
|
|
479
484
|
if ('provider_id' not in params or
|
|
480
485
|
params['provider_id'] is None):
|
|
481
486
|
raise ValueError("Missing the required parameter `provider_id` when calling `get_provider`") # noqa: E501
|
|
487
|
+
check_filename_params(params)
|
|
482
488
|
|
|
483
489
|
collection_formats = {}
|
|
484
490
|
|
|
@@ -575,6 +581,7 @@ class SiteApi(object):
|
|
|
575
581
|
if ('provider_id' not in params or
|
|
576
582
|
params['provider_id'] is None):
|
|
577
583
|
raise ValueError("Missing the required parameter `provider_id` when calling `get_provider_config`") # noqa: E501
|
|
584
|
+
check_filename_params(params)
|
|
578
585
|
|
|
579
586
|
collection_formats = {}
|
|
580
587
|
|
|
@@ -679,6 +686,7 @@ class SiteApi(object):
|
|
|
679
686
|
)
|
|
680
687
|
params[key] = val
|
|
681
688
|
del params['kwargs']
|
|
689
|
+
check_filename_params(params)
|
|
682
690
|
|
|
683
691
|
collection_formats = {}
|
|
684
692
|
|
|
@@ -785,6 +793,7 @@ class SiteApi(object):
|
|
|
785
793
|
if ('rule_id' not in params or
|
|
786
794
|
params['rule_id'] is None):
|
|
787
795
|
raise ValueError("Missing the required parameter `rule_id` when calling `get_site_rule`") # noqa: E501
|
|
796
|
+
check_filename_params(params)
|
|
788
797
|
|
|
789
798
|
collection_formats = {}
|
|
790
799
|
|
|
@@ -879,6 +888,7 @@ class SiteApi(object):
|
|
|
879
888
|
)
|
|
880
889
|
params[key] = val
|
|
881
890
|
del params['kwargs']
|
|
891
|
+
check_filename_params(params)
|
|
882
892
|
|
|
883
893
|
collection_formats = {}
|
|
884
894
|
|
|
@@ -973,6 +983,7 @@ class SiteApi(object):
|
|
|
973
983
|
)
|
|
974
984
|
params[key] = val
|
|
975
985
|
del params['kwargs']
|
|
986
|
+
check_filename_params(params)
|
|
976
987
|
|
|
977
988
|
collection_formats = {}
|
|
978
989
|
|
|
@@ -1065,6 +1076,7 @@ class SiteApi(object):
|
|
|
1065
1076
|
if ('body' not in params or
|
|
1066
1077
|
params['body'] is None):
|
|
1067
1078
|
raise ValueError("Missing the required parameter `body` when calling `modify_bookmark_list`") # noqa: E501
|
|
1079
|
+
check_filename_params(params)
|
|
1068
1080
|
|
|
1069
1081
|
collection_formats = {}
|
|
1070
1082
|
|
|
@@ -1171,6 +1183,7 @@ class SiteApi(object):
|
|
|
1171
1183
|
if ('body' not in params or
|
|
1172
1184
|
params['body'] is None):
|
|
1173
1185
|
raise ValueError("Missing the required parameter `body` when calling `modify_provider`") # noqa: E501
|
|
1186
|
+
check_filename_params(params)
|
|
1174
1187
|
|
|
1175
1188
|
collection_formats = {}
|
|
1176
1189
|
|
|
@@ -1284,6 +1297,7 @@ class SiteApi(object):
|
|
|
1284
1297
|
if ('body' not in params or
|
|
1285
1298
|
params['body'] is None):
|
|
1286
1299
|
raise ValueError("Missing the required parameter `body` when calling `modify_site_rule`") # noqa: E501
|
|
1300
|
+
check_filename_params(params)
|
|
1287
1301
|
|
|
1288
1302
|
collection_formats = {}
|
|
1289
1303
|
|
|
@@ -1391,6 +1405,7 @@ class SiteApi(object):
|
|
|
1391
1405
|
if ('body' not in params or
|
|
1392
1406
|
params['body'] is None):
|
|
1393
1407
|
raise ValueError("Missing the required parameter `body` when calling `modify_site_settings`") # noqa: E501
|
|
1408
|
+
check_filename_params(params)
|
|
1394
1409
|
|
|
1395
1410
|
collection_formats = {}
|
|
1396
1411
|
|
|
@@ -1496,6 +1511,7 @@ class SiteApi(object):
|
|
|
1496
1511
|
if ('rule_id' not in params or
|
|
1497
1512
|
params['rule_id'] is None):
|
|
1498
1513
|
raise ValueError("Missing the required parameter `rule_id` when calling `remove_site_rule`") # noqa: E501
|
|
1514
|
+
check_filename_params(params)
|
|
1499
1515
|
|
|
1500
1516
|
collection_formats = {}
|
|
1501
1517
|
|