huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.92__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 (42) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +32 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
  40. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -20,6 +20,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.backups import Backups
20
20
  from huaweicloudsdkgaussdbforopengauss.v3.model.backups_result import BackupsResult
21
21
  from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import BindEIPRequestBody
22
22
  from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult
23
+ from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce
23
24
  from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components
24
25
  from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter
25
26
  from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_result import ConfigurationResult
@@ -45,6 +46,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request_bod
45
46
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_response import CreateManualBackupResponse
46
47
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_request import CreateRestoreInstanceRequest
47
48
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_response import CreateRestoreInstanceResponse
49
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
50
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
48
51
  from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
49
52
  from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption
50
53
  from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult
@@ -56,6 +59,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import D
56
59
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse
57
60
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest
58
61
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse
62
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest
63
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_response import DeleteInstanceTagResponse
59
64
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_request import DeleteJobRequest
60
65
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_response import DeleteJobResponse
61
66
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
@@ -80,6 +85,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for
80
85
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege
81
86
  from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime
82
87
  from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
88
+ from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
83
89
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
84
90
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
85
91
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
@@ -94,6 +100,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_request import List
94
100
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_response import ListBackupsResponse
95
101
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_request import ListBindedEipsRequest
96
102
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_response import ListBindedEipsResponse
103
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_request import ListCnInfosBeforeReduceRequest
104
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_response import ListCnInfosBeforeReduceResponse
97
105
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_component_infos_request import ListComponentInfosRequest
98
106
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_component_infos_response import ListComponentInfosResponse
99
107
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_request import ListConfigurationsDiffRequest
@@ -126,6 +134,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_ha_result import ListHaResu
126
134
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_request import ListHistoryOperationsRequest
127
135
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_response import ListHistoryOperationsResponse
128
136
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_result import ListHistoryOperationsResult
137
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_request import ListInstanceErrorLogsRequest
138
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_response import ListInstanceErrorLogsResponse
129
139
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_response import ListInstanceResponse
130
140
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_result import ListInstanceResult
131
141
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_tags_request import ListInstanceTagsRequest
@@ -151,6 +161,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request impor
151
161
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
152
162
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_request import ListTasksRequest
153
163
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_response import ListTasksResponse
164
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_request import ListTopIoTrafficsRequest
165
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_response import ListTopIoTrafficsResponse
154
166
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_volume import ListVolume
155
167
  from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request import ModifyEpsQuotaRequest
156
168
  from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request_body import ModifyEpsQuotaRequestBody
@@ -183,6 +195,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_instance_result impor
183
195
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_modify_instance_configuration_request import OpenGaussModifyInstanceConfigurationRequest
184
196
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_resize_request import OpenGaussResizeRequest
185
197
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_shard import OpenGaussShard
198
+ from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_upgrade_request import OpenGaussUpgradeRequest
186
199
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume import OpenGaussVolume
187
200
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume_response import OpenGaussVolumeResponse
188
201
  from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume_result import OpenGaussVolumeResult
@@ -208,8 +221,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.resource_result import ResourceR
208
221
  from huaweicloudsdkgaussdbforopengauss.v3.model.restart_instance_request import RestartInstanceRequest
209
222
  from huaweicloudsdkgaussdbforopengauss.v3.model.restart_instance_response import RestartInstanceResponse
210
223
  from huaweicloudsdkgaussdbforopengauss.v3.model.restore_point import RestorePoint
224
+ from huaweicloudsdkgaussdbforopengauss.v3.model.roll_upgrade_progress import RollUpgradeProgress
211
225
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_request import RunInstanceActionRequest
212
226
  from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_response import RunInstanceActionResponse
227
+ from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_request import SearchAutoEnlargePolicyRequest
228
+ from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_response import SearchAutoEnlargePolicyResponse
213
229
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request import SetBackupPolicyRequest
214
230
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody
215
231
  from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_response import SetBackupPolicyResponse
@@ -227,6 +243,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_reques
227
243
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_response import ShowConfigurationDetailResponse
228
244
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_request import ShowDeploymentFormRequest
229
245
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_response import ShowDeploymentFormResponse
246
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_request import ShowErrorLogSwitchStatusRequest
247
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_response import ShowErrorLogSwitchStatusResponse
230
248
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_request import ShowInstanceConfigurationRequest
231
249
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse
232
250
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest
@@ -241,8 +259,16 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request impo
241
259
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse
242
260
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
243
261
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
262
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_request import ShowSlowLogDownloadRequest
263
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_response import ShowSlowLogDownloadResponse
244
264
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_request import ShowSslCertDownloadLinkRequest
245
265
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_response import ShowSslCertDownloadLinkResponse
266
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_request import ShowUpgradeCandidateVersionsRequest
267
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_response import ShowUpgradeCandidateVersionsResponse
268
+ from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import SlowLogDownloadInfo
269
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request import StartInstanceRequest
270
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request_body import StartInstanceRequestBody
271
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_response import StartInstanceResponse
246
272
  from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_request import StopBackupRequest
