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,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class GaussDBUpgradeInstancesVersionRequest:
|
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
|
+
'instance_ids': 'list[str]',
|
21
|
+
'upgrade_type': 'str',
|
22
|
+
'upgrade_action': 'str',
|
23
|
+
'target_version': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'instance_ids': 'instance_ids',
|
28
|
+
'upgrade_type': 'upgrade_type',
|
29
|
+
'upgrade_action': 'upgrade_action',
|
30
|
+
'target_version': 'target_version'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, instance_ids=None, upgrade_type=None, upgrade_action=None, target_version=None):
|
34
|
+
"""GaussDBUpgradeInstancesVersionRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param instance_ids: 批量实例ID。
|
39
|
+
:type instance_ids: list[str]
|
40
|
+
:param upgrade_type: 实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
41
|
+
:type upgrade_type: str
|
42
|
+
:param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
43
|
+
:type upgrade_action: str
|
44
|
+
:param target_version: 批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
45
|
+
:type target_version: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._instance_ids = None
|
51
|
+
self._upgrade_type = None
|
52
|
+
self._upgrade_action = None
|
53
|
+
self._target_version = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.instance_ids = instance_ids
|
57
|
+
self.upgrade_type = upgrade_type
|
58
|
+
if upgrade_action is not None:
|
59
|
+
self.upgrade_action = upgrade_action
|
60
|
+
if target_version is not None:
|
61
|
+
self.target_version = target_version
|
62
|
+
|
63
|
+
@property
|
64
|
+
def instance_ids(self):
|
65
|
+
"""Gets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
66
|
+
|
67
|
+
批量实例ID。
|
68
|
+
|
69
|
+
:return: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
70
|
+
:rtype: list[str]
|
71
|
+
"""
|
72
|
+
return self._instance_ids
|
73
|
+
|
74
|
+
@instance_ids.setter
|
75
|
+
def instance_ids(self, instance_ids):
|
76
|
+
"""Sets the instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
77
|
+
|
78
|
+
批量实例ID。
|
79
|
+
|
80
|
+
:param instance_ids: The instance_ids of this GaussDBUpgradeInstancesVersionRequest.
|
81
|
+
:type instance_ids: list[str]
|
82
|
+
"""
|
83
|
+
self._instance_ids = instance_ids
|
84
|
+
|
85
|
+
@property
|
86
|
+
def upgrade_type(self):
|
87
|
+
"""Gets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
88
|
+
|
89
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
90
|
+
|
91
|
+
:return: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._upgrade_type
|
95
|
+
|
96
|
+
@upgrade_type.setter
|
97
|
+
def upgrade_type(self, upgrade_type):
|
98
|
+
"""Sets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
99
|
+
|
100
|
+
实例升级类型,包括就地升级,灰度升级、热补丁升级三种。
|
101
|
+
|
102
|
+
:param upgrade_type: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest.
|
103
|
+
:type upgrade_type: str
|
104
|
+
"""
|
105
|
+
self._upgrade_type = upgrade_type
|
106
|
+
|
107
|
+
@property
|
108
|
+
def upgrade_action(self):
|
109
|
+
"""Gets the upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
110
|
+
|
111
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
112
|
+
|
113
|
+
:return: The upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._upgrade_action
|
117
|
+
|
118
|
+
@upgrade_action.setter
|
119
|
+
def upgrade_action(self, upgrade_action):
|
120
|
+
"""Sets the upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
121
|
+
|
122
|
+
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。
|
123
|
+
|
124
|
+
:param upgrade_action: The upgrade_action of this GaussDBUpgradeInstancesVersionRequest.
|
125
|
+
:type upgrade_action: str
|
126
|
+
"""
|
127
|
+
self._upgrade_action = upgrade_action
|
128
|
+
|
129
|
+
@property
|
130
|
+
def target_version(self):
|
131
|
+
"""Gets the target_version of this GaussDBUpgradeInstancesVersionRequest.
|
132
|
+
|
133
|
+
批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
134
|
+
|
135
|
+
:return: The target_version of this GaussDBUpgradeInstancesVersionRequest.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._target_version
|
139
|
+
|
140
|
+
@target_version.setter
|
141
|
+
def target_version(self, target_version):
|
142
|
+
"""Sets the target_version of this GaussDBUpgradeInstancesVersionRequest.
|
143
|
+
|
144
|
+
批量实例升级目标版本,非必填。如果未传值灰度升级和就地升级默认升级到当前实例的优选版本,热补丁升级无需传该值,默认升级实例所有可升级热补丁。
|
145
|
+
|
146
|
+
:param target_version: The target_version of this GaussDBUpgradeInstancesVersionRequest.
|
147
|
+
:type target_version: str
|
148
|
+
"""
|
149
|
+
self._target_version = target_version
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, GaussDBUpgradeInstancesVersionRequest):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HotfixInfo:
|
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
|
+
'version': 'str',
|
21
|
+
'common_patch': 'str',
|
22
|
+
'backup_sensitive': 'bool',
|
23
|
+
'descripition': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'version': 'version',
|
28
|
+
'common_patch': 'common_patch',
|
29
|
+
'backup_sensitive': 'backup_sensitive',
|
30
|
+
'descripition': 'descripition'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None):
|
34
|
+
"""HotfixInfo
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param version: 热补丁版本。
|
39
|
+
:type version: str
|
40
|
+
:param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁。
|
41
|
+
:type common_patch: str
|
42
|
+
:param backup_sensitive: 是否和备份相关。
|
43
|
+
:type backup_sensitive: bool
|
44
|
+
:param descripition: 补丁的描述信息。
|
45
|
+
:type descripition: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._version = None
|
51
|
+
self._common_patch = None
|
52
|
+
self._backup_sensitive = None
|
53
|
+
self._descripition = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if version is not None:
|
57
|
+
self.version = version
|
58
|
+
if common_patch is not None:
|
59
|
+
self.common_patch = common_patch
|
60
|
+
if backup_sensitive is not None:
|
61
|
+
self.backup_sensitive = backup_sensitive
|
62
|
+
if descripition is not None:
|
63
|
+
self.descripition = descripition
|
64
|
+
|
65
|
+
@property
|
66
|
+
def version(self):
|
67
|
+
"""Gets the version of this HotfixInfo.
|
68
|
+
|
69
|
+
热补丁版本。
|
70
|
+
|
71
|
+
:return: The version of this HotfixInfo.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._version
|
75
|
+
|
76
|
+
@version.setter
|
77
|
+
def version(self, version):
|
78
|
+
"""Sets the version of this HotfixInfo.
|
79
|
+
|
80
|
+
热补丁版本。
|
81
|
+
|
82
|
+
:param version: The version of this HotfixInfo.
|
83
|
+
:type version: str
|
84
|
+
"""
|
85
|
+
self._version = version
|
86
|
+
|
87
|
+
@property
|
88
|
+
def common_patch(self):
|
89
|
+
"""Gets the common_patch of this HotfixInfo.
|
90
|
+
|
91
|
+
通用非通用信息,common=通用补丁,certain=定制补丁。
|
92
|
+
|
93
|
+
:return: The common_patch of this HotfixInfo.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._common_patch
|
97
|
+
|
98
|
+
@common_patch.setter
|
99
|
+
def common_patch(self, common_patch):
|
100
|
+
"""Sets the common_patch of this HotfixInfo.
|
101
|
+
|
102
|
+
通用非通用信息,common=通用补丁,certain=定制补丁。
|
103
|
+
|
104
|
+
:param common_patch: The common_patch of this HotfixInfo.
|
105
|
+
:type common_patch: str
|
106
|
+
"""
|
107
|
+
self._common_patch = common_patch
|
108
|
+
|
109
|
+
@property
|
110
|
+
def backup_sensitive(self):
|
111
|
+
"""Gets the backup_sensitive of this HotfixInfo.
|
112
|
+
|
113
|
+
是否和备份相关。
|
114
|
+
|
115
|
+
:return: The backup_sensitive of this HotfixInfo.
|
116
|
+
:rtype: bool
|
117
|
+
"""
|
118
|
+
return self._backup_sensitive
|
119
|
+
|
120
|
+
@backup_sensitive.setter
|
121
|
+
def backup_sensitive(self, backup_sensitive):
|
122
|
+
"""Sets the backup_sensitive of this HotfixInfo.
|
123
|
+
|
124
|
+
是否和备份相关。
|
125
|
+
|
126
|
+
:param backup_sensitive: The backup_sensitive of this HotfixInfo.
|
127
|
+
:type backup_sensitive: bool
|
128
|
+
"""
|
129
|
+
self._backup_sensitive = backup_sensitive
|
130
|
+
|
131
|
+
@property
|
132
|
+
def descripition(self):
|
133
|
+
"""Gets the descripition of this HotfixInfo.
|
134
|
+
|
135
|
+
补丁的描述信息。
|
136
|
+
|
137
|
+
:return: The descripition of this HotfixInfo.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._descripition
|
141
|
+
|
142
|
+
@descripition.setter
|
143
|
+
def descripition(self, descripition):
|
144
|
+
"""Sets the descripition of this HotfixInfo.
|
145
|
+
|
146
|
+
补丁的描述信息。
|
147
|
+
|
148
|
+
:param descripition: The descripition of this HotfixInfo.
|
149
|
+
:type descripition: str
|
150
|
+
"""
|
151
|
+
self._descripition = descripition
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, HotfixInfo):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HotfixInfoResult:
|
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
|
+
'version': 'str',
|
21
|
+
'common_patch': 'str',
|
22
|
+
'backup_sensitive': 'bool',
|
23
|
+
'descripition': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'version': 'version',
|
28
|
+
'common_patch': 'common_patch',
|
29
|
+
'backup_sensitive': 'backup_sensitive',
|
30
|
+
'descripition': 'descripition'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, version=None, common_patch=None, backup_sensitive=None, descripition=None):
|
34
|
+
"""HotfixInfoResult
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param version: 热补丁版本
|
39
|
+
:type version: str
|
40
|
+
:param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁
|
41
|
+
:type common_patch: str
|
42
|
+
:param backup_sensitive: 是否和备份相关
|
43
|
+
:type backup_sensitive: bool
|
44
|
+
:param descripition: 补丁的描述信息
|
45
|
+
:type descripition: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._version = None
|
51
|
+
self._common_patch = None
|
52
|
+
self._backup_sensitive = None
|
53
|
+
self._descripition = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if version is not None:
|
57
|
+
self.version = version
|
58
|
+
if common_patch is not None:
|
59
|
+
self.common_patch = common_patch
|
60
|
+
if backup_sensitive is not None:
|
61
|
+
self.backup_sensitive = backup_sensitive
|
62
|
+
if descripition is not None:
|
63
|
+
self.descripition = descripition
|
64
|
+
|
65
|
+
@property
|
66
|
+
def version(self):
|
67
|
+
"""Gets the version of this HotfixInfoResult.
|
68
|
+
|
69
|
+
热补丁版本
|
70
|
+
|
71
|
+
:return: The version of this HotfixInfoResult.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._version
|
75
|
+
|
76
|
+
@version.setter
|
77
|
+
def version(self, version):
|
78
|
+
"""Sets the version of this HotfixInfoResult.
|
79
|
+
|
80
|
+
热补丁版本
|
81
|
+
|
82
|
+
:param version: The version of this HotfixInfoResult.
|
83
|
+
:type version: str
|
84
|
+
"""
|
85
|
+
self._version = version
|
86
|
+
|
87
|
+
@property
|
88
|
+
def common_patch(self):
|
89
|
+
"""Gets the common_patch of this HotfixInfoResult.
|
90
|
+
|
91
|
+
通用非通用信息,common=通用补丁,certain=定制补丁
|
92
|
+
|
93
|
+
:return: The common_patch of this HotfixInfoResult.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._common_patch
|
97
|
+
|
98
|
+
@common_patch.setter
|
99
|
+
def common_patch(self, common_patch):
|
100
|
+
"""Sets the common_patch of this HotfixInfoResult.
|
101
|
+
|
102
|
+
通用非通用信息,common=通用补丁,certain=定制补丁
|
103
|
+
|
104
|
+
:param common_patch: The common_patch of this HotfixInfoResult.
|
105
|
+
:type common_patch: str
|
106
|
+
"""
|
107
|
+
self._common_patch = common_patch
|
108
|
+
|
109
|
+
@property
|
110
|
+
def backup_sensitive(self):
|
111
|
+
"""Gets the backup_sensitive of this HotfixInfoResult.
|
112
|
+
|
113
|
+
是否和备份相关
|
114
|
+
|
115
|
+
:return: The backup_sensitive of this HotfixInfoResult.
|
116
|
+
:rtype: bool
|
117
|
+
"""
|
118
|
+
return self._backup_sensitive
|
119
|
+
|
120
|
+
@backup_sensitive.setter
|
121
|
+
def backup_sensitive(self, backup_sensitive):
|
122
|
+
"""Sets the backup_sensitive of this HotfixInfoResult.
|
123
|
+
|
124
|
+
是否和备份相关
|
125
|
+
|
126
|
+
:param backup_sensitive: The backup_sensitive of this HotfixInfoResult.
|
127
|
+
:type backup_sensitive: bool
|
128
|
+
"""
|
129
|
+
self._backup_sensitive = backup_sensitive
|
130
|
+
|
131
|
+
@property
|
132
|
+
def descripition(self):
|
133
|
+
"""Gets the descripition of this HotfixInfoResult.
|
134
|
+
|
135
|
+
补丁的描述信息
|
136
|
+
|
137
|
+
:return: The descripition of this HotfixInfoResult.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._descripition
|
141
|
+
|
142
|
+
@descripition.setter
|
143
|
+
def descripition(self, descripition):
|
144
|
+
"""Sets the descripition of this HotfixInfoResult.
|
145
|
+
|
146
|
+
补丁的描述信息
|
147
|
+
|
148
|
+
:param descripition: The descripition of this HotfixInfoResult.
|
149
|
+
:type descripition: str
|
150
|
+
"""
|
151
|
+
self._descripition = descripition
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, HotfixInfoResult):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|