huaweicloudsdkaom 3.0.43rc0__py3-none-any.whl → 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 huaweicloudsdkaom might be problematic. Click here for more details.

Files changed (320) hide show
  1. huaweicloudsdkaom/v1/__init__.py +58 -0
  2. huaweicloudsdkaom/v1/aom_async_client.py +1011 -0
  3. huaweicloudsdkaom/v1/aom_client.py +1008 -0
  4. huaweicloudsdkaom/v1/model/__init__.py +55 -0
  5. huaweicloudsdkaom/v1/model/approve_info.py +173 -0
  6. huaweicloudsdkaom/v1/model/create_fast_execute_script_request.py +111 -0
  7. huaweicloudsdkaom/v1/model/create_fast_execute_script_response.py +116 -0
  8. huaweicloudsdkaom/v1/model/create_workflow_request.py +111 -0
  9. huaweicloudsdkaom/v1/model/create_workflow_response.py +1243 -0
  10. huaweicloudsdkaom/v1/model/execute_workflow_request.py +114 -0
  11. huaweicloudsdkaom/v1/model/execute_workflow_response.py +116 -0
  12. huaweicloudsdkaom/v1/model/execution_result_list.py +260 -0
  13. huaweicloudsdkaom/v1/model/his_fast_script.py +283 -0
  14. huaweicloudsdkaom/v1/model/job.py +506 -0
  15. huaweicloudsdkaom/v1/model/list_all_job_by_name_request.py +111 -0
  16. huaweicloudsdkaom/v1/model/list_all_job_by_name_response.py +145 -0
  17. huaweicloudsdkaom/v1/model/list_all_script_by_name_request.py +111 -0
  18. huaweicloudsdkaom/v1/model/list_all_script_by_name_response.py +145 -0
  19. huaweicloudsdkaom/v1/model/list_all_version_by_version_id_request.py +111 -0
  20. huaweicloudsdkaom/v1/model/list_all_version_by_version_id_response.py +145 -0
  21. huaweicloudsdkaom/v1/model/list_template_by_job_id_request.py +139 -0
  22. huaweicloudsdkaom/v1/model/list_template_by_job_id_request_body.py +230 -0
  23. huaweicloudsdkaom/v1/model/list_template_by_job_id_response.py +145 -0
  24. huaweicloudsdkaom/v1/model/list_workflow_executions_request.py +143 -0
  25. huaweicloudsdkaom/v1/model/list_workflow_executions_response.py +112 -0
  26. huaweicloudsdkaom/v1/model/list_workflow_request.py +111 -0
  27. huaweicloudsdkaom/v1/model/list_workflow_response.py +145 -0
  28. huaweicloudsdkaom/v1/model/metadata.py +144 -0
  29. huaweicloudsdkaom/v1/model/node.py +314 -0
  30. huaweicloudsdkaom/v1/model/parameter.py +372 -0
  31. huaweicloudsdkaom/v1/model/rate_control.py +173 -0
  32. huaweicloudsdkaom/v1/model/reference_info.py +142 -0
  33. huaweicloudsdkaom/v1/model/script.py +482 -0
  34. huaweicloudsdkaom/v1/model/script_version.py +520 -0
  35. huaweicloudsdkaom/v1/model/search_jobs_request_body.py +258 -0
  36. huaweicloudsdkaom/v1/model/search_scripts_request_body.py +373 -0
  37. huaweicloudsdkaom/v1/model/search_template_by_id_request.py +142 -0
  38. huaweicloudsdkaom/v1/model/search_template_by_id_response.py +688 -0
  39. huaweicloudsdkaom/v1/model/search_workflow_execution_detail_request.py +142 -0
  40. huaweicloudsdkaom/v1/model/search_workflow_execution_detail_response.py +406 -0
  41. huaweicloudsdkaom/v1/model/start_pausing_workflow_executions_request.py +198 -0
  42. huaweicloudsdkaom/v1/model/start_pausing_workflow_executions_response.py +116 -0
  43. huaweicloudsdkaom/v1/model/step.py +259 -0
  44. huaweicloudsdkaom/v1/model/stop_execution_request.py +142 -0
  45. huaweicloudsdkaom/v1/model/stop_execution_response.py +112 -0
  46. huaweicloudsdkaom/v1/model/task_param.py +201 -0
  47. huaweicloudsdkaom/v1/model/template.py +687 -0
  48. huaweicloudsdkaom/v1/model/update_workflow_trigger_status_request.py +142 -0
  49. huaweicloudsdkaom/v1/model/update_workflow_trigger_status_response.py +112 -0
  50. huaweicloudsdkaom/v1/model/work_flow_model.py +144 -0
  51. huaweicloudsdkaom/v1/model/workflow.py +1241 -0
  52. huaweicloudsdkaom/v1/model/workflow_execution_brief.py +434 -0
  53. huaweicloudsdkaom/v1/model/workflow_query_param.py +432 -0
  54. huaweicloudsdkaom/v1/model/workflow_request_body.py +458 -0
  55. huaweicloudsdkaom/v1/region/__init__.py +0 -0
  56. huaweicloudsdkaom/v1/region/aom_region.py +103 -0
  57. huaweicloudsdkaom/v2/__init__.py +167 -2
  58. huaweicloudsdkaom/v2/aom_async_client.py +3293 -103
  59. huaweicloudsdkaom/v2/aom_client.py +3291 -102
  60. huaweicloudsdkaom/v2/model/__init__.py +166 -0
  61. huaweicloudsdkaom/v2/model/access_code_model.py +202 -0
  62. huaweicloudsdkaom/v2/model/action_rule.py +370 -0
  63. huaweicloudsdkaom/v2/model/add_action_rule_request.py +111 -0
  64. huaweicloudsdkaom/v2/model/add_action_rule_response.py +85 -0
  65. huaweicloudsdkaom/v2/model/add_alarm_rule_request.py +111 -0
  66. huaweicloudsdkaom/v2/model/add_alarm_rule_response.py +116 -0
  67. huaweicloudsdkaom/v2/model/add_event2alarm_rule_request.py +111 -0
  68. huaweicloudsdkaom/v2/model/add_event2alarm_rule_response.py +112 -0
  69. huaweicloudsdkaom/v2/model/add_metric_data_request.py +111 -0
  70. huaweicloudsdkaom/v2/model/add_metric_data_response.py +145 -0
  71. huaweicloudsdkaom/v2/model/add_mute_rules_request.py +111 -0
  72. huaweicloudsdkaom/v2/model/add_mute_rules_response.py +85 -0
  73. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +142 -0
  74. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +333 -0
  75. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +168 -0
  76. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +174 -0
  77. huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_request.py +111 -0
  78. huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py +232 -0
  79. huaweicloudsdkaom/v2/model/alarm_notification.py +315 -0
  80. huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +470 -0
  81. huaweicloudsdkaom/v2/model/alarm_rule_param.py +597 -0
  82. huaweicloudsdkaom/v2/model/alarm_tags.py +173 -0
  83. huaweicloudsdkaom/v2/model/app_name_rule.py +171 -0
  84. huaweicloudsdkaom/v2/model/app_rules.py +337 -0
  85. huaweicloudsdkaom/v2/model/app_rules_body.py +115 -0
  86. huaweicloudsdkaom/v2/model/app_rules_spec.py +451 -0
  87. huaweicloudsdkaom/v2/model/application_name_rule.py +171 -0
  88. huaweicloudsdkaom/v2/model/cmdb_info.py +144 -0
  89. huaweicloudsdkaom/v2/model/count_events_request.py +140 -0
  90. huaweicloudsdkaom/v2/model/count_events_response.py +203 -0
  91. huaweicloudsdkaom/v2/model/create_prom_instance_request.py +139 -0
  92. huaweicloudsdkaom/v2/model/create_prom_instance_response.py +116 -0
  93. huaweicloudsdkaom/v2/model/create_recording_rule_request.py +139 -0
  94. huaweicloudsdkaom/v2/model/create_recording_rule_response.py +112 -0
  95. huaweicloudsdkaom/v2/model/delete_action_rule_request.py +111 -0
  96. huaweicloudsdkaom/v2/model/delete_action_rule_response.py +85 -0
  97. huaweicloudsdkaom/v2/model/delete_alarm_rule_request.py +114 -0
  98. huaweicloudsdkaom/v2/model/delete_alarm_rule_response.py +112 -0
  99. huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +114 -0
  100. huaweicloudsdkaom/v2/model/delete_alarm_rules_body.py +114 -0
  101. huaweicloudsdkaom/v2/model/delete_alarm_rules_request.py +111 -0
  102. huaweicloudsdkaom/v2/model/delete_alarm_rules_response.py +112 -0
  103. huaweicloudsdkaom/v2/model/delete_event2alarm_rule_request.py +111 -0
  104. huaweicloudsdkaom/v2/model/delete_event2alarm_rule_response.py +85 -0
  105. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +111 -0
  106. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +174 -0
  107. huaweicloudsdkaom/v2/model/delete_mute_rule_name.py +114 -0
  108. huaweicloudsdkaom/v2/model/delete_mute_rules_request.py +111 -0
  109. huaweicloudsdkaom/v2/model/delete_mute_rules_response.py +85 -0
  110. huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +142 -0
  111. huaweicloudsdkaom/v2/model/delete_prom_instance_response.py +112 -0
  112. huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_request.py +114 -0
  113. huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py +203 -0
  114. huaweicloudsdkaom/v2/model/dimension.py +29 -24
  115. huaweicloudsdkaom/v2/model/dimension2.py +142 -0
  116. huaweicloudsdkaom/v2/model/dimension_series.py +144 -0
  117. huaweicloudsdkaom/v2/model/discovery_rule.py +170 -0
  118. huaweicloudsdkaom/v2/model/event2alarm_rule_body.py +538 -0
  119. huaweicloudsdkaom/v2/model/event2alarm_rule_body_metadata.py +115 -0
  120. huaweicloudsdkaom/v2/model/event2alarm_rule_body_trigger_policies.py +289 -0
  121. huaweicloudsdkaom/v2/model/event_alarm_spec.py +260 -0
  122. huaweicloudsdkaom/v2/model/event_list.py +114 -0
  123. huaweicloudsdkaom/v2/model/event_model.py +289 -0
  124. huaweicloudsdkaom/v2/model/event_query_param.py +225 -0
  125. huaweicloudsdkaom/v2/model/event_query_param2.py +226 -0
  126. huaweicloudsdkaom/v2/model/event_query_param2_sort.py +144 -0
  127. huaweicloudsdkaom/v2/model/event_query_param_sort.py +144 -0
  128. huaweicloudsdkaom/v2/model/event_series.py +144 -0
  129. huaweicloudsdkaom/v2/model/event_trigger_condition.py +260 -0
  130. huaweicloudsdkaom/v2/model/item_result.py +114 -0
  131. huaweicloudsdkaom/v2/model/list_access_code_request.py +84 -0
  132. huaweicloudsdkaom/v2/model/list_access_code_response.py +116 -0
  133. huaweicloudsdkaom/v2/model/list_action_rule_request.py +84 -0
  134. huaweicloudsdkaom/v2/model/list_action_rule_response.py +116 -0
  135. huaweicloudsdkaom/v2/model/list_agents_request.py +142 -0
  136. huaweicloudsdkaom/v2/model/list_agents_response.py +112 -0
  137. huaweicloudsdkaom/v2/model/list_alarm_rule_request.py +144 -0
  138. huaweicloudsdkaom/v2/model/list_alarm_rule_response.py +137 -0
  139. huaweicloudsdkaom/v2/model/list_event2alarm_rule_request.py +84 -0
  140. huaweicloudsdkaom/v2/model/list_event2alarm_rule_response.py +112 -0
  141. huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
  142. huaweicloudsdkaom/v2/model/list_events_request.py +227 -0
  143. huaweicloudsdkaom/v2/model/list_events_response.py +141 -0
  144. huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_request.py +143 -0
  145. huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_response.py +145 -0
  146. huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_request.py +143 -0
  147. huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_response.py +145 -0
  148. huaweicloudsdkaom/v2/model/list_label_values_aom_prom_get_request.py +114 -0
  149. huaweicloudsdkaom/v2/model/list_label_values_aom_prom_get_response.py +145 -0
  150. huaweicloudsdkaom/v2/model/list_labels_aom_prom_get_request.py +84 -0
  151. huaweicloudsdkaom/v2/model/list_labels_aom_prom_get_response.py +145 -0
  152. huaweicloudsdkaom/v2/model/list_labels_aom_prom_post_request.py +84 -0
  153. huaweicloudsdkaom/v2/model/list_labels_aom_prom_post_response.py +145 -0
  154. huaweicloudsdkaom/v2/model/list_log_items_request.py +139 -0
  155. huaweicloudsdkaom/v2/model/list_log_items_response.py +174 -0
  156. huaweicloudsdkaom/v2/model/list_metadata_aom_prom_get_request.py +84 -0
  157. huaweicloudsdkaom/v2/model/list_metadata_aom_prom_get_response.py +145 -0
  158. huaweicloudsdkaom/v2/model/list_metric_items_request.py +198 -0
  159. huaweicloudsdkaom/v2/model/list_metric_items_response.py +141 -0
  160. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +434 -0
  161. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +174 -0
  162. huaweicloudsdkaom/v2/model/list_mute_rule_request.py +84 -0
  163. huaweicloudsdkaom/v2/model/list_mute_rule_response.py +112 -0
  164. huaweicloudsdkaom/v2/model/list_notified_histories_request.py +115 -0
  165. huaweicloudsdkaom/v2/model/list_notified_histories_response.py +116 -0
  166. huaweicloudsdkaom/v2/model/list_permissions_request.py +84 -0
  167. huaweicloudsdkaom/v2/model/list_permissions_response.py +112 -0
  168. huaweicloudsdkaom/v2/model/list_prom_instance_request.py +230 -0
  169. huaweicloudsdkaom/v2/model/list_prom_instance_response.py +116 -0
  170. huaweicloudsdkaom/v2/model/list_range_query_aom_prom_get_request.py +198 -0
  171. huaweicloudsdkaom/v2/model/list_range_query_aom_prom_get_response.py +145 -0
  172. huaweicloudsdkaom/v2/model/list_range_query_aom_prom_post_request.py +198 -0
  173. huaweicloudsdkaom/v2/model/list_range_query_aom_prom_post_response.py +145 -0
  174. huaweicloudsdkaom/v2/model/list_sample_request.py +26 -19
  175. huaweicloudsdkaom/v2/model/list_sample_response.py +20 -14
  176. huaweicloudsdkaom/v2/model/list_series_request.py +33 -22
  177. huaweicloudsdkaom/v2/model/list_series_response.py +27 -21
  178. huaweicloudsdkaom/v2/model/list_service_discovery_rules_request.py +115 -0
  179. huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py +203 -0
  180. huaweicloudsdkaom/v2/model/log_path_rule.py +170 -0
  181. huaweicloudsdkaom/v2/model/match.py +171 -0
  182. huaweicloudsdkaom/v2/model/meta_data.py +44 -62
  183. huaweicloudsdkaom/v2/model/meta_data_series.py +202 -0
  184. huaweicloudsdkaom/v2/model/metric_alarm_spec.py +310 -0
  185. huaweicloudsdkaom/v2/model/metric_api_query_item_param.py +144 -0
  186. huaweicloudsdkaom/v2/model/metric_data_item.py +166 -0
  187. huaweicloudsdkaom/v2/model/metric_data_points.py +55 -46
  188. huaweicloudsdkaom/v2/model/metric_data_value.py +140 -0
  189. huaweicloudsdkaom/v2/model/metric_item_info.py +142 -0
  190. huaweicloudsdkaom/v2/model/metric_item_result_api.py +231 -0
  191. huaweicloudsdkaom/v2/model/metric_query_metric_param.py +170 -0
  192. huaweicloudsdkaom/v2/model/mute_config.py +200 -0
  193. huaweicloudsdkaom/v2/model/mute_rule.py +310 -0
  194. huaweicloudsdkaom/v2/model/name_rule.py +142 -0
  195. huaweicloudsdkaom/v2/model/no_data_condition.py +173 -0
  196. huaweicloudsdkaom/v2/model/node_info.py +144 -0
  197. huaweicloudsdkaom/v2/model/notifications.py +169 -0
  198. huaweicloudsdkaom/v2/model/notified_histories_result.py +144 -0
  199. huaweicloudsdkaom/v2/model/page_info.py +170 -0
  200. huaweicloudsdkaom/v2/model/prom_config_model.py +231 -0
  201. huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py +428 -0
  202. huaweicloudsdkaom/v2/model/prom_instance_eps_model.py +457 -0
  203. huaweicloudsdkaom/v2/model/prom_instance_request_model.py +229 -0
  204. huaweicloudsdkaom/v2/model/push_events_request.py +169 -0
  205. huaweicloudsdkaom/v2/model/push_events_response.py +85 -0
  206. huaweicloudsdkaom/v2/model/query_alarm_result.py +811 -0
  207. huaweicloudsdkaom/v2/model/query_body_param.py +368 -0
  208. huaweicloudsdkaom/v2/model/query_metric_data_param.py +198 -0
  209. huaweicloudsdkaom/v2/model/query_metric_item_option_param.py +172 -0
  210. huaweicloudsdkaom/v2/model/query_sample.py +36 -27
  211. huaweicloudsdkaom/v2/model/query_sample_param.py +42 -31
  212. huaweicloudsdkaom/v2/model/query_series_option_param.py +36 -27
  213. huaweicloudsdkaom/v2/model/recording_rule_request.py +114 -0
  214. huaweicloudsdkaom/v2/model/recovery_condition.py +115 -0
  215. huaweicloudsdkaom/v2/model/relation_model.py +173 -0
  216. huaweicloudsdkaom/v2/model/sample_data_value.py +25 -20
  217. huaweicloudsdkaom/v2/model/search_key.py +259 -0
  218. huaweicloudsdkaom/v2/model/series_api_query_item_param.py +19 -14
  219. huaweicloudsdkaom/v2/model/series_query_item_result.py +40 -27
  220. huaweicloudsdkaom/v2/model/show_action_rule_request.py +114 -0
  221. huaweicloudsdkaom/v2/model/show_action_rule_response.py +377 -0
  222. huaweicloudsdkaom/v2/model/show_alarm_rule_request.py +114 -0
  223. huaweicloudsdkaom/v2/model/show_alarm_rule_response.py +141 -0
  224. huaweicloudsdkaom/v2/model/show_metrics_data_request.py +140 -0
  225. huaweicloudsdkaom/v2/model/show_metrics_data_response.py +174 -0
  226. huaweicloudsdkaom/v2/model/smn_info.py +173 -0
  227. huaweicloudsdkaom/v2/model/smn_response.py +260 -0
  228. huaweicloudsdkaom/v2/model/smn_topics.py +228 -0
  229. huaweicloudsdkaom/v2/model/statistic_value.py +23 -16
  230. huaweicloudsdkaom/v2/model/trigger_condition.py +742 -0
  231. huaweicloudsdkaom/v2/model/update_action_rule_request.py +111 -0
  232. huaweicloudsdkaom/v2/model/update_action_rule_response.py +85 -0
  233. huaweicloudsdkaom/v2/model/update_alarm_rule_param.py +597 -0
  234. huaweicloudsdkaom/v2/model/update_alarm_rule_request.py +111 -0
  235. huaweicloudsdkaom/v2/model/update_alarm_rule_response.py +116 -0
  236. huaweicloudsdkaom/v2/model/update_event_rule_request.py +111 -0
  237. huaweicloudsdkaom/v2/model/update_event_rule_response.py +112 -0
  238. huaweicloudsdkaom/v2/model/update_mute_rule_request.py +111 -0
  239. huaweicloudsdkaom/v2/model/update_mute_rule_response.py +85 -0
  240. huaweicloudsdkaom/v2/model/value_data.py +200 -0
  241. huaweicloudsdkaom/v2/region/__init__.py +0 -0
  242. huaweicloudsdkaom/v2/region/aom_region.py +103 -0
  243. huaweicloudsdkaom/v3/__init__.py +55 -0
  244. huaweicloudsdkaom/v3/aom_async_client.py +1338 -0
  245. huaweicloudsdkaom/v3/aom_client.py +1335 -0
  246. huaweicloudsdkaom/v3/model/__init__.py +52 -0
  247. huaweicloudsdkaom/v3/model/biz_app_param.py +230 -0
  248. huaweicloudsdkaom/v3/model/component_param.py +199 -0
  249. huaweicloudsdkaom/v3/model/component_update_param.py +143 -0
  250. huaweicloudsdkaom/v3/model/create_app_request.py +111 -0
  251. huaweicloudsdkaom/v3/model/create_app_response.py +112 -0
  252. huaweicloudsdkaom/v3/model/create_component_request.py +111 -0
  253. huaweicloudsdkaom/v3/model/create_component_response.py +116 -0
  254. huaweicloudsdkaom/v3/model/create_env_request.py +111 -0
  255. huaweicloudsdkaom/v3/model/create_env_response.py +116 -0
  256. huaweicloudsdkaom/v3/model/create_sub_app_request.py +111 -0
  257. huaweicloudsdkaom/v3/model/create_sub_app_response.py +112 -0
  258. huaweicloudsdkaom/v3/model/delete_app_request.py +114 -0
  259. huaweicloudsdkaom/v3/model/delete_app_response.py +112 -0
  260. huaweicloudsdkaom/v3/model/delete_component_request.py +114 -0
  261. huaweicloudsdkaom/v3/model/delete_component_response.py +112 -0
  262. huaweicloudsdkaom/v3/model/delete_env_request.py +114 -0
  263. huaweicloudsdkaom/v3/model/delete_env_response.py +85 -0
  264. huaweicloudsdkaom/v3/model/delete_sub_app_request.py +114 -0
  265. huaweicloudsdkaom/v3/model/delete_sub_app_response.py +112 -0
  266. huaweicloudsdkaom/v3/model/env_param.py +285 -0
  267. huaweicloudsdkaom/v3/model/list_resource_under_node_request.py +167 -0
  268. huaweicloudsdkaom/v3/model/list_resource_under_node_response.py +145 -0
  269. huaweicloudsdkaom/v3/model/page_resource_list_param.py +317 -0
  270. huaweicloudsdkaom/v3/model/show_app_by_name_request.py +144 -0
  271. huaweicloudsdkaom/v3/model/show_app_by_name_response.py +406 -0
  272. huaweicloudsdkaom/v3/model/show_app_request.py +114 -0
  273. huaweicloudsdkaom/v3/model/show_app_response.py +406 -0
  274. huaweicloudsdkaom/v3/model/show_component_by_name_request.py +142 -0
  275. huaweicloudsdkaom/v3/model/show_component_by_name_response.py +203 -0
  276. huaweicloudsdkaom/v3/model/show_component_request.py +114 -0
  277. huaweicloudsdkaom/v3/model/show_component_response.py +406 -0
  278. huaweicloudsdkaom/v3/model/show_env_by_name_request.py +170 -0
  279. huaweicloudsdkaom/v3/model/show_env_by_name_response.py +522 -0
  280. huaweicloudsdkaom/v3/model/show_env_request.py +114 -0
  281. huaweicloudsdkaom/v3/model/show_env_response.py +522 -0
  282. huaweicloudsdkaom/v3/model/sub_app_create_param.py +228 -0
  283. huaweicloudsdkaom/v3/model/sub_app_update_param.py +172 -0
  284. huaweicloudsdkaom/v3/model/tag_name_and_id_vo.py +144 -0
  285. huaweicloudsdkaom/v3/model/update_app_request.py +139 -0
  286. huaweicloudsdkaom/v3/model/update_app_response.py +85 -0
  287. huaweicloudsdkaom/v3/model/update_component_request.py +139 -0
  288. huaweicloudsdkaom/v3/model/update_component_response.py +85 -0
  289. huaweicloudsdkaom/v3/model/update_env_request.py +139 -0
  290. huaweicloudsdkaom/v3/model/update_env_response.py +85 -0
  291. huaweicloudsdkaom/v3/model/update_sub_app_request.py +139 -0
  292. huaweicloudsdkaom/v3/model/update_sub_app_response.py +85 -0
  293. huaweicloudsdkaom/v3/model/waterfall_page_list_param.py +144 -0
  294. huaweicloudsdkaom/v3/region/__init__.py +0 -0
  295. huaweicloudsdkaom/v3/region/aom_region.py +103 -0
  296. huaweicloudsdkaom/v4/__init__.py +21 -0
  297. huaweicloudsdkaom/v4/aom_async_client.py +280 -0
  298. huaweicloudsdkaom/v4/aom_client.py +277 -0
  299. huaweicloudsdkaom/v4/model/__init__.py +18 -0
  300. huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +280 -0
  301. huaweicloudsdkaom/v4/model/agent_import_param_new.py +313 -0
  302. huaweicloudsdkaom/v4/model/agent_info_param.py +231 -0
  303. huaweicloudsdkaom/v4/model/agent_info_result.py +463 -0
  304. huaweicloudsdkaom/v4/model/agent_upgrade_param.py +142 -0
  305. huaweicloudsdkaom/v4/model/batch_import_agent_request.py +139 -0
  306. huaweicloudsdkaom/v4/model/batch_import_agent_response.py +116 -0
  307. huaweicloudsdkaom/v4/model/batch_update_agent_request.py +111 -0
  308. huaweicloudsdkaom/v4/model/batch_update_agent_response.py +116 -0
  309. huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +173 -0
  310. huaweicloudsdkaom/v4/model/show_agent_infos_request.py +111 -0
  311. huaweicloudsdkaom/v4/model/show_agent_infos_response.py +203 -0
  312. huaweicloudsdkaom/v4/model/single_agent_param.py +142 -0
  313. huaweicloudsdkaom/v4/region/__init__.py +0 -0
  314. huaweicloudsdkaom/v4/region/aom_region.py +103 -0
  315. {huaweicloudsdkaom-3.0.43rc0.dist-info → huaweicloudsdkaom-3.1.160.dist-info}/METADATA +9 -9
  316. huaweicloudsdkaom-3.1.160.dist-info/RECORD +320 -0
  317. {huaweicloudsdkaom-3.0.43rc0.dist-info → huaweicloudsdkaom-3.1.160.dist-info}/WHEEL +1 -1
  318. huaweicloudsdkaom-3.0.43rc0.dist-info/RECORD +0 -24
  319. {huaweicloudsdkaom-3.0.43rc0.dist-info → huaweicloudsdkaom-3.1.160.dist-info}/LICENSE +0 -0
  320. {huaweicloudsdkaom-3.0.43rc0.dist-info → huaweicloudsdkaom-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,12 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
4
- import re
5
-
6
3
  import six
7
4
 
8
-
9
-
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
10
6
 
11
7
 
12
8
  class MetricDataPoints:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,41 +14,72 @@ class MetricDataPoints:
19
14
  attribute_map (dict): The key is attribute name
20
15
  and the value is json key in definition.
21
16
  """
22
-
23
17
  sensitive_list = []
24
18
 
25
19
  openapi_types = {
20
+ 'statistics': 'list[StatisticValue]',
26
21
  'timestamp': 'int',
27
- 'unit': 'str',
28
- 'statistics': 'list[StatisticValue]'
22
+ 'unit': 'str'
29
23
  }
30
24
 
31
25
  attribute_map = {
26
+ 'statistics': 'statistics',
32
27
  'timestamp': 'timestamp',
33
- 'unit': 'unit',
34
- 'statistics': 'statistics'
28
+ 'unit': 'unit'
35
29
  }
36
30
 
37
- def __init__(self, timestamp=None, unit=None, statistics=None):
38
- """MetricDataPoints - a model defined in huaweicloud sdk"""
31
+ def __init__(self, statistics=None, timestamp=None, unit=None):
32
+ r"""MetricDataPoints
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param statistics: 统计方式。
37
+ :type statistics: list[:class:`huaweicloudsdkaom.v2.StatisticValue`]
38
+ :param timestamp: 时间戳。
39
+ :type timestamp: int
40
+ :param unit: 时间序列单位。
41
+ :type unit: str
42
+ """
39
43
 
40
44
 
41
45
 
46
+ self._statistics = None
42
47
  self._timestamp = None
43
48
  self._unit = None
44
- self._statistics = None
45
49
  self.discriminator = None
46
50
 
51
+ if statistics is not None:
52
+ self.statistics = statistics
47
53
  if timestamp is not None:
48
54
  self.timestamp = timestamp
49
55
  if unit is not None:
50
56
  self.unit = unit
51
- if statistics is not None:
52
- self.statistics = statistics
57
+
58
+ @property
59
+ def statistics(self):
60
+ r"""Gets the statistics of this MetricDataPoints.
61
+
62
+ 统计方式。
63
+
64
+ :return: The statistics of this MetricDataPoints.
65
+ :rtype: list[:class:`huaweicloudsdkaom.v2.StatisticValue`]
66
+ """
67
+ return self._statistics
68
+
69
+ @statistics.setter
70
+ def statistics(self, statistics):
71
+ r"""Sets the statistics of this MetricDataPoints.
72
+
73
+ 统计方式。
74
+
75
+ :param statistics: The statistics of this MetricDataPoints.
76
+ :type statistics: list[:class:`huaweicloudsdkaom.v2.StatisticValue`]
77
+ """
78
+ self._statistics = statistics
53
79
 
54
80
  @property
55
81
  def timestamp(self):
56
- """Gets the timestamp of this MetricDataPoints.
82
+ r"""Gets the timestamp of this MetricDataPoints.
57
83
 
58
84
  时间戳。
59
85
 
@@ -64,18 +90,18 @@ class MetricDataPoints:
64
90
 
65
91
  @timestamp.setter
66
92
  def timestamp(self, timestamp):
67
- """Sets the timestamp of this MetricDataPoints.
93
+ r"""Sets the timestamp of this MetricDataPoints.
68
94
 
69
95
  时间戳。
70
96
 
71
97
  :param timestamp: The timestamp of this MetricDataPoints.
72
- :type: int
98
+ :type timestamp: int
73
99
  """
74
100
  self._timestamp = timestamp
75
101
 
76
102
  @property
77
103
  def unit(self):
78
- """Gets the unit of this MetricDataPoints.
104
+ r"""Gets the unit of this MetricDataPoints.
79
105
 
80
106
  时间序列单位。
81
107
 
@@ -86,37 +112,15 @@ class MetricDataPoints:
86
112
 
87
113
  @unit.setter
88
114
  def unit(self, unit):
89
- """Sets the unit of this MetricDataPoints.
115
+ r"""Sets the unit of this MetricDataPoints.
90
116
 
91
117
  时间序列单位。
92
118
 
93
119
  :param unit: The unit of this MetricDataPoints.
94
- :type: str
120
+ :type unit: str
95
121
  """
96
122
  self._unit = unit
97
123
 
98
- @property
99
- def statistics(self):
100
- """Gets the statistics of this MetricDataPoints.
101
-
102
- 统计方式。
103
-
104
- :return: The statistics of this MetricDataPoints.
105
- :rtype: list[StatisticValue]
106
- """
107
- return self._statistics
108
-
109
- @statistics.setter
110
- def statistics(self, statistics):
111
- """Sets the statistics of this MetricDataPoints.
112
-
113
- 统计方式。
114
-
115
- :param statistics: The statistics of this MetricDataPoints.
116
- :type: list[StatisticValue]
117
- """
118
- self._statistics = statistics
119
-
120
124
  def to_dict(self):
121
125
  """Returns the model properties as a dict"""
122
126
  result = {}
@@ -146,10 +150,15 @@ class MetricDataPoints:
146
150
 
147
151
  def to_str(self):
148
152
  """Returns the string representation of the model"""
149
- return pprint.pformat(self.to_dict())
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)
150
159
 
151
160
  def __repr__(self):
152
- """For `print` and `pprint`"""
161
+ """For `print`"""
153
162
  return self.to_str()
154
163
 
155
164
  def __eq__(self, other):
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MetricDataValue:
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
+ 'data_points': 'list[MetricDataPoints]',
21
+ 'metric': 'MetricQueryMetricParam'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'data_points': 'dataPoints',
26
+ 'metric': 'metric'
27
+ }
28
+
29
+ def __init__(self, data_points=None, metric=None):
30
+ r"""MetricDataValue
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param data_points: 重点指标。
35
+ :type data_points: list[:class:`huaweicloudsdkaom.v2.MetricDataPoints`]
36
+ :param metric:
37
+ :type metric: :class:`huaweicloudsdkaom.v2.MetricQueryMetricParam`
38
+ """
39
+
40
+
41
+
42
+ self._data_points = None
43
+ self._metric = None
44
+ self.discriminator = None
45
+
46
+ if data_points is not None:
47
+ self.data_points = data_points
48
+ if metric is not None:
49
+ self.metric = metric
50
+
51
+ @property
52
+ def data_points(self):
53
+ r"""Gets the data_points of this MetricDataValue.
54
+
55
+ 重点指标。
56
+
57
+ :return: The data_points of this MetricDataValue.
58
+ :rtype: list[:class:`huaweicloudsdkaom.v2.MetricDataPoints`]
59
+ """
60
+ return self._data_points
61
+
62
+ @data_points.setter
63
+ def data_points(self, data_points):
64
+ r"""Sets the data_points of this MetricDataValue.
65
+
66
+ 重点指标。
67
+
68
+ :param data_points: The data_points of this MetricDataValue.
69
+ :type data_points: list[:class:`huaweicloudsdkaom.v2.MetricDataPoints`]
70
+ """
71
+ self._data_points = data_points
72
+
73
+ @property
74
+ def metric(self):
75
+ r"""Gets the metric of this MetricDataValue.
76
+
77
+ :return: The metric of this MetricDataValue.
78
+ :rtype: :class:`huaweicloudsdkaom.v2.MetricQueryMetricParam`
79
+ """
80
+ return self._metric
81
+
82
+ @metric.setter
83
+ def metric(self, metric):
84
+ r"""Sets the metric of this MetricDataValue.
85
+
86
+ :param metric: The metric of this MetricDataValue.
87
+ :type metric: :class:`huaweicloudsdkaom.v2.MetricQueryMetricParam`
88
+ """
89
+ self._metric = metric
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, MetricDataValue):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MetricItemInfo:
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
+ 'dimensions': 'list[Dimension2]',
21
+ 'namespace': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'dimensions': 'dimensions',
26
+ 'namespace': 'namespace'
27
+ }
28
+
29
+ def __init__(self, dimensions=None, namespace=None):
30
+ r"""MetricItemInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param dimensions: 指标维度列表。维度最多允许50个,单个维度为json对象,结构说明如下 dimension.name:长度最短为1,最大为32。 dimension.value:长度最短为1,最大为64。
35
+ :type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension2`]
36
+ :param namespace: 指标命名空间。 namespace中不允许存在\":\"符号,取值范围格式为service.item;service和item必须是字符串,必须以字母开头,只能包含0-9/a-z/A-Z/_,总长度最短为3,最大为32,service不能为“PAAS”。
37
+ :type namespace: str
38
+ """
39
+
40
+
41
+
42
+ self._dimensions = None
43
+ self._namespace = None
44
+ self.discriminator = None
45
+
46
+ self.dimensions = dimensions
47
+ self.namespace = namespace
48
+
49
+ @property
50
+ def dimensions(self):
51
+ r"""Gets the dimensions of this MetricItemInfo.
52
+
53
+ 指标维度列表。维度最多允许50个,单个维度为json对象,结构说明如下 dimension.name:长度最短为1,最大为32。 dimension.value:长度最短为1,最大为64。
54
+
55
+ :return: The dimensions of this MetricItemInfo.
56
+ :rtype: list[:class:`huaweicloudsdkaom.v2.Dimension2`]
57
+ """
58
+ return self._dimensions
59
+
60
+ @dimensions.setter
61
+ def dimensions(self, dimensions):
62
+ r"""Sets the dimensions of this MetricItemInfo.
63
+
64
+ 指标维度列表。维度最多允许50个,单个维度为json对象,结构说明如下 dimension.name:长度最短为1,最大为32。 dimension.value:长度最短为1,最大为64。
65
+
66
+ :param dimensions: The dimensions of this MetricItemInfo.
67
+ :type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension2`]
68
+ """
69
+ self._dimensions = dimensions
70
+
71
+ @property
72
+ def namespace(self):
73
+ r"""Gets the namespace of this MetricItemInfo.
74
+
75
+ 指标命名空间。 namespace中不允许存在\":\"符号,取值范围格式为service.item;service和item必须是字符串,必须以字母开头,只能包含0-9/a-z/A-Z/_,总长度最短为3,最大为32,service不能为“PAAS”。
76
+
77
+ :return: The namespace of this MetricItemInfo.
78
+ :rtype: str
79
+ """
80
+ return self._namespace
81
+
82
+ @namespace.setter
83
+ def namespace(self, namespace):
84
+ r"""Sets the namespace of this MetricItemInfo.
85
+
86
+ 指标命名空间。 namespace中不允许存在\":\"符号,取值范围格式为service.item;service和item必须是字符串,必须以字母开头,只能包含0-9/a-z/A-Z/_,总长度最短为3,最大为32,service不能为“PAAS”。
87
+
88
+ :param namespace: The namespace of this MetricItemInfo.
89
+ :type namespace: str
90
+ """
91
+ self._namespace = namespace
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, MetricItemInfo):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MetricItemResultAPI:
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
+ 'dimensions': 'list[Dimension]',
21
+ 'dimensionvaluehash': 'str',
22
+ 'metric_name': 'str',
23
+ 'namespace': 'str',
24
+ 'unit': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'dimensions': 'dimensions',
29
+ 'dimensionvaluehash': 'dimensionvaluehash',
30
+ 'metric_name': 'metricName',
31
+ 'namespace': 'namespace',
32
+ 'unit': 'unit'
33
+ }
34
+
35
+ def __init__(self, dimensions=None, dimensionvaluehash=None, metric_name=None, namespace=None, unit=None):
36
+ r"""MetricItemResultAPI
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param dimensions: 指标维度列表。
41
+ :type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension`]
42
+ :param dimensionvaluehash: 指标哈希值。
43
+ :type dimensionvaluehash: str
44
+ :param metric_name: 指标名称。
45
+ :type metric_name: str
46
+ :param namespace: 命名空间。
47
+ :type namespace: str
48
+ :param unit: 指标单位。
49
+ :type unit: str
50
+ """
51
+
52
+
53
+
54
+ self._dimensions = None
55
+ self._dimensionvaluehash = None
56
+ self._metric_name = None
57
+ self._namespace = None
58
+ self._unit = None
59
+ self.discriminator = None
60
+
61
+ if dimensions is not None:
62
+ self.dimensions = dimensions
63
+ if dimensionvaluehash is not None:
64
+ self.dimensionvaluehash = dimensionvaluehash
65
+ if metric_name is not None:
66
+ self.metric_name = metric_name
67
+ if namespace is not None:
68
+ self.namespace = namespace
69
+ if unit is not None:
70
+ self.unit = unit
71
+
72
+ @property
73
+ def dimensions(self):
74
+ r"""Gets the dimensions of this MetricItemResultAPI.
75
+
76
+ 指标维度列表。
77
+
78
+ :return: The dimensions of this MetricItemResultAPI.
79
+ :rtype: list[:class:`huaweicloudsdkaom.v2.Dimension`]
80
+ """
81
+ return self._dimensions
82
+
83
+ @dimensions.setter
84
+ def dimensions(self, dimensions):
85
+ r"""Sets the dimensions of this MetricItemResultAPI.
86
+
87
+ 指标维度列表。
88
+
89
+ :param dimensions: The dimensions of this MetricItemResultAPI.
90
+ :type dimensions: list[:class:`huaweicloudsdkaom.v2.Dimension`]
91
+ """
92
+ self._dimensions = dimensions
93
+
94
+ @property
95
+ def dimensionvaluehash(self):
96
+ r"""Gets the dimensionvaluehash of this MetricItemResultAPI.
97
+
98
+ 指标哈希值。
99
+
100
+ :return: The dimensionvaluehash of this MetricItemResultAPI.
101
+ :rtype: str
102
+ """
103
+ return self._dimensionvaluehash
104
+
105
+ @dimensionvaluehash.setter
106
+ def dimensionvaluehash(self, dimensionvaluehash):
107
+ r"""Sets the dimensionvaluehash of this MetricItemResultAPI.
108
+
109
+ 指标哈希值。
110
+
111
+ :param dimensionvaluehash: The dimensionvaluehash of this MetricItemResultAPI.
112
+ :type dimensionvaluehash: str
113
+ """
114
+ self._dimensionvaluehash = dimensionvaluehash
115
+
116
+ @property
117
+ def metric_name(self):
118
+ r"""Gets the metric_name of this MetricItemResultAPI.
119
+
120
+ 指标名称。
121
+
122
+ :return: The metric_name of this MetricItemResultAPI.
123
+ :rtype: str
124
+ """
125
+ return self._metric_name
126
+
127
+ @metric_name.setter
128
+ def metric_name(self, metric_name):
129
+ r"""Sets the metric_name of this MetricItemResultAPI.
130
+
131
+ 指标名称。
132
+
133
+ :param metric_name: The metric_name of this MetricItemResultAPI.
134
+ :type metric_name: str
135
+ """
136
+ self._metric_name = metric_name
137
+
138
+ @property
139
+ def namespace(self):
140
+ r"""Gets the namespace of this MetricItemResultAPI.
141
+
142
+ 命名空间。
143
+
144
+ :return: The namespace of this MetricItemResultAPI.
145
+ :rtype: str
146
+ """
147
+ return self._namespace
148
+
149
+ @namespace.setter
150
+ def namespace(self, namespace):
151
+ r"""Sets the namespace of this MetricItemResultAPI.
152
+
153
+ 命名空间。
154
+
155
+ :param namespace: The namespace of this MetricItemResultAPI.
156
+ :type namespace: str
157
+ """
158
+ self._namespace = namespace
159
+
160
+ @property
161
+ def unit(self):
162
+ r"""Gets the unit of this MetricItemResultAPI.
163
+
164
+ 指标单位。
165
+
166
+ :return: The unit of this MetricItemResultAPI.
167
+ :rtype: str
168
+ """
169
+ return self._unit
170
+
171
+ @unit.setter
172
+ def unit(self, unit):
173
+ r"""Sets the unit of this MetricItemResultAPI.
174
+
175
+ 指标单位。
176
+
177
+ :param unit: The unit of this MetricItemResultAPI.
178
+ :type unit: str
179
+ """
180
+ self._unit = unit
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, MetricItemResultAPI):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other