huaweicloudsdkgaussdbforopengauss 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +167 -1
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +4890 -1170
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +4890 -1170
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +167 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +138 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/available_flavor_info_result.py +18 -18
- huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/components.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_configuration_template_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_request.py +169 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_manual_backup_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py +61 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/feature_result.py +289 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_list_database.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_role_attributes.py +199 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py +50 -21
- huaweicloudsdkgaussdbforopengauss/v3/model/{gauss_d_bfor_open_gauss_user_for_list_attributes.py → gauss_d_bfor_open_gauss_user_for_list_attribute.py} +67 -38
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +197 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles_priv.py +347 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +200 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_rollback_infos.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_upgrade_infos.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request_body.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instances_result.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastore.py +61 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_features_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_features_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +35 -6
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/para_group_parameter_result.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/param_group_diff_request_body.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/plugin_extensions.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_source.py +200 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_target.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result.py +6 -6
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py +3 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_request_body.py +134 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request_body.py +198 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +319 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +373 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/task_detail_result.py +59 -1
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_features_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_features_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_features_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_instance_configuration_response.py +32 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py +30 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.86.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.86.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/RECORD +203 -37
- {huaweicloudsdkgaussdbforopengauss-3.1.86.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkgaussdbforopengauss-3.1.86.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.86.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstallKernelPluginRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'body': 'InstallKernelPluginRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, instance_id=None, body=None):
|
32
|
+
"""InstallKernelPluginRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 语言。
|
37
|
+
:type x_language: str
|
38
|
+
:param instance_id: 需要安装插件的实例id
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the InstallKernelPluginRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.instance_id = instance_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this InstallKernelPluginRequest.
|
60
|
+
|
61
|
+
语言。
|
62
|
+
|
63
|
+
:return: The x_language of this InstallKernelPluginRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this InstallKernelPluginRequest.
|
71
|
+
|
72
|
+
语言。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this InstallKernelPluginRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def instance_id(self):
|
81
|
+
"""Gets the instance_id of this InstallKernelPluginRequest.
|
82
|
+
|
83
|
+
需要安装插件的实例id
|
84
|
+
|
85
|
+
:return: The instance_id of this InstallKernelPluginRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._instance_id
|
89
|
+
|
90
|
+
@instance_id.setter
|
91
|
+
def instance_id(self, instance_id):
|
92
|
+
"""Sets the instance_id of this InstallKernelPluginRequest.
|
93
|
+
|
94
|
+
需要安装插件的实例id
|
95
|
+
|
96
|
+
:param instance_id: The instance_id of this InstallKernelPluginRequest.
|
97
|
+
:type instance_id: str
|
98
|
+
"""
|
99
|
+
self._instance_id = instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this InstallKernelPluginRequest.
|
104
|
+
|
105
|
+
:return: The body of this InstallKernelPluginRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this InstallKernelPluginRequest.
|
113
|
+
|
114
|
+
:param body: The body of this InstallKernelPluginRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.InstallKernelPluginRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, InstallKernelPluginRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstallKernelPluginRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'plugin_name': 'str',
|
21
|
+
'url': 'str',
|
22
|
+
'sha_256': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'plugin_name': 'plugin_name',
|
27
|
+
'url': 'url',
|
28
|
+
'sha_256': 'sha_256'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, plugin_name=None, url=None, sha_256=None):
|
32
|
+
"""InstallKernelPluginRequestBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param plugin_name: 插件名称
|
37
|
+
:type plugin_name: str
|
38
|
+
:param url: 插件安装包链接
|
39
|
+
:type url: str
|
40
|
+
:param sha_256: 插件安装包的sha256值
|
41
|
+
:type sha_256: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._plugin_name = None
|
47
|
+
self._url = None
|
48
|
+
self._sha_256 = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.plugin_name = plugin_name
|
52
|
+
self.url = url
|
53
|
+
self.sha_256 = sha_256
|
54
|
+
|
55
|
+
@property
|
56
|
+
def plugin_name(self):
|
57
|
+
"""Gets the plugin_name of this InstallKernelPluginRequestBody.
|
58
|
+
|
59
|
+
插件名称
|
60
|
+
|
61
|
+
:return: The plugin_name of this InstallKernelPluginRequestBody.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._plugin_name
|
65
|
+
|
66
|
+
@plugin_name.setter
|
67
|
+
def plugin_name(self, plugin_name):
|
68
|
+
"""Sets the plugin_name of this InstallKernelPluginRequestBody.
|
69
|
+
|
70
|
+
插件名称
|
71
|
+
|
72
|
+
:param plugin_name: The plugin_name of this InstallKernelPluginRequestBody.
|
73
|
+
:type plugin_name: str
|
74
|
+
"""
|
75
|
+
self._plugin_name = plugin_name
|
76
|
+
|
77
|
+
@property
|
78
|
+
def url(self):
|
79
|
+
"""Gets the url of this InstallKernelPluginRequestBody.
|
80
|
+
|
81
|
+
插件安装包链接
|
82
|
+
|
83
|
+
:return: The url of this InstallKernelPluginRequestBody.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._url
|
87
|
+
|
88
|
+
@url.setter
|
89
|
+
def url(self, url):
|
90
|
+
"""Sets the url of this InstallKernelPluginRequestBody.
|
91
|
+
|
92
|
+
插件安装包链接
|
93
|
+
|
94
|
+
:param url: The url of this InstallKernelPluginRequestBody.
|
95
|
+
:type url: str
|
96
|
+
"""
|
97
|
+
self._url = url
|
98
|
+
|
99
|
+
@property
|
100
|
+
def sha_256(self):
|
101
|
+
"""Gets the sha_256 of this InstallKernelPluginRequestBody.
|
102
|
+
|
103
|
+
插件安装包的sha256值
|
104
|
+
|
105
|
+
:return: The sha_256 of this InstallKernelPluginRequestBody.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._sha_256
|
109
|
+
|
110
|
+
@sha_256.setter
|
111
|
+
def sha_256(self, sha_256):
|
112
|
+
"""Sets the sha_256 of this InstallKernelPluginRequestBody.
|
113
|
+
|
114
|
+
插件安装包的sha256值
|
115
|
+
|
116
|
+
:param sha_256: The sha_256 of this InstallKernelPluginRequestBody.
|
117
|
+
:type sha_256: str
|
118
|
+
"""
|
119
|
+
self._sha_256 = sha_256
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, InstallKernelPluginRequestBody):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class InstallKernelPluginResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
"""InstallKernelPluginResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 插件安装工作流id
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(InstallKernelPluginResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
"""Gets the job_id of this InstallKernelPluginResponse.
|
48
|
+
|
49
|
+
插件安装工作流id
|
50
|
+
|
51
|
+
:return: The job_id of this InstallKernelPluginResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
"""Sets the job_id of this InstallKernelPluginResponse.
|
59
|
+
|
60
|
+
插件安装工作流id
|
61
|
+
|
62
|
+
:param job_id: The job_id of this InstallKernelPluginResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, InstallKernelPluginResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class InstanceLogFile:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'status': 'str',
|
21
|
+
'file_name': 'str',
|
22
|
+
'start_time': 'str',
|
23
|
+
'end_time': 'str',
|
24
|
+
'file_size': 'str',
|
25
|
+
'file_link': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'status': 'status',
|
30
|
+
'file_name': 'file_name',
|
31
|
+
'start_time': 'start_time',
|
32
|
+
'end_time': 'end_time',
|
33
|
+
'file_size': 'file_size',
|
34
|
+
'file_link': 'file_link'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, status=None, file_name=None, start_time=None, end_time=None, file_size=None, file_link=None):
|
38
|
+
"""InstanceLogFile
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param status: 日志采集状态。
|
43
|
+
:type status: str
|
44
|
+
:param file_name: 日志文件名称。
|
45
|
+
:type file_name: str
|
46
|
+
:param start_time: 日志开始时间。
|
47
|
+
:type start_time: str
|
48
|
+
:param end_time: 日志结束时间。
|
49
|
+
:type end_time: str
|
50
|
+
:param file_size: 日志文件大小,单位kb。
|
51
|
+
:type file_size: str
|
52
|
+
:param file_link: 日志文件下载链接。
|
53
|
+
:type file_link: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._status = None
|
59
|
+
self._file_name = None
|
60
|
+
self._start_time = None
|
61
|
+
self._end_time = None
|
62
|
+
self._file_size = None
|
63
|
+
self._file_link = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if status is not None:
|
67
|
+
self.status = status
|
68
|
+
if file_name is not None:
|
69
|
+
self.file_name = file_name
|
70
|
+
if start_time is not None:
|
71
|
+
self.start_time = start_time
|
72
|
+
if end_time is not None:
|
73
|
+
self.end_time = end_time
|
74
|
+
if file_size is not None:
|
75
|
+
self.file_size = file_size
|
76
|
+
if file_link is not None:
|
77
|
+
self.file_link = file_link
|
78
|
+
|
79
|
+
@property
|
80
|
+
def status(self):
|
81
|
+
"""Gets the status of this InstanceLogFile.
|
82
|
+
|
83
|
+
日志采集状态。
|
84
|
+
|
85
|
+
:return: The status of this InstanceLogFile.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._status
|
89
|
+
|
90
|
+
@status.setter
|
91
|
+
def status(self, status):
|
92
|
+
"""Sets the status of this InstanceLogFile.
|
93
|
+
|
94
|
+
日志采集状态。
|
95
|
+
|
96
|
+
:param status: The status of this InstanceLogFile.
|
97
|
+
:type status: str
|
98
|
+
"""
|
99
|
+
self._status = status
|
100
|
+
|
101
|
+
@property
|
102
|
+
def file_name(self):
|
103
|
+
"""Gets the file_name of this InstanceLogFile.
|
104
|
+
|
105
|
+
日志文件名称。
|
106
|
+
|
107
|
+
:return: The file_name of this InstanceLogFile.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._file_name
|
111
|
+
|
112
|
+
@file_name.setter
|
113
|
+
def file_name(self, file_name):
|
114
|
+
"""Sets the file_name of this InstanceLogFile.
|
115
|
+
|
116
|
+
日志文件名称。
|
117
|
+
|
118
|
+
:param file_name: The file_name of this InstanceLogFile.
|
119
|
+
:type file_name: str
|
120
|
+
"""
|
121
|
+
self._file_name = file_name
|
122
|
+
|
123
|
+
@property
|
124
|
+
def start_time(self):
|
125
|
+
"""Gets the start_time of this InstanceLogFile.
|
126
|
+
|
127
|
+
日志开始时间。
|
128
|
+
|
129
|
+
:return: The start_time of this InstanceLogFile.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._start_time
|
133
|
+
|
134
|
+
@start_time.setter
|
135
|
+
def start_time(self, start_time):
|
136
|
+
"""Sets the start_time of this InstanceLogFile.
|
137
|
+
|
138
|
+
日志开始时间。
|
139
|
+
|
140
|
+
:param start_time: The start_time of this InstanceLogFile.
|
141
|
+
:type start_time: str
|
142
|
+
"""
|
143
|
+
self._start_time = start_time
|
144
|
+
|
145
|
+
@property
|
146
|
+
def end_time(self):
|
147
|
+
"""Gets the end_time of this InstanceLogFile.
|
148
|
+
|
149
|
+
日志结束时间。
|
150
|
+
|
151
|
+
:return: The end_time of this InstanceLogFile.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._end_time
|
155
|
+
|
156
|
+
@end_time.setter
|
157
|
+
def end_time(self, end_time):
|
158
|
+
"""Sets the end_time of this InstanceLogFile.
|
159
|
+
|
160
|
+
日志结束时间。
|
161
|
+
|
162
|
+
:param end_time: The end_time of this InstanceLogFile.
|
163
|
+
:type end_time: str
|
164
|
+
"""
|
165
|
+
self._end_time = end_time
|
166
|
+
|
167
|
+
@property
|
168
|
+
def file_size(self):
|
169
|
+
"""Gets the file_size of this InstanceLogFile.
|
170
|
+
|
171
|
+
日志文件大小,单位kb。
|
172
|
+
|
173
|
+
:return: The file_size of this InstanceLogFile.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._file_size
|
177
|
+
|
178
|
+
@file_size.setter
|
179
|
+
def file_size(self, file_size):
|
180
|
+
"""Sets the file_size of this InstanceLogFile.
|
181
|
+
|
182
|
+
日志文件大小,单位kb。
|
183
|
+
|
184
|
+
:param file_size: The file_size of this InstanceLogFile.
|
185
|
+
:type file_size: str
|
186
|
+
"""
|
187
|
+
self._file_size = file_size
|
188
|
+
|
189
|
+
@property
|
190
|
+
def file_link(self):
|
191
|
+
"""Gets the file_link of this InstanceLogFile.
|
192
|
+
|
193
|
+
日志文件下载链接。
|
194
|
+
|
195
|
+
:return: The file_link of this InstanceLogFile.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._file_link
|
199
|
+
|
200
|
+
@file_link.setter
|
201
|
+
def file_link(self, file_link):
|
202
|
+
"""Sets the file_link of this InstanceLogFile.
|
203
|
+
|
204
|
+
日志文件下载链接。
|
205
|
+
|
206
|
+
:param file_link: The file_link of this InstanceLogFile.
|
207
|
+
:type file_link: str
|
208
|
+
"""
|
209
|
+
self._file_link = file_link
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, InstanceLogFile):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|