huaweicloudsdkgaussdbforopengauss 3.1.91__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 +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.92.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +21 -14
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +0 -145
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@ import six
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
6
|
|
7
7
|
|
8
|
-
class
|
8
|
+
class ShowErrorLogSwitchStatusRequest:
|
9
9
|
|
10
10
|
"""
|
11
11
|
Attributes:
|
@@ -17,78 +17,79 @@ class InstancesStatisticsResponseBodyInstancesStatistics:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'
|
21
|
-
'
|
20
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str'
|
22
22
|
}
|
23
23
|
|
24
24
|
attribute_map = {
|
25
|
-
'
|
26
|
-
'
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
27
|
}
|
28
28
|
|
29
|
-
def __init__(self,
|
30
|
-
"""
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""ShowErrorLogSwitchStatusRequest
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param
|
35
|
-
:type
|
36
|
-
:param
|
37
|
-
:type
|
34
|
+
:param x_language: 语言
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID。
|
37
|
+
:type instance_id: str
|
38
38
|
"""
|
39
39
|
|
40
40
|
|
41
41
|
|
42
|
-
self.
|
43
|
-
self.
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
44
|
self.discriminator = None
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
48
49
|
|
49
50
|
@property
|
50
|
-
def
|
51
|
-
"""Gets the
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowErrorLogSwitchStatusRequest.
|
52
53
|
|
53
|
-
|
54
|
+
语言
|
54
55
|
|
55
|
-
:return: The
|
56
|
+
:return: The x_language of this ShowErrorLogSwitchStatusRequest.
|
56
57
|
:rtype: str
|
57
58
|
"""
|
58
|
-
return self.
|
59
|
+
return self._x_language
|
59
60
|
|
60
|
-
@
|
61
|
-
def
|
62
|
-
"""Sets the
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowErrorLogSwitchStatusRequest.
|
63
64
|
|
64
|
-
|
65
|
+
语言
|
65
66
|
|
66
|
-
:param
|
67
|
-
:type
|
67
|
+
:param x_language: The x_language of this ShowErrorLogSwitchStatusRequest.
|
68
|
+
:type x_language: str
|
68
69
|
"""
|
69
|
-
self.
|
70
|
+
self._x_language = x_language
|
70
71
|
|
71
72
|
@property
|
72
|
-
def
|
73
|
-
"""Gets the
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this ShowErrorLogSwitchStatusRequest.
|
74
75
|
|
75
|
-
|
76
|
+
实例ID。
|
76
77
|
|
77
|
-
:return: The
|
78
|
-
:rtype:
|
78
|
+
:return: The instance_id of this ShowErrorLogSwitchStatusRequest.
|
79
|
+
:rtype: str
|
79
80
|
"""
|
80
|
-
return self.
|
81
|
+
return self._instance_id
|
81
82
|
|
82
|
-
@
|
83
|
-
def
|
84
|
-
"""Sets the
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this ShowErrorLogSwitchStatusRequest.
|
85
86
|
|
86
|
-
|
87
|
+
实例ID。
|
87
88
|
|
88
|
-
:param
|
89
|
-
:type
|
89
|
+
:param instance_id: The instance_id of this ShowErrorLogSwitchStatusRequest.
|
90
|
+
:type instance_id: str
|
90
91
|
"""
|
91
|
-
self.
|
92
|
+
self._instance_id = instance_id
|
92
93
|
|
93
94
|
def to_dict(self):
|
94
95
|
"""Returns the model properties as a dict"""
|
@@ -132,7 +133,7 @@ class InstancesStatisticsResponseBodyInstancesStatistics:
|
|
132
133
|
|
133
134
|
def __eq__(self, other):
|
134
135
|
"""Returns true if both objects are equal"""
|
135
|
-
if not isinstance(other,
|
136
|
+
if not isinstance(other, ShowErrorLogSwitchStatusRequest):
|
136
137
|
return False
|
137
138
|
|
138
139
|
return self.__dict__ == other.__dict__
|
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
import six
|
4
4
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
5
6
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
7
|
|
7
8
|
|
8
|
-
class
|
9
|
+
class ShowErrorLogSwitchStatusResponse(SdkResponse):
|
9
10
|
|
10
11
|
"""
|
11
12
|
Attributes:
|
@@ -17,51 +18,51 @@ class ShowInstancesStatisticsRequest:
|
|
17
18
|
sensitive_list = []
|
18
19
|
|
19
20
|
openapi_types = {
|
20
|
-
'
|
21
|
+
'status': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
24
|
-
'
|
25
|
+
'status': 'status'
|
25
26
|
}
|
26
27
|
|
27
|
-
def __init__(self,
|
28
|
-
"""
|
28
|
+
def __init__(self, status=None):
|
29
|
+
"""ShowErrorLogSwitchStatusResponse
|
29
30
|
|
30
31
|
The model defined in huaweicloud sdk
|
31
32
|
|
32
|
-
:param
|
33
|
-
:type
|
33
|
+
:param status: 采集状态
|
34
|
+
:type status: str
|
34
35
|
"""
|
35
36
|
|
36
|
-
|
37
|
+
super(ShowErrorLogSwitchStatusResponse, self).__init__()
|
37
38
|
|
38
|
-
self.
|
39
|
+
self._status = None
|
39
40
|
self.discriminator = None
|
40
41
|
|
41
|
-
if
|
42
|
-
self.
|
42
|
+
if status is not None:
|
43
|
+
self.status = status
|
43
44
|
|
44
45
|
@property
|
45
|
-
def
|
46
|
-
"""Gets the
|
46
|
+
def status(self):
|
47
|
+
"""Gets the status of this ShowErrorLogSwitchStatusResponse.
|
47
48
|
|
48
|
-
|
49
|
+
采集状态
|
49
50
|
|
50
|
-
:return: The
|
51
|
+
:return: The status of this ShowErrorLogSwitchStatusResponse.
|
51
52
|
:rtype: str
|
52
53
|
"""
|
53
|
-
return self.
|
54
|
+
return self._status
|
54
55
|
|
55
|
-
@
|
56
|
-
def
|
57
|
-
"""Sets the
|
56
|
+
@status.setter
|
57
|
+
def status(self, status):
|
58
|
+
"""Sets the status of this ShowErrorLogSwitchStatusResponse.
|
58
59
|
|
59
|
-
|
60
|
+
采集状态
|
60
61
|
|
61
|
-
:param
|
62
|
-
:type
|
62
|
+
:param status: The status of this ShowErrorLogSwitchStatusResponse.
|
63
|
+
:type status: str
|
63
64
|
"""
|
64
|
-
self.
|
65
|
+
self._status = status
|
65
66
|
|
66
67
|
def to_dict(self):
|
67
68
|
"""Returns the model properties as a dict"""
|
@@ -105,7 +106,7 @@ class ShowInstancesStatisticsRequest:
|
|
105
106
|
|
106
107
|
def __eq__(self, other):
|
107
108
|
"""Returns true if both objects are equal"""
|
108
|
-
if not isinstance(other,
|
109
|
+
if not isinstance(other, ShowErrorLogSwitchStatusResponse):
|
109
110
|
return False
|
110
111
|
|
111
112
|
return self.__dict__ == other.__dict__
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TopIoInfo:
|
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
|
+
'thread_id': 'str',
|
21
|
+
'thread_type': 'str',
|
22
|
+
'disk_read_rate': 'int',
|
23
|
+
'disk_write_rate': 'int',
|
24
|
+
'session_id': 'str',
|
25
|
+
'unique_sql_id': 'str',
|
26
|
+
'database_name': 'str',
|
27
|
+
'client_ip': 'str',
|
28
|
+
'user_name': 'str',
|
29
|
+
'state': 'str',
|
30
|
+
'sql_start': 'int'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'thread_id': 'thread_id',
|
35
|
+
'thread_type': 'thread_type',
|
36
|
+
'disk_read_rate': 'disk_read_rate',
|
37
|
+
'disk_write_rate': 'disk_write_rate',
|
38
|
+
'session_id': 'session_id',
|
39
|
+
'unique_sql_id': 'unique_sql_id',
|
40
|
+
'database_name': 'database_name',
|
41
|
+
'client_ip': 'client_ip',
|
42
|
+
'user_name': 'user_name',
|
43
|
+
'state': 'state',
|
44
|
+
'sql_start': 'sql_start'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, thread_id=None, thread_type=None, disk_read_rate=None, disk_write_rate=None, session_id=None, unique_sql_id=None, database_name=None, client_ip=None, user_name=None, state=None, sql_start=None):
|
48
|
+
"""TopIoInfo
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param thread_id: 线程ID
|
53
|
+
:type thread_id: str
|
54
|
+
:param thread_type: 线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
|
55
|
+
:type thread_type: str
|
56
|
+
:param disk_read_rate: 从磁盘读取数据速率, 单位:KB/s
|
57
|
+
:type disk_read_rate: int
|
58
|
+
:param disk_write_rate: 写入磁盘数据速率, 单位:KB/s
|
59
|
+
:type disk_write_rate: int
|
60
|
+
:param session_id: 会话ID
|
61
|
+
:type session_id: str
|
62
|
+
:param unique_sql_id: SQL ID
|
63
|
+
:type unique_sql_id: str
|
64
|
+
:param database_name: 数据库
|
65
|
+
:type database_name: str
|
66
|
+
:param client_ip: 客户端IP
|
67
|
+
:type client_ip: str
|
68
|
+
:param user_name: 用户名
|
69
|
+
:type user_name: str
|
70
|
+
:param state: 状态
|
71
|
+
:type state: str
|
72
|
+
:param sql_start: 语句开始时间
|
73
|
+
:type sql_start: int
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._thread_id = None
|
79
|
+
self._thread_type = None
|
80
|
+
self._disk_read_rate = None
|
81
|
+
self._disk_write_rate = None
|
82
|
+
self._session_id = None
|
83
|
+
self._unique_sql_id = None
|
84
|
+
self._database_name = None
|
85
|
+
self._client_ip = None
|
86
|
+
self._user_name = None
|
87
|
+
self._state = None
|
88
|
+
self._sql_start = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
if thread_id is not None:
|
92
|
+
self.thread_id = thread_id
|
93
|
+
if thread_type is not None:
|
94
|
+
self.thread_type = thread_type
|
95
|
+
if disk_read_rate is not None:
|
96
|
+
self.disk_read_rate = disk_read_rate
|
97
|
+
if disk_write_rate is not None:
|
98
|
+
self.disk_write_rate = disk_write_rate
|
99
|
+
if session_id is not None:
|
100
|
+
self.session_id = session_id
|
101
|
+
if unique_sql_id is not None:
|
102
|
+
self.unique_sql_id = unique_sql_id
|
103
|
+
if database_name is not None:
|
104
|
+
self.database_name = database_name
|
105
|
+
if client_ip is not None:
|
106
|
+
self.client_ip = client_ip
|
107
|
+
if user_name is not None:
|
108
|
+
self.user_name = user_name
|
109
|
+
if state is not None:
|
110
|
+
self.state = state
|
111
|
+
if sql_start is not None:
|
112
|
+
self.sql_start = sql_start
|
113
|
+
|
114
|
+
@property
|
115
|
+
def thread_id(self):
|
116
|
+
"""Gets the thread_id of this TopIoInfo.
|
117
|
+
|
118
|
+
线程ID
|
119
|
+
|
120
|
+
:return: The thread_id of this TopIoInfo.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._thread_id
|
124
|
+
|
125
|
+
@thread_id.setter
|
126
|
+
def thread_id(self, thread_id):
|
127
|
+
"""Sets the thread_id of this TopIoInfo.
|
128
|
+
|
129
|
+
线程ID
|
130
|
+
|
131
|
+
:param thread_id: The thread_id of this TopIoInfo.
|
132
|
+
:type thread_id: str
|
133
|
+
"""
|
134
|
+
self._thread_id = thread_id
|
135
|
+
|
136
|
+
@property
|
137
|
+
def thread_type(self):
|
138
|
+
"""Gets the thread_type of this TopIoInfo.
|
139
|
+
|
140
|
+
线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
|
141
|
+
|
142
|
+
:return: The thread_type of this TopIoInfo.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._thread_type
|
146
|
+
|
147
|
+
@thread_type.setter
|
148
|
+
def thread_type(self, thread_type):
|
149
|
+
"""Sets the thread_type of this TopIoInfo.
|
150
|
+
|
151
|
+
线程分类标识,取值:业务(worker)和后台(background)。需将GUC参数\"enable_thread_pool\"设置为on
|
152
|
+
|
153
|
+
:param thread_type: The thread_type of this TopIoInfo.
|
154
|
+
:type thread_type: str
|
155
|
+
"""
|
156
|
+
self._thread_type = thread_type
|
157
|
+
|
158
|
+
@property
|
159
|
+
def disk_read_rate(self):
|
160
|
+
"""Gets the disk_read_rate of this TopIoInfo.
|
161
|
+
|
162
|
+
从磁盘读取数据速率, 单位:KB/s
|
163
|
+
|
164
|
+
:return: The disk_read_rate of this TopIoInfo.
|
165
|
+
:rtype: int
|
166
|
+
"""
|
167
|
+
return self._disk_read_rate
|
168
|
+
|
169
|
+
@disk_read_rate.setter
|
170
|
+
def disk_read_rate(self, disk_read_rate):
|
171
|
+
"""Sets the disk_read_rate of this TopIoInfo.
|
172
|
+
|
173
|
+
从磁盘读取数据速率, 单位:KB/s
|
174
|
+
|
175
|
+
:param disk_read_rate: The disk_read_rate of this TopIoInfo.
|
176
|
+
:type disk_read_rate: int
|
177
|
+
"""
|
178
|
+
self._disk_read_rate = disk_read_rate
|
179
|
+
|
180
|
+
@property
|
181
|
+
def disk_write_rate(self):
|
182
|
+
"""Gets the disk_write_rate of this TopIoInfo.
|
183
|
+
|
184
|
+
写入磁盘数据速率, 单位:KB/s
|
185
|
+
|
186
|
+
:return: The disk_write_rate of this TopIoInfo.
|
187
|
+
:rtype: int
|
188
|
+
"""
|
189
|
+
return self._disk_write_rate
|
190
|
+
|
191
|
+
@disk_write_rate.setter
|
192
|
+
def disk_write_rate(self, disk_write_rate):
|
193
|
+
"""Sets the disk_write_rate of this TopIoInfo.
|
194
|
+
|
195
|
+
写入磁盘数据速率, 单位:KB/s
|
196
|
+
|
197
|
+
:param disk_write_rate: The disk_write_rate of this TopIoInfo.
|
198
|
+
:type disk_write_rate: int
|
199
|
+
"""
|
200
|
+
self._disk_write_rate = disk_write_rate
|
201
|
+
|
202
|
+
@property
|
203
|
+
def session_id(self):
|
204
|
+
"""Gets the session_id of this TopIoInfo.
|
205
|
+
|
206
|
+
会话ID
|
207
|
+
|
208
|
+
:return: The session_id of this TopIoInfo.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._session_id
|
212
|
+
|
213
|
+
@session_id.setter
|
214
|
+
def session_id(self, session_id):
|
215
|
+
"""Sets the session_id of this TopIoInfo.
|
216
|
+
|
217
|
+
会话ID
|
218
|
+
|
219
|
+
:param session_id: The session_id of this TopIoInfo.
|
220
|
+
:type session_id: str
|
221
|
+
"""
|
222
|
+
self._session_id = session_id
|
223
|
+
|
224
|
+
@property
|
225
|
+
def unique_sql_id(self):
|
226
|
+
"""Gets the unique_sql_id of this TopIoInfo.
|
227
|
+
|
228
|
+
SQL ID
|
229
|
+
|
230
|
+
:return: The unique_sql_id of this TopIoInfo.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._unique_sql_id
|
234
|
+
|
235
|
+
@unique_sql_id.setter
|
236
|
+
def unique_sql_id(self, unique_sql_id):
|
237
|
+
"""Sets the unique_sql_id of this TopIoInfo.
|
238
|
+
|
239
|
+
SQL ID
|
240
|
+
|
241
|
+
:param unique_sql_id: The unique_sql_id of this TopIoInfo.
|
242
|
+
:type unique_sql_id: str
|
243
|
+
"""
|
244
|
+
self._unique_sql_id = unique_sql_id
|
245
|
+
|
246
|
+
@property
|
247
|
+
def database_name(self):
|
248
|
+
"""Gets the database_name of this TopIoInfo.
|
249
|
+
|
250
|
+
数据库
|
251
|
+
|
252
|
+
:return: The database_name of this TopIoInfo.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._database_name
|
256
|
+
|
257
|
+
@database_name.setter
|
258
|
+
def database_name(self, database_name):
|
259
|
+
"""Sets the database_name of this TopIoInfo.
|
260
|
+
|
261
|
+
数据库
|
262
|
+
|
263
|
+
:param database_name: The database_name of this TopIoInfo.
|
264
|
+
:type database_name: str
|
265
|
+
"""
|
266
|
+
self._database_name = database_name
|
267
|
+
|
268
|
+
@property
|
269
|
+
def client_ip(self):
|
270
|
+
"""Gets the client_ip of this TopIoInfo.
|
271
|
+
|
272
|
+
客户端IP
|
273
|
+
|
274
|
+
:return: The client_ip of this TopIoInfo.
|
275
|
+
:rtype: str
|
276
|
+
"""
|
277
|
+
return self._client_ip
|
278
|
+
|
279
|
+
@client_ip.setter
|
280
|
+
def client_ip(self, client_ip):
|
281
|
+
"""Sets the client_ip of this TopIoInfo.
|
282
|
+
|
283
|
+
客户端IP
|
284
|
+
|
285
|
+
:param client_ip: The client_ip of this TopIoInfo.
|
286
|
+
:type client_ip: str
|
287
|
+
"""
|
288
|
+
self._client_ip = client_ip
|
289
|
+
|
290
|
+
@property
|
291
|
+
def user_name(self):
|
292
|
+
"""Gets the user_name of this TopIoInfo.
|
293
|
+
|
294
|
+
用户名
|
295
|
+
|
296
|
+
:return: The user_name of this TopIoInfo.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._user_name
|
300
|
+
|
301
|
+
@user_name.setter
|
302
|
+
def user_name(self, user_name):
|
303
|
+
"""Sets the user_name of this TopIoInfo.
|
304
|
+
|
305
|
+
用户名
|
306
|
+
|
307
|
+
:param user_name: The user_name of this TopIoInfo.
|
308
|
+
:type user_name: str
|
309
|
+
"""
|
310
|
+
self._user_name = user_name
|
311
|
+
|
312
|
+
@property
|
313
|
+
def state(self):
|
314
|
+
"""Gets the state of this TopIoInfo.
|
315
|
+
|
316
|
+
状态
|
317
|
+
|
318
|
+
:return: The state of this TopIoInfo.
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._state
|
322
|
+
|
323
|
+
@state.setter
|
324
|
+
def state(self, state):
|
325
|
+
"""Sets the state of this TopIoInfo.
|
326
|
+
|
327
|
+
状态
|
328
|
+
|
329
|
+
:param state: The state of this TopIoInfo.
|
330
|
+
:type state: str
|
331
|
+
"""
|
332
|
+
self._state = state
|
333
|
+
|
334
|
+
@property
|
335
|
+
def sql_start(self):
|
336
|
+
"""Gets the sql_start of this TopIoInfo.
|
337
|
+
|
338
|
+
语句开始时间
|
339
|
+
|
340
|
+
:return: The sql_start of this TopIoInfo.
|
341
|
+
:rtype: int
|
342
|
+
"""
|
343
|
+
return self._sql_start
|
344
|
+
|
345
|
+
@sql_start.setter
|
346
|
+
def sql_start(self, sql_start):
|
347
|
+
"""Sets the sql_start of this TopIoInfo.
|
348
|
+
|
349
|
+
语句开始时间
|
350
|
+
|
351
|
+
:param sql_start: The sql_start of this TopIoInfo.
|
352
|
+
:type sql_start: int
|
353
|
+
"""
|
354
|
+
self._sql_start = sql_start
|
355
|
+
|
356
|
+
def to_dict(self):
|
357
|
+
"""Returns the model properties as a dict"""
|
358
|
+
result = {}
|
359
|
+
|
360
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
361
|
+
value = getattr(self, attr)
|
362
|
+
if isinstance(value, list):
|
363
|
+
result[attr] = list(map(
|
364
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
365
|
+
value
|
366
|
+
))
|
367
|
+
elif hasattr(value, "to_dict"):
|
368
|
+
result[attr] = value.to_dict()
|
369
|
+
elif isinstance(value, dict):
|
370
|
+
result[attr] = dict(map(
|
371
|
+
lambda item: (item[0], item[1].to_dict())
|
372
|
+
if hasattr(item[1], "to_dict") else item,
|
373
|
+
value.items()
|
374
|
+
))
|
375
|
+
else:
|
376
|
+
if attr in self.sensitive_list:
|
377
|
+
result[attr] = "****"
|
378
|
+
else:
|
379
|
+
result[attr] = value
|
380
|
+
|
381
|
+
return result
|
382
|
+
|
383
|
+
def to_str(self):
|
384
|
+
"""Returns the string representation of the model"""
|
385
|
+
import simplejson as json
|
386
|
+
if six.PY2:
|
387
|
+
import sys
|
388
|
+
reload(sys)
|
389
|
+
sys.setdefaultencoding("utf-8")
|
390
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
391
|
+
|
392
|
+
def __repr__(self):
|
393
|
+
"""For `print`"""
|
394
|
+
return self.to_str()
|
395
|
+
|
396
|
+
def __eq__(self, other):
|
397
|
+
"""Returns true if both objects are equal"""
|
398
|
+
if not isinstance(other, TopIoInfo):
|
399
|
+
return False
|
400
|
+
|
401
|
+
return self.__dict__ == other.__dict__
|
402
|
+
|
403
|
+
def __ne__(self, other):
|
404
|
+
"""Returns true if both objects are not equal"""
|
405
|
+
return not self == other
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdbforopengauss
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.92
|
4
4
|
Summary: GaussDBforopenGauss
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.92
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|