huaweicloudsdkgaussdbforopengauss 3.1.91__py2.py3-none-any.whl → 3.1.93__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 +10 -3
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +286 -65
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +286 -65
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +10 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +20 -49
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/{instances_statistics_response_body_instances_statistics.py → show_error_log_switch_status_request.py} +42 -41
- huaweicloudsdkgaussdbforopengauss/v3/model/{show_instances_statistics_request.py → show_error_log_switch_status_response.py} +25 -24
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/RECORD +21 -14
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +0 -145
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
|
|
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 ListInstanceErrorLogsResponse(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
|
+
'total': 'int',
|
22
|
+
'log_files': 'list[InstanceLogFile]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total': 'total',
|
27
|
+
'log_files': 'log_files'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total=None, log_files=None):
|
31
|
+
"""ListInstanceErrorLogsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total: 总条数
|
36
|
+
:type total: int
|
37
|
+
:param log_files: 日志文件列表
|
38
|
+
:type log_files: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceLogFile`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListInstanceErrorLogsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total = None
|
44
|
+
self._log_files = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total is not None:
|
48
|
+
self.total = total
|
49
|
+
if log_files is not None:
|
50
|
+
self.log_files = log_files
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total(self):
|
54
|
+
"""Gets the total of this ListInstanceErrorLogsResponse.
|
55
|
+
|
56
|
+
总条数
|
57
|
+
|
58
|
+
:return: The total of this ListInstanceErrorLogsResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._total
|
62
|
+
|
63
|
+
@total.setter
|
64
|
+
def total(self, total):
|
65
|
+
"""Sets the total of this ListInstanceErrorLogsResponse.
|
66
|
+
|
67
|
+
总条数
|
68
|
+
|
69
|
+
:param total: The total of this ListInstanceErrorLogsResponse.
|
70
|
+
:type total: int
|
71
|
+
"""
|
72
|
+
self._total = total
|
73
|
+
|
74
|
+
@property
|
75
|
+
def log_files(self):
|
76
|
+
"""Gets the log_files of this ListInstanceErrorLogsResponse.
|
77
|
+
|
78
|
+
日志文件列表
|
79
|
+
|
80
|
+
:return: The log_files of this ListInstanceErrorLogsResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceLogFile`]
|
82
|
+
"""
|
83
|
+
return self._log_files
|
84
|
+
|
85
|
+
@log_files.setter
|
86
|
+
def log_files(self, log_files):
|
87
|
+
"""Sets the log_files of this ListInstanceErrorLogsResponse.
|
88
|
+
|
89
|
+
日志文件列表
|
90
|
+
|
91
|
+
:param log_files: The log_files of this ListInstanceErrorLogsResponse.
|
92
|
+
:type log_files: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceLogFile`]
|
93
|
+
"""
|
94
|
+
self._log_files = log_files
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListInstanceErrorLogsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -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
|
@@ -18,62 +18,55 @@ class OpenGaussUpgradeRequest:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'upgrade_type': 'str',
|
21
|
-
'
|
21
|
+
'upgrade_action': 'str',
|
22
22
|
'target_version': 'str',
|
23
23
|
'upgrade_shard_num': 'int',
|
24
|
-
'upgrade_az': 'str'
|
25
|
-
'is_parallel_upgrade': 'bool'
|
24
|
+
'upgrade_az': 'str'
|
26
25
|
}
|
27
26
|
|
28
27
|
attribute_map = {
|
29
28
|
'upgrade_type': 'upgrade_type',
|
30
|
-
'
|
29
|
+
'upgrade_action': 'upgrade_action',
|
31
30
|
'target_version': 'target_version',
|
32
31
|
'upgrade_shard_num': 'upgrade_shard_num',
|
33
|
-
'upgrade_az': 'upgrade_az'
|
34
|
-
'is_parallel_upgrade': 'is_parallel_upgrade'
|
32
|
+
'upgrade_az': 'upgrade_az'
|
35
33
|
}
|
36
34
|
|
37
|
-
def __init__(self, upgrade_type=None,
|
35
|
+
def __init__(self, upgrade_type=None, upgrade_action=None, target_version=None, upgrade_shard_num=None, upgrade_az=None):
|
38
36
|
"""OpenGaussUpgradeRequest
|
39
37
|
|
40
38
|
The model defined in huaweicloud sdk
|
41
39
|
|
42
40
|
:param upgrade_type: 实例升级类型,包括就地升级,灰度升级,热补丁升级三种,三种升级方式的异同,详见接口描述。 inplace 就地升级 grey 灰度升级 hotfix 热补丁升级。
|
43
41
|
:type upgrade_type: str
|
44
|
-
:param
|
45
|
-
:type
|
42
|
+
:param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
43
|
+
:type upgrade_action: str
|
46
44
|
:param target_version: 实例升级目标版本,非必填。如果未传值则默认升级到当前实例的优选版本。仅热补丁升级方式下支持传入多个值,升级操作为升级自动提交,则实例版本从小到大批量升级,升级操作为升级回退,则实例版本从大到小批量回退。
|
47
45
|
:type target_version: str
|
48
46
|
:param upgrade_shard_num: 分布式实例灰度升级,滚动升级分片数。分布式实例灰度升级,升级待观察必填。该值不能大于实例未升级分片总数。
|
49
47
|
:type upgrade_shard_num: int
|
50
48
|
:param upgrade_az: 主备版实例灰度升级,滚动升级az值,可以支持多az一起升级,az之间以’,’分割。集中式实例灰度升级,升级待观察必填。该值不能填入不属于该实例的az值。
|
51
49
|
:type upgrade_az: str
|
52
|
-
:param is_parallel_upgrade: 支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
|
53
|
-
:type is_parallel_upgrade: bool
|
54
50
|
"""
|
55
51
|
|
56
52
|
|
57
53
|
|
58
54
|
self._upgrade_type = None
|
59
|
-
self.
|
55
|
+
self._upgrade_action = None
|
60
56
|
self._target_version = None
|
61
57
|
self._upgrade_shard_num = None
|
62
58
|
self._upgrade_az = None
|
63
|
-
self._is_parallel_upgrade = None
|
64
59
|
self.discriminator = None
|
65
60
|
|
66
61
|
self.upgrade_type = upgrade_type
|
67
|
-
if
|
68
|
-
self.
|
62
|
+
if upgrade_action is not None:
|
63
|
+
self.upgrade_action = upgrade_action
|
69
64
|
if target_version is not None:
|
70
65
|
self.target_version = target_version
|
71
66
|
if upgrade_shard_num is not None:
|
72
67
|
self.upgrade_shard_num = upgrade_shard_num
|
73
68
|
if upgrade_az is not None:
|
74
69
|
self.upgrade_az = upgrade_az
|
75
|
-
if is_parallel_upgrade is not None:
|
76
|
-
self.is_parallel_upgrade = is_parallel_upgrade
|
77
70
|
|
78
71
|
@property
|
79
72
|
def upgrade_type(self):
|
@@ -98,26 +91,26 @@ class OpenGaussUpgradeRequest:
|
|
98
91
|
self._upgrade_type = upgrade_type
|
99
92
|
|
100
93
|
@property
|
101
|
-
def
|
102
|
-
"""Gets the
|
94
|
+
def upgrade_action(self):
|
95
|
+
"""Gets the upgrade_action of this OpenGaussUpgradeRequest.
|
103
96
|
|
104
97
|
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
105
98
|
|
106
|
-
:return: The
|
99
|
+
:return: The upgrade_action of this OpenGaussUpgradeRequest.
|
107
100
|
:rtype: str
|
108
101
|
"""
|
109
|
-
return self.
|
102
|
+
return self._upgrade_action
|
110
103
|
|
111
|
-
@
|
112
|
-
def
|
113
|
-
"""Sets the
|
104
|
+
@upgrade_action.setter
|
105
|
+
def upgrade_action(self, upgrade_action):
|
106
|
+
"""Sets the upgrade_action of this OpenGaussUpgradeRequest.
|
114
107
|
|
115
108
|
实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。热补丁升级包括升级自动提交,升级回退两种。详见接口描述。 upgradeAutoCommit 升级自动提交 upgrade 升级待观察 commit 提交升级 rollback 升级回退。
|
116
109
|
|
117
|
-
:param
|
118
|
-
:type
|
110
|
+
:param upgrade_action: The upgrade_action of this OpenGaussUpgradeRequest.
|
111
|
+
:type upgrade_action: str
|
119
112
|
"""
|
120
|
-
self.
|
113
|
+
self._upgrade_action = upgrade_action
|
121
114
|
|
122
115
|
@property
|
123
116
|
def target_version(self):
|
@@ -185,28 +178,6 @@ class OpenGaussUpgradeRequest:
|
|
185
178
|
"""
|
186
179
|
self._upgrade_az = upgrade_az
|
187
180
|
|
188
|
-
@property
|
189
|
-
def is_parallel_upgrade(self):
|
190
|
-
"""Gets the is_parallel_upgrade of this OpenGaussUpgradeRequest.
|
191
|
-
|
192
|
-
支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
|
193
|
-
|
194
|
-
:return: The is_parallel_upgrade of this OpenGaussUpgradeRequest.
|
195
|
-
:rtype: bool
|
196
|
-
"""
|
197
|
-
return self._is_parallel_upgrade
|
198
|
-
|
199
|
-
@is_parallel_upgrade.setter
|
200
|
-
def is_parallel_upgrade(self, is_parallel_upgrade):
|
201
|
-
"""Sets the is_parallel_upgrade of this OpenGaussUpgradeRequest.
|
202
|
-
|
203
|
-
支持AZ内并行升级,升级时先升级所有备DN,再并行升级各分片主DN,最后并行升级CN。仅在灰度升级下有效且需要数据库版本大于等于3.200。
|
204
|
-
|
205
|
-
:param is_parallel_upgrade: The is_parallel_upgrade of this OpenGaussUpgradeRequest.
|
206
|
-
:type is_parallel_upgrade: bool
|
207
|
-
"""
|
208
|
-
self._is_parallel_upgrade = is_parallel_upgrade
|
209
|
-
|
210
181
|
def to_dict(self):
|
211
182
|
"""Returns the model properties as a dict"""
|
212
183
|
result = {}
|
@@ -21,7 +21,7 @@ class ShowBackupPolicy:
|
|
21
21
|
'start_time': 'str',
|
22
22
|
'period': 'str',
|
23
23
|
'differential_priod': 'str',
|
24
|
-
'differential_period': '
|
24
|
+
'differential_period': 'int',
|
25
25
|
'rate_limit': 'int',
|
26
26
|
'prefetch_block': 'int',
|
27
27
|
'filesplit_size': 'int',
|
@@ -56,7 +56,7 @@ class ShowBackupPolicy:
|
|
56
56
|
:param differential_priod: 差量备份周期配置。自动差量备份将每隔周期分钟执行(废弃)。
|
57
57
|
:type differential_priod: str
|
58
58
|
:param differential_period: 差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
59
|
-
:type differential_period:
|
59
|
+
:type differential_period: int
|
60
60
|
:param rate_limit: 备份时备份数据上传OBS的速度,单位为MB/s。范围为0~1024MB/s,默认75MB/s,0MB/s表示不限速。
|
61
61
|
:type rate_limit: int
|
62
62
|
:param prefetch_block: 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数,可设置范围为1~8192,默认64。
|
@@ -195,7 +195,7 @@ class ShowBackupPolicy:
|
|
195
195
|
差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
196
196
|
|
197
197
|
:return: The differential_period of this ShowBackupPolicy.
|
198
|
-
:rtype:
|
198
|
+
:rtype: int
|
199
199
|
"""
|
200
200
|
return self._differential_period
|
201
201
|
|
@@ -206,7 +206,7 @@ class ShowBackupPolicy:
|
|
206
206
|
差量备份周期配置。自动差量备份将每隔周期分钟执行。
|
207
207
|
|
208
208
|
:param differential_period: The differential_period of this ShowBackupPolicy.
|
209
|
-
:type differential_period:
|
209
|
+
:type differential_period: int
|
210
210
|
"""
|
211
211
|
self._differential_period = differential_period
|
212
212
|
|