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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- 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_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -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 +230 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.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
|