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,137 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class OperateLog:
|
|
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
|
+
'oper': 'str',
|
|
19
|
+
'operate_time': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'oper': 'oper',
|
|
24
|
+
'operate_time': 'operate_time'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, oper=None, operate_time=None):
|
|
28
|
+
r"""OperateLog
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param oper: 操作指令
|
|
33
|
+
:type oper: str
|
|
34
|
+
:param operate_time: 操作时间
|
|
35
|
+
:type operate_time: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._oper = None
|
|
41
|
+
self._operate_time = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
if oper is not None:
|
|
45
|
+
self.oper = oper
|
|
46
|
+
if operate_time is not None:
|
|
47
|
+
self.operate_time = operate_time
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def oper(self):
|
|
51
|
+
r"""Gets the oper of this OperateLog.
|
|
52
|
+
|
|
53
|
+
操作指令
|
|
54
|
+
|
|
55
|
+
:return: The oper of this OperateLog.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._oper
|
|
59
|
+
|
|
60
|
+
@oper.setter
|
|
61
|
+
def oper(self, oper):
|
|
62
|
+
r"""Sets the oper of this OperateLog.
|
|
63
|
+
|
|
64
|
+
操作指令
|
|
65
|
+
|
|
66
|
+
:param oper: The oper of this OperateLog.
|
|
67
|
+
:type oper: str
|
|
68
|
+
"""
|
|
69
|
+
self._oper = oper
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def operate_time(self):
|
|
73
|
+
r"""Gets the operate_time of this OperateLog.
|
|
74
|
+
|
|
75
|
+
操作时间
|
|
76
|
+
|
|
77
|
+
:return: The operate_time of this OperateLog.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._operate_time
|
|
81
|
+
|
|
82
|
+
@operate_time.setter
|
|
83
|
+
def operate_time(self, operate_time):
|
|
84
|
+
r"""Sets the operate_time of this OperateLog.
|
|
85
|
+
|
|
86
|
+
操作时间
|
|
87
|
+
|
|
88
|
+
:param operate_time: The operate_time of this OperateLog.
|
|
89
|
+
:type operate_time: str
|
|
90
|
+
"""
|
|
91
|
+
self._operate_time = operate_time
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in self.openapi_types.items():
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
if attr in self.sensitive_list:
|
|
113
|
+
result[attr] = "****"
|
|
114
|
+
else:
|
|
115
|
+
result[attr] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
import simplejson as json
|
|
122
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
123
|
+
|
|
124
|
+
def __repr__(self):
|
|
125
|
+
"""For `print`"""
|
|
126
|
+
return self.to_str()
|
|
127
|
+
|
|
128
|
+
def __eq__(self, other):
|
|
129
|
+
"""Returns true if both objects are equal"""
|
|
130
|
+
if not isinstance(other, OperateLog):
|
|
131
|
+
return False
|
|
132
|
+
|
|
133
|
+
return self.__dict__ == other.__dict__
|
|
134
|
+
|
|
135
|
+
def __ne__(self, other):
|
|
136
|
+
"""Returns true if both objects are not equal"""
|
|
137
|
+
return not self == other
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class PartnersServiceInfo:
|
|
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
|
+
'customer_id': 'str',
|
|
19
|
+
'customer_name': 'str',
|
|
20
|
+
'service_time_zone': 'str',
|
|
21
|
+
'service_time_day': 'str',
|
|
22
|
+
'service_time_hour': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'customer_id': 'customer_id',
|
|
27
|
+
'customer_name': 'customer_name',
|
|
28
|
+
'service_time_zone': 'service_time_zone',
|
|
29
|
+
'service_time_day': 'service_time_day',
|
|
30
|
+
'service_time_hour': 'service_time_hour'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, customer_id=None, customer_name=None, service_time_zone=None, service_time_day=None, service_time_hour=None):
|
|
34
|
+
r"""PartnersServiceInfo
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param customer_id: 客户id
|
|
39
|
+
:type customer_id: str
|
|
40
|
+
:param customer_name: 客户名称
|
|
41
|
+
:type customer_name: str
|
|
42
|
+
:param service_time_zone: 服务时区,GMT+08:00
|
|
43
|
+
:type service_time_zone: str
|
|
44
|
+
:param service_time_day: 每周服务天数
|
|
45
|
+
:type service_time_day: str
|
|
46
|
+
:param service_time_hour: 每天服务小时
|
|
47
|
+
:type service_time_hour: str
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
self._customer_id = None
|
|
53
|
+
self._customer_name = None
|
|
54
|
+
self._service_time_zone = None
|
|
55
|
+
self._service_time_day = None
|
|
56
|
+
self._service_time_hour = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
if customer_id is not None:
|
|
60
|
+
self.customer_id = customer_id
|
|
61
|
+
if customer_name is not None:
|
|
62
|
+
self.customer_name = customer_name
|
|
63
|
+
if service_time_zone is not None:
|
|
64
|
+
self.service_time_zone = service_time_zone
|
|
65
|
+
if service_time_day is not None:
|
|
66
|
+
self.service_time_day = service_time_day
|
|
67
|
+
if service_time_hour is not None:
|
|
68
|
+
self.service_time_hour = service_time_hour
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def customer_id(self):
|
|
72
|
+
r"""Gets the customer_id of this PartnersServiceInfo.
|
|
73
|
+
|
|
74
|
+
客户id
|
|
75
|
+
|
|
76
|
+
:return: The customer_id of this PartnersServiceInfo.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._customer_id
|
|
80
|
+
|
|
81
|
+
@customer_id.setter
|
|
82
|
+
def customer_id(self, customer_id):
|
|
83
|
+
r"""Sets the customer_id of this PartnersServiceInfo.
|
|
84
|
+
|
|
85
|
+
客户id
|
|
86
|
+
|
|
87
|
+
:param customer_id: The customer_id of this PartnersServiceInfo.
|
|
88
|
+
:type customer_id: str
|
|
89
|
+
"""
|
|
90
|
+
self._customer_id = customer_id
|
|
91
|
+
|
|
92
|
+
@property
|
|
93
|
+
def customer_name(self):
|
|
94
|
+
r"""Gets the customer_name of this PartnersServiceInfo.
|
|
95
|
+
|
|
96
|
+
客户名称
|
|
97
|
+
|
|
98
|
+
:return: The customer_name of this PartnersServiceInfo.
|
|
99
|
+
:rtype: str
|
|
100
|
+
"""
|
|
101
|
+
return self._customer_name
|
|
102
|
+
|
|
103
|
+
@customer_name.setter
|
|
104
|
+
def customer_name(self, customer_name):
|
|
105
|
+
r"""Sets the customer_name of this PartnersServiceInfo.
|
|
106
|
+
|
|
107
|
+
客户名称
|
|
108
|
+
|
|
109
|
+
:param customer_name: The customer_name of this PartnersServiceInfo.
|
|
110
|
+
:type customer_name: str
|
|
111
|
+
"""
|
|
112
|
+
self._customer_name = customer_name
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def service_time_zone(self):
|
|
116
|
+
r"""Gets the service_time_zone of this PartnersServiceInfo.
|
|
117
|
+
|
|
118
|
+
服务时区,GMT+08:00
|
|
119
|
+
|
|
120
|
+
:return: The service_time_zone of this PartnersServiceInfo.
|
|
121
|
+
:rtype: str
|
|
122
|
+
"""
|
|
123
|
+
return self._service_time_zone
|
|
124
|
+
|
|
125
|
+
@service_time_zone.setter
|
|
126
|
+
def service_time_zone(self, service_time_zone):
|
|
127
|
+
r"""Sets the service_time_zone of this PartnersServiceInfo.
|
|
128
|
+
|
|
129
|
+
服务时区,GMT+08:00
|
|
130
|
+
|
|
131
|
+
:param service_time_zone: The service_time_zone of this PartnersServiceInfo.
|
|
132
|
+
:type service_time_zone: str
|
|
133
|
+
"""
|
|
134
|
+
self._service_time_zone = service_time_zone
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def service_time_day(self):
|
|
138
|
+
r"""Gets the service_time_day of this PartnersServiceInfo.
|
|
139
|
+
|
|
140
|
+
每周服务天数
|
|
141
|
+
|
|
142
|
+
:return: The service_time_day of this PartnersServiceInfo.
|
|
143
|
+
:rtype: str
|
|
144
|
+
"""
|
|
145
|
+
return self._service_time_day
|
|
146
|
+
|
|
147
|
+
@service_time_day.setter
|
|
148
|
+
def service_time_day(self, service_time_day):
|
|
149
|
+
r"""Sets the service_time_day of this PartnersServiceInfo.
|
|
150
|
+
|
|
151
|
+
每周服务天数
|
|
152
|
+
|
|
153
|
+
:param service_time_day: The service_time_day of this PartnersServiceInfo.
|
|
154
|
+
:type service_time_day: str
|
|
155
|
+
"""
|
|
156
|
+
self._service_time_day = service_time_day
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def service_time_hour(self):
|
|
160
|
+
r"""Gets the service_time_hour of this PartnersServiceInfo.
|
|
161
|
+
|
|
162
|
+
每天服务小时
|
|
163
|
+
|
|
164
|
+
:return: The service_time_hour of this PartnersServiceInfo.
|
|
165
|
+
:rtype: str
|
|
166
|
+
"""
|
|
167
|
+
return self._service_time_hour
|
|
168
|
+
|
|
169
|
+
@service_time_hour.setter
|
|
170
|
+
def service_time_hour(self, service_time_hour):
|
|
171
|
+
r"""Sets the service_time_hour of this PartnersServiceInfo.
|
|
172
|
+
|
|
173
|
+
每天服务小时
|
|
174
|
+
|
|
175
|
+
:param service_time_hour: The service_time_hour of this PartnersServiceInfo.
|
|
176
|
+
:type service_time_hour: str
|
|
177
|
+
"""
|
|
178
|
+
self._service_time_hour = service_time_hour
|
|
179
|
+
|
|
180
|
+
def to_dict(self):
|
|
181
|
+
result = {}
|
|
182
|
+
|
|
183
|
+
for attr, _ in self.openapi_types.items():
|
|
184
|
+
value = getattr(self, attr)
|
|
185
|
+
if isinstance(value, list):
|
|
186
|
+
result[attr] = list(map(
|
|
187
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
188
|
+
value
|
|
189
|
+
))
|
|
190
|
+
elif hasattr(value, "to_dict"):
|
|
191
|
+
result[attr] = value.to_dict()
|
|
192
|
+
elif isinstance(value, dict):
|
|
193
|
+
result[attr] = dict(map(
|
|
194
|
+
lambda item: (item[0], item[1].to_dict())
|
|
195
|
+
if hasattr(item[1], "to_dict") else item,
|
|
196
|
+
value.items()
|
|
197
|
+
))
|
|
198
|
+
else:
|
|
199
|
+
if attr in self.sensitive_list:
|
|
200
|
+
result[attr] = "****"
|
|
201
|
+
else:
|
|
202
|
+
result[attr] = value
|
|
203
|
+
|
|
204
|
+
return result
|
|
205
|
+
|
|
206
|
+
def to_str(self):
|
|
207
|
+
"""Returns the string representation of the model"""
|
|
208
|
+
import simplejson as json
|
|
209
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, PartnersServiceInfo):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.__dict__ == other.__dict__
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
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 PutCaseExtParamReq:
|
|
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
|
+
'group_id': 'str',
|
|
19
|
+
'message_id': 'str',
|
|
20
|
+
'extends_map': 'dict(str, object)'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'group_id': 'group_id',
|
|
25
|
+
'message_id': 'message_id',
|
|
26
|
+
'extends_map': 'extends_map'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, group_id=None, message_id=None, extends_map=None):
|
|
30
|
+
r"""PutCaseExtParamReq
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param group_id: 华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
35
|
+
:type group_id: str
|
|
36
|
+
:param message_id: 消息id
|
|
37
|
+
:type message_id: str
|
|
38
|
+
:param extends_map: 扩展参数
|
|
39
|
+
:type extends_map: dict(str, object)
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._group_id = None
|
|
45
|
+
self._message_id = None
|
|
46
|
+
self._extends_map = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if group_id is not None:
|
|
50
|
+
self.group_id = group_id
|
|
51
|
+
if message_id is not None:
|
|
52
|
+
self.message_id = message_id
|
|
53
|
+
if extends_map is not None:
|
|
54
|
+
self.extends_map = extends_map
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def group_id(self):
|
|
58
|
+
r"""Gets the group_id of this PutCaseExtParamReq.
|
|
59
|
+
|
|
60
|
+
华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
61
|
+
|
|
62
|
+
:return: The group_id of this PutCaseExtParamReq.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._group_id
|
|
66
|
+
|
|
67
|
+
@group_id.setter
|
|
68
|
+
def group_id(self, group_id):
|
|
69
|
+
r"""Sets the group_id of this PutCaseExtParamReq.
|
|
70
|
+
|
|
71
|
+
华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
72
|
+
|
|
73
|
+
:param group_id: The group_id of this PutCaseExtParamReq.
|
|
74
|
+
:type group_id: str
|
|
75
|
+
"""
|
|
76
|
+
self._group_id = group_id
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def message_id(self):
|
|
80
|
+
r"""Gets the message_id of this PutCaseExtParamReq.
|
|
81
|
+
|
|
82
|
+
消息id
|
|
83
|
+
|
|
84
|
+
:return: The message_id of this PutCaseExtParamReq.
|
|
85
|
+
:rtype: str
|
|
86
|
+
"""
|
|
87
|
+
return self._message_id
|
|
88
|
+
|
|
89
|
+
@message_id.setter
|
|
90
|
+
def message_id(self, message_id):
|
|
91
|
+
r"""Sets the message_id of this PutCaseExtParamReq.
|
|
92
|
+
|
|
93
|
+
消息id
|
|
94
|
+
|
|
95
|
+
:param message_id: The message_id of this PutCaseExtParamReq.
|
|
96
|
+
:type message_id: str
|
|
97
|
+
"""
|
|
98
|
+
self._message_id = message_id
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def extends_map(self):
|
|
102
|
+
r"""Gets the extends_map of this PutCaseExtParamReq.
|
|
103
|
+
|
|
104
|
+
扩展参数
|
|
105
|
+
|
|
106
|
+
:return: The extends_map of this PutCaseExtParamReq.
|
|
107
|
+
:rtype: dict(str, object)
|
|
108
|
+
"""
|
|
109
|
+
return self._extends_map
|
|
110
|
+
|
|
111
|
+
@extends_map.setter
|
|
112
|
+
def extends_map(self, extends_map):
|
|
113
|
+
r"""Sets the extends_map of this PutCaseExtParamReq.
|
|
114
|
+
|
|
115
|
+
扩展参数
|
|
116
|
+
|
|
117
|
+
:param extends_map: The extends_map of this PutCaseExtParamReq.
|
|
118
|
+
:type extends_map: dict(str, object)
|
|
119
|
+
"""
|
|
120
|
+
self._extends_map = extends_map
|
|
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, PutCaseExtParamReq):
|
|
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,137 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class QueryDiagnoseItemsReq:
|
|
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
|
+
'job_id': 'str',
|
|
19
|
+
'item_ids': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'job_id': 'job_id',
|
|
24
|
+
'item_ids': 'item_ids'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, job_id=None, item_ids=None):
|
|
28
|
+
r"""QueryDiagnoseItemsReq
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param job_id: job id
|
|
33
|
+
:type job_id: str
|
|
34
|
+
:param item_ids: 诊断项id列表
|
|
35
|
+
:type item_ids: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._job_id = None
|
|
41
|
+
self._item_ids = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
if job_id is not None:
|
|
45
|
+
self.job_id = job_id
|
|
46
|
+
if item_ids is not None:
|
|
47
|
+
self.item_ids = item_ids
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def job_id(self):
|
|
51
|
+
r"""Gets the job_id of this QueryDiagnoseItemsReq.
|
|
52
|
+
|
|
53
|
+
job id
|
|
54
|
+
|
|
55
|
+
:return: The job_id of this QueryDiagnoseItemsReq.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._job_id
|
|
59
|
+
|
|
60
|
+
@job_id.setter
|
|
61
|
+
def job_id(self, job_id):
|
|
62
|
+
r"""Sets the job_id of this QueryDiagnoseItemsReq.
|
|
63
|
+
|
|
64
|
+
job id
|
|
65
|
+
|
|
66
|
+
:param job_id: The job_id of this QueryDiagnoseItemsReq.
|
|
67
|
+
:type job_id: str
|
|
68
|
+
"""
|
|
69
|
+
self._job_id = job_id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def item_ids(self):
|
|
73
|
+
r"""Gets the item_ids of this QueryDiagnoseItemsReq.
|
|
74
|
+
|
|
75
|
+
诊断项id列表
|
|
76
|
+
|
|
77
|
+
:return: The item_ids of this QueryDiagnoseItemsReq.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._item_ids
|
|
81
|
+
|
|
82
|
+
@item_ids.setter
|
|
83
|
+
def item_ids(self, item_ids):
|
|
84
|
+
r"""Sets the item_ids of this QueryDiagnoseItemsReq.
|
|
85
|
+
|
|
86
|
+
诊断项id列表
|
|
87
|
+
|
|
88
|
+
:param item_ids: The item_ids of this QueryDiagnoseItemsReq.
|
|
89
|
+
:type item_ids: str
|
|
90
|
+
"""
|
|
91
|
+
self._item_ids = item_ids
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in self.openapi_types.items():
|
|
97
|
+
value = getattr(self, attr)
|
|
98
|
+
if isinstance(value, list):
|
|
99
|
+
result[attr] = list(map(
|
|
100
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
101
|
+
value
|
|
102
|
+
))
|
|
103
|
+
elif hasattr(value, "to_dict"):
|
|
104
|
+
result[attr] = value.to_dict()
|
|
105
|
+
elif isinstance(value, dict):
|
|
106
|
+
result[attr] = dict(map(
|
|
107
|
+
lambda item: (item[0], item[1].to_dict())
|
|
108
|
+
if hasattr(item[1], "to_dict") else item,
|
|
109
|
+
value.items()
|
|
110
|
+
))
|
|
111
|
+
else:
|
|
112
|
+
if attr in self.sensitive_list:
|
|
113
|
+
result[attr] = "****"
|
|
114
|
+
else:
|
|
115
|
+
result[attr] = value
|
|
116
|
+
|
|
117
|
+
return result
|
|
118
|
+
|
|
119
|
+
def to_str(self):
|
|
120
|
+
"""Returns the string representation of the model"""
|
|
121
|
+
import simplejson as json
|
|
122
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
123
|
+
|
|
124
|
+
def __repr__(self):
|
|
125
|
+
"""For `print`"""
|
|
126
|
+
return self.to_str()
|
|
127
|
+
|
|
128
|
+
def __eq__(self, other):
|
|
129
|
+
"""Returns true if both objects are equal"""
|
|
130
|
+
if not isinstance(other, QueryDiagnoseItemsReq):
|
|
131
|
+
return False
|
|
132
|
+
|
|
133
|
+
return self.__dict__ == other.__dict__
|
|
134
|
+
|
|
135
|
+
def __ne__(self, other):
|
|
136
|
+
"""Returns true if both objects are not equal"""
|
|
137
|
+
return not self == other
|