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,640 @@
1
+ # coding: utf-8
2
+ """
3
+ Control-M Services
4
+
5
+ Provides access to BMC Control-M Services # noqa: E501
6
+
7
+ OpenAPI spec version: 9.20.30
8
+ Contact: customer_support@bmc.com
9
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
+ """
11
+
12
+ from __future__ import absolute_import
13
+
14
+ import datetime
15
+ import json
16
+ import mimetypes
17
+ from multiprocessing.pool import ThreadPool
18
+ import os
19
+ import re
20
+ import tempfile
21
+
22
+ # python 2 and python 3 compatibility library
23
+ import six
24
+ from six.moves.urllib.parse import quote
25
+
26
+ from clients.ctm_saas_client.configuration import Configuration
27
+ import clients.ctm_saas_client.models
28
+ from clients.ctm_saas_client import rest
29
+ import clients
30
+
31
+
32
+ class ApiClient(object):
33
+ """Generic API client for Swagger client library builds.
34
+
35
+ Swagger generic API client. This client handles the client-
36
+ server communication, and is invariant across implementations. Specifics of
37
+ the methods and models for each application are generated from the Swagger
38
+ templates.
39
+
40
+ NOTE: This class is auto generated by the swagger code generator program.
41
+ Ref: https://github.com/swagger-api/swagger-codegen
42
+ Do not edit the class manually.
43
+
44
+ :param configuration: .Configuration object for this client
45
+ :param header_name: a header to pass when making calls to the API.
46
+ :param header_value: a header value to pass when making calls to
47
+ the API.
48
+ :param cookie: a cookie to include in the header when making calls
49
+ to the API
50
+ """
51
+
52
+ PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
53
+ NATIVE_TYPES_MAPPING = {
54
+ 'int': int,
55
+ 'long': int if six.PY3 else long, # noqa: F821
56
+ 'float': float,
57
+ 'str': str,
58
+ 'bool': bool,
59
+ 'date': datetime.date,
60
+ 'datetime': datetime.datetime,
61
+ 'object': object,
62
+ }
63
+
64
+ def __init__(self, configuration=None, header_name=None, header_value=None,
65
+ cookie=None):
66
+ if configuration is None:
67
+ configuration = Configuration()
68
+ self.configuration = configuration
69
+
70
+ # Use the pool property to lazily initialize the ThreadPool.
71
+ self._pool = None
72
+ self.rest_client = rest.RESTClientObject(configuration)
73
+ self.default_headers = {}
74
+ if header_name is not None:
75
+ self.default_headers[header_name] = header_value
76
+ self.cookie = cookie
77
+ # Set default User-Agent.
78
+ self.user_agent = 'Swagger-Codegen/1.0.0/python'
79
+ self.client_side_validation = configuration.client_side_validation
80
+
81
+ def __del__(self):
82
+ if self._pool is not None:
83
+ self._pool.close()
84
+ self._pool.join()
85
+
86
+ @property
87
+ def pool(self):
88
+ if self._pool is None:
89
+ self._pool = ThreadPool()
90
+ return self._pool
91
+
92
+ @property
93
+ def user_agent(self):
94
+ """User agent for this API client"""
95
+ return self.default_headers['User-Agent']
96
+
97
+ @user_agent.setter
98
+ def user_agent(self, value):
99
+ self.default_headers['User-Agent'] = value
100
+
101
+ def set_default_header(self, header_name, header_value):
102
+ self.default_headers[header_name] = header_value
103
+
104
+ def __call_api(
105
+ self, resource_path, method, path_params=None,
106
+ query_params=None, header_params=None, body=None, post_params=None,
107
+ files=None, response_type=None, auth_settings=None,
108
+ _return_http_data_only=None, collection_formats=None,
109
+ _preload_content=True, _request_timeout=None):
110
+
111
+ config = self.configuration
112
+
113
+ # header parameters
114
+ header_params = header_params or {}
115
+ header_params.update(self.default_headers)
116
+ if self.cookie:
117
+ header_params['Cookie'] = self.cookie
118
+ if header_params:
119
+ header_params = self.sanitize_for_serialization(header_params)
120
+ header_params = dict(self.parameters_to_tuples(header_params,
121
+ collection_formats))
122
+
123
+ # path parameters
124
+ if path_params:
125
+ path_params = self.sanitize_for_serialization(path_params)
126
+ path_params = self.parameters_to_tuples(path_params,
127
+ collection_formats)
128
+ for k, v in path_params:
129
+ # specified safe chars, encode everything
130
+ resource_path = resource_path.replace(
131
+ '{%s}' % k,
132
+ quote(str(v), safe=config.safe_chars_for_path_param)
133
+ )
134
+
135
+ # query parameters
136
+ if query_params:
137
+ query_params = self.sanitize_for_serialization(query_params)
138
+ query_params = self.parameters_to_tuples(query_params,
139
+ collection_formats)
140
+
141
+ # post parameters
142
+ if post_params or files:
143
+ post_params = self.prepare_post_parameters(post_params, files)
144
+ post_params = self.sanitize_for_serialization(post_params)
145
+ post_params = self.parameters_to_tuples(post_params,
146
+ collection_formats)
147
+
148
+ # auth setting
149
+ self.update_params_for_auth(header_params, query_params, auth_settings)
150
+
151
+ # body
152
+ if body:
153
+ body = self.sanitize_for_serialization(body)
154
+
155
+ # request url
156
+ url = self.configuration.host + resource_path
157
+
158
+ # perform request and return response
159
+ response_data = self.request(
160
+ method, url, query_params=query_params, headers=header_params,
161
+ post_params=post_params, body=body,
162
+ _preload_content=_preload_content,
163
+ _request_timeout=_request_timeout)
164
+
165
+ self.last_response = response_data
166
+
167
+ return_data = response_data
168
+ if _preload_content:
169
+ # deserialize response data
170
+ if response_type:
171
+ return_data = self.deserialize(response_data, response_type)
172
+ else:
173
+ return_data = None
174
+
175
+ if _return_http_data_only:
176
+ return (return_data)
177
+ else:
178
+ return (return_data, response_data.status,
179
+ response_data.getheaders())
180
+
181
+ def sanitize_for_serialization(self, obj):
182
+ """Builds a JSON POST object.
183
+
184
+ If obj is None, return None.
185
+ If obj is str, int, long, float, bool, return directly.
186
+ If obj is datetime.datetime, datetime.date
187
+ convert to string in iso8601 format.
188
+ If obj is list, sanitize each element in the list.
189
+ If obj is dict, return the dict.
190
+ If obj is swagger model, return the properties dict.
191
+
192
+ :param obj: The data to serialize.
193
+ :return: The serialized form of data.
194
+ """
195
+ if obj is None:
196
+ return None
197
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
198
+ return obj
199
+ elif isinstance(obj, list):
200
+ return [self.sanitize_for_serialization(sub_obj)
201
+ for sub_obj in obj]
202
+ elif isinstance(obj, tuple):
203
+ return tuple(self.sanitize_for_serialization(sub_obj)
204
+ for sub_obj in obj)
205
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
206
+ return obj.isoformat()
207
+
208
+ if isinstance(obj, dict):
209
+ obj_dict = obj
210
+ else:
211
+ # Convert model obj to dict except
212
+ # attributes `swagger_types`, `attribute_map`
213
+ # and attributes which value is not None.
214
+ # Convert attribute name to json key in
215
+ # model definition for request.
216
+ obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
217
+ for attr, _ in six.iteritems(obj.swagger_types)
218
+ if getattr(obj, attr) is not None}
219
+
220
+ return {key: self.sanitize_for_serialization(val)
221
+ for key, val in six.iteritems(obj_dict)}
222
+
223
+ def deserialize(self, response, response_type):
224
+ """Deserializes response into an object.
225
+
226
+ :param response: RESTResponse object to be deserialized.
227
+ :param response_type: class literal for
228
+ deserialized object, or string of class name.
229
+
230
+ :return: deserialized object.
231
+ """
232
+ # handle file downloading
233
+ # save response body into a tmp file and return the instance
234
+ if response_type == "file":
235
+ return self.__deserialize_file(response)
236
+
237
+ # fetch data from response object
238
+ try:
239
+ data = json.loads(response.data)
240
+ except ValueError:
241
+ data = response.data
242
+
243
+ return self.__deserialize(data, response_type)
244
+
245
+ def __deserialize(self, data, klass):
246
+ """Deserializes dict, list, str into an object.
247
+
248
+ :param data: dict, list or str.
249
+ :param klass: class literal, or string of class name.
250
+
251
+ :return: object.
252
+ """
253
+ if data is None:
254
+ return None
255
+
256
+ if type(klass) == str:
257
+ if klass.startswith('list['):
258
+ sub_kls = re.match(r'list\[(.*)\]', klass).group(1)
259
+ return [self.__deserialize(sub_data, sub_kls)
260
+ for sub_data in data]
261
+
262
+ if klass.startswith('dict('):
263
+ sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2)
264
+ return {k: self.__deserialize(v, sub_kls)
265
+ for k, v in six.iteritems(data)}
266
+
267
+ # convert str to class
268
+ if klass in self.NATIVE_TYPES_MAPPING:
269
+ klass = self.NATIVE_TYPES_MAPPING[klass]
270
+ else:
271
+ klass = getattr(clients.ctm_saas_client.models, klass)
272
+
273
+ if klass in self.PRIMITIVE_TYPES:
274
+ return self.__deserialize_primitive(data, klass)
275
+ elif klass == object:
276
+ return self.__deserialize_object(data)
277
+ elif klass == datetime.date:
278
+ return self.__deserialize_date(data)
279
+ elif klass == datetime.datetime:
280
+ return self.__deserialize_datatime(data)
281
+ else:
282
+ return self.__deserialize_model(data, klass)
283
+
284
+ def call_api(self, resource_path, method,
285
+ path_params=None, query_params=None, header_params=None,
286
+ body=None, post_params=None, files=None,
287
+ response_type=None, auth_settings=None, async_req=None,
288
+ _return_http_data_only=None, collection_formats=None,
289
+ _preload_content=True, _request_timeout=None):
290
+ """Makes the HTTP request (synchronous) and returns deserialized data.
291
+
292
+ To make an async request, set the async_req parameter.
293
+
294
+ :param resource_path: Path to method endpoint.
295
+ :param method: Method to call.
296
+ :param path_params: Path parameters in the url.
297
+ :param query_params: Query parameters in the url.
298
+ :param header_params: Header parameters to be
299
+ placed in the request header.
300
+ :param body: Request body.
301
+ :param post_params dict: Request post form parameters,
302
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
303
+ :param auth_settings list: Auth Settings names for the request.
304
+ :param response: Response data type.
305
+ :param files dict: key -> filename, value -> filepath,
306
+ for `multipart/form-data`.
307
+ :param async_req bool: execute request asynchronously
308
+ :param _return_http_data_only: response data without head status code
309
+ and headers
310
+ :param collection_formats: dict of collection formats for path, query,
311
+ header, and post parameters.
312
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
313
+ be returned without reading/decoding response
314
+ data. Default is True.
315
+ :param _request_timeout: timeout setting for this request. If one
316
+ number provided, it will be total request
317
+ timeout. It can also be a pair (tuple) of
318
+ (connection, read) timeouts.
319
+ :return:
320
+ If async_req parameter is True,
321
+ the request will be called asynchronously.
322
+ The method will return the request thread.
323
+ If parameter async_req is False or missing,
324
+ then the method will return the response directly.
325
+ """
326
+ if not async_req:
327
+ return self.__call_api(resource_path, method,
328
+ path_params, query_params, header_params,
329
+ body, post_params, files,
330
+ response_type, auth_settings,
331
+ _return_http_data_only, collection_formats,
332
+ _preload_content, _request_timeout)
333
+ else:
334
+ thread = self.pool.apply_async(self.__call_api, (resource_path,
335
+ method, path_params, query_params,
336
+ header_params, body,
337
+ post_params, files,
338
+ response_type, auth_settings,
339
+ _return_http_data_only,
340
+ collection_formats,
341
+ _preload_content, _request_timeout))
342
+ return thread
343
+
344
+ def request(self, method, url, query_params=None, headers=None,
345
+ post_params=None, body=None, _preload_content=True,
346
+ _request_timeout=None):
347
+ """Makes the HTTP request using RESTClient."""
348
+ if method == "GET":
349
+ return self.rest_client.GET(url,
350
+ query_params=query_params,
351
+ _preload_content=_preload_content,
352
+ _request_timeout=_request_timeout,
353
+ headers=headers)
354
+ elif method == "HEAD":
355
+ return self.rest_client.HEAD(url,
356
+ query_params=query_params,
357
+ _preload_content=_preload_content,
358
+ _request_timeout=_request_timeout,
359
+ headers=headers)
360
+ elif method == "OPTIONS":
361
+ return self.rest_client.OPTIONS(url,
362
+ query_params=query_params,
363
+ headers=headers,
364
+ post_params=post_params,
365
+ _preload_content=_preload_content,
366
+ _request_timeout=_request_timeout,
367
+ body=body)
368
+ elif method == "POST":
369
+ return self.rest_client.POST(url,
370
+ query_params=query_params,
371
+ headers=headers,
372
+ post_params=post_params,
373
+ _preload_content=_preload_content,
374
+ _request_timeout=_request_timeout,
375
+ body=body)
376
+ elif method == "PUT":
377
+ return self.rest_client.PUT(url,
378
+ query_params=query_params,
379
+ headers=headers,
380
+ post_params=post_params,
381
+ _preload_content=_preload_content,
382
+ _request_timeout=_request_timeout,
383
+ body=body)
384
+ elif method == "PATCH":
385
+ return self.rest_client.PATCH(url,
386
+ query_params=query_params,
387
+ headers=headers,
388
+ post_params=post_params,
389
+ _preload_content=_preload_content,
390
+ _request_timeout=_request_timeout,
391
+ body=body)
392
+ elif method == "DELETE":
393
+ return self.rest_client.DELETE(url,
394
+ query_params=query_params,
395
+ headers=headers,
396
+ _preload_content=_preload_content,
397
+ _request_timeout=_request_timeout,
398
+ body=body)
399
+ else:
400
+ raise ValueError(
401
+ "http method must be `GET`, `HEAD`, `OPTIONS`,"
402
+ " `POST`, `PATCH`, `PUT` or `DELETE`."
403
+ )
404
+
405
+ def parameters_to_tuples(self, params, collection_formats):
406
+ """Get parameters as list of tuples, formatting collections.
407
+
408
+ :param params: Parameters as dict or list of two-tuples
409
+ :param dict collection_formats: Parameter collection formats
410
+ :return: Parameters as list of tuples, collections formatted
411
+ """
412
+ new_params = []
413
+ if collection_formats is None:
414
+ collection_formats = {}
415
+ for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501
416
+ if k in collection_formats:
417
+ collection_format = collection_formats[k]
418
+ if collection_format == 'multi':
419
+ new_params.extend((k, value) for value in v)
420
+ else:
421
+ if collection_format == 'ssv':
422
+ delimiter = ' '
423
+ elif collection_format == 'tsv':
424
+ delimiter = '\t'
425
+ elif collection_format == 'pipes':
426
+ delimiter = '|'
427
+ else: # csv is the default
428
+ delimiter = ','
429
+ new_params.append(
430
+ (k, delimiter.join(str(value) for value in v)))
431
+ else:
432
+ new_params.append((k, v))
433
+ return new_params
434
+
435
+ def prepare_post_parameters(self, post_params=None, files=None):
436
+ """Builds form parameters.
437
+
438
+ :param post_params: Normal form parameters.
439
+ :param files: File parameters.
440
+ :return: Form parameters with files.
441
+ """
442
+ params = []
443
+
444
+ if post_params:
445
+ params = post_params
446
+
447
+ if files:
448
+ for k, v in six.iteritems(files):
449
+ if not v:
450
+ continue
451
+ file_names = v if type(v) is list else [v]
452
+ for n in file_names:
453
+ with open(n, 'rb') as f:
454
+ filename = os.path.basename(f.name)
455
+ filedata = f.read()
456
+ mimetype = (mimetypes.guess_type(filename)[0] or
457
+ 'application/octet-stream')
458
+ params.append(
459
+ tuple([k, tuple([filename, filedata, mimetype])]))
460
+
461
+ return params
462
+
463
+ def select_header_accept(self, accepts):
464
+ """Returns `Accept` based on an array of accepts provided.
465
+
466
+ :param accepts: List of headers.
467
+ :return: Accept (e.g. application/json).
468
+ """
469
+ if not accepts:
470
+ return
471
+
472
+ accepts = [x.lower() for x in accepts]
473
+
474
+ if 'application/json' in accepts:
475
+ return 'application/json'
476
+ else:
477
+ return ', '.join(accepts)
478
+
479
+ def select_header_content_type(self, content_types):
480
+ """Returns `Content-Type` based on an array of content_types provided.
481
+
482
+ :param content_types: List of content-types.
483
+ :return: Content-Type (e.g. application/json).
484
+ """
485
+ if not content_types:
486
+ return 'application/json'
487
+
488
+ content_types = [x.lower() for x in content_types]
489
+
490
+ if 'application/json' in content_types or '*/*' in content_types:
491
+ return 'application/json'
492
+ else:
493
+ return content_types[0]
494
+
495
+ def update_params_for_auth(self, headers, querys, auth_settings):
496
+ """Updates header and query params based on authentication setting.
497
+
498
+ :param headers: Header parameters dict to be updated.
499
+ :param querys: Query parameters tuple list to be updated.
500
+ :param auth_settings: Authentication setting identifiers list.
501
+ """
502
+ if not auth_settings:
503
+ return
504
+
505
+ for auth in auth_settings:
506
+ auth_setting = self.configuration.auth_settings().get(auth)
507
+ if auth_setting:
508
+ if not auth_setting['value']:
509
+ continue
510
+ elif auth_setting['in'] == 'header':
511
+ headers[auth_setting['key']] = auth_setting['value']
512
+ elif auth_setting['in'] == 'query':
513
+ querys.append((auth_setting['key'], auth_setting['value']))
514
+ else:
515
+ raise ValueError(
516
+ 'Authentication token must be in `query` or `header`'
517
+ )
518
+
519
+ def __deserialize_file(self, response):
520
+ """Deserializes body to file
521
+
522
+ Saves response body into a file in a temporary folder,
523
+ using the filename from the `Content-Disposition` header if provided.
524
+
525
+ :param response: RESTResponse.
526
+ :return: file path.
527
+ """
528
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
529
+ os.close(fd)
530
+ os.remove(path)
531
+
532
+ content_disposition = response.getheader("Content-Disposition")
533
+ if content_disposition:
534
+ filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
535
+ content_disposition).group(1)
536
+ path = os.path.join(os.path.dirname(path), filename)
537
+
538
+ with open(path, "w") as f:
539
+ f.write(response.data)
540
+
541
+ return path
542
+
543
+ def __deserialize_primitive(self, data, klass):
544
+ """Deserializes string to primitive type.
545
+
546
+ :param data: str.
547
+ :param klass: class literal.
548
+
549
+ :return: int, long, float, str, bool.
550
+ """
551
+ try:
552
+ return klass(data)
553
+ except UnicodeEncodeError:
554
+ return six.text_type(data)
555
+ except TypeError:
556
+ return data
557
+
558
+ def __deserialize_object(self, value):
559
+ """Return a original value.
560
+
561
+ :return: object.
562
+ """
563
+ return value
564
+
565
+ def __deserialize_date(self, string):
566
+ """Deserializes string to date.
567
+
568
+ :param string: str.
569
+ :return: date.
570
+ """
571
+ try:
572
+ from dateutil.parser import parse
573
+ return parse(string).date()
574
+ except ImportError:
575
+ return string
576
+ except ValueError:
577
+ raise rest.ApiException(
578
+ status=0,
579
+ reason="Failed to parse `{0}` as date object".format(string)
580
+ )
581
+
582
+ def __deserialize_datatime(self, string):
583
+ """Deserializes string to datetime.
584
+
585
+ The string should be in iso8601 datetime format.
586
+
587
+ :param string: str.
588
+ :return: datetime.
589
+ """
590
+ try:
591
+ from dateutil.parser import parse
592
+ return parse(string)
593
+ except ImportError:
594
+ return string
595
+ except ValueError:
596
+ raise rest.ApiException(
597
+ status=0,
598
+ reason=(
599
+ "Failed to parse `{0}` as datetime object"
600
+ .format(string)
601
+ )
602
+ )
603
+
604
+ def __hasattr(self, object, name):
605
+ return name in object.__class__.__dict__
606
+
607
+ def __deserialize_model(self, data, klass):
608
+ """Deserializes list or dict to model.
609
+
610
+ :param data: dict, list.
611
+ :param klass: class literal.
612
+ :return: model object.
613
+ """
614
+
615
+ if (not klass.swagger_types and
616
+ not self.__hasattr(klass, 'get_real_child_model')):
617
+ return data
618
+
619
+ kwargs = {}
620
+ if klass.swagger_types is not None:
621
+ for attr, attr_type in six.iteritems(klass.swagger_types):
622
+ if (data is not None and
623
+ klass.attribute_map[attr] in data and
624
+ isinstance(data, (list, dict))):
625
+ value = data[klass.attribute_map[attr]]
626
+ kwargs[attr] = self.__deserialize(value, attr_type)
627
+
628
+ instance = klass(**kwargs)
629
+
630
+ if (isinstance(instance, dict) and
631
+ klass.swagger_types is not None and
632
+ isinstance(data, dict)):
633
+ for key, value in data.items():
634
+ if key not in klass.swagger_types:
635
+ instance[key] = value
636
+ if self.__hasattr(instance, 'get_real_child_model'):
637
+ klass_name = instance.get_real_child_model(data)
638
+ if klass_name:
639
+ instance = self.__deserialize(data, klass_name)
640
+ return instance