huaweicloudsdkosm 3.1.160__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.

Potentially problematic release.


This version of huaweicloudsdkosm might be problematic. Click here for more details.

Files changed (311) hide show
  1. huaweicloudsdkosm/__init__.py +0 -0
  2. huaweicloudsdkosm/v2/__init__.py +307 -0
  3. huaweicloudsdkosm/v2/model/__init__.py +304 -0
  4. huaweicloudsdkosm/v2/model/accessory_json_format_req.py +199 -0
  5. huaweicloudsdkosm/v2/model/accessory_limit_vo.py +173 -0
  6. huaweicloudsdkosm/v2/model/accessory_url.py +173 -0
  7. huaweicloudsdkosm/v2/model/agency_v2.py +289 -0
  8. huaweicloudsdkosm/v2/model/agree_tenant_authorization_v2_req.py +231 -0
  9. huaweicloudsdkosm/v2/model/agreement_vo.py +260 -0
  10. huaweicloudsdkosm/v2/model/answer.py +227 -0
  11. huaweicloudsdkosm/v2/model/answer_detail.py +194 -0
  12. huaweicloudsdkosm/v2/model/answer_info.py +231 -0
  13. huaweicloudsdkosm/v2/model/answer_qa_pair.py +318 -0
  14. huaweicloudsdkosm/v2/model/area_code_simple_info_v2.py +173 -0
  15. huaweicloudsdkosm/v2/model/article.py +347 -0
  16. huaweicloudsdkosm/v2/model/ask_question_req.py +316 -0
  17. huaweicloudsdkosm/v2/model/case_label_info.py +173 -0
  18. huaweicloudsdkosm/v2/model/case_query_label.py +173 -0
  19. huaweicloudsdkosm/v2/model/case_realtion_info.py +173 -0
  20. huaweicloudsdkosm/v2/model/cbs_flow_entry.py +144 -0
  21. huaweicloudsdkosm/v2/model/check_hosts_request.py +226 -0
  22. huaweicloudsdkosm/v2/model/check_hosts_response.py +145 -0
  23. huaweicloudsdkosm/v2/model/check_need_verify_request.py +258 -0
  24. huaweicloudsdkosm/v2/model/check_need_verify_response.py +145 -0
  25. huaweicloudsdkosm/v2/model/check_verify_codes_request.py +198 -0
  26. huaweicloudsdkosm/v2/model/check_verify_codes_response.py +145 -0
  27. huaweicloudsdkosm/v2/model/common_param_v2.py +202 -0
  28. huaweicloudsdkosm/v2/model/confirm_authorizations_request.py +226 -0
  29. huaweicloudsdkosm/v2/model/confirm_authorizations_response.py +145 -0
  30. huaweicloudsdkosm/v2/model/contact_v2.py +202 -0
  31. huaweicloudsdkosm/v2/model/contact_way_info_v2.py +343 -0
  32. huaweicloudsdkosm/v2/model/create_and_delete_privilege_req.py +143 -0
  33. huaweicloudsdkosm/v2/model/create_ask_question_request.py +197 -0
  34. huaweicloudsdkosm/v2/model/create_ask_question_response.py +232 -0
  35. huaweicloudsdkosm/v2/model/create_case_extends_param_request.py +226 -0
  36. huaweicloudsdkosm/v2/model/create_case_extends_param_response.py +145 -0
  37. huaweicloudsdkosm/v2/model/create_case_labels_request.py +229 -0
  38. huaweicloudsdkosm/v2/model/create_case_labels_response.py +145 -0
  39. huaweicloudsdkosm/v2/model/create_cases_request.py +256 -0
  40. huaweicloudsdkosm/v2/model/create_cases_response.py +116 -0
  41. huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py +111 -0
  42. huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py +145 -0
  43. huaweicloudsdkosm/v2/model/create_diagnose_job_request.py +111 -0
  44. huaweicloudsdkosm/v2/model/create_diagnose_job_response.py +174 -0
  45. huaweicloudsdkosm/v2/model/create_evaluate_request.py +253 -0
  46. huaweicloudsdkosm/v2/model/create_evaluate_response.py +174 -0
  47. huaweicloudsdkosm/v2/model/create_feedback_req.py +171 -0
  48. huaweicloudsdkosm/v2/model/create_feedback_request.py +111 -0
  49. huaweicloudsdkosm/v2/model/create_feedback_response.py +145 -0
  50. huaweicloudsdkosm/v2/model/create_feedback_v2_req.py +247 -0
  51. huaweicloudsdkosm/v2/model/create_labels_req.py +142 -0
  52. huaweicloudsdkosm/v2/model/create_labels_request.py +198 -0
  53. huaweicloudsdkosm/v2/model/create_labels_response.py +145 -0
  54. huaweicloudsdkosm/v2/model/create_message_do_v2.py +143 -0
  55. huaweicloudsdkosm/v2/model/create_message_v2_req.py +139 -0
  56. huaweicloudsdkosm/v2/model/create_messages_request.py +226 -0
  57. huaweicloudsdkosm/v2/model/create_messages_response.py +145 -0
  58. huaweicloudsdkosm/v2/model/create_order_incident_v2_req.py +547 -0
  59. huaweicloudsdkosm/v2/model/create_privileges_request.py +198 -0
  60. huaweicloudsdkosm/v2/model/create_privileges_response.py +145 -0
  61. huaweicloudsdkosm/v2/model/create_qa_ask_request.py +197 -0
  62. huaweicloudsdkosm/v2/model/create_qa_ask_response.py +282 -0
  63. huaweicloudsdkosm/v2/model/create_qa_feedbacks_request.py +226 -0
  64. huaweicloudsdkosm/v2/model/create_qa_feedbacks_response.py +174 -0
  65. huaweicloudsdkosm/v2/model/create_question_in_session_request.py +225 -0
  66. huaweicloudsdkosm/v2/model/create_question_in_session_response.py +232 -0
  67. huaweicloudsdkosm/v2/model/create_relations_req.py +143 -0
  68. huaweicloudsdkosm/v2/model/create_relations_request.py +226 -0
  69. huaweicloudsdkosm/v2/model/create_relations_response.py +145 -0
  70. huaweicloudsdkosm/v2/model/create_score_v2_req.py +171 -0
  71. huaweicloudsdkosm/v2/model/create_scores_request.py +226 -0
  72. huaweicloudsdkosm/v2/model/create_scores_response.py +145 -0
  73. huaweicloudsdkosm/v2/model/create_session_request.py +172 -0
  74. huaweicloudsdkosm/v2/model/create_session_response.py +174 -0
  75. huaweicloudsdkosm/v2/model/data_center_v2_do.py +202 -0
  76. huaweicloudsdkosm/v2/model/delete_accessories_request.py +201 -0
  77. huaweicloudsdkosm/v2/model/delete_accessories_response.py +145 -0
  78. huaweicloudsdkosm/v2/model/delete_case_labels_request.py +229 -0
  79. huaweicloudsdkosm/v2/model/delete_case_labels_response.py +145 -0
  80. huaweicloudsdkosm/v2/model/delete_labels_request.py +201 -0
  81. huaweicloudsdkosm/v2/model/delete_labels_response.py +145 -0
  82. huaweicloudsdkosm/v2/model/delete_relation_request.py +226 -0
  83. huaweicloudsdkosm/v2/model/delete_relation_response.py +145 -0
  84. huaweicloudsdkosm/v2/model/delete_relations_req.py +143 -0
  85. huaweicloudsdkosm/v2/model/diagnose_record_vo.py +347 -0
  86. huaweicloudsdkosm/v2/model/diagnose_resource_vo.py +405 -0
  87. huaweicloudsdkosm/v2/model/download_accessories_request.py +230 -0
  88. huaweicloudsdkosm/v2/model/download_accessories_response.py +85 -0
  89. huaweicloudsdkosm/v2/model/download_cases_request.py +548 -0
  90. huaweicloudsdkosm/v2/model/download_cases_response.py +85 -0
  91. huaweicloudsdkosm/v2/model/download_images_request.py +230 -0
  92. huaweicloudsdkosm/v2/model/download_images_response.py +85 -0
  93. huaweicloudsdkosm/v2/model/evaluate_request_req.py +115 -0
  94. huaweicloudsdkosm/v2/model/extend_question.py +144 -0
  95. huaweicloudsdkosm/v2/model/extends_param_v2.py +492 -0
  96. huaweicloudsdkosm/v2/model/feedback_option.py +144 -0
  97. huaweicloudsdkosm/v2/model/file_operate_log.py +318 -0
  98. huaweicloudsdkosm/v2/model/im_status_v2.py +144 -0
  99. huaweicloudsdkosm/v2/model/im_unread_v2.py +173 -0
  100. huaweicloudsdkosm/v2/model/incident_detail_ext_info_v2.py +289 -0
  101. huaweicloudsdkosm/v2/model/incident_detail_info_v2.py +593 -0
  102. huaweicloudsdkosm/v2/model/incident_info.py +463 -0
  103. huaweicloudsdkosm/v2/model/incident_info_v2.py +542 -0
  104. huaweicloudsdkosm/v2/model/incident_message_v2.py +318 -0
  105. huaweicloudsdkosm/v2/model/incident_operate_log_v2.py +347 -0
  106. huaweicloudsdkosm/v2/model/incident_order_auth_detail_info_v2.py +289 -0
  107. huaweicloudsdkosm/v2/model/incident_order_auth_v2.py +579 -0
  108. huaweicloudsdkosm/v2/model/incident_order_cc_email_info_v2.py +173 -0
  109. huaweicloudsdkosm/v2/model/incident_product_category_v2.py +231 -0
  110. huaweicloudsdkosm/v2/model/incident_satisfaction_v2_do.py +287 -0
  111. huaweicloudsdkosm/v2/model/incident_status_count.py +144 -0
  112. huaweicloudsdkosm/v2/model/incident_sub_type_v2_do.py +173 -0
  113. huaweicloudsdkosm/v2/model/incident_temp_v2.py +173 -0
  114. huaweicloudsdkosm/v2/model/intellectual_property_v2.py +202 -0
  115. huaweicloudsdkosm/v2/model/item_result_detail_vo.py +318 -0
  116. huaweicloudsdkosm/v2/model/item_result_vo.py +289 -0
  117. huaweicloudsdkosm/v2/model/label_info.py +173 -0
  118. huaweicloudsdkosm/v2/model/lang_result.py +144 -0
  119. huaweicloudsdkosm/v2/model/list_accessory_access_urls_request.py +230 -0
  120. huaweicloudsdkosm/v2/model/list_accessory_access_urls_response.py +116 -0
  121. huaweicloudsdkosm/v2/model/list_agencies_request.py +173 -0
  122. huaweicloudsdkosm/v2/model/list_agencies_response.py +145 -0
  123. huaweicloudsdkosm/v2/model/list_area_codes_request.py +173 -0
  124. huaweicloudsdkosm/v2/model/list_area_codes_response.py +116 -0
  125. huaweicloudsdkosm/v2/model/list_articles_request.py +226 -0
  126. huaweicloudsdkosm/v2/model/list_articles_response.py +174 -0
  127. huaweicloudsdkosm/v2/model/list_authorizations_request.py +376 -0
  128. huaweicloudsdkosm/v2/model/list_authorizations_response.py +145 -0
  129. huaweicloudsdkosm/v2/model/list_case_categories_request.py +173 -0
  130. huaweicloudsdkosm/v2/model/list_case_categories_response.py +145 -0
  131. huaweicloudsdkosm/v2/model/list_case_cc_emails_request.py +173 -0
  132. huaweicloudsdkosm/v2/model/list_case_cc_emails_response.py +141 -0
  133. huaweicloudsdkosm/v2/model/list_case_counts_request.py +202 -0
  134. huaweicloudsdkosm/v2/model/list_case_counts_response.py +116 -0
  135. huaweicloudsdkosm/v2/model/list_case_labels_request.py +201 -0
  136. huaweicloudsdkosm/v2/model/list_case_labels_response.py +116 -0
  137. huaweicloudsdkosm/v2/model/list_case_limits_request.py +173 -0
  138. huaweicloudsdkosm/v2/model/list_case_limits_response.py +112 -0
  139. huaweicloudsdkosm/v2/model/list_case_operate_logs_request.py +288 -0
  140. huaweicloudsdkosm/v2/model/list_case_operate_logs_response.py +145 -0
  141. huaweicloudsdkosm/v2/model/list_case_quotas_request.py +230 -0
  142. huaweicloudsdkosm/v2/model/list_case_quotas_response.py +145 -0
  143. huaweicloudsdkosm/v2/model/list_case_templates_request.py +201 -0
  144. huaweicloudsdkosm/v2/model/list_case_templates_response.py +145 -0
  145. huaweicloudsdkosm/v2/model/list_cases_request.py +550 -0
  146. huaweicloudsdkosm/v2/model/list_cases_response.py +145 -0
  147. huaweicloudsdkosm/v2/model/list_customers_regions_request.py +173 -0
  148. huaweicloudsdkosm/v2/model/list_customers_regions_response.py +145 -0
  149. huaweicloudsdkosm/v2/model/list_diagnose_items_request.py +111 -0
  150. huaweicloudsdkosm/v2/model/list_diagnose_items_response.py +174 -0
  151. huaweicloudsdkosm/v2/model/list_diagnose_job_request.py +115 -0
  152. huaweicloudsdkosm/v2/model/list_diagnose_job_response.py +290 -0
  153. huaweicloudsdkosm/v2/model/list_diagnose_records_request.py +173 -0
  154. huaweicloudsdkosm/v2/model/list_diagnose_records_response.py +203 -0
  155. huaweicloudsdkosm/v2/model/list_diagnose_resources_request.py +111 -0
  156. huaweicloudsdkosm/v2/model/list_diagnose_resources_response.py +145 -0
  157. huaweicloudsdkosm/v2/model/list_extends_params_request.py +259 -0
  158. huaweicloudsdkosm/v2/model/list_extends_params_response.py +145 -0
  159. huaweicloudsdkosm/v2/model/list_feedback_option_request.py +230 -0
  160. huaweicloudsdkosm/v2/model/list_feedback_option_response.py +174 -0
  161. huaweicloudsdkosm/v2/model/list_has_verified_contacts_request.py +434 -0
  162. huaweicloudsdkosm/v2/model/list_has_verified_contacts_response.py +145 -0
  163. huaweicloudsdkosm/v2/model/list_history_operate_logs_request.py +373 -0
  164. huaweicloudsdkosm/v2/model/list_history_operate_logs_response.py +145 -0
  165. huaweicloudsdkosm/v2/model/list_history_sessions_request.py +316 -0
  166. huaweicloudsdkosm/v2/model/list_history_sessions_response.py +145 -0
  167. huaweicloudsdkosm/v2/model/list_labels_request.py +289 -0
  168. huaweicloudsdkosm/v2/model/list_labels_response.py +145 -0
  169. huaweicloudsdkosm/v2/model/list_messages_request.py +288 -0
  170. huaweicloudsdkosm/v2/model/list_messages_response.py +145 -0
  171. huaweicloudsdkosm/v2/model/list_more_instant_messages_request.py +314 -0
  172. huaweicloudsdkosm/v2/model/list_more_instant_messages_response.py +145 -0
  173. huaweicloudsdkosm/v2/model/list_new_instant_messages_request.py +259 -0
  174. huaweicloudsdkosm/v2/model/list_new_instant_messages_response.py +174 -0
  175. huaweicloudsdkosm/v2/model/list_notices_request.py +198 -0
  176. huaweicloudsdkosm/v2/model/list_notices_response.py +174 -0
  177. huaweicloudsdkosm/v2/model/list_order_incident_request.py +550 -0
  178. huaweicloudsdkosm/v2/model/list_order_incident_response.py +145 -0
  179. huaweicloudsdkosm/v2/model/list_privileges_request.py +201 -0
  180. huaweicloudsdkosm/v2/model/list_privileges_response.py +116 -0
  181. huaweicloudsdkosm/v2/model/list_problem_types_request.py +202 -0
  182. huaweicloudsdkosm/v2/model/list_problem_types_response.py +145 -0
  183. huaweicloudsdkosm/v2/model/list_product_categories_request.py +202 -0
  184. huaweicloudsdkosm/v2/model/list_product_categories_response.py +145 -0
  185. huaweicloudsdkosm/v2/model/list_recommend_words_request.py +260 -0
  186. huaweicloudsdkosm/v2/model/list_recommend_words_response.py +203 -0
  187. huaweicloudsdkosm/v2/model/list_regions_request.py +173 -0
  188. huaweicloudsdkosm/v2/model/list_regions_response.py +145 -0
  189. huaweicloudsdkosm/v2/model/list_relation_request.py +201 -0
  190. huaweicloudsdkosm/v2/model/list_relation_response.py +116 -0
  191. huaweicloudsdkosm/v2/model/list_satisfaction_dimensions_request.py +173 -0
  192. huaweicloudsdkosm/v2/model/list_satisfaction_dimensions_response.py +145 -0
  193. huaweicloudsdkosm/v2/model/list_severities_request.py +229 -0
  194. huaweicloudsdkosm/v2/model/list_severities_response.py +145 -0
  195. huaweicloudsdkosm/v2/model/list_sub_customers_request.py +231 -0
  196. huaweicloudsdkosm/v2/model/list_sub_customers_response.py +116 -0
  197. huaweicloudsdkosm/v2/model/list_tools_request.py +198 -0
  198. huaweicloudsdkosm/v2/model/list_tools_response.py +174 -0
  199. huaweicloudsdkosm/v2/model/list_transport_histories_request.py +373 -0
  200. huaweicloudsdkosm/v2/model/list_transport_histories_response.py +145 -0
  201. huaweicloudsdkosm/v2/model/list_unread_new_instant_messages_request.py +230 -0
  202. huaweicloudsdkosm/v2/model/list_unread_new_instant_messages_response.py +116 -0
  203. huaweicloudsdkosm/v2/model/notice.py +199 -0
  204. huaweicloudsdkosm/v2/model/operate_authorization_v2_req.py +144 -0
  205. huaweicloudsdkosm/v2/model/operate_history_session.py +202 -0
  206. huaweicloudsdkosm/v2/model/operate_log.py +144 -0
  207. huaweicloudsdkosm/v2/model/partners_service_info.py +231 -0
  208. huaweicloudsdkosm/v2/model/put_case_ext_param_req.py +173 -0
  209. huaweicloudsdkosm/v2/model/qa_ask_req.py +346 -0
  210. huaweicloudsdkosm/v2/model/qa_feedback_req.py +345 -0
  211. huaweicloudsdkosm/v2/model/qa_flow_hit_node_vo.py +202 -0
  212. huaweicloudsdkosm/v2/model/qa_flow_hit_result.py +198 -0
  213. huaweicloudsdkosm/v2/model/qa_graph_answer.py +202 -0
  214. huaweicloudsdkosm/v2/model/qa_pair.py +289 -0
  215. huaweicloudsdkosm/v2/model/qabot_answer.py +347 -0
  216. huaweicloudsdkosm/v2/model/query_associated_question_req.py +172 -0
  217. huaweicloudsdkosm/v2/model/query_diagnose_items_req.py +144 -0
  218. huaweicloudsdkosm/v2/model/query_message_info_v2.py +347 -0
  219. huaweicloudsdkosm/v2/model/query_tsc_diagnose_resources_req.py +144 -0
  220. huaweicloudsdkosm/v2/model/recommend_word.py +285 -0
  221. huaweicloudsdkosm/v2/model/region.py +144 -0
  222. huaweicloudsdkosm/v2/model/relation_theme.py +144 -0
  223. huaweicloudsdkosm/v2/model/relevance_qapair.py +173 -0
  224. huaweicloudsdkosm/v2/model/revoke_message_request.py +229 -0
  225. huaweicloudsdkosm/v2/model/revoke_message_response.py +145 -0
  226. huaweicloudsdkosm/v2/model/satisfaction_dimension_simple_info_v2.py +260 -0
  227. huaweicloudsdkosm/v2/model/search_articles_req.py +201 -0
  228. huaweicloudsdkosm/v2/model/search_notices_req.py +143 -0
  229. huaweicloudsdkosm/v2/model/search_qa_pairs_req.py +144 -0
  230. huaweicloudsdkosm/v2/model/search_tools_req.py +201 -0
  231. huaweicloudsdkosm/v2/model/send_verify_code_req.py +170 -0
  232. huaweicloudsdkosm/v2/model/send_verify_codes_request.py +198 -0
  233. huaweicloudsdkosm/v2/model/send_verify_codes_response.py +145 -0
  234. huaweicloudsdkosm/v2/model/session_ask_question_req.py +288 -0
  235. huaweicloudsdkosm/v2/model/severity_v2_do.py +173 -0
  236. huaweicloudsdkosm/v2/model/show_accessory_limits_request.py +173 -0
  237. huaweicloudsdkosm/v2/model/show_accessory_limits_response.py +112 -0
  238. huaweicloudsdkosm/v2/model/show_associated_questions_request.py +197 -0
  239. huaweicloudsdkosm/v2/model/show_associated_questions_response.py +174 -0
  240. huaweicloudsdkosm/v2/model/show_authorization_detail_request.py +230 -0
  241. huaweicloudsdkosm/v2/model/show_authorization_detail_response.py +609 -0
  242. huaweicloudsdkosm/v2/model/show_case_detail_request.py +230 -0
  243. huaweicloudsdkosm/v2/model/show_case_detail_response.py +112 -0
  244. huaweicloudsdkosm/v2/model/show_case_extends_param_request.py +230 -0
  245. huaweicloudsdkosm/v2/model/show_case_extends_param_response.py +145 -0
  246. huaweicloudsdkosm/v2/model/show_case_status_request.py +201 -0
  247. huaweicloudsdkosm/v2/model/show_case_status_response.py +116 -0
  248. huaweicloudsdkosm/v2/model/show_configuration_request.py +114 -0
  249. huaweicloudsdkosm/v2/model/show_configuration_response.py +203 -0
  250. huaweicloudsdkosm/v2/model/show_customer_privilege_policy_request.py +173 -0
  251. huaweicloudsdkosm/v2/model/show_customer_privilege_policy_response.py +116 -0
  252. huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py +200 -0
  253. huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py +174 -0
  254. huaweicloudsdkosm/v2/model/show_latest_published_agreement_request.py +202 -0
  255. huaweicloudsdkosm/v2/model/show_latest_published_agreement_response.py +112 -0
  256. huaweicloudsdkosm/v2/model/show_login_type_request.py +144 -0
  257. huaweicloudsdkosm/v2/model/show_login_type_response.py +116 -0
  258. huaweicloudsdkosm/v2/model/show_partners_cases_privilege_request.py +173 -0
  259. huaweicloudsdkosm/v2/model/show_partners_cases_privilege_response.py +116 -0
  260. huaweicloudsdkosm/v2/model/show_partners_service_info_request.py +231 -0
  261. huaweicloudsdkosm/v2/model/show_partners_service_info_response.py +112 -0
  262. huaweicloudsdkosm/v2/model/show_qa_pair_detail_request.py +200 -0
  263. huaweicloudsdkosm/v2/model/show_qa_pair_detail_response.py +170 -0
  264. huaweicloudsdkosm/v2/model/show_qa_pairs_request.py +225 -0
  265. huaweicloudsdkosm/v2/model/show_qa_pairs_response.py +174 -0
  266. huaweicloudsdkosm/v2/model/show_signed_latest_published_agreement_request.py +202 -0
  267. huaweicloudsdkosm/v2/model/show_signed_latest_published_agreement_response.py +116 -0
  268. huaweicloudsdkosm/v2/model/show_theme_request.py +259 -0
  269. huaweicloudsdkosm/v2/model/show_theme_response.py +232 -0
  270. huaweicloudsdkosm/v2/model/sign_agreement_req.py +115 -0
  271. huaweicloudsdkosm/v2/model/sign_published_agreement_request.py +226 -0
  272. huaweicloudsdkosm/v2/model/sign_published_agreement_response.py +116 -0
  273. huaweicloudsdkosm/v2/model/simple_accessory_v2.py +144 -0
  274. huaweicloudsdkosm/v2/model/simple_incident_business_type_v2.py +202 -0
  275. huaweicloudsdkosm/v2/model/simple_qa_pair.py +173 -0
  276. huaweicloudsdkosm/v2/model/sub_cutomer_info_v2.py +260 -0
  277. huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py +172 -0
  278. huaweicloudsdkosm/v2/model/tenant_agree_auth_detail_v2.py +201 -0
  279. huaweicloudsdkosm/v2/model/tenant_config_v2.py +115 -0
  280. huaweicloudsdkosm/v2/model/tool.py +287 -0
  281. huaweicloudsdkosm/v2/model/update_authorizations_request.py +255 -0
  282. huaweicloudsdkosm/v2/model/update_authorizations_response.py +145 -0
  283. huaweicloudsdkosm/v2/model/update_case_contact_info_req.py +260 -0
  284. huaweicloudsdkosm/v2/model/update_case_contact_info_request.py +226 -0
  285. huaweicloudsdkosm/v2/model/update_case_contact_info_response.py +145 -0
  286. huaweicloudsdkosm/v2/model/update_cases_request.py +254 -0
  287. huaweicloudsdkosm/v2/model/update_cases_response.py +145 -0
  288. huaweicloudsdkosm/v2/model/update_labels_req.py +142 -0
  289. huaweicloudsdkosm/v2/model/update_labels_request.py +226 -0
  290. huaweicloudsdkosm/v2/model/update_labels_response.py +145 -0
  291. huaweicloudsdkosm/v2/model/update_new_instant_messages_read_request.py +226 -0
  292. huaweicloudsdkosm/v2/model/update_new_instant_messages_read_response.py +145 -0
  293. huaweicloudsdkosm/v2/model/update_unread_new_instant_msg_v2_req.py +115 -0
  294. huaweicloudsdkosm/v2/model/upload_accessory_request.py +198 -0
  295. huaweicloudsdkosm/v2/model/upload_accessory_request_body.py +142 -0
  296. huaweicloudsdkosm/v2/model/upload_accessory_response.py +116 -0
  297. huaweicloudsdkosm/v2/model/upload_json_accessories_request.py +198 -0
  298. huaweicloudsdkosm/v2/model/upload_json_accessories_response.py +116 -0
  299. huaweicloudsdkosm/v2/model/user_instant_incident_msg_v2.py +144 -0
  300. huaweicloudsdkosm/v2/model/verify_host_v2_req.py +199 -0
  301. huaweicloudsdkosm/v2/model/verify_verify_code_v2_req.py +257 -0
  302. huaweicloudsdkosm/v2/model/work_order_operate_v2_req.py +202 -0
  303. huaweicloudsdkosm/v2/osm_async_client.py +7166 -0
  304. huaweicloudsdkosm/v2/osm_client.py +7163 -0
  305. huaweicloudsdkosm/v2/region/__init__.py +0 -0
  306. huaweicloudsdkosm/v2/region/osm_region.py +31 -0
  307. huaweicloudsdkosm-3.1.160.dist-info/LICENSE +13 -0
  308. huaweicloudsdkosm-3.1.160.dist-info/METADATA +26 -0
  309. huaweicloudsdkosm-3.1.160.dist-info/RECORD +311 -0
  310. huaweicloudsdkosm-3.1.160.dist-info/WHEEL +5 -0
  311. huaweicloudsdkosm-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IncidentStatusCount:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'status': 'int',
