flywheel-sdk 20.6.0rc2__py2.py3-none-any.whl → 21.0.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 CHANGED
@@ -204,9 +204,7 @@ from flywheel.models.copy_filter import CopyFilter
204
204
  from flywheel.models.copy_status import CopyStatus
205
205
  from flywheel.models.core_models_api_key_api_key_input import CoreModelsApiKeyApiKeyInput
206
206
  from flywheel.models.core_models_common_source import CoreModelsCommonSource
207
- from flywheel.models.core_models_custom_filters_filter import CoreModelsCustomFiltersFilter
208
207
  from flywheel.models.core_models_jobs_api_key_input import CoreModelsJobsApiKeyInput
209
- from flywheel.models.core_models_paginations_filter import CoreModelsPaginationsFilter
210
208
  from flywheel.models.create_report_input import CreateReportInput
211
209
  from flywheel.models.creds import Creds
212
210
  from flywheel.models.curator import Curator
@@ -296,6 +294,7 @@ from flywheel.models.file_version_output import FileVersionOutput
296
294
  from flywheel.models.file_via import FileVia
297
295
  from flywheel.models.file_zip_entry import FileZipEntry
298
296
  from flywheel.models.file_zip_info import FileZipInfo
297
+ from flywheel.models.filter import Filter
299
298
  from flywheel.models.filter_input import FilterInput
300
299
  from flywheel.models.filter_values import FilterValues
301
300
  from flywheel.models.filter_view import FilterView
@@ -460,6 +459,8 @@ from flywheel.models.legacys_usage_project_entry import LegacysUsageProjectEntry
460
459
  from flywheel.models.local_storage import LocalStorage
461
460
  from flywheel.models.location import Location
462
461
  from flywheel.models.locked import Locked
462
+ from flywheel.models.mfa_channel import MFAChannel
463
+ from flywheel.models.mfa_settings import MFASettings
463
464
  from flywheel.models.ml_set_filter import MLSetFilter
464
465
  from flywheel.models.ml_type import MLType
465
466
  from flywheel.models.master_subject_code_dob_input import MasterSubjectCodeDobInput
@@ -1706,111 +1706,6 @@ class AcquisitionsApi(object):
1706
1706
  _request_out=params.get('_request_out'),
1707
1707
  collection_formats=collection_formats)
1708
1708
 
