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,398 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DiagnoseResourceVo:
|
|
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
|
+
'fault': 'str',
|
|
19
|
+
'id': 'str',
|
|
20
|
+
'name': 'str',
|
|
21
|
+
'access_i_pv4': 'str',
|
|
22
|
+
'access_i_pv6': 'str',
|
|
23
|
+
'status': 'str',
|
|
24
|
+
'progress': 'str',
|
|
25
|
+
'tenant_id': 'str',
|
|
26
|
+
'user_id': 'str',
|
|
27
|
+
'metadata': 'object',
|
|
28
|
+
'host_id': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'fault': 'fault',
|
|
33
|
+
'id': 'id',
|
|
34
|
+
'name': 'name',
|
|
35
|
+
'access_i_pv4': 'accessIPv4',
|
|
36
|
+
'access_i_pv6': 'accessIPv6',
|
|
37
|
+
'status': 'status',
|
|
38
|
+
'progress': 'progress',
|
|
39
|
+
'tenant_id': 'tenantId',
|
|
40
|
+
'user_id': 'userId',
|
|
41
|
+
'metadata': 'metadata',
|
|
42
|
+
'host_id': 'hostId'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, fault=None, id=None, name=None, access_i_pv4=None, access_i_pv6=None, status=None, progress=None, tenant_id=None, user_id=None, metadata=None, host_id=None):
|
|
46
|
+
r"""DiagnoseResourceVo
|
|
47
|
+
|
|
48
|
+
The model defined in huaweicloud sdk
|
|
49
|
+
|
|
50
|
+
:param fault: ID
|
|
51
|
+
:type fault: str
|
|
52
|
+
:param id: 状态
|
|
53
|
+
:type id: str
|
|
54
|
+
:param name: 名称
|
|
55
|
+
:type name: str
|
|
56
|
+
:param access_i_pv4: ip4地址
|
|
57
|
+
:type access_i_pv4: str
|
|
58
|
+
:param access_i_pv6: ip6地址
|
|
59
|
+
:type access_i_pv6: str
|
|
60
|
+
:param status: 状态
|
|
61
|
+
:type status: str
|
|
62
|
+
:param progress: 进度
|
|
63
|
+
:type progress: str
|
|
64
|
+
:param tenant_id: 前端id
|
|
65
|
+
:type tenant_id: str
|
|
66
|
+
:param user_id: 用户id
|
|
67
|
+
:type user_id: str
|
|
68
|
+
:param metadata: 资源元数据
|
|
69
|
+
:type metadata: object
|
|
70
|
+
:param host_id: 主机id
|
|
71
|
+
:type host_id: str
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
self._fault = None
|
|
77
|
+
self._id = None
|
|
78
|
+
self._name = None
|
|
79
|
+
self._access_i_pv4 = None
|
|
80
|
+
self._access_i_pv6 = None
|
|
81
|
+
self._status = None
|
|
82
|
+
self._progress = None
|
|
83
|
+
self._tenant_id = None
|
|
84
|
+
self._user_id = None
|
|
85
|
+
self._metadata = None
|
|
86
|
+
self._host_id = None
|
|
87
|
+
self.discriminator = None
|
|
88
|
+
|
|
89
|
+
if fault is not None:
|
|
90
|
+
self.fault = fault
|
|
91
|
+
if id is not None:
|
|
92
|
+
self.id = id
|
|
93
|
+
if name is not None:
|
|
94
|
+
self.name = name
|
|
95
|
+
if access_i_pv4 is not None:
|
|
96
|
+
self.access_i_pv4 = access_i_pv4
|
|
97
|
+
if access_i_pv6 is not None:
|
|
98
|
+
self.access_i_pv6 = access_i_pv6
|
|
99
|
+
if status is not None:
|
|
100
|
+
self.status = status
|
|
101
|
+
if progress is not None:
|
|
102
|
+
self.progress = progress
|
|
103
|
+
if tenant_id is not None:
|
|
104
|
+
self.tenant_id = tenant_id
|
|
105
|
+
if user_id is not None:
|
|
106
|
+
self.user_id = user_id
|
|
107
|
+
if metadata is not None:
|
|
108
|
+
self.metadata = metadata
|
|
109
|
+
if host_id is not None:
|
|
110
|
+
self.host_id = host_id
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def fault(self):
|
|
114
|
+
r"""Gets the fault of this DiagnoseResourceVo.
|
|
115
|
+
|
|
116
|
+
ID
|
|
117
|
+
|
|
118
|
+
:return: The fault of this DiagnoseResourceVo.
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._fault
|
|
122
|
+
|
|
123
|
+
@fault.setter
|
|
124
|
+
def fault(self, fault):
|
|
125
|
+
r"""Sets the fault of this DiagnoseResourceVo.
|
|
126
|
+
|
|
127
|
+
ID
|
|
128
|
+
|
|
129
|
+
:param fault: The fault of this DiagnoseResourceVo.
|
|
130
|
+
:type fault: str
|
|
131
|
+
"""
|
|
132
|
+
self._fault = fault
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def id(self):
|
|
136
|
+
r"""Gets the id of this DiagnoseResourceVo.
|
|
137
|
+
|
|
138
|
+
状态
|
|
139
|
+
|
|
140
|
+
:return: The id of this DiagnoseResourceVo.
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._id
|
|
144
|
+
|
|
145
|
+
@id.setter
|
|
146
|
+
def id(self, id):
|
|
147
|
+
r"""Sets the id of this DiagnoseResourceVo.
|
|
148
|
+
|
|
149
|
+
状态
|
|
150
|
+
|
|
151
|
+
:param id: The id of this DiagnoseResourceVo.
|
|
152
|
+
:type id: str
|
|
153
|
+
"""
|
|
154
|
+
self._id = id
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def name(self):
|
|
158
|
+
r"""Gets the name of this DiagnoseResourceVo.
|
|
159
|
+
|
|
160
|
+
名称
|
|
161
|
+
|
|
162
|
+
:return: The name of this DiagnoseResourceVo.
|
|
163
|
+
:rtype: str
|
|
164
|
+
"""
|
|
165
|
+
return self._name
|
|
166
|
+
|
|
167
|
+
@name.setter
|
|
168
|
+
def name(self, name):
|
|
169
|
+
r"""Sets the name of this DiagnoseResourceVo.
|
|
170
|
+
|
|
171
|
+
名称
|
|
172
|
+
|
|
173
|
+
:param name: The name of this DiagnoseResourceVo.
|
|
174
|
+
:type name: str
|
|
175
|
+
"""
|
|
176
|
+
self._name = name
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def access_i_pv4(self):
|
|
180
|
+
r"""Gets the access_i_pv4 of this DiagnoseResourceVo.
|
|
181
|
+
|
|
182
|
+
ip4地址
|
|
183
|
+
|
|
184
|
+
:return: The access_i_pv4 of this DiagnoseResourceVo.
|
|
185
|
+
:rtype: str
|
|
186
|
+
"""
|
|
187
|
+
return self._access_i_pv4
|
|
188
|
+
|
|
189
|
+
@access_i_pv4.setter
|
|
190
|
+
def access_i_pv4(self, access_i_pv4):
|
|
191
|
+
r"""Sets the access_i_pv4 of this DiagnoseResourceVo.
|
|
192
|
+
|
|
193
|
+
ip4地址
|
|
194
|
+
|
|
195
|
+
:param access_i_pv4: The access_i_pv4 of this DiagnoseResourceVo.
|
|
196
|
+
:type access_i_pv4: str
|
|
197
|
+
"""
|
|
198
|
+
self._access_i_pv4 = access_i_pv4
|
|
199
|
+
|
|
200
|
+
@property
|
|
201
|
+
def access_i_pv6(self):
|
|
202
|
+
r"""Gets the access_i_pv6 of this DiagnoseResourceVo.
|
|
203
|
+
|
|
204
|
+
ip6地址
|
|
205
|
+
|
|
206
|
+
:return: The access_i_pv6 of this DiagnoseResourceVo.
|
|
207
|
+
:rtype: str
|
|
208
|
+
"""
|
|
209
|
+
return self._access_i_pv6
|
|
210
|
+
|
|
211
|
+
@access_i_pv6.setter
|
|
212
|
+
def access_i_pv6(self, access_i_pv6):
|
|
213
|
+
r"""Sets the access_i_pv6 of this DiagnoseResourceVo.
|
|
214
|
+
|
|
215
|
+
ip6地址
|
|
216
|
+
|
|
217
|
+
:param access_i_pv6: The access_i_pv6 of this DiagnoseResourceVo.
|
|
218
|
+
:type access_i_pv6: str
|
|
219
|
+
"""
|
|
220
|
+
self._access_i_pv6 = access_i_pv6
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
def status(self):
|
|
224
|
+
r"""Gets the status of this DiagnoseResourceVo.
|
|
225
|
+
|
|
226
|
+
状态
|
|
227
|
+
|
|
228
|
+
:return: The status of this DiagnoseResourceVo.
|
|
229
|
+
:rtype: str
|
|
230
|
+
"""
|
|
231
|
+
return self._status
|
|
232
|
+
|
|
233
|
+
@status.setter
|
|
234
|
+
def status(self, status):
|
|
235
|
+
r"""Sets the status of this DiagnoseResourceVo.
|
|
236
|
+
|
|
237
|
+
状态
|
|
238
|
+
|
|
239
|
+
:param status: The status of this DiagnoseResourceVo.
|
|
240
|
+
:type status: str
|
|
241
|
+
"""
|
|
242
|
+
self._status = status
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
def progress(self):
|
|
246
|
+
r"""Gets the progress of this DiagnoseResourceVo.
|
|
247
|
+
|
|
248
|
+
进度
|
|
249
|
+
|
|
250
|
+
:return: The progress of this DiagnoseResourceVo.
|
|
251
|
+
:rtype: str
|
|
252
|
+
"""
|
|
253
|
+
return self._progress
|
|
254
|
+
|
|
255
|
+
@progress.setter
|
|
256
|
+
def progress(self, progress):
|
|
257
|
+
r"""Sets the progress of this DiagnoseResourceVo.
|
|
258
|
+
|
|
259
|
+
进度
|
|
260
|
+
|
|
261
|
+
:param progress: The progress of this DiagnoseResourceVo.
|
|
262
|
+
:type progress: str
|
|
263
|
+
"""
|
|
264
|
+
self._progress = progress
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
def tenant_id(self):
|
|
268
|
+
r"""Gets the tenant_id of this DiagnoseResourceVo.
|
|
269
|
+
|
|
270
|
+
前端id
|
|
271
|
+
|
|
272
|
+
:return: The tenant_id of this DiagnoseResourceVo.
|
|
273
|
+
:rtype: str
|
|
274
|
+
"""
|
|
275
|
+
return self._tenant_id
|
|
276
|
+
|
|
277
|
+
@tenant_id.setter
|
|
278
|
+
def tenant_id(self, tenant_id):
|
|
279
|
+
r"""Sets the tenant_id of this DiagnoseResourceVo.
|
|
280
|
+
|
|
281
|
+
前端id
|
|
282
|
+
|
|
283
|
+
:param tenant_id: The tenant_id of this DiagnoseResourceVo.
|
|
284
|
+
:type tenant_id: str
|
|
285
|
+
"""
|
|
286
|
+
self._tenant_id = tenant_id
|
|
287
|
+
|
|
288
|
+
@property
|
|
289
|
+
def user_id(self):
|
|
290
|
+
r"""Gets the user_id of this DiagnoseResourceVo.
|
|
291
|
+
|
|
292
|
+
用户id
|
|
293
|
+
|
|
294
|
+
:return: The user_id of this DiagnoseResourceVo.
|
|
295
|
+
:rtype: str
|
|
296
|
+
"""
|
|
297
|
+
return self._user_id
|
|
298
|
+
|
|
299
|
+
@user_id.setter
|
|
300
|
+
def user_id(self, user_id):
|
|
301
|
+
r"""Sets the user_id of this DiagnoseResourceVo.
|
|
302
|
+
|
|
303
|
+
用户id
|
|
304
|
+
|
|
305
|
+
:param user_id: The user_id of this DiagnoseResourceVo.
|
|
306
|
+
:type user_id: str
|
|
307
|
+
"""
|
|
308
|
+
self._user_id = user_id
|
|
309
|
+
|
|
310
|
+
@property
|
|
311
|
+
def metadata(self):
|
|
312
|
+
r"""Gets the metadata of this DiagnoseResourceVo.
|
|
313
|
+
|
|
314
|
+
资源元数据
|
|
315
|
+
|
|
316
|
+
:return: The metadata of this DiagnoseResourceVo.
|
|
317
|
+
:rtype: object
|
|
318
|
+
"""
|
|
319
|
+
return self._metadata
|
|
320
|
+
|
|
321
|
+
@metadata.setter
|
|
322
|
+
def metadata(self, metadata):
|
|
323
|
+
r"""Sets the metadata of this DiagnoseResourceVo.
|
|
324
|
+
|
|
325
|
+
资源元数据
|
|
326
|
+
|
|
327
|
+
:param metadata: The metadata of this DiagnoseResourceVo.
|
|
328
|
+
:type metadata: object
|
|
329
|
+
"""
|
|
330
|
+
self._metadata = metadata
|
|
331
|
+
|
|
332
|
+
@property
|
|
333
|
+
def host_id(self):
|
|
334
|
+
r"""Gets the host_id of this DiagnoseResourceVo.
|
|
335
|
+
|
|
336
|
+
主机id
|
|
337
|
+
|
|
338
|
+
:return: The host_id of this DiagnoseResourceVo.
|
|
339
|
+
:rtype: str
|
|
340
|
+
"""
|
|
341
|
+
return self._host_id
|
|
342
|
+
|
|
343
|
+
@host_id.setter
|
|
344
|
+
def host_id(self, host_id):
|
|
345
|
+
r"""Sets the host_id of this DiagnoseResourceVo.
|
|
346
|
+
|
|
347
|
+
主机id
|
|
348
|
+
|
|
349
|
+
:param host_id: The host_id of this DiagnoseResourceVo.
|
|
350
|
+
:type host_id: str
|
|
351
|
+
"""
|
|
352
|
+
self._host_id = host_id
|
|
353
|
+
|
|
354
|
+
def to_dict(self):
|
|
355
|
+
result = {}
|
|
356
|
+
|
|
357
|
+
for attr, _ in self.openapi_types.items():
|
|
358
|
+
value = getattr(self, attr)
|
|
359
|
+
if isinstance(value, list):
|
|
360
|
+
result[attr] = list(map(
|
|
361
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
362
|
+
value
|
|
363
|
+
))
|
|
364
|
+
elif hasattr(value, "to_dict"):
|
|
365
|
+
result[attr] = value.to_dict()
|
|
366
|
+
elif isinstance(value, dict):
|
|
367
|
+
result[attr] = dict(map(
|
|
368
|
+
lambda item: (item[0], item[1].to_dict())
|
|
369
|
+
if hasattr(item[1], "to_dict") else item,
|
|
370
|
+
value.items()
|
|
371
|
+
))
|
|
372
|
+
else:
|
|
373
|
+
if attr in self.sensitive_list:
|
|
374
|
+
result[attr] = "****"
|
|
375
|
+
else:
|
|
376
|
+
result[attr] = value
|
|
377
|
+
|
|
378
|
+
return result
|
|
379
|
+
|
|
380
|
+
def to_str(self):
|
|
381
|
+
"""Returns the string representation of the model"""
|
|
382
|
+
import simplejson as json
|
|
383
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
384
|
+
|
|
385
|
+
def __repr__(self):
|
|
386
|
+
"""For `print`"""
|
|
387
|
+
return self.to_str()
|
|
388
|
+
|
|
389
|
+
def __eq__(self, other):
|
|
390
|
+
"""Returns true if both objects are equal"""
|
|
391
|
+
if not isinstance(other, DiagnoseResourceVo):
|
|
392
|
+
return False
|
|
393
|
+
|
|
394
|
+
return self.__dict__ == other.__dict__
|
|
395
|
+
|
|
396
|
+
def __ne__(self, other):
|
|
397
|
+
"""Returns true if both objects are not equal"""
|
|
398
|
+
return not self == other
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DownloadAccessoriesRequest:
|
|
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
|
+
'accessory_id': 'str',
|
|
19
|
+
'group_id': 'str',
|
|
20
|
+
'x_site': 'int',
|
|
21
|
+
'x_language': 'str',
|
|
22
|
+
'x_time_zone': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'accessory_id': 'accessory_id',
|
|
27
|
+
'group_id': 'group_id',
|
|
28
|
+
'x_site': 'X-Site',
|
|
29
|
+
'x_language': 'X-Language',
|
|
30
|
+
'x_time_zone': 'X-Time-Zone'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, accessory_id=None, group_id=None, x_site=None, x_language=None, x_time_zone=None):
|
|
34
|
+
r"""DownloadAccessoriesRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param accessory_id: 附件id列表,下载支持多个,逗号隔开
|
|
39
|
+
:type accessory_id: str
|
|
40
|
+
:param group_id: 华为云IAM组id,同组其他工单时,该id必传
|
|
41
|
+
:type group_id: str
|
|
42
|
+
:param x_site: 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
43
|
+
:type x_site: int
|
|
44
|
+
:param x_language: 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
45
|
+
:type x_language: str
|
|
46
|
+
:param x_time_zone: 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
47
|
+
:type x_time_zone: str
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
self._accessory_id = None
|
|
53
|
+
self._group_id = None
|
|
54
|
+
self._x_site = None
|
|
55
|
+
self._x_language = None
|
|
56
|
+
self._x_time_zone = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
self.accessory_id = accessory_id
|
|
60
|
+
if group_id is not None:
|
|
61
|
+
self.group_id = group_id
|
|
62
|
+
if x_site is not None:
|
|
63
|
+
self.x_site = x_site
|
|
64
|
+
if x_language is not None:
|
|
65
|
+
self.x_language = x_language
|
|
66
|
+
if x_time_zone is not None:
|
|
67
|
+
self.x_time_zone = x_time_zone
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def accessory_id(self):
|
|
71
|
+
r"""Gets the accessory_id of this DownloadAccessoriesRequest.
|
|
72
|
+
|
|
73
|
+
附件id列表,下载支持多个,逗号隔开
|
|
74
|
+
|
|
75
|
+
:return: The accessory_id of this DownloadAccessoriesRequest.
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._accessory_id
|
|
79
|
+
|
|
80
|
+
@accessory_id.setter
|
|
81
|
+
def accessory_id(self, accessory_id):
|
|
82
|
+
r"""Sets the accessory_id of this DownloadAccessoriesRequest.
|
|
83
|
+
|
|
84
|
+
附件id列表,下载支持多个,逗号隔开
|
|
85
|
+
|
|
86
|
+
:param accessory_id: The accessory_id of this DownloadAccessoriesRequest.
|
|
87
|
+
:type accessory_id: str
|
|
88
|
+
"""
|
|
89
|
+
self._accessory_id = accessory_id
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def group_id(self):
|
|
93
|
+
r"""Gets the group_id of this DownloadAccessoriesRequest.
|
|
94
|
+
|
|
95
|
+
华为云IAM组id,同组其他工单时,该id必传
|
|
96
|
+
|
|
97
|
+
:return: The group_id of this DownloadAccessoriesRequest.
|
|
98
|
+
:rtype: str
|
|
99
|
+
"""
|
|
100
|
+
return self._group_id
|
|
101
|
+
|
|
102
|
+
@group_id.setter
|
|
103
|
+
def group_id(self, group_id):
|
|
104
|
+
r"""Sets the group_id of this DownloadAccessoriesRequest.
|
|
105
|
+
|
|
106
|
+
华为云IAM组id,同组其他工单时,该id必传
|
|
107
|
+
|
|
108
|
+
:param group_id: The group_id of this DownloadAccessoriesRequest.
|
|
109
|
+
:type group_id: str
|
|
110
|
+
"""
|
|
111
|
+
self._group_id = group_id
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def x_site(self):
|
|
115
|
+
r"""Gets the x_site of this DownloadAccessoriesRequest.
|
|
116
|
+
|
|
117
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
118
|
+
|
|
119
|
+
:return: The x_site of this DownloadAccessoriesRequest.
|
|
120
|
+
:rtype: int
|
|
121
|
+
"""
|
|
122
|
+
return self._x_site
|
|
123
|
+
|
|
124
|
+
@x_site.setter
|
|
125
|
+
def x_site(self, x_site):
|
|
126
|
+
r"""Sets the x_site of this DownloadAccessoriesRequest.
|
|
127
|
+
|
|
128
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
129
|
+
|
|
130
|
+
:param x_site: The x_site of this DownloadAccessoriesRequest.
|
|
131
|
+
:type x_site: int
|
|
132
|
+
"""
|
|
133
|
+
self._x_site = x_site
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def x_language(self):
|
|
137
|
+
r"""Gets the x_language of this DownloadAccessoriesRequest.
|
|
138
|
+
|
|
139
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
140
|
+
|
|
141
|
+
:return: The x_language of this DownloadAccessoriesRequest.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._x_language
|
|
145
|
+
|
|
146
|
+
@x_language.setter
|
|
147
|
+
def x_language(self, x_language):
|
|
148
|
+
r"""Sets the x_language of this DownloadAccessoriesRequest.
|
|
149
|
+
|
|
150
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
151
|
+
|
|
152
|
+
:param x_language: The x_language of this DownloadAccessoriesRequest.
|
|
153
|
+
:type x_language: str
|
|
154
|
+
"""
|
|
155
|
+
self._x_language = x_language
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def x_time_zone(self):
|
|
159
|
+
r"""Gets the x_time_zone of this DownloadAccessoriesRequest.
|
|
160
|
+
|
|
161
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
162
|
+
|
|
163
|
+
:return: The x_time_zone of this DownloadAccessoriesRequest.
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._x_time_zone
|
|
167
|
+
|
|
168
|
+
@x_time_zone.setter
|
|
169
|
+
def x_time_zone(self, x_time_zone):
|
|
170
|
+
r"""Sets the x_time_zone of this DownloadAccessoriesRequest.
|
|
171
|
+
|
|
172
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
173
|
+
|
|
174
|
+
:param x_time_zone: The x_time_zone of this DownloadAccessoriesRequest.
|
|
175
|
+
:type x_time_zone: str
|
|
176
|
+
"""
|
|
177
|
+
self._x_time_zone = x_time_zone
|
|
178
|
+
|
|
179
|
+
def to_dict(self):
|
|
180
|
+
result = {}
|
|
181
|
+
|
|
182
|
+
for attr, _ in self.openapi_types.items():
|
|
183
|
+
value = getattr(self, attr)
|
|
184
|
+
if isinstance(value, list):
|
|
185
|
+
result[attr] = list(map(
|
|
186
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
187
|
+
value
|
|
188
|
+
))
|
|
189
|
+
elif hasattr(value, "to_dict"):
|
|
190
|
+
result[attr] = value.to_dict()
|
|
191
|
+
elif isinstance(value, dict):
|
|
192
|
+
result[attr] = dict(map(
|
|
193
|
+
lambda item: (item[0], item[1].to_dict())
|
|
194
|
+
if hasattr(item[1], "to_dict") else item,
|
|
195
|
+
value.items()
|
|
196
|
+
))
|
|
197
|
+
else:
|
|
198
|
+
if attr in self.sensitive_list:
|
|
199
|
+
result[attr] = "****"
|
|
200
|
+
else:
|
|
201
|
+
result[attr] = value
|
|
202
|
+
|
|
203
|
+
return result
|
|
204
|
+
|
|
205
|
+
def to_str(self):
|
|
206
|
+
"""Returns the string representation of the model"""
|
|
207
|
+
import simplejson as json
|
|
208
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
209
|
+
|
|
210
|
+
def __repr__(self):
|
|
211
|
+
"""For `print`"""
|
|
212
|
+
return self.to_str()
|
|
213
|
+
|
|
214
|
+
def __eq__(self, other):
|
|
215
|
+
"""Returns true if both objects are equal"""
|
|
216
|
+
if not isinstance(other, DownloadAccessoriesRequest):
|
|
217
|
+
return False
|
|
218
|
+
|
|
219
|
+
return self.__dict__ == other.__dict__
|
|
220
|
+
|
|
221
|
+
def __ne__(self, other):
|
|
222
|
+
"""Returns true if both objects are not equal"""
|
|
223
|
+
return not self == other
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_stream_response import SdkStreamResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DownloadAccessoriesResponse(SdkStreamResponse):
|
|
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
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
def __init__(self, response):
|
|
25
|
+
r"""DownloadAccessoriesResponse
|
|
26
|
+
|
|
27
|
+
The model defined in huaweicloud sdk
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
super().__init__(response)
|
|
32
|
+
self.discriminator = None
|
|
33
|
+
|
|
34
|
+
def to_dict(self):
|
|
35
|
+
import warnings
|
|
36
|
+
warnings.warn("DownloadAccessoriesResponse.to_dict() is deprecated and no longer maintained, "
|
|
37
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in self.openapi_types.items():
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
67
|
+
|
|
68
|
+
def __repr__(self):
|
|
69
|
+
"""For `print`"""
|
|
70
|
+
return self.to_str()
|
|
71
|
+
|
|
72
|
+
def __eq__(self, other):
|
|
73
|
+
"""Returns true if both objects are equal"""
|
|
74
|
+
if not isinstance(other, DownloadAccessoriesResponse):
|
|
75
|
+
return False
|
|
76
|
+
|
|
77
|
+
return self.__dict__ == other.__dict__
|
|
78
|
+
|
|
79
|
+
def __ne__(self, other):
|
|
80
|
+
"""Returns true if both objects are not equal"""
|
|
81
|
+
return not self == other
|