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,191 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreatePrivilegesRequest:
|
|
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
|
+
'x_site': 'int',
|
|
19
|
+
'x_language': 'str',
|
|
20
|
+
'x_time_zone': 'str',
|
|
21
|
+
'body': 'CreateAndDeletePrivilegeReq'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'x_site': 'X-Site',
|
|
26
|
+
'x_language': 'X-Language',
|
|
27
|
+
'x_time_zone': 'X-Time-Zone',
|
|
28
|
+
'body': 'body'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, x_site=None, x_language=None, x_time_zone=None, body=None):
|
|
32
|
+
r"""CreatePrivilegesRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param x_site: 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
37
|
+
:type x_site: int
|
|
38
|
+
:param x_language: 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
39
|
+
:type x_language: str
|
|
40
|
+
:param x_time_zone: 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
41
|
+
:type x_time_zone: str
|
|
42
|
+
:param body: Body of the CreatePrivilegesRequest
|
|
43
|
+
:type body: :class:`huaweicloudsdkosm.v2.CreateAndDeletePrivilegeReq`
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._x_site = None
|
|
49
|
+
self._x_language = None
|
|
50
|
+
self._x_time_zone = None
|
|
51
|
+
self._body = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if x_site is not None:
|
|
55
|
+
self.x_site = x_site
|
|
56
|
+
if x_language is not None:
|
|
57
|
+
self.x_language = x_language
|
|
58
|
+
if x_time_zone is not None:
|
|
59
|
+
self.x_time_zone = x_time_zone
|
|
60
|
+
if body is not None:
|
|
61
|
+
self.body = body
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def x_site(self):
|
|
65
|
+
r"""Gets the x_site of this CreatePrivilegesRequest.
|
|
66
|
+
|
|
67
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
68
|
+
|
|
69
|
+
:return: The x_site of this CreatePrivilegesRequest.
|
|
70
|
+
:rtype: int
|
|
71
|
+
"""
|
|
72
|
+
return self._x_site
|
|
73
|
+
|
|
74
|
+
@x_site.setter
|
|
75
|
+
def x_site(self, x_site):
|
|
76
|
+
r"""Sets the x_site of this CreatePrivilegesRequest.
|
|
77
|
+
|
|
78
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
79
|
+
|
|
80
|
+
:param x_site: The x_site of this CreatePrivilegesRequest.
|
|
81
|
+
:type x_site: int
|
|
82
|
+
"""
|
|
83
|
+
self._x_site = x_site
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def x_language(self):
|
|
87
|
+
r"""Gets the x_language of this CreatePrivilegesRequest.
|
|
88
|
+
|
|
89
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
90
|
+
|
|
91
|
+
:return: The x_language of this CreatePrivilegesRequest.
|
|
92
|
+
:rtype: str
|
|
93
|
+
"""
|
|
94
|
+
return self._x_language
|
|
95
|
+
|
|
96
|
+
@x_language.setter
|
|
97
|
+
def x_language(self, x_language):
|
|
98
|
+
r"""Sets the x_language of this CreatePrivilegesRequest.
|
|
99
|
+
|
|
100
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
101
|
+
|
|
102
|
+
:param x_language: The x_language of this CreatePrivilegesRequest.
|
|
103
|
+
:type x_language: str
|
|
104
|
+
"""
|
|
105
|
+
self._x_language = x_language
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def x_time_zone(self):
|
|
109
|
+
r"""Gets the x_time_zone of this CreatePrivilegesRequest.
|
|
110
|
+
|
|
111
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
112
|
+
|
|
113
|
+
:return: The x_time_zone of this CreatePrivilegesRequest.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._x_time_zone
|
|
117
|
+
|
|
118
|
+
@x_time_zone.setter
|
|
119
|
+
def x_time_zone(self, x_time_zone):
|
|
120
|
+
r"""Sets the x_time_zone of this CreatePrivilegesRequest.
|
|
121
|
+
|
|
122
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
123
|
+
|
|
124
|
+
:param x_time_zone: The x_time_zone of this CreatePrivilegesRequest.
|
|
125
|
+
:type x_time_zone: str
|
|
126
|
+
"""
|
|
127
|
+
self._x_time_zone = x_time_zone
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def body(self):
|
|
131
|
+
r"""Gets the body of this CreatePrivilegesRequest.
|
|
132
|
+
|
|
133
|
+
:return: The body of this CreatePrivilegesRequest.
|
|
134
|
+
:rtype: :class:`huaweicloudsdkosm.v2.CreateAndDeletePrivilegeReq`
|
|
135
|
+
"""
|
|
136
|
+
return self._body
|
|
137
|
+
|
|
138
|
+
@body.setter
|
|
139
|
+
def body(self, body):
|
|
140
|
+
r"""Sets the body of this CreatePrivilegesRequest.
|
|
141
|
+
|
|
142
|
+
:param body: The body of this CreatePrivilegesRequest.
|
|
143
|
+
:type body: :class:`huaweicloudsdkosm.v2.CreateAndDeletePrivilegeReq`
|
|
144
|
+
"""
|
|
145
|
+
self._body = body
|
|
146
|
+
|
|
147
|
+
def to_dict(self):
|
|
148
|
+
result = {}
|
|
149
|
+
|
|
150
|
+
for attr, _ in self.openapi_types.items():
|
|
151
|
+
value = getattr(self, attr)
|
|
152
|
+
if isinstance(value, list):
|
|
153
|
+
result[attr] = list(map(
|
|
154
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
155
|
+
value
|
|
156
|
+
))
|
|
157
|
+
elif hasattr(value, "to_dict"):
|
|
158
|
+
result[attr] = value.to_dict()
|
|
159
|
+
elif isinstance(value, dict):
|
|
160
|
+
result[attr] = dict(map(
|
|
161
|
+
lambda item: (item[0], item[1].to_dict())
|
|
162
|
+
if hasattr(item[1], "to_dict") else item,
|
|
163
|
+
value.items()
|
|
164
|
+
))
|
|
165
|
+
else:
|
|
166
|
+
if attr in self.sensitive_list:
|
|
167
|
+
result[attr] = "****"
|
|
168
|
+
else:
|
|
169
|
+
result[attr] = value
|
|
170
|
+
|
|
171
|
+
return result
|
|
172
|
+
|
|
173
|
+
def to_str(self):
|
|
174
|
+
"""Returns the string representation of the model"""
|
|
175
|
+
import simplejson as json
|
|
176
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
177
|
+
|
|
178
|
+
def __repr__(self):
|
|
179
|
+
"""For `print`"""
|
|
180
|
+
return self.to_str()
|
|
181
|
+
|
|
182
|
+
def __eq__(self, other):
|
|
183
|
+
"""Returns true if both objects are equal"""
|
|
184
|
+
if not isinstance(other, CreatePrivilegesRequest):
|
|
185
|
+
return False
|
|
186
|
+
|
|
187
|
+
return self.__dict__ == other.__dict__
|
|
188
|
+
|
|
189
|
+
def __ne__(self, other):
|
|
190
|
+
"""Returns true if both objects are not equal"""
|
|
191
|
+
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 CreatePrivilegesResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'error_code': 'str',
|
|
20
|
+
'error_msg': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'error_code': 'error_code',
|
|
25
|
+
'error_msg': 'error_msg'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, error_code=None, error_msg=None):
|
|
29
|
+
r"""CreatePrivilegesResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param error_code: 错误码
|
|
34
|
+
:type error_code: str
|
|
35
|
+
:param error_msg: 错误描述
|
|
36
|
+
:type error_msg: str
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._error_code = None
|
|
42
|
+
self._error_msg = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if error_code is not None:
|
|
46
|
+
self.error_code = error_code
|
|
47
|
+
if error_msg is not None:
|
|
48
|
+
self.error_msg = error_msg
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def error_code(self):
|
|
52
|
+
r"""Gets the error_code of this CreatePrivilegesResponse.
|
|
53
|
+
|
|
54
|
+
错误码
|
|
55
|
+
|
|
56
|
+
:return: The error_code of this CreatePrivilegesResponse.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._error_code
|
|
60
|
+
|
|
61
|
+
@error_code.setter
|
|
62
|
+
def error_code(self, error_code):
|
|
63
|
+
r"""Sets the error_code of this CreatePrivilegesResponse.
|
|
64
|
+
|
|
65
|
+
错误码
|
|
66
|
+
|
|
67
|
+
:param error_code: The error_code of this CreatePrivilegesResponse.
|
|
68
|
+
:type error_code: str
|
|
69
|
+
"""
|
|
70
|
+
self._error_code = error_code
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def error_msg(self):
|
|
74
|
+
r"""Gets the error_msg of this CreatePrivilegesResponse.
|
|
75
|
+
|
|
76
|
+
错误描述
|
|
77
|
+
|
|
78
|
+
:return: The error_msg of this CreatePrivilegesResponse.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._error_msg
|
|
82
|
+
|
|
83
|
+
@error_msg.setter
|
|
84
|
+
def error_msg(self, error_msg):
|
|
85
|
+
r"""Sets the error_msg of this CreatePrivilegesResponse.
|
|
86
|
+
|
|
87
|
+
错误描述
|
|
88
|
+
|
|
89
|
+
:param error_msg: The error_msg of this CreatePrivilegesResponse.
|
|
90
|
+
:type error_msg: str
|
|
91
|
+
"""
|
|
92
|
+
self._error_msg = error_msg
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
import warnings
|
|
96
|
+
warnings.warn("CreatePrivilegesResponse.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, CreatePrivilegesResponse):
|
|
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,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateRelationsReq:
|
|
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
|
+
'related_id_list': 'list[str]',
|
|
19
|
+
'group_id': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'related_id_list': 'related_id_list',
|
|
24
|
+
'group_id': 'group_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, related_id_list=None, group_id=None):
|
|
28
|
+
r"""CreateRelationsReq
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param related_id_list: 要关联的工单id列表,最多3个
|
|
33
|
+
:type related_id_list: list[str]
|
|
34
|
+
:param group_id: 华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
35
|
+
:type group_id: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._related_id_list = None
|
|
41
|
+
self._group_id = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.related_id_list = related_id_list
|
|
45
|
+
if group_id is not None:
|
|
46
|
+
self.group_id = group_id
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def related_id_list(self):
|
|
50
|
+
r"""Gets the related_id_list of this CreateRelationsReq.
|
|
51
|
+
|
|
52
|
+
要关联的工单id列表,最多3个
|
|
53
|
+
|
|
54
|
+
:return: The related_id_list of this CreateRelationsReq.
|
|
55
|
+
:rtype: list[str]
|
|
56
|
+
"""
|
|
57
|
+
return self._related_id_list
|
|
58
|
+
|
|
59
|
+
@related_id_list.setter
|
|
60
|
+
def related_id_list(self, related_id_list):
|
|
61
|
+
r"""Sets the related_id_list of this CreateRelationsReq.
|
|
62
|
+
|
|
63
|
+
要关联的工单id列表,最多3个
|
|
64
|
+
|
|
65
|
+
:param related_id_list: The related_id_list of this CreateRelationsReq.
|
|
66
|
+
:type related_id_list: list[str]
|
|
67
|
+
"""
|
|
68
|
+
self._related_id_list = related_id_list
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def group_id(self):
|
|
72
|
+
r"""Gets the group_id of this CreateRelationsReq.
|
|
73
|
+
|
|
74
|
+
华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
75
|
+
|
|
76
|
+
:return: The group_id of this CreateRelationsReq.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._group_id
|
|
80
|
+
|
|
81
|
+
@group_id.setter
|
|
82
|
+
def group_id(self, group_id):
|
|
83
|
+
r"""Sets the group_id of this CreateRelationsReq.
|
|
84
|
+
|
|
85
|
+
华为云IAM组id,操作查询同组其他工单时,该id必传
|
|
86
|
+
|
|
87
|
+
:param group_id: The group_id of this CreateRelationsReq.
|
|
88
|
+
:type group_id: str
|
|
89
|
+
"""
|
|
90
|
+
self._group_id = group_id
|
|
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, CreateRelationsReq):
|
|
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
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CreateRelationsRequest:
|
|
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
|
+
'case_id': 'str',
|
|
19
|
+
'x_site': 'int',
|
|
20
|
+
'x_language': 'str',
|
|
21
|
+
'x_time_zone': 'str',
|
|
22
|
+
'body': 'CreateRelationsReq'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'case_id': 'case_id',
|
|
27
|
+
'x_site': 'X-Site',
|
|
28
|
+
'x_language': 'X-Language',
|
|
29
|
+
'x_time_zone': 'X-Time-Zone',
|
|
30
|
+
'body': 'body'
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
def __init__(self, case_id=None, x_site=None, x_language=None, x_time_zone=None, body=None):
|
|
34
|
+
r"""CreateRelationsRequest
|
|
35
|
+
|
|
36
|
+
The model defined in huaweicloud sdk
|
|
37
|
+
|
|
38
|
+
:param case_id: 要关联的工单id
|
|
39
|
+
:type case_id: str
|
|
40
|
+
:param x_site: 对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
41
|
+
:type x_site: int
|
|
42
|
+
:param x_language: 语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
43
|
+
:type x_language: str
|
|
44
|
+
:param x_time_zone: 环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
45
|
+
:type x_time_zone: str
|
|
46
|
+
:param body: Body of the CreateRelationsRequest
|
|
47
|
+
:type body: :class:`huaweicloudsdkosm.v2.CreateRelationsReq`
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
self._case_id = None
|
|
53
|
+
self._x_site = None
|
|
54
|
+
self._x_language = None
|
|
55
|
+
self._x_time_zone = None
|
|
56
|
+
self._body = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
self.case_id = case_id
|
|
60
|
+
if x_site is not None:
|
|
61
|
+
self.x_site = x_site
|
|
62
|
+
if x_language is not None:
|
|
63
|
+
self.x_language = x_language
|
|
64
|
+
if x_time_zone is not None:
|
|
65
|
+
self.x_time_zone = x_time_zone
|
|
66
|
+
if body is not None:
|
|
67
|
+
self.body = body
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def case_id(self):
|
|
71
|
+
r"""Gets the case_id of this CreateRelationsRequest.
|
|
72
|
+
|
|
73
|
+
要关联的工单id
|
|
74
|
+
|
|
75
|
+
:return: The case_id of this CreateRelationsRequest.
|
|
76
|
+
:rtype: str
|
|
77
|
+
"""
|
|
78
|
+
return self._case_id
|
|
79
|
+
|
|
80
|
+
@case_id.setter
|
|
81
|
+
def case_id(self, case_id):
|
|
82
|
+
r"""Sets the case_id of this CreateRelationsRequest.
|
|
83
|
+
|
|
84
|
+
要关联的工单id
|
|
85
|
+
|
|
86
|
+
:param case_id: The case_id of this CreateRelationsRequest.
|
|
87
|
+
:type case_id: str
|
|
88
|
+
"""
|
|
89
|
+
self._case_id = case_id
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def x_site(self):
|
|
93
|
+
r"""Gets the x_site of this CreateRelationsRequest.
|
|
94
|
+
|
|
95
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
96
|
+
|
|
97
|
+
:return: The x_site of this CreateRelationsRequest.
|
|
98
|
+
:rtype: int
|
|
99
|
+
"""
|
|
100
|
+
return self._x_site
|
|
101
|
+
|
|
102
|
+
@x_site.setter
|
|
103
|
+
def x_site(self, x_site):
|
|
104
|
+
r"""Sets the x_site of this CreateRelationsRequest.
|
|
105
|
+
|
|
106
|
+
对接站点信息。 0(中国站) 1(国际站),不填的话默认为0。
|
|
107
|
+
|
|
108
|
+
:param x_site: The x_site of this CreateRelationsRequest.
|
|
109
|
+
:type x_site: int
|
|
110
|
+
"""
|
|
111
|
+
self._x_site = x_site
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def x_language(self):
|
|
115
|
+
r"""Gets the x_language of this CreateRelationsRequest.
|
|
116
|
+
|
|
117
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
118
|
+
|
|
119
|
+
:return: The x_language of this CreateRelationsRequest.
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._x_language
|
|
123
|
+
|
|
124
|
+
@x_language.setter
|
|
125
|
+
def x_language(self, x_language):
|
|
126
|
+
r"""Sets the x_language of this CreateRelationsRequest.
|
|
127
|
+
|
|
128
|
+
语言环境,值为通用的语言描述字符串,比如zh-cn等,默认为zh-cn。 会根据语言环境对应展示一些国际化的信息,比如工单类型名称等。
|
|
129
|
+
|
|
130
|
+
:param x_language: The x_language of this CreateRelationsRequest.
|
|
131
|
+
:type x_language: str
|
|
132
|
+
"""
|
|
133
|
+
self._x_language = x_language
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def x_time_zone(self):
|
|
137
|
+
r"""Gets the x_time_zone of this CreateRelationsRequest.
|
|
138
|
+
|
|
139
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
140
|
+
|
|
141
|
+
:return: The x_time_zone of this CreateRelationsRequest.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._x_time_zone
|
|
145
|
+
|
|
146
|
+
@x_time_zone.setter
|
|
147
|
+
def x_time_zone(self, x_time_zone):
|
|
148
|
+
r"""Sets the x_time_zone of this CreateRelationsRequest.
|
|
149
|
+
|
|
150
|
+
环境时区,值为通用的时区描述字符串,比如GMT+8等,默认为GMT+8。 涉及时间的数据会根据环境时区处理。
|
|
151
|
+
|
|
152
|
+
:param x_time_zone: The x_time_zone of this CreateRelationsRequest.
|
|
153
|
+
:type x_time_zone: str
|
|
154
|
+
"""
|
|
155
|
+
self._x_time_zone = x_time_zone
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def body(self):
|
|
159
|
+
r"""Gets the body of this CreateRelationsRequest.
|
|
160
|
+
|
|
161
|
+
:return: The body of this CreateRelationsRequest.
|
|
162
|
+
:rtype: :class:`huaweicloudsdkosm.v2.CreateRelationsReq`
|
|
163
|
+
"""
|
|
164
|
+
return self._body
|
|
165
|
+
|
|
166
|
+
@body.setter
|
|
167
|
+
def body(self, body):
|
|
168
|
+
r"""Sets the body of this CreateRelationsRequest.
|
|
169
|
+
|
|
170
|
+
:param body: The body of this CreateRelationsRequest.
|
|
171
|
+
:type body: :class:`huaweicloudsdkosm.v2.CreateRelationsReq`
|
|
172
|
+
"""
|
|
173
|
+
self._body = body
|
|
174
|
+
|
|
175
|
+
def to_dict(self):
|
|
176
|
+
result = {}
|
|
177
|
+
|
|
178
|
+
for attr, _ in self.openapi_types.items():
|
|
179
|
+
value = getattr(self, attr)
|
|
180
|
+
if isinstance(value, list):
|
|
181
|
+
result[attr] = list(map(
|
|
182
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
183
|
+
value
|
|
184
|
+
))
|
|
185
|
+
elif hasattr(value, "to_dict"):
|
|
186
|
+
result[attr] = value.to_dict()
|
|
187
|
+
elif isinstance(value, dict):
|
|
188
|
+
result[attr] = dict(map(
|
|
189
|
+
lambda item: (item[0], item[1].to_dict())
|
|
190
|
+
if hasattr(item[1], "to_dict") else item,
|
|
191
|
+
value.items()
|
|
192
|
+
))
|
|
193
|
+
else:
|
|
194
|
+
if attr in self.sensitive_list:
|
|
195
|
+
result[attr] = "****"
|
|
196
|
+
else:
|
|
197
|
+
result[attr] = value
|
|
198
|
+
|
|
199
|
+
return result
|
|
200
|
+
|
|
201
|
+
def to_str(self):
|
|
202
|
+
"""Returns the string representation of the model"""
|
|
203
|
+
import simplejson as json
|
|
204
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
205
|
+
|
|
206
|
+
def __repr__(self):
|
|
207
|
+
"""For `print`"""
|
|
208
|
+
return self.to_str()
|
|
209
|
+
|
|
210
|
+
def __eq__(self, other):
|
|
211
|
+
"""Returns true if both objects are equal"""
|
|
212
|
+
if not isinstance(other, CreateRelationsRequest):
|
|
213
|
+
return False
|
|
214
|
+
|
|
215
|
+
return self.__dict__ == other.__dict__
|
|
216
|
+
|
|
217
|
+
def __ne__(self, other):
|
|
218
|
+
"""Returns true if both objects are not equal"""
|
|
219
|
+
return not self == other
|