1709
- def delete_acquisitions_by_query(self, body, **kwargs): # noqa: E501
1710
- """*DEPRECATED* Delete multiple acquisitions by query
1711
-
1712
- Delete multiple acquisitions by query
1713
- This method makes a synchronous HTTP request by default.
1714
-
1715
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
1716
- :param ContainerDeleteReason delete_reason:
1717
- :param bool async_: Perform the request asynchronously
1718
- :return: DeletedResult
1719
- """
1720
- ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1721
- kwargs['_return_http_data_only'] = True
1722
-
1723
- if kwargs.get('async_'):
1724
- return self.delete_acquisitions_by_query_with_http_info(body, **kwargs) # noqa: E501
1725
- else:
1726
- (data) = self.delete_acquisitions_by_query_with_http_info(body, **kwargs) # noqa: E501
1727
- if (
1728
- data
1729
- and hasattr(data, 'return_value')
1730
- and not ignore_simplified_return_value
1731
- ):
1732
- return data.return_value()
1733
- return data
1734
-
1735
-
1736
- def delete_acquisitions_by_query_with_http_info(self, body, **kwargs): # noqa: E501
1737
- """*DEPRECATED* Delete multiple acquisitions by query
1738
-
1739
- Delete multiple acquisitions by query
1740
- This method makes a synchronous HTTP request by default.
1741
-
1742
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
1743
- :param ContainerDeleteReason delete_reason:
1744
- :param bool async_: Perform the request asynchronously
1745
- :return: DeletedResult
1746
- """
1747
-
1748
- all_params = ['body','delete_reason',] # noqa: E501
1749
- all_params.append('async_')
1750
- all_params.append('_return_http_data_only')
1751
- all_params.append('_preload_content')
1752
- all_params.append('_request_timeout')
1753
- all_params.append('_request_out')
1754
-
1755
- params = locals()
1756
- for key, val in six.iteritems(params['kwargs']):
1757
- if key not in all_params:
1758
- raise TypeError(
1759
- "Got an unexpected keyword argument '%s'"
1760
- " to method delete_acquisitions_by_query" % key
1761
- )
1762
- params[key] = val
1763
- del params['kwargs']
1764
- # verify the required parameter 'body' is set
1765
- if ('body' not in params or
1766
- params['body'] is None):
1767
- raise ValueError("Missing the required parameter `body` when calling `delete_acquisitions_by_query`") # noqa: E501
1768
- check_filename_params(params)
1769
-
1770
- collection_formats = {}
1771
-
1772
- path_params = {}
1773
-
1774
- query_params = []
1775
- if 'delete_reason' in params:
1776
- query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
1777
-
1778
- header_params = {}
1779
-
1780
- form_params = []
1781
- local_var_files = {}
1782
-
1783
- body_params = None
1784
- if 'body' in params:
1785
- body_params = params['body']
1786
- # HTTP header `Accept`
1787
- header_params['Accept'] = self.api_client.select_header_accept(
1788
- ['application/json']) # noqa: E501
1789
-
1790
- # HTTP header `Content-Type`
1791
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1792
- ['application/json']) # noqa: E501
1793
-
1794
- # Authentication setting
1795
- auth_settings = ['ApiKey'] # noqa: E501
1796
-
1797
- return self.api_client.call_api(
1798
- '/acquisitions/delete_by_query', 'DELETE',
1799
- path_params,
1800
- query_params,
1801
- header_params,
1802
- body=body_params,
1803
- post_params=form_params,
1804
- files=local_var_files,
1805
- response_type='DeletedResult', # noqa: E501
1806
- auth_settings=auth_settings,
1807
- async_=params.get('async_'),
1808
- _return_http_data_only=params.get('_return_http_data_only'),
1809
- _preload_content=params.get('_preload_content', True),
1810
- _request_timeout=params.get('_request_timeout'),
1811
- _request_out=params.get('_request_out'),
1812
- collection_formats=collection_formats)
1813
-
1814
1709
  def download_file_from_acquisition(self, acquisition_id, file_name, dest_file, **kwargs): # noqa: E501
1815
1710
  """Download a file.
1816
1711
 
@@ -368,111 +368,6 @@ class AnalysesApi(object):
368
368
  _request_out=params.get('_request_out'),
369
369
  collection_formats=collection_formats)
370
370
 
371
- def delete_analyses_by_query(self, body, **kwargs): # noqa: E501
372
- """*DEPRECATED* Delete multiple analyses by query
373
-
374
- Delete multiple analyses by query
375
- This method makes a synchronous HTTP request by default.
376
-
377
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
378
- :param ContainerDeleteReason delete_reason:
379
- :param bool async_: Perform the request asynchronously
380
- :return: DeletedResult
381
- """
382
- ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
383
- kwargs['_return_http_data_only'] = True
384
-
385
- if kwargs.get('async_'):
386
- return self.delete_analyses_by_query_with_http_info(body, **kwargs) # noqa: E501
387
- else:
388
- (data) = self.delete_analyses_by_query_with_http_info(body, **kwargs) # noqa: E501
389
- if (
390
- data
391
- and hasattr(data, 'return_value')
392
- and not ignore_simplified_return_value
393
- ):
394
- return data.return_value()
395
- return data
396
-
397
-
398
- def delete_analyses_by_query_with_http_info(self, body, **kwargs): # noqa: E501
399
- """*DEPRECATED* Delete multiple analyses by query
400
-
401
- Delete multiple analyses by query
402
- This method makes a synchronous HTTP request by default.
403
-
404
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
405
- :param ContainerDeleteReason delete_reason:
406
- :param bool async_: Perform the request asynchronously
407
- :return: DeletedResult
408
- """
409
-
410
- all_params = ['body','delete_reason',] # noqa: E501
411
- all_params.append('async_')
412
- all_params.append('_return_http_data_only')
413
- all_params.append('_preload_content')
414
- all_params.append('_request_timeout')
415
- all_params.append('_request_out')
416
-
417
- params = locals()
418
- for key, val in six.iteritems(params['kwargs']):
419
- if key not in all_params:
420
- raise TypeError(
421
- "Got an unexpected keyword argument '%s'"
422
- " to method delete_analyses_by_query" % key
423
- )
424
- params[key] = val
425
- del params['kwargs']
426
- # verify the required parameter 'body' is set
427
- if ('body' not in params or
428
- params['body'] is None):
429
- raise ValueError("Missing the required parameter `body` when calling `delete_analyses_by_query`") # noqa: E501
430
- check_filename_params(params)
431
-
432
- collection_formats = {}
433
-
434
- path_params = {}
435
-
436
- query_params = []
437
- if 'delete_reason' in params:
438
- query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
439
-
440
- header_params = {}
441
-
442
- form_params = []
443
- local_var_files = {}
444
-
445
- body_params = None
446
- if 'body' in params:
447
- body_params = params['body']
448
- # HTTP header `Accept`
449
- header_params['Accept'] = self.api_client.select_header_accept(
450
- ['application/json']) # noqa: E501
451
-
452
- # HTTP header `Content-Type`
453
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
454
- ['application/json']) # noqa: E501
455
-
456
- # Authentication setting
457
- auth_settings = ['ApiKey'] # noqa: E501
458
-
459
- return self.api_client.call_api(
460
- '/analyses/delete_by_query', 'DELETE',
461
- path_params,
462
- query_params,
463
- header_params,
464
- body=body_params,
465
- post_params=form_params,
466
- files=local_var_files,
467
- response_type='DeletedResult', # noqa: E501
468
- auth_settings=auth_settings,
469
- async_=params.get('async_'),
470
- _return_http_data_only=params.get('_return_http_data_only'),
471
- _preload_content=params.get('_preload_content', True),
472
- _request_timeout=params.get('_request_timeout'),
473
- _request_out=params.get('_request_out'),
474
- collection_formats=collection_formats)
475
-
476
371
  def delete_analysis(self, analysis_id, **kwargs): # noqa: E501
477
372
  """Delete an analysis
