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
@@ -0,0 +1,372 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListBackupsResult:
|
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
|
+
'description': 'str',
|
23
|
+
'begin_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'size': 'float',
|
27
|
+
'type': 'str',
|
28
|
+
'datastore': 'DatastoreResult',
|
29
|
+
'instance_id': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'id': 'id',
|
34
|
+
'name': 'name',
|
35
|
+
'description': 'description',
|
36
|
+
'begin_time': 'begin_time',
|
37
|
+
'end_time': 'end_time',
|
38
|
+
'status': 'status',
|
39
|
+
'size': 'size',
|
40
|
+
'type': 'type',
|
41
|
+
'datastore': 'datastore',
|
42
|
+
'instance_id': 'instance_id'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, id=None, name=None, description=None, begin_time=None, end_time=None, status=None, size=None, type=None, datastore=None, instance_id=None):
|
46
|
+
"""ListBackupsResult
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param id: 备份ID。
|
51
|
+
:type id: str
|
52
|
+
:param name: 备份名称。
|
53
|
+
:type name: str
|
54
|
+
:param description: 备份文件描述信息。
|
55
|
+
:type description: str
|
56
|
+
:param begin_time: 备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
57
|
+
:type begin_time: str
|
58
|
+
:param end_time: 备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
59
|
+
:type end_time: str
|
60
|
+
:param status: 备份状态
|
61
|
+
:type status: str
|
62
|
+
:param size: 备份大小(单位:MB)
|
63
|
+
:type size: float
|
64
|
+
:param type: 备份类型
|
65
|
+
:type type: str
|
66
|
+
:param datastore:
|
67
|
+
:type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult`
|
68
|
+
:param instance_id: 实例ID。
|
69
|
+
:type instance_id: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._id = None
|
75
|
+
self._name = None
|
76
|
+
self._description = None
|
77
|
+
self._begin_time = None
|
78
|
+
self._end_time = None
|
79
|
+
self._status = None
|
80
|
+
self._size = None
|
81
|
+
self._type = None
|
82
|
+
self._datastore = None
|
83
|
+
self._instance_id = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if id is not None:
|
87
|
+
self.id = id
|
88
|
+
if name is not None:
|
89
|
+
self.name = name
|
90
|
+
if description is not None:
|
91
|
+
self.description = description
|
92
|
+
if begin_time is not None:
|
93
|
+
self.begin_time = begin_time
|
94
|
+
if end_time is not None:
|
95
|
+
self.end_time = end_time
|
96
|
+
if status is not None:
|
97
|
+
self.status = status
|
98
|
+
if size is not None:
|
99
|
+
self.size = size
|
100
|
+
if type is not None:
|
101
|
+
self.type = type
|
102
|
+
if datastore is not None:
|
103
|
+
self.datastore = datastore
|
104
|
+
if instance_id is not None:
|
105
|
+
self.instance_id = instance_id
|
106
|
+
|
107
|
+
@property
|
108
|
+
def id(self):
|
109
|
+
"""Gets the id of this ListBackupsResult.
|
110
|
+
|
111
|
+
备份ID。
|
112
|
+
|
113
|
+
:return: The id of this ListBackupsResult.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._id
|
117
|
+
|
118
|
+
@id.setter
|
119
|
+
def id(self, id):
|
120
|
+
"""Sets the id of this ListBackupsResult.
|
121
|
+
|
122
|
+
备份ID。
|
123
|
+
|
124
|
+
:param id: The id of this ListBackupsResult.
|
125
|
+
:type id: str
|
126
|
+
"""
|
127
|
+
self._id = id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def name(self):
|
131
|
+
"""Gets the name of this ListBackupsResult.
|
132
|
+
|
133
|
+
备份名称。
|
134
|
+
|
135
|
+
:return: The name of this ListBackupsResult.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._name
|
139
|
+
|
140
|
+
@name.setter
|
141
|
+
def name(self, name):
|
142
|
+
"""Sets the name of this ListBackupsResult.
|
143
|
+
|
144
|
+
备份名称。
|
145
|
+
|
146
|
+
:param name: The name of this ListBackupsResult.
|
147
|
+
:type name: str
|
148
|
+
"""
|
149
|
+
self._name = name
|
150
|
+
|
151
|
+
@property
|
152
|
+
def description(self):
|
153
|
+
"""Gets the description of this ListBackupsResult.
|
154
|
+
|
155
|
+
备份文件描述信息。
|
156
|
+
|
157
|
+
:return: The description of this ListBackupsResult.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._description
|
161
|
+
|
162
|
+
@description.setter
|
163
|
+
def description(self, description):
|
164
|
+
"""Sets the description of this ListBackupsResult.
|
165
|
+
|
166
|
+
备份文件描述信息。
|
167
|
+
|
168
|
+
:param description: The description of this ListBackupsResult.
|
169
|
+
:type description: str
|
170
|
+
"""
|
171
|
+
self._description = description
|
172
|
+
|
173
|
+
@property
|
174
|
+
def begin_time(self):
|
175
|
+
"""Gets the begin_time of this ListBackupsResult.
|
176
|
+
|
177
|
+
备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
178
|
+
|
179
|
+
:return: The begin_time of this ListBackupsResult.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._begin_time
|
183
|
+
|
184
|
+
@begin_time.setter
|
185
|
+
def begin_time(self, begin_time):
|
186
|
+
"""Sets the begin_time of this ListBackupsResult.
|
187
|
+
|
188
|
+
备份开始时间,格式为\"yyyy-mm-ddThh:mm:ssZ\"。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
189
|
+
|
190
|
+
:param begin_time: The begin_time of this ListBackupsResult.
|
191
|
+
:type begin_time: str
|
192
|
+
"""
|
193
|
+
self._begin_time = begin_time
|
194
|
+
|
195
|
+
@property
|
196
|
+
def end_time(self):
|
197
|
+
"""Gets the end_time of this ListBackupsResult.
|
198
|
+
|
199
|
+
备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
200
|
+
|
201
|
+
:return: The end_time of this ListBackupsResult.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._end_time
|
205
|
+
|
206
|
+
@end_time.setter
|
207
|
+
def end_time(self, end_time):
|
208
|
+
"""Sets the end_time of this ListBackupsResult.
|
209
|
+
|
210
|
+
备份结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
|
211
|
+
|
212
|
+
:param end_time: The end_time of this ListBackupsResult.
|
213
|
+
:type end_time: str
|
214
|
+
"""
|
215
|
+
self._end_time = end_time
|
216
|
+
|
217
|
+
@property
|
218
|
+
def status(self):
|
219
|
+
"""Gets the status of this ListBackupsResult.
|
220
|
+
|
221
|
+
备份状态
|
222
|
+
|
223
|
+
:return: The status of this ListBackupsResult.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._status
|
227
|
+
|
228
|
+
@status.setter
|
229
|
+
def status(self, status):
|
230
|
+
"""Sets the status of this ListBackupsResult.
|
231
|
+
|
232
|
+
备份状态
|
233
|
+
|
234
|
+
:param status: The status of this ListBackupsResult.
|
235
|
+
:type status: str
|
236
|
+
"""
|
237
|
+
self._status = status
|
238
|
+
|
239
|
+
@property
|
240
|
+
def size(self):
|
241
|
+
"""Gets the size of this ListBackupsResult.
|
242
|
+
|
243
|
+
备份大小(单位:MB)
|
244
|
+
|
245
|
+
:return: The size of this ListBackupsResult.
|
246
|
+
:rtype: float
|
247
|
+
"""
|
248
|
+
return self._size
|
249
|
+
|
250
|
+
@size.setter
|
251
|
+
def size(self, size):
|
252
|
+
"""Sets the size of this ListBackupsResult.
|
253
|
+
|
254
|
+
备份大小(单位:MB)
|
255
|
+
|
256
|
+
:param size: The size of this ListBackupsResult.
|
257
|
+
:type size: float
|
258
|
+
"""
|
259
|
+
self._size = size
|
260
|
+
|
261
|
+
@property
|
262
|
+
def type(self):
|
263
|
+
"""Gets the type of this ListBackupsResult.
|
264
|
+
|
265
|
+
备份类型
|
266
|
+
|
267
|
+
:return: The type of this ListBackupsResult.
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._type
|
271
|
+
|
272
|
+
@type.setter
|
273
|
+
def type(self, type):
|
274
|
+
"""Sets the type of this ListBackupsResult.
|
275
|
+
|
276
|
+
备份类型
|
277
|
+
|
278
|
+
:param type: The type of this ListBackupsResult.
|
279
|
+
:type type: str
|
280
|
+
"""
|
281
|
+
self._type = type
|
282
|
+
|
283
|
+
@property
|
284
|
+
def datastore(self):
|
285
|
+
"""Gets the datastore of this ListBackupsResult.
|
286
|
+
|
287
|
+
:return: The datastore of this ListBackupsResult.
|
288
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult`
|
289
|
+
"""
|
290
|
+
return self._datastore
|
291
|
+
|
292
|
+
@datastore.setter
|
293
|
+
def datastore(self, datastore):
|
294
|
+
"""Sets the datastore of this ListBackupsResult.
|
295
|
+
|
296
|
+
:param datastore: The datastore of this ListBackupsResult.
|
297
|
+
:type datastore: :class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoreResult`
|
298
|
+
"""
|
299
|
+
self._datastore = datastore
|
300
|
+
|
301
|
+
@property
|
302
|
+
def instance_id(self):
|
303
|
+
"""Gets the instance_id of this ListBackupsResult.
|
304
|
+
|
305
|
+
实例ID。
|
306
|
+
|
307
|
+
:return: The instance_id of this ListBackupsResult.
|
308
|
+
:rtype: str
|
309
|
+
"""
|
310
|
+
return self._instance_id
|
311
|
+
|
312
|
+
@instance_id.setter
|
313
|
+
def instance_id(self, instance_id):
|
314
|
+
"""Sets the instance_id of this ListBackupsResult.
|
315
|
+
|
316
|
+
实例ID。
|
317
|
+
|
318
|
+
:param instance_id: The instance_id of this ListBackupsResult.
|
319
|
+
:type instance_id: str
|
320
|
+
"""
|
321
|
+
self._instance_id = instance_id
|
322
|
+
|
323
|
+
def to_dict(self):
|
324
|
+
"""Returns the model properties as a dict"""
|
325
|
+
result = {}
|
326
|
+
|
327
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
328
|
+
value = getattr(self, attr)
|
329
|
+
if isinstance(value, list):
|
330
|
+
result[attr] = list(map(
|
331
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
332
|
+
value
|
333
|
+
))
|
334
|
+
elif hasattr(value, "to_dict"):
|
335
|
+
result[attr] = value.to_dict()
|
336
|
+
elif isinstance(value, dict):
|
337
|
+
result[attr] = dict(map(
|
338
|
+
lambda item: (item[0], item[1].to_dict())
|
339
|
+
if hasattr(item[1], "to_dict") else item,
|
340
|
+
value.items()
|
341
|
+
))
|
342
|
+
else:
|
343
|
+
if attr in self.sensitive_list:
|
344
|
+
result[attr] = "****"
|
345
|
+
else:
|
346
|
+
result[attr] = value
|
347
|
+
|
348
|
+
return result
|
349
|
+
|
350
|
+
def to_str(self):
|
351
|
+
"""Returns the string representation of the model"""
|
352
|
+
import simplejson as json
|
353
|
+
if six.PY2:
|
354
|
+
import sys
|
355
|
+
reload(sys)
|
356
|
+
sys.setdefaultencoding("utf-8")
|
357
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
358
|
+
|
359
|
+
def __repr__(self):
|
360
|
+
"""For `print`"""
|
361
|
+
return self.to_str()
|
362
|
+
|
363
|
+
def __eq__(self, other):
|
364
|
+
"""Returns true if both objects are equal"""
|
365
|
+
if not isinstance(other, ListBackupsResult):
|
366
|
+
return False
|
367
|
+
|
368
|
+
return self.__dict__ == other.__dict__
|
369
|
+
|
370
|
+
def __ne__(self, other):
|
371
|
+
"""Returns true if both objects are not equal"""
|
372
|
+
return not self == other
|