247
273
  from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_response import StopBackupResponse
248
274
  from huaweicloudsdkgaussdbforopengauss.v3.model.storage import Storage
@@ -255,11 +281,17 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult
255
281
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
256
282
  from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
257
283
  from huaweicloudsdkgaussdbforopengauss.v3.model.task_detail_result import TaskDetailResult
284
+ from huaweicloudsdkgaussdbforopengauss.v3.model.top_io_info import TopIoInfo
258
285
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest
259
286
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
260
287
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
261
288
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_response import UpdateInstanceNameResponse
262
289
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_name_request_body import UpdateNameRequestBody
290
+ from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_action_info import UpgradeActionInfo
291
+ from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_error_response_body import UpgradeErrorResponseBody
292
+ from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_instance_version_request import UpgradeInstanceVersionRequest
293
+ from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_instance_version_response import UpgradeInstanceVersionResponse
294
+ from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_type_info import UpgradeTypeInfo
263
295
  from huaweicloudsdkgaussdbforopengauss.v3.model.validate_para_group_name_request import ValidateParaGroupNameRequest
264
296
  from huaweicloudsdkgaussdbforopengauss.v3.model.validate_para_group_name_response import ValidateParaGroupNameResponse
265
297
  from huaweicloudsdkgaussdbforopengauss.v3.model.validate_weak_password_request import ValidateWeakPasswordRequest
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CnInfoBeforeReduce:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'status': 'str',
23
+ 'availability_zone': 'str',
24
+ 'support_reduce': 'bool'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'id': 'id',
29
+ 'name': 'name',
30
+ 'status': 'status',
31
+ 'availability_zone': 'availability_zone',
32
+ 'support_reduce': 'support_reduce'
33
+ }
34
+
35
+ def __init__(self, id=None, name=None, status=None, availability_zone=None, support_reduce=None):
36
+ """CnInfoBeforeReduce
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param id: 节点ID。
41
+ :type id: str
42
+ :param name: 节点名称。
43
+ :type name: str
44
+ :param status: 节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
45
+ :type status: str
46
+ :param availability_zone: 可用区。
47
+ :type availability_zone: str
48
+ :param support_reduce: 是否允许删除。
49
+ :type support_reduce: bool
50
+ """
51
+
52
+
53
+
54
+ self._id = None
55
+ self._name = None
56
+ self._status = None
57
+ self._availability_zone = None
58
+ self._support_reduce = None
59
+ self.discriminator = None
60
+
61
+ if id is not None:
62
+ self.id = id
63
+ if name is not None:
64
+ self.name = name
65
+ if status is not None:
66
+ self.status = status
67
+ if availability_zone is not None:
68
+ self.availability_zone = availability_zone
69
+ if support_reduce is not None:
70
+ self.support_reduce = support_reduce
71
+
72
+ @property
73
+ def id(self):
74
+ """Gets the id of this CnInfoBeforeReduce.
75
+
76
+ 节点ID。
77
+
78
+ :return: The id of this CnInfoBeforeReduce.
79
+ :rtype: str
80
+ """
81
+ return self._id
82
+
83
+ @id.setter
84
+ def id(self, id):
85
+ """Sets the id of this CnInfoBeforeReduce.
86
+
87
+ 节点ID。
88
+
89
+ :param id: The id of this CnInfoBeforeReduce.
90
+ :type id: str
91
+ """
92
+ self._id = id
93
+
94
+ @property
95
+ def name(self):
96
+ """Gets the name of this CnInfoBeforeReduce.
97
+
98
+ 节点名称。
99
+
100
+ :return: The name of this CnInfoBeforeReduce.
101
+ :rtype: str
102
+ """
103
+ return self._name
104
+
105
+ @name.setter
106
+ def name(self, name):
107
+ """Sets the name of this CnInfoBeforeReduce.
108
+
109
+ 节点名称。
110
+
111
+ :param name: The name of this CnInfoBeforeReduce.
112
+ :type name: str
113
+ """
114
+ self._name = name
115
+
116
+ @property
117
+ def status(self):
118
+ """Gets the status of this CnInfoBeforeReduce.
119
+
120
+ 节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
121
+
122
+ :return: The status of this CnInfoBeforeReduce.
123
+ :rtype: str
124
+ """
125
+ return self._status
126
+
127
+ @status.setter
128
+ def status(self, status):
129
+ """Sets the status of this CnInfoBeforeReduce.
130
+
131
+ 节点状态。 取值: 值为“normal”,表示节点正常。 值为“abnormal”,表示节点异常。 值为“creating”,表示节点正在创建。 值为“createfail”,表示节点创建失败。
132
+
133
+ :param status: The status of this CnInfoBeforeReduce.
134
+ :type status: str
135
+ """
136
+ self._status = status
137
+
138
+ @property
139
+ def availability_zone(self):
140
+ """Gets the availability_zone of this CnInfoBeforeReduce.
141
+
142
+ 可用区。
143
+
144
+ :return: The availability_zone of this CnInfoBeforeReduce.
145
+ :rtype: str
146
+ """
147
+ return self._availability_zone
148
+
149
+ @availability_zone.setter
150
+ def availability_zone(self, availability_zone):
151
+ """Sets the availability_zone of this CnInfoBeforeReduce.
152
+
153
+ 可用区。
154
+
155
+ :param availability_zone: The availability_zone of this CnInfoBeforeReduce.
156
+ :type availability_zone: str
157
+ """
158
+ self._availability_zone = availability_zone
159
+
160
+ @property
161
+ def support_reduce(self):
162
+ """Gets the support_reduce of this CnInfoBeforeReduce.
163
+
164
+ 是否允许删除。
165
+
166
+ :return: The support_reduce of this CnInfoBeforeReduce.
167
+ :rtype: bool
168
+ """
169
+ return self._support_reduce
170
+
171
+ @support_reduce.setter
172
+ def support_reduce(self, support_reduce):
173
+ """Sets the support_reduce of this CnInfoBeforeReduce.
174
+
175
+ 是否允许删除。
176
+
177
+ :param support_reduce: The support_reduce of this CnInfoBeforeReduce.
178
+ :type support_reduce: bool
179
+ """
180
+ self._support_reduce = support_reduce
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, CnInfoBeforeReduce):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateSlowLogDownloadRequest:
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
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, instance_id=None):
30
+ """CreateSlowLogDownloadRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言
35
+ :type x_language: str
36
+ :param instance_id: 实例ID,严格匹配UUID规则。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.instance_id = instance_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ """Gets the x_language of this CreateSlowLogDownloadRequest.
53
+
54
+ 语言
55
+
56
+ :return: The x_language of this CreateSlowLogDownloadRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ """Sets the x_language of this CreateSlowLogDownloadRequest.
64
+
65
+ 语言
66
+
67
+ :param x_language: The x_language of this CreateSlowLogDownloadRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def instance_id(self):
74
+ """Gets the instance_id of this CreateSlowLogDownloadRequest.
75
+
76
+ 实例ID,严格匹配UUID规则。
77
+
78
+ :return: The instance_id of this CreateSlowLogDownloadRequest.
79
+ :rtype: str
80
+ """
81
+ return self._instance_id
82
+
83
+ @instance_id.setter
84
+ def instance_id(self, instance_id):
85
+ """Sets the instance_id of this CreateSlowLogDownloadRequest.
86
+
87
+ 实例ID,严格匹配UUID规则。
88
+
89
+ :param instance_id: The instance_id of this CreateSlowLogDownloadRequest.
90
+ :type instance_id: str
91
+ """
92
+ self._instance_id = instance_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, CreateSlowLogDownloadRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ 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 CreateSlowLogDownloadResponse(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
+ 'list': 'list[SlowLogDownloadInfo]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'list': 'list'
26
+ }
27
+
28
+ def __init__(self, list=None):
29
+ """CreateSlowLogDownloadResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param list: 慢日志下载信息列表
34
+ :type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
35
+ """
36
+
37
+ super(CreateSlowLogDownloadResponse, self).__init__()
38
+
39
+ self._list = None
40
+ self.discriminator = None
41
+
42
+ if list is not None:
43
+ self.list = list
44
+
45
+ @property
46
+ def list(self):
47
+ """Gets the list of this CreateSlowLogDownloadResponse.
48
+
49
+ 慢日志下载信息列表
50
+
51
+ :return: The list of this CreateSlowLogDownloadResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
53
+ """
54
+ return self._list
55
+
56
+ @list.setter
57
+ def list(self, list):
58
+ """Sets the list of this CreateSlowLogDownloadResponse.
59
+
60
+ 慢日志下载信息列表
61
+
62
+ :param list: The list of this CreateSlowLogDownloadResponse.
63
+ :type list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.SlowLogDownloadInfo`]
64
+ """
65
+ self._list = list
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, CreateSlowLogDownloadResponse):
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