478
373
 
@@ -1335,111 +1335,6 @@ class CollectionsApi(object):
1335
1335
  _request_out=params.get('_request_out'),
1336
1336
  collection_formats=collection_formats)
1337
1337
 
1338
- def delete_collections_by_query(self, body, **kwargs): # noqa: E501
1339
- """*DEPRECATED* Delete multiple collections by query
1340
-
1341
- Delete multiple collections by query
1342
- This method makes a synchronous HTTP request by default.
1343
-
1344
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
1345
- :param ContainerDeleteReason delete_reason:
1346
- :param bool async_: Perform the request asynchronously
1347
- :return: DeletedResult
1348
- """
1349
- ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
1350
- kwargs['_return_http_data_only'] = True
1351
-
1352
- if kwargs.get('async_'):
1353
- return self.delete_collections_by_query_with_http_info(body, **kwargs) # noqa: E501
1354
- else:
1355
- (data) = self.delete_collections_by_query_with_http_info(body, **kwargs) # noqa: E501
1356
- if (
1357
- data
1358
- and hasattr(data, 'return_value')
1359
- and not ignore_simplified_return_value
1360
- ):
1361
- return data.return_value()
1362
- return data
1363
-
1364
-
1365
- def delete_collections_by_query_with_http_info(self, body, **kwargs): # noqa: E501
1366
- """*DEPRECATED* Delete multiple collections by query
1367
-
1368
- Delete multiple collections by query
1369
- This method makes a synchronous HTTP request by default.
1370
-
1371
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
1372
- :param ContainerDeleteReason delete_reason:
1373
- :param bool async_: Perform the request asynchronously
1374
- :return: DeletedResult
1375
- """
1376
-
1377
- all_params = ['body','delete_reason',] # noqa: E501
1378
- all_params.append('async_')
1379
- all_params.append('_return_http_data_only')
1380
- all_params.append('_preload_content')
1381
- all_params.append('_request_timeout')
1382
- all_params.append('_request_out')
1383
-
1384
- params = locals()
1385
- for key, val in six.iteritems(params['kwargs']):
1386
- if key not in all_params:
1387
- raise TypeError(
1388
- "Got an unexpected keyword argument '%s'"
1389
- " to method delete_collections_by_query" % key
1390
- )
1391
- params[key] = val
1392
- del params['kwargs']
1393
- # verify the required parameter 'body' is set
1394
- if ('body' not in params or
1395
- params['body'] is None):
1396
- raise ValueError("Missing the required parameter `body` when calling `delete_collections_by_query`") # noqa: E501
1397
- check_filename_params(params)
1398
-
1399
- collection_formats = {}
1400
-
1401
- path_params = {}
1402
-
1403
- query_params = []
1404
- if 'delete_reason' in params:
1405
- query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
1406
-
1407
- header_params = {}
1408
-
1409
- form_params = []
1410
- local_var_files = {}
1411
-
1412
- body_params = None
1413
- if 'body' in params:
1414
- body_params = params['body']
1415
- # HTTP header `Accept`
1416
- header_params['Accept'] = self.api_client.select_header_accept(
1417
- ['application/json']) # noqa: E501
1418
-
1419
- # HTTP header `Content-Type`
1420
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1421
- ['application/json']) # noqa: E501
1422
-
1423
- # Authentication setting
1424
- auth_settings = ['ApiKey'] # noqa: E501
1425
-
1426
- return self.api_client.call_api(
1427
- '/collections/delete_by_query', 'DELETE',
1428
- path_params,
1429
- query_params,
1430
- header_params,
1431
- body=body_params,
1432
- post_params=form_params,
1433
- files=local_var_files,
1434
- response_type='DeletedResult', # noqa: E501
1435
- auth_settings=auth_settings,
1436
- async_=params.get('async_'),
1437
- _return_http_data_only=params.get('_return_http_data_only'),
1438
- _preload_content=params.get('_preload_content', True),
1439
- _request_timeout=params.get('_request_timeout'),
1440
- _request_out=params.get('_request_out'),
1441
- collection_formats=collection_formats)
1442
-
1443
1338
  def download_file_from_collection(self, collection_id, file_name, dest_file, **kwargs): # noqa: E501
