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,195 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ContactV2:
|
|
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
|
+
'contact_way': 'int',
|
|
19
|
+
'contact_value': 'str',
|
|
20
|
+
'area_code': 'str',
|
|
21
|
+
'verified_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'contact_way': 'contact_way',
|
|
26
|
+
'contact_value': 'contact_value',
|
|
27
|
+
'area_code': 'area_code',
|
|
28
|
+
'verified_id': 'verified_id'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, contact_way=None, contact_value=None, area_code=None, verified_id=None):
|
|
32
|
+
r"""ContactV2
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param contact_way: 联系方式类型,0: 手机; 1: 邮箱
|
|
37
|
+
:type contact_way: int
|
|
38
|
+
:param contact_value: 联系方式值
|
|
39
|
+
:type contact_value: str
|
|
40
|
+
:param area_code: 国家码
|
|
41
|
+
:type area_code: str
|
|
42
|
+
:param verified_id: 验证序列号
|
|
43
|
+
:type verified_id: str
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._contact_way = None
|
|
49
|
+
self._contact_value = None
|
|
50
|
+
self._area_code = None
|
|
51
|
+
self._verified_id = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if contact_way is not None:
|
|
55
|
+
self.contact_way = contact_way
|
|
56
|
+
if contact_value is not None:
|
|
57
|
+
self.contact_value = contact_value
|
|
58
|
+
if area_code is not None:
|
|
59
|
+
self.area_code = area_code
|
|
60
|
+
if verified_id is not None:
|
|
61
|
+
self.verified_id = verified_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def contact_way(self):
|
|
65
|
+
r"""Gets the contact_way of this ContactV2.
|
|
66
|
+
|
|
67
|
+
联系方式类型,0: 手机; 1: 邮箱
|
|
68
|
+
|
|
69
|
+
:return: The contact_way of this ContactV2.
|
|
70
|
+
:rtype: int
|
|
71
|
+
"""
|
|
72
|
+
return self._contact_way
|
|
73
|
+
|
|
74
|
+
@contact_way.setter
|
|
75
|
+
def contact_way(self, contact_way):
|
|
76
|
+
r"""Sets the contact_way of this ContactV2.
|
|
77
|
+
|
|
78
|
+
联系方式类型,0: 手机; 1: 邮箱
|
|
79
|
+
|
|
80
|
+
:param contact_way: The contact_way of this ContactV2.
|
|
81
|
+
:type contact_way: int
|
|
82
|
+
"""
|
|
83
|
+
self._contact_way = contact_way
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def contact_value(self):
|
|
87
|
+
r"""Gets the contact_value of this ContactV2.
|
|
88
|
+
|
|
89
|
+
联系方式值
|
|
90
|
+
|
|
91
|
+
:return: The contact_value of this ContactV2.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._contact_value
|
|
95
|
+
|
|
96
|
+
@contact_value.setter
|
|
97
|
+
def contact_value(self, contact_value):
|
|
98
|
+
r"""Sets the contact_value of this ContactV2.
|
|
99
|
+
|
|
100
|
+
联系方式值
|
|
101
|
+
|
|
102
|
+
:param contact_value: The contact_value of this ContactV2.
|
|
103
|
+
:type contact_value: str
|
|
104
|
+
"""
|
|
105
|
+
self._contact_value = contact_value
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def area_code(self):
|
|
109
|
+
r"""Gets the area_code of this ContactV2.
|
|
110
|
+
|
|
111
|
+
国家码
|
|
112
|
+
|
|
113
|
+
:return: The area_code of this ContactV2.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._area_code
|
|
117
|
+
|
|
118
|
+
@area_code.setter
|
|
119
|
+
def area_code(self, area_code):
|
|
120
|
+
r"""Sets the area_code of this ContactV2.
|
|
121
|
+
|
|
122
|
+
国家码
|
|
123
|
+
|
|
124
|
+
:param area_code: The area_code of this ContactV2.
|
|
125
|
+
:type area_code: str
|
|
126
|
+
"""
|
|
127
|
+
self._area_code = area_code
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def verified_id(self):
|
|
131
|
+
r"""Gets the verified_id of this ContactV2.
|
|
132
|
+
|
|
133
|
+
验证序列号
|
|
134
|
+
|
|
135
|
+
:return: The verified_id of this ContactV2.
|
|
136
|
+
:rtype: str
|
|
137
|
+
"""
|
|
138
|
+
return self._verified_id
|
|
139
|
+
|
|
140
|
+
@verified_id.setter
|
|
141
|
+
def verified_id(self, verified_id):
|
|
142
|
+
r"""Sets the verified_id of this ContactV2.
|
|
143
|
+
|
|
144
|
+
验证序列号
|
|
145
|
+
|
|
146
|
+
:param verified_id: The verified_id of this ContactV2.
|
|
147
|
+
:type verified_id: str
|
|
148
|
+
"""
|
|
149
|
+
self._verified_id = verified_id
|
|
150
|
+
|
|
151
|
+
def to_dict(self):
|
|
152
|
+
result = {}
|
|
153
|
+
|
|
154
|
+
for attr, _ in self.openapi_types.items():
|
|
155
|
+
value = getattr(self, attr)
|
|
156
|
+
if isinstance(value, list):
|
|
157
|
+
result[attr] = list(map(
|
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
159
|
+
value
|
|
160
|
+
))
|
|
161
|
+
elif hasattr(value, "to_dict"):
|
|
162
|
+
result[attr] = value.to_dict()
|
|
163
|
+
elif isinstance(value, dict):
|
|
164
|
+
result[attr] = dict(map(
|
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
|
167
|
+
value.items()
|
|
168
|
+
))
|
|
169
|
+
else:
|
|
170
|
+
if attr in self.sensitive_list:
|
|
171
|
+
result[attr] = "****"
|
|
172
|
+
else:
|
|
173
|
+
result[attr] = value
|
|
174
|
+
|
|
175
|
+
return result
|
|
176
|
+
|
|
177
|
+
def to_str(self):
|
|
178
|
+
"""Returns the string representation of the model"""
|
|
179
|
+
import simplejson as json
|
|
180
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
181
|
+
|
|
182
|
+
def __repr__(self):
|
|
183
|
+
"""For `print`"""
|
|
184
|
+
return self.to_str()
|
|
185
|
+
|
|
186
|
+
def __eq__(self, other):
|
|
187
|
+
"""Returns true if both objects are equal"""
|
|
188
|
+
if not isinstance(other, ContactV2):
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
return self.__dict__ == other.__dict__
|
|
192
|
+
|
|
193
|
+
def __ne__(self, other):
|
|
194
|
+
"""Returns true if both objects are not equal"""
|
|
195
|
+
return not self == other
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ContactWayInfoV2:
|
|
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
|
+
'name': 'str',
|
|
19
|
+
'mobile': 'str',
|
|
20
|
+
'mail': 'str',
|
|
21
|
+
'area': 'str',
|
|
22
|
+
'address': 'str',
|
|
23
|
+
'id_type': 'int',
|
|
24
|
+
'company_name': 'str',
|
|
25
|
+
'id_files': 'list[str]',
|
|
26
|
+
'other_way': 'str'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'name': 'name',
|
|
31
|
+
'mobile': 'mobile',
|
|
32
|
+
'mail': 'mail',
|
|
33
|
+
'area': 'area',
|
|
34
|
+
'address': 'address',
|
|
35
|
+
'id_type': 'id_type',
|
|
36
|
+
'company_name': 'company_name',
|
|
37
|
+
'id_files': 'id_files',
|
|
38
|
+
'other_way': 'other_way'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, name=None, mobile=None, mail=None, area=None, address=None, id_type=None, company_name=None, id_files=None, other_way=None):
|
|
42
|
+
r"""ContactWayInfoV2
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param name: 姓名或名称
|
|
47
|
+
:type name: str
|
|
48
|
+
:param mobile: 联系电话
|
|
49
|
+
:type mobile: str
|
|
50
|
+
:param mail: 联系邮箱
|
|
51
|
+
:type mail: str
|
|
52
|
+
:param area: 国家/地区
|
|
53
|
+
:type area: str
|
|
54
|
+
:param address: 地址
|
|
55
|
+
:type address: str
|
|
56
|
+
:param id_type: 身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23
|
|
57
|
+
:type id_type: int
|
|
58
|
+
:param company_name: 公司名称
|
|
59
|
+
:type company_name: str
|
|
60
|
+
:param id_files: 身份证明附件列表,至少1个,最多3个
|
|
61
|
+
:type id_files: list[str]
|
|
62
|
+
:param other_way: 其他联系方式
|
|
63
|
+
:type other_way: str
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
self._name = None
|
|
69
|
+
self._mobile = None
|
|
70
|
+
self._mail = None
|
|
71
|
+
self._area = None
|
|
72
|
+
self._address = None
|
|
73
|
+
self._id_type = None
|
|
74
|
+
self._company_name = None
|
|
75
|
+
self._id_files = None
|
|
76
|
+
self._other_way = None
|
|
77
|
+
self.discriminator = None
|
|
78
|
+
|
|
79
|
+
self.name = name
|
|
80
|
+
self.mobile = mobile
|
|
81
|
+
if mail is not None:
|
|
82
|
+
self.mail = mail
|
|
83
|
+
if area is not None:
|
|
84
|
+
self.area = area
|
|
85
|
+
if address is not None:
|
|
86
|
+
self.address = address
|
|
87
|
+
self.id_type = id_type
|
|
88
|
+
if company_name is not None:
|
|
89
|
+
self.company_name = company_name
|
|
90
|
+
self.id_files = id_files
|
|
91
|
+
if other_way is not None:
|
|
92
|
+
self.other_way = other_way
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def name(self):
|
|
96
|
+
r"""Gets the name of this ContactWayInfoV2.
|
|
97
|
+
|
|
98
|
+
姓名或名称
|
|
99
|
+
|
|
100
|
+
:return: The name of this ContactWayInfoV2.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._name
|
|
104
|
+
|
|
105
|
+
@name.setter
|
|
106
|
+
def name(self, name):
|
|
107
|
+
r"""Sets the name of this ContactWayInfoV2.
|
|
108
|
+
|
|
109
|
+
姓名或名称
|
|
110
|
+
|
|
111
|
+
:param name: The name of this ContactWayInfoV2.
|
|
112
|
+
:type name: str
|
|
113
|
+
"""
|
|
114
|
+
self._name = name
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def mobile(self):
|
|
118
|
+
r"""Gets the mobile of this ContactWayInfoV2.
|
|
119
|
+
|
|
120
|
+
联系电话
|
|
121
|
+
|
|
122
|
+
:return: The mobile of this ContactWayInfoV2.
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._mobile
|
|
126
|
+
|
|
127
|
+
@mobile.setter
|
|
128
|
+
def mobile(self, mobile):
|
|
129
|
+
r"""Sets the mobile of this ContactWayInfoV2.
|
|
130
|
+
|
|
131
|
+
联系电话
|
|
132
|
+
|
|
133
|
+
:param mobile: The mobile of this ContactWayInfoV2.
|
|
134
|
+
:type mobile: str
|
|
135
|
+
"""
|
|
136
|
+
self._mobile = mobile
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def mail(self):
|
|
140
|
+
r"""Gets the mail of this ContactWayInfoV2.
|
|
141
|
+
|
|
142
|
+
联系邮箱
|
|
143
|
+
|
|
144
|
+
:return: The mail of this ContactWayInfoV2.
|
|
145
|
+
:rtype: str
|
|
146
|
+
"""
|
|
147
|
+
return self._mail
|
|
148
|
+
|
|
149
|
+
@mail.setter
|
|
150
|
+
def mail(self, mail):
|
|
151
|
+
r"""Sets the mail of this ContactWayInfoV2.
|
|
152
|
+
|
|
153
|
+
联系邮箱
|
|
154
|
+
|
|
155
|
+
:param mail: The mail of this ContactWayInfoV2.
|
|
156
|
+
:type mail: str
|
|
157
|
+
"""
|
|
158
|
+
self._mail = mail
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def area(self):
|
|
162
|
+
r"""Gets the area of this ContactWayInfoV2.
|
|
163
|
+
|
|
164
|
+
国家/地区
|
|
165
|
+
|
|
166
|
+
:return: The area of this ContactWayInfoV2.
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._area
|
|
170
|
+
|
|
171
|
+
@area.setter
|
|
172
|
+
def area(self, area):
|
|
173
|
+
r"""Sets the area of this ContactWayInfoV2.
|
|
174
|
+
|
|
175
|
+
国家/地区
|
|
176
|
+
|
|
177
|
+
:param area: The area of this ContactWayInfoV2.
|
|
178
|
+
:type area: str
|
|
179
|
+
"""
|
|
180
|
+
self._area = area
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def address(self):
|
|
184
|
+
r"""Gets the address of this ContactWayInfoV2.
|
|
185
|
+
|
|
186
|
+
地址
|
|
187
|
+
|
|
188
|
+
:return: The address of this ContactWayInfoV2.
|
|
189
|
+
:rtype: str
|
|
190
|
+
"""
|
|
191
|
+
return self._address
|
|
192
|
+
|
|
193
|
+
@address.setter
|
|
194
|
+
def address(self, address):
|
|
195
|
+
r"""Sets the address of this ContactWayInfoV2.
|
|
196
|
+
|
|
197
|
+
地址
|
|
198
|
+
|
|
199
|
+
:param address: The address of this ContactWayInfoV2.
|
|
200
|
+
:type address: str
|
|
201
|
+
"""
|
|
202
|
+
self._address = address
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
def id_type(self):
|
|
206
|
+
r"""Gets the id_type of this ContactWayInfoV2.
|
|
207
|
+
|
|
208
|
+
身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23
|
|
209
|
+
|
|
210
|
+
:return: The id_type of this ContactWayInfoV2.
|
|
211
|
+
:rtype: int
|
|
212
|
+
"""
|
|
213
|
+
return self._id_type
|
|
214
|
+
|
|
215
|
+
@id_type.setter
|
|
216
|
+
def id_type(self, id_type):
|
|
217
|
+
r"""Sets the id_type of this ContactWayInfoV2.
|
|
218
|
+
|
|
219
|
+
身份。企业 10;个人 20;授权代理人 21;律师 22;知识产权所有人 23
|
|
220
|
+
|
|
221
|
+
:param id_type: The id_type of this ContactWayInfoV2.
|
|
222
|
+
:type id_type: int
|
|
223
|
+
"""
|
|
224
|
+
self._id_type = id_type
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
def company_name(self):
|
|
228
|
+
r"""Gets the company_name of this ContactWayInfoV2.
|
|
229
|
+
|
|
230
|
+
公司名称
|
|
231
|
+
|
|
232
|
+
:return: The company_name of this ContactWayInfoV2.
|
|
233
|
+
:rtype: str
|
|
234
|
+
"""
|
|
235
|
+
return self._company_name
|
|
236
|
+
|
|
237
|
+
@company_name.setter
|
|
238
|
+
def company_name(self, company_name):
|
|
239
|
+
r"""Sets the company_name of this ContactWayInfoV2.
|
|
240
|
+
|
|
241
|
+
公司名称
|
|
242
|
+
|
|
243
|
+
:param company_name: The company_name of this ContactWayInfoV2.
|
|
244
|
+
:type company_name: str
|
|
245
|
+
"""
|
|
246
|
+
self._company_name = company_name
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
def id_files(self):
|
|
250
|
+
r"""Gets the id_files of this ContactWayInfoV2.
|
|
251
|
+
|
|
252
|
+
身份证明附件列表,至少1个,最多3个
|
|
253
|
+
|
|
254
|
+
:return: The id_files of this ContactWayInfoV2.
|
|
255
|
+
:rtype: list[str]
|
|
256
|
+
"""
|
|
257
|
+
return self._id_files
|
|
258
|
+
|
|
259
|
+
@id_files.setter
|
|
260
|
+
def id_files(self, id_files):
|
|
261
|
+
r"""Sets the id_files of this ContactWayInfoV2.
|
|
262
|
+
|
|
263
|
+
身份证明附件列表,至少1个,最多3个
|
|
264
|
+
|
|
265
|
+
:param id_files: The id_files of this ContactWayInfoV2.
|
|
266
|
+
:type id_files: list[str]
|
|
267
|
+
"""
|
|
268
|
+
self._id_files = id_files
|
|
269
|
+
|
|
270
|
+
@property
|
|
271
|
+
def other_way(self):
|
|
272
|
+
r"""Gets the other_way of this ContactWayInfoV2.
|
|
273
|
+
|
|
274
|
+
其他联系方式
|
|
275
|
+
|
|
276
|
+
:return: The other_way of this ContactWayInfoV2.
|
|
277
|
+
:rtype: str
|
|
278
|
+
"""
|
|
279
|
+
return self._other_way
|
|
280
|
+
|
|
281
|
+
@other_way.setter
|
|
282
|
+
def other_way(self, other_way):
|
|
283
|
+
r"""Sets the other_way of this ContactWayInfoV2.
|
|
284
|
+
|
|
285
|
+
其他联系方式
|
|
286
|
+
|
|
287
|
+
:param other_way: The other_way of this ContactWayInfoV2.
|
|
288
|
+
:type other_way: str
|
|
289
|
+
"""
|
|
290
|
+
self._other_way = other_way
|
|
291
|
+
|
|
292
|
+
def to_dict(self):
|
|
293
|
+
result = {}
|
|
294
|
+
|
|
295
|
+
for attr, _ in self.openapi_types.items():
|
|
296
|
+
value = getattr(self, attr)
|
|
297
|
+
if isinstance(value, list):
|
|
298
|
+
result[attr] = list(map(
|
|
299
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
300
|
+
value
|
|
301
|
+
))
|
|
302
|
+
elif hasattr(value, "to_dict"):
|
|
303
|
+
result[attr] = value.to_dict()
|
|
304
|
+
elif isinstance(value, dict):
|
|
305
|
+
result[attr] = dict(map(
|
|
306
|
+
lambda item: (item[0], item[1].to_dict())
|
|
307
|
+
if hasattr(item[1], "to_dict") else item,
|
|
308
|
+
value.items()
|
|
309
|
+
))
|
|
310
|
+
else:
|
|
311
|
+
if attr in self.sensitive_list:
|
|
312
|
+
result[attr] = "****"
|
|
313
|
+
else:
|
|
314
|
+
result[attr] = value
|
|
315
|
+
|
|
316
|
+
return result
|
|
317
|
+
|
|
318
|
+
def to_str(self):
|
|
319
|
+
"""Returns the string representation of the model"""
|
|
320
|
+
import simplejson as json
|
|
321
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
322
|
+
|
|
323
|
+
def __repr__(self):
|
|
324
|
+
"""For `print`"""
|
|
325
|
+
return self.to_str()
|
|
326
|
+
|
|
327
|
+
def __eq__(self, other):
|
|
328
|
+
"""Returns true if both objects are equal"""
|
|
329
|
+
if not isinstance(other, ContactWayInfoV2):
|
|
330
|
+
return False
|
|
331
|
+
|
|
332
|
+
return self.__dict__ == other.__dict__
|
|
333
|
+
|
|
334
|
+
def __ne__(self, other):
|
|
335
|
+
"""Returns true if both objects are not equal"""
|
|
336
|
+
return not self == other
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateAndDeletePrivilegeReq:
|
|
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
|
+
'operation': 'str',
|
|
19
|
+
'privilege': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'operation': 'operation',
|
|
24
|
+
'privilege': 'privilege'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, operation=None, privilege=None):
|
|
28
|
+
r"""CreateAndDeletePrivilegeReq
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param operation: 执行的操作(create|delete)
|
|
33
|
+
:type operation: str
|
|
34
|
+
:param privilege: 权限标识
|
|
35
|
+
:type privilege: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._operation = None
|
|
41
|
+
self._privilege = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.operation = operation
|
|
45
|
+
if privilege is not None:
|
|
46
|
+
self.privilege = privilege
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def operation(self):
|
|
50
|
+
r"""Gets the operation of this CreateAndDeletePrivilegeReq.
|
|
51
|
+
|
|
52
|
+
执行的操作(create|delete)
|
|
53
|
+
|
|
54
|
+
:return: The operation of this CreateAndDeletePrivilegeReq.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._operation
|
|
58
|
+
|
|
59
|
+
@operation.setter
|
|
60
|
+
def operation(self, operation):
|
|
61
|
+
r"""Sets the operation of this CreateAndDeletePrivilegeReq.
|
|
62
|
+
|
|
63
|
+
执行的操作(create|delete)
|
|
64
|
+
|
|
65
|
+
:param operation: The operation of this CreateAndDeletePrivilegeReq.
|
|
66
|
+
:type operation: str
|
|
67
|
+
"""
|
|
68
|
+
self._operation = operation
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def privilege(self):
|
|
72
|
+
r"""Gets the privilege of this CreateAndDeletePrivilegeReq.
|
|
73
|
+
|
|
74
|
+
权限标识
|
|
75
|
+
|
|
76
|
+
:return: The privilege of this CreateAndDeletePrivilegeReq.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._privilege
|
|
80
|
+
|
|
81
|
+
@privilege.setter
|
|
82
|
+
def privilege(self, privilege):
|
|
83
|
+
r"""Sets the privilege of this CreateAndDeletePrivilegeReq.
|
|
84
|
+
|
|
85
|
+
权限标识
|
|
86
|
+
|
|
87
|
+
:param privilege: The privilege of this CreateAndDeletePrivilegeReq.
|
|
88
|
+
:type privilege: str
|
|
89
|
+
"""
|
|
90
|
+
self._privilege = privilege
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
result = {}
|
|
94
|
+
|
|
95
|
+
for attr, _ in self.openapi_types.items():
|
|
96
|
+
value = getattr(self, attr)
|
|
97
|
+
if isinstance(value, list):
|
|
98
|
+
result[attr] = list(map(
|
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
100
|
+
value
|
|
101
|
+
))
|
|
102
|
+
elif hasattr(value, "to_dict"):
|
|
103
|
+
result[attr] = value.to_dict()
|
|
104
|
+
elif isinstance(value, dict):
|
|
105
|
+
result[attr] = dict(map(
|
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
|
108
|
+
value.items()
|
|
109
|
+
))
|
|
110
|
+
else:
|
|
111
|
+
if attr in self.sensitive_list:
|
|
112
|
+
result[attr] = "****"
|
|
113
|
+
else:
|
|
114
|
+
result[attr] = value
|
|
115
|
+
|
|
116
|
+
return result
|
|
117
|
+
|
|
118
|
+
def to_str(self):
|
|
119
|
+
"""Returns the string representation of the model"""
|
|
120
|
+
import simplejson as json
|
|
121
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
122
|
+
|
|
123
|
+
def __repr__(self):
|
|
124
|
+
"""For `print`"""
|
|
125
|
+
return self.to_str()
|
|
126
|
+
|
|
127
|
+
def __eq__(self, other):
|
|
128
|
+
"""Returns true if both objects are equal"""
|
|
129
|
+
if not isinstance(other, CreateAndDeletePrivilegeReq):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
return self.__dict__ == other.__dict__
|
|
133
|
+
|
|
134
|
+
def __ne__(self, other):
|
|
135
|
+
"""Returns true if both objects are not equal"""
|
|
136
|
+
return not self == other
|