flywheel-sdk 21.2.0rc0__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 +784 -0
- flywheel/api/__init__.py +46 -0
- flywheel/api/acquisitions_api.py +5014 -0
- flywheel/api/analyses_api.py +3848 -0
- flywheel/api/audit_trail_api.py +568 -0
- flywheel/api/auth_api.py +121 -0
- flywheel/api/batch_api.py +630 -0
- flywheel/api/bulk_api.py +140 -0
- flywheel/api/change_log_api.py +254 -0
- flywheel/api/collections_api.py +3913 -0
- flywheel/api/config_api.py +299 -0
- flywheel/api/container_tasks_api.py +137 -0
- flywheel/api/container_type_api.py +137 -0
- flywheel/api/containers_api.py +4784 -0
- flywheel/api/custom_filters_api.py +466 -0
- flywheel/api/data_view_executions_api.py +549 -0
- flywheel/api/dataexplorer_api.py +1192 -0
- flywheel/api/devices_api.py +1071 -0
- flywheel/api/dimse_api.py +814 -0
- flywheel/api/download_api.py +261 -0
- flywheel/api/files_api.py +1868 -0
- flywheel/api/form_responses_api.py +703 -0
- flywheel/api/gears_api.py +1875 -0
- flywheel/api/groups_api.py +2829 -0
- flywheel/api/jobs_api.py +2320 -0
- flywheel/api/jupyterlab_servers_api.py +245 -0
- flywheel/api/modalities_api.py +562 -0
- flywheel/api/packfiles_api.py +121 -0
- flywheel/api/projects_api.py +7820 -0
- flywheel/api/protocols_api.py +757 -0
- flywheel/api/reports_api.py +1057 -0
- flywheel/api/resolve_api.py +276 -0
- flywheel/api/roles_api.py +563 -0
- flywheel/api/sessions_api.py +5296 -0
- flywheel/api/site_api.py +1552 -0
- flywheel/api/staffing_pools_api.py +677 -0
- flywheel/api/subjects_api.py +5349 -0
- flywheel/api/tasks_api.py +897 -0
- flywheel/api/tree_api.py +266 -0
- flywheel/api/uids_api.py +140 -0
- flywheel/api/upload_api.py +842 -0
- flywheel/api/users_api.py +2142 -0
- flywheel/api/views_api.py +1089 -0
- flywheel/api_client.py +748 -0
- flywheel/client.py +291 -0
- flywheel/configuration.py +308 -0
- flywheel/drone_login.py +65 -0
- flywheel/file_spec.py +67 -0
- flywheel/finder.py +168 -0
- flywheel/flywheel.py +9867 -0
- flywheel/gear_context.py +374 -0
- flywheel/models/__init__.py +726 -0
- flywheel/models/access_level.py +30 -0
- flywheel/models/access_permission.py +197 -0
- flywheel/models/access_permission_output.py +192 -0
- flywheel/models/access_permission_update.py +166 -0
- flywheel/models/access_type.py +54 -0
- flywheel/models/accumulator.py +33 -0
- flywheel/models/acquisition.py +25 -0
- flywheel/models/acquisition_container_output.py +34 -0
- flywheel/models/acquisition_copy_input.py +223 -0
- flywheel/models/acquisition_input.py +297 -0
- flywheel/models/acquisition_list_output.py +767 -0
- flywheel/models/acquisition_modify_input.py +299 -0
- flywheel/models/acquisition_node.py +35 -0
- flywheel/models/acquisition_output.py +767 -0
- flywheel/models/acquisition_parents.py +241 -0
- flywheel/models/acquisition_template_options.py +275 -0
- flywheel/models/acquisition_upsert_input.py +383 -0
- flywheel/models/acquisition_upsert_output.py +243 -0
- flywheel/models/action.py +91 -0
- flywheel/models/adhoc_analysis_input.py +247 -0
- flywheel/models/analysis.py +25 -0
- flywheel/models/analysis_container_output.py +34 -0
- flywheel/models/analysis_files_create_ticket_output.py +241 -0
- flywheel/models/analysis_input.py +310 -0
- flywheel/models/analysis_input_legacy.py +25 -0
- flywheel/models/analysis_list_output.py +680 -0
- flywheel/models/analysis_list_output_inflated_job.py +650 -0
- flywheel/models/analysis_modify_input.py +191 -0
- flywheel/models/analysis_node.py +35 -0
- flywheel/models/analysis_output.py +683 -0
- flywheel/models/analysis_output_inflated_job.py +674 -0
- flywheel/models/analysis_parents.py +270 -0
- flywheel/models/analysis_update.py +25 -0
- flywheel/models/api_key_input_with_optional_label.py +191 -0
- flywheel/models/api_key_output.py +297 -0
- flywheel/models/as_storage.py +298 -0
- flywheel/models/assignee.py +192 -0
- flywheel/models/assignee_type.py +29 -0
- flywheel/models/audit_trail_report.py +486 -0
- flywheel/models/audit_trail_report_status.py +32 -0
- flywheel/models/auth0_auth_out.py +323 -0
- flywheel/models/auth0_options_out.py +319 -0
- flywheel/models/auth_out.py +357 -0
- flywheel/models/auth_session_output.py +272 -0
- flywheel/models/avatars.py +218 -0
- flywheel/models/aws_creds.py +191 -0
- flywheel/models/aws_storage.py +354 -0
- flywheel/models/azure_creds.py +190 -0
- flywheel/models/base_aet.py +245 -0
- flywheel/models/base_compute.py +426 -0
- flywheel/models/batch.py +360 -0
- flywheel/models/batch_cancel_output.py +36 -0
- flywheel/models/batch_create_filters.py +220 -0
- flywheel/models/batch_job_analysis_input.py +281 -0
- flywheel/models/batch_jobs_proposal_input.py +36 -0
- flywheel/models/batch_proposal.py +25 -0
- flywheel/models/batch_proposal_detail.py +36 -0
- flywheel/models/batch_proposal_input.py +25 -0
- flywheel/models/body.py +36 -0
- flywheel/models/body_regenerate_key_api_devices_device_id_key_post.py +25 -0
- flywheel/models/body_region.py +46 -0
- flywheel/models/bookmark.py +189 -0
- flywheel/models/bulk_move_input.py +272 -0
- flywheel/models/bulk_move_sessions.py +25 -0
- flywheel/models/callbacks_virus_scan_input.py +36 -0
- flywheel/models/cancelled_batch_output.py +163 -0
- flywheel/models/catalog_list_output.py +407 -0
- flywheel/models/central_out.py +299 -0
- flywheel/models/change.py +379 -0
- flywheel/models/change_log_container_type.py +38 -0
- flywheel/models/change_log_document.py +245 -0
- flywheel/models/change_method.py +33 -0
- flywheel/models/classic_batch_job_output.py +352 -0
- flywheel/models/classic_batch_job_output_inflated_jobs.py +379 -0
- flywheel/models/classic_batch_proposal_input.py +388 -0
- flywheel/models/classic_batch_proposal_output.py +471 -0
- flywheel/models/classification_add_delete.py +36 -0
- flywheel/models/classification_replace.py +36 -0
- flywheel/models/classification_update_input.py +36 -0
- flywheel/models/cohort.py +29 -0
- flywheel/models/collection.py +25 -0
- flywheel/models/collection_container_output.py +32 -0
- flywheel/models/collection_input.py +217 -0
- flywheel/models/collection_input_with_contents.py +248 -0
- flywheel/models/collection_node.py +192 -0
- flywheel/models/collection_node_level.py +31 -0
- flywheel/models/collection_operation.py +193 -0
- flywheel/models/collection_operation_type.py +29 -0
- flywheel/models/collection_output.py +639 -0
- flywheel/models/collection_with_stats.py +637 -0
- flywheel/models/column.py +286 -0
- flywheel/models/column_type.py +32 -0
- flywheel/models/common_classification.py +135 -0
- flywheel/models/common_deleted_count.py +25 -0
- flywheel/models/common_editions.py +25 -0
- flywheel/models/common_info.py +135 -0
- flywheel/models/common_join_origins.py +25 -0
- flywheel/models/common_key.py +36 -0
- flywheel/models/common_modified_count.py +25 -0
- flywheel/models/common_object_created.py +36 -0
- flywheel/models/common_project_settings.py +25 -0
- flywheel/models/common_settings.py +36 -0
- flywheel/models/complete_multipart_upload_output.py +189 -0
- flywheel/models/complete_s3_multipart_upload_input.py +241 -0
- flywheel/models/config_feature_map.py +36 -0
- flywheel/models/config_out.py +381 -0
- flywheel/models/config_output.py +36 -0
- flywheel/models/config_site_config_output.py +36 -0
- flywheel/models/config_site_settings.py +36 -0
- flywheel/models/config_site_settings_input.py +36 -0
- flywheel/models/conflict_types.py +30 -0
- flywheel/models/container_delete_reason.py +39 -0
- flywheel/models/container_filter.py +193 -0
- flywheel/models/container_id_view_input.py +521 -0
- flywheel/models/container_id_view_input_execute_and_save.py +308 -0
- flywheel/models/container_modify.py +536 -0
- flywheel/models/container_new_output.py +25 -0
- flywheel/models/container_node_min.py +350 -0
- flywheel/models/container_output.py +36 -0
- flywheel/models/container_output_with_files.py +283 -0
- flywheel/models/container_parents.py +311 -0
- flywheel/models/container_pipeline_input.py +536 -0
- flywheel/models/container_project_parents.py +25 -0
- flywheel/models/container_reference.py +193 -0
- flywheel/models/container_reference_with_label.py +219 -0
- flywheel/models/container_session_parents.py +25 -0
- flywheel/models/container_subject_parents.py +25 -0
- flywheel/models/container_type.py +39 -0
- flywheel/models/container_uidcheck.py +253 -0
- flywheel/models/container_update.py +135 -0
- flywheel/models/context_input.py +217 -0
- flywheel/models/copy_filter.py +299 -0
- flywheel/models/copy_status.py +32 -0
- flywheel/models/core_models_api_key_api_key_input.py +190 -0
- flywheel/models/core_models_audit_trail_create_report_input.py +273 -0
- flywheel/models/core_models_audit_trail_modify_report_input.py +167 -0
- flywheel/models/core_models_common_source.py +189 -0
- flywheel/models/core_models_jobs_api_key_input.py +191 -0
- flywheel/models/core_models_search_parent_type.py +33 -0
- flywheel/models/core_workflows_form_responses_models_form_parents.py +163 -0
- flywheel/models/core_workflows_form_responses_models_form_response_output.py +440 -0
- flywheel/models/core_workflows_reader_models_reader_task_parents.py +295 -0
- flywheel/models/creds.py +135 -0
- flywheel/models/curator.py +221 -0
- flywheel/models/current_user_output.py +707 -0
- flywheel/models/custom_field.py +437 -0
- flywheel/models/custom_form.py +244 -0
- flywheel/models/cvat_info.py +275 -0
- flywheel/models/cvat_settings.py +272 -0
- flywheel/models/cvat_settings_input.py +272 -0
- flywheel/models/cvat_sync_state.py +30 -0
- flywheel/models/daily_report_usage.py +565 -0
- flywheel/models/data_strategy.py +29 -0
- flywheel/models/data_view.py +25 -0
- flywheel/models/data_view_analysis_file_spec.py +221 -0
- flywheel/models/data_view_analysis_filter_spec.py +221 -0
- flywheel/models/data_view_column_alias.py +337 -0
- flywheel/models/data_view_column_spec.py +286 -0
- flywheel/models/data_view_execution.py +505 -0
- flywheel/models/data_view_execution_state.py +31 -0
- flywheel/models/data_view_file_spec.py +392 -0
- flywheel/models/data_view_group_by.py +166 -0
- flywheel/models/data_view_group_by_column.py +194 -0
- flywheel/models/data_view_name_filter_spec.py +194 -0
- flywheel/models/data_view_output.py +25 -0
- flywheel/models/data_view_save_data_view_input.py +25 -0
- flywheel/models/data_view_zip_filter_spec.py +223 -0
- flywheel/models/default_flywheel_role.py +30 -0
- flywheel/models/deid_log_skip_reason.py +29 -0
- flywheel/models/delete_by_search_query.py +253 -0
- flywheel/models/deleted_file.py +514 -0
- flywheel/models/deleted_result.py +194 -0
- flywheel/models/deprecated_action.py +29 -0
- flywheel/models/destination_container_type.py +30 -0
- flywheel/models/device.py +437 -0
- flywheel/models/device_admin_update.py +194 -0
- flywheel/models/device_create.py +219 -0
- flywheel/models/device_self_update.py +272 -0
- flywheel/models/device_status.py +36 -0
- flywheel/models/device_status_entry.py +221 -0
- flywheel/models/device_storage_strategy_update.py +193 -0
- flywheel/models/dimse_project_input.py +36 -0
- flywheel/models/dimse_project_output.py +36 -0
- flywheel/models/dimse_service_input.py +36 -0
- flywheel/models/dimse_service_output.py +36 -0
- flywheel/models/download.py +249 -0
- flywheel/models/download_container_filter.py +167 -0
- flywheel/models/download_container_filter_definition.py +222 -0
- flywheel/models/download_filter.py +221 -0
- flywheel/models/download_filter_definition.py +195 -0
- flywheel/models/download_format.py +29 -0
- flywheel/models/download_input.py +25 -0
- flywheel/models/download_node.py +189 -0
- flywheel/models/download_strategy.py +31 -0
- flywheel/models/download_ticket.py +36 -0
- flywheel/models/download_ticket_stub.py +249 -0
- flywheel/models/download_ticket_with_summary.py +36 -0
- flywheel/models/e_signature.py +242 -0
- flywheel/models/edition.py +169 -0
- flywheel/models/egress_device.py +597 -0
- flywheel/models/egress_device_page.py +219 -0
- flywheel/models/egress_provider.py +408 -0
- flywheel/models/egress_provider_id.py +164 -0
- flywheel/models/exchange_storage.py +243 -0
- flywheel/models/executor_info.py +353 -0
- flywheel/models/export_templates.py +195 -0
- flywheel/models/features.py +1838 -0
- flywheel/models/field_change.py +271 -0
- flywheel/models/field_change_log_document.py +245 -0
- flywheel/models/field_type.py +37 -0
- flywheel/models/file.py +1139 -0
- flywheel/models/file_classification_delta.py +245 -0
- flywheel/models/file_container_type.py +34 -0
- flywheel/models/file_entry.py +740 -0
- flywheel/models/file_export_templates.py +272 -0
- flywheel/models/file_format.py +33 -0
- flywheel/models/file_gear_info.py +215 -0
- flywheel/models/file_group.py +29 -0
- flywheel/models/file_list_output.py +1115 -0
- flywheel/models/file_modify_input.py +191 -0
- flywheel/models/file_move_input.py +221 -0
- flywheel/models/file_node.py +1138 -0
- flywheel/models/file_node_min.py +321 -0
- flywheel/models/file_origin.py +283 -0
- flywheel/models/file_output.py +1135 -0
- flywheel/models/file_parents.py +297 -0
- flywheel/models/file_reference.py +221 -0
- flywheel/models/file_suggestion.py +241 -0
- flywheel/models/file_template_options.py +299 -0
- flywheel/models/file_upsert_input.py +612 -0
- flywheel/models/file_upsert_origin.py +36 -0
- flywheel/models/file_upsert_output.py +1154 -0
- flywheel/models/file_version.py +190 -0
- flywheel/models/file_version_copy_of.py +273 -0
- flywheel/models/file_version_output.py +325 -0
- flywheel/models/file_via.py +245 -0
- flywheel/models/file_zip_entry.py +25 -0
- flywheel/models/file_zip_info.py +25 -0
- flywheel/models/filter.py +350 -0
- flywheel/models/filter_input.py +218 -0
- flywheel/models/filter_values.py +195 -0
- flywheel/models/filter_view.py +28 -0
- flywheel/models/fixed_file_version_input.py +216 -0
- flywheel/models/fixed_input.py +299 -0
- flywheel/models/form_definition.py +163 -0
- flywheel/models/form_response_base.py +311 -0
- flywheel/models/form_response_create.py +193 -0
- flywheel/models/gcp_creds.py +397 -0
- flywheel/models/gcp_storage.py +298 -0
- flywheel/models/gear.py +619 -0
- flywheel/models/gear_category.py +32 -0
- flywheel/models/gear_config.py +138 -0
- flywheel/models/gear_context_input.py +164 -0
- flywheel/models/gear_context_lookup.py +25 -0
- flywheel/models/gear_context_lookup_item.py +36 -0
- flywheel/models/gear_context_value_output.py +272 -0
- flywheel/models/gear_context_value_output_unfound.py +164 -0
- flywheel/models/gear_custom.py +135 -0
- flywheel/models/gear_directive.py +135 -0
- flywheel/models/gear_doc.py +25 -0
- flywheel/models/gear_document.py +332 -0
- flywheel/models/gear_document_input.py +303 -0
- flywheel/models/gear_document_legacy_input.py +302 -0
- flywheel/models/gear_environment.py +135 -0
- flywheel/models/gear_exchange.py +221 -0
- flywheel/models/gear_file_input.py +192 -0
- flywheel/models/gear_id_output.py +170 -0
- flywheel/models/gear_info.py +251 -0
- flywheel/models/gear_input_item.py +231 -0
- flywheel/models/gear_inputs.py +140 -0
- flywheel/models/gear_invocation.py +138 -0
- flywheel/models/gear_key_input.py +191 -0
- flywheel/models/gear_manifest.py +624 -0
- flywheel/models/gear_mixin.py +218 -0
- flywheel/models/gear_node.py +355 -0
- flywheel/models/gear_output_configuration.py +164 -0
- flywheel/models/gear_permissions.py +191 -0
- flywheel/models/gear_permissions_input.py +163 -0
- flywheel/models/gear_permissions_type.py +29 -0
- flywheel/models/gear_return_ticket.py +25 -0
- flywheel/models/gear_rule.py +653 -0
- flywheel/models/gear_rule_condition.py +219 -0
- flywheel/models/gear_rule_condition_type.py +37 -0
- flywheel/models/gear_rule_input.py +517 -0
- flywheel/models/gear_rule_modify_input.py +492 -0
- flywheel/models/gear_rule_output.py +652 -0
- flywheel/models/gear_save_submission.py +221 -0
- flywheel/models/gear_series.py +298 -0
- flywheel/models/gear_series_update.py +163 -0
- flywheel/models/gear_suggestion_output.py +301 -0
- flywheel/models/gear_ticket.py +245 -0
- flywheel/models/gear_ticket_output.py +163 -0
- flywheel/models/google_auth_out.py +299 -0
- flywheel/models/graph_filter.py +329 -0
- flywheel/models/group.py +25 -0
- flywheel/models/group_by.py +163 -0
- flywheel/models/group_by_column.py +36 -0
- flywheel/models/group_container_output.py +33 -0
- flywheel/models/group_input.py +248 -0
- flywheel/models/group_metadata_input.py +36 -0
- flywheel/models/group_node.py +34 -0
- flywheel/models/group_output.py +471 -0
- flywheel/models/group_report.py +218 -0
- flywheel/models/group_role.py +163 -0
- flywheel/models/group_settings_output.py +249 -0
- flywheel/models/group_update.py +249 -0
- flywheel/models/header_feature.py +37 -0
- flywheel/models/hierarchy_export_templates.py +272 -0
- flywheel/models/http_validation_error.py +167 -0
- flywheel/models/info.py +218 -0
- flywheel/models/info_add_remove.py +36 -0
- flywheel/models/info_container_type.py +35 -0
- flywheel/models/info_replace.py +36 -0
- flywheel/models/info_update_input.py +36 -0
- flywheel/models/ingress_provider.py +299 -0
- flywheel/models/ingress_providers.py +272 -0
- flywheel/models/ingress_site_settings.py +305 -0
- flywheel/models/ingress_update_provider.py +218 -0
- flywheel/models/inline_response200.py +163 -0
- flywheel/models/inline_response2001.py +171 -0
- flywheel/models/inline_response2002.py +163 -0
- flywheel/models/inline_response2003.py +36 -0
- flywheel/models/inline_response2005.py +25 -0
- flywheel/models/input_filter.py +221 -0
- flywheel/models/input_job.py +521 -0
- flywheel/models/input_job_profile.py +275 -0
- flywheel/models/inserted_id.py +163 -0
- flywheel/models/job.py +841 -0
- flywheel/models/job_analysis_input.py +273 -0
- flywheel/models/job_ask.py +301 -0
- flywheel/models/job_ask_response.py +195 -0
- flywheel/models/job_ask_response_job.py +978 -0
- flywheel/models/job_ask_return.py +25 -0
- flywheel/models/job_ask_return_criteria.py +245 -0
- flywheel/models/job_ask_state.py +25 -0
- flywheel/models/job_ask_state_response.py +163 -0
- flywheel/models/job_complete.py +220 -0
- flywheel/models/job_completion_input.py +25 -0
- flywheel/models/job_completion_ticket.py +25 -0
- flywheel/models/job_config.py +135 -0
- flywheel/models/job_config_input.py +272 -0
- flywheel/models/job_config_inputs.py +25 -0
- flywheel/models/job_config_output.py +25 -0
- flywheel/models/job_container_detail.py +25 -0
- flywheel/models/job_destination.py +189 -0
- flywheel/models/job_detail.py +925 -0
- flywheel/models/job_detail_container.py +190 -0
- flywheel/models/job_detail_file_entry.py +194 -0
- flywheel/models/job_detail_group.py +190 -0
- flywheel/models/job_detail_parent_info.py +303 -0
- flywheel/models/job_executor_info.py +369 -0
- flywheel/models/job_file_input.py +247 -0
- flywheel/models/job_file_input_list_output.py +247 -0
- flywheel/models/job_file_object.py +435 -0
- flywheel/models/job_file_object_list_output.py +407 -0
- flywheel/models/job_gear_match.py +25 -0
- flywheel/models/job_inputs_array_item.py +305 -0
- flywheel/models/job_inputs_item.py +242 -0
- flywheel/models/job_inputs_object.py +138 -0
- flywheel/models/job_list_entry.py +25 -0
- flywheel/models/job_list_output.py +979 -0
- flywheel/models/job_list_output_config.py +220 -0
- flywheel/models/job_log.py +189 -0
- flywheel/models/job_log_column.py +40 -0
- flywheel/models/job_log_record.py +192 -0
- flywheel/models/job_modify.py +193 -0
- flywheel/models/job_origin.py +190 -0
- flywheel/models/job_output.py +1005 -0
- flywheel/models/job_output_config.py +247 -0
- flywheel/models/job_parents.py +297 -0
- flywheel/models/job_priority.py +31 -0
- flywheel/models/job_priority_update.py +192 -0
- flywheel/models/job_profile.py +427 -0
- flywheel/models/job_profile_input.py +25 -0
- flywheel/models/job_request.py +221 -0
- flywheel/models/job_request_item.py +246 -0
- flywheel/models/job_request_item_type.py +31 -0
- flywheel/models/job_request_target.py +270 -0
- flywheel/models/job_state.py +32 -0
- flywheel/models/job_state_counts.py +25 -0
- flywheel/models/job_stats_by_state.py +25 -0
- flywheel/models/job_ticket_output.py +165 -0
- flywheel/models/job_transition_times.py +253 -0
- flywheel/models/job_version_info.py +135 -0
- flywheel/models/jobs_by_state.py +272 -0
- flywheel/models/jobs_list.py +166 -0
- flywheel/models/join_origin_device.py +164 -0
- flywheel/models/join_origin_job.py +219 -0
- flywheel/models/join_origin_user.py +189 -0
- flywheel/models/join_origins.py +223 -0
- flywheel/models/join_type.py +28 -0
- flywheel/models/jupyterhub_workspace.py +163 -0
- flywheel/models/jupyterlab_server_modify.py +275 -0
- flywheel/models/jupyterlab_server_origin.py +25 -0
- flywheel/models/jupyterlab_server_output.py +25 -0
- flywheel/models/jupyterlab_server_response.py +415 -0
- flywheel/models/jupyterlab_server_update.py +25 -0
- flywheel/models/ldap_sync.py +36 -0
- flywheel/models/ldap_sync_config.py +163 -0
- flywheel/models/ldap_sync_input.py +36 -0
- flywheel/models/ldap_sync_status.py +250 -0
- flywheel/models/legacy_api_key_output.py +271 -0
- flywheel/models/legacy_input.py +244 -0
- flywheel/models/legacy_usage_report.py +309 -0
- flywheel/models/legacys_usage_project_entry.py +194 -0
- flywheel/models/libs_workflows_models_parent_type.py +33 -0
- flywheel/models/libs_workflows_models_task_status.py +32 -0
- flywheel/models/local_storage.py +217 -0
- flywheel/models/location.py +189 -0
- flywheel/models/locked.py +219 -0
- flywheel/models/master_subject_code_dob_input.py +279 -0
- flywheel/models/master_subject_code_input.py +281 -0
- flywheel/models/master_subject_code_output.py +166 -0
- flywheel/models/matched_acquisition_output.py +518 -0
- flywheel/models/mfa_channel.py +30 -0
- flywheel/models/mfa_settings.py +167 -0
- flywheel/models/mixins.py +794 -0
- flywheel/models/ml_set_filter.py +194 -0
- flywheel/models/ml_type.py +30 -0
- flywheel/models/modality.py +250 -0
- flywheel/models/modality_input.py +244 -0
- flywheel/models/modality_modify.py +218 -0
- flywheel/models/modality_output.py +271 -0
- flywheel/models/modified_result.py +190 -0
- flywheel/models/modify_user_input.py +466 -0
- flywheel/models/move_conflict.py +300 -0
- flywheel/models/note.py +391 -0
- flywheel/models/note_input.py +165 -0
- flywheel/models/optional_input_policy.py +30 -0
- flywheel/models/order.py +29 -0
- flywheel/models/organ_system.py +64 -0
- flywheel/models/origin.py +193 -0
- flywheel/models/origin_type.py +35 -0
- flywheel/models/orphaned_count.py +163 -0
- flywheel/models/output_user_page.py +219 -0
- flywheel/models/packfile_cleanup_output.py +166 -0
- flywheel/models/packfile_removed_output.py +189 -0
- flywheel/models/page.py +216 -0
- flywheel/models/page_generic_file_output.py +219 -0
- flywheel/models/page_generic_filter.py +219 -0
- flywheel/models/page_generic_form_response_output.py +219 -0
- flywheel/models/page_generic_protocol.py +244 -0
- flywheel/models/page_generic_reader_task_output.py +244 -0
- flywheel/models/page_generic_staffing_pool.py +244 -0
- flywheel/models/parsed_query_response.py +194 -0
- flywheel/models/permission_access_permission.py +25 -0
- flywheel/models/premade_jobs_batch_job_output.py +298 -0
- flywheel/models/premade_jobs_batch_job_output_inflated_jobs.py +299 -0
- flywheel/models/premade_jobs_batch_proposal.py +334 -0
- flywheel/models/premade_jobs_batch_proposal_detail.py +166 -0
- flywheel/models/premade_jobs_batch_proposal_input.py +166 -0
- flywheel/models/project.py +25 -0
- flywheel/models/project_acquisition_upsert_input.py +25 -0
- flywheel/models/project_acquisition_upsert_output.py +25 -0
- flywheel/models/project_aet.py +331 -0
- flywheel/models/project_aet_input.py +248 -0
- flywheel/models/project_catalog_list_output.py +25 -0
- flywheel/models/project_contact.py +194 -0
- flywheel/models/project_container_output.py +41 -0
- flywheel/models/project_copy_input.py +245 -0
- flywheel/models/project_copy_output.py +215 -0
- flywheel/models/project_counters.py +346 -0
- flywheel/models/project_hierarchy_input.py +278 -0
- flywheel/models/project_hierarchy_output.py +222 -0
- flywheel/models/project_hierarchy_upsert_input.py +25 -0
- flywheel/models/project_hierarchy_upsert_output.py +25 -0
- flywheel/models/project_input.py +384 -0
- flywheel/models/project_institution.py +194 -0
- flywheel/models/project_list_output.py +897 -0
- flywheel/models/project_locking_reason.py +32 -0
- flywheel/models/project_modify.py +413 -0
- flywheel/models/project_node.py +42 -0
- flywheel/models/project_output.py +899 -0
- flywheel/models/project_parents.py +168 -0
- flywheel/models/project_report.py +463 -0
- flywheel/models/project_report_list.py +167 -0
- flywheel/models/project_session_upsert_input.py +25 -0
- flywheel/models/project_session_upsert_output.py +25 -0
- flywheel/models/project_settings_input.py +333 -0
- flywheel/models/project_settings_output.py +333 -0
- flywheel/models/project_settings_sharing.py +327 -0
- flywheel/models/project_settings_sharing_input.py +334 -0
- flywheel/models/project_settings_workspaces.py +167 -0
- flywheel/models/project_settings_workspaces_input.py +167 -0
- flywheel/models/project_share_level.py +29 -0
- flywheel/models/project_sharing_settings_project_contact.py +25 -0
- flywheel/models/project_sharing_settings_project_counters.py +36 -0
- flywheel/models/project_sharing_settings_project_institution.py +25 -0
- flywheel/models/project_sharing_settings_project_settings_input.py +25 -0
- flywheel/models/project_sharing_settings_project_settings_output.py +25 -0
- flywheel/models/project_sharing_settings_project_settings_sharing.py +25 -0
- flywheel/models/project_sharing_settings_project_settings_sharing_input.py +25 -0
- flywheel/models/project_sharing_settings_project_stats.py +36 -0
- flywheel/models/project_stats.py +270 -0
- flywheel/models/project_subject_upsert_input.py +25 -0
- flywheel/models/project_subject_upsert_output.py +25 -0
- flywheel/models/project_template.py +195 -0
- flywheel/models/project_template_input.py +195 -0
- flywheel/models/project_template_list_input.py +166 -0
- flywheel/models/project_template_requirement.py +36 -0
- flywheel/models/project_template_session_template.py +36 -0
- flywheel/models/project_upsert_origin.py +36 -0
- flywheel/models/protocol.py +515 -0
- flywheel/models/protocol_e_signature_config.py +191 -0
- flywheel/models/protocol_input.py +354 -0
- flywheel/models/protocol_modify.py +277 -0
- flywheel/models/protocol_status.py +30 -0
- flywheel/models/provider.py +461 -0
- flywheel/models/provider_access_type.py +29 -0
- flywheel/models/provider_class.py +29 -0
- flywheel/models/provider_deletion_status.py +189 -0
- flywheel/models/provider_input.py +25 -0
- flywheel/models/provider_links.py +282 -0
- flywheel/models/provider_type.py +34 -0
- flywheel/models/providers.py +277 -0
- flywheel/models/reader_batch_create.py +463 -0
- flywheel/models/reader_task.py +725 -0
- flywheel/models/reader_task_config.py +189 -0
- flywheel/models/reader_task_create.py +543 -0
- flywheel/models/reader_task_modify.py +303 -0
- flywheel/models/reader_task_output.py +752 -0
- flywheel/models/reader_task_parent_details.py +322 -0
- flywheel/models/report_access_log_context.py +301 -0
- flywheel/models/report_access_log_context_entry.py +194 -0
- flywheel/models/report_access_log_context_file_entry.py +165 -0
- flywheel/models/report_access_log_entry.py +624 -0
- flywheel/models/report_access_log_origin.py +194 -0
- flywheel/models/report_availability_list.py +167 -0
- flywheel/models/report_daily_usage_entry.py +501 -0
- flywheel/models/report_demographics_grid.py +36 -0
- flywheel/models/report_ethnicity_grid.py +252 -0
- flywheel/models/report_gender_count.py +222 -0
- flywheel/models/report_group_report.py +217 -0
- flywheel/models/report_legacy_usage_entry.py +36 -0
- flywheel/models/report_legacy_usage_project_entry.py +36 -0
- flywheel/models/report_project.py +25 -0
- flywheel/models/report_site.py +192 -0
- flywheel/models/report_time_period.py +193 -0
- flywheel/models/report_usage.py +630 -0
- flywheel/models/report_usage_entry.py +25 -0
- flywheel/models/resolve_input.py +163 -0
- flywheel/models/resolve_output.py +194 -0
- flywheel/models/resolver_acquisition_node.py +36 -0
- flywheel/models/resolver_analysis_node.py +36 -0
- flywheel/models/resolver_file_node.py +36 -0
- flywheel/models/resolver_gear_node.py +36 -0
- flywheel/models/resolver_group_node.py +36 -0
- flywheel/models/resolver_input.py +25 -0
- flywheel/models/resolver_node.py +182 -0
- flywheel/models/resolver_output.py +25 -0
- flywheel/models/resolver_project_node.py +36 -0
- flywheel/models/resolver_session_node.py +36 -0
- flywheel/models/resolver_subject_node.py +36 -0
- flywheel/models/role_input.py +192 -0
- flywheel/models/role_output.py +273 -0
- flywheel/models/role_permission.py +194 -0
- flywheel/models/role_permission_output.py +189 -0
- flywheel/models/role_permission_update.py +163 -0
- flywheel/models/role_type.py +32 -0
- flywheel/models/role_update.py +194 -0
- flywheel/models/roles_backwards_compatible_role_assignment.py +36 -0
- flywheel/models/roles_group_role_pool_input.py +36 -0
- flywheel/models/roles_role.py +36 -0
- flywheel/models/roles_role_assignment.py +195 -0
- flywheel/models/roles_role_input.py +36 -0
- flywheel/models/rule.py +467 -0
- flywheel/models/rule_any.py +216 -0
- flywheel/models/s3_addressing_style.py +29 -0
- flywheel/models/s3_compat_storage.py +381 -0
- flywheel/models/save_search.py +298 -0
- flywheel/models/save_search_input.py +219 -0
- flywheel/models/save_search_output.py +301 -0
- flywheel/models/save_search_page.py +219 -0
- flywheel/models/save_search_parent.py +192 -0
- flywheel/models/save_search_update.py +194 -0
- flywheel/models/search_acquisition_response.py +252 -0
- flywheel/models/search_analysis_response.py +254 -0
- flywheel/models/search_collection_response.py +254 -0
- flywheel/models/search_file_response.py +312 -0
- flywheel/models/search_group_response.py +196 -0
- flywheel/models/search_parent_acquisition.py +47 -0
- flywheel/models/search_parent_analysis.py +47 -0
- flywheel/models/search_parent_collection.py +46 -0
- flywheel/models/search_parent_project.py +54 -0
- flywheel/models/search_parent_response.py +213 -0
- flywheel/models/search_parent_session.py +48 -0
- flywheel/models/search_parent_subject.py +48 -0
- flywheel/models/search_parse_error.py +252 -0
- flywheel/models/search_parse_search_query_result.py +36 -0
- flywheel/models/search_project_response.py +196 -0
- flywheel/models/search_query.py +337 -0
- flywheel/models/search_query_suggestions.py +36 -0
- flywheel/models/search_response.py +448 -0
- flywheel/models/search_return_type.py +33 -0
- flywheel/models/search_save_search.py +36 -0
- flywheel/models/search_save_search_input.py +36 -0
- flywheel/models/search_save_search_parent.py +36 -0
- flywheel/models/search_save_search_update.py +36 -0
- flywheel/models/search_session_response.py +252 -0
- flywheel/models/search_status.py +166 -0
- flywheel/models/search_structured_search_query.py +25 -0
- flywheel/models/search_subject_response.py +225 -0
- flywheel/models/search_suggestion.py +36 -0
- flywheel/models/select_item.py +190 -0
- flywheel/models/server_state.py +303 -0
- flywheel/models/service_aet.py +301 -0
- flywheel/models/service_aet_input.py +276 -0
- flywheel/models/session.py +25 -0
- flywheel/models/session_container_output.py +35 -0
- flywheel/models/session_copy_input.py +253 -0
- flywheel/models/session_embedded_subject.py +299 -0
- flywheel/models/session_input.py +431 -0
- flywheel/models/session_list_output.py +897 -0
- flywheel/models/session_metadata_input.py +36 -0
- flywheel/models/session_modify.py +464 -0
- flywheel/models/session_node.py +36 -0
- flywheel/models/session_output.py +897 -0
- flywheel/models/session_parents.py +220 -0
- flywheel/models/session_template_options.py +221 -0
- flywheel/models/session_template_recalc_output.py +165 -0
- flywheel/models/session_upsert_input.py +464 -0
- flywheel/models/session_upsert_output.py +243 -0
- flywheel/models/sharing_filter_options.py +345 -0
- flywheel/models/signed_fs_upload_output.py +189 -0
- flywheel/models/signed_url_cleanup_input.py +189 -0
- flywheel/models/signed_url_upload_input.py +190 -0
- flywheel/models/signed_url_upload_output.py +349 -0
- flywheel/models/site.py +623 -0
- flywheel/models/site_report.py +194 -0
- flywheel/models/site_settings.py +385 -0
- flywheel/models/sort.py +192 -0
- flywheel/models/stable_api_key_input.py +25 -0
- flywheel/models/staffing_pool.py +324 -0
- flywheel/models/staffing_pool_create.py +216 -0
- flywheel/models/staffing_pool_list.py +164 -0
- flywheel/models/staffing_pool_modify.py +218 -0
- flywheel/models/state.py +32 -0
- flywheel/models/static_compute.py +218 -0
- flywheel/models/status_transitions.py +245 -0
- flywheel/models/status_type.py +31 -0
- flywheel/models/status_value.py +31 -0
- flywheel/models/storage_strategy.py +30 -0
- flywheel/models/storage_strategy_config.py +194 -0
- flywheel/models/structured_query.py +165 -0
- flywheel/models/structured_query_suggestions.py +196 -0
- flywheel/models/structured_query_value_suggestion.py +247 -0
- flywheel/models/subject.py +34 -0
- flywheel/models/subject_container_output.py +36 -0
- flywheel/models/subject_copy_input.py +223 -0
- flywheel/models/subject_input.py +627 -0
- flywheel/models/subject_modify.py +684 -0
- flywheel/models/subject_node.py +37 -0
- flywheel/models/subject_output.py +1008 -0
- flywheel/models/subject_output_for_list.py +1005 -0
- flywheel/models/subject_parents.py +194 -0
- flywheel/models/subject_role_permission.py +194 -0
- flywheel/models/subject_state.py +30 -0
- flywheel/models/subject_template_options.py +191 -0
- flywheel/models/subject_upsert_input.py +573 -0
- flywheel/models/subject_upsert_output.py +216 -0
- flywheel/models/sync_user_input.py +322 -0
- flywheel/models/tag.py +165 -0
- flywheel/models/task_assign.py +194 -0
- flywheel/models/task_facet.py +29 -0
- flywheel/models/task_parent_ref.py +245 -0
- flywheel/models/task_parent_ref_input.py +219 -0
- flywheel/models/task_priority.py +31 -0
- flywheel/models/task_submission.py +189 -0
- flywheel/models/therapeutic_area.py +60 -0
- flywheel/models/transitions.py +272 -0
- flywheel/models/tree_container_request_spec.py +281 -0
- flywheel/models/tree_graph.py +142 -0
- flywheel/models/tree_graph_connection.py +244 -0
- flywheel/models/tree_graph_connections.py +142 -0
- flywheel/models/tree_graph_node.py +166 -0
- flywheel/models/tree_request.py +25 -0
- flywheel/models/tree_response_item.py +142 -0
- flywheel/models/type_str.py +31 -0
- flywheel/models/uid_check_input_acquisitions.py +244 -0
- flywheel/models/uid_check_input_sessions.py +244 -0
- flywheel/models/uid_check_output.py +191 -0
- flywheel/models/upload_complete_s3_multipart_input.py +25 -0
- flywheel/models/upload_complete_s3_multipart_output.py +25 -0
- flywheel/models/upload_signed_fs_file_upload_output.py +36 -0
- flywheel/models/upload_signed_upload_url_input.py +36 -0
- flywheel/models/upload_signed_upload_url_output.py +36 -0
- flywheel/models/upload_ticket_output.py +215 -0
- flywheel/models/upload_token_output.py +163 -0
- flywheel/models/upsert_result.py +31 -0
- flywheel/models/user.py +760 -0
- flywheel/models/user_api_key.py +220 -0
- flywheel/models/user_input.py +461 -0
- flywheel/models/user_jobs.py +219 -0
- flywheel/models/user_jobs_output.py +25 -0
- flywheel/models/user_output.py +36 -0
- flywheel/models/user_output_id.py +163 -0
- flywheel/models/user_preferences.py +135 -0
- flywheel/models/user_wechat.py +135 -0
- flywheel/models/validation_error.py +215 -0
- flywheel/models/validation_rule.py +190 -0
- flywheel/models/version.py +363 -0
- flywheel/models/version_output.py +25 -0
- flywheel/models/view_id_output.py +164 -0
- flywheel/models/view_output.py +440 -0
- flywheel/models/viewer_app.py +381 -0
- flywheel/models/viewer_app_input.py +382 -0
- flywheel/models/viewer_app_type.py +29 -0
- flywheel/models/virus_scan.py +166 -0
- flywheel/models/virus_scan_state.py +30 -0
- flywheel/models/work_in_progress_features.py +135 -0
- flywheel/models/zipfile_info.py +192 -0
- flywheel/models/zipfile_member_info.py +241 -0
- flywheel/partial_reader.py +50 -0
- flywheel/rest.py +352 -0
- flywheel/util.py +95 -0
- flywheel/view_builder.py +449 -0
- flywheel_sdk-21.2.0rc0.dist-info/METADATA +41 -0
- flywheel_sdk-21.2.0rc0.dist-info/RECORD +772 -0
- flywheel_sdk-21.2.0rc0.dist-info/WHEEL +4 -0
- flywheel_sdk-21.2.0rc0.dist-info/licenses/LICENSE.txt +18 -0
flywheel/api/site_api.py
ADDED
|
@@ -0,0 +1,1552 @@
|
|
|
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 SiteApi(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 add_provider(self, body, **kwargs): # noqa: E501
|
|
35
|
+
"""Add a new provider
|
|
36
|
+
|
|
37
|
+
This method makes a synchronous HTTP request by default.
|
|
38
|
+
|
|
39
|
+
:param IngressProvider body: (required)
|
|
40
|
+
:param bool async_: Perform the request asynchronously
|
|
41
|
+
:return: EgressProviderId
|
|
42
|
+
"""
|
|
43
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
44
|
+
kwargs['_return_http_data_only'] = True
|
|
45
|
+
|
|
46
|
+
if kwargs.get('async_'):
|
|
47
|
+
return self.add_provider_with_http_info(body, **kwargs) # noqa: E501
|
|
48
|
+
else:
|
|
49
|
+
(data) = self.add_provider_with_http_info(body, **kwargs) # noqa: E501
|
|
50
|
+
if (
|
|
51
|
+
data
|
|
52
|
+
and hasattr(data, 'return_value')
|
|
53
|
+
and not ignore_simplified_return_value
|
|
54
|
+
):
|
|
55
|
+
return data.return_value()
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def add_provider_with_http_info(self, body, **kwargs): # noqa: E501
|
|
60
|
+
"""Add a new provider
|
|
61
|
+
|
|
62
|
+
This method makes a synchronous HTTP request by default.
|
|
63
|
+
|
|
64
|
+
:param IngressProvider body: (required)
|
|
65
|
+
:param bool async_: Perform the request asynchronously
|
|
66
|
+
:return: EgressProviderId
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
all_params = ['body',] # noqa: E501
|
|
70
|
+
all_params.append('async_')
|
|
71
|
+
all_params.append('_return_http_data_only')
|
|
72
|
+
all_params.append('_preload_content')
|
|
73
|
+
all_params.append('_request_timeout')
|
|
74
|
+
all_params.append('_request_out')
|
|
75
|
+
|
|
76
|
+
params = locals()
|
|
77
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
78
|
+
if key not in all_params:
|
|
79
|
+
raise TypeError(
|
|
80
|
+
"Got an unexpected keyword argument '%s'"
|
|
81
|
+
" to method add_provider" % key
|
|
82
|
+
)
|
|
83
|
+
params[key] = val
|
|
84
|
+
del params['kwargs']
|
|
85
|
+
# verify the required parameter 'body' is set
|
|
86
|
+
if ('body' not in params or
|
|
87
|
+
params['body'] is None):
|
|
88
|
+
raise ValueError("Missing the required parameter `body` when calling `add_provider`") # noqa: E501
|
|
89
|
+
check_filename_params(params)
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
|
|
97
|
+
header_params = {}
|
|
98
|
+
|
|
99
|
+
form_params = []
|
|
100
|
+
local_var_files = {}
|
|
101
|
+
|
|
102
|
+
body_params = None
|
|
103
|
+
if 'body' in params:
|
|
104
|
+
if 'IngressProvider'.startswith('union'):
|
|
105
|
+
body_type = type(params['body'])
|
|
106
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
107
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
108
|
+
else:
|
|
109
|
+
body_params = params['body']
|
|
110
|
+
else:
|
|
111
|
+
body_params = flywheel.models.IngressProvider.positional_to_model(params['body'])
|
|
112
|
+
# HTTP header `Accept`
|
|
113
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
114
|
+
['application/json']) # noqa: E501
|
|
115
|
+
|
|
116
|
+
# HTTP header `Content-Type`
|
|
117
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
118
|
+
['application/json']) # noqa: E501
|
|
119
|
+
|
|
120
|
+
# Authentication setting
|
|
121
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
122
|
+
|
|
123
|
+
return self.api_client.call_api(
|
|
124
|
+
'/site/providers', 'POST',
|
|
125
|
+
path_params,
|
|
126
|
+
query_params,
|
|
127
|
+
header_params,
|
|
128
|
+
body=body_params,
|
|
129
|
+
post_params=form_params,
|
|
130
|
+
files=local_var_files,
|
|
131
|
+
response_type='EgressProviderId', # noqa: E501
|
|
132
|
+
auth_settings=auth_settings,
|
|
133
|
+
async_=params.get('async_'),
|
|
134
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
135
|
+
_preload_content=params.get('_preload_content', True),
|
|
136
|
+
_request_timeout=params.get('_request_timeout'),
|
|
137
|
+
_request_out=params.get('_request_out'),
|
|
138
|
+
collection_formats=collection_formats)
|
|
139
|
+
|
|
140
|
+
def add_site_rule(self, body, **kwargs): # noqa: E501
|
|
141
|
+
"""Create a new site rule.
|
|
142
|
+
|
|
143
|
+
This method makes a synchronous HTTP request by default.
|
|
144
|
+
|
|
145
|
+
:param GearRuleInput body: (required)
|
|
146
|
+
:param bool async_: Perform the request asynchronously
|
|
147
|
+
:return: GearRule
|
|
148
|
+
"""
|
|
149
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
150
|
+
kwargs['_return_http_data_only'] = True
|
|
151
|
+
|
|
152
|
+
if kwargs.get('async_'):
|
|
153
|
+
return self.add_site_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
154
|
+
else:
|
|
155
|
+
(data) = self.add_site_rule_with_http_info(body, **kwargs) # noqa: E501
|
|
156
|
+
if (
|
|
157
|
+
data
|
|
158
|
+
and hasattr(data, 'return_value')
|
|
159
|
+
and not ignore_simplified_return_value
|
|
160
|
+
):
|
|
161
|
+
return data.return_value()
|
|
162
|
+
return data
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def add_site_rule_with_http_info(self, body, **kwargs): # noqa: E501
|
|
166
|
+
"""Create a new site rule.
|
|
167
|
+
|
|
168
|
+
This method makes a synchronous HTTP request by default.
|
|
169
|
+
|
|
170
|
+
:param GearRuleInput body: (required)
|
|
171
|
+
:param bool async_: Perform the request asynchronously
|
|
172
|
+
:return: GearRule
|
|
173
|
+
"""
|
|
174
|
+
|
|
175
|
+
all_params = ['body',] # noqa: E501
|
|
176
|
+
all_params.append('async_')
|
|
177
|
+
all_params.append('_return_http_data_only')
|
|
178
|
+
all_params.append('_preload_content')
|
|
179
|
+
all_params.append('_request_timeout')
|
|
180
|
+
all_params.append('_request_out')
|
|
181
|
+
|
|
182
|
+
params = locals()
|
|
183
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
184
|
+
if key not in all_params:
|
|
185
|
+
raise TypeError(
|
|
186
|
+
"Got an unexpected keyword argument '%s'"
|
|
187
|
+
" to method add_site_rule" % key
|
|
188
|
+
)
|
|
189
|
+
params[key] = val
|
|
190
|
+
del params['kwargs']
|
|
191
|
+
# verify the required parameter 'body' is set
|
|
192
|
+
if ('body' not in params or
|
|
193
|
+
params['body'] is None):
|
|
194
|
+
raise ValueError("Missing the required parameter `body` when calling `add_site_rule`") # noqa: E501
|
|
195
|
+
check_filename_params(params)
|
|
196
|
+
|
|
197
|
+
collection_formats = {}
|
|
198
|
+
|
|
199
|
+
path_params = {}
|
|
200
|
+
|
|
201
|
+
query_params = []
|
|
202
|
+
|
|
203
|
+
header_params = {}
|
|
204
|
+
|
|
205
|
+
form_params = []
|
|
206
|
+
local_var_files = {}
|
|
207
|
+
|
|
208
|
+
body_params = None
|
|
209
|
+
if 'body' in params:
|
|
210
|
+
if 'GearRuleInput'.startswith('union'):
|
|
211
|
+
body_type = type(params['body'])
|
|
212
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
213
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
214
|
+
else:
|
|
215
|
+
body_params = params['body']
|
|
216
|
+
else:
|
|
217
|
+
body_params = flywheel.models.GearRuleInput.positional_to_model(params['body'])
|
|
218
|
+
# HTTP header `Accept`
|
|
219
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
220
|
+
['application/json']) # noqa: E501
|
|
221
|
+
|
|
222
|
+
# HTTP header `Content-Type`
|
|
223
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
224
|
+
['application/json']) # noqa: E501
|
|
225
|
+
|
|
226
|
+
# Authentication setting
|
|
227
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
228
|
+
|
|
229
|
+
return self.api_client.call_api(
|
|
230
|
+
'/site/rules', 'POST',
|
|
231
|
+
path_params,
|
|
232
|
+
query_params,
|
|
233
|
+
header_params,
|
|
234
|
+
body=body_params,
|
|
235
|
+
post_params=form_params,
|
|
236
|
+
files=local_var_files,
|
|
237
|
+
response_type='GearRule', # noqa: E501
|
|
238
|
+
auth_settings=auth_settings,
|
|
239
|
+
async_=params.get('async_'),
|
|
240
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
241
|
+
_preload_content=params.get('_preload_content', True),
|
|
242
|
+
_request_timeout=params.get('_request_timeout'),
|
|
243
|
+
_request_out=params.get('_request_out'),
|
|
244
|
+
collection_formats=collection_formats)
|
|
245
|
+
|
|
246
|
+
def delete_provider(self, provider_id, **kwargs): # noqa: E501
|
|
247
|
+
"""Delete the provider identified by ProviderId
|
|
248
|
+
|
|
249
|
+
Returns an empty 204 response if successful. The provider will be deleted asynchronously; if it is a storage provider, any files on the provider that have been deleted but not yet cleaned up will be hard deleted. Use the `get_provider` operation to check the deletion status.
|
|
250
|
+
This method makes a synchronous HTTP request by default.
|
|
251
|
+
|
|
252
|
+
:param str provider_id: The ID of the provider (required)
|
|
253
|
+
:param bool async_: Perform the request asynchronously
|
|
254
|
+
:return: None
|
|
255
|
+
"""
|
|
256
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
257
|
+
kwargs['_return_http_data_only'] = True
|
|
258
|
+
|
|
259
|
+
if kwargs.get('async_'):
|
|
260
|
+
return self.delete_provider_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
261
|
+
else:
|
|
262
|
+
(data) = self.delete_provider_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
263
|
+
if (
|
|
264
|
+
data
|
|
265
|
+
and hasattr(data, 'return_value')
|
|
266
|
+
and not ignore_simplified_return_value
|
|
267
|
+
):
|
|
268
|
+
return data.return_value()
|
|
269
|
+
return data
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
def delete_provider_with_http_info(self, provider_id, **kwargs): # noqa: E501
|
|
273
|
+
"""Delete the provider identified by ProviderId
|
|
274
|
+
|
|
275
|
+
Returns an empty 204 response if successful. The provider will be deleted asynchronously; if it is a storage provider, any files on the provider that have been deleted but not yet cleaned up will be hard deleted. Use the `get_provider` operation to check the deletion status.
|
|
276
|
+
This method makes a synchronous HTTP request by default.
|
|
277
|
+
|
|
278
|
+
:param str provider_id: The ID of the provider (required)
|
|
279
|
+
:param bool async_: Perform the request asynchronously
|
|
280
|
+
:return: None
|
|
281
|
+
"""
|
|
282
|
+
|
|
283
|
+
all_params = ['provider_id',] # noqa: E501
|
|
284
|
+
all_params.append('async_')
|
|
285
|
+
all_params.append('_return_http_data_only')
|
|
286
|
+
all_params.append('_preload_content')
|
|
287
|
+
all_params.append('_request_timeout')
|
|
288
|
+
all_params.append('_request_out')
|
|
289
|
+
|
|
290
|
+
params = locals()
|
|
291
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
292
|
+
if key not in all_params:
|
|
293
|
+
raise TypeError(
|
|
294
|
+
"Got an unexpected keyword argument '%s'"
|
|
295
|
+
" to method delete_provider" % key
|
|
296
|
+
)
|
|
297
|
+
params[key] = val
|
|
298
|
+
del params['kwargs']
|
|
299
|
+
# verify the required parameter 'provider_id' is set
|
|
300
|
+
if ('provider_id' not in params or
|
|
301
|
+
params['provider_id'] is None):
|
|
302
|
+
raise ValueError("Missing the required parameter `provider_id` when calling `delete_provider`") # noqa: E501
|
|
303
|
+
check_filename_params(params)
|
|
304
|
+
|
|
305
|
+
collection_formats = {}
|
|
306
|
+
|
|
307
|
+
path_params = {}
|
|
308
|
+
if 'provider_id' in params:
|
|
309
|
+
path_params['provider_id'] = params['provider_id'] # noqa: E501
|
|
310
|
+
|
|
311
|
+
query_params = []
|
|
312
|
+
|
|
313
|
+
header_params = {}
|
|
314
|
+
|
|
315
|
+
form_params = []
|
|
316
|
+
local_var_files = {}
|
|
317
|
+
|
|
318
|
+
body_params = None
|
|
319
|
+
# HTTP header `Accept`
|
|
320
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
321
|
+
['application/json']) # noqa: E501
|
|
322
|
+
|
|
323
|
+
# Authentication setting
|
|
324
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
325
|
+
|
|
326
|
+
return self.api_client.call_api(
|
|
327
|
+
'/site/providers/{provider_id}', 'DELETE',
|
|
328
|
+
path_params,
|
|
329
|
+
query_params,
|
|
330
|
+
header_params,
|
|
331
|
+
body=body_params,
|
|
332
|
+
post_params=form_params,
|
|
333
|
+
files=local_var_files,
|
|
334
|
+
response_type=None, # noqa: E501
|
|
335
|
+
auth_settings=auth_settings,
|
|
336
|
+
async_=params.get('async_'),
|
|
337
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
338
|
+
_preload_content=params.get('_preload_content', True),
|
|
339
|
+
_request_timeout=params.get('_request_timeout'),
|
|
340
|
+
_request_out=params.get('_request_out'),
|
|
341
|
+
collection_formats=collection_formats)
|
|
342
|
+
|
|
343
|
+
def get_bookmark_list(self, **kwargs): # noqa: E501
|
|
344
|
+
"""Get Bookmark List
|
|
345
|
+
|
|
346
|
+
This method makes a synchronous HTTP request by default.
|
|
347
|
+
|
|
348
|
+
:param bool async_: Perform the request asynchronously
|
|
349
|
+
:return: list[Bookmark]
|
|
350
|
+
"""
|
|
351
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
352
|
+
kwargs['_return_http_data_only'] = True
|
|
353
|
+
|
|
354
|
+
if kwargs.get('async_'):
|
|
355
|
+
return self.get_bookmark_list_with_http_info(**kwargs) # noqa: E501
|
|
356
|
+
else:
|
|
357
|
+
(data) = self.get_bookmark_list_with_http_info(**kwargs) # noqa: E501
|
|
358
|
+
if (
|
|
359
|
+
data
|
|
360
|
+
and hasattr(data, 'return_value')
|
|
361
|
+
and not ignore_simplified_return_value
|
|
362
|
+
):
|
|
363
|
+
return data.return_value()
|
|
364
|
+
return data
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
def get_bookmark_list_with_http_info(self, **kwargs): # noqa: E501
|
|
368
|
+
"""Get Bookmark List
|
|
369
|
+
|
|
370
|
+
This method makes a synchronous HTTP request by default.
|
|
371
|
+
|
|
372
|
+
:param bool async_: Perform the request asynchronously
|
|
373
|
+
:return: list[Bookmark]
|
|
374
|
+
"""
|
|
375
|
+
|
|
376
|
+
all_params = [] # noqa: E501
|
|
377
|
+
all_params.append('async_')
|
|
378
|
+
all_params.append('_return_http_data_only')
|
|
379
|
+
all_params.append('_preload_content')
|
|
380
|
+
all_params.append('_request_timeout')
|
|
381
|
+
all_params.append('_request_out')
|
|
382
|
+
|
|
383
|
+
params = locals()
|
|
384
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
385
|
+
if key not in all_params:
|
|
386
|
+
raise TypeError(
|
|
387
|
+
"Got an unexpected keyword argument '%s'"
|
|
388
|
+
" to method get_bookmark_list" % key
|
|
389
|
+
)
|
|
390
|
+
params[key] = val
|
|
391
|
+
del params['kwargs']
|
|
392
|
+
check_filename_params(params)
|
|
393
|
+
|
|
394
|
+
collection_formats = {}
|
|
395
|
+
|
|
396
|
+
path_params = {}
|
|
397
|
+
|
|
398
|
+
query_params = []
|
|
399
|
+
|
|
400
|
+
header_params = {}
|
|
401
|
+
|
|
402
|
+
form_params = []
|
|
403
|
+
local_var_files = {}
|
|
404
|
+
|
|
405
|
+
body_params = None
|
|
406
|
+
# HTTP header `Accept`
|
|
407
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
408
|
+
['application/json']) # noqa: E501
|
|
409
|
+
|
|
410
|
+
# Authentication setting
|
|
411
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
412
|
+
|
|
413
|
+
return self.api_client.call_api(
|
|
414
|
+
'/site/bookmark-list', 'GET',
|
|
415
|
+
path_params,
|
|
416
|
+
query_params,
|
|
417
|
+
header_params,
|
|
418
|
+
body=body_params,
|
|
419
|
+
post_params=form_params,
|
|
420
|
+
files=local_var_files,
|
|
421
|
+
response_type='list[Bookmark]', # noqa: E501
|
|
422
|
+
auth_settings=auth_settings,
|
|
423
|
+
async_=params.get('async_'),
|
|
424
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
425
|
+
_preload_content=params.get('_preload_content', True),
|
|
426
|
+
_request_timeout=params.get('_request_timeout'),
|
|
427
|
+
_request_out=params.get('_request_out'),
|
|
428
|
+
collection_formats=collection_formats)
|
|
429
|
+
|
|
430
|
+
def get_provider(self, provider_id, **kwargs): # noqa: E501
|
|
431
|
+
"""Return the provider identified by ProviderId
|
|
432
|
+
|
|
433
|
+
Return the provider identified by ProviderId
|
|
434
|
+
This method makes a synchronous HTTP request by default.
|
|
435
|
+
|
|
436
|
+
:param str provider_id: The ID of the provider (required)
|
|
437
|
+
:param bool async_: Perform the request asynchronously
|
|
438
|
+
:return: EgressProvider
|
|
439
|
+
"""
|
|
440
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
441
|
+
kwargs['_return_http_data_only'] = True
|
|
442
|
+
|
|
443
|
+
if kwargs.get('async_'):
|
|
444
|
+
return self.get_provider_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
445
|
+
else:
|
|
446
|
+
(data) = self.get_provider_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
447
|
+
if (
|
|
448
|
+
data
|
|
449
|
+
and hasattr(data, 'return_value')
|
|
450
|
+
and not ignore_simplified_return_value
|
|
451
|
+
):
|
|
452
|
+
return data.return_value()
|
|
453
|
+
return data
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
def get_provider_with_http_info(self, provider_id, **kwargs): # noqa: E501
|
|
457
|
+
"""Return the provider identified by ProviderId
|
|
458
|
+
|
|
459
|
+
Return the provider identified by ProviderId
|
|
460
|
+
This method makes a synchronous HTTP request by default.
|
|
461
|
+
|
|
462
|
+
:param str provider_id: The ID of the provider (required)
|
|
463
|
+
:param bool async_: Perform the request asynchronously
|
|
464
|
+
:return: EgressProvider
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
all_params = ['provider_id',] # noqa: E501
|
|
468
|
+
all_params.append('async_')
|
|
469
|
+
all_params.append('_return_http_data_only')
|
|
470
|
+
all_params.append('_preload_content')
|
|
471
|
+
all_params.append('_request_timeout')
|
|
472
|
+
all_params.append('_request_out')
|
|
473
|
+
|
|
474
|
+
params = locals()
|
|
475
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
476
|
+
if key not in all_params:
|
|
477
|
+
raise TypeError(
|
|
478
|
+
"Got an unexpected keyword argument '%s'"
|
|
479
|
+
" to method get_provider" % key
|
|
480
|
+
)
|
|
481
|
+
params[key] = val
|
|
482
|
+
del params['kwargs']
|
|
483
|
+
# verify the required parameter 'provider_id' is set
|
|
484
|
+
if ('provider_id' not in params or
|
|
485
|
+
params['provider_id'] is None):
|
|
486
|
+
raise ValueError("Missing the required parameter `provider_id` when calling `get_provider`") # noqa: E501
|
|
487
|
+
check_filename_params(params)
|
|
488
|
+
|
|
489
|
+
collection_formats = {}
|
|
490
|
+
|
|
491
|
+
path_params = {}
|
|
492
|
+
if 'provider_id' in params:
|
|
493
|
+
path_params['provider_id'] = params['provider_id'] # noqa: E501
|
|
494
|
+
|
|
495
|
+
query_params = []
|
|
496
|
+
|
|
497
|
+
header_params = {}
|
|
498
|
+
|
|
499
|
+
form_params = []
|
|
500
|
+
local_var_files = {}
|
|
501
|
+
|
|
502
|
+
body_params = None
|
|
503
|
+
# HTTP header `Accept`
|
|
504
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
505
|
+
['application/json']) # noqa: E501
|
|
506
|
+
|
|
507
|
+
# Authentication setting
|
|
508
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
509
|
+
|
|
510
|
+
return self.api_client.call_api(
|
|
511
|
+
'/site/providers/{provider_id}', 'GET',
|
|
512
|
+
path_params,
|
|
513
|
+
query_params,
|
|
514
|
+
header_params,
|
|
515
|
+
body=body_params,
|
|
516
|
+
post_params=form_params,
|
|
517
|
+
files=local_var_files,
|
|
518
|
+
response_type='EgressProvider', # noqa: E501
|
|
519
|
+
auth_settings=auth_settings,
|
|
520
|
+
async_=params.get('async_'),
|
|
521
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
522
|
+
_preload_content=params.get('_preload_content', True),
|
|
523
|
+
_request_timeout=params.get('_request_timeout'),
|
|
524
|
+
_request_out=params.get('_request_out'),
|
|
525
|
+
collection_formats=collection_formats)
|
|
526
|
+
|
|
527
|
+
def get_provider_config(self, provider_id, **kwargs): # noqa: E501
|
|
528
|
+
"""Return the configuration for provider identified by ProviderId
|
|
529
|
+
|
|
530
|
+
The returned configuration will be redacted, with any privileged values replaced with null.
|
|
531
|
+
This method makes a synchronous HTTP request by default.
|
|
532
|
+
|
|
533
|
+
:param str provider_id: The ID of the provider (required)
|
|
534
|
+
:param bool async_: Perform the request asynchronously
|
|
535
|
+
:return: object
|
|
536
|
+
"""
|
|
537
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
538
|
+
kwargs['_return_http_data_only'] = True
|
|
539
|
+
|
|
540
|
+
if kwargs.get('async_'):
|
|
541
|
+
return self.get_provider_config_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
542
|
+
else:
|
|
543
|
+
(data) = self.get_provider_config_with_http_info(provider_id, **kwargs) # noqa: E501
|
|
544
|
+
if (
|
|
545
|
+
data
|
|
546
|
+
and hasattr(data, 'return_value')
|
|
547
|
+
and not ignore_simplified_return_value
|
|
548
|
+
):
|
|
549
|
+
return data.return_value()
|
|
550
|
+
return data
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
def get_provider_config_with_http_info(self, provider_id, **kwargs): # noqa: E501
|
|
554
|
+
"""Return the configuration for provider identified by ProviderId
|
|
555
|
+
|
|
556
|
+
The returned configuration will be redacted, with any privileged values replaced with null.
|
|
557
|
+
This method makes a synchronous HTTP request by default.
|
|
558
|
+
|
|
559
|
+
:param str provider_id: The ID of the provider (required)
|
|
560
|
+
:param bool async_: Perform the request asynchronously
|
|
561
|
+
:return: object
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
all_params = ['provider_id',] # noqa: E501
|
|
565
|
+
all_params.append('async_')
|
|
566
|
+
all_params.append('_return_http_data_only')
|
|
567
|
+
all_params.append('_preload_content')
|
|
568
|
+
all_params.append('_request_timeout')
|
|
569
|
+
all_params.append('_request_out')
|
|
570
|
+
|
|
571
|
+
params = locals()
|
|
572
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
573
|
+
if key not in all_params:
|
|
574
|
+
raise TypeError(
|
|
575
|
+
"Got an unexpected keyword argument '%s'"
|
|
576
|
+
" to method get_provider_config" % key
|
|
577
|
+
)
|
|
578
|
+
params[key] = val
|
|
579
|
+
del params['kwargs']
|
|
580
|
+
# verify the required parameter 'provider_id' is set
|
|
581
|
+
if ('provider_id' not in params or
|
|
582
|
+
params['provider_id'] is None):
|
|
583
|
+
raise ValueError("Missing the required parameter `provider_id` when calling `get_provider_config`") # noqa: E501
|
|
584
|
+
check_filename_params(params)
|
|
585
|
+
|
|
586
|
+
collection_formats = {}
|
|
587
|
+
|
|
588
|
+
path_params = {}
|
|
589
|
+
if 'provider_id' in params:
|
|
590
|
+
path_params['provider_id'] = params['provider_id'] # noqa: E501
|
|
591
|
+
|
|
592
|
+
query_params = []
|
|
593
|
+
|
|
594
|
+
header_params = {}
|
|
595
|
+
|
|
596
|
+
form_params = []
|
|
597
|
+
local_var_files = {}
|
|
598
|
+
|
|
599
|
+
body_params = None
|
|
600
|
+
# HTTP header `Accept`
|
|
601
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
602
|
+
['application/json']) # noqa: E501
|
|
603
|
+
|
|
604
|
+
# Authentication setting
|
|
605
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
606
|
+
|
|
607
|
+
return self.api_client.call_api(
|
|
608
|
+
'/site/providers/{provider_id}/config', 'GET',
|
|
609
|
+
path_params,
|
|
610
|
+
query_params,
|
|
611
|
+
header_params,
|
|
612
|
+
body=body_params,
|
|
613
|
+
post_params=form_params,
|
|
614
|
+
files=local_var_files,
|
|
615
|
+
response_type='object', # noqa: E501
|
|
616
|
+
auth_settings=auth_settings,
|
|
617
|
+
async_=params.get('async_'),
|
|
618
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
619
|
+
_preload_content=params.get('_preload_content', True),
|
|
620
|
+
_request_timeout=params.get('_request_timeout'),
|
|
621
|
+
_request_out=params.get('_request_out'),
|
|
622
|
+
collection_formats=collection_formats)
|
|
623
|
+
|
|
624
|
+
def get_providers(self, **kwargs): # noqa: E501
|
|
625
|
+
"""Return a list of all providers on the site
|
|
626
|
+
|
|
627
|
+
Return a list of all providers on the site
|
|
628
|
+
This method makes a synchronous HTTP request by default.
|
|
629
|
+
|
|
630
|
+
:param ProviderClass _class: Limit the response to the given provider class
|
|
631
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
632
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
633
|
+
:param int limit: The maximum number of entries to return.
|
|
634
|
+
:param int skip: The number of entries to skip.
|
|
635
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
636
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
637
|
+
:param bool async_: Perform the request asynchronously
|
|
638
|
+
:return: list[EgressProvider]
|
|
639
|
+
"""
|
|
640
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
641
|
+
kwargs['_return_http_data_only'] = True
|
|
642
|
+
|
|
643
|
+
if kwargs.get('async_'):
|
|
644
|
+
return self.get_providers_with_http_info(**kwargs) # noqa: E501
|
|
645
|
+
else:
|
|
646
|
+
(data) = self.get_providers_with_http_info(**kwargs) # noqa: E501
|
|
647
|
+
if (
|
|
648
|
+
data
|
|
649
|
+
and hasattr(data, 'return_value')
|
|
650
|
+
and not ignore_simplified_return_value
|
|
651
|
+
):
|
|
652
|
+
return data.return_value()
|
|
653
|
+
return data
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
def get_providers_with_http_info(self, **kwargs): # noqa: E501
|
|
657
|
+
"""Return a list of all providers on the site
|
|
658
|
+
|
|
659
|
+
Return a list of all providers on the site
|
|
660
|
+
This method makes a synchronous HTTP request by default.
|
|
661
|
+
|
|
662
|
+
:param ProviderClass _class: Limit the response to the given provider class
|
|
663
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
664
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
665
|
+
:param int limit: The maximum number of entries to return.
|
|
666
|
+
:param int skip: The number of entries to skip.
|
|
667
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
668
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
669
|
+
:param bool async_: Perform the request asynchronously
|
|
670
|
+
:return: list[EgressProvider]
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
all_params = ['_class','filter','sort','limit','skip','page','after_id',] # noqa: E501
|
|
674
|
+
all_params.append('async_')
|
|
675
|
+
all_params.append('_return_http_data_only')
|
|
676
|
+
all_params.append('_preload_content')
|
|
677
|
+
all_params.append('_request_timeout')
|
|
678
|
+
all_params.append('_request_out')
|
|
679
|
+
|
|
680
|
+
params = locals()
|
|
681
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
682
|
+
if key not in all_params:
|
|
683
|
+
raise TypeError(
|
|
684
|
+
"Got an unexpected keyword argument '%s'"
|
|
685
|
+
" to method get_providers" % key
|
|
686
|
+
)
|
|
687
|
+
params[key] = val
|
|
688
|
+
del params['kwargs']
|
|
689
|
+
check_filename_params(params)
|
|
690
|
+
|
|
691
|
+
collection_formats = {}
|
|
692
|
+
|
|
693
|
+
path_params = {}
|
|
694
|
+
|
|
695
|
+
query_params = []
|
|
696
|
+
if '_class' in params:
|
|
697
|
+
query_params.append(('class', params['_class'])) # noqa: E501
|
|
698
|
+
if 'filter' in params:
|
|
699
|
+
query_params.append(('filter', params['filter'])) # noqa: E501
|
|
700
|
+
if 'sort' in params:
|
|
701
|
+
query_params.append(('sort', params['sort'])) # noqa: E501
|
|
702
|
+
if 'limit' in params:
|
|
703
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
704
|
+
if 'skip' in params:
|
|
705
|
+
query_params.append(('skip', params['skip'])) # noqa: E501
|
|
706
|
+
if 'page' in params:
|
|
707
|
+
query_params.append(('page', params['page'])) # noqa: E501
|
|
708
|
+
if 'after_id' in params:
|
|
709
|
+
query_params.append(('after_id', params['after_id'])) # noqa: E501
|
|
710
|
+
|
|
711
|
+
header_params = {}
|
|
712
|
+
|
|
713
|
+
form_params = []
|
|
714
|
+
local_var_files = {}
|
|
715
|
+
|
|
716
|
+
body_params = None
|
|
717
|
+
# HTTP header `Accept`
|
|
718
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
719
|
+
['application/json']) # noqa: E501
|
|
720
|
+
|
|
721
|
+
# Authentication setting
|
|
722
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
723
|
+
|
|
724
|
+
return self.api_client.call_api(
|
|
725
|
+
'/site/providers', 'GET',
|
|
726
|
+
path_params,
|
|
727
|
+
query_params,
|
|
728
|
+
header_params,
|
|
729
|
+
body=body_params,
|
|
730
|
+
post_params=form_params,
|
|
731
|
+
files=local_var_files,
|
|
732
|
+
response_type='list[EgressProvider]', # noqa: E501
|
|
733
|
+
auth_settings=auth_settings,
|
|
734
|
+
async_=params.get('async_'),
|
|
735
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
736
|
+
_preload_content=params.get('_preload_content', True),
|
|
737
|
+
_request_timeout=params.get('_request_timeout'),
|
|
738
|
+
_request_out=params.get('_request_out'),
|
|
739
|
+
collection_formats=collection_formats)
|
|
740
|
+
|
|
741
|
+
def get_site_rule(self, rule_id, **kwargs): # noqa: E501
|
|
742
|
+
"""Get a site rule.
|
|
743
|
+
|
|
744
|
+
This method makes a synchronous HTTP request by default.
|
|
745
|
+
|
|
746
|
+
:param str rule_id: (required)
|
|
747
|
+
:param bool async_: Perform the request asynchronously
|
|
748
|
+
:return: GearRule
|
|
749
|
+
"""
|
|
750
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
751
|
+
kwargs['_return_http_data_only'] = True
|
|
752
|
+
|
|
753
|
+
if kwargs.get('async_'):
|
|
754
|
+
return self.get_site_rule_with_http_info(rule_id, **kwargs) # noqa: E501
|
|
755
|
+
else:
|
|
756
|
+
(data) = self.get_site_rule_with_http_info(rule_id, **kwargs) # noqa: E501
|
|
757
|
+
if (
|
|
758
|
+
data
|
|
759
|
+
and hasattr(data, 'return_value')
|
|
760
|
+
and not ignore_simplified_return_value
|
|
761
|
+
):
|
|
762
|
+
return data.return_value()
|
|
763
|
+
return data
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
def get_site_rule_with_http_info(self, rule_id, **kwargs): # noqa: E501
|
|
767
|
+
"""Get a site rule.
|
|
768
|
+
|
|
769
|
+
This method makes a synchronous HTTP request by default.
|
|
770
|
+
|
|
771
|
+
:param str rule_id: (required)
|
|
772
|
+
:param bool async_: Perform the request asynchronously
|
|
773
|
+
:return: GearRule
|
|
774
|
+
"""
|
|
775
|
+
|
|
776
|
+
all_params = ['rule_id',] # noqa: E501
|
|
777
|
+
all_params.append('async_')
|
|
778
|
+
all_params.append('_return_http_data_only')
|
|
779
|
+
all_params.append('_preload_content')
|
|
780
|
+
all_params.append('_request_timeout')
|
|
781
|
+
all_params.append('_request_out')
|
|
782
|
+
|
|
783
|
+
params = locals()
|
|
784
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
785
|
+
if key not in all_params:
|
|
786
|
+
raise TypeError(
|
|
787
|
+
"Got an unexpected keyword argument '%s'"
|
|
788
|
+
" to method get_site_rule" % key
|
|
789
|
+
)
|
|
790
|
+
params[key] = val
|
|
791
|
+
del params['kwargs']
|
|
792
|
+
# verify the required parameter 'rule_id' is set
|
|
793
|
+
if ('rule_id' not in params or
|
|
794
|
+
params['rule_id'] is None):
|
|
795
|
+
raise ValueError("Missing the required parameter `rule_id` when calling `get_site_rule`") # noqa: E501
|
|
796
|
+
check_filename_params(params)
|
|
797
|
+
|
|
798
|
+
collection_formats = {}
|
|
799
|
+
|
|
800
|
+
path_params = {}
|
|
801
|
+
if 'rule_id' in params:
|
|
802
|
+
path_params['rule_id'] = params['rule_id'] # noqa: E501
|
|
803
|
+
|
|
804
|
+
query_params = []
|
|
805
|
+
|
|
806
|
+
header_params = {}
|
|
807
|
+
|
|
808
|
+
form_params = []
|
|
809
|
+
local_var_files = {}
|
|
810
|
+
|
|
811
|
+
body_params = None
|
|
812
|
+
# HTTP header `Accept`
|
|
813
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
814
|
+
['application/json']) # noqa: E501
|
|
815
|
+
|
|
816
|
+
# Authentication setting
|
|
817
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
818
|
+
|
|
819
|
+
return self.api_client.call_api(
|
|
820
|
+
'/site/rules/{rule_id}', 'GET',
|
|
821
|
+
path_params,
|
|
822
|
+
query_params,
|
|
823
|
+
header_params,
|
|
824
|
+
body=body_params,
|
|
825
|
+
post_params=form_params,
|
|
826
|
+
files=local_var_files,
|
|
827
|
+
response_type='GearRule', # noqa: E501
|
|
828
|
+
auth_settings=auth_settings,
|
|
829
|
+
async_=params.get('async_'),
|
|
830
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
831
|
+
_preload_content=params.get('_preload_content', True),
|
|
832
|
+
_request_timeout=params.get('_request_timeout'),
|
|
833
|
+
_request_out=params.get('_request_out'),
|
|
834
|
+
collection_formats=collection_formats)
|
|
835
|
+
|
|
836
|
+
def get_site_rules(self, **kwargs): # noqa: E501
|
|
837
|
+
"""List all site rules.
|
|
838
|
+
|
|
839
|
+
This method makes a synchronous HTTP request by default.
|
|
840
|
+
|
|
841
|
+
:param int limit:
|
|
842
|
+
:param str after_id:
|
|
843
|
+
:param str name:
|
|
844
|
+
:param bool async_: Perform the request asynchronously
|
|
845
|
+
:return: list[GearRule]
|
|
846
|
+
"""
|
|
847
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
848
|
+
kwargs['_return_http_data_only'] = True
|
|
849
|
+
|
|
850
|
+
if kwargs.get('async_'):
|
|
851
|
+
return self.get_site_rules_with_http_info(**kwargs) # noqa: E501
|
|
852
|
+
else:
|
|
853
|
+
(data) = self.get_site_rules_with_http_info(**kwargs) # noqa: E501
|
|
854
|
+
if (
|
|
855
|
+
data
|
|
856
|
+
and hasattr(data, 'return_value')
|
|
857
|
+
and not ignore_simplified_return_value
|
|
858
|
+
):
|
|
859
|
+
return data.return_value()
|
|
860
|
+
return data
|
|
861
|
+
|
|
862
|
+
|
|
863
|
+
def get_site_rules_with_http_info(self, **kwargs): # noqa: E501
|
|
864
|
+
"""List all site rules.
|
|
865
|
+
|
|
866
|
+
This method makes a synchronous HTTP request by default.
|
|
867
|
+
|
|
868
|
+
:param int limit:
|
|
869
|
+
:param str after_id:
|
|
870
|
+
:param str name:
|
|
871
|
+
:param bool async_: Perform the request asynchronously
|
|
872
|
+
:return: list[GearRule]
|
|
873
|
+
"""
|
|
874
|
+
|
|
875
|
+
all_params = ['limit','after_id','name',] # noqa: E501
|
|
876
|
+
all_params.append('async_')
|
|
877
|
+
all_params.append('_return_http_data_only')
|
|
878
|
+
all_params.append('_preload_content')
|
|
879
|
+
all_params.append('_request_timeout')
|
|
880
|
+
all_params.append('_request_out')
|
|
881
|
+
|
|
882
|
+
params = locals()
|
|
883
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
884
|
+
if key not in all_params:
|
|
885
|
+
raise TypeError(
|
|
886
|
+
"Got an unexpected keyword argument '%s'"
|
|
887
|
+
" to method get_site_rules" % key
|
|
888
|
+
)
|
|
889
|
+
params[key] = val
|
|
890
|
+
del params['kwargs']
|
|
891
|
+
check_filename_params(params)
|
|
892
|
+
|
|
893
|
+
collection_formats = {}
|
|
894
|
+
|
|
895
|
+
path_params = {}
|
|
896
|
+
|
|
897
|
+
query_params = []
|
|
898
|
+
if 'limit' in params:
|
|
899
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
900
|
+
if 'after_id' in params:
|
|
901
|
+
query_params.append(('after_id', params['after_id'])) # noqa: E501
|
|
902
|
+
if 'name' in params:
|
|
903
|
+
query_params.append(('name', params['name'])) # noqa: E501
|
|
904
|
+
|
|
905
|
+
header_params = {}
|
|
906
|
+
|
|
907
|
+
form_params = []
|
|
908
|
+
local_var_files = {}
|
|
909
|
+
|
|
910
|
+
body_params = None
|
|
911
|
+
# HTTP header `Accept`
|
|
912
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
913
|
+
['application/json']) # noqa: E501
|
|
914
|
+
|
|
915
|
+
# Authentication setting
|
|
916
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
917
|
+
|
|
918
|
+
return self.api_client.call_api(
|
|
919
|
+
'/site/rules', 'GET',
|
|
920
|
+
path_params,
|
|
921
|
+
query_params,
|
|
922
|
+
header_params,
|
|
923
|
+
body=body_params,
|
|
924
|
+
post_params=form_params,
|
|
925
|
+
files=local_var_files,
|
|
926
|
+
response_type='list[GearRule]', # noqa: E501
|
|
927
|
+
auth_settings=auth_settings,
|
|
928
|
+
async_=params.get('async_'),
|
|
929
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
930
|
+
_preload_content=params.get('_preload_content', True),
|
|
931
|
+
_request_timeout=params.get('_request_timeout'),
|
|
932
|
+
_request_out=params.get('_request_out'),
|
|
933
|
+
collection_formats=collection_formats)
|
|
934
|
+
|
|
935
|
+
def get_site_settings(self, **kwargs): # noqa: E501
|
|
936
|
+
"""Return administrative site settings
|
|
937
|
+
|
|
938
|
+
Returns the site settings, which includes center-pays gear list. If the site settings have never been created, then center_gears will be null, rather than an empty list.
|
|
939
|
+
This method makes a synchronous HTTP request by default.
|
|
940
|
+
|
|
941
|
+
:param bool async_: Perform the request asynchronously
|
|
942
|
+
:return: SiteSettings
|
|
943
|
+
"""
|
|
944
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
945
|
+
kwargs['_return_http_data_only'] = True
|
|
946
|
+
|
|
947
|
+
if kwargs.get('async_'):
|
|
948
|
+
return self.get_site_settings_with_http_info(**kwargs) # noqa: E501
|
|
949
|
+
else:
|
|
950
|
+
(data) = self.get_site_settings_with_http_info(**kwargs) # noqa: E501
|
|
951
|
+
if (
|
|
952
|
+
data
|
|
953
|
+
and hasattr(data, 'return_value')
|
|
954
|
+
and not ignore_simplified_return_value
|
|
955
|
+
):
|
|
956
|
+
return data.return_value()
|
|
957
|
+
return data
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
def get_site_settings_with_http_info(self, **kwargs): # noqa: E501
|
|
961
|
+
"""Return administrative site settings
|
|
962
|
+
|
|
963
|
+
Returns the site settings, which includes center-pays gear list. If the site settings have never been created, then center_gears will be null, rather than an empty list.
|
|
964
|
+
This method makes a synchronous HTTP request by default.
|
|
965
|
+
|
|
966
|
+
:param bool async_: Perform the request asynchronously
|
|
967
|
+
:return: SiteSettings
|
|
968
|
+
"""
|
|
969
|
+
|
|
970
|
+
all_params = [] # noqa: E501
|
|
971
|
+
all_params.append('async_')
|
|
972
|
+
all_params.append('_return_http_data_only')
|
|
973
|
+
all_params.append('_preload_content')
|
|
974
|
+
all_params.append('_request_timeout')
|
|
975
|
+
all_params.append('_request_out')
|
|
976
|
+
|
|
977
|
+
params = locals()
|
|
978
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
979
|
+
if key not in all_params:
|
|
980
|
+
raise TypeError(
|
|
981
|
+
"Got an unexpected keyword argument '%s'"
|
|
982
|
+
" to method get_site_settings" % key
|
|
983
|
+
)
|
|
984
|
+
params[key] = val
|
|
985
|
+
del params['kwargs']
|
|
986
|
+
check_filename_params(params)
|
|
987
|
+
|
|
988
|
+
collection_formats = {}
|
|
989
|
+
|
|
990
|
+
path_params = {}
|
|
991
|
+
|
|
992
|
+
query_params = []
|
|
993
|
+
|
|
994
|
+
header_params = {}
|
|
995
|
+
|
|
996
|
+
form_params = []
|
|
997
|
+
local_var_files = {}
|
|
998
|
+
|
|
999
|
+
body_params = None
|
|
1000
|
+
# HTTP header `Accept`
|
|
1001
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1002
|
+
['application/json']) # noqa: E501
|
|
1003
|
+
|
|
1004
|
+
# Authentication setting
|
|
1005
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1006
|
+
|
|
1007
|
+
return self.api_client.call_api(
|
|
1008
|
+
'/site/settings', 'GET',
|
|
1009
|
+
path_params,
|
|
1010
|
+
query_params,
|
|
1011
|
+
header_params,
|
|
1012
|
+
body=body_params,
|
|
1013
|
+
post_params=form_params,
|
|
1014
|
+
files=local_var_files,
|
|
1015
|
+
response_type='SiteSettings', # noqa: E501
|
|
1016
|
+
auth_settings=auth_settings,
|
|
1017
|
+
async_=params.get('async_'),
|
|
1018
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1019
|
+
_preload_content=params.get('_preload_content', True),
|
|
1020
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1021
|
+
_request_out=params.get('_request_out'),
|
|
1022
|
+
collection_formats=collection_formats)
|
|
1023
|
+
|
|
1024
|
+
def modify_bookmark_list(self, body, **kwargs): # noqa: E501
|
|
1025
|
+
"""Modify Bookmark List
|
|
1026
|
+
|
|
1027
|
+
This method makes a synchronous HTTP request by default.
|
|
1028
|
+
|
|
1029
|
+
:param list[Bookmark] body: (required)
|
|
1030
|
+
:param bool async_: Perform the request asynchronously
|
|
1031
|
+
:return: list[Bookmark]
|
|
1032
|
+
"""
|
|
1033
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1034
|
+
kwargs['_return_http_data_only'] = True
|
|
1035
|
+
|
|
1036
|
+
if kwargs.get('async_'):
|
|
1037
|
+
return self.modify_bookmark_list_with_http_info(body, **kwargs) # noqa: E501
|
|
1038
|
+
else:
|
|
1039
|
+
(data) = self.modify_bookmark_list_with_http_info(body, **kwargs) # noqa: E501
|
|
1040
|
+
if (
|
|
1041
|
+
data
|
|
1042
|
+
and hasattr(data, 'return_value')
|
|
1043
|
+
and not ignore_simplified_return_value
|
|
1044
|
+
):
|
|
1045
|
+
return data.return_value()
|
|
1046
|
+
return data
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
def modify_bookmark_list_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1050
|
+
"""Modify Bookmark List
|
|
1051
|
+
|
|
1052
|
+
This method makes a synchronous HTTP request by default.
|
|
1053
|
+
|
|
1054
|
+
:param list[Bookmark] body: (required)
|
|
1055
|
+
:param bool async_: Perform the request asynchronously
|
|
1056
|
+
:return: list[Bookmark]
|
|
1057
|
+
"""
|
|
1058
|
+
|
|
1059
|
+
all_params = ['body',] # noqa: E501
|
|
1060
|
+
all_params.append('async_')
|
|
1061
|
+
all_params.append('_return_http_data_only')
|
|
1062
|
+
all_params.append('_preload_content')
|
|
1063
|
+
all_params.append('_request_timeout')
|
|
1064
|
+
all_params.append('_request_out')
|
|
1065
|
+
|
|
1066
|
+
params = locals()
|
|
1067
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1068
|
+
if key not in all_params:
|
|
1069
|
+
raise TypeError(
|
|
1070
|
+
"Got an unexpected keyword argument '%s'"
|
|
1071
|
+
" to method modify_bookmark_list" % key
|
|
1072
|
+
)
|
|
1073
|
+
params[key] = val
|
|
1074
|
+
del params['kwargs']
|
|
1075
|
+
# verify the required parameter 'body' is set
|
|
1076
|
+
if ('body' not in params or
|
|
1077
|
+
params['body'] is None):
|
|
1078
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_bookmark_list`") # noqa: E501
|
|
1079
|
+
check_filename_params(params)
|
|
1080
|
+
|
|
1081
|
+
collection_formats = {}
|
|
1082
|
+
|
|
1083
|
+
path_params = {}
|
|
1084
|
+
|
|
1085
|
+
query_params = []
|
|
1086
|
+
|
|
1087
|
+
header_params = {}
|
|
1088
|
+
|
|
1089
|
+
form_params = []
|
|
1090
|
+
local_var_files = {}
|
|
1091
|
+
|
|
1092
|
+
body_params = None
|
|
1093
|
+
if 'body' in params:
|
|
1094
|
+
body_params = params['body']
|
|
1095
|
+
# HTTP header `Accept`
|
|
1096
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1097
|
+
['application/json']) # noqa: E501
|
|
1098
|
+
|
|
1099
|
+
# HTTP header `Content-Type`
|
|
1100
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1101
|
+
['application/json']) # noqa: E501
|
|
1102
|
+
|
|
1103
|
+
# Authentication setting
|
|
1104
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1105
|
+
|
|
1106
|
+
return self.api_client.call_api(
|
|
1107
|
+
'/site/bookmark-list', 'PUT',
|
|
1108
|
+
path_params,
|
|
1109
|
+
query_params,
|
|
1110
|
+
header_params,
|
|
1111
|
+
body=body_params,
|
|
1112
|
+
post_params=form_params,
|
|
1113
|
+
files=local_var_files,
|
|
1114
|
+
response_type='list[Bookmark]', # noqa: E501
|
|
1115
|
+
auth_settings=auth_settings,
|
|
1116
|
+
async_=params.get('async_'),
|
|
1117
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1118
|
+
_preload_content=params.get('_preload_content', True),
|
|
1119
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1120
|
+
_request_out=params.get('_request_out'),
|
|
1121
|
+
collection_formats=collection_formats)
|
|
1122
|
+
|
|
1123
|
+
def modify_provider(self, provider_id, body, **kwargs): # noqa: E501
|
|
1124
|
+
"""Update the provider identified by ProviderId
|
|
1125
|
+
|
|
1126
|
+
Update the provider identified by ProviderId
|
|
1127
|
+
This method makes a synchronous HTTP request by default.
|
|
1128
|
+
|
|
1129
|
+
:param str provider_id: The ID of the provider (required)
|
|
1130
|
+
:param IngressUpdateProvider body: (required)
|
|
1131
|
+
:param bool async_: Perform the request asynchronously
|
|
1132
|
+
:return: EgressProvider
|
|
1133
|
+
"""
|
|
1134
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1135
|
+
kwargs['_return_http_data_only'] = True
|
|
1136
|
+
|
|
1137
|
+
if kwargs.get('async_'):
|
|
1138
|
+
return self.modify_provider_with_http_info(provider_id, body, **kwargs) # noqa: E501
|
|
1139
|
+
else:
|
|
1140
|
+
(data) = self.modify_provider_with_http_info(provider_id, body, **kwargs) # noqa: E501
|
|
1141
|
+
if (
|
|
1142
|
+
data
|
|
1143
|
+
and hasattr(data, 'return_value')
|
|
1144
|
+
and not ignore_simplified_return_value
|
|
1145
|
+
):
|
|
1146
|
+
return data.return_value()
|
|
1147
|
+
return data
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
def modify_provider_with_http_info(self, provider_id, body, **kwargs): # noqa: E501
|
|
1151
|
+
"""Update the provider identified by ProviderId
|
|
1152
|
+
|
|
1153
|
+
Update the provider identified by ProviderId
|
|
1154
|
+
This method makes a synchronous HTTP request by default.
|
|
1155
|
+
|
|
1156
|
+
:param str provider_id: The ID of the provider (required)
|
|
1157
|
+
:param IngressUpdateProvider body: (required)
|
|
1158
|
+
:param bool async_: Perform the request asynchronously
|
|
1159
|
+
:return: EgressProvider
|
|
1160
|
+
"""
|
|
1161
|
+
|
|
1162
|
+
all_params = ['provider_id','body',] # noqa: E501
|
|
1163
|
+
all_params.append('async_')
|
|
1164
|
+
all_params.append('_return_http_data_only')
|
|
1165
|
+
all_params.append('_preload_content')
|
|
1166
|
+
all_params.append('_request_timeout')
|
|
1167
|
+
all_params.append('_request_out')
|
|
1168
|
+
|
|
1169
|
+
params = locals()
|
|
1170
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1171
|
+
if key not in all_params:
|
|
1172
|
+
raise TypeError(
|
|
1173
|
+
"Got an unexpected keyword argument '%s'"
|
|
1174
|
+
" to method modify_provider" % key
|
|
1175
|
+
)
|
|
1176
|
+
params[key] = val
|
|
1177
|
+
del params['kwargs']
|
|
1178
|
+
# verify the required parameter 'provider_id' is set
|
|
1179
|
+
if ('provider_id' not in params or
|
|
1180
|
+
params['provider_id'] is None):
|
|
1181
|
+
raise ValueError("Missing the required parameter `provider_id` when calling `modify_provider`") # noqa: E501
|
|
1182
|
+
# verify the required parameter 'body' is set
|
|
1183
|
+
if ('body' not in params or
|
|
1184
|
+
params['body'] is None):
|
|
1185
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_provider`") # noqa: E501
|
|
1186
|
+
check_filename_params(params)
|
|
1187
|
+
|
|
1188
|
+
collection_formats = {}
|
|
1189
|
+
|
|
1190
|
+
path_params = {}
|
|
1191
|
+
if 'provider_id' in params:
|
|
1192
|
+
path_params['provider_id'] = params['provider_id'] # noqa: E501
|
|
1193
|
+
|
|
1194
|
+
query_params = []
|
|
1195
|
+
|
|
1196
|
+
header_params = {}
|
|
1197
|
+
|
|
1198
|
+
form_params = []
|
|
1199
|
+
local_var_files = {}
|
|
1200
|
+
|
|
1201
|
+
body_params = None
|
|
1202
|
+
if 'body' in params:
|
|
1203
|
+
if 'IngressUpdateProvider'.startswith('union'):
|
|
1204
|
+
body_type = type(params['body'])
|
|
1205
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
1206
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
1207
|
+
else:
|
|
1208
|
+
body_params = params['body']
|
|
1209
|
+
else:
|
|
1210
|
+
body_params = flywheel.models.IngressUpdateProvider.positional_to_model(params['body'])
|
|
1211
|
+
# HTTP header `Accept`
|
|
1212
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1213
|
+
['application/json']) # noqa: E501
|
|
1214
|
+
|
|
1215
|
+
# HTTP header `Content-Type`
|
|
1216
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1217
|
+
['application/json']) # noqa: E501
|
|
1218
|
+
|
|
1219
|
+
# Authentication setting
|
|
1220
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1221
|
+
|
|
1222
|
+
return self.api_client.call_api(
|
|
1223
|
+
'/site/providers/{provider_id}', 'PUT',
|
|
1224
|
+
path_params,
|
|
1225
|
+
query_params,
|
|
1226
|
+
header_params,
|
|
1227
|
+
body=body_params,
|
|
1228
|
+
post_params=form_params,
|
|
1229
|
+
files=local_var_files,
|
|
1230
|
+
response_type='EgressProvider', # noqa: E501
|
|
1231
|
+
auth_settings=auth_settings,
|
|
1232
|
+
async_=params.get('async_'),
|
|
1233
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1234
|
+
_preload_content=params.get('_preload_content', True),
|
|
1235
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1236
|
+
_request_out=params.get('_request_out'),
|
|
1237
|
+
collection_formats=collection_formats)
|
|
1238
|
+
|
|
1239
|
+
def modify_site_rule(self, rule_id, body, **kwargs): # noqa: E501
|
|
1240
|
+
"""Update a site rule.
|
|
1241
|
+
|
|
1242
|
+
This method makes a synchronous HTTP request by default.
|
|
1243
|
+
|
|
1244
|
+
:param str rule_id: (required)
|
|
1245
|
+
:param GearRuleModifyInput body: (required)
|
|
1246
|
+
:param bool async_: Perform the request asynchronously
|
|
1247
|
+
:return: GearRule
|
|
1248
|
+
"""
|
|
1249
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1250
|
+
kwargs['_return_http_data_only'] = True
|
|
1251
|
+
|
|
1252
|
+
if kwargs.get('async_'):
|
|
1253
|
+
return self.modify_site_rule_with_http_info(rule_id, body, **kwargs) # noqa: E501
|
|
1254
|
+
else:
|
|
1255
|
+
(data) = self.modify_site_rule_with_http_info(rule_id, body, **kwargs) # noqa: E501
|
|
1256
|
+
if (
|
|
1257
|
+
data
|
|
1258
|
+
and hasattr(data, 'return_value')
|
|
1259
|
+
and not ignore_simplified_return_value
|
|
1260
|
+
):
|
|
1261
|
+
return data.return_value()
|
|
1262
|
+
return data
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
def modify_site_rule_with_http_info(self, rule_id, body, **kwargs): # noqa: E501
|
|
1266
|
+
"""Update a site rule.
|
|
1267
|
+
|
|
1268
|
+
This method makes a synchronous HTTP request by default.
|
|
1269
|
+
|
|
1270
|
+
:param str rule_id: (required)
|
|
1271
|
+
:param GearRuleModifyInput body: (required)
|
|
1272
|
+
:param bool async_: Perform the request asynchronously
|
|
1273
|
+
:return: GearRule
|
|
1274
|
+
"""
|
|
1275
|
+
|
|
1276
|
+
all_params = ['rule_id','body',] # noqa: E501
|
|
1277
|
+
all_params.append('async_')
|
|
1278
|
+
all_params.append('_return_http_data_only')
|
|
1279
|
+
all_params.append('_preload_content')
|
|
1280
|
+
all_params.append('_request_timeout')
|
|
1281
|
+
all_params.append('_request_out')
|
|
1282
|
+
|
|
1283
|
+
params = locals()
|
|
1284
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1285
|
+
if key not in all_params:
|
|
1286
|
+
raise TypeError(
|
|
1287
|
+
"Got an unexpected keyword argument '%s'"
|
|
1288
|
+
" to method modify_site_rule" % key
|
|
1289
|
+
)
|
|
1290
|
+
params[key] = val
|
|
1291
|
+
del params['kwargs']
|
|
1292
|
+
# verify the required parameter 'rule_id' is set
|
|
1293
|
+
if ('rule_id' not in params or
|
|
1294
|
+
params['rule_id'] is None):
|
|
1295
|
+
raise ValueError("Missing the required parameter `rule_id` when calling `modify_site_rule`") # noqa: E501
|
|
1296
|
+
# verify the required parameter 'body' is set
|
|
1297
|
+
if ('body' not in params or
|
|
1298
|
+
params['body'] is None):
|
|
1299
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_site_rule`") # noqa: E501
|
|
1300
|
+
check_filename_params(params)
|
|
1301
|
+
|
|
1302
|
+
collection_formats = {}
|
|
1303
|
+
|
|
1304
|
+
path_params = {}
|
|
1305
|
+
if 'rule_id' in params:
|
|
1306
|
+
path_params['rule_id'] = params['rule_id'] # noqa: E501
|
|
1307
|
+
|
|
1308
|
+
query_params = []
|
|
1309
|
+
|
|
1310
|
+
header_params = {}
|
|
1311
|
+
|
|
1312
|
+
form_params = []
|
|
1313
|
+
local_var_files = {}
|
|
1314
|
+
|
|
1315
|
+
body_params = None
|
|
1316
|
+
if 'body' in params:
|
|
1317
|
+
if 'GearRuleModifyInput'.startswith('union'):
|
|
1318
|
+
body_type = type(params['body'])
|
|
1319
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
1320
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
1321
|
+
else:
|
|
1322
|
+
body_params = params['body']
|
|
1323
|
+
else:
|
|
1324
|
+
body_params = flywheel.models.GearRuleModifyInput.positional_to_model(params['body'])
|
|
1325
|
+
# HTTP header `Accept`
|
|
1326
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1327
|
+
['application/json']) # noqa: E501
|
|
1328
|
+
|
|
1329
|
+
# HTTP header `Content-Type`
|
|
1330
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1331
|
+
['application/json']) # noqa: E501
|
|
1332
|
+
|
|
1333
|
+
# Authentication setting
|
|
1334
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1335
|
+
|
|
1336
|
+
return self.api_client.call_api(
|
|
1337
|
+
'/site/rules/{rule_id}', 'PUT',
|
|
1338
|
+
path_params,
|
|
1339
|
+
query_params,
|
|
1340
|
+
header_params,
|
|
1341
|
+
body=body_params,
|
|
1342
|
+
post_params=form_params,
|
|
1343
|
+
files=local_var_files,
|
|
1344
|
+
response_type='GearRule', # noqa: E501
|
|
1345
|
+
auth_settings=auth_settings,
|
|
1346
|
+
async_=params.get('async_'),
|
|
1347
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1348
|
+
_preload_content=params.get('_preload_content', True),
|
|
1349
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1350
|
+
_request_out=params.get('_request_out'),
|
|
1351
|
+
collection_formats=collection_formats)
|
|
1352
|
+
|
|
1353
|
+
def modify_site_settings(self, body, **kwargs): # noqa: E501
|
|
1354
|
+
"""Update administrative site settings
|
|
1355
|
+
|
|
1356
|
+
This method makes a synchronous HTTP request by default.
|
|
1357
|
+
|
|
1358
|
+
:param IngressSiteSettings body: (required)
|
|
1359
|
+
:param bool async_: Perform the request asynchronously
|
|
1360
|
+
:return: SiteSettings
|
|
1361
|
+
"""
|
|
1362
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1363
|
+
kwargs['_return_http_data_only'] = True
|
|
1364
|
+
|
|
1365
|
+
if kwargs.get('async_'):
|
|
1366
|
+
return self.modify_site_settings_with_http_info(body, **kwargs) # noqa: E501
|
|
1367
|
+
else:
|
|
1368
|
+
(data) = self.modify_site_settings_with_http_info(body, **kwargs) # noqa: E501
|
|
1369
|
+
if (
|
|
1370
|
+
data
|
|
1371
|
+
and hasattr(data, 'return_value')
|
|
1372
|
+
and not ignore_simplified_return_value
|
|
1373
|
+
):
|
|
1374
|
+
return data.return_value()
|
|
1375
|
+
return data
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
def modify_site_settings_with_http_info(self, body, **kwargs): # noqa: E501
|
|
1379
|
+
"""Update administrative site settings
|
|
1380
|
+
|
|
1381
|
+
This method makes a synchronous HTTP request by default.
|
|
1382
|
+
|
|
1383
|
+
:param IngressSiteSettings body: (required)
|
|
1384
|
+
:param bool async_: Perform the request asynchronously
|
|
1385
|
+
:return: SiteSettings
|
|
1386
|
+
"""
|
|
1387
|
+
|
|
1388
|
+
all_params = ['body',] # noqa: E501
|
|
1389
|
+
all_params.append('async_')
|
|
1390
|
+
all_params.append('_return_http_data_only')
|
|
1391
|
+
all_params.append('_preload_content')
|
|
1392
|
+
all_params.append('_request_timeout')
|
|
1393
|
+
all_params.append('_request_out')
|
|
1394
|
+
|
|
1395
|
+
params = locals()
|
|
1396
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1397
|
+
if key not in all_params:
|
|
1398
|
+
raise TypeError(
|
|
1399
|
+
"Got an unexpected keyword argument '%s'"
|
|
1400
|
+
" to method modify_site_settings" % key
|
|
1401
|
+
)
|
|
1402
|
+
params[key] = val
|
|
1403
|
+
del params['kwargs']
|
|
1404
|
+
# verify the required parameter 'body' is set
|
|
1405
|
+
if ('body' not in params or
|
|
1406
|
+
params['body'] is None):
|
|
1407
|
+
raise ValueError("Missing the required parameter `body` when calling `modify_site_settings`") # noqa: E501
|
|
1408
|
+
check_filename_params(params)
|
|
1409
|
+
|
|
1410
|
+
collection_formats = {}
|
|
1411
|
+
|
|
1412
|
+
path_params = {}
|
|
1413
|
+
|
|
1414
|
+
query_params = []
|
|
1415
|
+
|
|
1416
|
+
header_params = {}
|
|
1417
|
+
|
|
1418
|
+
form_params = []
|
|
1419
|
+
local_var_files = {}
|
|
1420
|
+
|
|
1421
|
+
body_params = None
|
|
1422
|
+
if 'body' in params:
|
|
1423
|
+
if 'IngressSiteSettings'.startswith('union'):
|
|
1424
|
+
body_type = type(params['body'])
|
|
1425
|
+
if getattr(body_type, 'positional_to_model', None):
|
|
1426
|
+
body_params = body_type.positional_to_model(params['body'])
|
|
1427
|
+
else:
|
|
1428
|
+
body_params = params['body']
|
|
1429
|
+
else:
|
|
1430
|
+
body_params = flywheel.models.IngressSiteSettings.positional_to_model(params['body'])
|
|
1431
|
+
# HTTP header `Accept`
|
|
1432
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1433
|
+
['application/json']) # noqa: E501
|
|
1434
|
+
|
|
1435
|
+
# HTTP header `Content-Type`
|
|
1436
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1437
|
+
['application/json']) # noqa: E501
|
|
1438
|
+
|
|
1439
|
+
# Authentication setting
|
|
1440
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1441
|
+
|
|
1442
|
+
return self.api_client.call_api(
|
|
1443
|
+
'/site/settings', 'PUT',
|
|
1444
|
+
path_params,
|
|
1445
|
+
query_params,
|
|
1446
|
+
header_params,
|
|
1447
|
+
body=body_params,
|
|
1448
|
+
post_params=form_params,
|
|
1449
|
+
files=local_var_files,
|
|
1450
|
+
response_type='SiteSettings', # noqa: E501
|
|
1451
|
+
auth_settings=auth_settings,
|
|
1452
|
+
async_=params.get('async_'),
|
|
1453
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1454
|
+
_preload_content=params.get('_preload_content', True),
|
|
1455
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1456
|
+
_request_out=params.get('_request_out'),
|
|
1457
|
+
collection_formats=collection_formats)
|
|
1458
|
+
|
|
1459
|
+
def remove_site_rule(self, rule_id, **kwargs): # noqa: E501
|
|
1460
|
+
"""Remove a site rule.
|
|
1461
|
+
|
|
1462
|
+
This method makes a synchronous HTTP request by default.
|
|
1463
|
+
|
|
1464
|
+
:param str rule_id: (required)
|
|
1465
|
+
:param bool async_: Perform the request asynchronously
|
|
1466
|
+
:return: None
|
|
1467
|
+
"""
|
|
1468
|
+
ignore_simplified_return_value = kwargs.pop('_ignore_simplified_return_value', False)
|
|
1469
|
+
kwargs['_return_http_data_only'] = True
|
|
1470
|
+
|
|
1471
|
+
if kwargs.get('async_'):
|
|
1472
|
+
return self.remove_site_rule_with_http_info(rule_id, **kwargs) # noqa: E501
|
|
1473
|
+
else:
|
|
1474
|
+
(data) = self.remove_site_rule_with_http_info(rule_id, **kwargs) # noqa: E501
|
|
1475
|
+
if (
|
|
1476
|
+
data
|
|
1477
|
+
and hasattr(data, 'return_value')
|
|
1478
|
+
and not ignore_simplified_return_value
|
|
1479
|
+
):
|
|
1480
|
+
return data.return_value()
|
|
1481
|
+
return data
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
def remove_site_rule_with_http_info(self, rule_id, **kwargs): # noqa: E501
|
|
1485
|
+
"""Remove a site rule.
|
|
1486
|
+
|
|
1487
|
+
This method makes a synchronous HTTP request by default.
|
|
1488
|
+
|
|
1489
|
+
:param str rule_id: (required)
|
|
1490
|
+
:param bool async_: Perform the request asynchronously
|
|
1491
|
+
:return: None
|
|
1492
|
+
"""
|
|
1493
|
+
|
|
1494
|
+
all_params = ['rule_id',] # noqa: E501
|
|
1495
|
+
all_params.append('async_')
|
|
1496
|
+
all_params.append('_return_http_data_only')
|
|
1497
|
+
all_params.append('_preload_content')
|
|
1498
|
+
all_params.append('_request_timeout')
|
|
1499
|
+
all_params.append('_request_out')
|
|
1500
|
+
|
|
1501
|
+
params = locals()
|
|
1502
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1503
|
+
if key not in all_params:
|
|
1504
|
+
raise TypeError(
|
|
1505
|
+
"Got an unexpected keyword argument '%s'"
|
|
1506
|
+
" to method remove_site_rule" % key
|
|
1507
|
+
)
|
|
1508
|
+
params[key] = val
|
|
1509
|
+
del params['kwargs']
|
|
1510
|
+
# verify the required parameter 'rule_id' is set
|
|
1511
|
+
if ('rule_id' not in params or
|
|
1512
|
+
params['rule_id'] is None):
|
|
1513
|
+
raise ValueError("Missing the required parameter `rule_id` when calling `remove_site_rule`") # noqa: E501
|
|
1514
|
+
check_filename_params(params)
|
|
1515
|
+
|
|
1516
|
+
collection_formats = {}
|
|
1517
|
+
|
|
1518
|
+
path_params = {}
|
|
1519
|
+
if 'rule_id' in params:
|
|
1520
|
+
path_params['rule_id'] = params['rule_id'] # noqa: E501
|
|
1521
|
+
|
|
1522
|
+
query_params = []
|
|
1523
|
+
|
|
1524
|
+
header_params = {}
|
|
1525
|
+
|
|
1526
|
+
form_params = []
|
|
1527
|
+
local_var_files = {}
|
|
1528
|
+
|
|
1529
|
+
body_params = None
|
|
1530
|
+
# HTTP header `Accept`
|
|
1531
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1532
|
+
['application/json']) # noqa: E501
|
|
1533
|
+
|
|
1534
|
+
# Authentication setting
|
|
1535
|
+
auth_settings = ['ApiKey'] # noqa: E501
|
|
1536
|
+
|
|
1537
|
+
return self.api_client.call_api(
|
|
1538
|
+
'/site/rules/{rule_id}', 'DELETE',
|
|
1539
|
+
path_params,
|
|
1540
|
+
query_params,
|
|
1541
|
+
header_params,
|
|
1542
|
+
body=body_params,
|
|
1543
|
+
post_params=form_params,
|
|
1544
|
+
files=local_var_files,
|
|
1545
|
+
response_type=None, # noqa: E501
|
|
1546
|
+
auth_settings=auth_settings,
|
|
1547
|
+
async_=params.get('async_'),
|
|
1548
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1549
|
+
_preload_content=params.get('_preload_content', True),
|
|
1550
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1551
|
+
_request_out=params.get('_request_out'),
|
|
1552
|
+
collection_formats=collection_formats)
|