21
+ 'count': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'status': 'status',
26
+ 'count': 'count'
27
+ }
28
+
29
+ def __init__(self, status=None, count=None):
30
+ r"""IncidentStatusCount
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param status: 状态 0:待受理 1:处理中 2:待确认结果 3:已完成 4:已撤销 12:无效 17: 待反馈
35
+ :type status: int
36
+ :param count: 数量
37
+ :type count: int
38
+ """
39
+
40
+
41
+
42
+ self._status = None
43
+ self._count = None
44
+ self.discriminator = None
45
+
46
+ if status is not None:
47
+ self.status = status
48
+ if count is not None:
49
+ self.count = count
50
+
51
+ @property
52
+ def status(self):
53
+ r"""Gets the status of this IncidentStatusCount.
54
+
55
+ 状态 0:待受理 1:处理中 2:待确认结果 3:已完成 4:已撤销 12:无效 17: 待反馈
56
+
57
+ :return: The status of this IncidentStatusCount.
58
+ :rtype: int
59
+ """
60
+ return self._status
61
+
62
+ @status.setter
63
+ def status(self, status):
64
+ r"""Sets the status of this IncidentStatusCount.
65
+
66
+ 状态 0:待受理 1:处理中 2:待确认结果 3:已完成 4:已撤销 12:无效 17: 待反馈
67
+
68
+ :param status: The status of this IncidentStatusCount.
69
+ :type status: int
70
+ """
71
+ self._status = status
72
+
73
+ @property
74
+ def count(self):
75
+ r"""Gets the count of this IncidentStatusCount.
76
+
77
+ 数量
78
+
79
+ :return: The count of this IncidentStatusCount.
80
+ :rtype: int
81
+ """
82
+ return self._count
83
+
84
+ @count.setter
85
+ def count(self, count):
86
+ r"""Sets the count of this IncidentStatusCount.
87
+
88
+ 数量
89
+
90
+ :param count: The count of this IncidentStatusCount.
91
+ :type count: int
92
+ """
93
+ self._count = count
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, IncidentStatusCount):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IncidentSubTypeV2Do:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'incident_sub_type_id': 'str',
21
+ 'incident_sub_type_name': 'str',
22
+ 'incident_product_category_list': 'list[IncidentProductCategoryV2]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'incident_sub_type_id': 'incident_sub_type_id',
27
+ 'incident_sub_type_name': 'incident_sub_type_name',
28
+ 'incident_product_category_list': 'incident_product_category_list'
29
+ }
30
+
31
+ def __init__(self, incident_sub_type_id=None, incident_sub_type_name=None, incident_product_category_list=None):
32
+ r"""IncidentSubTypeV2Do
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param incident_sub_type_id: 工单子类型id
37
+ :type incident_sub_type_id: str
38
+ :param incident_sub_type_name: 工单子类型名称
39
+ :type incident_sub_type_name: str
40
+ :param incident_product_category_list: 产品类型列表
41
+ :type incident_product_category_list: list[:class:`huaweicloudsdkosm.v2.IncidentProductCategoryV2`]
42
+ """
43
+
44
+
45
+
46
+ self._incident_sub_type_id = None
47
+ self._incident_sub_type_name = None
48
+ self._incident_product_category_list = None
49
+ self.discriminator = None
50
+
51
+ if incident_sub_type_id is not None:
52
+ self.incident_sub_type_id = incident_sub_type_id
53
+ if incident_sub_type_name is not None:
54
+ self.incident_sub_type_name = incident_sub_type_name
55
+ if incident_product_category_list is not None:
56
+ self.incident_product_category_list = incident_product_category_list
57
+
58
+ @property
59
+ def incident_sub_type_id(self):
60
+ r"""Gets the incident_sub_type_id of this IncidentSubTypeV2Do.
61
+
62
+ 工单子类型id
63
+
64
+ :return: The incident_sub_type_id of this IncidentSubTypeV2Do.
65
+ :rtype: str
66
+ """
67
+ return self._incident_sub_type_id
68
+
69
+ @incident_sub_type_id.setter
70
+ def incident_sub_type_id(self, incident_sub_type_id):
71
+ r"""Sets the incident_sub_type_id of this IncidentSubTypeV2Do.
72
+
73
+ 工单子类型id
74
+
75
+ :param incident_sub_type_id: The incident_sub_type_id of this IncidentSubTypeV2Do.
76
+ :type incident_sub_type_id: str
77
+ """
78
+ self._incident_sub_type_id = incident_sub_type_id
79
+
80
+ @property
81
+ def incident_sub_type_name(self):
82
+ r"""Gets the incident_sub_type_name of this IncidentSubTypeV2Do.
83
+
84
+ 工单子类型名称
85
+
86
+ :return: The incident_sub_type_name of this IncidentSubTypeV2Do.
87
+ :rtype: str
88
+ """
89
+ return self._incident_sub_type_name
90
+
91
+ @incident_sub_type_name.setter
92
+ def incident_sub_type_name(self, incident_sub_type_name):
93
+ r"""Sets the incident_sub_type_name of this IncidentSubTypeV2Do.
94
+
95
+ 工单子类型名称
96
+
97
+ :param incident_sub_type_name: The incident_sub_type_name of this IncidentSubTypeV2Do.
98
+ :type incident_sub_type_name: str
99
+ """
100
+ self._incident_sub_type_name = incident_sub_type_name
101
+
102
+ @property
103
+ def incident_product_category_list(self):
104
+ r"""Gets the incident_product_category_list of this IncidentSubTypeV2Do.
105
+
106
+ 产品类型列表
107
+
108
+ :return: The incident_product_category_list of this IncidentSubTypeV2Do.
109
+ :rtype: list[:class:`huaweicloudsdkosm.v2.IncidentProductCategoryV2`]
110
+ """
111
+ return self._incident_product_category_list
112
+
113
+ @incident_product_category_list.setter
114
+ def incident_product_category_list(self, incident_product_category_list):
115
+ r"""Sets the incident_product_category_list of this IncidentSubTypeV2Do.
116
+
117
+ 产品类型列表
118
+
119
+ :param incident_product_category_list: The incident_product_category_list of this IncidentSubTypeV2Do.
120
+ :type incident_product_category_list: list[:class:`huaweicloudsdkosm.v2.IncidentProductCategoryV2`]
121
+ """
122
+ self._incident_product_category_list = incident_product_category_list
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, IncidentSubTypeV2Do):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IncidentTempV2:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'incident_template_id': 'str',
21
+ 'incident_template_name': 'str',
22
+ 'incident_template_content': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'incident_template_id': 'incident_template_id',
27
+ 'incident_template_name': 'incident_template_name',
28
+ 'incident_template_content': 'incident_template_content'
29
+ }
30
+
31
+ def __init__(self, incident_template_id=None, incident_template_name=None, incident_template_content=None):
32
+ r"""IncidentTempV2
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param incident_template_id: 模板id
37
+ :type incident_template_id: str
38
+ :param incident_template_name: 模板名称
39
+ :type incident_template_name: str
40
+ :param incident_template_content: 模板内容
41
+ :type incident_template_content: str
42
+ """
43
+
44
+
45
+
46
+ self._incident_template_id = None
47
+ self._incident_template_name = None
48
+ self._incident_template_content = None
49
+ self.discriminator = None
50
+
51
+ if incident_template_id is not None:
52
+ self.incident_template_id = incident_template_id
53
+ if incident_template_name is not None:
54
+ self.incident_template_name = incident_template_name
55
+ if incident_template_content is not None:
56
+ self.incident_template_content = incident_template_content
57
+
58
+ @property
59
+ def incident_template_id(self):
60
+ r"""Gets the incident_template_id of this IncidentTempV2.
61
+
62
+ 模板id
63
+
64
+ :return: The incident_template_id of this IncidentTempV2.
65
+ :rtype: str
66
+ """
67
+ return self._incident_template_id
68
+
69
+ @incident_template_id.setter
70
+ def incident_template_id(self, incident_template_id):
71
+ r"""Sets the incident_template_id of this IncidentTempV2.
72
+
73
+ 模板id
74
+
75
+ :param incident_template_id: The incident_template_id of this IncidentTempV2.
76
+ :type incident_template_id: str
77
+ """
78
+ self._incident_template_id = incident_template_id
79
+
80
+ @property
81
+ def incident_template_name(self):
82
+ r"""Gets the incident_template_name of this IncidentTempV2.
83
+
84
+ 模板名称
85
+
86
+ :return: The incident_template_name of this IncidentTempV2.
87
+ :rtype: str
88
+ """
89
+ return self._incident_template_name
90
+
91
+ @incident_template_name.setter
92
+ def incident_template_name(self, incident_template_name):
93
+ r"""Sets the incident_template_name of this IncidentTempV2.
94
+
95
+ 模板名称
96
+
97
+ :param incident_template_name: The incident_template_name of this IncidentTempV2.
98
+ :type incident_template_name: str
99
+ """
100
+ self._incident_template_name = incident_template_name
101
+
102
+ @property
103
+ def incident_template_content(self):
104
+ r"""Gets the incident_template_content of this IncidentTempV2.
105
+
106
+ 模板内容
107
+
108
+ :return: The incident_template_content of this IncidentTempV2.
109
+ :rtype: str
110
+ """
111
+ return self._incident_template_content
112
+
113
+ @incident_template_content.setter
114
+ def incident_template_content(self, incident_template_content):
115
+ r"""Sets the incident_template_content of this IncidentTempV2.
116
+
117
+ 模板内容
118
+
119
+ :param incident_template_content: The incident_template_content of this IncidentTempV2.
120
+ :type incident_template_content: str
121
+ """
122
+ self._incident_template_content = incident_template_content
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, IncidentTempV2):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IntellectualPropertyV2:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'ip_type': 'str',
21
+ 'ip_area': 'str',
22
+ 'ip_number': 'str',
23
+ 'ip_content': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'ip_type': 'ip_type',
28
+ 'ip_area': 'ip_area',
29
+ 'ip_number': 'ip_number',
30
+ 'ip_content': 'ip_content'
31
+ }
32
+
33
+ def __init__(self, ip_type=None, ip_area=None, ip_number=None, ip_content=None):
34
+ r"""IntellectualPropertyV2
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param ip_type: 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent
39
+ :type ip_type: str
40
+ :param ip_area: 知识产权注册国家/地区
41
+ :type ip_area: str
42
+ :param ip_number: 商标注册号/专利申请号
43
+ :type ip_number: str
44
+ :param ip_content: 知识产权情况简述
45
+ :type ip_content: str
46
+ """
47
+
48
+
49
+
50
+ self._ip_type = None
51
+ self._ip_area = None
52
+ self._ip_number = None
53
+ self._ip_content = None
54
+ self.discriminator = None
55
+
56
+ if ip_type is not None:
57
+ self.ip_type = ip_type
58
+ if ip_area is not None:
59
+ self.ip_area = ip_area
60
+ if ip_number is not None:
61
+ self.ip_number = ip_number
62
+ if ip_content is not None:
63
+ self.ip_content = ip_content
64
+
65
+ @property
66
+ def ip_type(self):
67
+ r"""Gets the ip_type of this IntellectualPropertyV2.
68
+
69
+ 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent
70
+
71
+ :return: The ip_type of this IntellectualPropertyV2.
72
+ :rtype: str
73
+ """
74
+ return self._ip_type
75
+
76
+ @ip_type.setter
77
+ def ip_type(self, ip_type):
78
+ r"""Sets the ip_type of this IntellectualPropertyV2.
79
+
80
+ 知识产权类型,分:著作权-copyright、商标权-trademark、专利权-patent
81
+
82
+ :param ip_type: The ip_type of this IntellectualPropertyV2.
83
+ :type ip_type: str
84
+ """
85
+ self._ip_type = ip_type
86
+
87
+ @property
88
+ def ip_area(self):
89
+ r"""Gets the ip_area of this IntellectualPropertyV2.
90
+
91
+ 知识产权注册国家/地区
92
+
93
+ :return: The ip_area of this IntellectualPropertyV2.
94
+ :rtype: str
95
+ """
96
+ return self._ip_area
97
+
98
+ @ip_area.setter
99
+ def ip_area(self, ip_area):
100
+ r"""Sets the ip_area of this IntellectualPropertyV2.
101
+
102
+ 知识产权注册国家/地区
103
+
104
+ :param ip_area: The ip_area of this IntellectualPropertyV2.
105
+ :type ip_area: str
106
+ """
107
+ self._ip_area = ip_area
108
+
109
+ @property
110
+ def ip_number(self):
111
+ r"""Gets the ip_number of this IntellectualPropertyV2.
112
+
113
+ 商标注册号/专利申请号
114
+
115
+ :return: The ip_number of this IntellectualPropertyV2.
116
+ :rtype: str
117
+ """
118
+ return self._ip_number
119
+
120
+ @ip_number.setter
121
+ def ip_number(self, ip_number):
122
+ r"""Sets the ip_number of this IntellectualPropertyV2.
123
+
124
+ 商标注册号/专利申请号
125
+
126
+ :param ip_number: The ip_number of this IntellectualPropertyV2.
127
+ :type ip_number: str
128
+ """
129
+ self._ip_number = ip_number
130
+
131
+ @property
132
+ def ip_content(self):
133
+ r"""Gets the ip_content of this IntellectualPropertyV2.
134
+
135
+ 知识产权情况简述
136
+
137
+ :return: The ip_content of this IntellectualPropertyV2.
138
+ :rtype: str
139
+ """
140
+ return self._ip_content
141
+
142
+ @ip_content.setter
143
+ def ip_content(self, ip_content):
144
+ r"""Sets the ip_content of this IntellectualPropertyV2.
145
+
146
+ 知识产权情况简述
147
+
148
+ :param ip_content: The ip_content of this IntellectualPropertyV2.
149
+ :type ip_content: str
150
+ """
151
+ self._ip_content = ip_content
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, IntellectualPropertyV2):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other