huaweicloudsdkgaussdbforopengauss 3.1.85__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.
Files changed (203) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +167 -1
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +4890 -1170
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +4890 -1170
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +167 -1
  5. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +138 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/available_flavor_info_result.py +18 -18
  9. huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/components.py +61 -3
  16. huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/create_configuration_template_request_body.py +3 -3
  20. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_request.py +169 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/create_gauss_db_instance_response.py +170 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/create_manual_backup_request_body.py +3 -3
  36. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  38. huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py +3 -3
  39. huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
  40. huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py +3 -3
  41. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
  42. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
  43. huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
  44. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
  45. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
  46. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
  47. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
  48. huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_request.py +3 -3
  49. huaweicloudsdkgaussdbforopengauss/v3/model/delete_manual_backup_response.py +61 -1
  50. huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py +3 -3
  51. huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
  52. huaweicloudsdkgaussdbforopengauss/v3/model/feature_result.py +289 -0
  53. huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py +3 -3
  54. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_list_database.py +61 -3
  55. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_role_attributes.py +199 -0
  56. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py +50 -21
  57. 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
  58. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_error_response_body.py +142 -0
  59. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +197 -0
  60. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles_priv.py +347 -0
  61. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +200 -0
  62. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
  63. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
  64. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_rollback_infos.py +202 -0
  65. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_upgrade_infos.py +202 -0
  66. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
  67. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request.py +168 -0
  68. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request_body.py +170 -0
  69. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_response.py +116 -0
  70. huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
  71. huaweicloudsdkgaussdbforopengauss/v3/model/instances_result.py +4 -4
  72. huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
  73. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
  74. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
  75. huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
  76. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  77. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  78. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
  79. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
  80. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
  81. huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
  82. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastore.py +61 -3
  83. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
  84. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
  85. huaweicloudsdkgaussdbforopengauss/v3/model/list_features_request.py +143 -0
  86. huaweicloudsdkgaussdbforopengauss/v3/model/list_features_response.py +116 -0
  87. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
  88. huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
  89. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
  90. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
  91. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
  92. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
  93. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
  94. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
  95. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_request.py +143 -0
  96. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_response.py +116 -0
  97. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
  98. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
  99. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
  100. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
  101. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
  102. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
  103. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
  104. huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
  105. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request.py +168 -0
  106. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request_body.py +142 -0
  107. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_response.py +116 -0
  108. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
  109. huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
  110. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
  111. huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
  112. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_request.py +115 -0
  113. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_response.py +116 -0
  114. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
  115. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
  116. huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
  117. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py +3 -3
  118. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py +32 -3
  119. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +32 -3
  120. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
  121. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +35 -6
  122. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
  123. huaweicloudsdkgaussdbforopengauss/v3/model/para_group_parameter_result.py +3 -3
  124. huaweicloudsdkgaussdbforopengauss/v3/model/param_group_diff_request_body.py +3 -3
  125. huaweicloudsdkgaussdbforopengauss/v3/model/plugin_extensions.py +144 -0
  126. huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_source.py +200 -0
  127. huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_target.py +114 -0
  128. huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result.py +6 -6
  129. huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
  130. huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py +3 -3
  131. huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_request.py +140 -0
  132. huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_request_body.py +134 -0
  133. huaweicloudsdkgaussdbforopengauss/v3/model/restore_instance_response.py +116 -0
  134. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request.py +168 -0
  135. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request_body.py +198 -0
  136. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_response.py +112 -0
  137. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  138. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  139. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +319 -0
  140. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request.py +168 -0
  141. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request_body.py +114 -0
  142. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_response.py +112 -0
  143. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
  144. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
  145. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
  146. huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
  147. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
  148. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +232 -0
  149. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
  150. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
  151. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
  152. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
  153. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
  154. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
  155. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
  156. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
  157. huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
  158. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  159. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  160. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
  161. huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
  162. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
  163. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
  164. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  165. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +373 -0
  166. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  167. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  168. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  169. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  170. huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
  171. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
  172. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
  173. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
  174. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
  175. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
  176. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
  177. huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
  178. huaweicloudsdkgaussdbforopengauss/v3/model/task_detail_result.py +59 -1
  179. huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
  180. huaweicloudsdkgaussdbforopengauss/v3/model/update_features_request.py +168 -0
  181. huaweicloudsdkgaussdbforopengauss/v3/model/update_features_request_body.py +114 -0
  182. huaweicloudsdkgaussdbforopengauss/v3/model/update_features_response.py +116 -0
  183. huaweicloudsdkgaussdbforopengauss/v3/model/update_instance_configuration_response.py +32 -3
  184. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
  185. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
  186. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
  187. huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +114 -0
  188. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
  189. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
  190. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  191. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  192. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  193. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  194. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
  195. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
  196. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
  197. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +202 -0
  198. huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py +30 -0
  199. {huaweicloudsdkgaussdbforopengauss-3.1.85.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/METADATA +2 -2
  200. {huaweicloudsdkgaussdbforopengauss-3.1.85.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/RECORD +203 -37
  201. {huaweicloudsdkgaussdbforopengauss-3.1.85.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/WHEEL +1 -1
  202. {huaweicloudsdkgaussdbforopengauss-3.1.85.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/LICENSE +0 -0
  203. {huaweicloudsdkgaussdbforopengauss-3.1.85.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,257 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListTopIoTrafficsRequest:
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
+ 'node_id': 'str',
23
+ 'component_id': 'str',
24
+ 'top_io_num': 'int',
25
+ 'sort_condition': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'x_language': 'X-Language',
30
+ 'instance_id': 'instance_id',
31
+ 'node_id': 'node_id',
32
+ 'component_id': 'component_id',
33
+ 'top_io_num': 'top_io_num',
34
+ 'sort_condition': 'sort_condition'
35
+ }
36
+
37
+ def __init__(self, x_language=None, instance_id=None, node_id=None, component_id=None, top_io_num=None, sort_condition=None):
38
+ """ListTopIoTrafficsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param x_language: 语言
43
+ :type x_language: str
44
+ :param instance_id: 实例ID,严格匹配UUID规则。
45
+ :type instance_id: str
46
+ :param node_id: 节点ID。节点应为CN或者非日志角色的DN节点,并且节点状态为正常。
47
+ :type node_id: str
48
+ :param component_id: 组件ID。组件应为CN或者非日志角色的DN组件。 DN:Data Node,和CN对应的概念。负责实际执行表数据的存储、查询操作。 CN:Coordinator Node,负责数据库系统元数据存储、查询任务的分解和部分执行,以及将DN中查询结果汇聚在一起。
49
+ :type component_id: str
50
+ :param top_io_num: 期望查询数据库进程下TOP IO线程数(默认值为20)。接口返回TOP IO线程与会话信息关联后的结果,数量最大不超过该值。
51
+ :type top_io_num: int
52
+ :param sort_condition: TOP IO排序条件
53
+ :type sort_condition: str
54
+ """
55
+
56
+
57
+
58
+ self._x_language = None
59
+ self._instance_id = None
60
+ self._node_id = None
61
+ self._component_id = None
62
+ self._top_io_num = None
63
+ self._sort_condition = None
64
+ self.discriminator = None
65
+
66
+ if x_language is not None:
67
+ self.x_language = x_language
68
+ self.instance_id = instance_id
69
+ self.node_id = node_id
70
+ self.component_id = component_id
71
+ if top_io_num is not None:
72
+ self.top_io_num = top_io_num
73
+ if sort_condition is not None:
74
+ self.sort_condition = sort_condition
75
+
76
+ @property
77
+ def x_language(self):
78
+ """Gets the x_language of this ListTopIoTrafficsRequest.
79
+
80
+ 语言
81
+
82
+ :return: The x_language of this ListTopIoTrafficsRequest.
83
+ :rtype: str
84
+ """
85
+ return self._x_language
86
+
87
+ @x_language.setter
88
+ def x_language(self, x_language):
89
+ """Sets the x_language of this ListTopIoTrafficsRequest.
90
+
91
+ 语言
92
+
93
+ :param x_language: The x_language of this ListTopIoTrafficsRequest.
94
+ :type x_language: str
95
+ """
96
+ self._x_language = x_language
97
+
98
+ @property
99
+ def instance_id(self):
100
+ """Gets the instance_id of this ListTopIoTrafficsRequest.
101
+
102
+ 实例ID,严格匹配UUID规则。
103
+
104
+ :return: The instance_id of this ListTopIoTrafficsRequest.
105
+ :rtype: str
106
+ """
107
+ return self._instance_id
108
+
109
+ @instance_id.setter
110
+ def instance_id(self, instance_id):
111
+ """Sets the instance_id of this ListTopIoTrafficsRequest.
112
+
113
+ 实例ID,严格匹配UUID规则。
114
+
115
+ :param instance_id: The instance_id of this ListTopIoTrafficsRequest.
116
+ :type instance_id: str
117
+ """
118
+ self._instance_id = instance_id
119
+
120
+ @property
121
+ def node_id(self):
122
+ """Gets the node_id of this ListTopIoTrafficsRequest.
123
+
124
+ 节点ID。节点应为CN或者非日志角色的DN节点,并且节点状态为正常。
125
+
126
+ :return: The node_id of this ListTopIoTrafficsRequest.
127
+ :rtype: str
128
+ """
129
+ return self._node_id
130
+
131
+ @node_id.setter
132
+ def node_id(self, node_id):
133
+ """Sets the node_id of this ListTopIoTrafficsRequest.
134
+
135
+ 节点ID。节点应为CN或者非日志角色的DN节点,并且节点状态为正常。
136
+
137
+ :param node_id: The node_id of this ListTopIoTrafficsRequest.
138
+ :type node_id: str
139
+ """
140
+ self._node_id = node_id
141
+
142
+ @property
143
+ def component_id(self):
144
+ """Gets the component_id of this ListTopIoTrafficsRequest.
145
+
146
+ 组件ID。组件应为CN或者非日志角色的DN组件。 DN:Data Node,和CN对应的概念。负责实际执行表数据的存储、查询操作。 CN:Coordinator Node,负责数据库系统元数据存储、查询任务的分解和部分执行,以及将DN中查询结果汇聚在一起。
147
+
148
+ :return: The component_id of this ListTopIoTrafficsRequest.
149
+ :rtype: str
150
+ """
151
+ return self._component_id
152
+
153
+ @component_id.setter
154
+ def component_id(self, component_id):
155
+ """Sets the component_id of this ListTopIoTrafficsRequest.
156
+
157
+ 组件ID。组件应为CN或者非日志角色的DN组件。 DN:Data Node,和CN对应的概念。负责实际执行表数据的存储、查询操作。 CN:Coordinator Node,负责数据库系统元数据存储、查询任务的分解和部分执行,以及将DN中查询结果汇聚在一起。
158
+
159
+ :param component_id: The component_id of this ListTopIoTrafficsRequest.
160
+ :type component_id: str
161
+ """
162
+ self._component_id = component_id
163
+
164
+ @property
165
+ def top_io_num(self):
166
+ """Gets the top_io_num of this ListTopIoTrafficsRequest.
167
+
168
+ 期望查询数据库进程下TOP IO线程数(默认值为20)。接口返回TOP IO线程与会话信息关联后的结果,数量最大不超过该值。
169
+
170
+ :return: The top_io_num of this ListTopIoTrafficsRequest.
171
+ :rtype: int
172
+ """
173
+ return self._top_io_num
174
+
175
+ @top_io_num.setter
176
+ def top_io_num(self, top_io_num):
177
+ """Sets the top_io_num of this ListTopIoTrafficsRequest.
178
+
179
+ 期望查询数据库进程下TOP IO线程数(默认值为20)。接口返回TOP IO线程与会话信息关联后的结果,数量最大不超过该值。
180
+
181
+ :param top_io_num: The top_io_num of this ListTopIoTrafficsRequest.
182
+ :type top_io_num: int
183
+ """
184
+ self._top_io_num = top_io_num
185
+
186
+ @property
187
+ def sort_condition(self):
188
+ """Gets the sort_condition of this ListTopIoTrafficsRequest.
189
+
190
+ TOP IO排序条件
191
+
192
+ :return: The sort_condition of this ListTopIoTrafficsRequest.
193
+ :rtype: str
194
+ """
195
+ return self._sort_condition
196
+
197
+ @sort_condition.setter
198
+ def sort_condition(self, sort_condition):
199
+ """Sets the sort_condition of this ListTopIoTrafficsRequest.
200
+
201
+ TOP IO排序条件
202
+
203
+ :param sort_condition: The sort_condition of this ListTopIoTrafficsRequest.
204
+ :type sort_condition: str
205
+ """
206
+ self._sort_condition = sort_condition
207
+
208
+ def to_dict(self):
209
+ """Returns the model properties as a dict"""
210
+ result = {}
211
+
212
+ for attr, _ in six.iteritems(self.openapi_types):
213
+ value = getattr(self, attr)
214
+ if isinstance(value, list):
215
+ result[attr] = list(map(
216
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217
+ value
218
+ ))
219
+ elif hasattr(value, "to_dict"):
220
+ result[attr] = value.to_dict()
221
+ elif isinstance(value, dict):
222
+ result[attr] = dict(map(
223
+ lambda item: (item[0], item[1].to_dict())
224
+ if hasattr(item[1], "to_dict") else item,
225
+ value.items()
226
+ ))
227
+ else:
228
+ if attr in self.sensitive_list:
229
+ result[attr] = "****"
230
+ else:
231
+ result[attr] = value
232
+
233
+ return result
234
+
235
+ def to_str(self):
236
+ """Returns the string representation of the model"""
237
+ import simplejson as json
238
+ if six.PY2:
239
+ import sys
240
+ reload(sys)
241
+ sys.setdefaultencoding("utf-8")
242
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
243
+
244
+ def __repr__(self):
245
+ """For `print`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, ListTopIoTrafficsRequest):
251
+ return False
252
+
253
+ return self.__dict__ == other.__dict__
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ 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 ListTopIoTrafficsResponse(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
+ 'top_io_infos': 'list[TopIoInfo]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'top_io_infos': 'top_io_infos'
26
+ }
27
+
28
+ def __init__(self, top_io_infos=None):
29
+ """ListTopIoTrafficsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param top_io_infos: Top IO列表
34
+ :type top_io_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.TopIoInfo`]
35
+ """
36
+
37
+ super(ListTopIoTrafficsResponse, self).__init__()
38
+
39
+ self._top_io_infos = None
40
+ self.discriminator = None
41
+
42
+ if top_io_infos is not None:
43
+ self.top_io_infos = top_io_infos
44
+
45
+ @property
46
+ def top_io_infos(self):
47
+ """Gets the top_io_infos of this ListTopIoTrafficsResponse.
48
+
49
+ Top IO列表
50
+
51
+ :return: The top_io_infos of this ListTopIoTrafficsResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.TopIoInfo`]
53
+ """
54
+ return self._top_io_infos
55
+
56
+ @top_io_infos.setter
57
+ def top_io_infos(self, top_io_infos):
58
+ """Sets the top_io_infos of this ListTopIoTrafficsResponse.
59
+
60
+ Top IO列表
61
+
62
+ :param top_io_infos: The top_io_infos of this ListTopIoTrafficsResponse.
63
+ :type top_io_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.TopIoInfo`]
64
+ """
65
+ self._top_io_infos = top_io_infos
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, ListTopIoTrafficsResponse):
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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MySQLCompatibilityResult:
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
+ 'port': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'port': 'port'
25
+ }
26
+
27
+ def __init__(self, port=None):
28
+ """MySQLCompatibilityResult
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param port: MySQL兼容端口
33
+ :type port: str
34
+ """
35
+
36
+
37
+
38
+ self._port = None
39
+ self.discriminator = None
40
+
41
+ if port is not None:
42
+ self.port = port
43
+
44
+ @property
45
+ def port(self):
46
+ """Gets the port of this MySQLCompatibilityResult.
47
+
48
+ MySQL兼容端口
49
+
50
+ :return: The port of this MySQLCompatibilityResult.
51
+ :rtype: str
52
+ """
53
+ return self._port
54
+
55
+ @port.setter
56
+ def port(self, port):
57
+ """Sets the port of this MySQLCompatibilityResult.
58
+
59
+ MySQL兼容端口
60
+
61
+ :param port: The port of this MySQLCompatibilityResult.
62
+ :type port: str
63
+ """
64
+ self._port = port
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, MySQLCompatibilityResult):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -31,7 +31,7 @@ class OpenGaussErrorResponse:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param error_code: 错误码
34
+ :param error_code: 错误码。
35
35
  :type error_code: str
36
36
  :param error_msg: 错误消息。
37
37
  :type error_msg: str
@@ -50,7 +50,7 @@ class OpenGaussErrorResponse:
50
50
  def error_code(self):
51
51
  """Gets the error_code of this OpenGaussErrorResponse.
52
52
 
53
- 错误码
53
+ 错误码。
54
54
 
55
55
  :return: The error_code of this OpenGaussErrorResponse.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class OpenGaussErrorResponse:
61
61
  def error_code(self, error_code):
62
62
  """Sets the error_code of this OpenGaussErrorResponse.
63
63
 
64
- 错误码
64
+ 错误码。
65
65
 
66
66
  :param error_code: The error_code of this OpenGaussErrorResponse.
67
67
  :type error_code: str
@@ -19,16 +19,18 @@ class OpenGaussHa:
19
19
  openapi_types = {
20
20
  'mode': 'str',
21
21
  'consistency': 'str',
22
- 'replication_mode': 'str'
22
+ 'replication_mode': 'str',
23
+ 'instance_mode': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'mode': 'mode',
27
28
  'consistency': 'consistency',
28
- 'replication_mode': 'replication_mode'
29
+ 'replication_mode': 'replication_mode',
30
+ 'instance_mode': 'instance_mode'
29
31
  }
30
32
 
31
- def __init__(self, mode=None, consistency=None, replication_mode=None):
33
+ def __init__(self, mode=None, consistency=None, replication_mode=None, instance_mode=None):
32
34
  """OpenGaussHa
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class OpenGaussHa:
39
41
  :type consistency: str
40
42
  :param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
41
43
  :type replication_mode: str
44
+ :param instance_mode: 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
45
+ :type instance_mode: str
42
46
  """
43
47
 
44
48
 
@@ -46,11 +50,14 @@ class OpenGaussHa:
46
50
  self._mode = None
47
51
  self._consistency = None
48
52
  self._replication_mode = None
53
+ self._instance_mode = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.mode = mode
52
57
  self.consistency = consistency
53
58
  self.replication_mode = replication_mode
59
+ if instance_mode is not None:
60
+ self.instance_mode = instance_mode
54
61
 
55
62
  @property
56
63
  def mode(self):
@@ -118,6 +125,28 @@ class OpenGaussHa:
118
125
  """
119
126
  self._replication_mode = replication_mode
120
127
 
128
+ @property
129
+ def instance_mode(self):
130
+ """Gets the instance_mode of this OpenGaussHa.
131
+
132
+ 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
133
+
134
+ :return: The instance_mode of this OpenGaussHa.
135
+ :rtype: str
136
+ """
137
+ return self._instance_mode
138
+
139
+ @instance_mode.setter
140
+ def instance_mode(self, instance_mode):
141
+ """Sets the instance_mode of this OpenGaussHa.
142
+
143
+ 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
144
+
145
+ :param instance_mode: The instance_mode of this OpenGaussHa.
146
+ :type instance_mode: str
147
+ """
148
+ self._instance_mode = instance_mode
149
+
121
150
  def to_dict(self):
122
151
  """Returns the model properties as a dict"""
123
152
  result = {}
@@ -19,16 +19,18 @@ class OpenGaussHaOption:
19
19
  openapi_types = {
20
20
  'mode': 'str',
21
21
  'consistency': 'str',
22
- 'replication_mode': 'str'
22
+ 'replication_mode': 'str',
23
+ 'instance_mode': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'mode': 'mode',
27
28
  'consistency': 'consistency',
28
- 'replication_mode': 'replication_mode'
29
+ 'replication_mode': 'replication_mode',
30
+ 'instance_mode': 'instance_mode'
29
31
  }
30
32
 
31
- def __init__(self, mode=None, consistency=None, replication_mode=None):
33
+ def __init__(self, mode=None, consistency=None, replication_mode=None, instance_mode=None):
32
34
  """OpenGaussHaOption
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class OpenGaussHaOption:
39
41
  :type consistency: str
40
42
  :param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
41
43
  :type replication_mode: str
44
+ :param instance_mode: 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
45
+ :type instance_mode: str
42
46
  """
43
47
 
44
48
 
@@ -46,11 +50,14 @@ class OpenGaussHaOption:
46
50
  self._mode = None
47
51
  self._consistency = None
48
52
  self._replication_mode = None
53
+ self._instance_mode = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.mode = mode
52
57
  self.consistency = consistency
53
58
  self.replication_mode = replication_mode
59
+ if instance_mode is not None:
60
+ self.instance_mode = instance_mode
54
61
 
55
62
  @property
56
63
  def mode(self):
@@ -118,6 +125,28 @@ class OpenGaussHaOption:
118
125
  """
119
126
  self._replication_mode = replication_mode
120
127
 
128
+ @property
129
+ def instance_mode(self):
130
+ """Gets the instance_mode of this OpenGaussHaOption.
131
+
132
+ 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
133
+
134
+ :return: The instance_mode of this OpenGaussHaOption.
135
+ :rtype: str
136
+ """
137
+ return self._instance_mode
138
+
139
+ @instance_mode.setter
140
+ def instance_mode(self, instance_mode):
141
+ """Sets the instance_mode of this OpenGaussHaOption.
142
+
143
+ 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。
144
+
145
+ :param instance_mode: The instance_mode of this OpenGaussHaOption.
146
+ :type instance_mode: str
147
+ """
148
+ self._instance_mode = instance_mode
149
+
121
150
  def to_dict(self):
122
151
  """Returns the model properties as a dict"""
123
152
  result = {}
@@ -111,7 +111,7 @@ class OpenGaussInstanceRequest:
111
111
  :type sharding_num: int
112
112
  :param coordinator_num: 仅分布式形态需要填写该参数。协调节点数量,取值范围1~9。CN数量必须小于或等于两倍的分片数。
113
113
  :type coordinator_num: int
114
- :param replica_num: 实例副本数,支持取值2,3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
114
+ :param replica_num: 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。
115
115
  :type replica_num: int
116
116
  :param enable_force_switch: enable_force_switch表示是否开启备机强升主功能,enable_force_switch=true表示开启备机强升主功能,enable_force_switch=false表示关闭,默认关闭。仅支持1.2.2及以上版本。 说明: 备机强升主功能适用场景:在主机发生故障后,为了保障集群的可用性,强制拉起备机作为新主机对外提供服务的场景。 本功能在集群故障状态下,以丢失部分数据为代价换取集群尽可能快的恢复服务。本功能是集群状态为不可用时的一个逃生方法,如果操作者不清楚备机强升后丢失数据对业务的影响,请勿使用本功能。 备机强升主相关介绍请参考《故障处理》备机强升主章节。
117
117
  :type enable_force_switch: bool
@@ -601,7 +601,7 @@ class OpenGaussInstanceRequest:
601
601
  def replica_num(self):
602
602
  """Gets the replica_num of this OpenGaussInstanceRequest.
603
603
 
604
- 实例副本数,支持取值2,3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
604
+ 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。
605
605
 
606
606
  :return: The replica_num of this OpenGaussInstanceRequest.
607
607
  :rtype: int
@@ -612,7 +612,7 @@ class OpenGaussInstanceRequest:
612
612
  def replica_num(self, replica_num):
613
613
  """Sets the replica_num of this OpenGaussInstanceRequest.
614
614
 
615
- 实例副本数,支持取值2,3。不填默认为3。仅支持1.3.0及以上版本的实例。 说明: 2副本选项仅针对特定用户开放,如需配置白名单权限,您可以在管理控制台右上角,选择“[工单 > 新建工单](https://auth.huaweicloud.com/authui/login.html?service=https%3A%2F%2Fconsole.huaweicloud.com%2Fticket%2F%3Fregion%3Dcn-north-1%26locale%3Dzh-cn%26cloud_route_state%3D%2Fticketindex%2FcreateIndex#/login)”,提交开通白名单的申请。
615
+ 实例副本数,支持取值3。不填默认为3。仅支持1.3.0及以上版本的实例。
616
616
 
617
617
  :param replica_num: The replica_num of this OpenGaussInstanceRequest.
618
618
  :type replica_num: int