1444
1339
  """Download a file.
1445
1340
 
@@ -39,7 +39,7 @@ class CustomFiltersApi(object):
39
39
 
40
40
  :param FilterInput body: (required)
41
41
  :param bool async_: Perform the request asynchronously
42
- :return: CoreModelsCustomFiltersFilter
42
+ :return: Filter
43
43
  """
44
44
  ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
45
45
  kwargs['_return_http_data_only'] = True
@@ -65,7 +65,7 @@ class CustomFiltersApi(object):
65
65
 
66
66
  :param FilterInput body: (required)
67
67
  :param bool async_: Perform the request asynchronously
68
- :return: CoreModelsCustomFiltersFilter
68
+ :return: Filter
69
69
  """
70
70
 
71
71
  all_params = ['body',] # noqa: E501
@@ -130,7 +130,7 @@ class CustomFiltersApi(object):
130
130
  body=body_params,
131
131
  post_params=form_params,
132
132
  files=local_var_files,
133
- response_type='CoreModelsCustomFiltersFilter', # noqa: E501
133
+ response_type='Filter', # noqa: E501
134
134
  auth_settings=auth_settings,
135
135
  async_=params.get('async_'),
136
136
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -358,7 +358,7 @@ class CustomFiltersApi(object):
358
358
  :param str custom_filter_id: (required)
359
359
  :param FilterInput body: (required)
360
360
  :param bool async_: Perform the request asynchronously
361
- :return: CoreModelsCustomFiltersFilter
361
+ :return: Filter
362
362
  """
363
363
  ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
364
364
  kwargs['_return_http_data_only'] = True
@@ -385,7 +385,7 @@ class CustomFiltersApi(object):
385
385
  :param str custom_filter_id: (required)
386
386
  :param FilterInput body: (required)
387
387
  :param bool async_: Perform the request asynchronously
