flywheel-sdk 20.6.0__py2.py3-none-any.whl → 21.0.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 +3 -2
- flywheel/api/acquisitions_api.py +0 -105
- flywheel/api/analyses_api.py +0 -105
- flywheel/api/collections_api.py +0 -105
- flywheel/api/custom_filters_api.py +6 -6
- flywheel/api/devices_api.py +0 -110
- flywheel/api/files_api.py +0 -105
- flywheel/api/groups_api.py +0 -105
- flywheel/api/projects_api.py +0 -105
- flywheel/api/sessions_api.py +0 -105
- flywheel/api/subjects_api.py +0 -105
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/drone_login.py +3 -2
- flywheel/flywheel.py +21 -143
- flywheel/gear_context.py +0 -1
- flywheel/models/__init__.py +4 -3
- flywheel/models/features.py +1 -55
- flywheel/models/{core_models_custom_filters_filter.py → filter.py} +36 -36
- flywheel/models/ingress_site_settings.py +32 -4
- flywheel/models/mfa_channel.py +29 -0
- flywheel/models/{core_models_paginations_filter.py → mfa_settings.py} +24 -76
- flywheel/models/page_generic_filter.py +4 -4
- flywheel/models/site_settings.py +32 -4
- flywheel/models/work_in_progress_features.py +1 -30
- flywheel/view_builder.py +3 -3
- {flywheel_sdk-20.6.0.dist-info → flywheel_sdk-21.0.0rc0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.6.0.dist-info → flywheel_sdk-21.0.0rc0.dist-info}/RECORD +31 -30
- {flywheel_sdk-20.6.0.dist-info → flywheel_sdk-21.0.0rc0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.6.0.dist-info → flywheel_sdk-21.0.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.6.0.dist-info → flywheel_sdk-21.0.0rc0.dist-info}/top_level.txt +0 -0
flywheel/api/groups_api.py
CHANGED
|
@@ -1356,111 +1356,6 @@ class GroupsApi(object):
|
|
|
1356
1356
|
_request_out=params.get('_request_out'),
|
|
1357
1357
|
collection_formats=collection_formats)
|
|
1358
1358
|
|
|
1359
|
-
def delete_groups_by_query(self, body, **kwargs): # noqa: E501
|
|
1360
|
-
"""*DEPRECATED* Delete multiple groups by query
|
|
1361
|
-
|
|
1362
|
-
Delete multiple groups by query
|
|
1363
|
-
This method makes a synchronous HTTP request by default.
|
|
1364
|
-
|
|
1365
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1366
|
-
:param ContainerDeleteReason delete_reason:
|
|
1367
|
-
:param bool async_: Perform the request asynchronously
|
|
1368
|
-
:return: DeletedResult
|
|
1369
|
-
"""
|
|
1370
|
-
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1371
|
-
kwargs['_return_http_data_only'] = True
|
|
1372
|
-
|
|
1373
|
-
if kwargs.get('async_'):
|
|
1374
|
-
return self.delete_groups_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1375
|
-
else:
|
|
1376
|
-
(data) = self.delete_groups_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1377
|
-
if (
|
|
1378
|
-
data
|
|
1379
|
-
and hasattr(data, 'return_value')
|
|
1380
|
-
and not ignore_simplified_return_value
|
|
1381
|
-
):
|
|
1382
|
-
return data.return_value()
|
|
1383
|
-
return data
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
def delete_groups_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1387
|
-
"""*DEPRECATED* Delete multiple groups by query
|
|
1388
|
-
|
|
1389
|
-
Delete multiple groups by query
|
|
1390
|
-
This method makes a synchronous HTTP request by default.
|
|
1391
|
-
|
|
1392
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1393
|
-
:param ContainerDeleteReason delete_reason:
|
|
1394
|
-
:param bool async_: Perform the request asynchronously
|
|
1395
|
-
:return: DeletedResult
|
|
1396
|
-
"""
|
|
1397
|
-
|
|
1398
|
-
all_params = ['body','delete_reason',] # noqa: E501
|
|
1399
|
-
all_params.append('async_')
|
|
1400
|
-
all_params.append('_return_http_data_only')
|
|
1401
|
-
all_params.append('_preload_content')
|
|
1402
|
-
all_params.append('_request_timeout')
|
|
1403
|
-
all_params.append('_request_out')
|
|
1404
|
-
|
|
1405
|
-
params = locals()
|
|
1406
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1407
|
-
if key not in all_params:
|
|
1408
|
-
raise TypeError(
|
|
1409
|
-
"Got an unexpected keyword argument '%s'"
|
|
1410
|
-
" to method delete_groups_by_query" % key
|
|
1411
|
-
)
|
|
1412
|
-
params[key] = val
|
|
1413
|
-
del params['kwargs']
|
|
1414
|
-
# verify the required parameter 'body' is set
|
|
1415
|
-
if ('body' not in params or
|
|
1416
|
-
params['body'] is None):
|
|
1417
|
-
raise ValueError("Missing the required parameter `body` when calling `delete_groups_by_query`") # noqa: E501
|
|
1418
|
-
check_filename_params(params)
|
|
1419
|
-
|
|
1420
|
-
collection_formats = {}
|
|
1421
|
-
|
|
1422
|
-
path_params = {}
|
|
1423
|
-
|
|
1424
|
-
query_params = []
|
|
1425
|
-
if 'delete_reason' in params:
|
|
1426
|
-
query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
|
|
1427
|
-
|
|
1428
|
-
header_params = {}
|
|
1429
|
-
|
|
1430
|
-
form_params = []
|
|
1431
|
-
local_var_files = {}
|
|
1432
|
-
|
|
1433
|
-
body_params = None
|
|
1434
|
-
if 'body' in params:
|
|
1435
|
-
body_params = params['body']
|
|
1436
|
-
# HTTP header `Accept`
|
|
1437
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1438
|
-
['application/json']) # noqa: E501
|
|
1439
|
-
|
|
1440
|
-
# HTTP header `Content-Type`
|
|
1441
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1442
|
-
['application/json']) # noqa: E501
|
|
1443
|
-
|
|
1444
|
-
# Authentication setting
|
|
1445
|
-
auth_settings = ['ApiKey'] # noqa: E501
|
|
1446
|
-
|
|
1447
|
-
return self.api_client.call_api(
|
|
1448
|
-
'/groups/delete_by_query', 'DELETE',
|
|
1449
|
-
path_params,
|
|
1450
|
-
query_params,
|
|
1451
|
-
header_params,
|
|
1452
|
-
body=body_params,
|
|
1453
|
-
post_params=form_params,
|
|
1454
|
-
files=local_var_files,
|
|
1455
|
-
response_type='DeletedResult', # noqa: E501
|
|
1456
|
-
auth_settings=auth_settings,
|
|
1457
|
-
async_=params.get('async_'),
|
|
1458
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1459
|
-
_preload_content=params.get('_preload_content', True),
|
|
1460
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1461
|
-
_request_out=params.get('_request_out'),
|
|
1462
|
-
collection_formats=collection_formats)
|
|
1463
|
-
|
|
1464
1359
|
def get_all_group_roles(self, group_id, **kwargs): # noqa: E501
|
|
1465
1360
|
"""Get list of group roles
|
|
1466
1361
|
|
flywheel/api/projects_api.py
CHANGED
|
@@ -2055,111 +2055,6 @@ class ProjectsApi(object):
|
|
|
2055
2055
|
_request_out=params.get('_request_out'),
|
|
2056
2056
|
collection_formats=collection_formats)
|
|
2057
2057
|
|
|
2058
|
-
def delete_projects_by_query(self, body, **kwargs): # noqa: E501
|
|
2059
|
-
"""*DEPRECATED* Delete multiple projects by query
|
|
2060
|
-
|
|
2061
|
-
Delete multiple projects by query
|
|
2062
|
-
This method makes a synchronous HTTP request by default.
|
|
2063
|
-
|
|
2064
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
2065
|
-
:param ContainerDeleteReason delete_reason:
|
|
2066
|
-
:param bool async_: Perform the request asynchronously
|
|
2067
|
-
:return: DeletedResult
|
|
2068
|
-
"""
|
|
2069
|
-
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
2070
|
-
kwargs['_return_http_data_only'] = True
|
|
2071
|
-
|
|
2072
|
-
if kwargs.get('async_'):
|
|
2073
|
-
return self.delete_projects_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
2074
|
-
else:
|
|
2075
|
-
(data) = self.delete_projects_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
2076
|
-
if (
|
|
2077
|
-
data
|
|
2078
|
-
and hasattr(data, 'return_value')
|
|
2079
|
-
and not ignore_simplified_return_value
|
|
2080
|
-
):
|
|
2081
|
-
return data.return_value()
|
|
2082
|
-
return data
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
def delete_projects_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
2086
|
-
"""*DEPRECATED* Delete multiple projects by query
|
|
2087
|
-
|
|
2088
|
-
Delete multiple projects by query
|
|
2089
|
-
This method makes a synchronous HTTP request by default.
|
|
2090
|
-
|
|
2091
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
2092
|
-
:param ContainerDeleteReason delete_reason:
|
|
2093
|
-
:param bool async_: Perform the request asynchronously
|
|
2094
|
-
:return: DeletedResult
|
|
2095
|
-
"""
|
|
2096
|
-
|
|
2097
|
-
all_params = ['body','delete_reason',] # noqa: E501
|
|
2098
|
-
all_params.append('async_')
|
|
2099
|
-
all_params.append('_return_http_data_only')
|
|
2100
|
-
all_params.append('_preload_content')
|
|
2101
|
-
all_params.append('_request_timeout')
|
|
2102
|
-
all_params.append('_request_out')
|
|
2103
|
-
|
|
2104
|
-
params = locals()
|
|
2105
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
2106
|
-
if key not in all_params:
|
|
2107
|
-
raise TypeError(
|
|
2108
|
-
"Got an unexpected keyword argument '%s'"
|
|
2109
|
-
" to method delete_projects_by_query" % key
|
|
2110
|
-
)
|
|
2111
|
-
params[key] = val
|
|
2112
|
-
del params['kwargs']
|
|
2113
|
-
# verify the required parameter 'body' is set
|
|
2114
|
-
if ('body' not in params or
|
|
2115
|
-
params['body'] is None):
|
|
2116
|
-
raise ValueError("Missing the required parameter `body` when calling `delete_projects_by_query`") # noqa: E501
|
|
2117
|
-
check_filename_params(params)
|
|
2118
|
-
|
|
2119
|
-
collection_formats = {}
|
|
2120
|
-
|
|
2121
|
-
path_params = {}
|
|
2122
|
-
|
|
2123
|
-
query_params = []
|
|
2124
|
-
if 'delete_reason' in params:
|
|
2125
|
-
query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
|
|
2126
|
-
|
|
2127
|
-
header_params = {}
|
|
2128
|
-
|
|
2129
|
-
form_params = []
|
|
2130
|
-
local_var_files = {}
|
|
2131
|
-
|
|
2132
|
-
body_params = None
|
|
2133
|
-
if 'body' in params:
|
|
2134
|
-
body_params = params['body']
|
|
2135
|
-
# HTTP header `Accept`
|
|
2136
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2137
|
-
['application/json']) # noqa: E501
|
|
2138
|
-
|
|
2139
|
-
# HTTP header `Content-Type`
|
|
2140
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2141
|
-
['application/json']) # noqa: E501
|
|
2142
|
-
|
|
2143
|
-
# Authentication setting
|
|
2144
|
-
auth_settings = ['ApiKey'] # noqa: E501
|
|
2145
|
-
|
|
2146
|
-
return self.api_client.call_api(
|
|
2147
|
-
'/projects/delete_by_query', 'DELETE',
|
|
2148
|
-
path_params,
|
|
2149
|
-
query_params,
|
|
2150
|
-
header_params,
|
|
2151
|
-
body=body_params,
|
|
2152
|
-
post_params=form_params,
|
|
2153
|
-
files=local_var_files,
|
|
2154
|
-
response_type='DeletedResult', # noqa: E501
|
|
2155
|
-
auth_settings=auth_settings,
|
|
2156
|
-
async_=params.get('async_'),
|
|
2157
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2158
|
-
_preload_content=params.get('_preload_content', True),
|
|
2159
|
-
_request_timeout=params.get('_request_timeout'),
|
|
2160
|
-
_request_out=params.get('_request_out'),
|
|
2161
|
-
collection_formats=collection_formats)
|
|
2162
|
-
|
|
2163
2058
|
def download_file_from_project(self, project_id, file_name, dest_file, **kwargs): # noqa: E501
|
|
2164
2059
|
"""Download a file.
|
|
2165
2060
|
|
flywheel/api/sessions_api.py
CHANGED
|
@@ -1590,111 +1590,6 @@ class SessionsApi(object):
|
|
|
1590
1590
|
_request_out=params.get('_request_out'),
|
|
1591
1591
|
collection_formats=collection_formats)
|
|
1592
1592
|
|
|
1593
|
-
def delete_sessions_by_query(self, body, **kwargs): # noqa: E501
|
|
1594
|
-
"""*DEPRECATED* Delete multiple sessions by query
|
|
1595
|
-
|
|
1596
|
-
Delete multiple sessions by query
|
|
1597
|
-
This method makes a synchronous HTTP request by default.
|
|
1598
|
-
|
|
1599
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1600
|
-
:param ContainerDeleteReason delete_reason:
|
|
1601
|
-
:param bool async_: Perform the request asynchronously
|
|
1602
|
-
:return: DeletedResult
|
|
1603
|
-
"""
|
|
1604
|
-
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1605
|
-
kwargs['_return_http_data_only'] = True
|
|
1606
|
-
|
|
1607
|
-
if kwargs.get('async_'):
|
|
1608
|
-
return self.delete_sessions_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1609
|
-
else:
|
|
1610
|
-
(data) = self.delete_sessions_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1611
|
-
if (
|
|
1612
|
-
data
|
|
1613
|
-
and hasattr(data, 'return_value')
|
|
1614
|
-
and not ignore_simplified_return_value
|
|
1615
|
-
):
|
|
1616
|
-
return data.return_value()
|
|
1617
|
-
return data
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
def delete_sessions_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1621
|
-
"""*DEPRECATED* Delete multiple sessions by query
|
|
1622
|
-
|
|
1623
|
-
Delete multiple sessions by query
|
|
1624
|
-
This method makes a synchronous HTTP request by default.
|
|
1625
|
-
|
|
1626
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1627
|
-
:param ContainerDeleteReason delete_reason:
|
|
1628
|
-
:param bool async_: Perform the request asynchronously
|
|
1629
|
-
:return: DeletedResult
|
|
1630
|
-
"""
|
|
1631
|
-
|
|
1632
|
-
all_params = ['body','delete_reason',] # noqa: E501
|
|
1633
|
-
all_params.append('async_')
|
|
1634
|
-
all_params.append('_return_http_data_only')
|
|
1635
|
-
all_params.append('_preload_content')
|
|
1636
|
-
all_params.append('_request_timeout')
|
|
1637
|
-
all_params.append('_request_out')
|
|
1638
|
-
|
|
1639
|
-
params = locals()
|
|
1640
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1641
|
-
if key not in all_params:
|
|
1642
|
-
raise TypeError(
|
|
1643
|
-
"Got an unexpected keyword argument '%s'"
|
|
1644
|
-
" to method delete_sessions_by_query" % key
|
|
1645
|
-
)
|
|
1646
|
-
params[key] = val
|
|
1647
|
-
del params['kwargs']
|
|
1648
|
-
# verify the required parameter 'body' is set
|
|
1649
|
-
if ('body' not in params or
|
|
1650
|
-
params['body'] is None):
|
|
1651
|
-
raise ValueError("Missing the required parameter `body` when calling `delete_sessions_by_query`") # noqa: E501
|
|
1652
|
-
check_filename_params(params)
|
|
1653
|
-
|
|
1654
|
-
collection_formats = {}
|
|
1655
|
-
|
|
1656
|
-
path_params = {}
|
|
1657
|
-
|
|
1658
|
-
query_params = []
|
|
1659
|
-
if 'delete_reason' in params:
|
|
1660
|
-
query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
|
|
1661
|
-
|
|
1662
|
-
header_params = {}
|
|
1663
|
-
|
|
1664
|
-
form_params = []
|
|
1665
|
-
local_var_files = {}
|
|
1666
|
-
|
|
1667
|
-
body_params = None
|
|
1668
|
-
if 'body' in params:
|
|
1669
|
-
body_params = params['body']
|
|
1670
|
-
# HTTP header `Accept`
|
|
1671
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1672
|
-
['application/json']) # noqa: E501
|
|
1673
|
-
|
|
1674
|
-
# HTTP header `Content-Type`
|
|
1675
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1676
|
-
['application/json']) # noqa: E501
|
|
1677
|
-
|
|
1678
|
-
# Authentication setting
|
|
1679
|
-
auth_settings = ['ApiKey'] # noqa: E501
|
|
1680
|
-
|
|
1681
|
-
return self.api_client.call_api(
|
|
1682
|
-
'/sessions/delete_by_query', 'DELETE',
|
|
1683
|
-
path_params,
|
|
1684
|
-
query_params,
|
|
1685
|
-
header_params,
|
|
1686
|
-
body=body_params,
|
|
1687
|
-
post_params=form_params,
|
|
1688
|
-
files=local_var_files,
|
|
1689
|
-
response_type='DeletedResult', # noqa: E501
|
|
1690
|
-
auth_settings=auth_settings,
|
|
1691
|
-
async_=params.get('async_'),
|
|
1692
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1693
|
-
_preload_content=params.get('_preload_content', True),
|
|
1694
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1695
|
-
_request_out=params.get('_request_out'),
|
|
1696
|
-
collection_formats=collection_formats)
|
|
1697
|
-
|
|
1698
1593
|
def download_file_from_session(self, session_id, file_name, dest_file, **kwargs): # noqa: E501
|
|
1699
1594
|
"""Download a file.
|
|
1700
1595
|
|
flywheel/api/subjects_api.py
CHANGED
|
@@ -1698,111 +1698,6 @@ class SubjectsApi(object):
|
|
|
1698
1698
|
_request_out=params.get('_request_out'),
|
|
1699
1699
|
collection_formats=collection_formats)
|
|
1700
1700
|
|
|
1701
|
-
def delete_subjects_by_query(self, body, **kwargs): # noqa: E501
|
|
1702
|
-
"""*DEPRECATED* Delete multiple subjects by query
|
|
1703
|
-
|
|
1704
|
-
Delete multiple subjects by query
|
|
1705
|
-
This method makes a synchronous HTTP request by default.
|
|
1706
|
-
|
|
1707
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1708
|
-
:param ContainerDeleteReason delete_reason:
|
|
1709
|
-
:param bool async_: Perform the request asynchronously
|
|
1710
|
-
:return: DeletedResult
|
|
1711
|
-
"""
|
|
1712
|
-
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1713
|
-
kwargs['_return_http_data_only'] = True
|
|
1714
|
-
|
|
1715
|
-
if kwargs.get('async_'):
|
|
1716
|
-
return self.delete_subjects_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1717
|
-
else:
|
|
1718
|
-
(data) = self.delete_subjects_by_query_with_http_info(body, **kwargs) # noqa: E501
|
|
1719
|
-
if (
|
|
1720
|
-
data
|
|
1721
|
-
and hasattr(data, 'return_value')
|
|
1722
|
-
and not ignore_simplified_return_value
|
|
1723
|
-
):
|
|
1724
|
-
return data.return_value()
|
|
1725
|
-
return data
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
def delete_subjects_by_query_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1729
|
-
"""*DEPRECATED* Delete multiple subjects by query
|
|
1730
|
-
|
|
1731
|
-
Delete multiple subjects by query
|
|
1732
|
-
This method makes a synchronous HTTP request by default.
|
|
1733
|
-
|
|
1734
|
-
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1735
|
-
:param ContainerDeleteReason delete_reason:
|
|
1736
|
-
:param bool async_: Perform the request asynchronously
|
|
1737
|
-
:return: DeletedResult
|
|
1738
|
-
"""
|
|
1739
|
-
|
|
1740
|
-
all_params = ['body','delete_reason',] # noqa: E501
|
|
1741
|
-
all_params.append('async_')
|
|
1742
|
-
all_params.append('_return_http_data_only')
|
|
1743
|
-
all_params.append('_preload_content')
|
|
1744
|
-
all_params.append('_request_timeout')
|
|
1745
|
-
all_params.append('_request_out')
|
|
1746
|
-
|
|
1747
|
-
params = locals()
|
|
1748
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
1749
|
-
if key not in all_params:
|
|
1750
|
-
raise TypeError(
|
|
1751
|
-
"Got an unexpected keyword argument '%s'"
|
|
1752
|
-
" to method delete_subjects_by_query" % key
|
|
1753
|
-
)
|
|
1754
|
-
params[key] = val
|
|
1755
|
-
del params['kwargs']
|
|
1756
|
-
# verify the required parameter 'body' is set
|
|
1757
|
-
if ('body' not in params or
|
|
1758
|
-
params['body'] is None):
|
|
1759
|
-
raise ValueError("Missing the required parameter `body` when calling `delete_subjects_by_query`") # noqa: E501
|
|
1760
|
-
check_filename_params(params)
|
|
1761
|
-
|
|
1762
|
-
collection_formats = {}
|
|
1763
|
-
|
|
1764
|
-
path_params = {}
|
|
1765
|
-
|
|
1766
|
-
query_params = []
|
|
1767
|
-
if 'delete_reason' in params:
|
|
1768
|
-
query_params.append(('delete_reason', params['delete_reason'])) # noqa: E501
|
|
1769
|
-
|
|
1770
|
-
header_params = {}
|
|
1771
|
-
|
|
1772
|
-
form_params = []
|
|
1773
|
-
local_var_files = {}
|
|
1774
|
-
|
|
1775
|
-
body_params = None
|
|
1776
|
-
if 'body' in params:
|
|
1777
|
-
body_params = params['body']
|
|
1778
|
-
# HTTP header `Accept`
|
|
1779
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1780
|
-
['application/json']) # noqa: E501
|
|
1781
|
-
|
|
1782
|
-
# HTTP header `Content-Type`
|
|
1783
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1784
|
-
['application/json']) # noqa: E501
|
|
1785
|
-
|
|
1786
|
-
# Authentication setting
|
|
1787
|
-
auth_settings = ['ApiKey'] # noqa: E501
|
|
1788
|
-
|
|
1789
|
-
return self.api_client.call_api(
|
|
1790
|
-
'/subjects/delete_by_query', 'DELETE',
|
|
1791
|
-
path_params,
|
|
1792
|
-
query_params,
|
|
1793
|
-
header_params,
|
|
1794
|
-
body=body_params,
|
|
1795
|
-
post_params=form_params,
|
|
1796
|
-
files=local_var_files,
|
|
1797
|
-
response_type='DeletedResult', # noqa: E501
|
|
1798
|
-
auth_settings=auth_settings,
|
|
1799
|
-
async_=params.get('async_'),
|
|
1800
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1801
|
-
_preload_content=params.get('_preload_content', True),
|
|
1802
|
-
_request_timeout=params.get('_request_timeout'),
|
|
1803
|
-
_request_out=params.get('_request_out'),
|
|
1804
|
-
collection_formats=collection_formats)
|
|
1805
|
-
|
|
1806
1701
|
def download_file_from_subject(self, subject_id, file_name, dest_file, **kwargs): # noqa: E501
|
|
1807
1702
|
"""Download a file.
|
|
1808
1703
|
|
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/
|
|
87
|
+
self.user_agent = 'Swagger-Codegen/21.0.0-rc0/python'
|
|
88
88
|
self.last_response = None
|
|
89
89
|
self._version_check_fn = None
|
|
90
90
|
self._context = context
|
flywheel/configuration.py
CHANGED
|
@@ -253,8 +253,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
253
253
|
return "Python SDK Debug Report:\n"\
|
|
254
254
|
"OS: {env}\n"\
|
|
255
255
|
"Python Version: {pyversion}\n"\
|
|
256
|
-
"Version of the API:
|
|
257
|
-
"SDK Package Version:
|
|
256
|
+
"Version of the API: 21.0.0-rc0\n"\
|
|
257
|
+
"SDK Package Version: 21.0.0-rc0".\
|
|
258
258
|
format(env=sys.platform, pyversion=sys.version)
|
|
259
259
|
|
|
260
260
|
def enable_message_cutoff(self, message_cutoff):
|
flywheel/drone_login.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""Provides Drone-based login credentials"""
|
|
2
2
|
|
|
3
3
|
import requests
|
|
4
|
-
|
|
5
|
-
from .client import Client
|
|
4
|
+
|
|
6
5
|
from . import util
|
|
6
|
+
from .client import Client
|
|
7
|
+
from .rest import ApiException
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
def create_drone_client(host, secret, method, name, port=443, **kwargs):
|