ctm-python-client 2.1.2__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.
- aapi/__init__.py +79 -0
- aapi/action.py +47 -0
- aapi/addevents.py +16 -0
- aapi/ai.py +63 -0
- aapi/basefolder.py +288 -0
- aapi/bases.py +60 -0
- aapi/businessfield.py +14 -0
- aapi/businessparameter.py +70 -0
- aapi/calendar.py +207 -0
- aapi/calendarfields.py +38 -0
- aapi/calendarkey.py +38 -0
- aapi/captureoutput.py +55 -0
- aapi/condition.py +53 -0
- aapi/config.py +26 -0
- aapi/connectionprofile.py +973 -0
- aapi/ctbruledata.py +17 -0
- aapi/date.py +14 -0
- aapi/definitionitemdetails.py +14 -0
- aapi/deleteevents.py +16 -0
- aapi/disallowedoptions.py +14 -0
- aapi/do.py +14 -0
- aapi/donotify.py +31 -0
- aapi/driver.py +27 -0
- aapi/endpoint.py +202 -0
- aapi/event.py +42 -0
- aapi/extractrule.py +21 -0
- aapi/filetransfer.py +139 -0
- aapi/filetransfergroup.py +14 -0
- aapi/flow_.py +16 -0
- aapi/folderclientdata.py +14 -0
- aapi/folderjobbase.py +229 -0
- aapi/hostfiletransfer.py +14 -0
- aapi/hostmapping.py +24 -0
- aapi/if_.py +106 -0
- aapi/ifbase.py +144 -0
- aapi/ifcollection.py +26 -0
- aapi/ifrerun.py +24 -0
- aapi/integration_factory/__init__.py +0 -0
- aapi/integration_factory/connection_profiles.py +859 -0
- aapi/integration_factory/jobs.py +1185 -0
- aapi/internalrule.py +68 -0
- aapi/iteminfo.py +14 -0
- aapi/job.py +2603 -0
- aapi/jobsfilter.py +14 -0
- aapi/jobtag.py +20 -0
- aapi/mail.py +32 -0
- aapi/notify.py +98 -0
- aapi/on.py +14 -0
- aapi/output.py +25 -0
- aapi/package.py +23 -0
- aapi/packageparams.py +15 -0
- aapi/period.py +56 -0
- aapi/possibleoptions.py +14 -0
- aapi/propertycondition.py +65 -0
- aapi/rbcdetails.py +14 -0
- aapi/remedy.py +27 -0
- aapi/resource.py +60 -0
- aapi/resourcepools.py +118 -0
- aapi/run.py +29 -0
- aapi/runningjobs.py +120 -0
- aapi/set_.py +18 -0
- aapi/sitestandard.py +24 -0
- aapi/sitestandarddata.py +14 -0
- aapi/sitestandardoperatorvalueoptions.py +27 -0
- aapi/sitestandardpolicy.py +45 -0
- aapi/sitestandardpolicydata.py +14 -0
- aapi/sitestandardpossiblevalue.py +18 -0
- aapi/sitestandardrestriction.py +48 -0
- aapi/steprange.py +22 -0
- aapi/tag.py +46 -0
- aapi/time.py +14 -0
- aapi/variable.py +14 -0
- aapi/waitforevents.py +16 -0
- aapi/workloadflat.py +14 -0
- aapi/workloadpolicy.py +42 -0
- aapi/wpperiod.py +14 -0
- aapi/year.py +42 -0
- clients/__init__.py +0 -0
- clients/ctm_api_client/__init__.py +612 -0
- clients/ctm_api_client/api/__init__.py +13 -0
- clients/ctm_api_client/api/archive_api.py +496 -0
- clients/ctm_api_client/api/build_api.py +154 -0
- clients/ctm_api_client/api/config_api.py +11804 -0
- clients/ctm_api_client/api/deploy_api.py +2467 -0
- clients/ctm_api_client/api/provision_api.py +1215 -0
- clients/ctm_api_client/api/reporting_api.py +450 -0
- clients/ctm_api_client/api/run_api.py +4056 -0
- clients/ctm_api_client/api/session_api.py +332 -0
- clients/ctm_api_client/api_client.py +715 -0
- clients/ctm_api_client/configuration.py +260 -0
- clients/ctm_api_client/models/__init__.py +597 -0
- clients/ctm_api_client/models/actions_auth_record.py +663 -0
- clients/ctm_api_client/models/active_services.py +153 -0
- clients/ctm_api_client/models/add_agent_params.py +311 -0
- clients/ctm_api_client/models/add_remote_host_params.py +276 -0
- clients/ctm_api_client/models/add_remove_success_data.py +151 -0
- clients/ctm_api_client/models/add_server_params.py +210 -0
- clients/ctm_api_client/models/agent_certificate_expiration_data.py +123 -0
- clients/ctm_api_client/models/agent_data.py +622 -0
- clients/ctm_api_client/models/agent_debug_information.py +160 -0
- clients/ctm_api_client/models/agent_details.py +247 -0
- clients/ctm_api_client/models/agent_details_list.py +121 -0
- clients/ctm_api_client/models/agent_in_group_params.py +160 -0
- clients/ctm_api_client/models/agent_in_group_params_list.py +121 -0
- clients/ctm_api_client/models/agent_in_hostgroup.py +192 -0
- clients/ctm_api_client/models/agent_info.py +155 -0
- clients/ctm_api_client/models/agent_info_result.py +183 -0
- clients/ctm_api_client/models/agent_mng_auth.py +181 -0
- clients/ctm_api_client/models/agent_sys_param_set_data.py +247 -0
- clients/ctm_api_client/models/agent_sys_param_set_success_data.py +151 -0
- clients/ctm_api_client/models/agent_tables_name.py +121 -0
- clients/ctm_api_client/models/agent_thing_properties.py +177 -0
- clients/ctm_api_client/models/agents_data_list.py +95 -0
- clients/ctm_api_client/models/agents_in_group_list_result.py +95 -0
- clients/ctm_api_client/models/agents_in_group_success_data.py +149 -0
- clients/ctm_api_client/models/agents_sys_param_set_data.py +123 -0
- clients/ctm_api_client/models/ai_deploy_response.py +123 -0
- clients/ctm_api_client/models/ai_error.py +149 -0
- clients/ctm_api_client/models/ai_jobtype.py +218 -0
- clients/ctm_api_client/models/ai_jobtype_list.py +121 -0
- clients/ctm_api_client/models/alert_param.py +191 -0
- clients/ctm_api_client/models/alert_status_param.py +159 -0
- clients/ctm_api_client/models/all_mft_data_settings.py +150 -0
- clients/ctm_api_client/models/allowed_job_actions.py +682 -0
- clients/ctm_api_client/models/allowed_jobs.py +149 -0
- clients/ctm_api_client/models/annotation_details.py +145 -0
- clients/ctm_api_client/models/api_gtw_session.py +121 -0
- clients/ctm_api_client/models/api_throwable.py +147 -0
- clients/ctm_api_client/models/app.py +305 -0
- clients/ctm_api_client/models/app_deploy_response.py +181 -0
- clients/ctm_api_client/models/app_deployed.py +363 -0
- clients/ctm_api_client/models/app_details.py +218 -0
- clients/ctm_api_client/models/app_list.py +147 -0
- clients/ctm_api_client/models/app_predeploy_response.py +151 -0
- clients/ctm_api_client/models/archive_jobs_list.py +189 -0
- clients/ctm_api_client/models/archive_rule.py +392 -0
- clients/ctm_api_client/models/archive_rules_list.py +121 -0
- clients/ctm_api_client/models/as2_key_data.py +185 -0
- clients/ctm_api_client/models/associate_data.py +149 -0
- clients/ctm_api_client/models/authenticate_credentials.py +237 -0
- clients/ctm_api_client/models/authentication_data.py +150 -0
- clients/ctm_api_client/models/availability.py +247 -0
- clients/ctm_api_client/models/certificate_signing_request_data.py +276 -0
- clients/ctm_api_client/models/client_access_privilege_category.py +305 -0
- clients/ctm_api_client/models/cluster.py +179 -0
- clients/ctm_api_client/models/cluster_authorization_data.py +123 -0
- clients/ctm_api_client/models/communication_analysis_response_type.py +189 -0
- clients/ctm_api_client/models/component_key_with_status_type.py +151 -0
- clients/ctm_api_client/models/component_meta_data_properties.py +210 -0
- clients/ctm_api_client/models/component_mft_key_type.py +305 -0
- clients/ctm_api_client/models/condition_properties.py +171 -0
- clients/ctm_api_client/models/configuration_manager_privilege_category.py +276 -0
- clients/ctm_api_client/models/connection_profile_deployment_info.py +247 -0
- clients/ctm_api_client/models/connection_profile_status.py +334 -0
- clients/ctm_api_client/models/connection_profiles_deployment_status_result.py +157 -0
- clients/ctm_api_client/models/connection_profiles_status_result.py +181 -0
- clients/ctm_api_client/models/control_m_authentication_data.py +247 -0
- clients/ctm_api_client/models/cp_mng_auth.py +247 -0
- clients/ctm_api_client/models/ctm_details.py +247 -0
- clients/ctm_api_client/models/ctm_details_list.py +95 -0
- clients/ctm_api_client/models/ctm_name_value_sw.py +147 -0
- clients/ctm_api_client/models/ctmag_set_extract_service_status.py +123 -0
- clients/ctm_api_client/models/ctmagent_basic_info_type.py +303 -0
- clients/ctm_api_client/models/ctmagent_ctm_test_type.py +334 -0
- clients/ctm_api_client/models/ctmagent_state_changed_type.py +218 -0
- clients/ctm_api_client/models/ctmvar_del_result_item.py +123 -0
- clients/ctm_api_client/models/ctmvar_del_results.py +237 -0
- clients/ctm_api_client/models/ctmvar_error_info.py +261 -0
- clients/ctm_api_client/models/ctmvar_get_result_item.py +156 -0
- clients/ctm_api_client/models/ctmvar_get_results.py +237 -0
- clients/ctm_api_client/models/ctmvar_result_item.py +210 -0
- clients/ctm_api_client/models/ctmvar_results.py +237 -0
- clients/ctm_api_client/models/ctmvar_set_result_item.py +123 -0
- clients/ctm_api_client/models/ctmvar_set_results.py +237 -0
- clients/ctm_api_client/models/deploy_jobtype_response.py +155 -0
- clients/ctm_api_client/models/deployment_file_error.py +121 -0
- clients/ctm_api_client/models/deployment_file_results.py +558 -0
- clients/ctm_api_client/models/diagnostics_data_collection_information.py +247 -0
- clients/ctm_api_client/models/diagnostics_data_collection_result.py +151 -0
- clients/ctm_api_client/models/em_basic_active_request_parameters.py +210 -0
- clients/ctm_api_client/models/em_default_request_parameters.py +210 -0
- clients/ctm_api_client/models/em_jobs_id.py +147 -0
- clients/ctm_api_client/models/em_order_folder.py +237 -0
- clients/ctm_api_client/models/em_order_folder_parameters.py +183 -0
- clients/ctm_api_client/models/em_system_parameter.py +123 -0
- clients/ctm_api_client/models/encryption_metadata.py +154 -0
- clients/ctm_api_client/models/error_data.py +276 -0
- clients/ctm_api_client/models/error_list.py +121 -0
- clients/ctm_api_client/models/event.py +177 -0
- clients/ctm_api_client/models/event_param.py +151 -0
- clients/ctm_api_client/models/event_set.py +95 -0
- clients/ctm_api_client/models/external_provider_authentication_data.py +123 -0
- clients/ctm_api_client/models/external_user_data.py +450 -0
- clients/ctm_api_client/models/extract_service_prop_params.py +305 -0
- clients/ctm_api_client/models/field_metadata_properties.py +750 -0
- clients/ctm_api_client/models/field_value.py +148 -0
- clients/ctm_api_client/models/field_values.py +126 -0
- clients/ctm_api_client/models/folder_auth.py +305 -0
- clients/ctm_api_client/models/folder_properties.py +421 -0
- clients/ctm_api_client/models/folder_properties_data.py +398 -0
- clients/ctm_api_client/models/folders_users_settings_and_metadata_properties.py +237 -0
- clients/ctm_api_client/models/folders_users_settings_and_metadata_properties_from_b2_b.py +237 -0
- clients/ctm_api_client/models/fts_authentication_details.py +156 -0
- clients/ctm_api_client/models/fts_ftp_settings.py +363 -0
- clients/ctm_api_client/models/fts_general_settings.py +363 -0
- clients/ctm_api_client/models/fts_ldap_authentication_details.py +305 -0
- clients/ctm_api_client/models/fts_pam_authentication_details.py +123 -0
- clients/ctm_api_client/models/fts_settings_data.py +218 -0
- clients/ctm_api_client/models/fts_sftp_settings.py +334 -0
- clients/ctm_api_client/models/fts_user_home_directory_data.py +151 -0
- clients/ctm_api_client/models/gateway_data.py +208 -0
- clients/ctm_api_client/models/get_alert_info.py +200 -0
- clients/ctm_api_client/models/get_manifest_params.py +535 -0
- clients/ctm_api_client/models/get_manifest_params_result.py +95 -0
- clients/ctm_api_client/models/groups_allowed_folders_properties.py +214 -0
- clients/ctm_api_client/models/host_group_data.py +181 -0
- clients/ctm_api_client/models/host_groups_data_list.py +95 -0
- clients/ctm_api_client/models/host_properties.py +595 -0
- clients/ctm_api_client/models/hostgroup_agent_participation.py +152 -0
- clients/ctm_api_client/models/hostgroup_properties.py +149 -0
- clients/ctm_api_client/models/hostname_port_pair.py +151 -0
- clients/ctm_api_client/models/hub_data.py +276 -0
- clients/ctm_api_client/models/hub_status.py +123 -0
- clients/ctm_api_client/models/job.py +175 -0
- clients/ctm_api_client/models/job_level_auth.py +185 -0
- clients/ctm_api_client/models/job_run_status.py +772 -0
- clients/ctm_api_client/models/job_status_result.py +363 -0
- clients/ctm_api_client/models/jobtype_agent.py +149 -0
- clients/ctm_api_client/models/key_value.py +427 -0
- clients/ctm_api_client/models/key_value_list_result.py +95 -0
- clients/ctm_api_client/models/key_value_type.py +219 -0
- clients/ctm_api_client/models/key_value_type_list_result.py +95 -0
- clients/ctm_api_client/models/known_hosts.py +145 -0
- clients/ctm_api_client/models/ldap_domain_settings.py +291 -0
- clients/ctm_api_client/models/log.py +121 -0
- clients/ctm_api_client/models/log_data_arguments.py +121 -0
- clients/ctm_api_client/models/log_job_parameters.py +183 -0
- clients/ctm_api_client/models/log_job_result_item.py +264 -0
- clients/ctm_api_client/models/log_job_results.py +237 -0
- clients/ctm_api_client/models/log_params.py +218 -0
- clients/ctm_api_client/models/login_credentials.py +151 -0
- clients/ctm_api_client/models/login_result.py +171 -0
- clients/ctm_api_client/models/manifest_group_item_object.py +145 -0
- clients/ctm_api_client/models/manifest_group_object.py +121 -0
- clients/ctm_api_client/models/matching.py +95 -0
- clients/ctm_api_client/models/mft_configuration_data.py +607 -0
- clients/ctm_api_client/models/mft_entities_list_names.py +210 -0
- clients/ctm_api_client/models/mft_external_user_projection_data.py +247 -0
- clients/ctm_api_client/models/mft_folder_projection_data.py +224 -0
- clients/ctm_api_client/models/mft_folder_projection_properties.py +247 -0
- clients/ctm_api_client/models/mft_user_group_projection_data.py +218 -0
- clients/ctm_api_client/models/monitoring_privilege_category.py +151 -0
- clients/ctm_api_client/models/msg_data_arguments.py +121 -0
- clients/ctm_api_client/models/name_value_attribute.py +145 -0
- clients/ctm_api_client/models/new_sample.py +148 -0
- clients/ctm_api_client/models/node.py +272 -0
- clients/ctm_api_client/models/optional_value.py +123 -0
- clients/ctm_api_client/models/order_folder_parameters.py +450 -0
- clients/ctm_api_client/models/order_folder_result_item.py +279 -0
- clients/ctm_api_client/models/order_folder_results.py +237 -0
- clients/ctm_api_client/models/order_parameters.py +361 -0
- clients/ctm_api_client/models/ordered_item_item.py +333 -0
- clients/ctm_api_client/models/output.py +121 -0
- clients/ctm_api_client/models/output_params.py +218 -0
- clients/ctm_api_client/models/passwords_object.py +181 -0
- clients/ctm_api_client/models/performance.py +241 -0
- clients/ctm_api_client/models/pgp_template_data.py +305 -0
- clients/ctm_api_client/models/ping_agent_params.py +155 -0
- clients/ctm_api_client/models/planning_privilege_category.py +224 -0
- clients/ctm_api_client/models/plugin_data.py +363 -0
- clients/ctm_api_client/models/plugin_mng_auth.py +218 -0
- clients/ctm_api_client/models/pool_variables_error_info.py +147 -0
- clients/ctm_api_client/models/pool_variables_name.py +147 -0
- clients/ctm_api_client/models/pool_variables_name_value.py +153 -0
- clients/ctm_api_client/models/possible_value_properties.py +171 -0
- clients/ctm_api_client/models/privilege_name.py +149 -0
- clients/ctm_api_client/models/privilege_name_controlm.py +181 -0
- clients/ctm_api_client/models/privileges.py +264 -0
- clients/ctm_api_client/models/product_description.py +247 -0
- clients/ctm_api_client/models/product_sections.py +155 -0
- clients/ctm_api_client/models/provision_advance_parameters.py +218 -0
- clients/ctm_api_client/models/query.py +171 -0
- clients/ctm_api_client/models/raw_cms_xml_request.py +155 -0
- clients/ctm_api_client/models/read_only_status.py +123 -0
- clients/ctm_api_client/models/report_date_time_settings.py +183 -0
- clients/ctm_api_client/models/report_filter.py +151 -0
- clients/ctm_api_client/models/report_filters.py +95 -0
- clients/ctm_api_client/models/report_result.py +126 -0
- clients/ctm_api_client/models/request_parameters_wrapper_em_default_request_parameters_log_job_parameters.py +159 -0
- clients/ctm_api_client/models/request_parameters_wrapper_em_default_request_parameters_why_job_parameter.py +159 -0
- clients/ctm_api_client/models/rerun_parameters.py +123 -0
- clients/ctm_api_client/models/rerun_zos_parameters.py +305 -0
- clients/ctm_api_client/models/resource_max.py +124 -0
- clients/ctm_api_client/models/resource_obj.py +247 -0
- clients/ctm_api_client/models/resource_param.py +151 -0
- clients/ctm_api_client/models/resource_set.py +95 -0
- clients/ctm_api_client/models/restart_step.py +149 -0
- clients/ctm_api_client/models/results_status.py +210 -0
- clients/ctm_api_client/models/role_data.py +785 -0
- clients/ctm_api_client/models/role_data_full.py +189 -0
- clients/ctm_api_client/models/role_header.py +149 -0
- clients/ctm_api_client/models/role_header_list.py +95 -0
- clients/ctm_api_client/models/role_properties.py +123 -0
- clients/ctm_api_client/models/rule_criteria.py +177 -0
- clients/ctm_api_client/models/rule_projection.py +264 -0
- clients/ctm_api_client/models/rule_statistics.py +301 -0
- clients/ctm_api_client/models/rules_statistic_list.py +121 -0
- clients/ctm_api_client/models/rules_statistic_list_summary.py +147 -0
- clients/ctm_api_client/models/run_as_user_data.py +213 -0
- clients/ctm_api_client/models/run_as_user_details_data.py +149 -0
- clients/ctm_api_client/models/run_as_user_key_data.py +151 -0
- clients/ctm_api_client/models/run_as_users_list.py +95 -0
- clients/ctm_api_client/models/run_report.py +217 -0
- clients/ctm_api_client/models/run_report_info.py +264 -0
- clients/ctm_api_client/models/run_result.py +184 -0
- clients/ctm_api_client/models/runas_definition_auth.py +151 -0
- clients/ctm_api_client/models/runas_user_auth.py +181 -0
- clients/ctm_api_client/models/saml2_identity_provider.py +216 -0
- clients/ctm_api_client/models/saml_status.py +123 -0
- clients/ctm_api_client/models/sample.py +175 -0
- clients/ctm_api_client/models/search_params.py +689 -0
- clients/ctm_api_client/models/search_tag_tuple.py +145 -0
- clients/ctm_api_client/models/secret_key_value.py +152 -0
- clients/ctm_api_client/models/secret_value.py +123 -0
- clients/ctm_api_client/models/section_metadata_properties.py +237 -0
- clients/ctm_api_client/models/service_auth.py +185 -0
- clients/ctm_api_client/models/service_auth_action.py +247 -0
- clients/ctm_api_client/models/service_provider_information.py +210 -0
- clients/ctm_api_client/models/set_agent_params.py +177 -0
- clients/ctm_api_client/models/set_agent_params_list.py +121 -0
- clients/ctm_api_client/models/setting_key_properties.py +150 -0
- clients/ctm_api_client/models/setting_properties.py +177 -0
- clients/ctm_api_client/models/setting_properties_object.py +121 -0
- clients/ctm_api_client/models/settings_metadata_properties.py +218 -0
- clients/ctm_api_client/models/settings_update_object.py +154 -0
- clients/ctm_api_client/models/sla_service.py +682 -0
- clients/ctm_api_client/models/sla_service_status_by_jobs.py +363 -0
- clients/ctm_api_client/models/ssh_key_properties.py +181 -0
- clients/ctm_api_client/models/statistics.py +216 -0
- clients/ctm_api_client/models/statistics_average_info.py +181 -0
- clients/ctm_api_client/models/statistics_period.py +151 -0
- clients/ctm_api_client/models/statistics_run_info.py +150 -0
- clients/ctm_api_client/models/statistics_single_run.py +276 -0
- clients/ctm_api_client/models/string_list_result.py +95 -0
- clients/ctm_api_client/models/success_data.py +123 -0
- clients/ctm_api_client/models/summary.py +210 -0
- clients/ctm_api_client/models/system_parameter.py +177 -0
- clients/ctm_api_client/models/system_setting.py +426 -0
- clients/ctm_api_client/models/system_setting_annotation_property.py +95 -0
- clients/ctm_api_client/models/system_setting_key_value.py +155 -0
- clients/ctm_api_client/models/system_setting_key_value_component.py +183 -0
- clients/ctm_api_client/models/system_setting_ldap.py +182 -0
- clients/ctm_api_client/models/system_setting_property.py +126 -0
- clients/ctm_api_client/models/term_group.py +95 -0
- clients/ctm_api_client/models/token_data_request.py +221 -0
- clients/ctm_api_client/models/token_data_response.py +343 -0
- clients/ctm_api_client/models/token_list.py +126 -0
- clients/ctm_api_client/models/token_list_array.py +95 -0
- clients/ctm_api_client/models/tools_privilege_category.py +189 -0
- clients/ctm_api_client/models/topology.py +121 -0
- clients/ctm_api_client/models/upgrade_agent_info.py +276 -0
- clients/ctm_api_client/models/upgrade_agent_info_list.py +95 -0
- clients/ctm_api_client/models/upgrade_info.py +149 -0
- clients/ctm_api_client/models/upgrade_notification.py +121 -0
- clients/ctm_api_client/models/upgrade_record.py +624 -0
- clients/ctm_api_client/models/upgrade_record_list.py +121 -0
- clients/ctm_api_client/models/upgrade_request.py +334 -0
- clients/ctm_api_client/models/upgrade_response.py +123 -0
- clients/ctm_api_client/models/user_additional_properties.py +187 -0
- clients/ctm_api_client/models/user_allowed_folders_properties.py +615 -0
- clients/ctm_api_client/models/user_data.py +272 -0
- clients/ctm_api_client/models/user_group_details_data.py +151 -0
- clients/ctm_api_client/models/user_group_properties_data.py +185 -0
- clients/ctm_api_client/models/user_header.py +305 -0
- clients/ctm_api_client/models/user_password.py +123 -0
- clients/ctm_api_client/models/user_preferences.py +121 -0
- clients/ctm_api_client/models/validation_properties.py +345 -0
- clients/ctm_api_client/models/value.py +126 -0
- clients/ctm_api_client/models/values.py +95 -0
- clients/ctm_api_client/models/variable_name_value.py +150 -0
- clients/ctm_api_client/models/variable_names.py +123 -0
- clients/ctm_api_client/models/variables.py +123 -0
- clients/ctm_api_client/models/viewpoint_manager_privilege_category.py +218 -0
- clients/ctm_api_client/models/warning_data.py +276 -0
- clients/ctm_api_client/models/warning_list.py +121 -0
- clients/ctm_api_client/models/warnings_collection.py +121 -0
- clients/ctm_api_client/models/why_job_parameters.py +121 -0
- clients/ctm_api_client/models/why_job_result_item.py +121 -0
- clients/ctm_api_client/models/why_job_results.py +237 -0
- clients/ctm_api_client/models/workflow_insights_status.py +150 -0
- clients/ctm_api_client/models/workload_policies_file_results.py +243 -0
- clients/ctm_api_client/models/workload_policy.py +276 -0
- clients/ctm_api_client/models/workload_policy_list.py +121 -0
- clients/ctm_api_client/models/workload_policy_state.py +149 -0
- clients/ctm_api_client/models/workload_policy_state_list.py +121 -0
- clients/ctm_api_client/models/workspace_folder.py +158 -0
- clients/ctm_api_client/models/workspace_folders.py +121 -0
- clients/ctm_api_client/models/zoo_keeper.py +276 -0
- clients/ctm_api_client/models/zos_template_data.py +595 -0
- clients/ctm_api_client/rest.py +415 -0
- clients/ctm_saas_client/__init__.py +347 -0
- clients/ctm_saas_client/api/__init__.py +13 -0
- clients/ctm_saas_client/api/authentication_api.py +513 -0
- clients/ctm_saas_client/api/build_api.py +137 -0
- clients/ctm_saas_client/api/config_api.py +6456 -0
- clients/ctm_saas_client/api/deploy_api.py +2023 -0
- clients/ctm_saas_client/api/provision_api.py +133 -0
- clients/ctm_saas_client/api/reporting_api.py +319 -0
- clients/ctm_saas_client/api/run_api.py +3223 -0
- clients/ctm_saas_client/api/usage_api.py +129 -0
- clients/ctm_saas_client/api_client.py +640 -0
- clients/ctm_saas_client/configuration.py +255 -0
- clients/ctm_saas_client/models/__init__.py +333 -0
- clients/ctm_saas_client/models/actions_auth_record.py +368 -0
- clients/ctm_saas_client/models/active_services.py +149 -0
- clients/ctm_saas_client/models/add_agent_params.py +295 -0
- clients/ctm_saas_client/models/add_ons.py +125 -0
- clients/ctm_saas_client/models/add_remote_host_params.py +265 -0
- clients/ctm_saas_client/models/add_remove_success_data.py +153 -0
- clients/ctm_saas_client/models/add_server_params.py +212 -0
- clients/ctm_saas_client/models/agent_certificate_expiration_data.py +125 -0
- clients/ctm_saas_client/models/agent_data.py +599 -0
- clients/ctm_saas_client/models/agent_debug_information.py +155 -0
- clients/ctm_saas_client/models/agent_details.py +237 -0
- clients/ctm_saas_client/models/agent_details_list.py +123 -0
- clients/ctm_saas_client/models/agent_in_group_params.py +154 -0
- clients/ctm_saas_client/models/agent_in_group_params_list.py +123 -0
- clients/ctm_saas_client/models/agent_in_hostgroup.py +182 -0
- clients/ctm_saas_client/models/agent_info.py +155 -0
- clients/ctm_saas_client/models/agent_info_result.py +183 -0
- clients/ctm_saas_client/models/agent_mng_auth.py +181 -0
- clients/ctm_saas_client/models/agent_sys_param_set_data.py +237 -0
- clients/ctm_saas_client/models/agent_sys_param_set_success_data.py +153 -0
- clients/ctm_saas_client/models/agent_tables_name.py +123 -0
- clients/ctm_saas_client/models/agent_thing_properties.py +181 -0
- clients/ctm_saas_client/models/agents_data_list.py +95 -0
- clients/ctm_saas_client/models/agents_in_group_list_result.py +95 -0
- clients/ctm_saas_client/models/agents_in_group_success_data.py +153 -0
- clients/ctm_saas_client/models/agents_sys_param_set_data.py +125 -0
- clients/ctm_saas_client/models/ai_deploy_response.py +125 -0
- clients/ctm_saas_client/models/ai_error.py +153 -0
- clients/ctm_saas_client/models/ai_jobtype.py +209 -0
- clients/ctm_saas_client/models/ai_jobtype_list.py +123 -0
- clients/ctm_saas_client/models/alert_param.py +189 -0
- clients/ctm_saas_client/models/alert_status_param.py +161 -0
- clients/ctm_saas_client/models/all_mft_data_settings.py +149 -0
- clients/ctm_saas_client/models/allowed_job_actions.py +657 -0
- clients/ctm_saas_client/models/allowed_jobs.py +153 -0
- clients/ctm_saas_client/models/annotation_details.py +149 -0
- clients/ctm_saas_client/models/api_gtw_session.py +123 -0
- clients/ctm_saas_client/models/api_throwable.py +149 -0
- clients/ctm_saas_client/models/app.py +293 -0
- clients/ctm_saas_client/models/app_deploy_response.py +181 -0
- clients/ctm_saas_client/models/app_deployed.py +349 -0
- clients/ctm_saas_client/models/app_details.py +209 -0
- clients/ctm_saas_client/models/app_list.py +149 -0
- clients/ctm_saas_client/models/app_predeploy_response.py +153 -0
- clients/ctm_saas_client/models/archive_jobs_list.py +175 -0
- clients/ctm_saas_client/models/archive_rule.py +377 -0
- clients/ctm_saas_client/models/archive_rules_list.py +123 -0
- clients/ctm_saas_client/models/as2_key_data.py +181 -0
- clients/ctm_saas_client/models/associate_data.py +153 -0
- clients/ctm_saas_client/models/authenticate_credentials.py +227 -0
- clients/ctm_saas_client/models/authentication_data.py +149 -0
- clients/ctm_saas_client/models/availability.py +237 -0
- clients/ctm_saas_client/models/aysnc_poll_deployment_file_results.py +149 -0
- clients/ctm_saas_client/models/certificate_signing_request_data.py +265 -0
- clients/ctm_saas_client/models/client_access_privilege_category.py +293 -0
- clients/ctm_saas_client/models/cluster.py +175 -0
- clients/ctm_saas_client/models/cluster_authorization_data.py +125 -0
- clients/ctm_saas_client/models/communication_analysis_response_type.py +181 -0
- clients/ctm_saas_client/models/component_key_with_status_type.py +153 -0
- clients/ctm_saas_client/models/component_meta_data_properties.py +201 -0
- clients/ctm_saas_client/models/component_mft_key_type.py +293 -0
- clients/ctm_saas_client/models/condition_properties.py +175 -0
- clients/ctm_saas_client/models/configuration_manager_privilege_category.py +265 -0
- clients/ctm_saas_client/models/connection_profile_deployment_info.py +237 -0
- clients/ctm_saas_client/models/connection_profile_status.py +321 -0
- clients/ctm_saas_client/models/connection_profiles_deployment_status_result.py +153 -0
- clients/ctm_saas_client/models/connection_profiles_status_result.py +181 -0
- clients/ctm_saas_client/models/control_m_authentication_data.py +237 -0
- clients/ctm_saas_client/models/cp_mng_auth.py +237 -0
- clients/ctm_saas_client/models/ctm_details.py +237 -0
- clients/ctm_saas_client/models/ctm_details_list.py +95 -0
- clients/ctm_saas_client/models/ctm_name_value_sw.py +149 -0
- clients/ctm_saas_client/models/ctmag_set_extract_service_status.py +125 -0
- clients/ctm_saas_client/models/ctmagent_basic_info_type.py +291 -0
- clients/ctm_saas_client/models/ctmagent_ctm_test_type.py +321 -0
- clients/ctm_saas_client/models/ctmagent_state_changed_type.py +209 -0
- clients/ctm_saas_client/models/ctmvar_del_result_item.py +123 -0
- clients/ctm_saas_client/models/ctmvar_del_results.py +227 -0
- clients/ctm_saas_client/models/ctmvar_error_info.py +222 -0
- clients/ctm_saas_client/models/ctmvar_get_result_item.py +149 -0
- clients/ctm_saas_client/models/ctmvar_get_results.py +227 -0
- clients/ctm_saas_client/models/ctmvar_result_item.py +201 -0
- clients/ctm_saas_client/models/ctmvar_results.py +227 -0
- clients/ctm_saas_client/models/ctmvar_set_result_item.py +123 -0
- clients/ctm_saas_client/models/ctmvar_set_results.py +227 -0
- clients/ctm_saas_client/models/deploy_async_results.py +125 -0
- clients/ctm_saas_client/models/deploy_jobtype_response.py +151 -0
- clients/ctm_saas_client/models/deployment_file_error.py +123 -0
- clients/ctm_saas_client/models/deployment_file_results.py +615 -0
- clients/ctm_saas_client/models/diagnostics_data_collection_information.py +237 -0
- clients/ctm_saas_client/models/diagnostics_data_collection_result.py +153 -0
- clients/ctm_saas_client/models/em_basic_active_request_parameters.py +201 -0
- clients/ctm_saas_client/models/em_default_request_parameters.py +201 -0
- clients/ctm_saas_client/models/em_jobs_id.py +149 -0
- clients/ctm_saas_client/models/em_order_folder.py +227 -0
- clients/ctm_saas_client/models/em_order_folder_parameters.py +175 -0
- clients/ctm_saas_client/models/em_system_parameter.py +125 -0
- clients/ctm_saas_client/models/encryption_metadata.py +153 -0
- clients/ctm_saas_client/models/error_data.py +265 -0
- clients/ctm_saas_client/models/error_list.py +123 -0
- clients/ctm_saas_client/models/event.py +181 -0
- clients/ctm_saas_client/models/event_param.py +151 -0
- clients/ctm_saas_client/models/event_set.py +95 -0
- clients/ctm_saas_client/models/external_provider_authentication_data.py +125 -0
- clients/ctm_saas_client/models/external_user_data.py +433 -0
- clients/ctm_saas_client/models/extract_service_prop_params.py +293 -0
- clients/ctm_saas_client/models/field_metadata_properties.py +721 -0
- clients/ctm_saas_client/models/field_value.py +150 -0
- clients/ctm_saas_client/models/field_values.py +126 -0
- clients/ctm_saas_client/models/folder_auth.py +293 -0
- clients/ctm_saas_client/models/folder_properties.py +405 -0
- clients/ctm_saas_client/models/folder_properties_data.py +377 -0
- clients/ctm_saas_client/models/folders_users_settings_and_metadata_properties.py +227 -0
- clients/ctm_saas_client/models/folders_users_settings_and_metadata_properties_from_b2_b.py +227 -0
- clients/ctm_saas_client/models/fts_authentication_details.py +149 -0
- clients/ctm_saas_client/models/fts_ftp_settings.py +349 -0
- clients/ctm_saas_client/models/fts_general_settings.py +349 -0
- clients/ctm_saas_client/models/fts_ldap_authentication_details.py +293 -0
- clients/ctm_saas_client/models/fts_pam_authentication_details.py +125 -0
- clients/ctm_saas_client/models/fts_settings_data.py +209 -0
- clients/ctm_saas_client/models/fts_sftp_settings.py +321 -0
- clients/ctm_saas_client/models/fts_user_home_directory_data.py +153 -0
- clients/ctm_saas_client/models/gateway_data.py +209 -0
- clients/ctm_saas_client/models/get_alert_info.py +201 -0
- clients/ctm_saas_client/models/get_manifest_params.py +515 -0
- clients/ctm_saas_client/models/get_manifest_params_result.py +95 -0
- clients/ctm_saas_client/models/groups_allowed_folders_properties.py +205 -0
- clients/ctm_saas_client/models/host_group_data.py +181 -0
- clients/ctm_saas_client/models/host_groups_data_list.py +95 -0
- clients/ctm_saas_client/models/host_properties.py +573 -0
- clients/ctm_saas_client/models/hostgroup_agent_participation.py +154 -0
- clients/ctm_saas_client/models/hostgroup_properties.py +153 -0
- clients/ctm_saas_client/models/hostname_port_pair.py +153 -0
- clients/ctm_saas_client/models/hub_data.py +293 -0
- clients/ctm_saas_client/models/hub_status.py +125 -0
- clients/ctm_saas_client/models/job.py +175 -0
- clients/ctm_saas_client/models/job_level_auth.py +181 -0
- clients/ctm_saas_client/models/job_run_status.py +742 -0
- clients/ctm_saas_client/models/job_status_result.py +349 -0
- clients/ctm_saas_client/models/jobtype_agent.py +153 -0
- clients/ctm_saas_client/models/key_value.py +407 -0
- clients/ctm_saas_client/models/key_value_list_result.py +95 -0
- clients/ctm_saas_client/models/key_value_type.py +211 -0
- clients/ctm_saas_client/models/key_value_type_list_result.py +95 -0
- clients/ctm_saas_client/models/known_hosts.py +149 -0
- clients/ctm_saas_client/models/ldap_domain_settings.py +279 -0
- clients/ctm_saas_client/models/log.py +123 -0
- clients/ctm_saas_client/models/log_data_arguments.py +123 -0
- clients/ctm_saas_client/models/log_job_parameters.py +175 -0
- clients/ctm_saas_client/models/log_job_result_item.py +253 -0
- clients/ctm_saas_client/models/log_job_results.py +227 -0
- clients/ctm_saas_client/models/log_params.py +209 -0
- clients/ctm_saas_client/models/login_credentials.py +151 -0
- clients/ctm_saas_client/models/login_result.py +175 -0
- clients/ctm_saas_client/models/manifest_group_item_object.py +149 -0
- clients/ctm_saas_client/models/manifest_group_object.py +123 -0
- clients/ctm_saas_client/models/matching.py +95 -0
- clients/ctm_saas_client/models/mft_configuration_data.py +573 -0
- clients/ctm_saas_client/models/mft_entities_list_names.py +201 -0
- clients/ctm_saas_client/models/mft_external_user_projection_data.py +237 -0
- clients/ctm_saas_client/models/mft_folder_projection_data.py +209 -0
- clients/ctm_saas_client/models/mft_folder_projection_properties.py +237 -0
- clients/ctm_saas_client/models/mft_user_group_projection_data.py +209 -0
- clients/ctm_saas_client/models/monitoring_privilege_category.py +153 -0
- clients/ctm_saas_client/models/msg_data_arguments.py +123 -0
- clients/ctm_saas_client/models/name_status.py +149 -0
- clients/ctm_saas_client/models/name_value_attribute.py +149 -0
- clients/ctm_saas_client/models/new_sample.py +150 -0
- clients/ctm_saas_client/models/node.py +261 -0
- clients/ctm_saas_client/models/optional_value.py +125 -0
- clients/ctm_saas_client/models/order_folder_parameters.py +433 -0
- clients/ctm_saas_client/models/order_folder_result_item.py +260 -0
- clients/ctm_saas_client/models/order_folder_results.py +227 -0
- clients/ctm_saas_client/models/order_parameters.py +338 -0
- clients/ctm_saas_client/models/ordered_item_item.py +312 -0
- clients/ctm_saas_client/models/organization_group_export_data.py +125 -0
- clients/ctm_saas_client/models/organization_group_info.py +181 -0
- clients/ctm_saas_client/models/organization_group_name.py +153 -0
- clients/ctm_saas_client/models/organization_group_user_authorization_simulation_data.py +151 -0
- clients/ctm_saas_client/models/output.py +123 -0
- clients/ctm_saas_client/models/output_params.py +209 -0
- clients/ctm_saas_client/models/passwords_object.py +181 -0
- clients/ctm_saas_client/models/performance.py +237 -0
- clients/ctm_saas_client/models/pgp_template_data.py +293 -0
- clients/ctm_saas_client/models/ping_agent_params.py +155 -0
- clients/ctm_saas_client/models/planning_privilege_category.py +209 -0
- clients/ctm_saas_client/models/plugin_data.py +349 -0
- clients/ctm_saas_client/models/plugin_mng_auth.py +209 -0
- clients/ctm_saas_client/models/pool_variables_error_info.py +149 -0
- clients/ctm_saas_client/models/pool_variables_name.py +149 -0
- clients/ctm_saas_client/models/pool_variables_name_value.py +149 -0
- clients/ctm_saas_client/models/possible_value_properties.py +175 -0
- clients/ctm_saas_client/models/privilege_name.py +153 -0
- clients/ctm_saas_client/models/privilege_name_controlm.py +181 -0
- clients/ctm_saas_client/models/privileges.py +253 -0
- clients/ctm_saas_client/models/product_description.py +237 -0
- clients/ctm_saas_client/models/product_sections.py +151 -0
- clients/ctm_saas_client/models/provision_advance_parameters.py +209 -0
- clients/ctm_saas_client/models/query.py +175 -0
- clients/ctm_saas_client/models/raw_cms_xml_request.py +151 -0
- clients/ctm_saas_client/models/read_only_status.py +125 -0
- clients/ctm_saas_client/models/report_date_time_settings.py +175 -0
- clients/ctm_saas_client/models/report_filter.py +151 -0
- clients/ctm_saas_client/models/report_filters.py +95 -0
- clients/ctm_saas_client/models/report_result.py +126 -0
- clients/ctm_saas_client/models/request_parameters_wrapper_em_default_request_parameters_log_job_parameters.py +149 -0
- clients/ctm_saas_client/models/request_parameters_wrapper_em_default_request_parameters_why_job_parameter.py +149 -0
- clients/ctm_saas_client/models/rerun_parameters.py +125 -0
- clients/ctm_saas_client/models/rerun_zos_parameters.py +293 -0
- clients/ctm_saas_client/models/resource_max.py +124 -0
- clients/ctm_saas_client/models/resource_obj.py +237 -0
- clients/ctm_saas_client/models/resource_param.py +151 -0
- clients/ctm_saas_client/models/resource_set.py +95 -0
- clients/ctm_saas_client/models/restart_step.py +153 -0
- clients/ctm_saas_client/models/results_status.py +201 -0
- clients/ctm_saas_client/models/role_data.py +755 -0
- clients/ctm_saas_client/models/role_data_full.py +181 -0
- clients/ctm_saas_client/models/role_header.py +153 -0
- clients/ctm_saas_client/models/role_header_list.py +95 -0
- clients/ctm_saas_client/models/role_properties.py +125 -0
- clients/ctm_saas_client/models/rule_criteria.py +177 -0
- clients/ctm_saas_client/models/rule_projection.py +253 -0
- clients/ctm_saas_client/models/rule_statistics.py +286 -0
- clients/ctm_saas_client/models/rules_statistic_list.py +123 -0
- clients/ctm_saas_client/models/rules_statistic_list_summary.py +149 -0
- clients/ctm_saas_client/models/run_as_user_data.py +209 -0
- clients/ctm_saas_client/models/run_as_user_details_data.py +153 -0
- clients/ctm_saas_client/models/run_as_user_key_data.py +153 -0
- clients/ctm_saas_client/models/run_as_users_list.py +95 -0
- clients/ctm_saas_client/models/run_report.py +206 -0
- clients/ctm_saas_client/models/run_report_info.py +253 -0
- clients/ctm_saas_client/models/run_result.py +182 -0
- clients/ctm_saas_client/models/runas_definition_auth.py +153 -0
- clients/ctm_saas_client/models/runas_user_auth.py +181 -0
- clients/ctm_saas_client/models/saml2_identity_provider.py +203 -0
- clients/ctm_saas_client/models/saml_status.py +125 -0
- clients/ctm_saas_client/models/sample.py +177 -0
- clients/ctm_saas_client/models/search_params.py +664 -0
- clients/ctm_saas_client/models/search_tag_tuple.py +149 -0
- clients/ctm_saas_client/models/secret_key_value.py +154 -0
- clients/ctm_saas_client/models/secret_value.py +125 -0
- clients/ctm_saas_client/models/section_metadata_properties.py +227 -0
- clients/ctm_saas_client/models/service_auth.py +181 -0
- clients/ctm_saas_client/models/service_auth_action.py +237 -0
- clients/ctm_saas_client/models/service_provider_information.py +201 -0
- clients/ctm_saas_client/models/set_agent_params.py +181 -0
- clients/ctm_saas_client/models/set_agent_params_list.py +123 -0
- clients/ctm_saas_client/models/setting_key_properties.py +149 -0
- clients/ctm_saas_client/models/setting_properties.py +181 -0
- clients/ctm_saas_client/models/setting_properties_object.py +123 -0
- clients/ctm_saas_client/models/settings_metadata_properties.py +201 -0
- clients/ctm_saas_client/models/settings_update_object.py +153 -0
- clients/ctm_saas_client/models/sla_service.py +657 -0
- clients/ctm_saas_client/models/sla_service_status_by_jobs.py +349 -0
- clients/ctm_saas_client/models/ssh_key_properties.py +181 -0
- clients/ctm_saas_client/models/statistics.py +207 -0
- clients/ctm_saas_client/models/statistics_average_info.py +181 -0
- clients/ctm_saas_client/models/statistics_period.py +153 -0
- clients/ctm_saas_client/models/statistics_run_info.py +151 -0
- clients/ctm_saas_client/models/statistics_single_run.py +265 -0
- clients/ctm_saas_client/models/string_list_result.py +95 -0
- clients/ctm_saas_client/models/success_data.py +125 -0
- clients/ctm_saas_client/models/summary.py +201 -0
- clients/ctm_saas_client/models/system_parameter.py +181 -0
- clients/ctm_saas_client/models/system_setting.py +435 -0
- clients/ctm_saas_client/models/system_setting_annotation_property.py +95 -0
- clients/ctm_saas_client/models/system_setting_key_value.py +155 -0
- clients/ctm_saas_client/models/system_setting_key_value_component.py +183 -0
- clients/ctm_saas_client/models/system_setting_ldap.py +176 -0
- clients/ctm_saas_client/models/system_setting_property.py +126 -0
- clients/ctm_saas_client/models/term_group.py +95 -0
- clients/ctm_saas_client/models/token_data_request.py +210 -0
- clients/ctm_saas_client/models/token_data_response.py +324 -0
- clients/ctm_saas_client/models/token_list.py +126 -0
- clients/ctm_saas_client/models/token_list_array.py +95 -0
- clients/ctm_saas_client/models/tools_privilege_category.py +181 -0
- clients/ctm_saas_client/models/topology.py +123 -0
- clients/ctm_saas_client/models/upgrade_agent_info.py +265 -0
- clients/ctm_saas_client/models/upgrade_agent_info_list.py +95 -0
- clients/ctm_saas_client/models/upgrade_info.py +153 -0
- clients/ctm_saas_client/models/upgrade_notification.py +123 -0
- clients/ctm_saas_client/models/upgrade_record.py +601 -0
- clients/ctm_saas_client/models/upgrade_record_list.py +123 -0
- clients/ctm_saas_client/models/upgrade_request.py +321 -0
- clients/ctm_saas_client/models/upgrade_response.py +125 -0
- clients/ctm_saas_client/models/user_additional_properties.py +179 -0
- clients/ctm_saas_client/models/user_allowed_folders_properties.py +591 -0
- clients/ctm_saas_client/models/user_data.py +261 -0
- clients/ctm_saas_client/models/user_group_details_data.py +153 -0
- clients/ctm_saas_client/models/user_group_properties_data.py +181 -0
- clients/ctm_saas_client/models/user_header.py +293 -0
- clients/ctm_saas_client/models/user_password.py +125 -0
- clients/ctm_saas_client/models/user_preferences.py +125 -0
- clients/ctm_saas_client/models/validation_properties.py +331 -0
- clients/ctm_saas_client/models/value.py +126 -0
- clients/ctm_saas_client/models/values.py +95 -0
- clients/ctm_saas_client/models/variable_name_value.py +149 -0
- clients/ctm_saas_client/models/variable_names.py +125 -0
- clients/ctm_saas_client/models/variables.py +125 -0
- clients/ctm_saas_client/models/viewpoint_manager_privilege_category.py +209 -0
- clients/ctm_saas_client/models/warning_data.py +265 -0
- clients/ctm_saas_client/models/warning_list.py +123 -0
- clients/ctm_saas_client/models/warnings_collection.py +123 -0
- clients/ctm_saas_client/models/why_job_parameters.py +123 -0
- clients/ctm_saas_client/models/why_job_result_item.py +123 -0
- clients/ctm_saas_client/models/why_job_results.py +227 -0
- clients/ctm_saas_client/models/workflow_insights_status.py +149 -0
- clients/ctm_saas_client/models/workload_policies_file_results.py +233 -0
- clients/ctm_saas_client/models/workload_policy.py +265 -0
- clients/ctm_saas_client/models/workload_policy_list.py +123 -0
- clients/ctm_saas_client/models/workload_policy_state.py +153 -0
- clients/ctm_saas_client/models/workload_policy_state_list.py +123 -0
- clients/ctm_saas_client/models/workspace_folder.py +152 -0
- clients/ctm_saas_client/models/workspace_folders.py +123 -0
- clients/ctm_saas_client/models/zoo_keeper.py +265 -0
- clients/ctm_saas_client/models/zos_template_data.py +573 -0
- clients/ctm_saas_client/rest.py +323 -0
- ctm_python_client/__init__.py +2 -0
- ctm_python_client/core/__init__.py +0 -0
- ctm_python_client/core/comm.py +181 -0
- ctm_python_client/core/credential.py +44 -0
- ctm_python_client/core/monitoring.py +382 -0
- ctm_python_client/core/workflow.py +413 -0
- ctm_python_client/ext/__init__.py +0 -0
- ctm_python_client/ext/autogen.py +243 -0
- ctm_python_client/ext/credential.py +18 -0
- ctm_python_client/ext/viz.py +55 -0
- ctm_python_client-2.1.2.dist-info/LICENSE +29 -0
- ctm_python_client-2.1.2.dist-info/METADATA +19 -0
- ctm_python_client-2.1.2.dist-info/RECORD +745 -0
- ctm_python_client-2.1.2.dist-info/WHEEL +5 -0
- ctm_python_client-2.1.2.dist-info/top_level.txt +3 -0
|
@@ -0,0 +1,4056 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Control-M Services
|
|
5
|
+
|
|
6
|
+
Provides access to BMC Control-M Services # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 9.20.215
|
|
9
|
+
Contact: customer_support@bmc.com
|
|
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 clients.ctm_api_client.api_client import ApiClient
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class RunApi(object):
|
|
25
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
26
|
+
|
|
27
|
+
Do not edit the class manually.
|
|
28
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
def __init__(self, api_client=None):
|
|
32
|
+
if api_client is None:
|
|
33
|
+
api_client = ApiClient()
|
|
34
|
+
self.api_client = api_client
|
|
35
|
+
|
|
36
|
+
def activate_workload_policy(self, policy, **kwargs): # noqa: E501
|
|
37
|
+
"""activate workload policy # noqa: E501
|
|
38
|
+
|
|
39
|
+
Activate a workload policy, supports wildcard in names # noqa: E501
|
|
40
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
41
|
+
asynchronous HTTP request, please pass async_req=True
|
|
42
|
+
>>> thread = api.activate_workload_policy(policy, async_req=True)
|
|
43
|
+
>>> result = thread.get()
|
|
44
|
+
|
|
45
|
+
:param async_req bool
|
|
46
|
+
:param str policy: The policy name to be activated. Case sensitive. Wildcards can be used. (required)
|
|
47
|
+
:param str ctm: Optional Control-M Server filter.
|
|
48
|
+
:param str server: Optional Control-M Server filter.
|
|
49
|
+
:return: WorkloadPolicyStateList
|
|
50
|
+
If the method is called asynchronously,
|
|
51
|
+
returns the request thread.
|
|
52
|
+
"""
|
|
53
|
+
kwargs["_return_http_data_only"] = True
|
|
54
|
+
if kwargs.get("async_req"):
|
|
55
|
+
return self.activate_workload_policy_with_http_info(
|
|
56
|
+
policy, **kwargs
|
|
57
|
+
) # noqa: E501
|
|
58
|
+
else:
|
|
59
|
+
(data) = self.activate_workload_policy_with_http_info(
|
|
60
|
+
policy, **kwargs
|
|
61
|
+
) # noqa: E501
|
|
62
|
+
return data
|
|
63
|
+
|
|
64
|
+
def activate_workload_policy_with_http_info(self, policy, **kwargs): # noqa: E501
|
|
65
|
+
"""activate workload policy # noqa: E501
|
|
66
|
+
|
|
67
|
+
Activate a workload policy, supports wildcard in names # noqa: E501
|
|
68
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
69
|
+
asynchronous HTTP request, please pass async_req=True
|
|
70
|
+
>>> thread = api.activate_workload_policy_with_http_info(policy, async_req=True)
|
|
71
|
+
>>> result = thread.get()
|
|
72
|
+
|
|
73
|
+
:param async_req bool
|
|
74
|
+
:param str policy: The policy name to be activated. Case sensitive. Wildcards can be used. (required)
|
|
75
|
+
:param str ctm: Optional Control-M Server filter.
|
|
76
|
+
:param str server: Optional Control-M Server filter.
|
|
77
|
+
:return: WorkloadPolicyStateList
|
|
78
|
+
If the method is called asynchronously,
|
|
79
|
+
returns the request thread.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
all_params = ["policy", "ctm", "server"] # noqa: E501
|
|
83
|
+
all_params.append("async_req")
|
|
84
|
+
all_params.append("_return_http_data_only")
|
|
85
|
+
all_params.append("_preload_content")
|
|
86
|
+
all_params.append("_request_timeout")
|
|
87
|
+
|
|
88
|
+
params = locals()
|
|
89
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
90
|
+
if key not in all_params:
|
|
91
|
+
raise TypeError(
|
|
92
|
+
"Got an unexpected keyword argument '%s'"
|
|
93
|
+
" to method activate_workload_policy" % key
|
|
94
|
+
)
|
|
95
|
+
params[key] = val
|
|
96
|
+
del params["kwargs"]
|
|
97
|
+
# verify the required parameter 'policy' is set
|
|
98
|
+
if self.api_client.client_side_validation and (
|
|
99
|
+
"policy" not in params or params["policy"] is None
|
|
100
|
+
): # noqa: E501
|
|
101
|
+
raise ValueError(
|
|
102
|
+
"Missing the required parameter `policy` when calling `activate_workload_policy`"
|
|
103
|
+
) # noqa: E501
|
|
104
|
+
|
|
105
|
+
collection_formats = {}
|
|
106
|
+
|
|
107
|
+
path_params = {}
|
|
108
|
+
if "policy" in params:
|
|
109
|
+
path_params["policy"] = params["policy"] # noqa: E501
|
|
110
|
+
|
|
111
|
+
query_params = []
|
|
112
|
+
if "ctm" in params:
|
|
113
|
+
query_params.append(("ctm", params["ctm"])) # noqa: E501
|
|
114
|
+
if "server" in params:
|
|
115
|
+
query_params.append(("server", params["server"])) # noqa: E501
|
|
116
|
+
|
|
117
|
+
header_params = {}
|
|
118
|
+
|
|
119
|
+
form_params = []
|
|
120
|
+
local_var_files = {}
|
|
121
|
+
|
|
122
|
+
body_params = None
|
|
123
|
+
# HTTP header `Accept`
|
|
124
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
125
|
+
["application/json"]
|
|
126
|
+
) # noqa: E501
|
|
127
|
+
|
|
128
|
+
# Authentication setting
|
|
129
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
130
|
+
|
|
131
|
+
return self.api_client.call_api(
|
|
132
|
+
"/run/workloadpolicy/{policy}/activate",
|
|
133
|
+
"POST",
|
|
134
|
+
path_params,
|
|
135
|
+
query_params,
|
|
136
|
+
header_params,
|
|
137
|
+
body=body_params,
|
|
138
|
+
post_params=form_params,
|
|
139
|
+
files=local_var_files,
|
|
140
|
+
response_type="WorkloadPolicyStateList", # noqa: E501
|
|
141
|
+
auth_settings=auth_settings,
|
|
142
|
+
async_req=params.get("async_req"),
|
|
143
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
144
|
+
_preload_content=params.get("_preload_content", True),
|
|
145
|
+
_request_timeout=params.get("_request_timeout"),
|
|
146
|
+
collection_formats=collection_formats,
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
def add_event(self, server, event, **kwargs): # noqa: E501
|
|
150
|
+
"""Add a new event. # noqa: E501
|
|
151
|
+
|
|
152
|
+
Add a new event. date may be of format MMDD, ODAT to set current controlm date, STAT to set no date. default value is ODAT. # noqa: E501
|
|
153
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
154
|
+
asynchronous HTTP request, please pass async_req=True
|
|
155
|
+
>>> thread = api.add_event(server, event, async_req=True)
|
|
156
|
+
>>> result = thread.get()
|
|
157
|
+
|
|
158
|
+
:param async_req bool
|
|
159
|
+
:param str server: The Control-M Server hosting the event. (required)
|
|
160
|
+
:param EventParam event: The defined event name. (required)
|
|
161
|
+
:return: SuccessData
|
|
162
|
+
If the method is called asynchronously,
|
|
163
|
+
returns the request thread.
|
|
164
|
+
"""
|
|
165
|
+
kwargs["_return_http_data_only"] = True
|
|
166
|
+
if kwargs.get("async_req"):
|
|
167
|
+
return self.add_event_with_http_info(server, event, **kwargs) # noqa: E501
|
|
168
|
+
else:
|
|
169
|
+
(data) = self.add_event_with_http_info(
|
|
170
|
+
server, event, **kwargs
|
|
171
|
+
) # noqa: E501
|
|
172
|
+
return data
|
|
173
|
+
|
|
174
|
+
def add_event_with_http_info(self, server, event, **kwargs): # noqa: E501
|
|
175
|
+
"""Add a new event. # noqa: E501
|
|
176
|
+
|
|
177
|
+
Add a new event. date may be of format MMDD, ODAT to set current controlm date, STAT to set no date. default value is ODAT. # noqa: E501
|
|
178
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
179
|
+
asynchronous HTTP request, please pass async_req=True
|
|
180
|
+
>>> thread = api.add_event_with_http_info(server, event, async_req=True)
|
|
181
|
+
>>> result = thread.get()
|
|
182
|
+
|
|
183
|
+
:param async_req bool
|
|
184
|
+
:param str server: The Control-M Server hosting the event. (required)
|
|
185
|
+
:param EventParam event: The defined event name. (required)
|
|
186
|
+
:return: SuccessData
|
|
187
|
+
If the method is called asynchronously,
|
|
188
|
+
returns the request thread.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
all_params = ["server", "event"] # noqa: E501
|
|
192
|
+
all_params.append("async_req")
|
|
193
|
+
all_params.append("_return_http_data_only")
|
|
194
|
+
all_params.append("_preload_content")
|
|
195
|
+
all_params.append("_request_timeout")
|
|
196
|
+
|
|
197
|
+
params = locals()
|
|
198
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
199
|
+
if key not in all_params:
|
|
200
|
+
raise TypeError(
|
|
201
|
+
"Got an unexpected keyword argument '%s'"
|
|
202
|
+
" to method add_event" % key
|
|
203
|
+
)
|
|
204
|
+
params[key] = val
|
|
205
|
+
del params["kwargs"]
|
|
206
|
+
# verify the required parameter 'server' is set
|
|
207
|
+
if self.api_client.client_side_validation and (
|
|
208
|
+
"server" not in params or params["server"] is None
|
|
209
|
+
): # noqa: E501
|
|
210
|
+
raise ValueError(
|
|
211
|
+
"Missing the required parameter `server` when calling `add_event`"
|
|
212
|
+
) # noqa: E501
|
|
213
|
+
# verify the required parameter 'event' is set
|
|
214
|
+
if self.api_client.client_side_validation and (
|
|
215
|
+
"event" not in params or params["event"] is None
|
|
216
|
+
): # noqa: E501
|
|
217
|
+
raise ValueError(
|
|
218
|
+
"Missing the required parameter `event` when calling `add_event`"
|
|
219
|
+
) # noqa: E501
|
|
220
|
+
|
|
221
|
+
collection_formats = {}
|
|
222
|
+
|
|
223
|
+
path_params = {}
|
|
224
|
+
if "server" in params:
|
|
225
|
+
path_params["server"] = params["server"] # noqa: E501
|
|
226
|
+
|
|
227
|
+
query_params = []
|
|
228
|
+
|
|
229
|
+
header_params = {}
|
|
230
|
+
|
|
231
|
+
form_params = []
|
|
232
|
+
local_var_files = {}
|
|
233
|
+
|
|
234
|
+
body_params = None
|
|
235
|
+
if "event" in params:
|
|
236
|
+
body_params = params["event"]
|
|
237
|
+
# HTTP header `Accept`
|
|
238
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
239
|
+
["application/json"]
|
|
240
|
+
) # noqa: E501
|
|
241
|
+
|
|
242
|
+
# Authentication setting
|
|
243
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
244
|
+
|
|
245
|
+
return self.api_client.call_api(
|
|
246
|
+
"/run/event/{server}",
|
|
247
|
+
"POST",
|
|
248
|
+
path_params,
|
|
249
|
+
query_params,
|
|
250
|
+
header_params,
|
|
251
|
+
body=body_params,
|
|
252
|
+
post_params=form_params,
|
|
253
|
+
files=local_var_files,
|
|
254
|
+
response_type="SuccessData", # noqa: E501
|
|
255
|
+
auth_settings=auth_settings,
|
|
256
|
+
async_req=params.get("async_req"),
|
|
257
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
258
|
+
_preload_content=params.get("_preload_content", True),
|
|
259
|
+
_request_timeout=params.get("_request_timeout"),
|
|
260
|
+
collection_formats=collection_formats,
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
def add_resource(self, server, resource, **kwargs): # noqa: E501
|
|
264
|
+
"""Add a new pool resource. # noqa: E501
|
|
265
|
+
|
|
266
|
+
Add a new pool resource. # noqa: E501
|
|
267
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
268
|
+
asynchronous HTTP request, please pass async_req=True
|
|
269
|
+
>>> thread = api.add_resource(server, resource, async_req=True)
|
|
270
|
+
>>> result = thread.get()
|
|
271
|
+
|
|
272
|
+
:param async_req bool
|
|
273
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
274
|
+
:param ResourceParam resource: The defined resource name. (required)
|
|
275
|
+
:return: SuccessData
|
|
276
|
+
If the method is called asynchronously,
|
|
277
|
+
returns the request thread.
|
|
278
|
+
"""
|
|
279
|
+
kwargs["_return_http_data_only"] = True
|
|
280
|
+
if kwargs.get("async_req"):
|
|
281
|
+
return self.add_resource_with_http_info(
|
|
282
|
+
server, resource, **kwargs
|
|
283
|
+
) # noqa: E501
|
|
284
|
+
else:
|
|
285
|
+
(data) = self.add_resource_with_http_info(
|
|
286
|
+
server, resource, **kwargs
|
|
287
|
+
) # noqa: E501
|
|
288
|
+
return data
|
|
289
|
+
|
|
290
|
+
def add_resource_with_http_info(self, server, resource, **kwargs): # noqa: E501
|
|
291
|
+
"""Add a new pool resource. # noqa: E501
|
|
292
|
+
|
|
293
|
+
Add a new pool resource. # noqa: E501
|
|
294
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
295
|
+
asynchronous HTTP request, please pass async_req=True
|
|
296
|
+
>>> thread = api.add_resource_with_http_info(server, resource, async_req=True)
|
|
297
|
+
>>> result = thread.get()
|
|
298
|
+
|
|
299
|
+
:param async_req bool
|
|
300
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
301
|
+
:param ResourceParam resource: The defined resource name. (required)
|
|
302
|
+
:return: SuccessData
|
|
303
|
+
If the method is called asynchronously,
|
|
304
|
+
returns the request thread.
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
all_params = ["server", "resource"] # noqa: E501
|
|
308
|
+
all_params.append("async_req")
|
|
309
|
+
all_params.append("_return_http_data_only")
|
|
310
|
+
all_params.append("_preload_content")
|
|
311
|
+
all_params.append("_request_timeout")
|
|
312
|
+
|
|
313
|
+
params = locals()
|
|
314
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
315
|
+
if key not in all_params:
|
|
316
|
+
raise TypeError(
|
|
317
|
+
"Got an unexpected keyword argument '%s'"
|
|
318
|
+
" to method add_resource" % key
|
|
319
|
+
)
|
|
320
|
+
params[key] = val
|
|
321
|
+
del params["kwargs"]
|
|
322
|
+
# verify the required parameter 'server' is set
|
|
323
|
+
if self.api_client.client_side_validation and (
|
|
324
|
+
"server" not in params or params["server"] is None
|
|
325
|
+
): # noqa: E501
|
|
326
|
+
raise ValueError(
|
|
327
|
+
"Missing the required parameter `server` when calling `add_resource`"
|
|
328
|
+
) # noqa: E501
|
|
329
|
+
# verify the required parameter 'resource' is set
|
|
330
|
+
if self.api_client.client_side_validation and (
|
|
331
|
+
"resource" not in params or params["resource"] is None
|
|
332
|
+
): # noqa: E501
|
|
333
|
+
raise ValueError(
|
|
334
|
+
"Missing the required parameter `resource` when calling `add_resource`"
|
|
335
|
+
) # noqa: E501
|
|
336
|
+
|
|
337
|
+
collection_formats = {}
|
|
338
|
+
|
|
339
|
+
path_params = {}
|
|
340
|
+
if "server" in params:
|
|
341
|
+
path_params["server"] = params["server"] # noqa: E501
|
|
342
|
+
|
|
343
|
+
query_params = []
|
|
344
|
+
|
|
345
|
+
header_params = {}
|
|
346
|
+
|
|
347
|
+
form_params = []
|
|
348
|
+
local_var_files = {}
|
|
349
|
+
|
|
350
|
+
body_params = None
|
|
351
|
+
if "resource" in params:
|
|
352
|
+
body_params = params["resource"]
|
|
353
|
+
# HTTP header `Accept`
|
|
354
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
355
|
+
["application/json"]
|
|
356
|
+
) # noqa: E501
|
|
357
|
+
|
|
358
|
+
# Authentication setting
|
|
359
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
360
|
+
|
|
361
|
+
return self.api_client.call_api(
|
|
362
|
+
"/run/resource/{server}",
|
|
363
|
+
"POST",
|
|
364
|
+
path_params,
|
|
365
|
+
query_params,
|
|
366
|
+
header_params,
|
|
367
|
+
body=body_params,
|
|
368
|
+
post_params=form_params,
|
|
369
|
+
files=local_var_files,
|
|
370
|
+
response_type="SuccessData", # noqa: E501
|
|
371
|
+
auth_settings=auth_settings,
|
|
372
|
+
async_req=params.get("async_req"),
|
|
373
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
374
|
+
_preload_content=params.get("_preload_content", True),
|
|
375
|
+
_request_timeout=params.get("_request_timeout"),
|
|
376
|
+
collection_formats=collection_formats,
|
|
377
|
+
)
|
|
378
|
+
|
|
379
|
+
def add_workload_policies(self, workloadpoliciesfile, **kwargs): # noqa: E501
|
|
380
|
+
"""Add workload policies from definitions file # noqa: E501
|
|
381
|
+
|
|
382
|
+
Add workload policies from json definitions file to Control-M # noqa: E501
|
|
383
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
384
|
+
asynchronous HTTP request, please pass async_req=True
|
|
385
|
+
>>> thread = api.add_workload_policies(workloadpoliciesfile, async_req=True)
|
|
386
|
+
>>> result = thread.get()
|
|
387
|
+
|
|
388
|
+
:param async_req bool
|
|
389
|
+
:param file workloadpoliciesfile: A file that contains definitions of workload policies (required)
|
|
390
|
+
:return: WorkloadPoliciesFileResults
|
|
391
|
+
If the method is called asynchronously,
|
|
392
|
+
returns the request thread.
|
|
393
|
+
"""
|
|
394
|
+
kwargs["_return_http_data_only"] = True
|
|
395
|
+
if kwargs.get("async_req"):
|
|
396
|
+
return self.add_workload_policies_with_http_info(
|
|
397
|
+
workloadpoliciesfile, **kwargs
|
|
398
|
+
) # noqa: E501
|
|
399
|
+
else:
|
|
400
|
+
(data) = self.add_workload_policies_with_http_info(
|
|
401
|
+
workloadpoliciesfile, **kwargs
|
|
402
|
+
) # noqa: E501
|
|
403
|
+
return data
|
|
404
|
+
|
|
405
|
+
def add_workload_policies_with_http_info(
|
|
406
|
+
self, workloadpoliciesfile, **kwargs
|
|
407
|
+
): # noqa: E501
|
|
408
|
+
"""Add workload policies from definitions file # noqa: E501
|
|
409
|
+
|
|
410
|
+
Add workload policies from json definitions file to Control-M # noqa: E501
|
|
411
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
412
|
+
asynchronous HTTP request, please pass async_req=True
|
|
413
|
+
>>> thread = api.add_workload_policies_with_http_info(workloadpoliciesfile, async_req=True)
|
|
414
|
+
>>> result = thread.get()
|
|
415
|
+
|
|
416
|
+
:param async_req bool
|
|
417
|
+
:param file workloadpoliciesfile: A file that contains definitions of workload policies (required)
|
|
418
|
+
:return: WorkloadPoliciesFileResults
|
|
419
|
+
If the method is called asynchronously,
|
|
420
|
+
returns the request thread.
|
|
421
|
+
"""
|
|
422
|
+
|
|
423
|
+
all_params = ["workloadpoliciesfile"] # noqa: E501
|
|
424
|
+
all_params.append("async_req")
|
|
425
|
+
all_params.append("_return_http_data_only")
|
|
426
|
+
all_params.append("_preload_content")
|
|
427
|
+
all_params.append("_request_timeout")
|
|
428
|
+
|
|
429
|
+
params = locals()
|
|
430
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
431
|
+
if key not in all_params:
|
|
432
|
+
raise TypeError(
|
|
433
|
+
"Got an unexpected keyword argument '%s'"
|
|
434
|
+
" to method add_workload_policies" % key
|
|
435
|
+
)
|
|
436
|
+
params[key] = val
|
|
437
|
+
del params["kwargs"]
|
|
438
|
+
# verify the required parameter 'workloadpoliciesfile' is set
|
|
439
|
+
if self.api_client.client_side_validation and (
|
|
440
|
+
"workloadpoliciesfile" not in params
|
|
441
|
+
or params["workloadpoliciesfile"] is None
|
|
442
|
+
): # noqa: E501
|
|
443
|
+
raise ValueError(
|
|
444
|
+
"Missing the required parameter `workloadpoliciesfile` when calling `add_workload_policies`"
|
|
445
|
+
) # noqa: E501
|
|
446
|
+
|
|
447
|
+
collection_formats = {}
|
|
448
|
+
|
|
449
|
+
path_params = {}
|
|
450
|
+
|
|
451
|
+
query_params = []
|
|
452
|
+
|
|
453
|
+
header_params = {}
|
|
454
|
+
|
|
455
|
+
form_params = []
|
|
456
|
+
local_var_files = {}
|
|
457
|
+
if "workloadpoliciesfile" in params:
|
|
458
|
+
local_var_files["workloadpoliciesfile"] = params[
|
|
459
|
+
"workloadpoliciesfile"
|
|
460
|
+
] # noqa: E501
|
|
461
|
+
|
|
462
|
+
body_params = None
|
|
463
|
+
# HTTP header `Accept`
|
|
464
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
465
|
+
["application/json"]
|
|
466
|
+
) # noqa: E501
|
|
467
|
+
|
|
468
|
+
# HTTP header `Content-Type`
|
|
469
|
+
header_params[
|
|
470
|
+
"Content-Type"
|
|
471
|
+
] = self.api_client.select_header_content_type( # noqa: E501
|
|
472
|
+
["multipart/form-data"]
|
|
473
|
+
) # noqa: E501
|
|
474
|
+
|
|
475
|
+
# Authentication setting
|
|
476
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
477
|
+
|
|
478
|
+
return self.api_client.call_api(
|
|
479
|
+
"/run/workloadpolicies",
|
|
480
|
+
"POST",
|
|
481
|
+
path_params,
|
|
482
|
+
query_params,
|
|
483
|
+
header_params,
|
|
484
|
+
body=body_params,
|
|
485
|
+
post_params=form_params,
|
|
486
|
+
files=local_var_files,
|
|
487
|
+
response_type="WorkloadPoliciesFileResults", # noqa: E501
|
|
488
|
+
auth_settings=auth_settings,
|
|
489
|
+
async_req=params.get("async_req"),
|
|
490
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
491
|
+
_preload_content=params.get("_preload_content", True),
|
|
492
|
+
_request_timeout=params.get("_request_timeout"),
|
|
493
|
+
collection_formats=collection_formats,
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
def confirm_job(self, job_id, **kwargs): # noqa: E501
|
|
497
|
+
"""confirm a job # noqa: E501
|
|
498
|
+
|
|
499
|
+
confirm a job that waits for confirmation # noqa: E501
|
|
500
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
501
|
+
asynchronous HTTP request, please pass async_req=True
|
|
502
|
+
>>> thread = api.confirm_job(job_id, async_req=True)
|
|
503
|
+
>>> result = thread.get()
|
|
504
|
+
|
|
505
|
+
:param async_req bool
|
|
506
|
+
:param str job_id: The job ID (required)
|
|
507
|
+
:return: SuccessData
|
|
508
|
+
If the method is called asynchronously,
|
|
509
|
+
returns the request thread.
|
|
510
|
+
"""
|
|
511
|
+
kwargs["_return_http_data_only"] = True
|
|
512
|
+
if kwargs.get("async_req"):
|
|
513
|
+
return self.confirm_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
514
|
+
else:
|
|
515
|
+
(data) = self.confirm_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
516
|
+
return data
|
|
517
|
+
|
|
518
|
+
def confirm_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
519
|
+
"""confirm a job # noqa: E501
|
|
520
|
+
|
|
521
|
+
confirm a job that waits for confirmation # noqa: E501
|
|
522
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
523
|
+
asynchronous HTTP request, please pass async_req=True
|
|
524
|
+
>>> thread = api.confirm_job_with_http_info(job_id, async_req=True)
|
|
525
|
+
>>> result = thread.get()
|
|
526
|
+
|
|
527
|
+
:param async_req bool
|
|
528
|
+
:param str job_id: The job ID (required)
|
|
529
|
+
:return: SuccessData
|
|
530
|
+
If the method is called asynchronously,
|
|
531
|
+
returns the request thread.
|
|
532
|
+
"""
|
|
533
|
+
|
|
534
|
+
all_params = ["job_id"] # noqa: E501
|
|
535
|
+
all_params.append("async_req")
|
|
536
|
+
all_params.append("_return_http_data_only")
|
|
537
|
+
all_params.append("_preload_content")
|
|
538
|
+
all_params.append("_request_timeout")
|
|
539
|
+
|
|
540
|
+
params = locals()
|
|
541
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
542
|
+
if key not in all_params:
|
|
543
|
+
raise TypeError(
|
|
544
|
+
"Got an unexpected keyword argument '%s'"
|
|
545
|
+
" to method confirm_job" % key
|
|
546
|
+
)
|
|
547
|
+
params[key] = val
|
|
548
|
+
del params["kwargs"]
|
|
549
|
+
# verify the required parameter 'job_id' is set
|
|
550
|
+
if self.api_client.client_side_validation and (
|
|
551
|
+
"job_id" not in params or params["job_id"] is None
|
|
552
|
+
): # noqa: E501
|
|
553
|
+
raise ValueError(
|
|
554
|
+
"Missing the required parameter `job_id` when calling `confirm_job`"
|
|
555
|
+
) # noqa: E501
|
|
556
|
+
|
|
557
|
+
collection_formats = {}
|
|
558
|
+
|
|
559
|
+
path_params = {}
|
|
560
|
+
if "job_id" in params:
|
|
561
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
562
|
+
|
|
563
|
+
query_params = []
|
|
564
|
+
|
|
565
|
+
header_params = {}
|
|
566
|
+
|
|
567
|
+
form_params = []
|
|
568
|
+
local_var_files = {}
|
|
569
|
+
|
|
570
|
+
body_params = None
|
|
571
|
+
# HTTP header `Accept`
|
|
572
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
573
|
+
["application/json"]
|
|
574
|
+
) # noqa: E501
|
|
575
|
+
|
|
576
|
+
# Authentication setting
|
|
577
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
578
|
+
|
|
579
|
+
return self.api_client.call_api(
|
|
580
|
+
"/run/job/{jobId}/confirm",
|
|
581
|
+
"POST",
|
|
582
|
+
path_params,
|
|
583
|
+
query_params,
|
|
584
|
+
header_params,
|
|
585
|
+
body=body_params,
|
|
586
|
+
post_params=form_params,
|
|
587
|
+
files=local_var_files,
|
|
588
|
+
response_type="SuccessData", # noqa: E501
|
|
589
|
+
auth_settings=auth_settings,
|
|
590
|
+
async_req=params.get("async_req"),
|
|
591
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
592
|
+
_preload_content=params.get("_preload_content", True),
|
|
593
|
+
_request_timeout=params.get("_request_timeout"),
|
|
594
|
+
collection_formats=collection_formats,
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
def deactivate_workload_policy(self, policy, **kwargs): # noqa: E501
|
|
598
|
+
"""deactivate a workload policy # noqa: E501
|
|
599
|
+
|
|
600
|
+
Deactivate a workload policy, supports wildcard in names # noqa: E501
|
|
601
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
602
|
+
asynchronous HTTP request, please pass async_req=True
|
|
603
|
+
>>> thread = api.deactivate_workload_policy(policy, async_req=True)
|
|
604
|
+
>>> result = thread.get()
|
|
605
|
+
|
|
606
|
+
:param async_req bool
|
|
607
|
+
:param str policy: The policy name to be deactivated. Case sensitive. Wildcards can be used. (required)
|
|
608
|
+
:param str ctm: Optional Control-M Server filter.
|
|
609
|
+
:param str server: Optional Control-M Server filter.
|
|
610
|
+
:return: WorkloadPolicyStateList
|
|
611
|
+
If the method is called asynchronously,
|
|
612
|
+
returns the request thread.
|
|
613
|
+
"""
|
|
614
|
+
kwargs["_return_http_data_only"] = True
|
|
615
|
+
if kwargs.get("async_req"):
|
|
616
|
+
return self.deactivate_workload_policy_with_http_info(
|
|
617
|
+
policy, **kwargs
|
|
618
|
+
) # noqa: E501
|
|
619
|
+
else:
|
|
620
|
+
(data) = self.deactivate_workload_policy_with_http_info(
|
|
621
|
+
policy, **kwargs
|
|
622
|
+
) # noqa: E501
|
|
623
|
+
return data
|
|
624
|
+
|
|
625
|
+
def deactivate_workload_policy_with_http_info(self, policy, **kwargs): # noqa: E501
|
|
626
|
+
"""deactivate a workload policy # noqa: E501
|
|
627
|
+
|
|
628
|
+
Deactivate a workload policy, supports wildcard in names # noqa: E501
|
|
629
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
630
|
+
asynchronous HTTP request, please pass async_req=True
|
|
631
|
+
>>> thread = api.deactivate_workload_policy_with_http_info(policy, async_req=True)
|
|
632
|
+
>>> result = thread.get()
|
|
633
|
+
|
|
634
|
+
:param async_req bool
|
|
635
|
+
:param str policy: The policy name to be deactivated. Case sensitive. Wildcards can be used. (required)
|
|
636
|
+
:param str ctm: Optional Control-M Server filter.
|
|
637
|
+
:param str server: Optional Control-M Server filter.
|
|
638
|
+
:return: WorkloadPolicyStateList
|
|
639
|
+
If the method is called asynchronously,
|
|
640
|
+
returns the request thread.
|
|
641
|
+
"""
|
|
642
|
+
|
|
643
|
+
all_params = ["policy", "ctm", "server"] # noqa: E501
|
|
644
|
+
all_params.append("async_req")
|
|
645
|
+
all_params.append("_return_http_data_only")
|
|
646
|
+
all_params.append("_preload_content")
|
|
647
|
+
all_params.append("_request_timeout")
|
|
648
|
+
|
|
649
|
+
params = locals()
|
|
650
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
651
|
+
if key not in all_params:
|
|
652
|
+
raise TypeError(
|
|
653
|
+
"Got an unexpected keyword argument '%s'"
|
|
654
|
+
" to method deactivate_workload_policy" % key
|
|
655
|
+
)
|
|
656
|
+
params[key] = val
|
|
657
|
+
del params["kwargs"]
|
|
658
|
+
# verify the required parameter 'policy' is set
|
|
659
|
+
if self.api_client.client_side_validation and (
|
|
660
|
+
"policy" not in params or params["policy"] is None
|
|
661
|
+
): # noqa: E501
|
|
662
|
+
raise ValueError(
|
|
663
|
+
"Missing the required parameter `policy` when calling `deactivate_workload_policy`"
|
|
664
|
+
) # noqa: E501
|
|
665
|
+
|
|
666
|
+
collection_formats = {}
|
|
667
|
+
|
|
668
|
+
path_params = {}
|
|
669
|
+
if "policy" in params:
|
|
670
|
+
path_params["policy"] = params["policy"] # noqa: E501
|
|
671
|
+
|
|
672
|
+
query_params = []
|
|
673
|
+
if "ctm" in params:
|
|
674
|
+
query_params.append(("ctm", params["ctm"])) # noqa: E501
|
|
675
|
+
if "server" in params:
|
|
676
|
+
query_params.append(("server", params["server"])) # noqa: E501
|
|
677
|
+
|
|
678
|
+
header_params = {}
|
|
679
|
+
|
|
680
|
+
form_params = []
|
|
681
|
+
local_var_files = {}
|
|
682
|
+
|
|
683
|
+
body_params = None
|
|
684
|
+
# HTTP header `Accept`
|
|
685
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
686
|
+
["application/json"]
|
|
687
|
+
) # noqa: E501
|
|
688
|
+
|
|
689
|
+
# Authentication setting
|
|
690
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
691
|
+
|
|
692
|
+
return self.api_client.call_api(
|
|
693
|
+
"/run/workloadpolicy/{policy}/deactivate",
|
|
694
|
+
"POST",
|
|
695
|
+
path_params,
|
|
696
|
+
query_params,
|
|
697
|
+
header_params,
|
|
698
|
+
body=body_params,
|
|
699
|
+
post_params=form_params,
|
|
700
|
+
files=local_var_files,
|
|
701
|
+
response_type="WorkloadPolicyStateList", # noqa: E501
|
|
702
|
+
auth_settings=auth_settings,
|
|
703
|
+
async_req=params.get("async_req"),
|
|
704
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
705
|
+
_preload_content=params.get("_preload_content", True),
|
|
706
|
+
_request_timeout=params.get("_request_timeout"),
|
|
707
|
+
collection_formats=collection_formats,
|
|
708
|
+
)
|
|
709
|
+
|
|
710
|
+
def delete_event(self, server, name, _date, **kwargs): # noqa: E501
|
|
711
|
+
"""Delete a event. # noqa: E501
|
|
712
|
+
|
|
713
|
+
Delete a event. # noqa: E501
|
|
714
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
715
|
+
asynchronous HTTP request, please pass async_req=True
|
|
716
|
+
>>> thread = api.delete_event(server, name, _date, async_req=True)
|
|
717
|
+
>>> result = thread.get()
|
|
718
|
+
|
|
719
|
+
:param async_req bool
|
|
720
|
+
:param str server: The Control-M Server hosting the event. (required)
|
|
721
|
+
:param str name: event name (required)
|
|
722
|
+
:param str _date: event date (required)
|
|
723
|
+
:return: SuccessData
|
|
724
|
+
If the method is called asynchronously,
|
|
725
|
+
returns the request thread.
|
|
726
|
+
"""
|
|
727
|
+
kwargs["_return_http_data_only"] = True
|
|
728
|
+
if kwargs.get("async_req"):
|
|
729
|
+
return self.delete_event_with_http_info(
|
|
730
|
+
server, name, _date, **kwargs
|
|
731
|
+
) # noqa: E501
|
|
732
|
+
else:
|
|
733
|
+
(data) = self.delete_event_with_http_info(
|
|
734
|
+
server, name, _date, **kwargs
|
|
735
|
+
) # noqa: E501
|
|
736
|
+
return data
|
|
737
|
+
|
|
738
|
+
def delete_event_with_http_info(self, server, name, _date, **kwargs): # noqa: E501
|
|
739
|
+
"""Delete a event. # noqa: E501
|
|
740
|
+
|
|
741
|
+
Delete a event. # noqa: E501
|
|
742
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
743
|
+
asynchronous HTTP request, please pass async_req=True
|
|
744
|
+
>>> thread = api.delete_event_with_http_info(server, name, _date, async_req=True)
|
|
745
|
+
>>> result = thread.get()
|
|
746
|
+
|
|
747
|
+
:param async_req bool
|
|
748
|
+
:param str server: The Control-M Server hosting the event. (required)
|
|
749
|
+
:param str name: event name (required)
|
|
750
|
+
:param str _date: event date (required)
|
|
751
|
+
:return: SuccessData
|
|
752
|
+
If the method is called asynchronously,
|
|
753
|
+
returns the request thread.
|
|
754
|
+
"""
|
|
755
|
+
|
|
756
|
+
all_params = ["server", "name", "_date"] # noqa: E501
|
|
757
|
+
all_params.append("async_req")
|
|
758
|
+
all_params.append("_return_http_data_only")
|
|
759
|
+
all_params.append("_preload_content")
|
|
760
|
+
all_params.append("_request_timeout")
|
|
761
|
+
|
|
762
|
+
params = locals()
|
|
763
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
764
|
+
if key not in all_params:
|
|
765
|
+
raise TypeError(
|
|
766
|
+
"Got an unexpected keyword argument '%s'"
|
|
767
|
+
" to method delete_event" % key
|
|
768
|
+
)
|
|
769
|
+
params[key] = val
|
|
770
|
+
del params["kwargs"]
|
|
771
|
+
# verify the required parameter 'server' is set
|
|
772
|
+
if self.api_client.client_side_validation and (
|
|
773
|
+
"server" not in params or params["server"] is None
|
|
774
|
+
): # noqa: E501
|
|
775
|
+
raise ValueError(
|
|
776
|
+
"Missing the required parameter `server` when calling `delete_event`"
|
|
777
|
+
) # noqa: E501
|
|
778
|
+
# verify the required parameter 'name' is set
|
|
779
|
+
if self.api_client.client_side_validation and (
|
|
780
|
+
"name" not in params or params["name"] is None
|
|
781
|
+
): # noqa: E501
|
|
782
|
+
raise ValueError(
|
|
783
|
+
"Missing the required parameter `name` when calling `delete_event`"
|
|
784
|
+
) # noqa: E501
|
|
785
|
+
# verify the required parameter '_date' is set
|
|
786
|
+
if self.api_client.client_side_validation and (
|
|
787
|
+
"_date" not in params or params["_date"] is None
|
|
788
|
+
): # noqa: E501
|
|
789
|
+
raise ValueError(
|
|
790
|
+
"Missing the required parameter `_date` when calling `delete_event`"
|
|
791
|
+
) # noqa: E501
|
|
792
|
+
|
|
793
|
+
collection_formats = {}
|
|
794
|
+
|
|
795
|
+
path_params = {}
|
|
796
|
+
if "server" in params:
|
|
797
|
+
path_params["server"] = params["server"] # noqa: E501
|
|
798
|
+
if "name" in params:
|
|
799
|
+
path_params["name"] = params["name"] # noqa: E501
|
|
800
|
+
if "_date" in params:
|
|
801
|
+
path_params["date"] = params["_date"] # noqa: E501
|
|
802
|
+
|
|
803
|
+
query_params = []
|
|
804
|
+
|
|
805
|
+
header_params = {}
|
|
806
|
+
|
|
807
|
+
form_params = []
|
|
808
|
+
local_var_files = {}
|
|
809
|
+
|
|
810
|
+
body_params = None
|
|
811
|
+
# HTTP header `Accept`
|
|
812
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
813
|
+
["application/json"]
|
|
814
|
+
) # noqa: E501
|
|
815
|
+
|
|
816
|
+
# Authentication setting
|
|
817
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
818
|
+
|
|
819
|
+
return self.api_client.call_api(
|
|
820
|
+
"/run/event/{server}/{name}/{date}",
|
|
821
|
+
"DELETE",
|
|
822
|
+
path_params,
|
|
823
|
+
query_params,
|
|
824
|
+
header_params,
|
|
825
|
+
body=body_params,
|
|
826
|
+
post_params=form_params,
|
|
827
|
+
files=local_var_files,
|
|
828
|
+
response_type="SuccessData", # noqa: E501
|
|
829
|
+
auth_settings=auth_settings,
|
|
830
|
+
async_req=params.get("async_req"),
|
|
831
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
832
|
+
_preload_content=params.get("_preload_content", True),
|
|
833
|
+
_request_timeout=params.get("_request_timeout"),
|
|
834
|
+
collection_formats=collection_formats,
|
|
835
|
+
)
|
|
836
|
+
|
|
837
|
+
def delete_job(self, job_id, **kwargs): # noqa: E501
|
|
838
|
+
"""mark job as deleted # noqa: E501
|
|
839
|
+
|
|
840
|
+
mark delete as deleted # noqa: E501
|
|
841
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
842
|
+
asynchronous HTTP request, please pass async_req=True
|
|
843
|
+
>>> thread = api.delete_job(job_id, async_req=True)
|
|
844
|
+
>>> result = thread.get()
|
|
845
|
+
|
|
846
|
+
:param async_req bool
|
|
847
|
+
:param str job_id: The job ID (required)
|
|
848
|
+
:return: SuccessData
|
|
849
|
+
If the method is called asynchronously,
|
|
850
|
+
returns the request thread.
|
|
851
|
+
"""
|
|
852
|
+
kwargs["_return_http_data_only"] = True
|
|
853
|
+
if kwargs.get("async_req"):
|
|
854
|
+
return self.delete_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
855
|
+
else:
|
|
856
|
+
(data) = self.delete_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
857
|
+
return data
|
|
858
|
+
|
|
859
|
+
def delete_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
860
|
+
"""mark job as deleted # noqa: E501
|
|
861
|
+
|
|
862
|
+
mark delete as deleted # noqa: E501
|
|
863
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
864
|
+
asynchronous HTTP request, please pass async_req=True
|
|
865
|
+
>>> thread = api.delete_job_with_http_info(job_id, async_req=True)
|
|
866
|
+
>>> result = thread.get()
|
|
867
|
+
|
|
868
|
+
:param async_req bool
|
|
869
|
+
:param str job_id: The job ID (required)
|
|
870
|
+
:return: SuccessData
|
|
871
|
+
If the method is called asynchronously,
|
|
872
|
+
returns the request thread.
|
|
873
|
+
"""
|
|
874
|
+
|
|
875
|
+
all_params = ["job_id"] # noqa: E501
|
|
876
|
+
all_params.append("async_req")
|
|
877
|
+
all_params.append("_return_http_data_only")
|
|
878
|
+
all_params.append("_preload_content")
|
|
879
|
+
all_params.append("_request_timeout")
|
|
880
|
+
|
|
881
|
+
params = locals()
|
|
882
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
883
|
+
if key not in all_params:
|
|
884
|
+
raise TypeError(
|
|
885
|
+
"Got an unexpected keyword argument '%s'"
|
|
886
|
+
" to method delete_job" % key
|
|
887
|
+
)
|
|
888
|
+
params[key] = val
|
|
889
|
+
del params["kwargs"]
|
|
890
|
+
# verify the required parameter 'job_id' is set
|
|
891
|
+
if self.api_client.client_side_validation and (
|
|
892
|
+
"job_id" not in params or params["job_id"] is None
|
|
893
|
+
): # noqa: E501
|
|
894
|
+
raise ValueError(
|
|
895
|
+
"Missing the required parameter `job_id` when calling `delete_job`"
|
|
896
|
+
) # noqa: E501
|
|
897
|
+
|
|
898
|
+
collection_formats = {}
|
|
899
|
+
|
|
900
|
+
path_params = {}
|
|
901
|
+
if "job_id" in params:
|
|
902
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
903
|
+
|
|
904
|
+
query_params = []
|
|
905
|
+
|
|
906
|
+
header_params = {}
|
|
907
|
+
|
|
908
|
+
form_params = []
|
|
909
|
+
local_var_files = {}
|
|
910
|
+
|
|
911
|
+
body_params = None
|
|
912
|
+
# HTTP header `Accept`
|
|
913
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
914
|
+
["application/json"]
|
|
915
|
+
) # noqa: E501
|
|
916
|
+
|
|
917
|
+
# Authentication setting
|
|
918
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
919
|
+
|
|
920
|
+
return self.api_client.call_api(
|
|
921
|
+
"/run/job/{jobId}/delete",
|
|
922
|
+
"POST",
|
|
923
|
+
path_params,
|
|
924
|
+
query_params,
|
|
925
|
+
header_params,
|
|
926
|
+
body=body_params,
|
|
927
|
+
post_params=form_params,
|
|
928
|
+
files=local_var_files,
|
|
929
|
+
response_type="SuccessData", # noqa: E501
|
|
930
|
+
auth_settings=auth_settings,
|
|
931
|
+
async_req=params.get("async_req"),
|
|
932
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
933
|
+
_preload_content=params.get("_preload_content", True),
|
|
934
|
+
_request_timeout=params.get("_request_timeout"),
|
|
935
|
+
collection_formats=collection_formats,
|
|
936
|
+
)
|
|
937
|
+
|
|
938
|
+
def delete_resource(self, server, name, **kwargs): # noqa: E501
|
|
939
|
+
"""Delete a pool resource. # noqa: E501
|
|
940
|
+
|
|
941
|
+
Delete a pool resource. # noqa: E501
|
|
942
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
943
|
+
asynchronous HTTP request, please pass async_req=True
|
|
944
|
+
>>> thread = api.delete_resource(server, name, async_req=True)
|
|
945
|
+
>>> result = thread.get()
|
|
946
|
+
|
|
947
|
+
:param async_req bool
|
|
948
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
949
|
+
:param str name: Resource name (required)
|
|
950
|
+
:return: SuccessData
|
|
951
|
+
If the method is called asynchronously,
|
|
952
|
+
returns the request thread.
|
|
953
|
+
"""
|
|
954
|
+
kwargs["_return_http_data_only"] = True
|
|
955
|
+
if kwargs.get("async_req"):
|
|
956
|
+
return self.delete_resource_with_http_info(
|
|
957
|
+
server, name, **kwargs
|
|
958
|
+
) # noqa: E501
|
|
959
|
+
else:
|
|
960
|
+
(data) = self.delete_resource_with_http_info(
|
|
961
|
+
server, name, **kwargs
|
|
962
|
+
) # noqa: E501
|
|
963
|
+
return data
|
|
964
|
+
|
|
965
|
+
def delete_resource_with_http_info(self, server, name, **kwargs): # noqa: E501
|
|
966
|
+
"""Delete a pool resource. # noqa: E501
|
|
967
|
+
|
|
968
|
+
Delete a pool resource. # noqa: E501
|
|
969
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
970
|
+
asynchronous HTTP request, please pass async_req=True
|
|
971
|
+
>>> thread = api.delete_resource_with_http_info(server, name, async_req=True)
|
|
972
|
+
>>> result = thread.get()
|
|
973
|
+
|
|
974
|
+
:param async_req bool
|
|
975
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
976
|
+
:param str name: Resource name (required)
|
|
977
|
+
:return: SuccessData
|
|
978
|
+
If the method is called asynchronously,
|
|
979
|
+
returns the request thread.
|
|
980
|
+
"""
|
|
981
|
+
|
|
982
|
+
all_params = ["server", "name"] # noqa: E501
|
|
983
|
+
all_params.append("async_req")
|
|
984
|
+
all_params.append("_return_http_data_only")
|
|
985
|
+
all_params.append("_preload_content")
|
|
986
|
+
all_params.append("_request_timeout")
|
|
987
|
+
|
|
988
|
+
params = locals()
|
|
989
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
990
|
+
if key not in all_params:
|
|
991
|
+
raise TypeError(
|
|
992
|
+
"Got an unexpected keyword argument '%s'"
|
|
993
|
+
" to method delete_resource" % key
|
|
994
|
+
)
|
|
995
|
+
params[key] = val
|
|
996
|
+
del params["kwargs"]
|
|
997
|
+
# verify the required parameter 'server' is set
|
|
998
|
+
if self.api_client.client_side_validation and (
|
|
999
|
+
"server" not in params or params["server"] is None
|
|
1000
|
+
): # noqa: E501
|
|
1001
|
+
raise ValueError(
|
|
1002
|
+
"Missing the required parameter `server` when calling `delete_resource`"
|
|
1003
|
+
) # noqa: E501
|
|
1004
|
+
# verify the required parameter 'name' is set
|
|
1005
|
+
if self.api_client.client_side_validation and (
|
|
1006
|
+
"name" not in params or params["name"] is None
|
|
1007
|
+
): # noqa: E501
|
|
1008
|
+
raise ValueError(
|
|
1009
|
+
"Missing the required parameter `name` when calling `delete_resource`"
|
|
1010
|
+
) # noqa: E501
|
|
1011
|
+
|
|
1012
|
+
collection_formats = {}
|
|
1013
|
+
|
|
1014
|
+
path_params = {}
|
|
1015
|
+
if "server" in params:
|
|
1016
|
+
path_params["server"] = params["server"] # noqa: E501
|
|
1017
|
+
if "name" in params:
|
|
1018
|
+
path_params["name"] = params["name"] # noqa: E501
|
|
1019
|
+
|
|
1020
|
+
query_params = []
|
|
1021
|
+
|
|
1022
|
+
header_params = {}
|
|
1023
|
+
|
|
1024
|
+
form_params = []
|
|
1025
|
+
local_var_files = {}
|
|
1026
|
+
|
|
1027
|
+
body_params = None
|
|
1028
|
+
# HTTP header `Accept`
|
|
1029
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1030
|
+
["application/json"]
|
|
1031
|
+
) # noqa: E501
|
|
1032
|
+
|
|
1033
|
+
# Authentication setting
|
|
1034
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1035
|
+
|
|
1036
|
+
return self.api_client.call_api(
|
|
1037
|
+
"/run/resource/{server}/{name}",
|
|
1038
|
+
"DELETE",
|
|
1039
|
+
path_params,
|
|
1040
|
+
query_params,
|
|
1041
|
+
header_params,
|
|
1042
|
+
body=body_params,
|
|
1043
|
+
post_params=form_params,
|
|
1044
|
+
files=local_var_files,
|
|
1045
|
+
response_type="SuccessData", # noqa: E501
|
|
1046
|
+
auth_settings=auth_settings,
|
|
1047
|
+
async_req=params.get("async_req"),
|
|
1048
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1049
|
+
_preload_content=params.get("_preload_content", True),
|
|
1050
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1051
|
+
collection_formats=collection_formats,
|
|
1052
|
+
)
|
|
1053
|
+
|
|
1054
|
+
def delete_workload_policy(self, workloadpolicy_name, **kwargs): # noqa: E501
|
|
1055
|
+
"""delete workloadpolicy # noqa: E501
|
|
1056
|
+
|
|
1057
|
+
Delete workloadpolicy # noqa: E501
|
|
1058
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1059
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1060
|
+
>>> thread = api.delete_workload_policy(workloadpolicy_name, async_req=True)
|
|
1061
|
+
>>> result = thread.get()
|
|
1062
|
+
|
|
1063
|
+
:param async_req bool
|
|
1064
|
+
:param str workloadpolicy_name: The name of the workloadPolicy to be deleted. (required)
|
|
1065
|
+
:return: SuccessData
|
|
1066
|
+
If the method is called asynchronously,
|
|
1067
|
+
returns the request thread.
|
|
1068
|
+
"""
|
|
1069
|
+
kwargs["_return_http_data_only"] = True
|
|
1070
|
+
if kwargs.get("async_req"):
|
|
1071
|
+
return self.delete_workload_policy_with_http_info(
|
|
1072
|
+
workloadpolicy_name, **kwargs
|
|
1073
|
+
) # noqa: E501
|
|
1074
|
+
else:
|
|
1075
|
+
(data) = self.delete_workload_policy_with_http_info(
|
|
1076
|
+
workloadpolicy_name, **kwargs
|
|
1077
|
+
) # noqa: E501
|
|
1078
|
+
return data
|
|
1079
|
+
|
|
1080
|
+
def delete_workload_policy_with_http_info(
|
|
1081
|
+
self, workloadpolicy_name, **kwargs
|
|
1082
|
+
): # noqa: E501
|
|
1083
|
+
"""delete workloadpolicy # noqa: E501
|
|
1084
|
+
|
|
1085
|
+
Delete workloadpolicy # noqa: E501
|
|
1086
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1087
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1088
|
+
>>> thread = api.delete_workload_policy_with_http_info(workloadpolicy_name, async_req=True)
|
|
1089
|
+
>>> result = thread.get()
|
|
1090
|
+
|
|
1091
|
+
:param async_req bool
|
|
1092
|
+
:param str workloadpolicy_name: The name of the workloadPolicy to be deleted. (required)
|
|
1093
|
+
:return: SuccessData
|
|
1094
|
+
If the method is called asynchronously,
|
|
1095
|
+
returns the request thread.
|
|
1096
|
+
"""
|
|
1097
|
+
|
|
1098
|
+
all_params = ["workloadpolicy_name"] # noqa: E501
|
|
1099
|
+
all_params.append("async_req")
|
|
1100
|
+
all_params.append("_return_http_data_only")
|
|
1101
|
+
all_params.append("_preload_content")
|
|
1102
|
+
all_params.append("_request_timeout")
|
|
1103
|
+
|
|
1104
|
+
params = locals()
|
|
1105
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1106
|
+
if key not in all_params:
|
|
1107
|
+
raise TypeError(
|
|
1108
|
+
"Got an unexpected keyword argument '%s'"
|
|
1109
|
+
" to method delete_workload_policy" % key
|
|
1110
|
+
)
|
|
1111
|
+
params[key] = val
|
|
1112
|
+
del params["kwargs"]
|
|
1113
|
+
# verify the required parameter 'workloadpolicy_name' is set
|
|
1114
|
+
if self.api_client.client_side_validation and (
|
|
1115
|
+
"workloadpolicy_name" not in params or params["workloadpolicy_name"] is None
|
|
1116
|
+
): # noqa: E501
|
|
1117
|
+
raise ValueError(
|
|
1118
|
+
"Missing the required parameter `workloadpolicy_name` when calling `delete_workload_policy`"
|
|
1119
|
+
) # noqa: E501
|
|
1120
|
+
|
|
1121
|
+
collection_formats = {}
|
|
1122
|
+
|
|
1123
|
+
path_params = {}
|
|
1124
|
+
if "workloadpolicy_name" in params:
|
|
1125
|
+
path_params["workloadpolicyName"] = params[
|
|
1126
|
+
"workloadpolicy_name"
|
|
1127
|
+
] # noqa: E501
|
|
1128
|
+
|
|
1129
|
+
query_params = []
|
|
1130
|
+
|
|
1131
|
+
header_params = {}
|
|
1132
|
+
|
|
1133
|
+
form_params = []
|
|
1134
|
+
local_var_files = {}
|
|
1135
|
+
|
|
1136
|
+
body_params = None
|
|
1137
|
+
# HTTP header `Accept`
|
|
1138
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1139
|
+
["application/json"]
|
|
1140
|
+
) # noqa: E501
|
|
1141
|
+
|
|
1142
|
+
# Authentication setting
|
|
1143
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1144
|
+
|
|
1145
|
+
return self.api_client.call_api(
|
|
1146
|
+
"/run/workloadpolicy/{workloadpolicyName}",
|
|
1147
|
+
"DELETE",
|
|
1148
|
+
path_params,
|
|
1149
|
+
query_params,
|
|
1150
|
+
header_params,
|
|
1151
|
+
body=body_params,
|
|
1152
|
+
post_params=form_params,
|
|
1153
|
+
files=local_var_files,
|
|
1154
|
+
response_type="SuccessData", # noqa: E501
|
|
1155
|
+
auth_settings=auth_settings,
|
|
1156
|
+
async_req=params.get("async_req"),
|
|
1157
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1158
|
+
_preload_content=params.get("_preload_content", True),
|
|
1159
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1160
|
+
collection_formats=collection_formats,
|
|
1161
|
+
)
|
|
1162
|
+
|
|
1163
|
+
def free_job(self, job_id, **kwargs): # noqa: E501
|
|
1164
|
+
"""free an already held the job # noqa: E501
|
|
1165
|
+
|
|
1166
|
+
free the job # noqa: E501
|
|
1167
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1168
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1169
|
+
>>> thread = api.free_job(job_id, async_req=True)
|
|
1170
|
+
>>> result = thread.get()
|
|
1171
|
+
|
|
1172
|
+
:param async_req bool
|
|
1173
|
+
:param str job_id: The job ID (required)
|
|
1174
|
+
:return: SuccessData
|
|
1175
|
+
If the method is called asynchronously,
|
|
1176
|
+
returns the request thread.
|
|
1177
|
+
"""
|
|
1178
|
+
kwargs["_return_http_data_only"] = True
|
|
1179
|
+
if kwargs.get("async_req"):
|
|
1180
|
+
return self.free_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1181
|
+
else:
|
|
1182
|
+
(data) = self.free_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1183
|
+
return data
|
|
1184
|
+
|
|
1185
|
+
def free_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1186
|
+
"""free an already held the job # noqa: E501
|
|
1187
|
+
|
|
1188
|
+
free the job # noqa: E501
|
|
1189
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1190
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1191
|
+
>>> thread = api.free_job_with_http_info(job_id, async_req=True)
|
|
1192
|
+
>>> result = thread.get()
|
|
1193
|
+
|
|
1194
|
+
:param async_req bool
|
|
1195
|
+
:param str job_id: The job ID (required)
|
|
1196
|
+
:return: SuccessData
|
|
1197
|
+
If the method is called asynchronously,
|
|
1198
|
+
returns the request thread.
|
|
1199
|
+
"""
|
|
1200
|
+
|
|
1201
|
+
all_params = ["job_id"] # noqa: E501
|
|
1202
|
+
all_params.append("async_req")
|
|
1203
|
+
all_params.append("_return_http_data_only")
|
|
1204
|
+
all_params.append("_preload_content")
|
|
1205
|
+
all_params.append("_request_timeout")
|
|
1206
|
+
|
|
1207
|
+
params = locals()
|
|
1208
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1209
|
+
if key not in all_params:
|
|
1210
|
+
raise TypeError(
|
|
1211
|
+
"Got an unexpected keyword argument '%s'"
|
|
1212
|
+
" to method free_job" % key
|
|
1213
|
+
)
|
|
1214
|
+
params[key] = val
|
|
1215
|
+
del params["kwargs"]
|
|
1216
|
+
# verify the required parameter 'job_id' is set
|
|
1217
|
+
if self.api_client.client_side_validation and (
|
|
1218
|
+
"job_id" not in params or params["job_id"] is None
|
|
1219
|
+
): # noqa: E501
|
|
1220
|
+
raise ValueError(
|
|
1221
|
+
"Missing the required parameter `job_id` when calling `free_job`"
|
|
1222
|
+
) # noqa: E501
|
|
1223
|
+
|
|
1224
|
+
collection_formats = {}
|
|
1225
|
+
|
|
1226
|
+
path_params = {}
|
|
1227
|
+
if "job_id" in params:
|
|
1228
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
1229
|
+
|
|
1230
|
+
query_params = []
|
|
1231
|
+
|
|
1232
|
+
header_params = {}
|
|
1233
|
+
|
|
1234
|
+
form_params = []
|
|
1235
|
+
local_var_files = {}
|
|
1236
|
+
|
|
1237
|
+
body_params = None
|
|
1238
|
+
# HTTP header `Accept`
|
|
1239
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1240
|
+
["application/json"]
|
|
1241
|
+
) # noqa: E501
|
|
1242
|
+
|
|
1243
|
+
# Authentication setting
|
|
1244
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1245
|
+
|
|
1246
|
+
return self.api_client.call_api(
|
|
1247
|
+
"/run/job/{jobId}/free",
|
|
1248
|
+
"POST",
|
|
1249
|
+
path_params,
|
|
1250
|
+
query_params,
|
|
1251
|
+
header_params,
|
|
1252
|
+
body=body_params,
|
|
1253
|
+
post_params=form_params,
|
|
1254
|
+
files=local_var_files,
|
|
1255
|
+
response_type="SuccessData", # noqa: E501
|
|
1256
|
+
auth_settings=auth_settings,
|
|
1257
|
+
async_req=params.get("async_req"),
|
|
1258
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1259
|
+
_preload_content=params.get("_preload_content", True),
|
|
1260
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1261
|
+
collection_formats=collection_formats,
|
|
1262
|
+
)
|
|
1263
|
+
|
|
1264
|
+
def get_active_job(self, job_id, **kwargs): # noqa: E501
|
|
1265
|
+
"""get active job # noqa: E501
|
|
1266
|
+
|
|
1267
|
+
get the active job's data by job's order ID # noqa: E501
|
|
1268
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1269
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1270
|
+
>>> thread = api.get_active_job(job_id, async_req=True)
|
|
1271
|
+
>>> result = thread.get()
|
|
1272
|
+
|
|
1273
|
+
:param async_req bool
|
|
1274
|
+
:param str job_id: The job ID (required)
|
|
1275
|
+
:return: str
|
|
1276
|
+
If the method is called asynchronously,
|
|
1277
|
+
returns the request thread.
|
|
1278
|
+
"""
|
|
1279
|
+
kwargs["_return_http_data_only"] = True
|
|
1280
|
+
if kwargs.get("async_req"):
|
|
1281
|
+
return self.get_active_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1282
|
+
else:
|
|
1283
|
+
(data) = self.get_active_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1284
|
+
return data
|
|
1285
|
+
|
|
1286
|
+
def get_active_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1287
|
+
"""get active job # noqa: E501
|
|
1288
|
+
|
|
1289
|
+
get the active job's data by job's order ID # noqa: E501
|
|
1290
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1291
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1292
|
+
>>> thread = api.get_active_job_with_http_info(job_id, async_req=True)
|
|
1293
|
+
>>> result = thread.get()
|
|
1294
|
+
|
|
1295
|
+
:param async_req bool
|
|
1296
|
+
:param str job_id: The job ID (required)
|
|
1297
|
+
:return: str
|
|
1298
|
+
If the method is called asynchronously,
|
|
1299
|
+
returns the request thread.
|
|
1300
|
+
"""
|
|
1301
|
+
|
|
1302
|
+
all_params = ["job_id"] # noqa: E501
|
|
1303
|
+
all_params.append("async_req")
|
|
1304
|
+
all_params.append("_return_http_data_only")
|
|
1305
|
+
all_params.append("_preload_content")
|
|
1306
|
+
all_params.append("_request_timeout")
|
|
1307
|
+
|
|
1308
|
+
params = locals()
|
|
1309
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1310
|
+
if key not in all_params:
|
|
1311
|
+
raise TypeError(
|
|
1312
|
+
"Got an unexpected keyword argument '%s'"
|
|
1313
|
+
" to method get_active_job" % key
|
|
1314
|
+
)
|
|
1315
|
+
params[key] = val
|
|
1316
|
+
del params["kwargs"]
|
|
1317
|
+
# verify the required parameter 'job_id' is set
|
|
1318
|
+
if self.api_client.client_side_validation and (
|
|
1319
|
+
"job_id" not in params or params["job_id"] is None
|
|
1320
|
+
): # noqa: E501
|
|
1321
|
+
raise ValueError(
|
|
1322
|
+
"Missing the required parameter `job_id` when calling `get_active_job`"
|
|
1323
|
+
) # noqa: E501
|
|
1324
|
+
|
|
1325
|
+
collection_formats = {}
|
|
1326
|
+
|
|
1327
|
+
path_params = {}
|
|
1328
|
+
if "job_id" in params:
|
|
1329
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
1330
|
+
|
|
1331
|
+
query_params = []
|
|
1332
|
+
|
|
1333
|
+
header_params = {}
|
|
1334
|
+
|
|
1335
|
+
form_params = []
|
|
1336
|
+
local_var_files = {}
|
|
1337
|
+
|
|
1338
|
+
body_params = None
|
|
1339
|
+
# HTTP header `Accept`
|
|
1340
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1341
|
+
["application/json"]
|
|
1342
|
+
) # noqa: E501
|
|
1343
|
+
|
|
1344
|
+
# Authentication setting
|
|
1345
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1346
|
+
|
|
1347
|
+
return self.api_client.call_api(
|
|
1348
|
+
"/run/job/{jobId}/get",
|
|
1349
|
+
"GET",
|
|
1350
|
+
path_params,
|
|
1351
|
+
query_params,
|
|
1352
|
+
header_params,
|
|
1353
|
+
body=body_params,
|
|
1354
|
+
post_params=form_params,
|
|
1355
|
+
files=local_var_files,
|
|
1356
|
+
response_type="str", # noqa: E501
|
|
1357
|
+
auth_settings=auth_settings,
|
|
1358
|
+
async_req=params.get("async_req"),
|
|
1359
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1360
|
+
_preload_content=params.get("_preload_content", True),
|
|
1361
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1362
|
+
collection_formats=collection_formats,
|
|
1363
|
+
)
|
|
1364
|
+
|
|
1365
|
+
def get_active_services(self, **kwargs): # noqa: E501
|
|
1366
|
+
"""Get SLA active services # noqa: E501
|
|
1367
|
+
|
|
1368
|
+
Get all SLA active services # noqa: E501
|
|
1369
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1370
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1371
|
+
>>> thread = api.get_active_services(async_req=True)
|
|
1372
|
+
>>> result = thread.get()
|
|
1373
|
+
|
|
1374
|
+
:param async_req bool
|
|
1375
|
+
:return: ActiveServices
|
|
1376
|
+
If the method is called asynchronously,
|
|
1377
|
+
returns the request thread.
|
|
1378
|
+
"""
|
|
1379
|
+
kwargs["_return_http_data_only"] = True
|
|
1380
|
+
if kwargs.get("async_req"):
|
|
1381
|
+
return self.get_active_services_with_http_info(**kwargs) # noqa: E501
|
|
1382
|
+
else:
|
|
1383
|
+
(data) = self.get_active_services_with_http_info(**kwargs) # noqa: E501
|
|
1384
|
+
return data
|
|
1385
|
+
|
|
1386
|
+
def get_active_services_with_http_info(self, **kwargs): # noqa: E501
|
|
1387
|
+
"""Get SLA active services # noqa: E501
|
|
1388
|
+
|
|
1389
|
+
Get all SLA active services # noqa: E501
|
|
1390
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1391
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1392
|
+
>>> thread = api.get_active_services_with_http_info(async_req=True)
|
|
1393
|
+
>>> result = thread.get()
|
|
1394
|
+
|
|
1395
|
+
:param async_req bool
|
|
1396
|
+
:return: ActiveServices
|
|
1397
|
+
If the method is called asynchronously,
|
|
1398
|
+
returns the request thread.
|
|
1399
|
+
"""
|
|
1400
|
+
|
|
1401
|
+
all_params = [] # noqa: E501
|
|
1402
|
+
all_params.append("async_req")
|
|
1403
|
+
all_params.append("_return_http_data_only")
|
|
1404
|
+
all_params.append("_preload_content")
|
|
1405
|
+
all_params.append("_request_timeout")
|
|
1406
|
+
|
|
1407
|
+
params = locals()
|
|
1408
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1409
|
+
if key not in all_params:
|
|
1410
|
+
raise TypeError(
|
|
1411
|
+
"Got an unexpected keyword argument '%s'"
|
|
1412
|
+
" to method get_active_services" % key
|
|
1413
|
+
)
|
|
1414
|
+
params[key] = val
|
|
1415
|
+
del params["kwargs"]
|
|
1416
|
+
|
|
1417
|
+
collection_formats = {}
|
|
1418
|
+
|
|
1419
|
+
path_params = {}
|
|
1420
|
+
|
|
1421
|
+
query_params = []
|
|
1422
|
+
|
|
1423
|
+
header_params = {}
|
|
1424
|
+
|
|
1425
|
+
form_params = []
|
|
1426
|
+
local_var_files = {}
|
|
1427
|
+
|
|
1428
|
+
body_params = None
|
|
1429
|
+
# HTTP header `Accept`
|
|
1430
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1431
|
+
["application/json"]
|
|
1432
|
+
) # noqa: E501
|
|
1433
|
+
|
|
1434
|
+
# Authentication setting
|
|
1435
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1436
|
+
|
|
1437
|
+
return self.api_client.call_api(
|
|
1438
|
+
"/run/services/sla",
|
|
1439
|
+
"GET",
|
|
1440
|
+
path_params,
|
|
1441
|
+
query_params,
|
|
1442
|
+
header_params,
|
|
1443
|
+
body=body_params,
|
|
1444
|
+
post_params=form_params,
|
|
1445
|
+
files=local_var_files,
|
|
1446
|
+
response_type="ActiveServices", # noqa: E501
|
|
1447
|
+
auth_settings=auth_settings,
|
|
1448
|
+
async_req=params.get("async_req"),
|
|
1449
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1450
|
+
_preload_content=params.get("_preload_content", True),
|
|
1451
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1452
|
+
collection_formats=collection_formats,
|
|
1453
|
+
)
|
|
1454
|
+
|
|
1455
|
+
def get_detailed_workload_policies(self, **kwargs): # noqa: E501
|
|
1456
|
+
"""get full workLoad policies data that match the search criteria. # noqa: E501
|
|
1457
|
+
|
|
1458
|
+
get full workLoad policies data as json code that match the requested search criteria. # noqa: E501
|
|
1459
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1460
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1461
|
+
>>> thread = api.get_detailed_workload_policies(async_req=True)
|
|
1462
|
+
>>> result = thread.get()
|
|
1463
|
+
|
|
1464
|
+
:param async_req bool
|
|
1465
|
+
:param str name:
|
|
1466
|
+
:return: str
|
|
1467
|
+
If the method is called asynchronously,
|
|
1468
|
+
returns the request thread.
|
|
1469
|
+
"""
|
|
1470
|
+
kwargs["_return_http_data_only"] = True
|
|
1471
|
+
if kwargs.get("async_req"):
|
|
1472
|
+
return self.get_detailed_workload_policies_with_http_info(
|
|
1473
|
+
**kwargs
|
|
1474
|
+
) # noqa: E501
|
|
1475
|
+
else:
|
|
1476
|
+
(data) = self.get_detailed_workload_policies_with_http_info(
|
|
1477
|
+
**kwargs
|
|
1478
|
+
) # noqa: E501
|
|
1479
|
+
return data
|
|
1480
|
+
|
|
1481
|
+
def get_detailed_workload_policies_with_http_info(self, **kwargs): # noqa: E501
|
|
1482
|
+
"""get full workLoad policies data that match the search criteria. # noqa: E501
|
|
1483
|
+
|
|
1484
|
+
get full workLoad policies data as json code that match the requested search criteria. # noqa: E501
|
|
1485
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1486
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1487
|
+
>>> thread = api.get_detailed_workload_policies_with_http_info(async_req=True)
|
|
1488
|
+
>>> result = thread.get()
|
|
1489
|
+
|
|
1490
|
+
:param async_req bool
|
|
1491
|
+
:param str name:
|
|
1492
|
+
:return: str
|
|
1493
|
+
If the method is called asynchronously,
|
|
1494
|
+
returns the request thread.
|
|
1495
|
+
"""
|
|
1496
|
+
|
|
1497
|
+
all_params = ["name"] # noqa: E501
|
|
1498
|
+
all_params.append("async_req")
|
|
1499
|
+
all_params.append("_return_http_data_only")
|
|
1500
|
+
all_params.append("_preload_content")
|
|
1501
|
+
all_params.append("_request_timeout")
|
|
1502
|
+
|
|
1503
|
+
params = locals()
|
|
1504
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1505
|
+
if key not in all_params:
|
|
1506
|
+
raise TypeError(
|
|
1507
|
+
"Got an unexpected keyword argument '%s'"
|
|
1508
|
+
" to method get_detailed_workload_policies" % key
|
|
1509
|
+
)
|
|
1510
|
+
params[key] = val
|
|
1511
|
+
del params["kwargs"]
|
|
1512
|
+
|
|
1513
|
+
collection_formats = {}
|
|
1514
|
+
|
|
1515
|
+
path_params = {}
|
|
1516
|
+
|
|
1517
|
+
query_params = []
|
|
1518
|
+
if "name" in params:
|
|
1519
|
+
query_params.append(("name", params["name"])) # noqa: E501
|
|
1520
|
+
|
|
1521
|
+
header_params = {}
|
|
1522
|
+
|
|
1523
|
+
form_params = []
|
|
1524
|
+
local_var_files = {}
|
|
1525
|
+
|
|
1526
|
+
body_params = None
|
|
1527
|
+
# HTTP header `Accept`
|
|
1528
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1529
|
+
["application/json"]
|
|
1530
|
+
) # noqa: E501
|
|
1531
|
+
|
|
1532
|
+
# Authentication setting
|
|
1533
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1534
|
+
|
|
1535
|
+
return self.api_client.call_api(
|
|
1536
|
+
"/run/workloadpolicies/detailed",
|
|
1537
|
+
"GET",
|
|
1538
|
+
path_params,
|
|
1539
|
+
query_params,
|
|
1540
|
+
header_params,
|
|
1541
|
+
body=body_params,
|
|
1542
|
+
post_params=form_params,
|
|
1543
|
+
files=local_var_files,
|
|
1544
|
+
response_type="str", # noqa: E501
|
|
1545
|
+
auth_settings=auth_settings,
|
|
1546
|
+
async_req=params.get("async_req"),
|
|
1547
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1548
|
+
_preload_content=params.get("_preload_content", True),
|
|
1549
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1550
|
+
collection_formats=collection_formats,
|
|
1551
|
+
)
|
|
1552
|
+
|
|
1553
|
+
def get_events(self, **kwargs): # noqa: E501
|
|
1554
|
+
"""Get all events records for specific search. # noqa: E501
|
|
1555
|
+
|
|
1556
|
+
Get all events records for specific search. # noqa: E501
|
|
1557
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1558
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1559
|
+
>>> thread = api.get_events(async_req=True)
|
|
1560
|
+
>>> result = thread.get()
|
|
1561
|
+
|
|
1562
|
+
:param async_req bool
|
|
1563
|
+
:param str ctm: Control-M Server filter.
|
|
1564
|
+
:param str server: Control-M Server filter.
|
|
1565
|
+
:param str name: The event name filter.
|
|
1566
|
+
:param str _date: The event date filter.
|
|
1567
|
+
:param int limit: maximum events to fetch (default 1000).
|
|
1568
|
+
:return: EventSet
|
|
1569
|
+
If the method is called asynchronously,
|
|
1570
|
+
returns the request thread.
|
|
1571
|
+
"""
|
|
1572
|
+
kwargs["_return_http_data_only"] = True
|
|
1573
|
+
if kwargs.get("async_req"):
|
|
1574
|
+
return self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
1575
|
+
else:
|
|
1576
|
+
(data) = self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
1577
|
+
return data
|
|
1578
|
+
|
|
1579
|
+
def get_events_with_http_info(self, **kwargs): # noqa: E501
|
|
1580
|
+
"""Get all events records for specific search. # noqa: E501
|
|
1581
|
+
|
|
1582
|
+
Get all events records for specific search. # noqa: E501
|
|
1583
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1584
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1585
|
+
>>> thread = api.get_events_with_http_info(async_req=True)
|
|
1586
|
+
>>> result = thread.get()
|
|
1587
|
+
|
|
1588
|
+
:param async_req bool
|
|
1589
|
+
:param str ctm: Control-M Server filter.
|
|
1590
|
+
:param str server: Control-M Server filter.
|
|
1591
|
+
:param str name: The event name filter.
|
|
1592
|
+
:param str _date: The event date filter.
|
|
1593
|
+
:param int limit: maximum events to fetch (default 1000).
|
|
1594
|
+
:return: EventSet
|
|
1595
|
+
If the method is called asynchronously,
|
|
1596
|
+
returns the request thread.
|
|
1597
|
+
"""
|
|
1598
|
+
|
|
1599
|
+
all_params = ["ctm", "server", "name", "_date", "limit"] # noqa: E501
|
|
1600
|
+
all_params.append("async_req")
|
|
1601
|
+
all_params.append("_return_http_data_only")
|
|
1602
|
+
all_params.append("_preload_content")
|
|
1603
|
+
all_params.append("_request_timeout")
|
|
1604
|
+
|
|
1605
|
+
params = locals()
|
|
1606
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1607
|
+
if key not in all_params:
|
|
1608
|
+
raise TypeError(
|
|
1609
|
+
"Got an unexpected keyword argument '%s'"
|
|
1610
|
+
" to method get_events" % key
|
|
1611
|
+
)
|
|
1612
|
+
params[key] = val
|
|
1613
|
+
del params["kwargs"]
|
|
1614
|
+
|
|
1615
|
+
collection_formats = {}
|
|
1616
|
+
|
|
1617
|
+
path_params = {}
|
|
1618
|
+
|
|
1619
|
+
query_params = []
|
|
1620
|
+
if "ctm" in params:
|
|
1621
|
+
query_params.append(("ctm", params["ctm"])) # noqa: E501
|
|
1622
|
+
if "server" in params:
|
|
1623
|
+
query_params.append(("server", params["server"])) # noqa: E501
|
|
1624
|
+
if "name" in params:
|
|
1625
|
+
query_params.append(("name", params["name"])) # noqa: E501
|
|
1626
|
+
if "_date" in params:
|
|
1627
|
+
query_params.append(("date", params["_date"])) # noqa: E501
|
|
1628
|
+
if "limit" in params:
|
|
1629
|
+
query_params.append(("limit", params["limit"])) # noqa: E501
|
|
1630
|
+
|
|
1631
|
+
header_params = {}
|
|
1632
|
+
|
|
1633
|
+
form_params = []
|
|
1634
|
+
local_var_files = {}
|
|
1635
|
+
|
|
1636
|
+
body_params = None
|
|
1637
|
+
# HTTP header `Accept`
|
|
1638
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1639
|
+
["application/json"]
|
|
1640
|
+
) # noqa: E501
|
|
1641
|
+
|
|
1642
|
+
# Authentication setting
|
|
1643
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1644
|
+
|
|
1645
|
+
return self.api_client.call_api(
|
|
1646
|
+
"/run/events",
|
|
1647
|
+
"GET",
|
|
1648
|
+
path_params,
|
|
1649
|
+
query_params,
|
|
1650
|
+
header_params,
|
|
1651
|
+
body=body_params,
|
|
1652
|
+
post_params=form_params,
|
|
1653
|
+
files=local_var_files,
|
|
1654
|
+
response_type="EventSet", # noqa: E501
|
|
1655
|
+
auth_settings=auth_settings,
|
|
1656
|
+
async_req=params.get("async_req"),
|
|
1657
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1658
|
+
_preload_content=params.get("_preload_content", True),
|
|
1659
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1660
|
+
collection_formats=collection_formats,
|
|
1661
|
+
)
|
|
1662
|
+
|
|
1663
|
+
def get_job_log(self, job_id, **kwargs): # noqa: E501
|
|
1664
|
+
"""Get job's log # noqa: E501
|
|
1665
|
+
|
|
1666
|
+
Get the job execution log. # noqa: E501
|
|
1667
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1668
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1669
|
+
>>> thread = api.get_job_log(job_id, async_req=True)
|
|
1670
|
+
>>> result = thread.get()
|
|
1671
|
+
|
|
1672
|
+
:param async_req bool
|
|
1673
|
+
:param str job_id: The job ID (required)
|
|
1674
|
+
:return: str
|
|
1675
|
+
If the method is called asynchronously,
|
|
1676
|
+
returns the request thread.
|
|
1677
|
+
"""
|
|
1678
|
+
kwargs["_return_http_data_only"] = True
|
|
1679
|
+
if kwargs.get("async_req"):
|
|
1680
|
+
return self.get_job_log_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1681
|
+
else:
|
|
1682
|
+
(data) = self.get_job_log_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1683
|
+
return data
|
|
1684
|
+
|
|
1685
|
+
def get_job_log_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1686
|
+
"""Get job's log # noqa: E501
|
|
1687
|
+
|
|
1688
|
+
Get the job execution log. # noqa: E501
|
|
1689
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1690
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1691
|
+
>>> thread = api.get_job_log_with_http_info(job_id, async_req=True)
|
|
1692
|
+
>>> result = thread.get()
|
|
1693
|
+
|
|
1694
|
+
:param async_req bool
|
|
1695
|
+
:param str job_id: The job ID (required)
|
|
1696
|
+
:return: str
|
|
1697
|
+
If the method is called asynchronously,
|
|
1698
|
+
returns the request thread.
|
|
1699
|
+
"""
|
|
1700
|
+
|
|
1701
|
+
all_params = ["job_id"] # noqa: E501
|
|
1702
|
+
all_params.append("async_req")
|
|
1703
|
+
all_params.append("_return_http_data_only")
|
|
1704
|
+
all_params.append("_preload_content")
|
|
1705
|
+
all_params.append("_request_timeout")
|
|
1706
|
+
|
|
1707
|
+
params = locals()
|
|
1708
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1709
|
+
if key not in all_params:
|
|
1710
|
+
raise TypeError(
|
|
1711
|
+
"Got an unexpected keyword argument '%s'"
|
|
1712
|
+
" to method get_job_log" % key
|
|
1713
|
+
)
|
|
1714
|
+
params[key] = val
|
|
1715
|
+
del params["kwargs"]
|
|
1716
|
+
# verify the required parameter 'job_id' is set
|
|
1717
|
+
if self.api_client.client_side_validation and (
|
|
1718
|
+
"job_id" not in params or params["job_id"] is None
|
|
1719
|
+
): # noqa: E501
|
|
1720
|
+
raise ValueError(
|
|
1721
|
+
"Missing the required parameter `job_id` when calling `get_job_log`"
|
|
1722
|
+
) # noqa: E501
|
|
1723
|
+
|
|
1724
|
+
collection_formats = {}
|
|
1725
|
+
|
|
1726
|
+
path_params = {}
|
|
1727
|
+
if "job_id" in params:
|
|
1728
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
1729
|
+
|
|
1730
|
+
query_params = []
|
|
1731
|
+
|
|
1732
|
+
header_params = {}
|
|
1733
|
+
|
|
1734
|
+
form_params = []
|
|
1735
|
+
local_var_files = {}
|
|
1736
|
+
|
|
1737
|
+
body_params = None
|
|
1738
|
+
# HTTP header `Accept`
|
|
1739
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1740
|
+
["application/json", "text/plain"]
|
|
1741
|
+
) # noqa: E501
|
|
1742
|
+
|
|
1743
|
+
# Authentication setting
|
|
1744
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1745
|
+
|
|
1746
|
+
return self.api_client.call_api(
|
|
1747
|
+
"/run/job/{jobId}/log",
|
|
1748
|
+
"GET",
|
|
1749
|
+
path_params,
|
|
1750
|
+
query_params,
|
|
1751
|
+
header_params,
|
|
1752
|
+
body=body_params,
|
|
1753
|
+
post_params=form_params,
|
|
1754
|
+
files=local_var_files,
|
|
1755
|
+
response_type="str", # noqa: E501
|
|
1756
|
+
auth_settings=auth_settings,
|
|
1757
|
+
async_req=params.get("async_req"),
|
|
1758
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1759
|
+
_preload_content=params.get("_preload_content", True),
|
|
1760
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1761
|
+
collection_formats=collection_formats,
|
|
1762
|
+
)
|
|
1763
|
+
|
|
1764
|
+
def get_job_output(self, job_id, **kwargs): # noqa: E501
|
|
1765
|
+
"""Get job output # noqa: E501
|
|
1766
|
+
|
|
1767
|
+
Get the output returned from a job. # noqa: E501
|
|
1768
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1769
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1770
|
+
>>> thread = api.get_job_output(job_id, async_req=True)
|
|
1771
|
+
>>> result = thread.get()
|
|
1772
|
+
|
|
1773
|
+
:param async_req bool
|
|
1774
|
+
:param str job_id: The job ID (required)
|
|
1775
|
+
:param int run_no: The execution number in case of multiple executions (0 will get the last execution's output)
|
|
1776
|
+
:return: str
|
|
1777
|
+
If the method is called asynchronously,
|
|
1778
|
+
returns the request thread.
|
|
1779
|
+
"""
|
|
1780
|
+
kwargs["_return_http_data_only"] = True
|
|
1781
|
+
if kwargs.get("async_req"):
|
|
1782
|
+
return self.get_job_output_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1783
|
+
else:
|
|
1784
|
+
(data) = self.get_job_output_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1785
|
+
return data
|
|
1786
|
+
|
|
1787
|
+
def get_job_output_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1788
|
+
"""Get job output # noqa: E501
|
|
1789
|
+
|
|
1790
|
+
Get the output returned from a job. # noqa: E501
|
|
1791
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1792
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1793
|
+
>>> thread = api.get_job_output_with_http_info(job_id, async_req=True)
|
|
1794
|
+
>>> result = thread.get()
|
|
1795
|
+
|
|
1796
|
+
:param async_req bool
|
|
1797
|
+
:param str job_id: The job ID (required)
|
|
1798
|
+
:param int run_no: The execution number in case of multiple executions (0 will get the last execution's output)
|
|
1799
|
+
:return: str
|
|
1800
|
+
If the method is called asynchronously,
|
|
1801
|
+
returns the request thread.
|
|
1802
|
+
"""
|
|
1803
|
+
|
|
1804
|
+
all_params = ["job_id", "run_no"] # noqa: E501
|
|
1805
|
+
all_params.append("async_req")
|
|
1806
|
+
all_params.append("_return_http_data_only")
|
|
1807
|
+
all_params.append("_preload_content")
|
|
1808
|
+
all_params.append("_request_timeout")
|
|
1809
|
+
|
|
1810
|
+
params = locals()
|
|
1811
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1812
|
+
if key not in all_params:
|
|
1813
|
+
raise TypeError(
|
|
1814
|
+
"Got an unexpected keyword argument '%s'"
|
|
1815
|
+
" to method get_job_output" % key
|
|
1816
|
+
)
|
|
1817
|
+
params[key] = val
|
|
1818
|
+
del params["kwargs"]
|
|
1819
|
+
# verify the required parameter 'job_id' is set
|
|
1820
|
+
if self.api_client.client_side_validation and (
|
|
1821
|
+
"job_id" not in params or params["job_id"] is None
|
|
1822
|
+
): # noqa: E501
|
|
1823
|
+
raise ValueError(
|
|
1824
|
+
"Missing the required parameter `job_id` when calling `get_job_output`"
|
|
1825
|
+
) # noqa: E501
|
|
1826
|
+
|
|
1827
|
+
collection_formats = {}
|
|
1828
|
+
|
|
1829
|
+
path_params = {}
|
|
1830
|
+
if "job_id" in params:
|
|
1831
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
1832
|
+
|
|
1833
|
+
query_params = []
|
|
1834
|
+
if "run_no" in params:
|
|
1835
|
+
query_params.append(("runNo", params["run_no"])) # noqa: E501
|
|
1836
|
+
|
|
1837
|
+
header_params = {}
|
|
1838
|
+
|
|
1839
|
+
form_params = []
|
|
1840
|
+
local_var_files = {}
|
|
1841
|
+
|
|
1842
|
+
body_params = None
|
|
1843
|
+
# HTTP header `Accept`
|
|
1844
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1845
|
+
["application/json", "text/plain"]
|
|
1846
|
+
) # noqa: E501
|
|
1847
|
+
|
|
1848
|
+
# Authentication setting
|
|
1849
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1850
|
+
|
|
1851
|
+
return self.api_client.call_api(
|
|
1852
|
+
"/run/job/{jobId}/output",
|
|
1853
|
+
"GET",
|
|
1854
|
+
path_params,
|
|
1855
|
+
query_params,
|
|
1856
|
+
header_params,
|
|
1857
|
+
body=body_params,
|
|
1858
|
+
post_params=form_params,
|
|
1859
|
+
files=local_var_files,
|
|
1860
|
+
response_type="str", # noqa: E501
|
|
1861
|
+
auth_settings=auth_settings,
|
|
1862
|
+
async_req=params.get("async_req"),
|
|
1863
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1864
|
+
_preload_content=params.get("_preload_content", True),
|
|
1865
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1866
|
+
collection_formats=collection_formats,
|
|
1867
|
+
)
|
|
1868
|
+
|
|
1869
|
+
def get_job_statistics(self, job_id, **kwargs): # noqa: E501
|
|
1870
|
+
"""Get job statistics # noqa: E501
|
|
1871
|
+
|
|
1872
|
+
Get the statistics from a job. # noqa: E501
|
|
1873
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1874
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1875
|
+
>>> thread = api.get_job_statistics(job_id, async_req=True)
|
|
1876
|
+
>>> result = thread.get()
|
|
1877
|
+
|
|
1878
|
+
:param async_req bool
|
|
1879
|
+
:param str job_id: The job ID (required)
|
|
1880
|
+
:return: Statistics
|
|
1881
|
+
If the method is called asynchronously,
|
|
1882
|
+
returns the request thread.
|
|
1883
|
+
"""
|
|
1884
|
+
kwargs["_return_http_data_only"] = True
|
|
1885
|
+
if kwargs.get("async_req"):
|
|
1886
|
+
return self.get_job_statistics_with_http_info(
|
|
1887
|
+
job_id, **kwargs
|
|
1888
|
+
) # noqa: E501
|
|
1889
|
+
else:
|
|
1890
|
+
(data) = self.get_job_statistics_with_http_info(
|
|
1891
|
+
job_id, **kwargs
|
|
1892
|
+
) # noqa: E501
|
|
1893
|
+
return data
|
|
1894
|
+
|
|
1895
|
+
def get_job_statistics_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1896
|
+
"""Get job statistics # noqa: E501
|
|
1897
|
+
|
|
1898
|
+
Get the statistics from a job. # noqa: E501
|
|
1899
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1900
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1901
|
+
>>> thread = api.get_job_statistics_with_http_info(job_id, async_req=True)
|
|
1902
|
+
>>> result = thread.get()
|
|
1903
|
+
|
|
1904
|
+
:param async_req bool
|
|
1905
|
+
:param str job_id: The job ID (required)
|
|
1906
|
+
:return: Statistics
|
|
1907
|
+
If the method is called asynchronously,
|
|
1908
|
+
returns the request thread.
|
|
1909
|
+
"""
|
|
1910
|
+
|
|
1911
|
+
all_params = ["job_id"] # noqa: E501
|
|
1912
|
+
all_params.append("async_req")
|
|
1913
|
+
all_params.append("_return_http_data_only")
|
|
1914
|
+
all_params.append("_preload_content")
|
|
1915
|
+
all_params.append("_request_timeout")
|
|
1916
|
+
|
|
1917
|
+
params = locals()
|
|
1918
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
1919
|
+
if key not in all_params:
|
|
1920
|
+
raise TypeError(
|
|
1921
|
+
"Got an unexpected keyword argument '%s'"
|
|
1922
|
+
" to method get_job_statistics" % key
|
|
1923
|
+
)
|
|
1924
|
+
params[key] = val
|
|
1925
|
+
del params["kwargs"]
|
|
1926
|
+
# verify the required parameter 'job_id' is set
|
|
1927
|
+
if self.api_client.client_side_validation and (
|
|
1928
|
+
"job_id" not in params or params["job_id"] is None
|
|
1929
|
+
): # noqa: E501
|
|
1930
|
+
raise ValueError(
|
|
1931
|
+
"Missing the required parameter `job_id` when calling `get_job_statistics`"
|
|
1932
|
+
) # noqa: E501
|
|
1933
|
+
|
|
1934
|
+
collection_formats = {}
|
|
1935
|
+
|
|
1936
|
+
path_params = {}
|
|
1937
|
+
if "job_id" in params:
|
|
1938
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
1939
|
+
|
|
1940
|
+
query_params = []
|
|
1941
|
+
|
|
1942
|
+
header_params = {}
|
|
1943
|
+
|
|
1944
|
+
form_params = []
|
|
1945
|
+
local_var_files = {}
|
|
1946
|
+
|
|
1947
|
+
body_params = None
|
|
1948
|
+
# HTTP header `Accept`
|
|
1949
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
1950
|
+
["application/json", "text/plain"]
|
|
1951
|
+
) # noqa: E501
|
|
1952
|
+
|
|
1953
|
+
# Authentication setting
|
|
1954
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
1955
|
+
|
|
1956
|
+
return self.api_client.call_api(
|
|
1957
|
+
"/run/job/{jobId}/statistics",
|
|
1958
|
+
"GET",
|
|
1959
|
+
path_params,
|
|
1960
|
+
query_params,
|
|
1961
|
+
header_params,
|
|
1962
|
+
body=body_params,
|
|
1963
|
+
post_params=form_params,
|
|
1964
|
+
files=local_var_files,
|
|
1965
|
+
response_type="Statistics", # noqa: E501
|
|
1966
|
+
auth_settings=auth_settings,
|
|
1967
|
+
async_req=params.get("async_req"),
|
|
1968
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
1969
|
+
_preload_content=params.get("_preload_content", True),
|
|
1970
|
+
_request_timeout=params.get("_request_timeout"),
|
|
1971
|
+
collection_formats=collection_formats,
|
|
1972
|
+
)
|
|
1973
|
+
|
|
1974
|
+
def get_job_status(self, job_id, **kwargs): # noqa: E501
|
|
1975
|
+
"""Get status of a job # noqa: E501
|
|
1976
|
+
|
|
1977
|
+
Get the job status. # noqa: E501
|
|
1978
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1979
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1980
|
+
>>> thread = api.get_job_status(job_id, async_req=True)
|
|
1981
|
+
>>> result = thread.get()
|
|
1982
|
+
|
|
1983
|
+
:param async_req bool
|
|
1984
|
+
:param str job_id: Job ID returned from the run status action. (required)
|
|
1985
|
+
:return: JobRunStatus
|
|
1986
|
+
If the method is called asynchronously,
|
|
1987
|
+
returns the request thread.
|
|
1988
|
+
"""
|
|
1989
|
+
kwargs["_return_http_data_only"] = True
|
|
1990
|
+
if kwargs.get("async_req"):
|
|
1991
|
+
return self.get_job_status_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1992
|
+
else:
|
|
1993
|
+
(data) = self.get_job_status_with_http_info(job_id, **kwargs) # noqa: E501
|
|
1994
|
+
return data
|
|
1995
|
+
|
|
1996
|
+
def get_job_status_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
1997
|
+
"""Get status of a job # noqa: E501
|
|
1998
|
+
|
|
1999
|
+
Get the job status. # noqa: E501
|
|
2000
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2001
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2002
|
+
>>> thread = api.get_job_status_with_http_info(job_id, async_req=True)
|
|
2003
|
+
>>> result = thread.get()
|
|
2004
|
+
|
|
2005
|
+
:param async_req bool
|
|
2006
|
+
:param str job_id: Job ID returned from the run status action. (required)
|
|
2007
|
+
:return: JobRunStatus
|
|
2008
|
+
If the method is called asynchronously,
|
|
2009
|
+
returns the request thread.
|
|
2010
|
+
"""
|
|
2011
|
+
|
|
2012
|
+
all_params = ["job_id"] # noqa: E501
|
|
2013
|
+
all_params.append("async_req")
|
|
2014
|
+
all_params.append("_return_http_data_only")
|
|
2015
|
+
all_params.append("_preload_content")
|
|
2016
|
+
all_params.append("_request_timeout")
|
|
2017
|
+
|
|
2018
|
+
params = locals()
|
|
2019
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2020
|
+
if key not in all_params:
|
|
2021
|
+
raise TypeError(
|
|
2022
|
+
"Got an unexpected keyword argument '%s'"
|
|
2023
|
+
" to method get_job_status" % key
|
|
2024
|
+
)
|
|
2025
|
+
params[key] = val
|
|
2026
|
+
del params["kwargs"]
|
|
2027
|
+
# verify the required parameter 'job_id' is set
|
|
2028
|
+
if self.api_client.client_side_validation and (
|
|
2029
|
+
"job_id" not in params or params["job_id"] is None
|
|
2030
|
+
): # noqa: E501
|
|
2031
|
+
raise ValueError(
|
|
2032
|
+
"Missing the required parameter `job_id` when calling `get_job_status`"
|
|
2033
|
+
) # noqa: E501
|
|
2034
|
+
|
|
2035
|
+
collection_formats = {}
|
|
2036
|
+
|
|
2037
|
+
path_params = {}
|
|
2038
|
+
if "job_id" in params:
|
|
2039
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
2040
|
+
|
|
2041
|
+
query_params = []
|
|
2042
|
+
|
|
2043
|
+
header_params = {}
|
|
2044
|
+
|
|
2045
|
+
form_params = []
|
|
2046
|
+
local_var_files = {}
|
|
2047
|
+
|
|
2048
|
+
body_params = None
|
|
2049
|
+
# HTTP header `Accept`
|
|
2050
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2051
|
+
["application/json"]
|
|
2052
|
+
) # noqa: E501
|
|
2053
|
+
|
|
2054
|
+
# Authentication setting
|
|
2055
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2056
|
+
|
|
2057
|
+
return self.api_client.call_api(
|
|
2058
|
+
"/run/job/{jobId}/status",
|
|
2059
|
+
"GET",
|
|
2060
|
+
path_params,
|
|
2061
|
+
query_params,
|
|
2062
|
+
header_params,
|
|
2063
|
+
body=body_params,
|
|
2064
|
+
post_params=form_params,
|
|
2065
|
+
files=local_var_files,
|
|
2066
|
+
response_type="JobRunStatus", # noqa: E501
|
|
2067
|
+
auth_settings=auth_settings,
|
|
2068
|
+
async_req=params.get("async_req"),
|
|
2069
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2070
|
+
_preload_content=params.get("_preload_content", True),
|
|
2071
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2072
|
+
collection_formats=collection_formats,
|
|
2073
|
+
)
|
|
2074
|
+
|
|
2075
|
+
def get_jobs_status(self, run_id, **kwargs): # noqa: E501
|
|
2076
|
+
"""Get status of running jobs # noqa: E501
|
|
2077
|
+
|
|
2078
|
+
Run status of jobs started with the Run service. # noqa: E501
|
|
2079
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2080
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2081
|
+
>>> thread = api.get_jobs_status(run_id, async_req=True)
|
|
2082
|
+
>>> result = thread.get()
|
|
2083
|
+
|
|
2084
|
+
:param async_req bool
|
|
2085
|
+
:param str run_id: Run ID returned from the run action. (required)
|
|
2086
|
+
:param int start_index: The index of the job status from which to start. returning results
|
|
2087
|
+
:return: JobStatusResult
|
|
2088
|
+
If the method is called asynchronously,
|
|
2089
|
+
returns the request thread.
|
|
2090
|
+
"""
|
|
2091
|
+
kwargs["_return_http_data_only"] = True
|
|
2092
|
+
if kwargs.get("async_req"):
|
|
2093
|
+
return self.get_jobs_status_with_http_info(run_id, **kwargs) # noqa: E501
|
|
2094
|
+
else:
|
|
2095
|
+
(data) = self.get_jobs_status_with_http_info(run_id, **kwargs) # noqa: E501
|
|
2096
|
+
return data
|
|
2097
|
+
|
|
2098
|
+
def get_jobs_status_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
2099
|
+
"""Get status of running jobs # noqa: E501
|
|
2100
|
+
|
|
2101
|
+
Run status of jobs started with the Run service. # noqa: E501
|
|
2102
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2103
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2104
|
+
>>> thread = api.get_jobs_status_with_http_info(run_id, async_req=True)
|
|
2105
|
+
>>> result = thread.get()
|
|
2106
|
+
|
|
2107
|
+
:param async_req bool
|
|
2108
|
+
:param str run_id: Run ID returned from the run action. (required)
|
|
2109
|
+
:param int start_index: The index of the job status from which to start. returning results
|
|
2110
|
+
:return: JobStatusResult
|
|
2111
|
+
If the method is called asynchronously,
|
|
2112
|
+
returns the request thread.
|
|
2113
|
+
"""
|
|
2114
|
+
|
|
2115
|
+
all_params = ["run_id", "start_index"] # noqa: E501
|
|
2116
|
+
all_params.append("async_req")
|
|
2117
|
+
all_params.append("_return_http_data_only")
|
|
2118
|
+
all_params.append("_preload_content")
|
|
2119
|
+
all_params.append("_request_timeout")
|
|
2120
|
+
|
|
2121
|
+
params = locals()
|
|
2122
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2123
|
+
if key not in all_params:
|
|
2124
|
+
raise TypeError(
|
|
2125
|
+
"Got an unexpected keyword argument '%s'"
|
|
2126
|
+
" to method get_jobs_status" % key
|
|
2127
|
+
)
|
|
2128
|
+
params[key] = val
|
|
2129
|
+
del params["kwargs"]
|
|
2130
|
+
# verify the required parameter 'run_id' is set
|
|
2131
|
+
if self.api_client.client_side_validation and (
|
|
2132
|
+
"run_id" not in params or params["run_id"] is None
|
|
2133
|
+
): # noqa: E501
|
|
2134
|
+
raise ValueError(
|
|
2135
|
+
"Missing the required parameter `run_id` when calling `get_jobs_status`"
|
|
2136
|
+
) # noqa: E501
|
|
2137
|
+
|
|
2138
|
+
collection_formats = {}
|
|
2139
|
+
|
|
2140
|
+
path_params = {}
|
|
2141
|
+
if "run_id" in params:
|
|
2142
|
+
path_params["runId"] = params["run_id"] # noqa: E501
|
|
2143
|
+
|
|
2144
|
+
query_params = []
|
|
2145
|
+
if "start_index" in params:
|
|
2146
|
+
query_params.append(("startIndex", params["start_index"])) # noqa: E501
|
|
2147
|
+
|
|
2148
|
+
header_params = {}
|
|
2149
|
+
|
|
2150
|
+
form_params = []
|
|
2151
|
+
local_var_files = {}
|
|
2152
|
+
|
|
2153
|
+
body_params = None
|
|
2154
|
+
# HTTP header `Accept`
|
|
2155
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2156
|
+
["application/json"]
|
|
2157
|
+
) # noqa: E501
|
|
2158
|
+
|
|
2159
|
+
# Authentication setting
|
|
2160
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2161
|
+
|
|
2162
|
+
return self.api_client.call_api(
|
|
2163
|
+
"/run/status/{runId}",
|
|
2164
|
+
"GET",
|
|
2165
|
+
path_params,
|
|
2166
|
+
query_params,
|
|
2167
|
+
header_params,
|
|
2168
|
+
body=body_params,
|
|
2169
|
+
post_params=form_params,
|
|
2170
|
+
files=local_var_files,
|
|
2171
|
+
response_type="JobStatusResult", # noqa: E501
|
|
2172
|
+
auth_settings=auth_settings,
|
|
2173
|
+
async_req=params.get("async_req"),
|
|
2174
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2175
|
+
_preload_content=params.get("_preload_content", True),
|
|
2176
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2177
|
+
collection_formats=collection_formats,
|
|
2178
|
+
)
|
|
2179
|
+
|
|
2180
|
+
def get_jobs_status_by_filter(self, **kwargs): # noqa: E501
|
|
2181
|
+
"""Get jobs that match the search criteria. # noqa: E501
|
|
2182
|
+
|
|
2183
|
+
Get status of jobs that match the requested search criteria. # noqa: E501
|
|
2184
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2185
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2186
|
+
>>> thread = api.get_jobs_status_by_filter(async_req=True)
|
|
2187
|
+
>>> result = thread.get()
|
|
2188
|
+
|
|
2189
|
+
:param async_req bool
|
|
2190
|
+
:param int limit: maximum jobs status to fetch (default 1000).
|
|
2191
|
+
:param str jobname:
|
|
2192
|
+
:param str ctm:
|
|
2193
|
+
:param str server:
|
|
2194
|
+
:param str application:
|
|
2195
|
+
:param str sub_application:
|
|
2196
|
+
:param str host:
|
|
2197
|
+
:param str status:
|
|
2198
|
+
:param str folder:
|
|
2199
|
+
:param str description:
|
|
2200
|
+
:param str jobid:
|
|
2201
|
+
:param str neighborhood:
|
|
2202
|
+
:param int depth:
|
|
2203
|
+
:param str direction:
|
|
2204
|
+
:param str order_date_from:
|
|
2205
|
+
:param str order_date_to:
|
|
2206
|
+
:param str from_time:
|
|
2207
|
+
:param str to_time:
|
|
2208
|
+
:param str folder_library:
|
|
2209
|
+
:param str host_group:
|
|
2210
|
+
:param str run_as:
|
|
2211
|
+
:param str command:
|
|
2212
|
+
:param str file_path:
|
|
2213
|
+
:param str file_name:
|
|
2214
|
+
:param str workload_policy:
|
|
2215
|
+
:param str rule_based_calendar:
|
|
2216
|
+
:param str resource_mutex:
|
|
2217
|
+
:param str resource_semaphore:
|
|
2218
|
+
:param str resource_lock:
|
|
2219
|
+
:param str resource_pool:
|
|
2220
|
+
:param bool held:
|
|
2221
|
+
:param bool folder_held:
|
|
2222
|
+
:param bool cyclic:
|
|
2223
|
+
:param bool deleted:
|
|
2224
|
+
:return: JobStatusResult
|
|
2225
|
+
If the method is called asynchronously,
|
|
2226
|
+
returns the request thread.
|
|
2227
|
+
"""
|
|
2228
|
+
kwargs["_return_http_data_only"] = True
|
|
2229
|
+
if kwargs.get("async_req"):
|
|
2230
|
+
return self.get_jobs_status_by_filter_with_http_info(**kwargs) # noqa: E501
|
|
2231
|
+
else:
|
|
2232
|
+
(data) = self.get_jobs_status_by_filter_with_http_info(
|
|
2233
|
+
**kwargs
|
|
2234
|
+
) # noqa: E501
|
|
2235
|
+
return data
|
|
2236
|
+
|
|
2237
|
+
def get_jobs_status_by_filter_with_http_info(self, **kwargs): # noqa: E501
|
|
2238
|
+
"""Get jobs that match the search criteria. # noqa: E501
|
|
2239
|
+
|
|
2240
|
+
Get status of jobs that match the requested search criteria. # noqa: E501
|
|
2241
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2242
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2243
|
+
>>> thread = api.get_jobs_status_by_filter_with_http_info(async_req=True)
|
|
2244
|
+
>>> result = thread.get()
|
|
2245
|
+
|
|
2246
|
+
:param async_req bool
|
|
2247
|
+
:param int limit: maximum jobs status to fetch (default 1000).
|
|
2248
|
+
:param str jobname:
|
|
2249
|
+
:param str ctm:
|
|
2250
|
+
:param str server:
|
|
2251
|
+
:param str application:
|
|
2252
|
+
:param str sub_application:
|
|
2253
|
+
:param str host:
|
|
2254
|
+
:param str status:
|
|
2255
|
+
:param str folder:
|
|
2256
|
+
:param str description:
|
|
2257
|
+
:param str jobid:
|
|
2258
|
+
:param str neighborhood:
|
|
2259
|
+
:param int depth:
|
|
2260
|
+
:param str direction:
|
|
2261
|
+
:param str order_date_from:
|
|
2262
|
+
:param str order_date_to:
|
|
2263
|
+
:param str from_time:
|
|
2264
|
+
:param str to_time:
|
|
2265
|
+
:param str folder_library:
|
|
2266
|
+
:param str host_group:
|
|
2267
|
+
:param str run_as:
|
|
2268
|
+
:param str command:
|
|
2269
|
+
:param str file_path:
|
|
2270
|
+
:param str file_name:
|
|
2271
|
+
:param str workload_policy:
|
|
2272
|
+
:param str rule_based_calendar:
|
|
2273
|
+
:param str resource_mutex:
|
|
2274
|
+
:param str resource_semaphore:
|
|
2275
|
+
:param str resource_lock:
|
|
2276
|
+
:param str resource_pool:
|
|
2277
|
+
:param bool held:
|
|
2278
|
+
:param bool folder_held:
|
|
2279
|
+
:param bool cyclic:
|
|
2280
|
+
:param bool deleted:
|
|
2281
|
+
:return: JobStatusResult
|
|
2282
|
+
If the method is called asynchronously,
|
|
2283
|
+
returns the request thread.
|
|
2284
|
+
"""
|
|
2285
|
+
|
|
2286
|
+
all_params = [
|
|
2287
|
+
"limit",
|
|
2288
|
+
"jobname",
|
|
2289
|
+
"ctm",
|
|
2290
|
+
"server",
|
|
2291
|
+
"application",
|
|
2292
|
+
"sub_application",
|
|
2293
|
+
"host",
|
|
2294
|
+
"status",
|
|
2295
|
+
"folder",
|
|
2296
|
+
"description",
|
|
2297
|
+
"jobid",
|
|
2298
|
+
"neighborhood",
|
|
2299
|
+
"depth",
|
|
2300
|
+
"direction",
|
|
2301
|
+
"order_date_from",
|
|
2302
|
+
"order_date_to",
|
|
2303
|
+
"from_time",
|
|
2304
|
+
"to_time",
|
|
2305
|
+
"folder_library",
|
|
2306
|
+
"host_group",
|
|
2307
|
+
"run_as",
|
|
2308
|
+
"command",
|
|
2309
|
+
"file_path",
|
|
2310
|
+
"file_name",
|
|
2311
|
+
"workload_policy",
|
|
2312
|
+
"rule_based_calendar",
|
|
2313
|
+
"resource_mutex",
|
|
2314
|
+
"resource_semaphore",
|
|
2315
|
+
"resource_lock",
|
|
2316
|
+
"resource_pool",
|
|
2317
|
+
"held",
|
|
2318
|
+
"folder_held",
|
|
2319
|
+
"cyclic",
|
|
2320
|
+
"deleted",
|
|
2321
|
+
] # noqa: E501
|
|
2322
|
+
all_params.append("async_req")
|
|
2323
|
+
all_params.append("_return_http_data_only")
|
|
2324
|
+
all_params.append("_preload_content")
|
|
2325
|
+
all_params.append("_request_timeout")
|
|
2326
|
+
|
|
2327
|
+
params = locals()
|
|
2328
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2329
|
+
if key not in all_params:
|
|
2330
|
+
raise TypeError(
|
|
2331
|
+
"Got an unexpected keyword argument '%s'"
|
|
2332
|
+
" to method get_jobs_status_by_filter" % key
|
|
2333
|
+
)
|
|
2334
|
+
params[key] = val
|
|
2335
|
+
del params["kwargs"]
|
|
2336
|
+
|
|
2337
|
+
collection_formats = {}
|
|
2338
|
+
|
|
2339
|
+
path_params = {}
|
|
2340
|
+
|
|
2341
|
+
query_params = []
|
|
2342
|
+
if "limit" in params:
|
|
2343
|
+
query_params.append(("limit", params["limit"])) # noqa: E501
|
|
2344
|
+
if "jobname" in params:
|
|
2345
|
+
query_params.append(("jobname", params["jobname"])) # noqa: E501
|
|
2346
|
+
if "ctm" in params:
|
|
2347
|
+
query_params.append(("ctm", params["ctm"])) # noqa: E501
|
|
2348
|
+
if "server" in params:
|
|
2349
|
+
query_params.append(("server", params["server"])) # noqa: E501
|
|
2350
|
+
if "application" in params:
|
|
2351
|
+
query_params.append(("application", params["application"])) # noqa: E501
|
|
2352
|
+
if "sub_application" in params:
|
|
2353
|
+
query_params.append(
|
|
2354
|
+
("subApplication", params["sub_application"])
|
|
2355
|
+
) # noqa: E501
|
|
2356
|
+
if "host" in params:
|
|
2357
|
+
query_params.append(("host", params["host"])) # noqa: E501
|
|
2358
|
+
if "status" in params:
|
|
2359
|
+
query_params.append(("status", params["status"])) # noqa: E501
|
|
2360
|
+
if "folder" in params:
|
|
2361
|
+
query_params.append(("folder", params["folder"])) # noqa: E501
|
|
2362
|
+
if "description" in params:
|
|
2363
|
+
query_params.append(("description", params["description"])) # noqa: E501
|
|
2364
|
+
if "jobid" in params:
|
|
2365
|
+
query_params.append(("jobid", params["jobid"])) # noqa: E501
|
|
2366
|
+
if "neighborhood" in params:
|
|
2367
|
+
query_params.append(("neighborhood", params["neighborhood"])) # noqa: E501
|
|
2368
|
+
if "depth" in params:
|
|
2369
|
+
query_params.append(("depth", params["depth"])) # noqa: E501
|
|
2370
|
+
if "direction" in params:
|
|
2371
|
+
query_params.append(("direction", params["direction"])) # noqa: E501
|
|
2372
|
+
if "order_date_from" in params:
|
|
2373
|
+
query_params.append(
|
|
2374
|
+
("orderDateFrom", params["order_date_from"])
|
|
2375
|
+
) # noqa: E501
|
|
2376
|
+
if "order_date_to" in params:
|
|
2377
|
+
query_params.append(("orderDateTo", params["order_date_to"])) # noqa: E501
|
|
2378
|
+
if "from_time" in params:
|
|
2379
|
+
query_params.append(("fromTime", params["from_time"])) # noqa: E501
|
|
2380
|
+
if "to_time" in params:
|
|
2381
|
+
query_params.append(("toTime", params["to_time"])) # noqa: E501
|
|
2382
|
+
if "folder_library" in params:
|
|
2383
|
+
query_params.append(
|
|
2384
|
+
("folderLibrary", params["folder_library"])
|
|
2385
|
+
) # noqa: E501
|
|
2386
|
+
if "host_group" in params:
|
|
2387
|
+
query_params.append(("hostGroup", params["host_group"])) # noqa: E501
|
|
2388
|
+
if "run_as" in params:
|
|
2389
|
+
query_params.append(("runAs", params["run_as"])) # noqa: E501
|
|
2390
|
+
if "command" in params:
|
|
2391
|
+
query_params.append(("command", params["command"])) # noqa: E501
|
|
2392
|
+
if "file_path" in params:
|
|
2393
|
+
query_params.append(("filePath", params["file_path"])) # noqa: E501
|
|
2394
|
+
if "file_name" in params:
|
|
2395
|
+
query_params.append(("fileName", params["file_name"])) # noqa: E501
|
|
2396
|
+
if "workload_policy" in params:
|
|
2397
|
+
query_params.append(
|
|
2398
|
+
("workloadPolicy", params["workload_policy"])
|
|
2399
|
+
) # noqa: E501
|
|
2400
|
+
if "rule_based_calendar" in params:
|
|
2401
|
+
query_params.append(
|
|
2402
|
+
("ruleBasedCalendar", params["rule_based_calendar"])
|
|
2403
|
+
) # noqa: E501
|
|
2404
|
+
if "resource_mutex" in params:
|
|
2405
|
+
query_params.append(
|
|
2406
|
+
("resourceMutex", params["resource_mutex"])
|
|
2407
|
+
) # noqa: E501
|
|
2408
|
+
if "resource_semaphore" in params:
|
|
2409
|
+
query_params.append(
|
|
2410
|
+
("resourceSemaphore", params["resource_semaphore"])
|
|
2411
|
+
) # noqa: E501
|
|
2412
|
+
if "resource_lock" in params:
|
|
2413
|
+
query_params.append(("resourceLock", params["resource_lock"])) # noqa: E501
|
|
2414
|
+
if "resource_pool" in params:
|
|
2415
|
+
query_params.append(("resourcePool", params["resource_pool"])) # noqa: E501
|
|
2416
|
+
if "held" in params:
|
|
2417
|
+
query_params.append(("held", params["held"])) # noqa: E501
|
|
2418
|
+
if "folder_held" in params:
|
|
2419
|
+
query_params.append(("folderHeld", params["folder_held"])) # noqa: E501
|
|
2420
|
+
if "cyclic" in params:
|
|
2421
|
+
query_params.append(("cyclic", params["cyclic"])) # noqa: E501
|
|
2422
|
+
if "deleted" in params:
|
|
2423
|
+
query_params.append(("deleted", params["deleted"])) # noqa: E501
|
|
2424
|
+
|
|
2425
|
+
header_params = {}
|
|
2426
|
+
|
|
2427
|
+
form_params = []
|
|
2428
|
+
local_var_files = {}
|
|
2429
|
+
|
|
2430
|
+
body_params = None
|
|
2431
|
+
# HTTP header `Accept`
|
|
2432
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2433
|
+
["application/json"]
|
|
2434
|
+
) # noqa: E501
|
|
2435
|
+
|
|
2436
|
+
# Authentication setting
|
|
2437
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2438
|
+
|
|
2439
|
+
return self.api_client.call_api(
|
|
2440
|
+
"/run/jobs/status",
|
|
2441
|
+
"GET",
|
|
2442
|
+
path_params,
|
|
2443
|
+
query_params,
|
|
2444
|
+
header_params,
|
|
2445
|
+
body=body_params,
|
|
2446
|
+
post_params=form_params,
|
|
2447
|
+
files=local_var_files,
|
|
2448
|
+
response_type="JobStatusResult", # noqa: E501
|
|
2449
|
+
auth_settings=auth_settings,
|
|
2450
|
+
async_req=params.get("async_req"),
|
|
2451
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2452
|
+
_preload_content=params.get("_preload_content", True),
|
|
2453
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2454
|
+
collection_formats=collection_formats,
|
|
2455
|
+
)
|
|
2456
|
+
|
|
2457
|
+
def get_resources(self, **kwargs): # noqa: E501
|
|
2458
|
+
"""Get all resources records matching search. # noqa: E501
|
|
2459
|
+
|
|
2460
|
+
Get all resources records matching search. # noqa: E501
|
|
2461
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2462
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2463
|
+
>>> thread = api.get_resources(async_req=True)
|
|
2464
|
+
>>> result = thread.get()
|
|
2465
|
+
|
|
2466
|
+
:param async_req bool
|
|
2467
|
+
:param str ctm: Control-M Server filter.
|
|
2468
|
+
:param str server: Control-M Server filter.
|
|
2469
|
+
:param str name: The resource name filter.
|
|
2470
|
+
:return: ResourceSet
|
|
2471
|
+
If the method is called asynchronously,
|
|
2472
|
+
returns the request thread.
|
|
2473
|
+
"""
|
|
2474
|
+
kwargs["_return_http_data_only"] = True
|
|
2475
|
+
if kwargs.get("async_req"):
|
|
2476
|
+
return self.get_resources_with_http_info(**kwargs) # noqa: E501
|
|
2477
|
+
else:
|
|
2478
|
+
(data) = self.get_resources_with_http_info(**kwargs) # noqa: E501
|
|
2479
|
+
return data
|
|
2480
|
+
|
|
2481
|
+
def get_resources_with_http_info(self, **kwargs): # noqa: E501
|
|
2482
|
+
"""Get all resources records matching search. # noqa: E501
|
|
2483
|
+
|
|
2484
|
+
Get all resources records matching search. # noqa: E501
|
|
2485
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2486
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2487
|
+
>>> thread = api.get_resources_with_http_info(async_req=True)
|
|
2488
|
+
>>> result = thread.get()
|
|
2489
|
+
|
|
2490
|
+
:param async_req bool
|
|
2491
|
+
:param str ctm: Control-M Server filter.
|
|
2492
|
+
:param str server: Control-M Server filter.
|
|
2493
|
+
:param str name: The resource name filter.
|
|
2494
|
+
:return: ResourceSet
|
|
2495
|
+
If the method is called asynchronously,
|
|
2496
|
+
returns the request thread.
|
|
2497
|
+
"""
|
|
2498
|
+
|
|
2499
|
+
all_params = ["ctm", "server", "name"] # noqa: E501
|
|
2500
|
+
all_params.append("async_req")
|
|
2501
|
+
all_params.append("_return_http_data_only")
|
|
2502
|
+
all_params.append("_preload_content")
|
|
2503
|
+
all_params.append("_request_timeout")
|
|
2504
|
+
|
|
2505
|
+
params = locals()
|
|
2506
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2507
|
+
if key not in all_params:
|
|
2508
|
+
raise TypeError(
|
|
2509
|
+
"Got an unexpected keyword argument '%s'"
|
|
2510
|
+
" to method get_resources" % key
|
|
2511
|
+
)
|
|
2512
|
+
params[key] = val
|
|
2513
|
+
del params["kwargs"]
|
|
2514
|
+
|
|
2515
|
+
collection_formats = {}
|
|
2516
|
+
|
|
2517
|
+
path_params = {}
|
|
2518
|
+
|
|
2519
|
+
query_params = []
|
|
2520
|
+
if "ctm" in params:
|
|
2521
|
+
query_params.append(("ctm", params["ctm"])) # noqa: E501
|
|
2522
|
+
if "server" in params:
|
|
2523
|
+
query_params.append(("server", params["server"])) # noqa: E501
|
|
2524
|
+
if "name" in params:
|
|
2525
|
+
query_params.append(("name", params["name"])) # noqa: E501
|
|
2526
|
+
|
|
2527
|
+
header_params = {}
|
|
2528
|
+
|
|
2529
|
+
form_params = []
|
|
2530
|
+
local_var_files = {}
|
|
2531
|
+
|
|
2532
|
+
body_params = None
|
|
2533
|
+
# HTTP header `Accept`
|
|
2534
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2535
|
+
["application/json"]
|
|
2536
|
+
) # noqa: E501
|
|
2537
|
+
|
|
2538
|
+
# Authentication setting
|
|
2539
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2540
|
+
|
|
2541
|
+
return self.api_client.call_api(
|
|
2542
|
+
"/run/resources",
|
|
2543
|
+
"GET",
|
|
2544
|
+
path_params,
|
|
2545
|
+
query_params,
|
|
2546
|
+
header_params,
|
|
2547
|
+
body=body_params,
|
|
2548
|
+
post_params=form_params,
|
|
2549
|
+
files=local_var_files,
|
|
2550
|
+
response_type="ResourceSet", # noqa: E501
|
|
2551
|
+
auth_settings=auth_settings,
|
|
2552
|
+
async_req=params.get("async_req"),
|
|
2553
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2554
|
+
_preload_content=params.get("_preload_content", True),
|
|
2555
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2556
|
+
collection_formats=collection_formats,
|
|
2557
|
+
)
|
|
2558
|
+
|
|
2559
|
+
def get_waiting_info(self, job_id, **kwargs): # noqa: E501
|
|
2560
|
+
"""get job's waiting information # noqa: E501
|
|
2561
|
+
|
|
2562
|
+
get the reason why the job is in waiting status # noqa: E501
|
|
2563
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2564
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2565
|
+
>>> thread = api.get_waiting_info(job_id, async_req=True)
|
|
2566
|
+
>>> result = thread.get()
|
|
2567
|
+
|
|
2568
|
+
:param async_req bool
|
|
2569
|
+
:param str job_id: The job ID (required)
|
|
2570
|
+
:return: StringListResult
|
|
2571
|
+
If the method is called asynchronously,
|
|
2572
|
+
returns the request thread.
|
|
2573
|
+
"""
|
|
2574
|
+
kwargs["_return_http_data_only"] = True
|
|
2575
|
+
if kwargs.get("async_req"):
|
|
2576
|
+
return self.get_waiting_info_with_http_info(job_id, **kwargs) # noqa: E501
|
|
2577
|
+
else:
|
|
2578
|
+
(data) = self.get_waiting_info_with_http_info(
|
|
2579
|
+
job_id, **kwargs
|
|
2580
|
+
) # noqa: E501
|
|
2581
|
+
return data
|
|
2582
|
+
|
|
2583
|
+
def get_waiting_info_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
2584
|
+
"""get job's waiting information # noqa: E501
|
|
2585
|
+
|
|
2586
|
+
get the reason why the job is in waiting status # noqa: E501
|
|
2587
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2588
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2589
|
+
>>> thread = api.get_waiting_info_with_http_info(job_id, async_req=True)
|
|
2590
|
+
>>> result = thread.get()
|
|
2591
|
+
|
|
2592
|
+
:param async_req bool
|
|
2593
|
+
:param str job_id: The job ID (required)
|
|
2594
|
+
:return: StringListResult
|
|
2595
|
+
If the method is called asynchronously,
|
|
2596
|
+
returns the request thread.
|
|
2597
|
+
"""
|
|
2598
|
+
|
|
2599
|
+
all_params = ["job_id"] # noqa: E501
|
|
2600
|
+
all_params.append("async_req")
|
|
2601
|
+
all_params.append("_return_http_data_only")
|
|
2602
|
+
all_params.append("_preload_content")
|
|
2603
|
+
all_params.append("_request_timeout")
|
|
2604
|
+
|
|
2605
|
+
params = locals()
|
|
2606
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2607
|
+
if key not in all_params:
|
|
2608
|
+
raise TypeError(
|
|
2609
|
+
"Got an unexpected keyword argument '%s'"
|
|
2610
|
+
" to method get_waiting_info" % key
|
|
2611
|
+
)
|
|
2612
|
+
params[key] = val
|
|
2613
|
+
del params["kwargs"]
|
|
2614
|
+
# verify the required parameter 'job_id' is set
|
|
2615
|
+
if self.api_client.client_side_validation and (
|
|
2616
|
+
"job_id" not in params or params["job_id"] is None
|
|
2617
|
+
): # noqa: E501
|
|
2618
|
+
raise ValueError(
|
|
2619
|
+
"Missing the required parameter `job_id` when calling `get_waiting_info`"
|
|
2620
|
+
) # noqa: E501
|
|
2621
|
+
|
|
2622
|
+
collection_formats = {}
|
|
2623
|
+
|
|
2624
|
+
path_params = {}
|
|
2625
|
+
if "job_id" in params:
|
|
2626
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
2627
|
+
|
|
2628
|
+
query_params = []
|
|
2629
|
+
|
|
2630
|
+
header_params = {}
|
|
2631
|
+
|
|
2632
|
+
form_params = []
|
|
2633
|
+
local_var_files = {}
|
|
2634
|
+
|
|
2635
|
+
body_params = None
|
|
2636
|
+
# HTTP header `Accept`
|
|
2637
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2638
|
+
["application/json"]
|
|
2639
|
+
) # noqa: E501
|
|
2640
|
+
|
|
2641
|
+
# Authentication setting
|
|
2642
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2643
|
+
|
|
2644
|
+
return self.api_client.call_api(
|
|
2645
|
+
"/run/job/{jobId}/waitingInfo",
|
|
2646
|
+
"GET",
|
|
2647
|
+
path_params,
|
|
2648
|
+
query_params,
|
|
2649
|
+
header_params,
|
|
2650
|
+
body=body_params,
|
|
2651
|
+
post_params=form_params,
|
|
2652
|
+
files=local_var_files,
|
|
2653
|
+
response_type="StringListResult", # noqa: E501
|
|
2654
|
+
auth_settings=auth_settings,
|
|
2655
|
+
async_req=params.get("async_req"),
|
|
2656
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2657
|
+
_preload_content=params.get("_preload_content", True),
|
|
2658
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2659
|
+
collection_formats=collection_formats,
|
|
2660
|
+
)
|
|
2661
|
+
|
|
2662
|
+
def get_workload_policies(self, **kwargs): # noqa: E501
|
|
2663
|
+
"""get workload policies # noqa: E501
|
|
2664
|
+
|
|
2665
|
+
Get all the workload policies. # noqa: E501
|
|
2666
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2667
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2668
|
+
>>> thread = api.get_workload_policies(async_req=True)
|
|
2669
|
+
>>> result = thread.get()
|
|
2670
|
+
|
|
2671
|
+
:param async_req bool
|
|
2672
|
+
:param str state: Optionally state filter. Available values Active, Inactive
|
|
2673
|
+
:return: WorkloadPolicyList
|
|
2674
|
+
If the method is called asynchronously,
|
|
2675
|
+
returns the request thread.
|
|
2676
|
+
"""
|
|
2677
|
+
kwargs["_return_http_data_only"] = True
|
|
2678
|
+
if kwargs.get("async_req"):
|
|
2679
|
+
return self.get_workload_policies_with_http_info(**kwargs) # noqa: E501
|
|
2680
|
+
else:
|
|
2681
|
+
(data) = self.get_workload_policies_with_http_info(**kwargs) # noqa: E501
|
|
2682
|
+
return data
|
|
2683
|
+
|
|
2684
|
+
def get_workload_policies_with_http_info(self, **kwargs): # noqa: E501
|
|
2685
|
+
"""get workload policies # noqa: E501
|
|
2686
|
+
|
|
2687
|
+
Get all the workload policies. # noqa: E501
|
|
2688
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2689
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2690
|
+
>>> thread = api.get_workload_policies_with_http_info(async_req=True)
|
|
2691
|
+
>>> result = thread.get()
|
|
2692
|
+
|
|
2693
|
+
:param async_req bool
|
|
2694
|
+
:param str state: Optionally state filter. Available values Active, Inactive
|
|
2695
|
+
:return: WorkloadPolicyList
|
|
2696
|
+
If the method is called asynchronously,
|
|
2697
|
+
returns the request thread.
|
|
2698
|
+
"""
|
|
2699
|
+
|
|
2700
|
+
all_params = ["state"] # noqa: E501
|
|
2701
|
+
all_params.append("async_req")
|
|
2702
|
+
all_params.append("_return_http_data_only")
|
|
2703
|
+
all_params.append("_preload_content")
|
|
2704
|
+
all_params.append("_request_timeout")
|
|
2705
|
+
|
|
2706
|
+
params = locals()
|
|
2707
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2708
|
+
if key not in all_params:
|
|
2709
|
+
raise TypeError(
|
|
2710
|
+
"Got an unexpected keyword argument '%s'"
|
|
2711
|
+
" to method get_workload_policies" % key
|
|
2712
|
+
)
|
|
2713
|
+
params[key] = val
|
|
2714
|
+
del params["kwargs"]
|
|
2715
|
+
|
|
2716
|
+
collection_formats = {}
|
|
2717
|
+
|
|
2718
|
+
path_params = {}
|
|
2719
|
+
|
|
2720
|
+
query_params = []
|
|
2721
|
+
if "state" in params:
|
|
2722
|
+
query_params.append(("state", params["state"])) # noqa: E501
|
|
2723
|
+
|
|
2724
|
+
header_params = {}
|
|
2725
|
+
|
|
2726
|
+
form_params = []
|
|
2727
|
+
local_var_files = {}
|
|
2728
|
+
|
|
2729
|
+
body_params = None
|
|
2730
|
+
# HTTP header `Accept`
|
|
2731
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2732
|
+
["application/json"]
|
|
2733
|
+
) # noqa: E501
|
|
2734
|
+
|
|
2735
|
+
# Authentication setting
|
|
2736
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2737
|
+
|
|
2738
|
+
return self.api_client.call_api(
|
|
2739
|
+
"/run/workloadpolicies",
|
|
2740
|
+
"GET",
|
|
2741
|
+
path_params,
|
|
2742
|
+
query_params,
|
|
2743
|
+
header_params,
|
|
2744
|
+
body=body_params,
|
|
2745
|
+
post_params=form_params,
|
|
2746
|
+
files=local_var_files,
|
|
2747
|
+
response_type="WorkloadPolicyList", # noqa: E501
|
|
2748
|
+
auth_settings=auth_settings,
|
|
2749
|
+
async_req=params.get("async_req"),
|
|
2750
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2751
|
+
_preload_content=params.get("_preload_content", True),
|
|
2752
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2753
|
+
collection_formats=collection_formats,
|
|
2754
|
+
)
|
|
2755
|
+
|
|
2756
|
+
def hold_job(self, job_id, **kwargs): # noqa: E501
|
|
2757
|
+
"""hold the job so it will not start untill it is freed # noqa: E501
|
|
2758
|
+
|
|
2759
|
+
hold the job # noqa: E501
|
|
2760
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2761
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2762
|
+
>>> thread = api.hold_job(job_id, async_req=True)
|
|
2763
|
+
>>> result = thread.get()
|
|
2764
|
+
|
|
2765
|
+
:param async_req bool
|
|
2766
|
+
:param str job_id: The job ID (required)
|
|
2767
|
+
:return: SuccessData
|
|
2768
|
+
If the method is called asynchronously,
|
|
2769
|
+
returns the request thread.
|
|
2770
|
+
"""
|
|
2771
|
+
kwargs["_return_http_data_only"] = True
|
|
2772
|
+
if kwargs.get("async_req"):
|
|
2773
|
+
return self.hold_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
2774
|
+
else:
|
|
2775
|
+
(data) = self.hold_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
2776
|
+
return data
|
|
2777
|
+
|
|
2778
|
+
def hold_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
2779
|
+
"""hold the job so it will not start untill it is freed # noqa: E501
|
|
2780
|
+
|
|
2781
|
+
hold the job # noqa: E501
|
|
2782
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2783
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2784
|
+
>>> thread = api.hold_job_with_http_info(job_id, async_req=True)
|
|
2785
|
+
>>> result = thread.get()
|
|
2786
|
+
|
|
2787
|
+
:param async_req bool
|
|
2788
|
+
:param str job_id: The job ID (required)
|
|
2789
|
+
:return: SuccessData
|
|
2790
|
+
If the method is called asynchronously,
|
|
2791
|
+
returns the request thread.
|
|
2792
|
+
"""
|
|
2793
|
+
|
|
2794
|
+
all_params = ["job_id"] # noqa: E501
|
|
2795
|
+
all_params.append("async_req")
|
|
2796
|
+
all_params.append("_return_http_data_only")
|
|
2797
|
+
all_params.append("_preload_content")
|
|
2798
|
+
all_params.append("_request_timeout")
|
|
2799
|
+
|
|
2800
|
+
params = locals()
|
|
2801
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2802
|
+
if key not in all_params:
|
|
2803
|
+
raise TypeError(
|
|
2804
|
+
"Got an unexpected keyword argument '%s'"
|
|
2805
|
+
" to method hold_job" % key
|
|
2806
|
+
)
|
|
2807
|
+
params[key] = val
|
|
2808
|
+
del params["kwargs"]
|
|
2809
|
+
# verify the required parameter 'job_id' is set
|
|
2810
|
+
if self.api_client.client_side_validation and (
|
|
2811
|
+
"job_id" not in params or params["job_id"] is None
|
|
2812
|
+
): # noqa: E501
|
|
2813
|
+
raise ValueError(
|
|
2814
|
+
"Missing the required parameter `job_id` when calling `hold_job`"
|
|
2815
|
+
) # noqa: E501
|
|
2816
|
+
|
|
2817
|
+
collection_formats = {}
|
|
2818
|
+
|
|
2819
|
+
path_params = {}
|
|
2820
|
+
if "job_id" in params:
|
|
2821
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
2822
|
+
|
|
2823
|
+
query_params = []
|
|
2824
|
+
|
|
2825
|
+
header_params = {}
|
|
2826
|
+
|
|
2827
|
+
form_params = []
|
|
2828
|
+
local_var_files = {}
|
|
2829
|
+
|
|
2830
|
+
body_params = None
|
|
2831
|
+
# HTTP header `Accept`
|
|
2832
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2833
|
+
["application/json"]
|
|
2834
|
+
) # noqa: E501
|
|
2835
|
+
|
|
2836
|
+
# Authentication setting
|
|
2837
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2838
|
+
|
|
2839
|
+
return self.api_client.call_api(
|
|
2840
|
+
"/run/job/{jobId}/hold",
|
|
2841
|
+
"POST",
|
|
2842
|
+
path_params,
|
|
2843
|
+
query_params,
|
|
2844
|
+
header_params,
|
|
2845
|
+
body=body_params,
|
|
2846
|
+
post_params=form_params,
|
|
2847
|
+
files=local_var_files,
|
|
2848
|
+
response_type="SuccessData", # noqa: E501
|
|
2849
|
+
auth_settings=auth_settings,
|
|
2850
|
+
async_req=params.get("async_req"),
|
|
2851
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2852
|
+
_preload_content=params.get("_preload_content", True),
|
|
2853
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2854
|
+
collection_formats=collection_formats,
|
|
2855
|
+
)
|
|
2856
|
+
|
|
2857
|
+
def kill_job(self, job_id, **kwargs): # noqa: E501
|
|
2858
|
+
"""Cancel running job # noqa: E501
|
|
2859
|
+
|
|
2860
|
+
Abort job execution. # noqa: E501
|
|
2861
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2862
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2863
|
+
>>> thread = api.kill_job(job_id, async_req=True)
|
|
2864
|
+
>>> result = thread.get()
|
|
2865
|
+
|
|
2866
|
+
:param async_req bool
|
|
2867
|
+
:param str job_id: The job ID (required)
|
|
2868
|
+
:return: SuccessData
|
|
2869
|
+
If the method is called asynchronously,
|
|
2870
|
+
returns the request thread.
|
|
2871
|
+
"""
|
|
2872
|
+
kwargs["_return_http_data_only"] = True
|
|
2873
|
+
if kwargs.get("async_req"):
|
|
2874
|
+
return self.kill_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
2875
|
+
else:
|
|
2876
|
+
(data) = self.kill_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
2877
|
+
return data
|
|
2878
|
+
|
|
2879
|
+
def kill_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
2880
|
+
"""Cancel running job # noqa: E501
|
|
2881
|
+
|
|
2882
|
+
Abort job execution. # noqa: E501
|
|
2883
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2884
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2885
|
+
>>> thread = api.kill_job_with_http_info(job_id, async_req=True)
|
|
2886
|
+
>>> result = thread.get()
|
|
2887
|
+
|
|
2888
|
+
:param async_req bool
|
|
2889
|
+
:param str job_id: The job ID (required)
|
|
2890
|
+
:return: SuccessData
|
|
2891
|
+
If the method is called asynchronously,
|
|
2892
|
+
returns the request thread.
|
|
2893
|
+
"""
|
|
2894
|
+
|
|
2895
|
+
all_params = ["job_id"] # noqa: E501
|
|
2896
|
+
all_params.append("async_req")
|
|
2897
|
+
all_params.append("_return_http_data_only")
|
|
2898
|
+
all_params.append("_preload_content")
|
|
2899
|
+
all_params.append("_request_timeout")
|
|
2900
|
+
|
|
2901
|
+
params = locals()
|
|
2902
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
2903
|
+
if key not in all_params:
|
|
2904
|
+
raise TypeError(
|
|
2905
|
+
"Got an unexpected keyword argument '%s'"
|
|
2906
|
+
" to method kill_job" % key
|
|
2907
|
+
)
|
|
2908
|
+
params[key] = val
|
|
2909
|
+
del params["kwargs"]
|
|
2910
|
+
# verify the required parameter 'job_id' is set
|
|
2911
|
+
if self.api_client.client_side_validation and (
|
|
2912
|
+
"job_id" not in params or params["job_id"] is None
|
|
2913
|
+
): # noqa: E501
|
|
2914
|
+
raise ValueError(
|
|
2915
|
+
"Missing the required parameter `job_id` when calling `kill_job`"
|
|
2916
|
+
) # noqa: E501
|
|
2917
|
+
|
|
2918
|
+
collection_formats = {}
|
|
2919
|
+
|
|
2920
|
+
path_params = {}
|
|
2921
|
+
if "job_id" in params:
|
|
2922
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
2923
|
+
|
|
2924
|
+
query_params = []
|
|
2925
|
+
|
|
2926
|
+
header_params = {}
|
|
2927
|
+
|
|
2928
|
+
form_params = []
|
|
2929
|
+
local_var_files = {}
|
|
2930
|
+
|
|
2931
|
+
body_params = None
|
|
2932
|
+
# HTTP header `Accept`
|
|
2933
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
2934
|
+
["application/json"]
|
|
2935
|
+
) # noqa: E501
|
|
2936
|
+
|
|
2937
|
+
# Authentication setting
|
|
2938
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
2939
|
+
|
|
2940
|
+
return self.api_client.call_api(
|
|
2941
|
+
"/run/job/{jobId}/kill",
|
|
2942
|
+
"POST",
|
|
2943
|
+
path_params,
|
|
2944
|
+
query_params,
|
|
2945
|
+
header_params,
|
|
2946
|
+
body=body_params,
|
|
2947
|
+
post_params=form_params,
|
|
2948
|
+
files=local_var_files,
|
|
2949
|
+
response_type="SuccessData", # noqa: E501
|
|
2950
|
+
auth_settings=auth_settings,
|
|
2951
|
+
async_req=params.get("async_req"),
|
|
2952
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
2953
|
+
_preload_content=params.get("_preload_content", True),
|
|
2954
|
+
_request_timeout=params.get("_request_timeout"),
|
|
2955
|
+
collection_formats=collection_formats,
|
|
2956
|
+
)
|
|
2957
|
+
|
|
2958
|
+
def modify_job(self, job_definitions_file, job_id, **kwargs): # noqa: E501
|
|
2959
|
+
"""Modify active job # noqa: E501
|
|
2960
|
+
|
|
2961
|
+
Modify active job, specified by order id according to given definitions file (JSON). # noqa: E501
|
|
2962
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2963
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2964
|
+
>>> thread = api.modify_job(job_definitions_file, job_id, async_req=True)
|
|
2965
|
+
>>> result = thread.get()
|
|
2966
|
+
|
|
2967
|
+
:param async_req bool
|
|
2968
|
+
:param file job_definitions_file: File that contains the definitions of the job to modify. It should be a JSON file. (required)
|
|
2969
|
+
:param str job_id: The job ID (required)
|
|
2970
|
+
:return: SuccessData
|
|
2971
|
+
If the method is called asynchronously,
|
|
2972
|
+
returns the request thread.
|
|
2973
|
+
"""
|
|
2974
|
+
kwargs["_return_http_data_only"] = True
|
|
2975
|
+
if kwargs.get("async_req"):
|
|
2976
|
+
return self.modify_job_with_http_info(
|
|
2977
|
+
job_definitions_file, job_id, **kwargs
|
|
2978
|
+
) # noqa: E501
|
|
2979
|
+
else:
|
|
2980
|
+
(data) = self.modify_job_with_http_info(
|
|
2981
|
+
job_definitions_file, job_id, **kwargs
|
|
2982
|
+
) # noqa: E501
|
|
2983
|
+
return data
|
|
2984
|
+
|
|
2985
|
+
def modify_job_with_http_info(
|
|
2986
|
+
self, job_definitions_file, job_id, **kwargs
|
|
2987
|
+
): # noqa: E501
|
|
2988
|
+
"""Modify active job # noqa: E501
|
|
2989
|
+
|
|
2990
|
+
Modify active job, specified by order id according to given definitions file (JSON). # noqa: E501
|
|
2991
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2992
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2993
|
+
>>> thread = api.modify_job_with_http_info(job_definitions_file, job_id, async_req=True)
|
|
2994
|
+
>>> result = thread.get()
|
|
2995
|
+
|
|
2996
|
+
:param async_req bool
|
|
2997
|
+
:param file job_definitions_file: File that contains the definitions of the job to modify. It should be a JSON file. (required)
|
|
2998
|
+
:param str job_id: The job ID (required)
|
|
2999
|
+
:return: SuccessData
|
|
3000
|
+
If the method is called asynchronously,
|
|
3001
|
+
returns the request thread.
|
|
3002
|
+
"""
|
|
3003
|
+
|
|
3004
|
+
all_params = ["job_definitions_file", "job_id"] # noqa: E501
|
|
3005
|
+
all_params.append("async_req")
|
|
3006
|
+
all_params.append("_return_http_data_only")
|
|
3007
|
+
all_params.append("_preload_content")
|
|
3008
|
+
all_params.append("_request_timeout")
|
|
3009
|
+
|
|
3010
|
+
params = locals()
|
|
3011
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3012
|
+
if key not in all_params:
|
|
3013
|
+
raise TypeError(
|
|
3014
|
+
"Got an unexpected keyword argument '%s'"
|
|
3015
|
+
" to method modify_job" % key
|
|
3016
|
+
)
|
|
3017
|
+
params[key] = val
|
|
3018
|
+
del params["kwargs"]
|
|
3019
|
+
# verify the required parameter 'job_definitions_file' is set
|
|
3020
|
+
if self.api_client.client_side_validation and (
|
|
3021
|
+
"job_definitions_file" not in params
|
|
3022
|
+
or params["job_definitions_file"] is None
|
|
3023
|
+
): # noqa: E501
|
|
3024
|
+
raise ValueError(
|
|
3025
|
+
"Missing the required parameter `job_definitions_file` when calling `modify_job`"
|
|
3026
|
+
) # noqa: E501
|
|
3027
|
+
# verify the required parameter 'job_id' is set
|
|
3028
|
+
if self.api_client.client_side_validation and (
|
|
3029
|
+
"job_id" not in params or params["job_id"] is None
|
|
3030
|
+
): # noqa: E501
|
|
3031
|
+
raise ValueError(
|
|
3032
|
+
"Missing the required parameter `job_id` when calling `modify_job`"
|
|
3033
|
+
) # noqa: E501
|
|
3034
|
+
|
|
3035
|
+
collection_formats = {}
|
|
3036
|
+
|
|
3037
|
+
path_params = {}
|
|
3038
|
+
if "job_id" in params:
|
|
3039
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
3040
|
+
|
|
3041
|
+
query_params = []
|
|
3042
|
+
|
|
3043
|
+
header_params = {}
|
|
3044
|
+
|
|
3045
|
+
form_params = []
|
|
3046
|
+
local_var_files = {}
|
|
3047
|
+
if "job_definitions_file" in params:
|
|
3048
|
+
local_var_files["jobDefinitionsFile"] = params[
|
|
3049
|
+
"job_definitions_file"
|
|
3050
|
+
] # noqa: E501
|
|
3051
|
+
|
|
3052
|
+
body_params = None
|
|
3053
|
+
# HTTP header `Accept`
|
|
3054
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3055
|
+
["application/json"]
|
|
3056
|
+
) # noqa: E501
|
|
3057
|
+
|
|
3058
|
+
# HTTP header `Content-Type`
|
|
3059
|
+
header_params[
|
|
3060
|
+
"Content-Type"
|
|
3061
|
+
] = self.api_client.select_header_content_type( # noqa: E501
|
|
3062
|
+
["multipart/form-data"]
|
|
3063
|
+
) # noqa: E501
|
|
3064
|
+
|
|
3065
|
+
# Authentication setting
|
|
3066
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3067
|
+
|
|
3068
|
+
return self.api_client.call_api(
|
|
3069
|
+
"/run/job/{jobId}/modify",
|
|
3070
|
+
"POST",
|
|
3071
|
+
path_params,
|
|
3072
|
+
query_params,
|
|
3073
|
+
header_params,
|
|
3074
|
+
body=body_params,
|
|
3075
|
+
post_params=form_params,
|
|
3076
|
+
files=local_var_files,
|
|
3077
|
+
response_type="SuccessData", # noqa: E501
|
|
3078
|
+
auth_settings=auth_settings,
|
|
3079
|
+
async_req=params.get("async_req"),
|
|
3080
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3081
|
+
_preload_content=params.get("_preload_content", True),
|
|
3082
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3083
|
+
collection_formats=collection_formats,
|
|
3084
|
+
)
|
|
3085
|
+
|
|
3086
|
+
def order_jobs_in_folder(self, **kwargs): # noqa: E501
|
|
3087
|
+
"""Execute requested jobs in certain folder # noqa: E501
|
|
3088
|
+
|
|
3089
|
+
Run jobs from selected folder according to given filter # noqa: E501
|
|
3090
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3091
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3092
|
+
>>> thread = api.order_jobs_in_folder(async_req=True)
|
|
3093
|
+
>>> result = thread.get()
|
|
3094
|
+
|
|
3095
|
+
:param async_req bool
|
|
3096
|
+
:param OrderFolderParameters data: parameters to select the jobs to run
|
|
3097
|
+
:return: RunResult
|
|
3098
|
+
If the method is called asynchronously,
|
|
3099
|
+
returns the request thread.
|
|
3100
|
+
"""
|
|
3101
|
+
kwargs["_return_http_data_only"] = True
|
|
3102
|
+
if kwargs.get("async_req"):
|
|
3103
|
+
return self.order_jobs_in_folder_with_http_info(**kwargs) # noqa: E501
|
|
3104
|
+
else:
|
|
3105
|
+
(data) = self.order_jobs_in_folder_with_http_info(**kwargs) # noqa: E501
|
|
3106
|
+
return data
|
|
3107
|
+
|
|
3108
|
+
def order_jobs_in_folder_with_http_info(self, **kwargs): # noqa: E501
|
|
3109
|
+
"""Execute requested jobs in certain folder # noqa: E501
|
|
3110
|
+
|
|
3111
|
+
Run jobs from selected folder according to given filter # noqa: E501
|
|
3112
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3113
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3114
|
+
>>> thread = api.order_jobs_in_folder_with_http_info(async_req=True)
|
|
3115
|
+
>>> result = thread.get()
|
|
3116
|
+
|
|
3117
|
+
:param async_req bool
|
|
3118
|
+
:param OrderFolderParameters data: parameters to select the jobs to run
|
|
3119
|
+
:return: RunResult
|
|
3120
|
+
If the method is called asynchronously,
|
|
3121
|
+
returns the request thread.
|
|
3122
|
+
"""
|
|
3123
|
+
|
|
3124
|
+
all_params = ["data"] # noqa: E501
|
|
3125
|
+
all_params.append("async_req")
|
|
3126
|
+
all_params.append("_return_http_data_only")
|
|
3127
|
+
all_params.append("_preload_content")
|
|
3128
|
+
all_params.append("_request_timeout")
|
|
3129
|
+
|
|
3130
|
+
params = locals()
|
|
3131
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3132
|
+
if key not in all_params:
|
|
3133
|
+
raise TypeError(
|
|
3134
|
+
"Got an unexpected keyword argument '%s'"
|
|
3135
|
+
" to method order_jobs_in_folder" % key
|
|
3136
|
+
)
|
|
3137
|
+
params[key] = val
|
|
3138
|
+
del params["kwargs"]
|
|
3139
|
+
|
|
3140
|
+
collection_formats = {}
|
|
3141
|
+
|
|
3142
|
+
path_params = {}
|
|
3143
|
+
|
|
3144
|
+
query_params = []
|
|
3145
|
+
|
|
3146
|
+
header_params = {}
|
|
3147
|
+
|
|
3148
|
+
form_params = []
|
|
3149
|
+
local_var_files = {}
|
|
3150
|
+
|
|
3151
|
+
body_params = None
|
|
3152
|
+
if "data" in params:
|
|
3153
|
+
body_params = params["data"]
|
|
3154
|
+
# HTTP header `Accept`
|
|
3155
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3156
|
+
["application/json"]
|
|
3157
|
+
) # noqa: E501
|
|
3158
|
+
|
|
3159
|
+
# Authentication setting
|
|
3160
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3161
|
+
|
|
3162
|
+
return self.api_client.call_api(
|
|
3163
|
+
"/run/order",
|
|
3164
|
+
"POST",
|
|
3165
|
+
path_params,
|
|
3166
|
+
query_params,
|
|
3167
|
+
header_params,
|
|
3168
|
+
body=body_params,
|
|
3169
|
+
post_params=form_params,
|
|
3170
|
+
files=local_var_files,
|
|
3171
|
+
response_type="RunResult", # noqa: E501
|
|
3172
|
+
auth_settings=auth_settings,
|
|
3173
|
+
async_req=params.get("async_req"),
|
|
3174
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3175
|
+
_preload_content=params.get("_preload_content", True),
|
|
3176
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3177
|
+
collection_formats=collection_formats,
|
|
3178
|
+
)
|
|
3179
|
+
|
|
3180
|
+
def rerun_job(self, job_id, **kwargs): # noqa: E501
|
|
3181
|
+
"""Run job again # noqa: E501
|
|
3182
|
+
|
|
3183
|
+
Run an already executed job (again). # noqa: E501
|
|
3184
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3185
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3186
|
+
>>> thread = api.rerun_job(job_id, async_req=True)
|
|
3187
|
+
>>> result = thread.get()
|
|
3188
|
+
|
|
3189
|
+
:param async_req bool
|
|
3190
|
+
:param str job_id: The job ID (required)
|
|
3191
|
+
:param RerunParameters rerun_parameters: The JSON file with the restart configuration and parameters
|
|
3192
|
+
:return: JobRunStatus
|
|
3193
|
+
If the method is called asynchronously,
|
|
3194
|
+
returns the request thread.
|
|
3195
|
+
"""
|
|
3196
|
+
kwargs["_return_http_data_only"] = True
|
|
3197
|
+
if kwargs.get("async_req"):
|
|
3198
|
+
return self.rerun_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3199
|
+
else:
|
|
3200
|
+
(data) = self.rerun_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3201
|
+
return data
|
|
3202
|
+
|
|
3203
|
+
def rerun_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
3204
|
+
"""Run job again # noqa: E501
|
|
3205
|
+
|
|
3206
|
+
Run an already executed job (again). # noqa: E501
|
|
3207
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3208
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3209
|
+
>>> thread = api.rerun_job_with_http_info(job_id, async_req=True)
|
|
3210
|
+
>>> result = thread.get()
|
|
3211
|
+
|
|
3212
|
+
:param async_req bool
|
|
3213
|
+
:param str job_id: The job ID (required)
|
|
3214
|
+
:param RerunParameters rerun_parameters: The JSON file with the restart configuration and parameters
|
|
3215
|
+
:return: JobRunStatus
|
|
3216
|
+
If the method is called asynchronously,
|
|
3217
|
+
returns the request thread.
|
|
3218
|
+
"""
|
|
3219
|
+
|
|
3220
|
+
all_params = ["job_id", "rerun_parameters"] # noqa: E501
|
|
3221
|
+
all_params.append("async_req")
|
|
3222
|
+
all_params.append("_return_http_data_only")
|
|
3223
|
+
all_params.append("_preload_content")
|
|
3224
|
+
all_params.append("_request_timeout")
|
|
3225
|
+
|
|
3226
|
+
params = locals()
|
|
3227
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3228
|
+
if key not in all_params:
|
|
3229
|
+
raise TypeError(
|
|
3230
|
+
"Got an unexpected keyword argument '%s'"
|
|
3231
|
+
" to method rerun_job" % key
|
|
3232
|
+
)
|
|
3233
|
+
params[key] = val
|
|
3234
|
+
del params["kwargs"]
|
|
3235
|
+
# verify the required parameter 'job_id' is set
|
|
3236
|
+
if self.api_client.client_side_validation and (
|
|
3237
|
+
"job_id" not in params or params["job_id"] is None
|
|
3238
|
+
): # noqa: E501
|
|
3239
|
+
raise ValueError(
|
|
3240
|
+
"Missing the required parameter `job_id` when calling `rerun_job`"
|
|
3241
|
+
) # noqa: E501
|
|
3242
|
+
|
|
3243
|
+
collection_formats = {}
|
|
3244
|
+
|
|
3245
|
+
path_params = {}
|
|
3246
|
+
if "job_id" in params:
|
|
3247
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
3248
|
+
|
|
3249
|
+
query_params = []
|
|
3250
|
+
|
|
3251
|
+
header_params = {}
|
|
3252
|
+
|
|
3253
|
+
form_params = []
|
|
3254
|
+
local_var_files = {}
|
|
3255
|
+
|
|
3256
|
+
body_params = None
|
|
3257
|
+
if "rerun_parameters" in params:
|
|
3258
|
+
body_params = params["rerun_parameters"]
|
|
3259
|
+
# HTTP header `Accept`
|
|
3260
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3261
|
+
["application/json"]
|
|
3262
|
+
) # noqa: E501
|
|
3263
|
+
|
|
3264
|
+
# Authentication setting
|
|
3265
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3266
|
+
|
|
3267
|
+
return self.api_client.call_api(
|
|
3268
|
+
"/run/job/{jobId}/rerun",
|
|
3269
|
+
"POST",
|
|
3270
|
+
path_params,
|
|
3271
|
+
query_params,
|
|
3272
|
+
header_params,
|
|
3273
|
+
body=body_params,
|
|
3274
|
+
post_params=form_params,
|
|
3275
|
+
files=local_var_files,
|
|
3276
|
+
response_type="JobRunStatus", # noqa: E501
|
|
3277
|
+
auth_settings=auth_settings,
|
|
3278
|
+
async_req=params.get("async_req"),
|
|
3279
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3280
|
+
_preload_content=params.get("_preload_content", True),
|
|
3281
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3282
|
+
collection_formats=collection_formats,
|
|
3283
|
+
)
|
|
3284
|
+
|
|
3285
|
+
def run_jobs(self, job_definitions_file, **kwargs): # noqa: E501
|
|
3286
|
+
"""Run jobs # noqa: E501
|
|
3287
|
+
|
|
3288
|
+
Run jobs according to given definitions file (JSON or zip). # noqa: E501
|
|
3289
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3290
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3291
|
+
>>> thread = api.run_jobs(job_definitions_file, async_req=True)
|
|
3292
|
+
>>> result = thread.get()
|
|
3293
|
+
|
|
3294
|
+
:param async_req bool
|
|
3295
|
+
:param file job_definitions_file: File that contains the definitions of the jobs to run. It can be a JSON file, or a zip file that can contain one or more JSON files, as well as account(s) information. (required)
|
|
3296
|
+
:param file deploy_descriptor_file: Deploy Descriptor JSON file.
|
|
3297
|
+
:param file additional_configuration: additionalConfiguration to enable skip testing for local connection profile
|
|
3298
|
+
:return: RunResult
|
|
3299
|
+
If the method is called asynchronously,
|
|
3300
|
+
returns the request thread.
|
|
3301
|
+
"""
|
|
3302
|
+
kwargs["_return_http_data_only"] = True
|
|
3303
|
+
if kwargs.get("async_req"):
|
|
3304
|
+
return self.run_jobs_with_http_info(
|
|
3305
|
+
job_definitions_file, **kwargs
|
|
3306
|
+
) # noqa: E501
|
|
3307
|
+
else:
|
|
3308
|
+
(data) = self.run_jobs_with_http_info(
|
|
3309
|
+
job_definitions_file, **kwargs
|
|
3310
|
+
) # noqa: E501
|
|
3311
|
+
return data
|
|
3312
|
+
|
|
3313
|
+
def run_jobs_with_http_info(self, job_definitions_file, **kwargs): # noqa: E501
|
|
3314
|
+
"""Run jobs # noqa: E501
|
|
3315
|
+
|
|
3316
|
+
Run jobs according to given definitions file (JSON or zip). # noqa: E501
|
|
3317
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3318
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3319
|
+
>>> thread = api.run_jobs_with_http_info(job_definitions_file, async_req=True)
|
|
3320
|
+
>>> result = thread.get()
|
|
3321
|
+
|
|
3322
|
+
:param async_req bool
|
|
3323
|
+
:param file job_definitions_file: File that contains the definitions of the jobs to run. It can be a JSON file, or a zip file that can contain one or more JSON files, as well as account(s) information. (required)
|
|
3324
|
+
:param file deploy_descriptor_file: Deploy Descriptor JSON file.
|
|
3325
|
+
:param file additional_configuration: additionalConfiguration to enable skip testing for local connection profile
|
|
3326
|
+
:return: RunResult
|
|
3327
|
+
If the method is called asynchronously,
|
|
3328
|
+
returns the request thread.
|
|
3329
|
+
"""
|
|
3330
|
+
|
|
3331
|
+
all_params = [
|
|
3332
|
+
"job_definitions_file",
|
|
3333
|
+
"deploy_descriptor_file",
|
|
3334
|
+
"additional_configuration",
|
|
3335
|
+
] # noqa: E501
|
|
3336
|
+
all_params.append("async_req")
|
|
3337
|
+
all_params.append("_return_http_data_only")
|
|
3338
|
+
all_params.append("_preload_content")
|
|
3339
|
+
all_params.append("_request_timeout")
|
|
3340
|
+
|
|
3341
|
+
params = locals()
|
|
3342
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3343
|
+
if key not in all_params:
|
|
3344
|
+
raise TypeError(
|
|
3345
|
+
"Got an unexpected keyword argument '%s'"
|
|
3346
|
+
" to method run_jobs" % key
|
|
3347
|
+
)
|
|
3348
|
+
params[key] = val
|
|
3349
|
+
del params["kwargs"]
|
|
3350
|
+
# verify the required parameter 'job_definitions_file' is set
|
|
3351
|
+
if self.api_client.client_side_validation and (
|
|
3352
|
+
"job_definitions_file" not in params
|
|
3353
|
+
or params["job_definitions_file"] is None
|
|
3354
|
+
): # noqa: E501
|
|
3355
|
+
raise ValueError(
|
|
3356
|
+
"Missing the required parameter `job_definitions_file` when calling `run_jobs`"
|
|
3357
|
+
) # noqa: E501
|
|
3358
|
+
|
|
3359
|
+
collection_formats = {}
|
|
3360
|
+
|
|
3361
|
+
path_params = {}
|
|
3362
|
+
|
|
3363
|
+
query_params = []
|
|
3364
|
+
|
|
3365
|
+
header_params = {}
|
|
3366
|
+
|
|
3367
|
+
form_params = []
|
|
3368
|
+
local_var_files = {}
|
|
3369
|
+
if "job_definitions_file" in params:
|
|
3370
|
+
local_var_files["jobDefinitionsFile"] = params[
|
|
3371
|
+
"job_definitions_file"
|
|
3372
|
+
] # noqa: E501
|
|
3373
|
+
if "deploy_descriptor_file" in params:
|
|
3374
|
+
local_var_files["deployDescriptorFile"] = params[
|
|
3375
|
+
"deploy_descriptor_file"
|
|
3376
|
+
] # noqa: E501
|
|
3377
|
+
if "additional_configuration" in params:
|
|
3378
|
+
local_var_files["additionalConfiguration"] = params[
|
|
3379
|
+
"additional_configuration"
|
|
3380
|
+
] # noqa: E501
|
|
3381
|
+
|
|
3382
|
+
body_params = None
|
|
3383
|
+
# HTTP header `Accept`
|
|
3384
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3385
|
+
["application/json"]
|
|
3386
|
+
) # noqa: E501
|
|
3387
|
+
|
|
3388
|
+
# HTTP header `Content-Type`
|
|
3389
|
+
header_params[
|
|
3390
|
+
"Content-Type"
|
|
3391
|
+
] = self.api_client.select_header_content_type( # noqa: E501
|
|
3392
|
+
["multipart/form-data"]
|
|
3393
|
+
) # noqa: E501
|
|
3394
|
+
|
|
3395
|
+
# Authentication setting
|
|
3396
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3397
|
+
|
|
3398
|
+
return self.api_client.call_api(
|
|
3399
|
+
"/run",
|
|
3400
|
+
"POST",
|
|
3401
|
+
path_params,
|
|
3402
|
+
query_params,
|
|
3403
|
+
header_params,
|
|
3404
|
+
body=body_params,
|
|
3405
|
+
post_params=form_params,
|
|
3406
|
+
files=local_var_files,
|
|
3407
|
+
response_type="RunResult", # noqa: E501
|
|
3408
|
+
auth_settings=auth_settings,
|
|
3409
|
+
async_req=params.get("async_req"),
|
|
3410
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3411
|
+
_preload_content=params.get("_preload_content", True),
|
|
3412
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3413
|
+
collection_formats=collection_formats,
|
|
3414
|
+
)
|
|
3415
|
+
|
|
3416
|
+
def run_now(self, job_id, **kwargs): # noqa: E501
|
|
3417
|
+
"""Bypass scheduling cretirias and start the job # noqa: E501
|
|
3418
|
+
|
|
3419
|
+
start a job immediately # noqa: E501
|
|
3420
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3421
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3422
|
+
>>> thread = api.run_now(job_id, async_req=True)
|
|
3423
|
+
>>> result = thread.get()
|
|
3424
|
+
|
|
3425
|
+
:param async_req bool
|
|
3426
|
+
:param str job_id: The job ID (required)
|
|
3427
|
+
:return: SuccessData
|
|
3428
|
+
If the method is called asynchronously,
|
|
3429
|
+
returns the request thread.
|
|
3430
|
+
"""
|
|
3431
|
+
kwargs["_return_http_data_only"] = True
|
|
3432
|
+
if kwargs.get("async_req"):
|
|
3433
|
+
return self.run_now_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3434
|
+
else:
|
|
3435
|
+
(data) = self.run_now_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3436
|
+
return data
|
|
3437
|
+
|
|
3438
|
+
def run_now_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
3439
|
+
"""Bypass scheduling cretirias and start the job # noqa: E501
|
|
3440
|
+
|
|
3441
|
+
start a job immediately # noqa: E501
|
|
3442
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3443
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3444
|
+
>>> thread = api.run_now_with_http_info(job_id, async_req=True)
|
|
3445
|
+
>>> result = thread.get()
|
|
3446
|
+
|
|
3447
|
+
:param async_req bool
|
|
3448
|
+
:param str job_id: The job ID (required)
|
|
3449
|
+
:return: SuccessData
|
|
3450
|
+
If the method is called asynchronously,
|
|
3451
|
+
returns the request thread.
|
|
3452
|
+
"""
|
|
3453
|
+
|
|
3454
|
+
all_params = ["job_id"] # noqa: E501
|
|
3455
|
+
all_params.append("async_req")
|
|
3456
|
+
all_params.append("_return_http_data_only")
|
|
3457
|
+
all_params.append("_preload_content")
|
|
3458
|
+
all_params.append("_request_timeout")
|
|
3459
|
+
|
|
3460
|
+
params = locals()
|
|
3461
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3462
|
+
if key not in all_params:
|
|
3463
|
+
raise TypeError(
|
|
3464
|
+
"Got an unexpected keyword argument '%s'" " to method run_now" % key
|
|
3465
|
+
)
|
|
3466
|
+
params[key] = val
|
|
3467
|
+
del params["kwargs"]
|
|
3468
|
+
# verify the required parameter 'job_id' is set
|
|
3469
|
+
if self.api_client.client_side_validation and (
|
|
3470
|
+
"job_id" not in params or params["job_id"] is None
|
|
3471
|
+
): # noqa: E501
|
|
3472
|
+
raise ValueError(
|
|
3473
|
+
"Missing the required parameter `job_id` when calling `run_now`"
|
|
3474
|
+
) # noqa: E501
|
|
3475
|
+
|
|
3476
|
+
collection_formats = {}
|
|
3477
|
+
|
|
3478
|
+
path_params = {}
|
|
3479
|
+
if "job_id" in params:
|
|
3480
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
3481
|
+
|
|
3482
|
+
query_params = []
|
|
3483
|
+
|
|
3484
|
+
header_params = {}
|
|
3485
|
+
|
|
3486
|
+
form_params = []
|
|
3487
|
+
local_var_files = {}
|
|
3488
|
+
|
|
3489
|
+
body_params = None
|
|
3490
|
+
# HTTP header `Accept`
|
|
3491
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3492
|
+
["application/json"]
|
|
3493
|
+
) # noqa: E501
|
|
3494
|
+
|
|
3495
|
+
# Authentication setting
|
|
3496
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3497
|
+
|
|
3498
|
+
return self.api_client.call_api(
|
|
3499
|
+
"/run/job/{jobId}/runNow",
|
|
3500
|
+
"POST",
|
|
3501
|
+
path_params,
|
|
3502
|
+
query_params,
|
|
3503
|
+
header_params,
|
|
3504
|
+
body=body_params,
|
|
3505
|
+
post_params=form_params,
|
|
3506
|
+
files=local_var_files,
|
|
3507
|
+
response_type="SuccessData", # noqa: E501
|
|
3508
|
+
auth_settings=auth_settings,
|
|
3509
|
+
async_req=params.get("async_req"),
|
|
3510
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3511
|
+
_preload_content=params.get("_preload_content", True),
|
|
3512
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3513
|
+
collection_formats=collection_formats,
|
|
3514
|
+
)
|
|
3515
|
+
|
|
3516
|
+
def set_to_ok(self, job_id, **kwargs): # noqa: E501
|
|
3517
|
+
"""set job end status to OK # noqa: E501
|
|
3518
|
+
|
|
3519
|
+
set job status to OK, post processing action # noqa: E501
|
|
3520
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3521
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3522
|
+
>>> thread = api.set_to_ok(job_id, async_req=True)
|
|
3523
|
+
>>> result = thread.get()
|
|
3524
|
+
|
|
3525
|
+
:param async_req bool
|
|
3526
|
+
:param str job_id: The job ID (required)
|
|
3527
|
+
:return: SuccessData
|
|
3528
|
+
If the method is called asynchronously,
|
|
3529
|
+
returns the request thread.
|
|
3530
|
+
"""
|
|
3531
|
+
kwargs["_return_http_data_only"] = True
|
|
3532
|
+
if kwargs.get("async_req"):
|
|
3533
|
+
return self.set_to_ok_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3534
|
+
else:
|
|
3535
|
+
(data) = self.set_to_ok_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3536
|
+
return data
|
|
3537
|
+
|
|
3538
|
+
def set_to_ok_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
3539
|
+
"""set job end status to OK # noqa: E501
|
|
3540
|
+
|
|
3541
|
+
set job status to OK, post processing action # noqa: E501
|
|
3542
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3543
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3544
|
+
>>> thread = api.set_to_ok_with_http_info(job_id, async_req=True)
|
|
3545
|
+
>>> result = thread.get()
|
|
3546
|
+
|
|
3547
|
+
:param async_req bool
|
|
3548
|
+
:param str job_id: The job ID (required)
|
|
3549
|
+
:return: SuccessData
|
|
3550
|
+
If the method is called asynchronously,
|
|
3551
|
+
returns the request thread.
|
|
3552
|
+
"""
|
|
3553
|
+
|
|
3554
|
+
all_params = ["job_id"] # noqa: E501
|
|
3555
|
+
all_params.append("async_req")
|
|
3556
|
+
all_params.append("_return_http_data_only")
|
|
3557
|
+
all_params.append("_preload_content")
|
|
3558
|
+
all_params.append("_request_timeout")
|
|
3559
|
+
|
|
3560
|
+
params = locals()
|
|
3561
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3562
|
+
if key not in all_params:
|
|
3563
|
+
raise TypeError(
|
|
3564
|
+
"Got an unexpected keyword argument '%s'"
|
|
3565
|
+
" to method set_to_ok" % key
|
|
3566
|
+
)
|
|
3567
|
+
params[key] = val
|
|
3568
|
+
del params["kwargs"]
|
|
3569
|
+
# verify the required parameter 'job_id' is set
|
|
3570
|
+
if self.api_client.client_side_validation and (
|
|
3571
|
+
"job_id" not in params or params["job_id"] is None
|
|
3572
|
+
): # noqa: E501
|
|
3573
|
+
raise ValueError(
|
|
3574
|
+
"Missing the required parameter `job_id` when calling `set_to_ok`"
|
|
3575
|
+
) # noqa: E501
|
|
3576
|
+
|
|
3577
|
+
collection_formats = {}
|
|
3578
|
+
|
|
3579
|
+
path_params = {}
|
|
3580
|
+
if "job_id" in params:
|
|
3581
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
3582
|
+
|
|
3583
|
+
query_params = []
|
|
3584
|
+
|
|
3585
|
+
header_params = {}
|
|
3586
|
+
|
|
3587
|
+
form_params = []
|
|
3588
|
+
local_var_files = {}
|
|
3589
|
+
|
|
3590
|
+
body_params = None
|
|
3591
|
+
# HTTP header `Accept`
|
|
3592
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3593
|
+
["application/json"]
|
|
3594
|
+
) # noqa: E501
|
|
3595
|
+
|
|
3596
|
+
# Authentication setting
|
|
3597
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3598
|
+
|
|
3599
|
+
return self.api_client.call_api(
|
|
3600
|
+
"/run/job/{jobId}/setToOk",
|
|
3601
|
+
"POST",
|
|
3602
|
+
path_params,
|
|
3603
|
+
query_params,
|
|
3604
|
+
header_params,
|
|
3605
|
+
body=body_params,
|
|
3606
|
+
post_params=form_params,
|
|
3607
|
+
files=local_var_files,
|
|
3608
|
+
response_type="SuccessData", # noqa: E501
|
|
3609
|
+
auth_settings=auth_settings,
|
|
3610
|
+
async_req=params.get("async_req"),
|
|
3611
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3612
|
+
_preload_content=params.get("_preload_content", True),
|
|
3613
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3614
|
+
collection_formats=collection_formats,
|
|
3615
|
+
)
|
|
3616
|
+
|
|
3617
|
+
def undelete_job(self, job_id, **kwargs): # noqa: E501
|
|
3618
|
+
"""recover a mark for deletion job # noqa: E501
|
|
3619
|
+
|
|
3620
|
+
recover a mark for deletion job # noqa: E501
|
|
3621
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3622
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3623
|
+
>>> thread = api.undelete_job(job_id, async_req=True)
|
|
3624
|
+
>>> result = thread.get()
|
|
3625
|
+
|
|
3626
|
+
:param async_req bool
|
|
3627
|
+
:param str job_id: The job ID (required)
|
|
3628
|
+
:return: SuccessData
|
|
3629
|
+
If the method is called asynchronously,
|
|
3630
|
+
returns the request thread.
|
|
3631
|
+
"""
|
|
3632
|
+
kwargs["_return_http_data_only"] = True
|
|
3633
|
+
if kwargs.get("async_req"):
|
|
3634
|
+
return self.undelete_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3635
|
+
else:
|
|
3636
|
+
(data) = self.undelete_job_with_http_info(job_id, **kwargs) # noqa: E501
|
|
3637
|
+
return data
|
|
3638
|
+
|
|
3639
|
+
def undelete_job_with_http_info(self, job_id, **kwargs): # noqa: E501
|
|
3640
|
+
"""recover a mark for deletion job # noqa: E501
|
|
3641
|
+
|
|
3642
|
+
recover a mark for deletion job # noqa: E501
|
|
3643
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3644
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3645
|
+
>>> thread = api.undelete_job_with_http_info(job_id, async_req=True)
|
|
3646
|
+
>>> result = thread.get()
|
|
3647
|
+
|
|
3648
|
+
:param async_req bool
|
|
3649
|
+
:param str job_id: The job ID (required)
|
|
3650
|
+
:return: SuccessData
|
|
3651
|
+
If the method is called asynchronously,
|
|
3652
|
+
returns the request thread.
|
|
3653
|
+
"""
|
|
3654
|
+
|
|
3655
|
+
all_params = ["job_id"] # noqa: E501
|
|
3656
|
+
all_params.append("async_req")
|
|
3657
|
+
all_params.append("_return_http_data_only")
|
|
3658
|
+
all_params.append("_preload_content")
|
|
3659
|
+
all_params.append("_request_timeout")
|
|
3660
|
+
|
|
3661
|
+
params = locals()
|
|
3662
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3663
|
+
if key not in all_params:
|
|
3664
|
+
raise TypeError(
|
|
3665
|
+
"Got an unexpected keyword argument '%s'"
|
|
3666
|
+
" to method undelete_job" % key
|
|
3667
|
+
)
|
|
3668
|
+
params[key] = val
|
|
3669
|
+
del params["kwargs"]
|
|
3670
|
+
# verify the required parameter 'job_id' is set
|
|
3671
|
+
if self.api_client.client_side_validation and (
|
|
3672
|
+
"job_id" not in params or params["job_id"] is None
|
|
3673
|
+
): # noqa: E501
|
|
3674
|
+
raise ValueError(
|
|
3675
|
+
"Missing the required parameter `job_id` when calling `undelete_job`"
|
|
3676
|
+
) # noqa: E501
|
|
3677
|
+
|
|
3678
|
+
collection_formats = {}
|
|
3679
|
+
|
|
3680
|
+
path_params = {}
|
|
3681
|
+
if "job_id" in params:
|
|
3682
|
+
path_params["jobId"] = params["job_id"] # noqa: E501
|
|
3683
|
+
|
|
3684
|
+
query_params = []
|
|
3685
|
+
|
|
3686
|
+
header_params = {}
|
|
3687
|
+
|
|
3688
|
+
form_params = []
|
|
3689
|
+
local_var_files = {}
|
|
3690
|
+
|
|
3691
|
+
body_params = None
|
|
3692
|
+
# HTTP header `Accept`
|
|
3693
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3694
|
+
["application/json"]
|
|
3695
|
+
) # noqa: E501
|
|
3696
|
+
|
|
3697
|
+
# Authentication setting
|
|
3698
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3699
|
+
|
|
3700
|
+
return self.api_client.call_api(
|
|
3701
|
+
"/run/job/{jobId}/undelete",
|
|
3702
|
+
"POST",
|
|
3703
|
+
path_params,
|
|
3704
|
+
query_params,
|
|
3705
|
+
header_params,
|
|
3706
|
+
body=body_params,
|
|
3707
|
+
post_params=form_params,
|
|
3708
|
+
files=local_var_files,
|
|
3709
|
+
response_type="SuccessData", # noqa: E501
|
|
3710
|
+
auth_settings=auth_settings,
|
|
3711
|
+
async_req=params.get("async_req"),
|
|
3712
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3713
|
+
_preload_content=params.get("_preload_content", True),
|
|
3714
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3715
|
+
collection_formats=collection_formats,
|
|
3716
|
+
)
|
|
3717
|
+
|
|
3718
|
+
def update_alert(self, alert_modify_value, **kwargs): # noqa: E501
|
|
3719
|
+
"""Update alert. # noqa: E501
|
|
3720
|
+
|
|
3721
|
+
Update alert. # noqa: E501
|
|
3722
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3723
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3724
|
+
>>> thread = api.update_alert(alert_modify_value, async_req=True)
|
|
3725
|
+
>>> result = thread.get()
|
|
3726
|
+
|
|
3727
|
+
:param async_req bool
|
|
3728
|
+
:param AlertParam alert_modify_value: File that contains the alert propery that want to be update. (required)
|
|
3729
|
+
:return: SuccessData
|
|
3730
|
+
If the method is called asynchronously,
|
|
3731
|
+
returns the request thread.
|
|
3732
|
+
"""
|
|
3733
|
+
kwargs["_return_http_data_only"] = True
|
|
3734
|
+
if kwargs.get("async_req"):
|
|
3735
|
+
return self.update_alert_with_http_info(
|
|
3736
|
+
alert_modify_value, **kwargs
|
|
3737
|
+
) # noqa: E501
|
|
3738
|
+
else:
|
|
3739
|
+
(data) = self.update_alert_with_http_info(
|
|
3740
|
+
alert_modify_value, **kwargs
|
|
3741
|
+
) # noqa: E501
|
|
3742
|
+
return data
|
|
3743
|
+
|
|
3744
|
+
def update_alert_with_http_info(self, alert_modify_value, **kwargs): # noqa: E501
|
|
3745
|
+
"""Update alert. # noqa: E501
|
|
3746
|
+
|
|
3747
|
+
Update alert. # noqa: E501
|
|
3748
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3749
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3750
|
+
>>> thread = api.update_alert_with_http_info(alert_modify_value, async_req=True)
|
|
3751
|
+
>>> result = thread.get()
|
|
3752
|
+
|
|
3753
|
+
:param async_req bool
|
|
3754
|
+
:param AlertParam alert_modify_value: File that contains the alert propery that want to be update. (required)
|
|
3755
|
+
:return: SuccessData
|
|
3756
|
+
If the method is called asynchronously,
|
|
3757
|
+
returns the request thread.
|
|
3758
|
+
"""
|
|
3759
|
+
|
|
3760
|
+
all_params = ["alert_modify_value"] # noqa: E501
|
|
3761
|
+
all_params.append("async_req")
|
|
3762
|
+
all_params.append("_return_http_data_only")
|
|
3763
|
+
all_params.append("_preload_content")
|
|
3764
|
+
all_params.append("_request_timeout")
|
|
3765
|
+
|
|
3766
|
+
params = locals()
|
|
3767
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3768
|
+
if key not in all_params:
|
|
3769
|
+
raise TypeError(
|
|
3770
|
+
"Got an unexpected keyword argument '%s'"
|
|
3771
|
+
" to method update_alert" % key
|
|
3772
|
+
)
|
|
3773
|
+
params[key] = val
|
|
3774
|
+
del params["kwargs"]
|
|
3775
|
+
# verify the required parameter 'alert_modify_value' is set
|
|
3776
|
+
if self.api_client.client_side_validation and (
|
|
3777
|
+
"alert_modify_value" not in params or params["alert_modify_value"] is None
|
|
3778
|
+
): # noqa: E501
|
|
3779
|
+
raise ValueError(
|
|
3780
|
+
"Missing the required parameter `alert_modify_value` when calling `update_alert`"
|
|
3781
|
+
) # noqa: E501
|
|
3782
|
+
|
|
3783
|
+
collection_formats = {}
|
|
3784
|
+
|
|
3785
|
+
path_params = {}
|
|
3786
|
+
|
|
3787
|
+
query_params = []
|
|
3788
|
+
|
|
3789
|
+
header_params = {}
|
|
3790
|
+
|
|
3791
|
+
form_params = []
|
|
3792
|
+
local_var_files = {}
|
|
3793
|
+
|
|
3794
|
+
body_params = None
|
|
3795
|
+
if "alert_modify_value" in params:
|
|
3796
|
+
body_params = params["alert_modify_value"]
|
|
3797
|
+
# HTTP header `Accept`
|
|
3798
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3799
|
+
["application/json"]
|
|
3800
|
+
) # noqa: E501
|
|
3801
|
+
|
|
3802
|
+
# Authentication setting
|
|
3803
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3804
|
+
|
|
3805
|
+
return self.api_client.call_api(
|
|
3806
|
+
"/run/alerts",
|
|
3807
|
+
"POST",
|
|
3808
|
+
path_params,
|
|
3809
|
+
query_params,
|
|
3810
|
+
header_params,
|
|
3811
|
+
body=body_params,
|
|
3812
|
+
post_params=form_params,
|
|
3813
|
+
files=local_var_files,
|
|
3814
|
+
response_type="SuccessData", # noqa: E501
|
|
3815
|
+
auth_settings=auth_settings,
|
|
3816
|
+
async_req=params.get("async_req"),
|
|
3817
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3818
|
+
_preload_content=params.get("_preload_content", True),
|
|
3819
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3820
|
+
collection_formats=collection_formats,
|
|
3821
|
+
)
|
|
3822
|
+
|
|
3823
|
+
def update_alert_status(self, alert_modify_status_value, **kwargs): # noqa: E501
|
|
3824
|
+
"""Update alert status. # noqa: E501
|
|
3825
|
+
|
|
3826
|
+
Update alert status. # noqa: E501
|
|
3827
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3828
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3829
|
+
>>> thread = api.update_alert_status(alert_modify_status_value, async_req=True)
|
|
3830
|
+
>>> result = thread.get()
|
|
3831
|
+
|
|
3832
|
+
:param async_req bool
|
|
3833
|
+
:param AlertStatusParam alert_modify_status_value: File that contains the alert status propery that want to be update. (required)
|
|
3834
|
+
:return: SuccessData
|
|
3835
|
+
If the method is called asynchronously,
|
|
3836
|
+
returns the request thread.
|
|
3837
|
+
"""
|
|
3838
|
+
kwargs["_return_http_data_only"] = True
|
|
3839
|
+
if kwargs.get("async_req"):
|
|
3840
|
+
return self.update_alert_status_with_http_info(
|
|
3841
|
+
alert_modify_status_value, **kwargs
|
|
3842
|
+
) # noqa: E501
|
|
3843
|
+
else:
|
|
3844
|
+
(data) = self.update_alert_status_with_http_info(
|
|
3845
|
+
alert_modify_status_value, **kwargs
|
|
3846
|
+
) # noqa: E501
|
|
3847
|
+
return data
|
|
3848
|
+
|
|
3849
|
+
def update_alert_status_with_http_info(
|
|
3850
|
+
self, alert_modify_status_value, **kwargs
|
|
3851
|
+
): # noqa: E501
|
|
3852
|
+
"""Update alert status. # noqa: E501
|
|
3853
|
+
|
|
3854
|
+
Update alert status. # noqa: E501
|
|
3855
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3856
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3857
|
+
>>> thread = api.update_alert_status_with_http_info(alert_modify_status_value, async_req=True)
|
|
3858
|
+
>>> result = thread.get()
|
|
3859
|
+
|
|
3860
|
+
:param async_req bool
|
|
3861
|
+
:param AlertStatusParam alert_modify_status_value: File that contains the alert status propery that want to be update. (required)
|
|
3862
|
+
:return: SuccessData
|
|
3863
|
+
If the method is called asynchronously,
|
|
3864
|
+
returns the request thread.
|
|
3865
|
+
"""
|
|
3866
|
+
|
|
3867
|
+
all_params = ["alert_modify_status_value"] # noqa: E501
|
|
3868
|
+
all_params.append("async_req")
|
|
3869
|
+
all_params.append("_return_http_data_only")
|
|
3870
|
+
all_params.append("_preload_content")
|
|
3871
|
+
all_params.append("_request_timeout")
|
|
3872
|
+
|
|
3873
|
+
params = locals()
|
|
3874
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3875
|
+
if key not in all_params:
|
|
3876
|
+
raise TypeError(
|
|
3877
|
+
"Got an unexpected keyword argument '%s'"
|
|
3878
|
+
" to method update_alert_status" % key
|
|
3879
|
+
)
|
|
3880
|
+
params[key] = val
|
|
3881
|
+
del params["kwargs"]
|
|
3882
|
+
# verify the required parameter 'alert_modify_status_value' is set
|
|
3883
|
+
if self.api_client.client_side_validation and (
|
|
3884
|
+
"alert_modify_status_value" not in params
|
|
3885
|
+
or params["alert_modify_status_value"] is None
|
|
3886
|
+
): # noqa: E501
|
|
3887
|
+
raise ValueError(
|
|
3888
|
+
"Missing the required parameter `alert_modify_status_value` when calling `update_alert_status`"
|
|
3889
|
+
) # noqa: E501
|
|
3890
|
+
|
|
3891
|
+
collection_formats = {}
|
|
3892
|
+
|
|
3893
|
+
path_params = {}
|
|
3894
|
+
|
|
3895
|
+
query_params = []
|
|
3896
|
+
|
|
3897
|
+
header_params = {}
|
|
3898
|
+
|
|
3899
|
+
form_params = []
|
|
3900
|
+
local_var_files = {}
|
|
3901
|
+
|
|
3902
|
+
body_params = None
|
|
3903
|
+
if "alert_modify_status_value" in params:
|
|
3904
|
+
body_params = params["alert_modify_status_value"]
|
|
3905
|
+
# HTTP header `Accept`
|
|
3906
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
3907
|
+
["application/json"]
|
|
3908
|
+
) # noqa: E501
|
|
3909
|
+
|
|
3910
|
+
# Authentication setting
|
|
3911
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
3912
|
+
|
|
3913
|
+
return self.api_client.call_api(
|
|
3914
|
+
"/run/alerts/status",
|
|
3915
|
+
"POST",
|
|
3916
|
+
path_params,
|
|
3917
|
+
query_params,
|
|
3918
|
+
header_params,
|
|
3919
|
+
body=body_params,
|
|
3920
|
+
post_params=form_params,
|
|
3921
|
+
files=local_var_files,
|
|
3922
|
+
response_type="SuccessData", # noqa: E501
|
|
3923
|
+
auth_settings=auth_settings,
|
|
3924
|
+
async_req=params.get("async_req"),
|
|
3925
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
3926
|
+
_preload_content=params.get("_preload_content", True),
|
|
3927
|
+
_request_timeout=params.get("_request_timeout"),
|
|
3928
|
+
collection_formats=collection_formats,
|
|
3929
|
+
)
|
|
3930
|
+
|
|
3931
|
+
def update_resource(self, server, name, max, **kwargs): # noqa: E501
|
|
3932
|
+
"""Update a pool resource. # noqa: E501
|
|
3933
|
+
|
|
3934
|
+
Update a pool resource. # noqa: E501
|
|
3935
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3936
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3937
|
+
>>> thread = api.update_resource(server, name, max, async_req=True)
|
|
3938
|
+
>>> result = thread.get()
|
|
3939
|
+
|
|
3940
|
+
:param async_req bool
|
|
3941
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
3942
|
+
:param str name: Resource name (required)
|
|
3943
|
+
:param ResourceMax max: The defined resource name. (required)
|
|
3944
|
+
:return: SuccessData
|
|
3945
|
+
If the method is called asynchronously,
|
|
3946
|
+
returns the request thread.
|
|
3947
|
+
"""
|
|
3948
|
+
kwargs["_return_http_data_only"] = True
|
|
3949
|
+
if kwargs.get("async_req"):
|
|
3950
|
+
return self.update_resource_with_http_info(
|
|
3951
|
+
server, name, max, **kwargs
|
|
3952
|
+
) # noqa: E501
|
|
3953
|
+
else:
|
|
3954
|
+
(data) = self.update_resource_with_http_info(
|
|
3955
|
+
server, name, max, **kwargs
|
|
3956
|
+
) # noqa: E501
|
|
3957
|
+
return data
|
|
3958
|
+
|
|
3959
|
+
def update_resource_with_http_info(self, server, name, max, **kwargs): # noqa: E501
|
|
3960
|
+
"""Update a pool resource. # noqa: E501
|
|
3961
|
+
|
|
3962
|
+
Update a pool resource. # noqa: E501
|
|
3963
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3964
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3965
|
+
>>> thread = api.update_resource_with_http_info(server, name, max, async_req=True)
|
|
3966
|
+
>>> result = thread.get()
|
|
3967
|
+
|
|
3968
|
+
:param async_req bool
|
|
3969
|
+
:param str server: The Control-M Server hosting the resource. (required)
|
|
3970
|
+
:param str name: Resource name (required)
|
|
3971
|
+
:param ResourceMax max: The defined resource name. (required)
|
|
3972
|
+
:return: SuccessData
|
|
3973
|
+
If the method is called asynchronously,
|
|
3974
|
+
returns the request thread.
|
|
3975
|
+
"""
|
|
3976
|
+
|
|
3977
|
+
all_params = ["server", "name", "max"] # noqa: E501
|
|
3978
|
+
all_params.append("async_req")
|
|
3979
|
+
all_params.append("_return_http_data_only")
|
|
3980
|
+
all_params.append("_preload_content")
|
|
3981
|
+
all_params.append("_request_timeout")
|
|
3982
|
+
|
|
3983
|
+
params = locals()
|
|
3984
|
+
for key, val in six.iteritems(params["kwargs"]):
|
|
3985
|
+
if key not in all_params:
|
|
3986
|
+
raise TypeError(
|
|
3987
|
+
"Got an unexpected keyword argument '%s'"
|
|
3988
|
+
" to method update_resource" % key
|
|
3989
|
+
)
|
|
3990
|
+
params[key] = val
|
|
3991
|
+
del params["kwargs"]
|
|
3992
|
+
# verify the required parameter 'server' is set
|
|
3993
|
+
if self.api_client.client_side_validation and (
|
|
3994
|
+
"server" not in params or params["server"] is None
|
|
3995
|
+
): # noqa: E501
|
|
3996
|
+
raise ValueError(
|
|
3997
|
+
"Missing the required parameter `server` when calling `update_resource`"
|
|
3998
|
+
) # noqa: E501
|
|
3999
|
+
# verify the required parameter 'name' is set
|
|
4000
|
+
if self.api_client.client_side_validation and (
|
|
4001
|
+
"name" not in params or params["name"] is None
|
|
4002
|
+
): # noqa: E501
|
|
4003
|
+
raise ValueError(
|
|
4004
|
+
"Missing the required parameter `name` when calling `update_resource`"
|
|
4005
|
+
) # noqa: E501
|
|
4006
|
+
# verify the required parameter 'max' is set
|
|
4007
|
+
if self.api_client.client_side_validation and (
|
|
4008
|
+
"max" not in params or params["max"] is None
|
|
4009
|
+
): # noqa: E501
|
|
4010
|
+
raise ValueError(
|
|
4011
|
+
"Missing the required parameter `max` when calling `update_resource`"
|
|
4012
|
+
) # noqa: E501
|
|
4013
|
+
|
|
4014
|
+
collection_formats = {}
|
|
4015
|
+
|
|
4016
|
+
path_params = {}
|
|
4017
|
+
if "server" in params:
|
|
4018
|
+
path_params["server"] = params["server"] # noqa: E501
|
|
4019
|
+
if "name" in params:
|
|
4020
|
+
path_params["name"] = params["name"] # noqa: E501
|
|
4021
|
+
|
|
4022
|
+
query_params = []
|
|
4023
|
+
|
|
4024
|
+
header_params = {}
|
|
4025
|
+
|
|
4026
|
+
form_params = []
|
|
4027
|
+
local_var_files = {}
|
|
4028
|
+
|
|
4029
|
+
body_params = None
|
|
4030
|
+
if "max" in params:
|
|
4031
|
+
body_params = params["max"]
|
|
4032
|
+
# HTTP header `Accept`
|
|
4033
|
+
header_params["Accept"] = self.api_client.select_header_accept(
|
|
4034
|
+
["application/json"]
|
|
4035
|
+
) # noqa: E501
|
|
4036
|
+
|
|
4037
|
+
# Authentication setting
|
|
4038
|
+
auth_settings = ["Bearer"] # noqa: E501
|
|
4039
|
+
|
|
4040
|
+
return self.api_client.call_api(
|
|
4041
|
+
"/run/resource/{server}/{name}",
|
|
4042
|
+
"POST",
|
|
4043
|
+
path_params,
|
|
4044
|
+
query_params,
|
|
4045
|
+
header_params,
|
|
4046
|
+
body=body_params,
|
|
4047
|
+
post_params=form_params,
|
|
4048
|
+
files=local_var_files,
|
|
4049
|
+
response_type="SuccessData", # noqa: E501
|
|
4050
|
+
auth_settings=auth_settings,
|
|
4051
|
+
async_req=params.get("async_req"),
|
|
4052
|
+
_return_http_data_only=params.get("_return_http_data_only"),
|
|
4053
|
+
_preload_content=params.get("_preload_content", True),
|
|
4054
|
+
_request_timeout=params.get("_request_timeout"),
|
|
4055
|
+
collection_formats=collection_formats,
|
|
4056
|
+
)
|