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,104 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListDiagnoseResourcesRequest:
|
|
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
|
+
'body': 'QueryTscDiagnoseResourcesReq'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'body': 'body'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, body=None):
|
|
26
|
+
r"""ListDiagnoseResourcesRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param body: Body of the ListDiagnoseResourcesRequest
|
|
31
|
+
:type body: :class:`huaweicloudsdkosm.v2.QueryTscDiagnoseResourcesReq`
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._body = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
if body is not None:
|
|
40
|
+
self.body = body
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def body(self):
|
|
44
|
+
r"""Gets the body of this ListDiagnoseResourcesRequest.
|
|
45
|
+
|
|
46
|
+
:return: The body of this ListDiagnoseResourcesRequest.
|
|
47
|
+
:rtype: :class:`huaweicloudsdkosm.v2.QueryTscDiagnoseResourcesReq`
|
|
48
|
+
"""
|
|
49
|
+
return self._body
|
|
50
|
+
|
|
51
|
+
@body.setter
|
|
52
|
+
def body(self, body):
|
|
53
|
+
r"""Sets the body of this ListDiagnoseResourcesRequest.
|
|
54
|
+
|
|
55
|
+
:param body: The body of this ListDiagnoseResourcesRequest.
|
|
56
|
+
:type body: :class:`huaweicloudsdkosm.v2.QueryTscDiagnoseResourcesReq`
|
|
57
|
+
"""
|
|
58
|
+
self._body = body
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
result = {}
|
|
62
|
+
|
|
63
|
+
for attr, _ in self.openapi_types.items():
|
|
64
|
+
value = getattr(self, attr)
|
|
65
|
+
if isinstance(value, list):
|
|
66
|
+
result[attr] = list(map(
|
|
67
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
68
|
+
value
|
|
69
|
+
))
|
|
70
|
+
elif hasattr(value, "to_dict"):
|
|
71
|
+
result[attr] = value.to_dict()
|
|
72
|
+
elif isinstance(value, dict):
|
|
73
|
+
result[attr] = dict(map(
|
|
74
|
+
lambda item: (item[0], item[1].to_dict())
|
|
75
|
+
if hasattr(item[1], "to_dict") else item,
|
|
76
|
+
value.items()
|
|
77
|
+
))
|
|
78
|
+
else:
|
|
79
|
+
if attr in self.sensitive_list:
|
|
80
|
+
result[attr] = "****"
|
|
81
|
+
else:
|
|
82
|
+
result[attr] = value
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def to_str(self):
|
|
87
|
+
"""Returns the string representation of the model"""
|
|
88
|
+
import simplejson as json
|
|
89
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
90
|
+
|
|
91
|
+
def __repr__(self):
|
|
92
|
+
"""For `print`"""
|
|
93
|
+
return self.to_str()
|
|
94
|
+
|
|
95
|
+
def __eq__(self, other):
|
|
96
|
+
"""Returns true if both objects are equal"""
|
|
97
|
+
if not isinstance(other, ListDiagnoseResourcesRequest):
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
return self.__dict__ == other.__dict__
|
|
101
|
+
|
|
102
|
+
def __ne__(self, other):
|
|
103
|
+
"""Returns true if both objects are not equal"""
|
|
104
|
+
return not self == other
|
|
@@ -0,0 +1,141 @@
|
|
|
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 ListDiagnoseResourcesResponse(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
|
+
'total_count': 'int',
|
|
20
|
+
'result': 'list[DiagnoseResourceVo]'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'total_count': 'total_count',
|
|
25
|
+
'result': 'result'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, total_count=None, result=None):
|
|
29
|
+
r"""ListDiagnoseResourcesResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param total_count: 总数
|
|
34
|
+
:type total_count: int
|
|
35
|
+
:param result: 诊断记录列表
|
|
36
|
+
:type result: list[:class:`huaweicloudsdkosm.v2.DiagnoseResourceVo`]
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._total_count = None
|
|
42
|
+
self._result = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if total_count is not None:
|
|
46
|
+
self.total_count = total_count
|
|
47
|
+
if result is not None:
|
|
48
|
+
self.result = result
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def total_count(self):
|
|
52
|
+
r"""Gets the total_count of this ListDiagnoseResourcesResponse.
|
|
53
|
+
|
|
54
|
+
总数
|
|
55
|
+
|
|
56
|
+
:return: The total_count of this ListDiagnoseResourcesResponse.
|
|
57
|
+
:rtype: int
|
|
58
|
+
"""
|
|
59
|
+
return self._total_count
|
|
60
|
+
|
|
61
|
+
@total_count.setter
|
|
62
|
+
def total_count(self, total_count):
|
|
63
|
+
r"""Sets the total_count of this ListDiagnoseResourcesResponse.
|
|
64
|
+
|
|
65
|
+
总数
|
|
66
|
+
|
|
67
|
+
:param total_count: The total_count of this ListDiagnoseResourcesResponse.
|
|
68
|
+
:type total_count: int
|
|
69
|
+
"""
|
|
70
|
+
self._total_count = total_count
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def result(self):
|
|
74
|
+
r"""Gets the result of this ListDiagnoseResourcesResponse.
|
|
75
|
+
|
|
76
|
+
诊断记录列表
|
|
77
|
+
|
|
78
|
+
:return: The result of this ListDiagnoseResourcesResponse.
|
|
79
|
+
:rtype: list[:class:`huaweicloudsdkosm.v2.DiagnoseResourceVo`]
|
|
80
|
+
"""
|
|
81
|
+
return self._result
|
|
82
|
+
|
|
83
|
+
@result.setter
|
|
84
|
+
def result(self, result):
|
|
85
|
+
r"""Sets the result of this ListDiagnoseResourcesResponse.
|
|
86
|
+
|
|
87
|
+
诊断记录列表
|
|
88
|
+
|
|
89
|
+
:param result: The result of this ListDiagnoseResourcesResponse.
|
|
90
|
+
:type result: list[:class:`huaweicloudsdkosm.v2.DiagnoseResourceVo`]
|
|
91
|
+
"""
|
|
92
|
+
self._result = result
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
import warnings
|
|
96
|
+
warnings.warn("ListDiagnoseResourcesResponse.to_dict() is deprecated and no longer maintained, "
|
|
97
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in self.openapi_types.items():
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, ListDiagnoseResourcesResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
return not self == other
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListExtendsParamsRequest:
|
|
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
|
+
'business_type_id': 'str',
|
|
19
|
+
'incident_sub_type_id': 'str',
|
|
20
|
+
'product_category_id': 'str',
|
|
21
|
+
'x_site': 'int',
|
|
22
|
+
'x_language': 'str',
|
|
23
|
+
'x_time_zone': 'str'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'business_type_id': 'business_type_id',
|
|
28
|
+
'incident_sub_type_id': 'incident_sub_type_id',
|
|
29
|
+
'product_category_id': 'product_category_id',
|
|
30
|
+
'x_site': 'X-Site',
|
|
31
|
+
'x_language': 'X-Language',
|
|
32
|
+
'x_time_zone': 'X-Time-Zone'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, business_type_id=None, incident_sub_type_id=None, product_category_id=None, x_site=None, x_language=None, x_time_zone=None):
|
|
36
|
+
r"""ListExtendsParamsRequest
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param business_type_id: 业务类型id
|
|
41
|
+
:type business_type_id: str
|
|
42
|
+
:param incident_sub_type_id: 工单子类型id
|
|
43
|
+
:type incident_sub_type_id: str
|
|
44
|
+
:param product_category_id: 产品类型id
|
|
45
|
+
:type product_category_id: str
|
|
46
|
+
:param x_site: 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
47
|
+
:type x_site: int
|
|
48
|
+
:param x_language: 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
49
|
+
:type x_language: str
|
|
50
|
+
:param x_time_zone: 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
51
|
+
:type x_time_zone: str
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
self._business_type_id = None
|
|
57
|
+
self._incident_sub_type_id = None
|
|
58
|
+
self._product_category_id = None
|
|
59
|
+
self._x_site = None
|
|
60
|
+
self._x_language = None
|
|
61
|
+
self._x_time_zone = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.business_type_id = business_type_id
|
|
65
|
+
if incident_sub_type_id is not None:
|
|
66
|
+
self.incident_sub_type_id = incident_sub_type_id
|
|
67
|
+
if product_category_id is not None:
|
|
68
|
+
self.product_category_id = product_category_id
|
|
69
|
+
if x_site is not None:
|
|
70
|
+
self.x_site = x_site
|
|
71
|
+
if x_language is not None:
|
|
72
|
+
self.x_language = x_language
|
|
73
|
+
if x_time_zone is not None:
|
|
74
|
+
self.x_time_zone = x_time_zone
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def business_type_id(self):
|
|
78
|
+
r"""Gets the business_type_id of this ListExtendsParamsRequest.
|
|
79
|
+
|
|
80
|
+
业务类型id
|
|
81
|
+
|
|
82
|
+
:return: The business_type_id of this ListExtendsParamsRequest.
|
|
83
|
+
:rtype: str
|
|
84
|
+
"""
|
|
85
|
+
return self._business_type_id
|
|
86
|
+
|
|
87
|
+
@business_type_id.setter
|
|
88
|
+
def business_type_id(self, business_type_id):
|
|
89
|
+
r"""Sets the business_type_id of this ListExtendsParamsRequest.
|
|
90
|
+
|
|
91
|
+
业务类型id
|
|
92
|
+
|
|
93
|
+
:param business_type_id: The business_type_id of this ListExtendsParamsRequest.
|
|
94
|
+
:type business_type_id: str
|
|
95
|
+
"""
|
|
96
|
+
self._business_type_id = business_type_id
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def incident_sub_type_id(self):
|
|
100
|
+
r"""Gets the incident_sub_type_id of this ListExtendsParamsRequest.
|
|
101
|
+
|
|
102
|
+
工单子类型id
|
|
103
|
+
|
|
104
|
+
:return: The incident_sub_type_id of this ListExtendsParamsRequest.
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._incident_sub_type_id
|
|
108
|
+
|
|
109
|
+
@incident_sub_type_id.setter
|
|
110
|
+
def incident_sub_type_id(self, incident_sub_type_id):
|
|
111
|
+
r"""Sets the incident_sub_type_id of this ListExtendsParamsRequest.
|
|
112
|
+
|
|
113
|
+
工单子类型id
|
|
114
|
+
|
|
115
|
+
:param incident_sub_type_id: The incident_sub_type_id of this ListExtendsParamsRequest.
|
|
116
|
+
:type incident_sub_type_id: str
|
|
117
|
+
"""
|
|
118
|
+
self._incident_sub_type_id = incident_sub_type_id
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def product_category_id(self):
|
|
122
|
+
r"""Gets the product_category_id of this ListExtendsParamsRequest.
|
|
123
|
+
|
|
124
|
+
产品类型id
|
|
125
|
+
|
|
126
|
+
:return: The product_category_id of this ListExtendsParamsRequest.
|
|
127
|
+
:rtype: str
|
|
128
|
+
"""
|
|
129
|
+
return self._product_category_id
|
|
130
|
+
|
|
131
|
+
@product_category_id.setter
|
|
132
|
+
def product_category_id(self, product_category_id):
|
|
133
|
+
r"""Sets the product_category_id of this ListExtendsParamsRequest.
|
|
134
|
+
|
|
135
|
+
产品类型id
|
|
136
|
+
|
|
137
|
+
:param product_category_id: The product_category_id of this ListExtendsParamsRequest.
|
|
138
|
+
:type product_category_id: str
|
|
139
|
+
"""
|
|
140
|
+
self._product_category_id = product_category_id
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def x_site(self):
|
|
144
|
+
r"""Gets the x_site of this ListExtendsParamsRequest.
|
|
145
|
+
|
|
146
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
147
|
+
|
|
148
|
+
:return: The x_site of this ListExtendsParamsRequest.
|
|
149
|
+
:rtype: int
|
|
150
|
+
"""
|
|
151
|
+
return self._x_site
|
|
152
|
+
|
|
153
|
+
@x_site.setter
|
|
154
|
+
def x_site(self, x_site):
|
|
155
|
+
r"""Sets the x_site of this ListExtendsParamsRequest.
|
|
156
|
+
|
|
157
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
158
|
+
|
|
159
|
+
:param x_site: The x_site of this ListExtendsParamsRequest.
|
|
160
|
+
:type x_site: int
|
|
161
|
+
"""
|
|
162
|
+
self._x_site = x_site
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def x_language(self):
|
|
166
|
+
r"""Gets the x_language of this ListExtendsParamsRequest.
|
|
167
|
+
|
|
168
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
169
|
+
|
|
170
|
+
:return: The x_language of this ListExtendsParamsRequest.
|
|
171
|
+
:rtype: str
|
|
172
|
+
"""
|
|
173
|
+
return self._x_language
|
|
174
|
+
|
|
175
|
+
@x_language.setter
|
|
176
|
+
def x_language(self, x_language):
|
|
177
|
+
r"""Sets the x_language of this ListExtendsParamsRequest.
|
|
178
|
+
|
|
179
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
180
|
+
|
|
181
|
+
:param x_language: The x_language of this ListExtendsParamsRequest.
|
|
182
|
+
:type x_language: str
|
|
183
|
+
"""
|
|
184
|
+
self._x_language = x_language
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def x_time_zone(self):
|
|
188
|
+
r"""Gets the x_time_zone of this ListExtendsParamsRequest.
|
|
189
|
+
|
|
190
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
191
|
+
|
|
192
|
+
:return: The x_time_zone of this ListExtendsParamsRequest.
|
|
193
|
+
:rtype: str
|
|
194
|
+
"""
|
|
195
|
+
return self._x_time_zone
|
|
196
|
+
|
|
197
|
+
@x_time_zone.setter
|
|
198
|
+
def x_time_zone(self, x_time_zone):
|
|
199
|
+
r"""Sets the x_time_zone of this ListExtendsParamsRequest.
|
|
200
|
+
|
|
201
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
202
|
+
|
|
203
|
+
:param x_time_zone: The x_time_zone of this ListExtendsParamsRequest.
|
|
204
|
+
:type x_time_zone: str
|
|
205
|
+
"""
|
|
206
|
+
self._x_time_zone = x_time_zone
|
|
207
|
+
|
|
208
|
+
def to_dict(self):
|
|
209
|
+
result = {}
|
|
210
|
+
|
|
211
|
+
for attr, _ in self.openapi_types.items():
|
|
212
|
+
value = getattr(self, attr)
|
|
213
|
+
if isinstance(value, list):
|
|
214
|
+
result[attr] = list(map(
|
|
215
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
216
|
+
value
|
|
217
|
+
))
|
|
218
|
+
elif hasattr(value, "to_dict"):
|
|
219
|
+
result[attr] = value.to_dict()
|
|
220
|
+
elif isinstance(value, dict):
|
|
221
|
+
result[attr] = dict(map(
|
|
222
|
+
lambda item: (item[0], item[1].to_dict())
|
|
223
|
+
if hasattr(item[1], "to_dict") else item,
|
|
224
|
+
value.items()
|
|
225
|
+
))
|
|
226
|
+
else:
|
|
227
|
+
if attr in self.sensitive_list:
|
|
228
|
+
result[attr] = "****"
|
|
229
|
+
else:
|
|
230
|
+
result[attr] = value
|
|
231
|
+
|
|
232
|
+
return result
|
|
233
|
+
|
|
234
|
+
def to_str(self):
|
|
235
|
+
"""Returns the string representation of the model"""
|
|
236
|
+
import simplejson as json
|
|
237
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
238
|
+
|
|
239
|
+
def __repr__(self):
|
|
240
|
+
"""For `print`"""
|
|
241
|
+
return self.to_str()
|
|
242
|
+
|
|
243
|
+
def __eq__(self, other):
|
|
244
|
+
"""Returns true if both objects are equal"""
|
|
245
|
+
if not isinstance(other, ListExtendsParamsRequest):
|
|
246
|
+
return False
|
|
247
|
+
|
|
248
|
+
return self.__dict__ == other.__dict__
|
|
249
|
+
|
|
250
|
+
def __ne__(self, other):
|
|
251
|
+
"""Returns true if both objects are not equal"""
|
|
252
|
+
return not self == other
|
|
@@ -0,0 +1,141 @@
|
|
|
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 ListExtendsParamsResponse(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
|
+
'extends_params': 'list[ExtendsParamV2]',
|
|
20
|
+
'common_params': 'list[CommonParamV2]'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'extends_params': 'extends_params',
|
|
25
|
+
'common_params': 'common_params'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, extends_params=None, common_params=None):
|
|
29
|
+
r"""ListExtendsParamsResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param extends_params: 附加参数列表
|
|
34
|
+
:type extends_params: list[:class:`huaweicloudsdkosm.v2.ExtendsParamV2`]
|
|
35
|
+
:param common_params: 公共附加参数列表
|
|
36
|
+
:type common_params: list[:class:`huaweicloudsdkosm.v2.CommonParamV2`]
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._extends_params = None
|
|
42
|
+
self._common_params = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if extends_params is not None:
|
|
46
|
+
self.extends_params = extends_params
|
|
47
|
+
if common_params is not None:
|
|
48
|
+
self.common_params = common_params
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def extends_params(self):
|
|
52
|
+
r"""Gets the extends_params of this ListExtendsParamsResponse.
|
|
53
|
+
|
|
54
|
+
附加参数列表
|
|
55
|
+
|
|
56
|
+
:return: The extends_params of this ListExtendsParamsResponse.
|
|
57
|
+
:rtype: list[:class:`huaweicloudsdkosm.v2.ExtendsParamV2`]
|
|
58
|
+
"""
|
|
59
|
+
return self._extends_params
|
|
60
|
+
|
|
61
|
+
@extends_params.setter
|
|
62
|
+
def extends_params(self, extends_params):
|
|
63
|
+
r"""Sets the extends_params of this ListExtendsParamsResponse.
|
|
64
|
+
|
|
65
|
+
附加参数列表
|
|
66
|
+
|
|
67
|
+
:param extends_params: The extends_params of this ListExtendsParamsResponse.
|
|
68
|
+
:type extends_params: list[:class:`huaweicloudsdkosm.v2.ExtendsParamV2`]
|
|
69
|
+
"""
|
|
70
|
+
self._extends_params = extends_params
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def common_params(self):
|
|
74
|
+
r"""Gets the common_params of this ListExtendsParamsResponse.
|
|
75
|
+
|
|
76
|
+
公共附加参数列表
|
|
77
|
+
|
|
78
|
+
:return: The common_params of this ListExtendsParamsResponse.
|
|
79
|
+
:rtype: list[:class:`huaweicloudsdkosm.v2.CommonParamV2`]
|
|
80
|
+
"""
|
|
81
|
+
return self._common_params
|
|
82
|
+
|
|
83
|
+
@common_params.setter
|
|
84
|
+
def common_params(self, common_params):
|
|
85
|
+
r"""Sets the common_params of this ListExtendsParamsResponse.
|
|
86
|
+
|
|
87
|
+
公共附加参数列表
|
|
88
|
+
|
|
89
|
+
:param common_params: The common_params of this ListExtendsParamsResponse.
|
|
90
|
+
:type common_params: list[:class:`huaweicloudsdkosm.v2.CommonParamV2`]
|
|
91
|
+
"""
|
|
92
|
+
self._common_params = common_params
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
import warnings
|
|
96
|
+
warnings.warn("ListExtendsParamsResponse.to_dict() is deprecated and no longer maintained, "
|
|
97
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in self.openapi_types.items():
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, ListExtendsParamsResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
return not self == other
|