388
- :return: CoreModelsCustomFiltersFilter
388
+ :return: Filter
389
389
  """
390
390
 
391
391
  all_params = ['custom_filter_id','body',] # noqa: E501
@@ -456,7 +456,7 @@ class CustomFiltersApi(object):
456
456
  body=body_params,
457
457
  post_params=form_params,
458
458
  files=local_var_files,
459
- response_type='CoreModelsCustomFiltersFilter', # noqa: E501
459
+ response_type='Filter', # noqa: E501
460
460
  auth_settings=auth_settings,
461
461
  async_=params.get('async_'),
462
462
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -962,116 +962,6 @@ class DevicesApi(object):
962
962
  _request_out=params.get('_request_out'),
963
963
  collection_formats=collection_formats)
964
964
 
965
- def regenerate_key(self, device_id, **kwargs): # noqa: E501
966
- """This method is DEPRECATED, use generate_key instead
967
-
968
- This method makes a synchronous HTTP request by default.
969
-
970
- :param str device_id: (required)
971
- :param ApiKeyInputWithOptionalLabel body:
972
- :param bool async_: Perform the request asynchronously
973
- :return: object
974
- """
975
- ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
976
- kwargs['_return_http_data_only'] = True
977
-
978
- if kwargs.get('async_'):
979
- return self.regenerate_key_with_http_info(device_id, **kwargs) # noqa: E501
980
- else:
981
- (data) = self.regenerate_key_with_http_info(device_id, **kwargs) # noqa: E501
982
- if (
983
- data
984
- and hasattr(data, 'return_value')
985
- and not ignore_simplified_return_value
986
- ):
987
- return data.return_value()
988
- return data
989
-
990
-
991
- def regenerate_key_with_http_info(self, device_id, **kwargs): # noqa: E501
992
- """This method is DEPRECATED, use generate_key instead
993
-
994
- This method makes a synchronous HTTP request by default.
995
-
996
- :param str device_id: (required)
997
- :param ApiKeyInputWithOptionalLabel body:
998
- :param bool async_: Perform the request asynchronously
999
- :return: object
1000
- """
1001
-
1002
- all_params = ['device_id','body',] # noqa: E501
1003
- all_params.append('async_')
1004
- all_params.append('_return_http_data_only')
1005
- all_params.append('_preload_content')
1006
- all_params.append('_request_timeout')
1007
- all_params.append('_request_out')
1008
-
1009
- params = locals()
1010
- for key, val in six.iteritems(params['kwargs']):
1011
- if key not in all_params:
1012
- raise TypeError(
1013
- "Got an unexpected keyword argument '%s'"
1014
- " to method regenerate_key" % key
1015
- )
1016
- params[key] = val
1017
- del params['kwargs']
1018
- # verify the required parameter 'device_id' is set
1019
- if ('device_id' not in params or
1020
- params['device_id'] is None):
1021
- raise ValueError("Missing the required parameter `device_id` when calling `regenerate_key`") # noqa: E501
1022
- check_filename_params(params)
1023
-
1024
- collection_formats = {}
1025
-
1026
- path_params = {}
1027
- if 'device_id' in params:
1028
- path_params['device_id'] = params['device_id'] # noqa: E501
1029
-
1030
- query_params = []
1031
-
1032
- header_params = {}
1033
-
1034
- form_params = []
1035
- local_var_files = {}
1036
-
1037
- body_params = None
1038
- if 'body' in params:
1039
- if 'ApiKeyInputWithOptionalLabel'.startswith('union'):
1040
- body_type = type(params['body'])
1041
- if getattr(body_type, 'positional_to_model', None):
1042
- body_params = body_type.positional_to_model(params['body'])
1043
- else:
1044
- body_params = params['body']
1045
- else:
1046
- body_params = flywheel.models.ApiKeyInputWithOptionalLabel.positional_to_model(params['body'])
1047
- # HTTP header `Accept`
1048
- header_params['Accept'] = self.api_client.select_header_accept(
1049
- ['application/json']) # noqa: E501
1050
-
1051
- # HTTP header `Content-Type`
1052
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1053
- ['application/json']) # noqa: E501
1054
-
1055
- # Authentication setting
1056
- auth_settings = ['ApiKey'] # noqa: E501
1057
-
1058
- return self.api_client.call_api(
1059
- '/devices/{device_id}/key-regen', 'POST',
1060
- path_params,
1061
- query_params,
1062
- header_params,
1063
- body=body_params,
1064
- post_params=form_params,
1065
- files=local_var_files,
1066
- response_type='object', # noqa: E501
1067
- auth_settings=auth_settings,
1068
- async_=params.get('async_'),
1069
- _return_http_data_only=params.get('_return_http_data_only'),
1070
- _preload_content=params.get('_preload_content', True),
1071
- _request_timeout=params.get('_request_timeout'),
1072
- _request_out=params.get('_request_out'),
1073
- collection_formats=collection_formats)
1074
-
1075
965
  def update_device(self, body, **kwargs): # noqa: E501
1076
966
  """Modify a device's type, name, interval, info or set errors.
