huaweicloudsdkosm 3.1.174__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.
- huaweicloudsdkosm/__init__.py +0 -0
- huaweicloudsdkosm/v2/__init__.py +247 -0
- huaweicloudsdkosm/v2/model/__init__.py +244 -0
- huaweicloudsdkosm/v2/model/accessory_json_format_req.py +192 -0
- huaweicloudsdkosm/v2/model/accessory_limit_vo.py +166 -0
- huaweicloudsdkosm/v2/model/accessory_url.py +166 -0
- huaweicloudsdkosm/v2/model/agency_v2.py +282 -0
- huaweicloudsdkosm/v2/model/agree_tenant_authorization_v2_req.py +224 -0
- huaweicloudsdkosm/v2/model/agreement_vo.py +253 -0
- huaweicloudsdkosm/v2/model/area_code_simple_info_v2.py +166 -0
- huaweicloudsdkosm/v2/model/case_label_info.py +166 -0
- huaweicloudsdkosm/v2/model/case_query_label.py +166 -0
- huaweicloudsdkosm/v2/model/case_realtion_info.py +166 -0
- huaweicloudsdkosm/v2/model/check_hosts_request.py +219 -0
- huaweicloudsdkosm/v2/model/check_hosts_response.py +141 -0
- huaweicloudsdkosm/v2/model/check_need_verify_request.py +251 -0
- huaweicloudsdkosm/v2/model/check_need_verify_response.py +141 -0
- huaweicloudsdkosm/v2/model/check_verify_codes_request.py +191 -0
- huaweicloudsdkosm/v2/model/check_verify_codes_response.py +141 -0
- huaweicloudsdkosm/v2/model/common_param_v2.py +195 -0
- huaweicloudsdkosm/v2/model/confirm_authorizations_request.py +219 -0
- huaweicloudsdkosm/v2/model/confirm_authorizations_response.py +141 -0
- huaweicloudsdkosm/v2/model/contact_v2.py +195 -0
- huaweicloudsdkosm/v2/model/contact_way_info_v2.py +336 -0
- huaweicloudsdkosm/v2/model/create_and_delete_privilege_req.py +136 -0
- huaweicloudsdkosm/v2/model/create_case_extends_param_request.py +219 -0
- huaweicloudsdkosm/v2/model/create_case_extends_param_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_case_labels_request.py +222 -0
- huaweicloudsdkosm/v2/model/create_case_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_cases_request.py +249 -0
- huaweicloudsdkosm/v2/model/create_cases_response.py +112 -0
- huaweicloudsdkosm/v2/model/create_diagnose_feedback_request.py +104 -0
- huaweicloudsdkosm/v2/model/create_diagnose_feedback_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_diagnose_job_request.py +104 -0
- huaweicloudsdkosm/v2/model/create_diagnose_job_response.py +170 -0
- huaweicloudsdkosm/v2/model/create_feedback_req.py +164 -0
- huaweicloudsdkosm/v2/model/create_feedback_request.py +104 -0
- huaweicloudsdkosm/v2/model/create_feedback_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_feedback_v2_req.py +240 -0
- huaweicloudsdkosm/v2/model/create_labels_req.py +135 -0
- huaweicloudsdkosm/v2/model/create_labels_request.py +191 -0
- huaweicloudsdkosm/v2/model/create_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_message_do_v2.py +136 -0
- huaweicloudsdkosm/v2/model/create_message_v2_req.py +132 -0
- huaweicloudsdkosm/v2/model/create_messages_request.py +219 -0
- huaweicloudsdkosm/v2/model/create_messages_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_order_incident_v2_req.py +540 -0
- huaweicloudsdkosm/v2/model/create_privileges_request.py +191 -0
- huaweicloudsdkosm/v2/model/create_privileges_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_relations_req.py +136 -0
- huaweicloudsdkosm/v2/model/create_relations_request.py +219 -0
- huaweicloudsdkosm/v2/model/create_relations_response.py +141 -0
- huaweicloudsdkosm/v2/model/create_score_v2_req.py +164 -0
- huaweicloudsdkosm/v2/model/create_scores_request.py +219 -0
- huaweicloudsdkosm/v2/model/create_scores_response.py +141 -0
- huaweicloudsdkosm/v2/model/data_center_v2_do.py +195 -0
- huaweicloudsdkosm/v2/model/delete_accessories_request.py +194 -0
- huaweicloudsdkosm/v2/model/delete_accessories_response.py +141 -0
- huaweicloudsdkosm/v2/model/delete_case_labels_request.py +222 -0
- huaweicloudsdkosm/v2/model/delete_case_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/delete_labels_request.py +194 -0
- huaweicloudsdkosm/v2/model/delete_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/delete_relation_request.py +219 -0
- huaweicloudsdkosm/v2/model/delete_relation_response.py +141 -0
- huaweicloudsdkosm/v2/model/delete_relations_req.py +136 -0
- huaweicloudsdkosm/v2/model/diagnose_record_vo.py +340 -0
- huaweicloudsdkosm/v2/model/diagnose_resource_vo.py +398 -0
- huaweicloudsdkosm/v2/model/download_accessories_request.py +223 -0
- huaweicloudsdkosm/v2/model/download_accessories_response.py +81 -0
- huaweicloudsdkosm/v2/model/download_cases_request.py +541 -0
- huaweicloudsdkosm/v2/model/download_cases_response.py +81 -0
- huaweicloudsdkosm/v2/model/download_images_request.py +223 -0
- huaweicloudsdkosm/v2/model/download_images_response.py +81 -0
- huaweicloudsdkosm/v2/model/extends_param_v2.py +485 -0
- huaweicloudsdkosm/v2/model/file_operate_log.py +311 -0
- huaweicloudsdkosm/v2/model/im_status_v2.py +137 -0
- huaweicloudsdkosm/v2/model/im_unread_v2.py +166 -0
- huaweicloudsdkosm/v2/model/incident_detail_ext_info_v2.py +282 -0
- huaweicloudsdkosm/v2/model/incident_detail_info_v2.py +586 -0
- huaweicloudsdkosm/v2/model/incident_info.py +456 -0
- huaweicloudsdkosm/v2/model/incident_info_v2.py +535 -0
- huaweicloudsdkosm/v2/model/incident_message_v2.py +311 -0
- huaweicloudsdkosm/v2/model/incident_operate_log_v2.py +340 -0
- huaweicloudsdkosm/v2/model/incident_order_auth_detail_info_v2.py +282 -0
- huaweicloudsdkosm/v2/model/incident_order_auth_v2.py +572 -0
- huaweicloudsdkosm/v2/model/incident_order_cc_email_info_v2.py +166 -0
- huaweicloudsdkosm/v2/model/incident_product_category_v2.py +224 -0
- huaweicloudsdkosm/v2/model/incident_satisfaction_v2_do.py +280 -0
- huaweicloudsdkosm/v2/model/incident_status_count.py +137 -0
- huaweicloudsdkosm/v2/model/incident_sub_type_v2_do.py +166 -0
- huaweicloudsdkosm/v2/model/incident_temp_v2.py +166 -0
- huaweicloudsdkosm/v2/model/intellectual_property_v2.py +195 -0
- huaweicloudsdkosm/v2/model/item_result_detail_vo.py +311 -0
- huaweicloudsdkosm/v2/model/item_result_vo.py +282 -0
- huaweicloudsdkosm/v2/model/label_info.py +166 -0
- huaweicloudsdkosm/v2/model/list_accessory_access_urls_request.py +223 -0
- huaweicloudsdkosm/v2/model/list_accessory_access_urls_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_agencies_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_agencies_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_area_codes_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_area_codes_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_authorizations_request.py +369 -0
- huaweicloudsdkosm/v2/model/list_authorizations_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_case_categories_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_case_categories_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_case_cc_emails_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_case_cc_emails_response.py +137 -0
- huaweicloudsdkosm/v2/model/list_case_counts_request.py +195 -0
- huaweicloudsdkosm/v2/model/list_case_counts_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_case_labels_request.py +194 -0
- huaweicloudsdkosm/v2/model/list_case_labels_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_case_limits_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_case_limits_response.py +108 -0
- huaweicloudsdkosm/v2/model/list_case_operate_logs_request.py +281 -0
- huaweicloudsdkosm/v2/model/list_case_operate_logs_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_case_quotas_request.py +223 -0
- huaweicloudsdkosm/v2/model/list_case_quotas_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_case_templates_request.py +194 -0
- huaweicloudsdkosm/v2/model/list_case_templates_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_cases_request.py +543 -0
- huaweicloudsdkosm/v2/model/list_cases_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_customers_regions_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_customers_regions_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_diagnose_items_request.py +104 -0
- huaweicloudsdkosm/v2/model/list_diagnose_items_response.py +170 -0
- huaweicloudsdkosm/v2/model/list_diagnose_job_request.py +108 -0
- huaweicloudsdkosm/v2/model/list_diagnose_job_response.py +286 -0
- huaweicloudsdkosm/v2/model/list_diagnose_records_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_diagnose_records_response.py +199 -0
- huaweicloudsdkosm/v2/model/list_diagnose_resources_request.py +104 -0
- huaweicloudsdkosm/v2/model/list_diagnose_resources_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_extends_params_request.py +252 -0
- huaweicloudsdkosm/v2/model/list_extends_params_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_has_verified_contacts_request.py +427 -0
- huaweicloudsdkosm/v2/model/list_has_verified_contacts_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_history_operate_logs_request.py +366 -0
- huaweicloudsdkosm/v2/model/list_history_operate_logs_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_history_sessions_request.py +309 -0
- huaweicloudsdkosm/v2/model/list_history_sessions_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_labels_request.py +282 -0
- huaweicloudsdkosm/v2/model/list_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_messages_request.py +281 -0
- huaweicloudsdkosm/v2/model/list_messages_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_more_instant_messages_request.py +307 -0
- huaweicloudsdkosm/v2/model/list_more_instant_messages_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_new_instant_messages_request.py +252 -0
- huaweicloudsdkosm/v2/model/list_new_instant_messages_response.py +170 -0
- huaweicloudsdkosm/v2/model/list_order_incident_request.py +543 -0
- huaweicloudsdkosm/v2/model/list_order_incident_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_privileges_request.py +194 -0
- huaweicloudsdkosm/v2/model/list_privileges_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_problem_types_request.py +195 -0
- huaweicloudsdkosm/v2/model/list_problem_types_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_product_categories_request.py +195 -0
- huaweicloudsdkosm/v2/model/list_product_categories_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_regions_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_regions_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_relation_request.py +194 -0
- huaweicloudsdkosm/v2/model/list_relation_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_satisfaction_dimensions_request.py +166 -0
- huaweicloudsdkosm/v2/model/list_satisfaction_dimensions_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_severities_request.py +222 -0
- huaweicloudsdkosm/v2/model/list_severities_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_sub_customers_request.py +224 -0
- huaweicloudsdkosm/v2/model/list_sub_customers_response.py +112 -0
- huaweicloudsdkosm/v2/model/list_transport_histories_request.py +366 -0
- huaweicloudsdkosm/v2/model/list_transport_histories_response.py +141 -0
- huaweicloudsdkosm/v2/model/list_unread_new_instant_messages_request.py +223 -0
- huaweicloudsdkosm/v2/model/list_unread_new_instant_messages_response.py +112 -0
- huaweicloudsdkosm/v2/model/operate_authorization_v2_req.py +137 -0
- huaweicloudsdkosm/v2/model/operate_history_session.py +195 -0
- huaweicloudsdkosm/v2/model/operate_log.py +137 -0
- huaweicloudsdkosm/v2/model/partners_service_info.py +224 -0
- huaweicloudsdkosm/v2/model/put_case_ext_param_req.py +166 -0
- huaweicloudsdkosm/v2/model/query_diagnose_items_req.py +137 -0
- huaweicloudsdkosm/v2/model/query_message_info_v2.py +340 -0
- huaweicloudsdkosm/v2/model/query_tsc_diagnose_resources_req.py +137 -0
- huaweicloudsdkosm/v2/model/region.py +137 -0
- huaweicloudsdkosm/v2/model/revoke_message_request.py +222 -0
- huaweicloudsdkosm/v2/model/revoke_message_response.py +141 -0
- huaweicloudsdkosm/v2/model/satisfaction_dimension_simple_info_v2.py +253 -0
- huaweicloudsdkosm/v2/model/send_verify_code_req.py +163 -0
- huaweicloudsdkosm/v2/model/send_verify_codes_request.py +191 -0
- huaweicloudsdkosm/v2/model/send_verify_codes_response.py +141 -0
- huaweicloudsdkosm/v2/model/severity_v2_do.py +166 -0
- huaweicloudsdkosm/v2/model/show_accessory_limits_request.py +166 -0
- huaweicloudsdkosm/v2/model/show_accessory_limits_response.py +108 -0
- huaweicloudsdkosm/v2/model/show_authorization_detail_request.py +223 -0
- huaweicloudsdkosm/v2/model/show_authorization_detail_response.py +605 -0
- huaweicloudsdkosm/v2/model/show_case_detail_request.py +223 -0
- huaweicloudsdkosm/v2/model/show_case_detail_response.py +108 -0
- huaweicloudsdkosm/v2/model/show_case_extends_param_request.py +223 -0
- huaweicloudsdkosm/v2/model/show_case_extends_param_response.py +141 -0
- huaweicloudsdkosm/v2/model/show_case_status_request.py +194 -0
- huaweicloudsdkosm/v2/model/show_case_status_response.py +112 -0
- huaweicloudsdkosm/v2/model/show_configuration_request.py +107 -0
- huaweicloudsdkosm/v2/model/show_configuration_response.py +199 -0
- huaweicloudsdkosm/v2/model/show_customer_privilege_policy_request.py +166 -0
- huaweicloudsdkosm/v2/model/show_customer_privilege_policy_response.py +112 -0
- huaweicloudsdkosm/v2/model/show_download_accessory_url_request.py +193 -0
- huaweicloudsdkosm/v2/model/show_download_accessory_url_response.py +170 -0
- huaweicloudsdkosm/v2/model/show_latest_published_agreement_request.py +195 -0
- huaweicloudsdkosm/v2/model/show_latest_published_agreement_response.py +108 -0
- huaweicloudsdkosm/v2/model/show_login_type_request.py +137 -0
- huaweicloudsdkosm/v2/model/show_login_type_response.py +112 -0
- huaweicloudsdkosm/v2/model/show_partners_cases_privilege_request.py +166 -0
- huaweicloudsdkosm/v2/model/show_partners_cases_privilege_response.py +112 -0
- huaweicloudsdkosm/v2/model/show_partners_service_info_request.py +224 -0
- huaweicloudsdkosm/v2/model/show_partners_service_info_response.py +108 -0
- huaweicloudsdkosm/v2/model/show_signed_latest_published_agreement_request.py +195 -0
- huaweicloudsdkosm/v2/model/show_signed_latest_published_agreement_response.py +112 -0
- huaweicloudsdkosm/v2/model/sign_agreement_req.py +108 -0
- huaweicloudsdkosm/v2/model/sign_published_agreement_request.py +219 -0
- huaweicloudsdkosm/v2/model/sign_published_agreement_response.py +112 -0
- huaweicloudsdkosm/v2/model/simple_accessory_v2.py +137 -0
- huaweicloudsdkosm/v2/model/simple_incident_business_type_v2.py +195 -0
- huaweicloudsdkosm/v2/model/sub_cutomer_info_v2.py +253 -0
- huaweicloudsdkosm/v2/model/submit_diagnose_job_req.py +165 -0
- huaweicloudsdkosm/v2/model/tenant_agree_auth_detail_v2.py +194 -0
- huaweicloudsdkosm/v2/model/tenant_config_v2.py +108 -0
- huaweicloudsdkosm/v2/model/update_authorizations_request.py +248 -0
- huaweicloudsdkosm/v2/model/update_authorizations_response.py +141 -0
- huaweicloudsdkosm/v2/model/update_case_contact_info_req.py +253 -0
- huaweicloudsdkosm/v2/model/update_case_contact_info_request.py +219 -0
- huaweicloudsdkosm/v2/model/update_case_contact_info_response.py +141 -0
- huaweicloudsdkosm/v2/model/update_cases_request.py +247 -0
- huaweicloudsdkosm/v2/model/update_cases_response.py +141 -0
- huaweicloudsdkosm/v2/model/update_labels_req.py +135 -0
- huaweicloudsdkosm/v2/model/update_labels_request.py +219 -0
- huaweicloudsdkosm/v2/model/update_labels_response.py +141 -0
- huaweicloudsdkosm/v2/model/update_new_instant_messages_read_request.py +219 -0
- huaweicloudsdkosm/v2/model/update_new_instant_messages_read_response.py +141 -0
- huaweicloudsdkosm/v2/model/update_unread_new_instant_msg_v2_req.py +108 -0
- huaweicloudsdkosm/v2/model/upload_accessory_request.py +191 -0
- huaweicloudsdkosm/v2/model/upload_accessory_request_body.py +135 -0
- huaweicloudsdkosm/v2/model/upload_accessory_response.py +112 -0
- huaweicloudsdkosm/v2/model/upload_json_accessories_request.py +191 -0
- huaweicloudsdkosm/v2/model/upload_json_accessories_response.py +112 -0
- huaweicloudsdkosm/v2/model/user_instant_incident_msg_v2.py +137 -0
- huaweicloudsdkosm/v2/model/verify_host_v2_req.py +192 -0
- huaweicloudsdkosm/v2/model/verify_verify_code_v2_req.py +250 -0
- huaweicloudsdkosm/v2/model/work_order_operate_v2_req.py +195 -0
- huaweicloudsdkosm/v2/osm_async_client.py +6081 -0
- huaweicloudsdkosm/v2/osm_client.py +6078 -0
- huaweicloudsdkosm/v2/region/__init__.py +0 -0
- huaweicloudsdkosm/v2/region/osm_region.py +31 -0
- huaweicloudsdkosm-3.1.174.dist-info/METADATA +25 -0
- huaweicloudsdkosm-3.1.174.dist-info/RECORD +250 -0
- huaweicloudsdkosm-3.1.174.dist-info/WHEEL +4 -0
- huaweicloudsdkosm-3.1.174.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ListDiagnoseJobResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'status': 'int',
|
|
20
|
+
'error_code': 'str',
|
|
21
|
+
'error_msg': 'str',
|
|
22
|
+
'job_id': 'int',
|
|
23
|
+
'domain_id': 'str',
|
|
24
|
+
'items_result': 'list[ItemResultVo]',
|
|
25
|
+
'create_time': 'int'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'error_code': 'error_code',
|
|
31
|
+
'error_msg': 'error_msg',
|
|
32
|
+
'job_id': 'job_id',
|
|
33
|
+
'domain_id': 'domain_id',
|
|
34
|
+
'items_result': 'items_result',
|
|
35
|
+
'create_time': 'create_time'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, status=None, error_code=None, error_msg=None, job_id=None, domain_id=None, items_result=None, create_time=None):
|
|
39
|
+
r"""ListDiagnoseJobResponse
|
|
40
|
+
|
|
41
|
+
The model defined in huaweicloud sdk
|
|
42
|
+
|
|
43
|
+
:param status: 任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理
|
|
44
|
+
:type status: int
|
|
45
|
+
:param error_code: 错误码
|
|
46
|
+
:type error_code: str
|
|
47
|
+
:param error_msg: 错误描述
|
|
48
|
+
:type error_msg: str
|
|
49
|
+
:param job_id: 任务ID
|
|
50
|
+
:type job_id: int
|
|
51
|
+
:param domain_id: 租户ID
|
|
52
|
+
:type domain_id: str
|
|
53
|
+
:param items_result: 任务的检查项结果
|
|
54
|
+
:type items_result: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`]
|
|
55
|
+
:param create_time: 任务创建时间
|
|
56
|
+
:type create_time: int
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
super().__init__()
|
|
60
|
+
|
|
61
|
+
self._status = None
|
|
62
|
+
self._error_code = None
|
|
63
|
+
self._error_msg = None
|
|
64
|
+
self._job_id = None
|
|
65
|
+
self._domain_id = None
|
|
66
|
+
self._items_result = None
|
|
67
|
+
self._create_time = None
|
|
68
|
+
self.discriminator = None
|
|
69
|
+
|
|
70
|
+
if status is not None:
|
|
71
|
+
self.status = status
|
|
72
|
+
if error_code is not None:
|
|
73
|
+
self.error_code = error_code
|
|
74
|
+
if error_msg is not None:
|
|
75
|
+
self.error_msg = error_msg
|
|
76
|
+
if job_id is not None:
|
|
77
|
+
self.job_id = job_id
|
|
78
|
+
if domain_id is not None:
|
|
79
|
+
self.domain_id = domain_id
|
|
80
|
+
if items_result is not None:
|
|
81
|
+
self.items_result = items_result
|
|
82
|
+
if create_time is not None:
|
|
83
|
+
self.create_time = create_time
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def status(self):
|
|
87
|
+
r"""Gets the status of this ListDiagnoseJobResponse.
|
|
88
|
+
|
|
89
|
+
任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理
|
|
90
|
+
|
|
91
|
+
:return: The status of this ListDiagnoseJobResponse.
|
|
92
|
+
:rtype: int
|
|
93
|
+
"""
|
|
94
|
+
return self._status
|
|
95
|
+
|
|
96
|
+
@status.setter
|
|
97
|
+
def status(self, status):
|
|
98
|
+
r"""Sets the status of this ListDiagnoseJobResponse.
|
|
99
|
+
|
|
100
|
+
任务执行的状态 0:准备中,2:执行中,3:完成,4:失败,7:未执行,8:不可用;用于判断任务的是否执行结束,3就是结束了,4,7,8说明是TSC诊断脚本有问题,OSM这边无法处理
|
|
101
|
+
|
|
102
|
+
:param status: The status of this ListDiagnoseJobResponse.
|
|
103
|
+
:type status: int
|
|
104
|
+
"""
|
|
105
|
+
self._status = status
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def error_code(self):
|
|
109
|
+
r"""Gets the error_code of this ListDiagnoseJobResponse.
|
|
110
|
+
|
|
111
|
+
错误码
|
|
112
|
+
|
|
113
|
+
:return: The error_code of this ListDiagnoseJobResponse.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._error_code
|
|
117
|
+
|
|
118
|
+
@error_code.setter
|
|
119
|
+
def error_code(self, error_code):
|
|
120
|
+
r"""Sets the error_code of this ListDiagnoseJobResponse.
|
|
121
|
+
|
|
122
|
+
错误码
|
|
123
|
+
|
|
124
|
+
:param error_code: The error_code of this ListDiagnoseJobResponse.
|
|
125
|
+
:type error_code: str
|
|
126
|
+
"""
|
|
127
|
+
self._error_code = error_code
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def error_msg(self):
|
|
131
|
+
r"""Gets the error_msg of this ListDiagnoseJobResponse.
|
|
132
|
+
|
|
133
|
+
错误描述
|
|
134
|
+
|
|
135
|
+
:return: The error_msg of this ListDiagnoseJobResponse.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._error_msg
|
|
139
|
+
|
|
140
|
+
@error_msg.setter
|
|
141
|
+
def error_msg(self, error_msg):
|
|
142
|
+
r"""Sets the error_msg of this ListDiagnoseJobResponse.
|
|
143
|
+
|
|
144
|
+
错误描述
|
|
145
|
+
|
|
146
|
+
:param error_msg: The error_msg of this ListDiagnoseJobResponse.
|
|
147
|
+
:type error_msg: str
|
|
148
|
+
"""
|
|
149
|
+
self._error_msg = error_msg
|
|
150
|
+
|
|
151
|
+
@property
|
|
152
|
+
def job_id(self):
|
|
153
|
+
r"""Gets the job_id of this ListDiagnoseJobResponse.
|
|
154
|
+
|
|
155
|
+
任务ID
|
|
156
|
+
|
|
157
|
+
:return: The job_id of this ListDiagnoseJobResponse.
|
|
158
|
+
:rtype: int
|
|
159
|
+
"""
|
|
160
|
+
return self._job_id
|
|
161
|
+
|
|
162
|
+
@job_id.setter
|
|
163
|
+
def job_id(self, job_id):
|
|
164
|
+
r"""Sets the job_id of this ListDiagnoseJobResponse.
|
|
165
|
+
|
|
166
|
+
任务ID
|
|
167
|
+
|
|
168
|
+
:param job_id: The job_id of this ListDiagnoseJobResponse.
|
|
169
|
+
:type job_id: int
|
|
170
|
+
"""
|
|
171
|
+
self._job_id = job_id
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def domain_id(self):
|
|
175
|
+
r"""Gets the domain_id of this ListDiagnoseJobResponse.
|
|
176
|
+
|
|
177
|
+
租户ID
|
|
178
|
+
|
|
179
|
+
:return: The domain_id of this ListDiagnoseJobResponse.
|
|
180
|
+
:rtype: str
|
|
181
|
+
"""
|
|
182
|
+
return self._domain_id
|
|
183
|
+
|
|
184
|
+
@domain_id.setter
|
|
185
|
+
def domain_id(self, domain_id):
|
|
186
|
+
r"""Sets the domain_id of this ListDiagnoseJobResponse.
|
|
187
|
+
|
|
188
|
+
租户ID
|
|
189
|
+
|
|
190
|
+
:param domain_id: The domain_id of this ListDiagnoseJobResponse.
|
|
191
|
+
:type domain_id: str
|
|
192
|
+
"""
|
|
193
|
+
self._domain_id = domain_id
|
|
194
|
+
|
|
195
|
+
@property
|
|
196
|
+
def items_result(self):
|
|
197
|
+
r"""Gets the items_result of this ListDiagnoseJobResponse.
|
|
198
|
+
|
|
199
|
+
任务的检查项结果
|
|
200
|
+
|
|
201
|
+
:return: The items_result of this ListDiagnoseJobResponse.
|
|
202
|
+
:rtype: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`]
|
|
203
|
+
"""
|
|
204
|
+
return self._items_result
|
|
205
|
+
|
|
206
|
+
@items_result.setter
|
|
207
|
+
def items_result(self, items_result):
|
|
208
|
+
r"""Sets the items_result of this ListDiagnoseJobResponse.
|
|
209
|
+
|
|
210
|
+
任务的检查项结果
|
|
211
|
+
|
|
212
|
+
:param items_result: The items_result of this ListDiagnoseJobResponse.
|
|
213
|
+
:type items_result: list[:class:`huaweicloudsdkosm.v2.ItemResultVo`]
|
|
214
|
+
"""
|
|
215
|
+
self._items_result = items_result
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def create_time(self):
|
|
219
|
+
r"""Gets the create_time of this ListDiagnoseJobResponse.
|
|
220
|
+
|
|
221
|
+
任务创建时间
|
|
222
|
+
|
|
223
|
+
:return: The create_time of this ListDiagnoseJobResponse.
|
|
224
|
+
:rtype: int
|
|
225
|
+
"""
|
|
226
|
+
return self._create_time
|
|
227
|
+
|
|
228
|
+
@create_time.setter
|
|
229
|
+
def create_time(self, create_time):
|
|
230
|
+
r"""Sets the create_time of this ListDiagnoseJobResponse.
|
|
231
|
+
|
|
232
|
+
任务创建时间
|
|
233
|
+
|
|
234
|
+
:param create_time: The create_time of this ListDiagnoseJobResponse.
|
|
235
|
+
:type create_time: int
|
|
236
|
+
"""
|
|
237
|
+
self._create_time = create_time
|
|
238
|
+
|
|
239
|
+
def to_dict(self):
|
|
240
|
+
import warnings
|
|
241
|
+
warnings.warn("ListDiagnoseJobResponse.to_dict() is deprecated and no longer maintained, "
|
|
242
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
243
|
+
result = {}
|
|
244
|
+
|
|
245
|
+
for attr, _ in self.openapi_types.items():
|
|
246
|
+
value = getattr(self, attr)
|
|
247
|
+
if isinstance(value, list):
|
|
248
|
+
result[attr] = list(map(
|
|
249
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
250
|
+
value
|
|
251
|
+
))
|
|
252
|
+
elif hasattr(value, "to_dict"):
|
|
253
|
+
result[attr] = value.to_dict()
|
|
254
|
+
elif isinstance(value, dict):
|
|
255
|
+
result[attr] = dict(map(
|
|
256
|
+
lambda item: (item[0], item[1].to_dict())
|
|
257
|
+
if hasattr(item[1], "to_dict") else item,
|
|
258
|
+
value.items()
|
|
259
|
+
))
|
|
260
|
+
else:
|
|
261
|
+
if attr in self.sensitive_list:
|
|
262
|
+
result[attr] = "****"
|
|
263
|
+
else:
|
|
264
|
+
result[attr] = value
|
|
265
|
+
|
|
266
|
+
return result
|
|
267
|
+
|
|
268
|
+
def to_str(self):
|
|
269
|
+
"""Returns the string representation of the model"""
|
|
270
|
+
import simplejson as json
|
|
271
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
272
|
+
|
|
273
|
+
def __repr__(self):
|
|
274
|
+
"""For `print`"""
|
|
275
|
+
return self.to_str()
|
|
276
|
+
|
|
277
|
+
def __eq__(self, other):
|
|
278
|
+
"""Returns true if both objects are equal"""
|
|
279
|
+
if not isinstance(other, ListDiagnoseJobResponse):
|
|
280
|
+
return False
|
|
281
|
+
|
|
282
|
+
return self.__dict__ == other.__dict__
|
|
283
|
+
|
|
284
|
+
def __ne__(self, other):
|
|
285
|
+
"""Returns true if both objects are not equal"""
|
|
286
|
+
return not self == other
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListDiagnoseRecordsRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'page_size': 'int',
|
|
19
|
+
'page_no': 'int',
|
|
20
|
+
'type': 'int'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'page_size': 'page_size',
|
|
25
|
+
'page_no': 'page_no',
|
|
26
|
+
'type': 'type'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, page_size=None, page_no=None, type=None):
|
|
30
|
+
r"""ListDiagnoseRecordsRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param page_size: 单页大小
|
|
35
|
+
:type page_size: int
|
|
36
|
+
:param page_no: 页码
|
|
37
|
+
:type page_no: int
|
|
38
|
+
:param type: 任务类型,例如 ecs诊断任务 1,rds诊断任务 2
|
|
39
|
+
:type type: int
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._page_size = None
|
|
45
|
+
self._page_no = None
|
|
46
|
+
self._type = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if page_size is not None:
|
|
50
|
+
self.page_size = page_size
|
|
51
|
+
if page_no is not None:
|
|
52
|
+
self.page_no = page_no
|
|
53
|
+
if type is not None:
|
|
54
|
+
self.type = type
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def page_size(self):
|
|
58
|
+
r"""Gets the page_size of this ListDiagnoseRecordsRequest.
|
|
59
|
+
|
|
60
|
+
单页大小
|
|
61
|
+
|
|
62
|
+
:return: The page_size of this ListDiagnoseRecordsRequest.
|
|
63
|
+
:rtype: int
|
|
64
|
+
"""
|
|
65
|
+
return self._page_size
|
|
66
|
+
|
|
67
|
+
@page_size.setter
|
|
68
|
+
def page_size(self, page_size):
|
|
69
|
+
r"""Sets the page_size of this ListDiagnoseRecordsRequest.
|
|
70
|
+
|
|
71
|
+
单页大小
|
|
72
|
+
|
|
73
|
+
:param page_size: The page_size of this ListDiagnoseRecordsRequest.
|
|
74
|
+
:type page_size: int
|
|
75
|
+
"""
|
|
76
|
+
self._page_size = page_size
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def page_no(self):
|
|
80
|
+
r"""Gets the page_no of this ListDiagnoseRecordsRequest.
|
|
81
|
+
|
|
82
|
+
页码
|
|
83
|
+
|
|
84
|
+
:return: The page_no of this ListDiagnoseRecordsRequest.
|
|
85
|
+
:rtype: int
|
|
86
|
+
"""
|
|
87
|
+
return self._page_no
|
|
88
|
+
|
|
89
|
+
@page_no.setter
|
|
90
|
+
def page_no(self, page_no):
|
|
91
|
+
r"""Sets the page_no of this ListDiagnoseRecordsRequest.
|
|
92
|
+
|
|
93
|
+
页码
|
|
94
|
+
|
|
95
|
+
:param page_no: The page_no of this ListDiagnoseRecordsRequest.
|
|
96
|
+
:type page_no: int
|
|
97
|
+
"""
|
|
98
|
+
self._page_no = page_no
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def type(self):
|
|
102
|
+
r"""Gets the type of this ListDiagnoseRecordsRequest.
|
|
103
|
+
|
|
104
|
+
任务类型,例如 ecs诊断任务 1,rds诊断任务 2
|
|
105
|
+
|
|
106
|
+
:return: The type of this ListDiagnoseRecordsRequest.
|
|
107
|
+
:rtype: int
|
|
108
|
+
"""
|
|
109
|
+
return self._type
|
|
110
|
+
|
|
111
|
+
@type.setter
|
|
112
|
+
def type(self, type):
|
|
113
|
+
r"""Sets the type of this ListDiagnoseRecordsRequest.
|
|
114
|
+
|
|
115
|
+
任务类型,例如 ecs诊断任务 1,rds诊断任务 2
|
|
116
|
+
|
|
117
|
+
:param type: The type of this ListDiagnoseRecordsRequest.
|
|
118
|
+
:type type: int
|
|
119
|
+
"""
|
|
120
|
+
self._type = type
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, ListDiagnoseRecordsRequest):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ListDiagnoseRecordsResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'error_code': 'str',
|
|
20
|
+
'error_msg': 'str',
|
|
21
|
+
'total_count': 'int',
|
|
22
|
+
'records': 'list[DiagnoseRecordVo]'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'error_code': 'error_code',
|
|
27
|
+
'error_msg': 'error_msg',
|
|
28
|
+
'total_count': 'total_count',
|
|
29
|
+
'records': 'records'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, error_code=None, error_msg=None, total_count=None, records=None):
|
|
33
|
+
r"""ListDiagnoseRecordsResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param error_code: 错误码
|
|
38
|
+
:type error_code: str
|
|
39
|
+
:param error_msg: 错误描述
|
|
40
|
+
:type error_msg: str
|
|
41
|
+
:param total_count: 总条数
|
|
42
|
+
:type total_count: int
|
|
43
|
+
:param records: 获取的诊断记录列表
|
|
44
|
+
:type records: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`]
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
super().__init__()
|
|
48
|
+
|
|
49
|
+
self._error_code = None
|
|
50
|
+
self._error_msg = None
|
|
51
|
+
self._total_count = None
|
|
52
|
+
self._records = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if error_code is not None:
|
|
56
|
+
self.error_code = error_code
|
|
57
|
+
if error_msg is not None:
|
|
58
|
+
self.error_msg = error_msg
|
|
59
|
+
if total_count is not None:
|
|
60
|
+
self.total_count = total_count
|
|
61
|
+
if records is not None:
|
|
62
|
+
self.records = records
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
def error_code(self):
|
|
66
|
+
r"""Gets the error_code of this ListDiagnoseRecordsResponse.
|
|
67
|
+
|
|
68
|
+
错误码
|
|
69
|
+
|
|
70
|
+
:return: The error_code of this ListDiagnoseRecordsResponse.
|
|
71
|
+
:rtype: str
|
|
72
|
+
"""
|
|
73
|
+
return self._error_code
|
|
74
|
+
|
|
75
|
+
@error_code.setter
|
|
76
|
+
def error_code(self, error_code):
|
|
77
|
+
r"""Sets the error_code of this ListDiagnoseRecordsResponse.
|
|
78
|
+
|
|
79
|
+
错误码
|
|
80
|
+
|
|
81
|
+
:param error_code: The error_code of this ListDiagnoseRecordsResponse.
|
|
82
|
+
:type error_code: str
|
|
83
|
+
"""
|
|
84
|
+
self._error_code = error_code
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def error_msg(self):
|
|
88
|
+
r"""Gets the error_msg of this ListDiagnoseRecordsResponse.
|
|
89
|
+
|
|
90
|
+
错误描述
|
|
91
|
+
|
|
92
|
+
:return: The error_msg of this ListDiagnoseRecordsResponse.
|
|
93
|
+
:rtype: str
|
|
94
|
+
"""
|
|
95
|
+
return self._error_msg
|
|
96
|
+
|
|
97
|
+
@error_msg.setter
|
|
98
|
+
def error_msg(self, error_msg):
|
|
99
|
+
r"""Sets the error_msg of this ListDiagnoseRecordsResponse.
|
|
100
|
+
|
|
101
|
+
错误描述
|
|
102
|
+
|
|
103
|
+
:param error_msg: The error_msg of this ListDiagnoseRecordsResponse.
|
|
104
|
+
:type error_msg: str
|
|
105
|
+
"""
|
|
106
|
+
self._error_msg = error_msg
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def total_count(self):
|
|
110
|
+
r"""Gets the total_count of this ListDiagnoseRecordsResponse.
|
|
111
|
+
|
|
112
|
+
总条数
|
|
113
|
+
|
|
114
|
+
:return: The total_count of this ListDiagnoseRecordsResponse.
|
|
115
|
+
:rtype: int
|
|
116
|
+
"""
|
|
117
|
+
return self._total_count
|
|
118
|
+
|
|
119
|
+
@total_count.setter
|
|
120
|
+
def total_count(self, total_count):
|
|
121
|
+
r"""Sets the total_count of this ListDiagnoseRecordsResponse.
|
|
122
|
+
|
|
123
|
+
总条数
|
|
124
|
+
|
|
125
|
+
:param total_count: The total_count of this ListDiagnoseRecordsResponse.
|
|
126
|
+
:type total_count: int
|
|
127
|
+
"""
|
|
128
|
+
self._total_count = total_count
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def records(self):
|
|
132
|
+
r"""Gets the records of this ListDiagnoseRecordsResponse.
|
|
133
|
+
|
|
134
|
+
获取的诊断记录列表
|
|
135
|
+
|
|
136
|
+
:return: The records of this ListDiagnoseRecordsResponse.
|
|
137
|
+
:rtype: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`]
|
|
138
|
+
"""
|
|
139
|
+
return self._records
|
|
140
|
+
|
|
141
|
+
@records.setter
|
|
142
|
+
def records(self, records):
|
|
143
|
+
r"""Sets the records of this ListDiagnoseRecordsResponse.
|
|
144
|
+
|
|
145
|
+
获取的诊断记录列表
|
|
146
|
+
|
|
147
|
+
:param records: The records of this ListDiagnoseRecordsResponse.
|
|
148
|
+
:type records: list[:class:`huaweicloudsdkosm.v2.DiagnoseRecordVo`]
|
|
149
|
+
"""
|
|
150
|
+
self._records = records
|
|
151
|
+
|
|
152
|
+
def to_dict(self):
|
|
153
|
+
import warnings
|
|
154
|
+
warnings.warn("ListDiagnoseRecordsResponse.to_dict() is deprecated and no longer maintained, "
|
|
155
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in self.openapi_types.items():
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
if attr in self.sensitive_list:
|
|
175
|
+
result[attr] = "****"
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
import simplejson as json
|
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, ListDiagnoseRecordsResponse):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|