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