1077
967
 
flywheel/api/files_api.py CHANGED
@@ -459,111 +459,6 @@ class FilesApi(object):
459
459
  _request_out=params.get('_request_out'),
460
460
  collection_formats=collection_formats)
461
461
 
462
- def delete_files_by_query(self, body, **kwargs): # noqa: E501
463
- """*DEPRECATED* Delete multiple files by query
464
-
465
- Delete multiple files by query
466
- This method makes a synchronous HTTP request by default.
467
-
468
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
469
- :param ContainerDeleteReason delete_reason:
470
- :param bool async_: Perform the request asynchronously
471
- :return: DeletedResult
472
- """
473
- ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
474
- kwargs['_return_http_data_only'] = True
475
-
476
- if kwargs.get('async_'):
477
- return self.delete_files_by_query_with_http_info(body, **kwargs) # noqa: E501
478
- else:
479
- (data) = self.delete_files_by_query_with_http_info(body, **kwargs) # noqa: E501
480
- if (
481
- data
482
- and hasattr(data, 'return_value')
483
- and not ignore_simplified_return_value
484
- ):
485
- return data.return_value()
486
- return data
487
-
488
-
489
- def delete_files_by_query_with_http_info(self, body, **kwargs): # noqa: E501
490
- """*DEPRECATED* Delete multiple files by query
491
-
492
- Delete multiple files by query
493
- This method makes a synchronous HTTP request by default.
494
-
495
- :param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
496
- :param ContainerDeleteReason delete_reason:
497
- :param bool async_: Perform the request asynchronously
498
- :return: DeletedResult
499
- """
500
-
501
- all_params = ['body','delete_reason',] # noqa: E501
502
- all_params.append('async_')
503
- all_params.append('_return_http_data_only')
504
- all_params.append('_preload_content')
505
- all_params.append('_request_timeout')
506
- all_params.append('_request_out')
507
-
508
- params = locals()
509
- for key, val in six.iteritems(params['kwargs']):
510
- if key not in all_params:
511
- raise TypeError(
512
- "Got an unexpected keyword argument '%s'"
513
- " to method delete_files_by_query" % key
514
- )
515
- params[key] = val
516
- del params['kwargs']
517
- # verify the required parameter 'body' is set
518
- if ('body' not in params or
519
- params['body'] is None):
520
- raise ValueError("Missing the required parameter `body` when calling `delete_files_by_query`") # noqa: E501
521
- check_filename_params(params)
522
-
523
- collection_formats = {}
524
-
525
- path_params = {}
526
-
527
- query_params = []
528
- if 'delete_reason' in params:
529
- query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
530
-
531
- header_params = {}
532
-
533
- form_params = []
534
- local_var_files = {}
535
-
536
- body_params = None
537
- if 'body' in params:
538
- body_params = params['body']
539
- # HTTP header `Accept`
540
- header_params['Accept'] = self.api_client.select_header_accept(
541
- ['application/json']) # noqa: E501
542
-
543
- # HTTP header `Content-Type`
544
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
545
- ['application/json']) # noqa: E501
546
-
547
- # Authentication setting
548
- auth_settings = ['ApiKey'] # noqa: E501
549
-
550
- return self.api_client.call_api(
551
- '/files/delete_by_query', 'DELETE',
552
- path_params,
553
- query_params,
554
- header_params,
555
- body=body_params,
556
- post_params=form_params,
557
- files=local_var_files,
558
- response_type='DeletedResult', # noqa: E501
559
- auth_settings=auth_settings,
560
- async_=params.get('async_'),
561
- _return_http_data_only=params.get('_return_http_data_only'),
562
- _preload_content=params.get('_preload_content', True),
563
- _request_timeout=params.get('_request_timeout'),
564
- _request_out=params.get('_request_out'),
565
- collection_formats=collection_formats)
566
-
567
462
  def get_all_files(self, **kwargs): # noqa: E501
568
463
  """Return all files
569
464