flywheel-sdk 17.2.0rc0__py2.py3-none-any.whl → 17.3.0rc1__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 +19 -5
- flywheel/api/analyses_api.py +131 -1
- flywheel/api/files_api.py +112 -0
- flywheel/api/groups_api.py +24 -14
- flywheel/api/projects_api.py +69 -44
- flywheel/api/roles_api.py +66 -29
- flywheel/api/users_api.py +7 -7
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/file_spec.py +7 -1
- flywheel/finder.py +10 -0
- flywheel/flywheel.py +128 -37
- flywheel/models/__init__.py +20 -6
- flywheel/models/acquisition_upsert_input.py +325 -0
- flywheel/models/acquisition_upsert_output.py +241 -0
- flywheel/models/{core_models_jobs_api_key_input.py → api_key_input.py} +12 -12
- flywheel/models/config_out.py +28 -1
- flywheel/models/current_user_output.py +8 -7
- flywheel/models/egress_device.py +8 -7
- flywheel/models/features.py +31 -31
- flywheel/models/file_move_input.py +1 -3
- flywheel/models/gear_permissions_input.py +1 -2
- flywheel/models/gear_rule_modify_input.py +491 -0
- flywheel/models/gear_series.py +35 -45
- flywheel/models/job_ask.py +44 -20
- flywheel/models/job_ask_response.py +8 -8
- flywheel/models/job_ask_response_job.py +3 -3
- flywheel/models/job_ask_state_response.py +1 -2
- flywheel/models/job_detail.py +516 -234
- flywheel/models/job_list_output_config.py +3 -3
- flywheel/models/job_output_config.py +3 -3
- flywheel/models/{api_key_output.py → legacy_api_key_output.py} +24 -24
- flywheel/models/page_file_output_.py +217 -0
- flywheel/models/project_hierarchy_input.py +248 -0
- flywheel/models/project_hierarchy_output.py +220 -0
- flywheel/models/project_template_input.py +193 -0
- flywheel/models/{common_object_created.py → project_template_list_input.py} +24 -23
- flywheel/models/provider.py +98 -120
- flywheel/models/{container_output.py → role_input.py} +48 -31
- flywheel/models/role_update.py +192 -0
- flywheel/models/session_upsert_input.py +406 -0
- flywheel/models/session_upsert_output.py +242 -0
- flywheel/models/site.py +31 -4
- flywheel/models/{core_models_api_key_api_key_input.py → stable_api_key_input.py} +8 -8
- flywheel/models/stable_api_key_output.py +270 -0
- flywheel/models/subject_upsert_input.py +516 -0
- flywheel/models/subject_upsert_output.py +215 -0
- flywheel/models/work_in_progress_features.py +163 -0
- flywheel/partial_reader.py +49 -0
- {flywheel_sdk-17.2.0rc0.dist-info → flywheel_sdk-17.3.0rc1.dist-info}/METADATA +1 -1
- {flywheel_sdk-17.2.0rc0.dist-info → flywheel_sdk-17.3.0rc1.dist-info}/RECORD +54 -39
- {flywheel_sdk-17.2.0rc0.dist-info → flywheel_sdk-17.3.0rc1.dist-info}/LICENSE.txt +0 -0
- {flywheel_sdk-17.2.0rc0.dist-info → flywheel_sdk-17.3.0rc1.dist-info}/WHEEL +0 -0
- {flywheel_sdk-17.2.0rc0.dist-info → flywheel_sdk-17.3.0rc1.dist-info}/top_level.txt +0 -0
flywheel/__init__.py
CHANGED
|
@@ -75,6 +75,8 @@ from flywheel.models.acquisition_modify_input import AcquisitionModifyInput
|
|
|
75
75
|
from flywheel.models.acquisition_output import AcquisitionOutput
|
|
76
76
|
from flywheel.models.acquisition_parents import AcquisitionParents
|
|
77
77
|
from flywheel.models.acquisition_template_options import AcquisitionTemplateOptions
|
|
78
|
+
from flywheel.models.acquisition_upsert_input import AcquisitionUpsertInput
|
|
79
|
+
from flywheel.models.acquisition_upsert_output import AcquisitionUpsertOutput
|
|
78
80
|
from flywheel.models.action import Action
|
|
79
81
|
from flywheel.models.adhoc_analysis_input import AdhocAnalysisInput
|
|
80
82
|
from flywheel.models.analysis import Analysis
|
|
@@ -89,7 +91,7 @@ from flywheel.models.analysis_output import AnalysisOutput
|
|
|
89
91
|
from flywheel.models.analysis_output_inflated_job import AnalysisOutputInflatedJob
|
|
90
92
|
from flywheel.models.analysis_parents import AnalysisParents
|
|
91
93
|
from flywheel.models.analysis_update import AnalysisUpdate
|
|
92
|
-
from flywheel.models.
|
|
94
|
+
from flywheel.models.api_key_input import ApiKeyInput
|
|
93
95
|
from flywheel.models.as_storage import AsStorage
|
|
94
96
|
from flywheel.models.audit_trail_report import AuditTrailReport
|
|
95
97
|
from flywheel.models.audit_trail_report_status import AuditTrailReportStatus
|
|
@@ -139,7 +141,6 @@ from flywheel.models.common_info import CommonInfo
|
|
|
139
141
|
from flywheel.models.common_join_origins import CommonJoinOrigins
|
|
140
142
|
from flywheel.models.common_key import CommonKey
|
|
141
143
|
from flywheel.models.common_modified_count import CommonModifiedCount
|
|
142
|
-
from flywheel.models.common_object_created import CommonObjectCreated
|
|
143
144
|
from flywheel.models.common_project_settings import CommonProjectSettings
|
|
144
145
|
from flywheel.models.common_settings import CommonSettings
|
|
145
146
|
from flywheel.models.config_auth_output import ConfigAuthOutput
|
|
@@ -152,7 +153,6 @@ from flywheel.models.config_site_settings_input import ConfigSiteSettingsInput
|
|
|
152
153
|
from flywheel.models.container_delete_reason import ContainerDeleteReason
|
|
153
154
|
from flywheel.models.container_id_view_input import ContainerIdViewInput
|
|
154
155
|
from flywheel.models.container_new_output import ContainerNewOutput
|
|
155
|
-
from flywheel.models.container_output import ContainerOutput
|
|
156
156
|
from flywheel.models.container_output_with_files import ContainerOutputWithFiles
|
|
157
157
|
from flywheel.models.container_parents import ContainerParents
|
|
158
158
|
from flywheel.models.container_project_parents import ContainerProjectParents
|
|
@@ -164,8 +164,6 @@ from flywheel.models.container_type import ContainerType
|
|
|
164
164
|
from flywheel.models.container_uidcheck import ContainerUidcheck
|
|
165
165
|
from flywheel.models.container_update import ContainerUpdate
|
|
166
166
|
from flywheel.models.context_input import ContextInput
|
|
167
|
-
from flywheel.models.core_models_api_key_api_key_input import CoreModelsApiKeyApiKeyInput
|
|
168
|
-
from flywheel.models.core_models_jobs_api_key_input import CoreModelsJobsApiKeyInput
|
|
169
167
|
from flywheel.models.create_report_input import CreateReportInput
|
|
170
168
|
from flywheel.models.creds import Creds
|
|
171
169
|
from flywheel.models.current_user_output import CurrentUserOutput
|
|
@@ -275,6 +273,7 @@ from flywheel.models.gear_rule import GearRule
|
|
|
275
273
|
from flywheel.models.gear_rule_condition import GearRuleCondition
|
|
276
274
|
from flywheel.models.gear_rule_condition_type import GearRuleConditionType
|
|
277
275
|
from flywheel.models.gear_rule_input import GearRuleInput
|
|
276
|
+
from flywheel.models.gear_rule_modify_input import GearRuleModifyInput
|
|
278
277
|
from flywheel.models.gear_save_submission import GearSaveSubmission
|
|
279
278
|
from flywheel.models.gear_series import GearSeries
|
|
280
279
|
from flywheel.models.gear_series_update import GearSeriesUpdate
|
|
@@ -378,6 +377,7 @@ from flywheel.models.ldap_sync_data import LdapSyncData
|
|
|
378
377
|
from flywheel.models.ldap_sync_input import LdapSyncInput
|
|
379
378
|
from flywheel.models.ldap_sync_ldap_user import LdapSyncLdapUser
|
|
380
379
|
from flywheel.models.ldap_sync_status import LdapSyncStatus
|
|
380
|
+
from flywheel.models.legacy_api_key_output import LegacyApiKeyOutput
|
|
381
381
|
from flywheel.models.legacy_input import LegacyInput
|
|
382
382
|
from flywheel.models.local_storage import LocalStorage
|
|
383
383
|
from flywheel.models.location import Location
|
|
@@ -410,6 +410,7 @@ from flywheel.models.packfile_project_input import PackfileProjectInput
|
|
|
410
410
|
from flywheel.models.packfile_session_input import PackfileSessionInput
|
|
411
411
|
from flywheel.models.packfile_start import PackfileStart
|
|
412
412
|
from flywheel.models.page import Page
|
|
413
|
+
from flywheel.models.page_file_output_ import PageFileOutput_
|
|
413
414
|
from flywheel.models.permission_access_permission import PermissionAccessPermission
|
|
414
415
|
from flywheel.models.premade_jobs_batch_proposal import PremadeJobsBatchProposal
|
|
415
416
|
from flywheel.models.premade_jobs_batch_proposal_detail import PremadeJobsBatchProposalDetail
|
|
@@ -427,6 +428,8 @@ from flywheel.models.project_copy_input import ProjectCopyInput
|
|
|
427
428
|
from flywheel.models.project_copy_output import ProjectCopyOutput
|
|
428
429
|
from flywheel.models.project_copy_status import ProjectCopyStatus
|
|
429
430
|
from flywheel.models.project_counters import ProjectCounters
|
|
431
|
+
from flywheel.models.project_hierarchy_input import ProjectHierarchyInput
|
|
432
|
+
from flywheel.models.project_hierarchy_output import ProjectHierarchyOutput
|
|
430
433
|
from flywheel.models.project_hierarchy_upsert_input import ProjectHierarchyUpsertInput
|
|
431
434
|
from flywheel.models.project_hierarchy_upsert_output import ProjectHierarchyUpsertOutput
|
|
432
435
|
from flywheel.models.project_input import ProjectInput
|
|
@@ -458,6 +461,8 @@ from flywheel.models.project_stats import ProjectStats
|
|
|
458
461
|
from flywheel.models.project_subject_upsert_input import ProjectSubjectUpsertInput
|
|
459
462
|
from flywheel.models.project_subject_upsert_output import ProjectSubjectUpsertOutput
|
|
460
463
|
from flywheel.models.project_template import ProjectTemplate
|
|
464
|
+
from flywheel.models.project_template_input import ProjectTemplateInput
|
|
465
|
+
from flywheel.models.project_template_list_input import ProjectTemplateListInput
|
|
461
466
|
from flywheel.models.project_template_requirement import ProjectTemplateRequirement
|
|
462
467
|
from flywheel.models.project_template_session_template import ProjectTemplateSessionTemplate
|
|
463
468
|
from flywheel.models.project_upsert_origin import ProjectUpsertOrigin
|
|
@@ -495,11 +500,13 @@ from flywheel.models.resolver_output import ResolverOutput
|
|
|
495
500
|
from flywheel.models.resolver_project_node import ResolverProjectNode
|
|
496
501
|
from flywheel.models.resolver_session_node import ResolverSessionNode
|
|
497
502
|
from flywheel.models.resolver_subject_node import ResolverSubjectNode
|
|
503
|
+
from flywheel.models.role_input import RoleInput
|
|
498
504
|
from flywheel.models.role_output import RoleOutput
|
|
499
505
|
from flywheel.models.role_permission import RolePermission
|
|
500
506
|
from flywheel.models.role_permission_output import RolePermissionOutput
|
|
501
507
|
from flywheel.models.role_permission_update import RolePermissionUpdate
|
|
502
508
|
from flywheel.models.role_type import RoleType
|
|
509
|
+
from flywheel.models.role_update import RoleUpdate
|
|
503
510
|
from flywheel.models.roles_backwards_compatible_role_assignment import RolesBackwardsCompatibleRoleAssignment
|
|
504
511
|
from flywheel.models.roles_group_role_pool_input import RolesGroupRolePoolInput
|
|
505
512
|
from flywheel.models.roles_role import RolesRole
|
|
@@ -547,12 +554,16 @@ from flywheel.models.session_output import SessionOutput
|
|
|
547
554
|
from flywheel.models.session_parents import SessionParents
|
|
548
555
|
from flywheel.models.session_template_options import SessionTemplateOptions
|
|
549
556
|
from flywheel.models.session_template_recalc_output import SessionTemplateRecalcOutput
|
|
557
|
+
from flywheel.models.session_upsert_input import SessionUpsertInput
|
|
558
|
+
from flywheel.models.session_upsert_output import SessionUpsertOutput
|
|
550
559
|
from flywheel.models.sharing_filter_options import SharingFilterOptions
|
|
551
560
|
from flywheel.models.signed_url_upload_input import SignedUrlUploadInput
|
|
552
561
|
from flywheel.models.signed_url_upload_output import SignedUrlUploadOutput
|
|
553
562
|
from flywheel.models.site import Site
|
|
554
563
|
from flywheel.models.site_settings import SiteSettings
|
|
555
564
|
from flywheel.models.sort import Sort
|
|
565
|
+
from flywheel.models.stable_api_key_input import StableApiKeyInput
|
|
566
|
+
from flywheel.models.stable_api_key_output import StableApiKeyOutput
|
|
556
567
|
from flywheel.models.static_compute import StaticCompute
|
|
557
568
|
from flywheel.models.status_value import StatusValue
|
|
558
569
|
from flywheel.models.storage_strategy import StorageStrategy
|
|
@@ -567,6 +578,8 @@ from flywheel.models.subject_parents import SubjectParents
|
|
|
567
578
|
from flywheel.models.subject_role_permission import SubjectRolePermission
|
|
568
579
|
from flywheel.models.subject_state import SubjectState
|
|
569
580
|
from flywheel.models.subject_template_options import SubjectTemplateOptions
|
|
581
|
+
from flywheel.models.subject_upsert_input import SubjectUpsertInput
|
|
582
|
+
from flywheel.models.subject_upsert_output import SubjectUpsertOutput
|
|
570
583
|
from flywheel.models.tag import Tag
|
|
571
584
|
from flywheel.models.therapeutic_area import TherapeuticArea
|
|
572
585
|
from flywheel.models.transitions import Transitions
|
|
@@ -601,6 +614,7 @@ from flywheel.models.viewer_app import ViewerApp
|
|
|
601
614
|
from flywheel.models.viewer_app_type import ViewerAppType
|
|
602
615
|
from flywheel.models.virus_scan import VirusScan
|
|
603
616
|
from flywheel.models.virus_scan_state import VirusScanState
|
|
617
|
+
from flywheel.models.work_in_progress_features import WorkInProgressFeatures
|
|
604
618
|
from flywheel.models.workspace import Workspace
|
|
605
619
|
from flywheel.models.workspace_origin import WorkspaceOrigin
|
|
606
620
|
from flywheel.models.workspace_output import WorkspaceOutput
|
flywheel/api/analyses_api.py
CHANGED
|
@@ -1460,6 +1460,127 @@ class AnalysesApi(object):
|
|
|
1460
1460
|
_request_out=params.get('_request_out'),
|
|
1461
1461
|
collection_formats=collection_formats)
|
|
1462
1462
|
|
|
1463
|
+
def get_all_analyses(self, **kwargs): # noqa: E501
|
|
1464
|
+
"""Find all analyses
|
|
1465
|
+
|
|
1466
|
+
Returns a page of analyses Args: filter (t.Optional[str]): The filters to apply sort (t.List[Tuple[str,int]): Sorting, as a list of (str, int) tuples limit (t.Optional[int]): The maximum number of entries to return skip (t.Optional[int]): The number of entries to skip page (t.Optional[int]): Page number after_id (t.Optional[str]): Id to return results after Returns: Page: if a above argument is not None
|
|
1467
|
+
This method makes a synchronous HTTP request by default.
|
|
1468
|
+
|
|
1469
|
+
:param bool inflate_job: Return job as an object instead of an id
|
|
1470
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
1471
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
1472
|
+
:param int limit: The maximum number of entries to return.
|
|
1473
|
+
:param int skip: The number of entries to skip.
|
|
1474
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
1475
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
1476
|
+
:param list[str] x_accept_feature:
|
|
1477
|
+
:param bool async_: Perform the request asynchronously
|
|
1478
|
+
:return: union[Page,list[union[AnalysisListOutput,AnalysisListOutputInflatedJob]]]
|
|
1479
|
+
"""
|
|
1480
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1481
|
+
kwargs['_return_http_data_only'] = True
|
|
1482
|
+
|
|
1483
|
+
if kwargs.get('async_'):
|
|
1484
|
+
return self.get_all_analyses_with_http_info(**kwargs) # noqa: E501
|
|
1485
|
+
else:
|
|
1486
|
+
(data) = self.get_all_analyses_with_http_info(**kwargs) # noqa: E501
|
|
1487
|
+
if (
|
|
1488
|
+
data
|
|
1489
|
+
and hasattr(data, 'return_value')
|
|
1490
|
+
and not ignore_simplified_return_value
|
|
1491
|
+
):
|
|
1492
|
+
return data.return_value()
|
|
1493
|
+
return data
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
def get_all_analyses_with_http_info(self, **kwargs): # noqa: E501
|
|
1497
|
+
"""Find all analyses
|
|
1498
|
+
|
|
1499
|
+
Returns a page of analyses Args: filter (t.Optional[str]): The filters to apply sort (t.List[Tuple[str,int]): Sorting, as a list of (str, int) tuples limit (t.Optional[int]): The maximum number of entries to return skip (t.Optional[int]): The number of entries to skip page (t.Optional[int]): Page number after_id (t.Optional[str]): Id to return results after Returns: Page: if a above argument is not None
|
|
1500
|
+
This method makes a synchronous HTTP request by default.
|
|
1501
|
+
|
|
1502
|
+
:param bool inflate_job: Return job as an object instead of an id
|
|
1503
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
1504
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
1505
|
+
:param int limit: The maximum number of entries to return.
|
|
1506
|
+
:param int skip: The number of entries to skip.
|
|
1507
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
1508
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
1509
|
+
:param list[str] x_accept_feature:
|
|
1510
|
+
:param bool async: Perform the request asynchronously
|
|
1511
|
+
:return: union[Page,list[union[AnalysisListOutput,AnalysisListOutputInflatedJob]]]
|
|
1512
|
+
"""
|
|
1513
|
+
|
|
1514
|
+
all_params = ['inflate_job','filter','sort','limit','skip','page','after_id','x_accept_feature',] # noqa: E501
|
|
1515
|
+
all_params.append('async_')
|
|
1516
|
+
all_params.append('_return_http_data_only')
|
|
1517
|
+
all_params.append('_preload_content')
|
|
1518
|
+
all_params.append('_request_timeout')
|
|
1519
|
+
all_params.append('_request_out')
|
|
1520
|
+
|
|
1521
|
+
params = locals()
|
|
1522
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1523
|
+
if key not in all_params:
|
|
1524
|
+
raise TypeError(
|
|
1525
|
+
"Got an unexpected keyword argument '%s'"
|
|
1526
|
+
" to method get_all_analyses" % key
|
|
1527
|
+
)
|
|
1528
|
+
params[key] = val
|
|
1529
|
+
del params['kwargs']
|
|
1530
|
+
|
|
1531
|
+
collection_formats = {}
|
|
1532
|
+
|
|
1533
|
+
path_params = {}
|
|
1534
|
+
|
|
1535
|
+
query_params = []
|
|
1536
|
+
if 'inflate_job' in params:
|
|
1537
|
+
query_params.append(('inflate_job', params['inflate_job'])) # noqa: E501
|
|
1538
|
+
if 'filter' in params:
|
|
1539
|
+
query_params.append(('filter', params['filter'])) # noqa: E501
|
|
1540
|
+
if 'sort' in params:
|
|
1541
|
+
query_params.append(('sort', params['sort'])) # noqa: E501
|
|
1542
|
+
if 'limit' in params:
|
|
1543
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1544
|
+
if 'skip' in params:
|
|
1545
|
+
query_params.append(('skip', params['skip'])) # noqa: E501
|
|
1546
|
+
if 'page' in params:
|
|
1547
|
+
query_params.append(('page', params['page'])) # noqa: E501
|
|
1548
|
+
if 'after_id' in params:
|
|
1549
|
+
query_params.append(('after_id', params['after_id'])) # noqa: E501
|
|
1550
|
+
|
|
1551
|
+
header_params = {}
|
|
1552
|
+
if 'x_accept_feature' in params:
|
|
1553
|
+
header_params['x-accept-feature'] = params['x_accept_feature'] # noqa: E501
|
|
1554
|
+
collection_formats['x-accept-feature'] = '' # noqa: E501
|
|
1555
|
+
|
|
1556
|
+
form_params = []
|
|
1557
|
+
local_var_files = {}
|
|
1558
|
+
|
|
1559
|
+
body_params = None
|
|
1560
|
+
# HTTP header `Accept`
|
|
1561
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1562
|
+
['application/json']) # noqa: E501
|
|
1563
|
+
|
|
1564
|
+
# Authentication setting
|
|
1565
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1566
|
+
|
|
1567
|
+
return self.api_client.call_api(
|
|
1568
|
+
'/analyses', 'GET',
|
|
1569
|
+
path_params,
|
|
1570
|
+
query_params,
|
|
1571
|
+
header_params,
|
|
1572
|
+
body=body_params,
|
|
1573
|
+
post_params=form_params,
|
|
1574
|
+
files=local_var_files,
|
|
1575
|
+
response_type='union[Page,list[union[AnalysisListOutput,AnalysisListOutputInflatedJob]]]', # noqa: E501
|
|
1576
|
+
auth_settings=auth_settings,
|
|
1577
|
+
async_=params.get('async_'),
|
|
1578
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1579
|
+
_preload_content=params.get('_preload_content', True),
|
|
1580
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1581
|
+
_request_out=params.get('_request_out'),
|
|
1582
|
+
collection_formats=collection_formats)
|
|
1583
|
+
|
|
1463
1584
|
def get_analyses(self, container_name, container_id, subcontainer_name, **kwargs): # noqa: E501
|
|
1464
1585
|
"""Get nested analyses for a container
|
|
1465
1586
|
|
|
@@ -2479,8 +2600,10 @@ class AnalysesApi(object):
|
|
|
2479
2600
|
:param str container_id: (required)
|
|
2480
2601
|
:param str file: The file to upload (required)
|
|
2481
2602
|
:param str ticket:
|
|
2603
|
+
:param bool preserve_metadata:
|
|
2482
2604
|
:param ContainerType level:
|
|
2483
2605
|
:param str job:
|
|
2606
|
+
:param list[str] x_accept_feature: redirect header
|
|
2484
2607
|
:param str content_type:
|
|
2485
2608
|
:param bool async_: Perform the request asynchronously
|
|
2486
2609
|
:return: None
|
|
@@ -2510,14 +2633,16 @@ class AnalysesApi(object):
|
|
|
2510
2633
|
:param str container_id: (required)
|
|
2511
2634
|
:param str file: The file to upload (required)
|
|
2512
2635
|
:param str ticket:
|
|
2636
|
+
:param bool preserve_metadata:
|
|
2513
2637
|
:param ContainerType level:
|
|
2514
2638
|
:param str job:
|
|
2639
|
+
:param list[str] x_accept_feature: redirect header
|
|
2515
2640
|
:param str content_type:
|
|
2516
2641
|
:param bool async: Perform the request asynchronously
|
|
2517
2642
|
:return: None
|
|
2518
2643
|
"""
|
|
2519
2644
|
|
|
2520
|
-
all_params = ['container_id','file','ticket','level','job','content_type',] # noqa: E501
|
|
2645
|
+
all_params = ['container_id','file','ticket','preserve_metadata','level','job','x_accept_feature','content_type',] # noqa: E501
|
|
2521
2646
|
all_params.append('async_')
|
|
2522
2647
|
all_params.append('_return_http_data_only')
|
|
2523
2648
|
all_params.append('_preload_content')
|
|
@@ -2551,12 +2676,17 @@ class AnalysesApi(object):
|
|
|
2551
2676
|
query_params = []
|
|
2552
2677
|
if 'ticket' in params:
|
|
2553
2678
|
query_params.append(('ticket', params['ticket'])) # noqa: E501
|
|
2679
|
+
if 'preserve_metadata' in params:
|
|
2680
|
+
query_params.append(('preserve_metadata', params['preserve_metadata'])) # noqa: E501
|
|
2554
2681
|
if 'level' in params:
|
|
2555
2682
|
query_params.append(('level', params['level'])) # noqa: E501
|
|
2556
2683
|
if 'job' in params:
|
|
2557
2684
|
query_params.append(('job', params['job'])) # noqa: E501
|
|
2558
2685
|
|
|
2559
2686
|
header_params = {}
|
|
2687
|
+
if 'x_accept_feature' in params:
|
|
2688
|
+
header_params['x-accept-feature'] = params['x_accept_feature'] # noqa: E501
|
|
2689
|
+
collection_formats['x-accept-feature'] = '' # noqa: E501
|
|
2560
2690
|
if 'content_type' in params:
|
|
2561
2691
|
header_params['content-type'] = params['content_type'] # noqa: E501
|
|
2562
2692
|
|
flywheel/api/files_api.py
CHANGED
|
@@ -572,6 +572,118 @@ class FilesApi(object):
|
|
|
572
572
|
_request_out=params.get('_request_out'),
|
|
573
573
|
collection_formats=collection_formats)
|
|
574
574
|
|
|
575
|
+
def get_all_files(self, **kwargs): # noqa: E501
|
|
576
|
+
"""Return all files
|
|
577
|
+
|
|
578
|
+
Get metadata of all current user files
|
|
579
|
+
This method makes a synchronous HTTP request by default.
|
|
580
|
+
|
|
581
|
+
:param str filter:
|
|
582
|
+
:param str sort:
|
|
583
|
+
:param int limit:
|
|
584
|
+
:param int skip:
|
|
585
|
+
:param int page:
|
|
586
|
+
:param str after_id:
|
|
587
|
+
:param bool async_: Perform the request asynchronously
|
|
588
|
+
:return: PageFileOutput_
|
|
589
|
+
"""
|
|
590
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
591
|
+
kwargs['_return_http_data_only'] = True
|
|
592
|
+
|
|
593
|
+
if kwargs.get('async_'):
|
|
594
|
+
return self.get_all_files_with_http_info(**kwargs) # noqa: E501
|
|
595
|
+
else:
|
|
596
|
+
(data) = self.get_all_files_with_http_info(**kwargs) # noqa: E501
|
|
597
|
+
if (
|
|
598
|
+
data
|
|
599
|
+
and hasattr(data, 'return_value')
|
|
600
|
+
and not ignore_simplified_return_value
|
|
601
|
+
):
|
|
602
|
+
return data.return_value()
|
|
603
|
+
return data
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
def get_all_files_with_http_info(self, **kwargs): # noqa: E501
|
|
607
|
+
"""Return all files
|
|
608
|
+
|
|
609
|
+
Get metadata of all current user files
|
|
610
|
+
This method makes a synchronous HTTP request by default.
|
|
611
|
+
|
|
612
|
+
:param str filter:
|
|
613
|
+
:param str sort:
|
|
614
|
+
:param int limit:
|
|
615
|
+
:param int skip:
|
|
616
|
+
:param int page:
|
|
617
|
+
:param str after_id:
|
|
618
|
+
:param bool async: Perform the request asynchronously
|
|
619
|
+
:return: PageFileOutput_
|
|
620
|
+
"""
|
|
621
|
+
|
|
622
|
+
all_params = ['filter','sort','limit','skip','page','after_id',] # noqa: E501
|
|
623
|
+
all_params.append('async_')
|
|
624
|
+
all_params.append('_return_http_data_only')
|
|
625
|
+
all_params.append('_preload_content')
|
|
626
|
+
all_params.append('_request_timeout')
|
|
627
|
+
all_params.append('_request_out')
|
|
628
|
+
|
|
629
|
+
params = locals()
|
|
630
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
631
|
+
if key not in all_params:
|
|
632
|
+
raise TypeError(
|
|
633
|
+
"Got an unexpected keyword argument '%s'"
|
|
634
|
+
" to method get_all_files" % key
|
|
635
|
+
)
|
|
636
|
+
params[key] = val
|
|
637
|
+
del params['kwargs']
|
|
638
|
+
|
|
639
|
+
collection_formats = {}
|
|
640
|
+
|
|
641
|
+
path_params = {}
|
|
642
|
+
|
|
643
|
+
query_params = []
|
|
644
|
+
if 'filter' in params:
|
|
645
|
+
query_params.append(('filter', params['filter'])) # noqa: E501
|
|
646
|
+
if 'sort' in params:
|
|
647
|
+
query_params.append(('sort', params['sort'])) # noqa: E501
|
|
648
|
+
if 'limit' in params:
|
|
649
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
650
|
+
if 'skip' in params:
|
|
651
|
+
query_params.append(('skip', params['skip'])) # noqa: E501
|
|
652
|
+
if 'page' in params:
|
|
653
|
+
query_params.append(('page', params['page'])) # noqa: E501
|
|
654
|
+
if 'after_id' in params:
|
|
655
|
+
query_params.append(('after_id', params['after_id'])) # noqa: E501
|
|
656
|
+
|
|
657
|
+
header_params = {}
|
|
658
|
+
|
|
659
|
+
form_params = []
|
|
660
|
+
local_var_files = {}
|
|
661
|
+
|
|
662
|
+
body_params = None
|
|
663
|
+
# HTTP header `Accept`
|
|
664
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
665
|
+
['application/json']) # noqa: E501
|
|
666
|
+
|
|
667
|
+
# Authentication setting
|
|
668
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
669
|
+
|
|
670
|
+
return self.api_client.call_api(
|
|
671
|
+
'/files', 'GET',
|
|
672
|
+
path_params,
|
|
673
|
+
query_params,
|
|
674
|
+
header_params,
|
|
675
|
+
body=body_params,
|
|
676
|
+
post_params=form_params,
|
|
677
|
+
files=local_var_files,
|
|
678
|
+
response_type='PageFileOutput_', # noqa: E501
|
|
679
|
+
auth_settings=auth_settings,
|
|
680
|
+
async_=params.get('async_'),
|
|
681
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
682
|
+
_preload_content=params.get('_preload_content', True),
|
|
683
|
+
_request_timeout=params.get('_request_timeout'),
|
|
684
|
+
_request_out=params.get('_request_out'),
|
|
685
|
+
collection_formats=collection_formats)
|
|
686
|
+
|
|
575
687
|
def get_file(self, file_id, **kwargs): # noqa: E501
|
|
576
688
|
"""Get File
|
|
577
689
|
|
flywheel/api/groups_api.py
CHANGED
|
@@ -1016,11 +1016,12 @@ class GroupsApi(object):
|
|
|
1016
1016
|
def get_all_group_roles(self, group_id, **kwargs): # noqa: E501
|
|
1017
1017
|
"""Get list of group roles
|
|
1018
1018
|
|
|
1019
|
+
Gets all group roles
|
|
1019
1020
|
This method makes a synchronous HTTP request by default.
|
|
1020
1021
|
|
|
1021
1022
|
:param str group_id: (required)
|
|
1022
1023
|
:param bool async_: Perform the request asynchronously
|
|
1023
|
-
:return: list[
|
|
1024
|
+
:return: list[RoleOutput]
|
|
1024
1025
|
"""
|
|
1025
1026
|
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1026
1027
|
kwargs['_return_http_data_only'] = True
|
|
@@ -1041,11 +1042,12 @@ class GroupsApi(object):
|
|
|
1041
1042
|
def get_all_group_roles_with_http_info(self, group_id, **kwargs): # noqa: E501
|
|
1042
1043
|
"""Get list of group roles
|
|
1043
1044
|
|
|
1045
|
+
Gets all group roles
|
|
1044
1046
|
This method makes a synchronous HTTP request by default.
|
|
1045
1047
|
|
|
1046
1048
|
:param str group_id: (required)
|
|
1047
1049
|
:param bool async: Perform the request asynchronously
|
|
1048
|
-
:return: list[
|
|
1050
|
+
:return: list[RoleOutput]
|
|
1049
1051
|
"""
|
|
1050
1052
|
|
|
1051
1053
|
all_params = ['group_id',] # noqa: E501
|
|
@@ -1073,7 +1075,7 @@ class GroupsApi(object):
|
|
|
1073
1075
|
|
|
1074
1076
|
path_params = {}
|
|
1075
1077
|
if 'group_id' in params:
|
|
1076
|
-
path_params['
|
|
1078
|
+
path_params['group_id'] = params['group_id'] # noqa: E501
|
|
1077
1079
|
|
|
1078
1080
|
query_params = []
|
|
1079
1081
|
|
|
@@ -1091,14 +1093,14 @@ class GroupsApi(object):
|
|
|
1091
1093
|
auth_settings = ['ApiKey'] # noqa: E501
|
|
1092
1094
|
|
|
1093
1095
|
return self.api_client.call_api(
|
|
1094
|
-
'/groups/{
|
|
1096
|
+
'/groups/{group_id}/roles', 'GET',
|
|
1095
1097
|
path_params,
|
|
1096
1098
|
query_params,
|
|
1097
1099
|
header_params,
|
|
1098
1100
|
body=body_params,
|
|
1099
1101
|
post_params=form_params,
|
|
1100
1102
|
files=local_var_files,
|
|
1101
|
-
response_type='list[
|
|
1103
|
+
response_type='list[RoleOutput]', # noqa: E501
|
|
1102
1104
|
auth_settings=auth_settings,
|
|
1103
1105
|
async_=params.get('async_'),
|
|
1104
1106
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -1456,12 +1458,13 @@ class GroupsApi(object):
|
|
|
1456
1458
|
def get_group_role(self, group_id, role_id, **kwargs): # noqa: E501
|
|
1457
1459
|
"""Return the role identified by the RoleId
|
|
1458
1460
|
|
|
1461
|
+
Get a group role.
|
|
1459
1462
|
This method makes a synchronous HTTP request by default.
|
|
1460
1463
|
|
|
1461
1464
|
:param str group_id: (required)
|
|
1462
1465
|
:param str role_id: (required)
|
|
1463
1466
|
:param bool async_: Perform the request asynchronously
|
|
1464
|
-
:return:
|
|
1467
|
+
:return: RoleOutput
|
|
1465
1468
|
"""
|
|
1466
1469
|
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1467
1470
|
kwargs['_return_http_data_only'] = True
|
|
@@ -1482,12 +1485,13 @@ class GroupsApi(object):
|
|
|
1482
1485
|
def get_group_role_with_http_info(self, group_id, role_id, **kwargs): # noqa: E501
|
|
1483
1486
|
"""Return the role identified by the RoleId
|
|
1484
1487
|
|
|
1488
|
+
Get a group role.
|
|
1485
1489
|
This method makes a synchronous HTTP request by default.
|
|
1486
1490
|
|
|
1487
1491
|
:param str group_id: (required)
|
|
1488
1492
|
:param str role_id: (required)
|
|
1489
1493
|
:param bool async: Perform the request asynchronously
|
|
1490
|
-
:return:
|
|
1494
|
+
:return: RoleOutput
|
|
1491
1495
|
"""
|
|
1492
1496
|
|
|
1493
1497
|
all_params = ['group_id','role_id',] # noqa: E501
|
|
@@ -1519,9 +1523,9 @@ class GroupsApi(object):
|
|
|
1519
1523
|
|
|
1520
1524
|
path_params = {}
|
|
1521
1525
|
if 'group_id' in params:
|
|
1522
|
-
path_params['
|
|
1526
|
+
path_params['group_id'] = params['group_id'] # noqa: E501
|
|
1523
1527
|
if 'role_id' in params:
|
|
1524
|
-
path_params['
|
|
1528
|
+
path_params['role_id'] = params['role_id'] # noqa: E501
|
|
1525
1529
|
|
|
1526
1530
|
query_params = []
|
|
1527
1531
|
|
|
@@ -1539,14 +1543,14 @@ class GroupsApi(object):
|
|
|
1539
1543
|
auth_settings = ['ApiKey'] # noqa: E501
|
|
1540
1544
|
|
|
1541
1545
|
return self.api_client.call_api(
|
|
1542
|
-
'/groups/{
|
|
1546
|
+
'/groups/{group_id}/roles/{role_id}', 'GET',
|
|
1543
1547
|
path_params,
|
|
1544
1548
|
query_params,
|
|
1545
1549
|
header_params,
|
|
1546
1550
|
body=body_params,
|
|
1547
1551
|
post_params=form_params,
|
|
1548
1552
|
files=local_var_files,
|
|
1549
|
-
response_type='
|
|
1553
|
+
response_type='RoleOutput', # noqa: E501
|
|
1550
1554
|
auth_settings=auth_settings,
|
|
1551
1555
|
async_=params.get('async_'),
|
|
1552
1556
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -2235,6 +2239,7 @@ class GroupsApi(object):
|
|
|
2235
2239
|
def remove_role_from_group(self, group_id, role_id, **kwargs): # noqa: E501
|
|
2236
2240
|
"""Remove the role from the group
|
|
2237
2241
|
|
|
2242
|
+
Delete a group role.
|
|
2238
2243
|
This method makes a synchronous HTTP request by default.
|
|
2239
2244
|
|
|
2240
2245
|
:param str group_id: (required)
|
|
@@ -2261,6 +2266,7 @@ class GroupsApi(object):
|
|
|
2261
2266
|
def remove_role_from_group_with_http_info(self, group_id, role_id, **kwargs): # noqa: E501
|
|
2262
2267
|
"""Remove the role from the group
|
|
2263
2268
|
|
|
2269
|
+
Delete a group role.
|
|
2264
2270
|
This method makes a synchronous HTTP request by default.
|
|
2265
2271
|
|
|
2266
2272
|
:param str group_id: (required)
|
|
@@ -2298,9 +2304,9 @@ class GroupsApi(object):
|
|
|
2298
2304
|
|
|
2299
2305
|
path_params = {}
|
|
2300
2306
|
if 'group_id' in params:
|
|
2301
|
-
path_params['
|
|
2307
|
+
path_params['group_id'] = params['group_id'] # noqa: E501
|
|
2302
2308
|
if 'role_id' in params:
|
|
2303
|
-
path_params['
|
|
2309
|
+
path_params['role_id'] = params['role_id'] # noqa: E501
|
|
2304
2310
|
|
|
2305
2311
|
query_params = []
|
|
2306
2312
|
|
|
@@ -2310,11 +2316,15 @@ class GroupsApi(object):
|
|
|
2310
2316
|
local_var_files = {}
|
|
2311
2317
|
|
|
2312
2318
|
body_params = None
|
|
2319
|
+
# HTTP header `Accept`
|
|
2320
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2321
|
+
['application/json']) # noqa: E501
|
|
2322
|
+
|
|
2313
2323
|
# Authentication setting
|
|
2314
2324
|
auth_settings = ['ApiKey'] # noqa: E501
|
|
2315
2325
|
|
|
2316
2326
|
return self.api_client.call_api(
|
|
2317
|
-
'/groups/{
|
|
2327
|
+
'/groups/{group_id}/roles/{role_id}', 'DELETE',
|
|
2318
2328
|
path_params,
|
|
2319
2329
|
query_params,
|
|
2320
2330
|
header_params,
|