flywheel-sdk 21.0.0rc0__py2.py3-none-any.whl → 21.1.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 +51 -3
- flywheel/api/__init__.py +5 -0
- flywheel/api/audit_trail_api.py +8 -8
- flywheel/api/container_tasks_api.py +137 -0
- flywheel/api/form_responses_api.py +579 -0
- flywheel/api/jobs_api.py +97 -0
- flywheel/api/protocols_api.py +757 -0
- flywheel/api/staffing_pools_api.py +677 -0
- flywheel/api/tasks_api.py +897 -0
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/flywheel.py +369 -3
- flywheel/models/__init__.py +47 -4
- flywheel/models/action.py +3 -0
- flywheel/models/assignee.py +190 -0
- flywheel/models/assignee_type.py +28 -0
- flywheel/models/batch_create_filters.py +218 -0
- flywheel/models/{create_report_input.py → core_models_audit_trail_create_report_input.py} +24 -24
- flywheel/models/{modify_report_input.py → core_models_audit_trail_modify_report_input.py} +8 -8
- flywheel/models/{parent_type.py → core_models_search_parent_type.py} +1 -1
- flywheel/models/core_workflows_form_responses_models_form_parents.py +162 -0
- flywheel/models/core_workflows_form_responses_models_form_response_output.py +438 -0
- flywheel/models/core_workflows_reader_models_reader_task_parents.py +268 -0
- flywheel/models/current_user_output.py +31 -4
- flywheel/models/custom_field.py +404 -0
- flywheel/models/custom_form.py +242 -0
- flywheel/models/e_signature.py +241 -0
- flywheel/models/field_type.py +35 -0
- flywheel/models/form_response_base.py +310 -0
- flywheel/models/form_response_create.py +192 -0
- flywheel/models/libs_workflows_models_parent_type.py +31 -0
- flywheel/models/libs_workflows_models_task_status.py +31 -0
- flywheel/models/modify_user_input.py +31 -4
- flywheel/models/page_generic_form_response_output.py +217 -0
- flywheel/models/page_generic_protocol.py +242 -0
- flywheel/models/page_generic_reader_task_output.py +242 -0
- flywheel/models/page_generic_staffing_pool.py +242 -0
- flywheel/models/protocol.py +511 -0
- flywheel/models/protocol_e_signature_config.py +190 -0
- flywheel/models/protocol_input.py +352 -0
- flywheel/models/protocol_modify.py +275 -0
- flywheel/models/protocol_status.py +29 -0
- flywheel/models/reader_batch_create.py +460 -0
- flywheel/models/reader_task.py +723 -0
- flywheel/models/reader_task_config.py +188 -0
- flywheel/models/reader_task_create.py +541 -0
- flywheel/models/reader_task_modify.py +274 -0
- flywheel/models/reader_task_output.py +750 -0
- flywheel/models/reader_task_parent_details.py +295 -0
- flywheel/models/save_search_parent.py +4 -4
- flywheel/models/select_item.py +189 -0
- flywheel/models/staffing_pool.py +322 -0
- flywheel/models/staffing_pool_create.py +215 -0
- flywheel/models/staffing_pool_list.py +163 -0
- flywheel/models/staffing_pool_modify.py +217 -0
- flywheel/models/status_transitions.py +244 -0
- flywheel/models/task_assign.py +192 -0
- flywheel/models/task_facet.py +28 -0
- flywheel/models/task_parent_ref.py +243 -0
- flywheel/models/task_parent_ref_input.py +217 -0
- flywheel/models/task_priority.py +30 -0
- flywheel/models/task_submission.py +188 -0
- flywheel/models/user_input.py +31 -4
- flywheel/models/validation_rule.py +189 -0
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/METADATA +1 -1
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/RECORD +69 -21
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/WHEEL +0 -0
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-21.0.0rc0.dist-info → flywheel_sdk-21.1.0rc0.dist-info}/top_level.txt +0 -0
flywheel/__init__.py
CHANGED
|
@@ -28,6 +28,7 @@ from flywheel.api.bulk_api import BulkApi
|
|
|
28
28
|
from flywheel.api.change_log_api import ChangeLogApi
|
|
29
29
|
from flywheel.api.collections_api import CollectionsApi
|
|
30
30
|
from flywheel.api.config_api import ConfigApi
|
|
31
|
+
from flywheel.api.container_tasks_api import ContainerTasksApi
|
|
31
32
|
from flywheel.api.container_type_api import ContainerTypeApi
|
|
32
33
|
from flywheel.api.containers_api import ContainersApi
|
|
33
34
|
from flywheel.api.custom_filters_api import CustomFiltersApi
|
|
@@ -37,6 +38,7 @@ from flywheel.api.devices_api import DevicesApi
|
|
|
37
38
|
from flywheel.api.dimse_api import DimseApi
|
|
38
39
|
from flywheel.api.download_api import DownloadApi
|
|
39
40
|
from flywheel.api.files_api import FilesApi
|
|
41
|
+
from flywheel.api.form_responses_api import FormResponsesApi
|
|
40
42
|
from flywheel.api.gears_api import GearsApi
|
|
41
43
|
from flywheel.api.groups_api import GroupsApi
|
|
42
44
|
from flywheel.api.jobs_api import JobsApi
|
|
@@ -44,12 +46,15 @@ from flywheel.api.jupyterlab_servers_api import JupyterlabServersApi
|
|
|
44
46
|
from flywheel.api.modalities_api import ModalitiesApi
|
|
45
47
|
from flywheel.api.packfiles_api import PackfilesApi
|
|
46
48
|
from flywheel.api.projects_api import ProjectsApi
|
|
49
|
+
from flywheel.api.protocols_api import ProtocolsApi
|
|
47
50
|
from flywheel.api.reports_api import ReportsApi
|
|
48
51
|
from flywheel.api.resolve_api import ResolveApi
|
|
49
52
|
from flywheel.api.roles_api import RolesApi
|
|
50
53
|
from flywheel.api.sessions_api import SessionsApi
|
|
51
54
|
from flywheel.api.site_api import SiteApi
|
|
55
|
+
from flywheel.api.staffing_pools_api import StaffingPoolsApi
|
|
52
56
|
from flywheel.api.subjects_api import SubjectsApi
|
|
57
|
+
from flywheel.api.tasks_api import TasksApi
|
|
53
58
|
from flywheel.api.tree_api import TreeApi
|
|
54
59
|
from flywheel.api.uids_api import UidsApi
|
|
55
60
|
from flywheel.api.upload_api import UploadApi
|
|
@@ -104,6 +109,8 @@ from flywheel.models.analysis_update import AnalysisUpdate
|
|
|
104
109
|
from flywheel.models.api_key_input_with_optional_label import ApiKeyInputWithOptionalLabel
|
|
105
110
|
from flywheel.models.api_key_output import ApiKeyOutput
|
|
106
111
|
from flywheel.models.as_storage import AsStorage
|
|
112
|
+
from flywheel.models.assignee import Assignee
|
|
113
|
+
from flywheel.models.assignee_type import AssigneeType
|
|
107
114
|
from flywheel.models.audit_trail_report import AuditTrailReport
|
|
108
115
|
from flywheel.models.audit_trail_report_status import AuditTrailReportStatus
|
|
109
116
|
from flywheel.models.auth0_auth_out import Auth0AuthOut
|
|
@@ -118,6 +125,7 @@ from flywheel.models.base_aet import BaseAET
|
|
|
118
125
|
from flywheel.models.base_compute import BaseCompute
|
|
119
126
|
from flywheel.models.batch import Batch
|
|
120
127
|
from flywheel.models.batch_cancel_output import BatchCancelOutput
|
|
128
|
+
from flywheel.models.batch_create_filters import BatchCreateFilters
|
|
121
129
|
from flywheel.models.batch_job_analysis_input import BatchJobAnalysisInput
|
|
122
130
|
from flywheel.models.batch_jobs_proposal_input import BatchJobsProposalInput
|
|
123
131
|
from flywheel.models.batch_proposal import BatchProposal
|
|
@@ -203,12 +211,19 @@ from flywheel.models.context_input import ContextInput
|
|
|
203
211
|
from flywheel.models.copy_filter import CopyFilter
|
|
204
212
|
from flywheel.models.copy_status import CopyStatus
|
|
205
213
|
from flywheel.models.core_models_api_key_api_key_input import CoreModelsApiKeyApiKeyInput
|
|
214
|
+
from flywheel.models.core_models_audit_trail_create_report_input import CoreModelsAuditTrailCreateReportInput
|
|
215
|
+
from flywheel.models.core_models_audit_trail_modify_report_input import CoreModelsAuditTrailModifyReportInput
|
|
206
216
|
from flywheel.models.core_models_common_source import CoreModelsCommonSource
|
|
207
217
|
from flywheel.models.core_models_jobs_api_key_input import CoreModelsJobsApiKeyInput
|
|
208
|
-
from flywheel.models.
|
|
218
|
+
from flywheel.models.core_models_search_parent_type import CoreModelsSearchParentType
|
|
219
|
+
from flywheel.models.core_workflows_form_responses_models_form_parents import CoreWorkflowsFormResponsesModelsFormParents
|
|
220
|
+
from flywheel.models.core_workflows_form_responses_models_form_response_output import CoreWorkflowsFormResponsesModelsFormResponseOutput
|
|
221
|
+
from flywheel.models.core_workflows_reader_models_reader_task_parents import CoreWorkflowsReaderModelsReaderTaskParents
|
|
209
222
|
from flywheel.models.creds import Creds
|
|
210
223
|
from flywheel.models.curator import Curator
|
|
211
224
|
from flywheel.models.current_user_output import CurrentUserOutput
|
|
225
|
+
from flywheel.models.custom_field import CustomField
|
|
226
|
+
from flywheel.models.custom_form import CustomForm
|
|
212
227
|
from flywheel.models.daily_report_usage import DailyReportUsage
|
|
213
228
|
from flywheel.models.data_strategy import DataStrategy
|
|
214
229
|
from flywheel.models.data_view import DataView
|
|
@@ -255,6 +270,7 @@ from flywheel.models.download_strategy import DownloadStrategy
|
|
|
255
270
|
from flywheel.models.download_ticket import DownloadTicket
|
|
256
271
|
from flywheel.models.download_ticket_stub import DownloadTicketStub
|
|
257
272
|
from flywheel.models.download_ticket_with_summary import DownloadTicketWithSummary
|
|
273
|
+
from flywheel.models.e_signature import ESignature
|
|
258
274
|
from flywheel.models.edition import Edition
|
|
259
275
|
from flywheel.models.egress_device import EgressDevice
|
|
260
276
|
from flywheel.models.egress_device_page import EgressDevicePage
|
|
@@ -266,6 +282,7 @@ from flywheel.models.export_templates import ExportTemplates
|
|
|
266
282
|
from flywheel.models.features import Features
|
|
267
283
|
from flywheel.models.field_change import FieldChange
|
|
268
284
|
from flywheel.models.field_change_log_document import FieldChangeLogDocument
|
|
285
|
+
from flywheel.models.field_type import FieldType
|
|
269
286
|
from flywheel.models.file import File
|
|
270
287
|
from flywheel.models.file_classification_delta import FileClassificationDelta
|
|
271
288
|
from flywheel.models.file_container_type import FileContainerType
|
|
@@ -301,6 +318,8 @@ from flywheel.models.filter_view import FilterView
|
|
|
301
318
|
from flywheel.models.fixed_file_version_input import FixedFileVersionInput
|
|
302
319
|
from flywheel.models.fixed_input import FixedInput
|
|
303
320
|
from flywheel.models.form_definition import FormDefinition
|
|
321
|
+
from flywheel.models.form_response_base import FormResponseBase
|
|
322
|
+
from flywheel.models.form_response_create import FormResponseCreate
|
|
304
323
|
from flywheel.models.gcp_creds import GcpCreds
|
|
305
324
|
from flywheel.models.gcp_storage import GcpStorage
|
|
306
325
|
from flywheel.models.gear import Gear
|
|
@@ -456,6 +475,8 @@ from flywheel.models.legacy_api_key_output import LegacyApiKeyOutput
|
|
|
456
475
|
from flywheel.models.legacy_input import LegacyInput
|
|
457
476
|
from flywheel.models.legacy_usage_report import LegacyUsageReport
|
|
458
477
|
from flywheel.models.legacys_usage_project_entry import LegacysUsageProjectEntry
|
|
478
|
+
from flywheel.models.libs_workflows_models_parent_type import LibsWorkflowsModelsParentType
|
|
479
|
+
from flywheel.models.libs_workflows_models_task_status import LibsWorkflowsModelsTaskStatus
|
|
459
480
|
from flywheel.models.local_storage import LocalStorage
|
|
460
481
|
from flywheel.models.location import Location
|
|
461
482
|
from flywheel.models.locked import Locked
|
|
@@ -472,7 +493,6 @@ from flywheel.models.modality_input import ModalityInput
|
|
|
472
493
|
from flywheel.models.modality_modify import ModalityModify
|
|
473
494
|
from flywheel.models.modality_output import ModalityOutput
|
|
474
495
|
from flywheel.models.modified_result import ModifiedResult
|
|
475
|
-
from flywheel.models.modify_report_input import ModifyReportInput
|
|
476
496
|
from flywheel.models.modify_user_input import ModifyUserInput
|
|
477
497
|
from flywheel.models.move_conflict import MoveConflict
|
|
478
498
|
from flywheel.models.note import Note
|
|
@@ -489,7 +509,10 @@ from flywheel.models.packfile_removed_output import PackfileRemovedOutput
|
|
|
489
509
|
from flywheel.models.page import Page
|
|
490
510
|
from flywheel.models.page_generic_file_output import PageGenericFileOutput
|
|
491
511
|
from flywheel.models.page_generic_filter import PageGenericFilter
|
|
492
|
-
from flywheel.models.
|
|
512
|
+
from flywheel.models.page_generic_form_response_output import PageGenericFormResponseOutput
|
|
513
|
+
from flywheel.models.page_generic_protocol import PageGenericProtocol
|
|
514
|
+
from flywheel.models.page_generic_reader_task_output import PageGenericReaderTaskOutput
|
|
515
|
+
from flywheel.models.page_generic_staffing_pool import PageGenericStaffingPool
|
|
493
516
|
from flywheel.models.parsed_query_response import ParsedQueryResponse
|
|
494
517
|
from flywheel.models.permission_access_permission import PermissionAccessPermission
|
|
495
518
|
from flywheel.models.premade_jobs_batch_job_output import PremadeJobsBatchJobOutput
|
|
@@ -548,6 +571,11 @@ from flywheel.models.project_template_list_input import ProjectTemplateListInput
|
|
|
548
571
|
from flywheel.models.project_template_requirement import ProjectTemplateRequirement
|
|
549
572
|
from flywheel.models.project_template_session_template import ProjectTemplateSessionTemplate
|
|
550
573
|
from flywheel.models.project_upsert_origin import ProjectUpsertOrigin
|
|
574
|
+
from flywheel.models.protocol import Protocol
|
|
575
|
+
from flywheel.models.protocol_e_signature_config import ProtocolESignatureConfig
|
|
576
|
+
from flywheel.models.protocol_input import ProtocolInput
|
|
577
|
+
from flywheel.models.protocol_modify import ProtocolModify
|
|
578
|
+
from flywheel.models.protocol_status import ProtocolStatus
|
|
551
579
|
from flywheel.models.provider import Provider
|
|
552
580
|
from flywheel.models.provider_access_type import ProviderAccessType
|
|
553
581
|
from flywheel.models.provider_class import ProviderClass
|
|
@@ -556,6 +584,13 @@ from flywheel.models.provider_input import ProviderInput
|
|
|
556
584
|
from flywheel.models.provider_links import ProviderLinks
|
|
557
585
|
from flywheel.models.provider_type import ProviderType
|
|
558
586
|
from flywheel.models.providers import Providers
|
|
587
|
+
from flywheel.models.reader_batch_create import ReaderBatchCreate
|
|
588
|
+
from flywheel.models.reader_task import ReaderTask
|
|
589
|
+
from flywheel.models.reader_task_config import ReaderTaskConfig
|
|
590
|
+
from flywheel.models.reader_task_create import ReaderTaskCreate
|
|
591
|
+
from flywheel.models.reader_task_modify import ReaderTaskModify
|
|
592
|
+
from flywheel.models.reader_task_output import ReaderTaskOutput
|
|
593
|
+
from flywheel.models.reader_task_parent_details import ReaderTaskParentDetails
|
|
559
594
|
from flywheel.models.report_access_log_context import ReportAccessLogContext
|
|
560
595
|
from flywheel.models.report_access_log_context_entry import ReportAccessLogContextEntry
|
|
561
596
|
from flywheel.models.report_access_log_context_file_entry import ReportAccessLogContextFileEntry
|
|
@@ -637,6 +672,7 @@ from flywheel.models.search_status import SearchStatus
|
|
|
637
672
|
from flywheel.models.search_structured_search_query import SearchStructuredSearchQuery
|
|
638
673
|
from flywheel.models.search_subject_response import SearchSubjectResponse
|
|
639
674
|
from flywheel.models.search_suggestion import SearchSuggestion
|
|
675
|
+
from flywheel.models.select_item import SelectItem
|
|
640
676
|
from flywheel.models.server_state import ServerState
|
|
641
677
|
from flywheel.models.service_aet import ServiceAET
|
|
642
678
|
from flywheel.models.service_aet_input import ServiceAETInput
|
|
@@ -665,8 +701,13 @@ from flywheel.models.site_report import SiteReport
|
|
|
665
701
|
from flywheel.models.site_settings import SiteSettings
|
|
666
702
|
from flywheel.models.sort import Sort
|
|
667
703
|
from flywheel.models.stable_api_key_input import StableApiKeyInput
|
|
704
|
+
from flywheel.models.staffing_pool import StaffingPool
|
|
705
|
+
from flywheel.models.staffing_pool_create import StaffingPoolCreate
|
|
706
|
+
from flywheel.models.staffing_pool_list import StaffingPoolList
|
|
707
|
+
from flywheel.models.staffing_pool_modify import StaffingPoolModify
|
|
668
708
|
from flywheel.models.state import State
|
|
669
709
|
from flywheel.models.static_compute import StaticCompute
|
|
710
|
+
from flywheel.models.status_transitions import StatusTransitions
|
|
670
711
|
from flywheel.models.status_type import StatusType
|
|
671
712
|
from flywheel.models.status_value import StatusValue
|
|
672
713
|
from flywheel.models.storage_strategy import StorageStrategy
|
|
@@ -690,6 +731,12 @@ from flywheel.models.subject_upsert_input import SubjectUpsertInput
|
|
|
690
731
|
from flywheel.models.subject_upsert_output import SubjectUpsertOutput
|
|
691
732
|
from flywheel.models.sync_user_input import SyncUserInput
|
|
692
733
|
from flywheel.models.tag import Tag
|
|
734
|
+
from flywheel.models.task_assign import TaskAssign
|
|
735
|
+
from flywheel.models.task_facet import TaskFacet
|
|
736
|
+
from flywheel.models.task_parent_ref import TaskParentRef
|
|
737
|
+
from flywheel.models.task_parent_ref_input import TaskParentRefInput
|
|
738
|
+
from flywheel.models.task_priority import TaskPriority
|
|
739
|
+
from flywheel.models.task_submission import TaskSubmission
|
|
693
740
|
from flywheel.models.therapeutic_area import TherapeuticArea
|
|
694
741
|
from flywheel.models.transitions import Transitions
|
|
695
742
|
from flywheel.models.tree_container_request_spec import TreeContainerRequestSpec
|
|
@@ -721,6 +768,7 @@ from flywheel.models.user_output_id import UserOutputId
|
|
|
721
768
|
from flywheel.models.user_preferences import UserPreferences
|
|
722
769
|
from flywheel.models.user_wechat import UserWechat
|
|
723
770
|
from flywheel.models.validation_error import ValidationError
|
|
771
|
+
from flywheel.models.validation_rule import ValidationRule
|
|
724
772
|
from flywheel.models.version import Version
|
|
725
773
|
from flywheel.models.version_output import VersionOutput
|
|
726
774
|
from flywheel.models.view_id_output import ViewIdOutput
|
flywheel/api/__init__.py
CHANGED
|
@@ -12,6 +12,7 @@ from flywheel.api.bulk_api import BulkApi
|
|
|
12
12
|
from flywheel.api.change_log_api import ChangeLogApi
|
|
13
13
|
from flywheel.api.collections_api import CollectionsApi
|
|
14
14
|
from flywheel.api.config_api import ConfigApi
|
|
15
|
+
from flywheel.api.container_tasks_api import ContainerTasksApi
|
|
15
16
|
from flywheel.api.container_type_api import ContainerTypeApi
|
|
16
17
|
from flywheel.api.containers_api import ContainersApi
|
|
17
18
|
from flywheel.api.custom_filters_api import CustomFiltersApi
|
|
@@ -21,6 +22,7 @@ from flywheel.api.devices_api import DevicesApi
|
|
|
21
22
|
from flywheel.api.dimse_api import DimseApi
|
|
22
23
|
from flywheel.api.download_api import DownloadApi
|
|
23
24
|
from flywheel.api.files_api import FilesApi
|
|
25
|
+
from flywheel.api.form_responses_api import FormResponsesApi
|
|
24
26
|
from flywheel.api.gears_api import GearsApi
|
|
25
27
|
from flywheel.api.groups_api import GroupsApi
|
|
26
28
|
from flywheel.api.jobs_api import JobsApi
|
|
@@ -28,12 +30,15 @@ from flywheel.api.jupyterlab_servers_api import JupyterlabServersApi
|
|
|
28
30
|
from flywheel.api.modalities_api import ModalitiesApi
|
|
29
31
|
from flywheel.api.packfiles_api import PackfilesApi
|
|
30
32
|
from flywheel.api.projects_api import ProjectsApi
|
|
33
|
+
from flywheel.api.protocols_api import ProtocolsApi
|
|
31
34
|
from flywheel.api.reports_api import ReportsApi
|
|
32
35
|
from flywheel.api.resolve_api import ResolveApi
|
|
33
36
|
from flywheel.api.roles_api import RolesApi
|
|
34
37
|
from flywheel.api.sessions_api import SessionsApi
|
|
35
38
|
from flywheel.api.site_api import SiteApi
|
|
39
|
+
from flywheel.api.staffing_pools_api import StaffingPoolsApi
|
|
36
40
|
from flywheel.api.subjects_api import SubjectsApi
|
|
41
|
+
from flywheel.api.tasks_api import TasksApi
|
|
37
42
|
from flywheel.api.tree_api import TreeApi
|
|
38
43
|
from flywheel.api.uids_api import UidsApi
|
|
39
44
|
from flywheel.api.upload_api import UploadApi
|
flywheel/api/audit_trail_api.py
CHANGED
|
@@ -37,7 +37,7 @@ class AuditTrailApi(object):
|
|
|
37
37
|
Start generation of a new Audit Trail Report.
|
|
38
38
|
This method makes a synchronous HTTP request by default.
|
|
39
39
|
|
|
40
|
-
:param
|
|
40
|
+
:param CoreModelsAuditTrailCreateReportInput body: (required)
|
|
41
41
|
:param bool async_: Perform the request asynchronously
|
|
42
42
|
:return: AuditTrailReport
|
|
43
43
|
"""
|
|
@@ -63,7 +63,7 @@ class AuditTrailApi(object):
|
|
|
63
63
|
Start generation of a new Audit Trail Report.
|
|
64
64
|
This method makes a synchronous HTTP request by default.
|
|
65
65
|
|
|
66
|
-
:param
|
|
66
|
+
:param CoreModelsAuditTrailCreateReportInput body: (required)
|
|
67
67
|
:param bool async_: Perform the request asynchronously
|
|
68
68
|
:return: AuditTrailReport
|
|
69
69
|
"""
|
|
@@ -103,14 +103,14 @@ class AuditTrailApi(object):
|
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
105
|
if 'body' in params:
|
|
106
|
-
if '
|
|
106
|
+
if 'CoreModelsAuditTrailCreateReportInput'.startswith('union'):
|
|
107
107
|
body_type = type(params['body'])
|
|
108
108
|
if getattr(body_type, 'positional_to_model', None):
|
|
109
109
|
body_params = body_type.positional_to_model(params['body'])
|
|
110
110
|
else:
|
|
111
111
|
body_params = params['body']
|
|
112
112
|
else:
|
|
113
|
-
body_params = flywheel.models.
|
|
113
|
+
body_params = flywheel.models.CoreModelsAuditTrailCreateReportInput.positional_to_model(params['body'])
|
|
114
114
|
# HTTP header `Accept`
|
|
115
115
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
116
116
|
['application/json']) # noqa: E501
|
|
@@ -458,7 +458,7 @@ class AuditTrailApi(object):
|
|
|
458
458
|
This method makes a synchronous HTTP request by default.
|
|
459
459
|
|
|
460
460
|
:param str report_id: (required)
|
|
461
|
-
:param
|
|
461
|
+
:param CoreModelsAuditTrailModifyReportInput body: (required)
|
|
462
462
|
:param bool async_: Perform the request asynchronously
|
|
463
463
|
:return: AuditTrailReport
|
|
464
464
|
"""
|
|
@@ -485,7 +485,7 @@ class AuditTrailApi(object):
|
|
|
485
485
|
This method makes a synchronous HTTP request by default.
|
|
486
486
|
|
|
487
487
|
:param str report_id: (required)
|
|
488
|
-
:param
|
|
488
|
+
:param CoreModelsAuditTrailModifyReportInput body: (required)
|
|
489
489
|
:param bool async_: Perform the request asynchronously
|
|
490
490
|
:return: AuditTrailReport
|
|
491
491
|
"""
|
|
@@ -531,14 +531,14 @@ class AuditTrailApi(object):
|
|
|
531
531
|
|
|
532
532
|
body_params = None
|
|
533
533
|
if 'body' in params:
|
|
534
|
-
if '
|
|
534
|
+
if 'CoreModelsAuditTrailModifyReportInput'.startswith('union'):
|
|
535
535
|
body_type = type(params['body'])
|
|
536
536
|
if getattr(body_type, 'positional_to_model', None):
|
|
537
537
|
body_params = body_type.positional_to_model(params['body'])
|
|
538
538
|
else:
|
|
539
539
|
body_params = params['body']
|
|
540
540
|
else:
|
|
541
|
-
body_params = flywheel.models.
|
|
541
|
+
body_params = flywheel.models.CoreModelsAuditTrailModifyReportInput.positional_to_model(params['body'])
|
|
542
542
|
# HTTP header `Accept`
|
|
543
543
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
544
544
|
['application/json']) # noqa: E501
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Flywheel
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 0.0.1
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from __future__ import absolute_import
|
|
15
|
+
|
|
16
|
+
import re # noqa: F401
|
|
17
|
+
|
|
18
|
+
# python 2 and python 3 compatibility library
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
from flywheel.api_client import ApiClient
|
|
22
|
+
import flywheel.models
|
|
23
|
+
from flywheel.util import check_filename_params
|
|
24
|
+
|
|
25
|
+
# NOTE: This file is auto generated by the swagger code generator program.
|
|
26
|
+
# Do not edit the class manually.
|
|
27
|
+
|
|
28
|
+
class ContainerTasksApi(object):
|
|
29
|
+
def __init__(self, api_client=None):
|
|
30
|
+
if api_client is None:
|
|
31
|
+
api_client = ApiClient()
|
|
32
|
+
self.api_client = api_client
|
|
33
|
+
|
|
34
|
+
def get_task_parent_container_ids(self, ids, container_type, **kwargs): # noqa: E501
|
|
35
|
+
"""Get Task Parent Container Ids
|
|
36
|
+
|
|
37
|
+
Get the list of container IDs that have tasks associated with them.
|
|
38
|
+
This method makes a synchronous HTTP request by default.
|
|
39
|
+
|
|
40
|
+
:param str ids: Comma separated list of container IDs (required)
|
|
41
|
+
:param ContainerType container_type: (required)
|
|
42
|
+
:param bool async_: Perform the request asynchronously
|
|
43
|
+
:return: list[str]
|
|
44
|
+
"""
|
|
45
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
46
|
+
kwargs['_return_http_data_only'] = True
|
|
47
|
+
|
|
48
|
+
if kwargs.get('async_'):
|
|
49
|
+
return self.get_task_parent_container_ids_with_http_info(ids, container_type, **kwargs) # noqa: E501
|
|
50
|
+
else:
|
|
51
|
+
(data) = self.get_task_parent_container_ids_with_http_info(ids, container_type, **kwargs) # noqa: E501
|
|
52
|
+
if (
|
|
53
|
+
data
|
|
54
|
+
and hasattr(data, 'return_value')
|
|
55
|
+
and not ignore_simplified_return_value
|
|
56
|
+
):
|
|
57
|
+
return data.return_value()
|
|
58
|
+
return data
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def get_task_parent_container_ids_with_http_info(self, ids, container_type, **kwargs): # noqa: E501
|
|
62
|
+
"""Get Task Parent Container Ids
|
|
63
|
+
|
|
64
|
+
Get the list of container IDs that have tasks associated with them.
|
|
65
|
+
This method makes a synchronous HTTP request by default.
|
|
66
|
+
|
|
67
|
+
:param str ids: Comma separated list of container IDs (required)
|
|
68
|
+
:param ContainerType container_type: (required)
|
|
69
|
+
:param bool async_: Perform the request asynchronously
|
|
70
|
+
:return: list[str]
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['ids','container_type',] # noqa: E501
|
|
74
|
+
all_params.append('async_')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
all_params.append('_request_out')
|
|
79
|
+
|
|
80
|
+
params = locals()
|
|
81
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
82
|
+
if key not in all_params:
|
|
83
|
+
raise TypeError(
|
|
84
|
+
"Got an unexpected keyword argument '%s'"
|
|
85
|
+
" to method get_task_parent_container_ids" % key
|
|
86
|
+
)
|
|
87
|
+
params[key] = val
|
|
88
|
+
del params['kwargs']
|
|
89
|
+
# verify the required parameter 'ids' is set
|
|
90
|
+
if ('ids' not in params or
|
|
91
|
+
params['ids'] is None):
|
|
92
|
+
raise ValueError("Missing the required parameter `ids` when calling `get_task_parent_container_ids`") # noqa: E501
|
|
93
|
+
# verify the required parameter 'container_type' is set
|
|
94
|
+
if ('container_type' not in params or
|
|
95
|
+
params['container_type'] is None):
|
|
96
|
+
raise ValueError("Missing the required parameter `container_type` when calling `get_task_parent_container_ids`") # noqa: E501
|
|
97
|
+
check_filename_params(params)
|
|
98
|
+
|
|
99
|
+
collection_formats = {}
|
|
100
|
+
|
|
101
|
+
path_params = {}
|
|
102
|
+
if 'container_type' in params:
|
|
103
|
+
path_params['container_type'] = params['container_type'] # noqa: E501
|
|
104
|
+
|
|
105
|
+
query_params = []
|
|
106
|
+
if 'ids' in params:
|
|
107
|
+
query_params.append(('ids', params['ids'])) # noqa: E501
|
|
108
|
+
|
|
109
|
+
header_params = {}
|
|
110
|
+
|
|
111
|
+
form_params = []
|
|
112
|
+
local_var_files = {}
|
|
113
|
+
|
|
114
|
+
body_params = None
|
|
115
|
+
# HTTP header `Accept`
|
|
116
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
117
|
+
['application/json']) # noqa: E501
|
|
118
|
+
|
|
119
|
+
# Authentication setting
|
|
120
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
121
|
+
|
|
122
|
+
return self.api_client.call_api(
|
|
123
|
+
'/tasks/{container_type}s/ids', 'GET',
|
|
124
|
+
path_params,
|
|
125
|
+
query_params,
|
|
126
|
+
header_params,
|
|
127
|
+
body=body_params,
|
|
128
|
+
post_params=form_params,
|
|
129
|
+
files=local_var_files,
|
|
130
|
+
response_type='list[str]', # noqa: E501
|
|
131
|
+
auth_settings=auth_settings,
|
|
132
|
+
async_=params.get('async_'),
|
|
133
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
134
|
+
_preload_content=params.get('_preload_content', True),
|
|
135
|
+
_request_timeout=params.get('_request_timeout'),
|
|
136
|
+
_request_out=params.get('_request_out'),
|
|
137
|
+
collection_formats=collection_formats)
|