huaweicloudsdkgaussdbforopengauss 3.1.126__py2.py3-none-any.whl → 3.1.128__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 +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -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/configurations_result.py +339 -0
- 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_instance_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
- 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/gauss_db_list_database_roles.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -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_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_datastores_details_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -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_parameter_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -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/recycle_instances_detail_result_v1.py +566 -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_parameter_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -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_response.py +18 -10
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/RECORD +60 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/top_level.txt +0 -0
huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py
ADDED
@@ -0,0 +1,373 @@
|
|
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 ShowUpgradeCandidateVersionsDetailsResponse(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
|
+
'upgrade_type_list': 'list[UpgradeTypeInfo]',
|
22
|
+
'rollback_enabled': 'bool',
|
23
|
+
'source_version': 'str',
|
24
|
+
'target_version': 'str',
|
25
|
+
'roll_upgrade_progress': 'RollUpgradeProgress',
|
26
|
+
'upgrade_candidate_versions': 'list[str]',
|
27
|
+
'hotfix_upgrade_candidate_versions': 'list[str]',
|
28
|
+
'hotfix_rollback_candidate_versions': 'list[str]',
|
29
|
+
'hotfix_upgrade_infos': 'list[CanBeUpgradedHotfixDetail]',
|
30
|
+
'hotfix_rollback_infos': 'list[CanBeRollbackedHotfixDetail]'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'upgrade_type_list': 'upgrade_type_list',
|
35
|
+
'rollback_enabled': 'rollback_enabled',
|
36
|
+
'source_version': 'source_version',
|
37
|
+
'target_version': 'target_version',
|
38
|
+
'roll_upgrade_progress': 'roll_upgrade_progress',
|
39
|
+
'upgrade_candidate_versions': 'upgrade_candidate_versions',
|
40
|
+
'hotfix_upgrade_candidate_versions': 'hotfix_upgrade_candidate_versions',
|
41
|
+
'hotfix_rollback_candidate_versions': 'hotfix_rollback_candidate_versions',
|
42
|
+
'hotfix_upgrade_infos': 'hotfix_upgrade_infos',
|
43
|
+
'hotfix_rollback_infos': 'hotfix_rollback_infos'
|
44
|
+
}
|
45
|
+
|
46
|
+
def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version=None, target_version=None, roll_upgrade_progress=None, upgrade_candidate_versions=None, hotfix_upgrade_candidate_versions=None, hotfix_rollback_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None):
|
47
|
+
"""ShowUpgradeCandidateVersionsDetailsResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param upgrade_type_list: 升级类型信息列表
|
52
|
+
:type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
53
|
+
:param rollback_enabled: 是否可以回滚,true可以回滚,false不可以回滚。
|
54
|
+
:type rollback_enabled: bool
|
55
|
+
:param source_version: 原版本
|
56
|
+
:type source_version: str
|
57
|
+
:param target_version: 升级目标版本,没有在滚动升级中返回null。
|
58
|
+
:type target_version: str
|
59
|
+
:param roll_upgrade_progress:
|
60
|
+
:type roll_upgrade_progress: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress`
|
61
|
+
:param upgrade_candidate_versions: 可以升级的版本,包括大小版本,滚动升级中返回空数组。
|
62
|
+
:type upgrade_candidate_versions: list[str]
|
63
|
+
:param hotfix_upgrade_candidate_versions: 可以升级的热补丁版本,滚动升级中返回空数组。
|
64
|
+
:type hotfix_upgrade_candidate_versions: list[str]
|
65
|
+
:param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组。
|
66
|
+
:type hotfix_rollback_candidate_versions: list[str]
|
67
|
+
:param hotfix_upgrade_infos: 可以升级的热补丁信息。
|
68
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`]
|
69
|
+
:param hotfix_rollback_infos: 可以回滚的热补丁信息。
|
70
|
+
:type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`]
|
71
|
+
"""
|
72
|
+
|
73
|
+
super(ShowUpgradeCandidateVersionsDetailsResponse, self).__init__()
|
74
|
+
|
75
|
+
self._upgrade_type_list = None
|
76
|
+
self._rollback_enabled = None
|
77
|
+
self._source_version = None
|
78
|
+
self._target_version = None
|
79
|
+
self._roll_upgrade_progress = None
|
80
|
+
self._upgrade_candidate_versions = None
|
81
|
+
self._hotfix_upgrade_candidate_versions = None
|
82
|
+
self._hotfix_rollback_candidate_versions = None
|
83
|
+
self._hotfix_upgrade_infos = None
|
84
|
+
self._hotfix_rollback_infos = None
|
85
|
+
self.discriminator = None
|
86
|
+
|
87
|
+
if upgrade_type_list is not None:
|
88
|
+
self.upgrade_type_list = upgrade_type_list
|
89
|
+
if rollback_enabled is not None:
|
90
|
+
self.rollback_enabled = rollback_enabled
|
91
|
+
if source_version is not None:
|
92
|
+
self.source_version = source_version
|
93
|
+
if target_version is not None:
|
94
|
+
self.target_version = target_version
|
95
|
+
if roll_upgrade_progress is not None:
|
96
|
+
self.roll_upgrade_progress = roll_upgrade_progress
|
97
|
+
if upgrade_candidate_versions is not None:
|
98
|
+
self.upgrade_candidate_versions = upgrade_candidate_versions
|
99
|
+
if hotfix_upgrade_candidate_versions is not None:
|
100
|
+
self.hotfix_upgrade_candidate_versions = hotfix_upgrade_candidate_versions
|
101
|
+
if hotfix_rollback_candidate_versions is not None:
|
102
|
+
self.hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions
|
103
|
+
if hotfix_upgrade_infos is not None:
|
104
|
+
self.hotfix_upgrade_infos = hotfix_upgrade_infos
|
105
|
+
if hotfix_rollback_infos is not None:
|
106
|
+
self.hotfix_rollback_infos = hotfix_rollback_infos
|
107
|
+
|
108
|
+
@property
|
109
|
+
def upgrade_type_list(self):
|
110
|
+
"""Gets the upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse.
|
111
|
+
|
112
|
+
升级类型信息列表
|
113
|
+
|
114
|
+
:return: The upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse.
|
115
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
116
|
+
"""
|
117
|
+
return self._upgrade_type_list
|
118
|
+
|
119
|
+
@upgrade_type_list.setter
|
120
|
+
def upgrade_type_list(self, upgrade_type_list):
|
121
|
+
"""Sets the upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse.
|
122
|
+
|
123
|
+
升级类型信息列表
|
124
|
+
|
125
|
+
:param upgrade_type_list: The upgrade_type_list of this ShowUpgradeCandidateVersionsDetailsResponse.
|
126
|
+
:type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`]
|
127
|
+
"""
|
128
|
+
self._upgrade_type_list = upgrade_type_list
|
129
|
+
|
130
|
+
@property
|
131
|
+
def rollback_enabled(self):
|
132
|
+
"""Gets the rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse.
|
133
|
+
|
134
|
+
是否可以回滚,true可以回滚,false不可以回滚。
|
135
|
+
|
136
|
+
:return: The rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse.
|
137
|
+
:rtype: bool
|
138
|
+
"""
|
139
|
+
return self._rollback_enabled
|
140
|
+
|
141
|
+
@rollback_enabled.setter
|
142
|
+
def rollback_enabled(self, rollback_enabled):
|
143
|
+
"""Sets the rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse.
|
144
|
+
|
145
|
+
是否可以回滚,true可以回滚,false不可以回滚。
|
146
|
+
|
147
|
+
:param rollback_enabled: The rollback_enabled of this ShowUpgradeCandidateVersionsDetailsResponse.
|
148
|
+
:type rollback_enabled: bool
|
149
|
+
"""
|
150
|
+
self._rollback_enabled = rollback_enabled
|
151
|
+
|
152
|
+
@property
|
153
|
+
def source_version(self):
|
154
|
+
"""Gets the source_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
155
|
+
|
156
|
+
原版本
|
157
|
+
|
158
|
+
:return: The source_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
159
|
+
:rtype: str
|
160
|
+
"""
|
161
|
+
return self._source_version
|
162
|
+
|
163
|
+
@source_version.setter
|
164
|
+
def source_version(self, source_version):
|
165
|
+
"""Sets the source_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
166
|
+
|
167
|
+
原版本
|
168
|
+
|
169
|
+
:param source_version: The source_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
170
|
+
:type source_version: str
|
171
|
+
"""
|
172
|
+
self._source_version = source_version
|
173
|
+
|
174
|
+
@property
|
175
|
+
def target_version(self):
|
176
|
+
"""Gets the target_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
177
|
+
|
178
|
+
升级目标版本,没有在滚动升级中返回null。
|
179
|
+
|
180
|
+
:return: The target_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._target_version
|
184
|
+
|
185
|
+
@target_version.setter
|
186
|
+
def target_version(self, target_version):
|
187
|
+
"""Sets the target_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
188
|
+
|
189
|
+
升级目标版本,没有在滚动升级中返回null。
|
190
|
+
|
191
|
+
:param target_version: The target_version of this ShowUpgradeCandidateVersionsDetailsResponse.
|
192
|
+
:type target_version: str
|
193
|
+
"""
|
194
|
+
self._target_version = target_version
|
195
|
+
|
196
|
+
@property
|
197
|
+
def roll_upgrade_progress(self):
|
198
|
+
"""Gets the roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse.
|
199
|
+
|
200
|
+
:return: The roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse.
|
201
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress`
|
202
|
+
"""
|
203
|
+
return self._roll_upgrade_progress
|
204
|
+
|
205
|
+
@roll_upgrade_progress.setter
|
206
|
+
def roll_upgrade_progress(self, roll_upgrade_progress):
|
207
|
+
"""Sets the roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse.
|
208
|
+
|
209
|
+
:param roll_upgrade_progress: The roll_upgrade_progress of this ShowUpgradeCandidateVersionsDetailsResponse.
|
210
|
+
:type roll_upgrade_progress: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress`
|
211
|
+
"""
|
212
|
+
self._roll_upgrade_progress = roll_upgrade_progress
|
213
|
+
|
214
|
+
@property
|
215
|
+
def upgrade_candidate_versions(self):
|
216
|
+
"""Gets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
217
|
+
|
218
|
+
可以升级的版本,包括大小版本,滚动升级中返回空数组。
|
219
|
+
|
220
|
+
:return: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
221
|
+
:rtype: list[str]
|
222
|
+
"""
|
223
|
+
return self._upgrade_candidate_versions
|
224
|
+
|
225
|
+
@upgrade_candidate_versions.setter
|
226
|
+
def upgrade_candidate_versions(self, upgrade_candidate_versions):
|
227
|
+
"""Sets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
228
|
+
|
229
|
+
可以升级的版本,包括大小版本,滚动升级中返回空数组。
|
230
|
+
|
231
|
+
:param upgrade_candidate_versions: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
232
|
+
:type upgrade_candidate_versions: list[str]
|
233
|
+
"""
|
234
|
+
self._upgrade_candidate_versions = upgrade_candidate_versions
|
235
|
+
|
236
|
+
@property
|
237
|
+
def hotfix_upgrade_candidate_versions(self):
|
238
|
+
"""Gets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
239
|
+
|
240
|
+
可以升级的热补丁版本,滚动升级中返回空数组。
|
241
|
+
|
242
|
+
:return: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
243
|
+
:rtype: list[str]
|
244
|
+
"""
|
245
|
+
return self._hotfix_upgrade_candidate_versions
|
246
|
+
|
247
|
+
@hotfix_upgrade_candidate_versions.setter
|
248
|
+
def hotfix_upgrade_candidate_versions(self, hotfix_upgrade_candidate_versions):
|
249
|
+
"""Sets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
250
|
+
|
251
|
+
可以升级的热补丁版本,滚动升级中返回空数组。
|
252
|
+
|
253
|
+
:param hotfix_upgrade_candidate_versions: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
254
|
+
:type hotfix_upgrade_candidate_versions: list[str]
|
255
|
+
"""
|
256
|
+
self._hotfix_upgrade_candidate_versions = hotfix_upgrade_candidate_versions
|
257
|
+
|
258
|
+
@property
|
259
|
+
def hotfix_rollback_candidate_versions(self):
|
260
|
+
"""Gets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
261
|
+
|
262
|
+
可以回滚的热补丁版本,滚动升级中返回空数组。
|
263
|
+
|
264
|
+
:return: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
265
|
+
:rtype: list[str]
|
266
|
+
"""
|
267
|
+
return self._hotfix_rollback_candidate_versions
|
268
|
+
|
269
|
+
@hotfix_rollback_candidate_versions.setter
|
270
|
+
def hotfix_rollback_candidate_versions(self, hotfix_rollback_candidate_versions):
|
271
|
+
"""Sets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
272
|
+
|
273
|
+
可以回滚的热补丁版本,滚动升级中返回空数组。
|
274
|
+
|
275
|
+
:param hotfix_rollback_candidate_versions: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsDetailsResponse.
|
276
|
+
:type hotfix_rollback_candidate_versions: list[str]
|
277
|
+
"""
|
278
|
+
self._hotfix_rollback_candidate_versions = hotfix_rollback_candidate_versions
|
279
|
+
|
280
|
+
@property
|
281
|
+
def hotfix_upgrade_infos(self):
|
282
|
+
"""Gets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
283
|
+
|
284
|
+
可以升级的热补丁信息。
|
285
|
+
|
286
|
+
:return: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
287
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`]
|
288
|
+
"""
|
289
|
+
return self._hotfix_upgrade_infos
|
290
|
+
|
291
|
+
@hotfix_upgrade_infos.setter
|
292
|
+
def hotfix_upgrade_infos(self, hotfix_upgrade_infos):
|
293
|
+
"""Sets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
294
|
+
|
295
|
+
可以升级的热补丁信息。
|
296
|
+
|
297
|
+
:param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
298
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeUpgradedHotfixDetail`]
|
299
|
+
"""
|
300
|
+
self._hotfix_upgrade_infos = hotfix_upgrade_infos
|
301
|
+
|
302
|
+
@property
|
303
|
+
def hotfix_rollback_infos(self):
|
304
|
+
"""Gets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
305
|
+
|
306
|
+
可以回滚的热补丁信息。
|
307
|
+
|
308
|
+
:return: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
309
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`]
|
310
|
+
"""
|
311
|
+
return self._hotfix_rollback_infos
|
312
|
+
|
313
|
+
@hotfix_rollback_infos.setter
|
314
|
+
def hotfix_rollback_infos(self, hotfix_rollback_infos):
|
315
|
+
"""Sets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
316
|
+
|
317
|
+
可以回滚的热补丁信息。
|
318
|
+
|
319
|
+
:param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsDetailsResponse.
|
320
|
+
:type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.CanBeRollbackedHotfixDetail`]
|
321
|
+
"""
|
322
|
+
self._hotfix_rollback_infos = hotfix_rollback_infos
|
323
|
+
|
324
|
+
def to_dict(self):
|
325
|
+
"""Returns the model properties as a dict"""
|
326
|
+
result = {}
|
327
|
+
|
328
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
329
|
+
value = getattr(self, attr)
|
330
|
+
if isinstance(value, list):
|
331
|
+
result[attr] = list(map(
|
332
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
333
|
+
value
|
334
|
+
))
|
335
|
+
elif hasattr(value, "to_dict"):
|
336
|
+
result[attr] = value.to_dict()
|
337
|
+
elif isinstance(value, dict):
|
338
|
+
result[attr] = dict(map(
|
339
|
+
lambda item: (item[0], item[1].to_dict())
|
340
|
+
if hasattr(item[1], "to_dict") else item,
|
341
|
+
value.items()
|
342
|
+
))
|
343
|
+
else:
|
344
|
+
if attr in self.sensitive_list:
|
345
|
+
result[attr] = "****"
|
346
|
+
else:
|
347
|
+
result[attr] = value
|
348
|
+
|
349
|
+
return result
|
350
|
+
|
351
|
+
def to_str(self):
|
352
|
+
"""Returns the string representation of the model"""
|
353
|
+
import simplejson as json
|
354
|
+
if six.PY2:
|
355
|
+
import sys
|
356
|
+
reload(sys)
|
357
|
+
sys.setdefaultencoding("utf-8")
|
358
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
359
|
+
|
360
|
+
def __repr__(self):
|
361
|
+
"""For `print`"""
|
362
|
+
return self.to_str()
|
363
|
+
|
364
|
+
def __eq__(self, other):
|
365
|
+
"""Returns true if both objects are equal"""
|
366
|
+
if not isinstance(other, ShowUpgradeCandidateVersionsDetailsResponse):
|
367
|
+
return False
|
368
|
+
|
369
|
+
return self.__dict__ == other.__dict__
|
370
|
+
|
371
|
+
def __ne__(self, other):
|
372
|
+
"""Returns true if both objects are not equal"""
|
373
|
+
return not self == other
|
@@ -26,8 +26,8 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
26
26
|
'upgrade_candidate_versions': 'list[str]',
|
27
27
|
'hotfix_upgrade_candidate_versions': 'list[str]',
|
28
28
|
'hotfix_rollback_candidate_versions': 'list[str]',
|
29
|
-
'hotfix_upgrade_infos': 'HotfixUpgradeInfos',
|
30
|
-
'hotfix_rollback_infos': 'HotfixRollbackInfos'
|
29
|
+
'hotfix_upgrade_infos': 'list[HotfixUpgradeInfos]',
|
30
|
+
'hotfix_rollback_infos': 'list[HotfixRollbackInfos]'
|
31
31
|
}
|
32
32
|
|
33
33
|
attribute_map = {
|
@@ -64,10 +64,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
64
64
|
:type hotfix_upgrade_candidate_versions: list[str]
|
65
65
|
:param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组。
|
66
66
|
:type hotfix_rollback_candidate_versions: list[str]
|
67
|
-
:param hotfix_upgrade_infos:
|
68
|
-
:type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
69
|
-
:param hotfix_rollback_infos:
|
70
|
-
:type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
67
|
+
:param hotfix_upgrade_infos: 可以升级的热补丁信息。
|
68
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`]
|
69
|
+
:param hotfix_rollback_infos: 可以回滚的热补丁信息。
|
70
|
+
:type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`]
|
71
71
|
"""
|
72
72
|
|
73
73
|
super(ShowUpgradeCandidateVersionsResponse, self).__init__()
|
@@ -281,8 +281,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
281
281
|
def hotfix_upgrade_infos(self):
|
282
282
|
"""Gets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
283
283
|
|
284
|
+
可以升级的热补丁信息。
|
285
|
+
|
284
286
|
:return: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
285
|
-
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
287
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`]
|
286
288
|
"""
|
287
289
|
return self._hotfix_upgrade_infos
|
288
290
|
|
@@ -290,8 +292,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
290
292
|
def hotfix_upgrade_infos(self, hotfix_upgrade_infos):
|
291
293
|
"""Sets the hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
292
294
|
|
295
|
+
可以升级的热补丁信息。
|
296
|
+
|
293
297
|
:param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowUpgradeCandidateVersionsResponse.
|
294
|
-
:type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`
|
298
|
+
:type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos`]
|
295
299
|
"""
|
296
300
|
self._hotfix_upgrade_infos = hotfix_upgrade_infos
|
297
301
|
|
@@ -299,8 +303,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
299
303
|
def hotfix_rollback_infos(self):
|
300
304
|
"""Gets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
301
305
|
|
306
|
+
可以回滚的热补丁信息。
|
307
|
+
|
302
308
|
:return: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
303
|
-
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
309
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`]
|
304
310
|
"""
|
305
311
|
return self._hotfix_rollback_infos
|
306
312
|
|
@@ -308,8 +314,10 @@ class ShowUpgradeCandidateVersionsResponse(SdkResponse):
|
|
308
314
|
def hotfix_rollback_infos(self, hotfix_rollback_infos):
|
309
315
|
"""Sets the hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
310
316
|
|
317
|
+
可以回滚的热补丁信息。
|
318
|
+
|
311
319
|
:param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowUpgradeCandidateVersionsResponse.
|
312
|
-
:type hotfix_rollback_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`
|
320
|
+
:type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixRollbackInfos`]
|
313
321
|
"""
|
314
322
|
self._hotfix_rollback_infos = hotfix_rollback_infos
|
315
323
|
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SyncLimitDataRequest:
|
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_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'instance_id': 'instance_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, instance_id=None):
|
28
|
+
"""SyncLimitDataRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param instance_id: 实例ID。
|
33
|
+
:type instance_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._instance_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.instance_id = instance_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def instance_id(self):
|
45
|
+
"""Gets the instance_id of this SyncLimitDataRequest.
|
46
|
+
|
47
|
+
实例ID。
|
48
|
+
|
49
|
+
:return: The instance_id of this SyncLimitDataRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._instance_id
|
53
|
+
|
54
|
+
@instance_id.setter
|
55
|
+
def instance_id(self, instance_id):
|
56
|
+
"""Sets the instance_id of this SyncLimitDataRequest.
|
57
|
+
|
58
|
+
实例ID。
|
59
|
+
|
60
|
+
:param instance_id: The instance_id of this SyncLimitDataRequest.
|
61
|
+
:type instance_id: str
|
62
|
+
"""
|
63
|
+
self._instance_id = instance_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, SyncLimitDataRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|