huaweicloudsdkgaussdb 3.1.144__py2.py3-none-any.whl → 3.1.145__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.
- huaweicloudsdkgaussdb/v3/__init__.py +6 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +549 -405
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +549 -405
- huaweicloudsdkgaussdb/v3/model/__init__.py +6 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_taurus_db_node_processes_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_taurus_db_node_processes_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/taurus_db_process_info.py +310 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/RECORD +15 -9
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,229 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListTaurusDbNodeProcessesRequest:
|
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
|
+
'offset': 'int',
|
24
|
+
'limit': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'x_language': 'X-Language',
|
29
|
+
'instance_id': 'instance_id',
|
30
|
+
'node_id': 'node_id',
|
31
|
+
'offset': 'offset',
|
32
|
+
'limit': 'limit'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, x_language=None, instance_id=None, node_id=None, offset=None, limit=None):
|
36
|
+
r"""ListTaurusDbNodeProcessesRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us
|
41
|
+
:type x_language: str
|
42
|
+
:param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
43
|
+
:type instance_id: str
|
44
|
+
:param node_id: **参数解释**: 节点ID,此参数是节点的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为no07,长度为36个字符。 **默认取值**: 不涉及。
|
45
|
+
:type node_id: str
|
46
|
+
:param offset: **参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
|
47
|
+
:type offset: int
|
48
|
+
:param limit: **参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 100
|
49
|
+
:type limit: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._x_language = None
|
55
|
+
self._instance_id = None
|
56
|
+
self._node_id = None
|
57
|
+
self._offset = None
|
58
|
+
self._limit = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if x_language is not None:
|
62
|
+
self.x_language = x_language
|
63
|
+
self.instance_id = instance_id
|
64
|
+
self.node_id = node_id
|
65
|
+
if offset is not None:
|
66
|
+
self.offset = offset
|
67
|
+
if limit is not None:
|
68
|
+
self.limit = limit
|
69
|
+
|
70
|
+
@property
|
71
|
+
def x_language(self):
|
72
|
+
r"""Gets the x_language of this ListTaurusDbNodeProcessesRequest.
|
73
|
+
|
74
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us
|
75
|
+
|
76
|
+
:return: The x_language of this ListTaurusDbNodeProcessesRequest.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._x_language
|
80
|
+
|
81
|
+
@x_language.setter
|
82
|
+
def x_language(self, x_language):
|
83
|
+
r"""Sets the x_language of this ListTaurusDbNodeProcessesRequest.
|
84
|
+
|
85
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us
|
86
|
+
|
87
|
+
:param x_language: The x_language of this ListTaurusDbNodeProcessesRequest.
|
88
|
+
:type x_language: str
|
89
|
+
"""
|
90
|
+
self._x_language = x_language
|
91
|
+
|
92
|
+
@property
|
93
|
+
def instance_id(self):
|
94
|
+
r"""Gets the instance_id of this ListTaurusDbNodeProcessesRequest.
|
95
|
+
|
96
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
97
|
+
|
98
|
+
:return: The instance_id of this ListTaurusDbNodeProcessesRequest.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._instance_id
|
102
|
+
|
103
|
+
@instance_id.setter
|
104
|
+
def instance_id(self, instance_id):
|
105
|
+
r"""Sets the instance_id of this ListTaurusDbNodeProcessesRequest.
|
106
|
+
|
107
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
108
|
+
|
109
|
+
:param instance_id: The instance_id of this ListTaurusDbNodeProcessesRequest.
|
110
|
+
:type instance_id: str
|
111
|
+
"""
|
112
|
+
self._instance_id = instance_id
|
113
|
+
|
114
|
+
@property
|
115
|
+
def node_id(self):
|
116
|
+
r"""Gets the node_id of this ListTaurusDbNodeProcessesRequest.
|
117
|
+
|
118
|
+
**参数解释**: 节点ID,此参数是节点的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为no07,长度为36个字符。 **默认取值**: 不涉及。
|
119
|
+
|
120
|
+
:return: The node_id of this ListTaurusDbNodeProcessesRequest.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._node_id
|
124
|
+
|
125
|
+
@node_id.setter
|
126
|
+
def node_id(self, node_id):
|
127
|
+
r"""Sets the node_id of this ListTaurusDbNodeProcessesRequest.
|
128
|
+
|
129
|
+
**参数解释**: 节点ID,此参数是节点的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为no07,长度为36个字符。 **默认取值**: 不涉及。
|
130
|
+
|
131
|
+
:param node_id: The node_id of this ListTaurusDbNodeProcessesRequest.
|
132
|
+
:type node_id: str
|
133
|
+
"""
|
134
|
+
self._node_id = node_id
|
135
|
+
|
136
|
+
@property
|
137
|
+
def offset(self):
|
138
|
+
r"""Gets the offset of this ListTaurusDbNodeProcessesRequest.
|
139
|
+
|
140
|
+
**参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
|
141
|
+
|
142
|
+
:return: The offset of this ListTaurusDbNodeProcessesRequest.
|
143
|
+
:rtype: int
|
144
|
+
"""
|
145
|
+
return self._offset
|
146
|
+
|
147
|
+
@offset.setter
|
148
|
+
def offset(self, offset):
|
149
|
+
r"""Sets the offset of this ListTaurusDbNodeProcessesRequest.
|
150
|
+
|
151
|
+
**参数解释**: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: ≥0 **默认取值**: 0
|
152
|
+
|
153
|
+
:param offset: The offset of this ListTaurusDbNodeProcessesRequest.
|
154
|
+
:type offset: int
|
155
|
+
"""
|
156
|
+
self._offset = offset
|
157
|
+
|
158
|
+
@property
|
159
|
+
def limit(self):
|
160
|
+
r"""Gets the limit of this ListTaurusDbNodeProcessesRequest.
|
161
|
+
|
162
|
+
**参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 100
|
163
|
+
|
164
|
+
:return: The limit of this ListTaurusDbNodeProcessesRequest.
|
165
|
+
:rtype: int
|
166
|
+
"""
|
167
|
+
return self._limit
|
168
|
+
|
169
|
+
@limit.setter
|
170
|
+
def limit(self, limit):
|
171
|
+
r"""Sets the limit of this ListTaurusDbNodeProcessesRequest.
|
172
|
+
|
173
|
+
**参数解释**: 查询记录数。 **约束限制**: 必须为整数,不能为负数。 **取值范围**: 1-100 **默认取值**: 100
|
174
|
+
|
175
|
+
:param limit: The limit of this ListTaurusDbNodeProcessesRequest.
|
176
|
+
:type limit: int
|
177
|
+
"""
|
178
|
+
self._limit = limit
|
179
|
+
|
180
|
+
def to_dict(self):
|
181
|
+
"""Returns the model properties as a dict"""
|
182
|
+
result = {}
|
183
|
+
|
184
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
185
|
+
value = getattr(self, attr)
|
186
|
+
if isinstance(value, list):
|
187
|
+
result[attr] = list(map(
|
188
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
189
|
+
value
|
190
|
+
))
|
191
|
+
elif hasattr(value, "to_dict"):
|
192
|
+
result[attr] = value.to_dict()
|
193
|
+
elif isinstance(value, dict):
|
194
|
+
result[attr] = dict(map(
|
195
|
+
lambda item: (item[0], item[1].to_dict())
|
196
|
+
if hasattr(item[1], "to_dict") else item,
|
197
|
+
value.items()
|
198
|
+
))
|
199
|
+
else:
|
200
|
+
if attr in self.sensitive_list:
|
201
|
+
result[attr] = "****"
|
202
|
+
else:
|
203
|
+
result[attr] = value
|
204
|
+
|
205
|
+
return result
|
206
|
+
|
207
|
+
def to_str(self):
|
208
|
+
"""Returns the string representation of the model"""
|
209
|
+
import simplejson as json
|
210
|
+
if six.PY2:
|
211
|
+
import sys
|
212
|
+
reload(sys)
|
213
|
+
sys.setdefaultencoding("utf-8")
|
214
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
215
|
+
|
216
|
+
def __repr__(self):
|
217
|
+
"""For `print`"""
|
218
|
+
return self.to_str()
|
219
|
+
|
220
|
+
def __eq__(self, other):
|
221
|
+
"""Returns true if both objects are equal"""
|
222
|
+
if not isinstance(other, ListTaurusDbNodeProcessesRequest):
|
223
|
+
return False
|
224
|
+
|
225
|
+
return self.__dict__ == other.__dict__
|
226
|
+
|
227
|
+
def __ne__(self, other):
|
228
|
+
"""Returns true if both objects are not equal"""
|
229
|
+
return not self == other
|
@@ -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 ListTaurusDbNodeProcessesResponse(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
|
+
'processes': 'list[TaurusDbProcessInfo]',
|
22
|
+
'total_count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'processes': 'processes',
|
27
|
+
'total_count': 'total_count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, processes=None, total_count=None):
|
31
|
+
r"""ListTaurusDbNodeProcessesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param processes: **参数解释**: 用户会话线程信息列表。
|
36
|
+
:type processes: list[:class:`huaweicloudsdkgaussdb.v3.TaurusDbProcessInfo`]
|
37
|
+
:param total_count: **参数解释**: 节点中的用户会话线程总数。 **取值范围**: ≥0
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListTaurusDbNodeProcessesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._processes = None
|
44
|
+
self._total_count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if processes is not None:
|
48
|
+
self.processes = processes
|
49
|
+
if total_count is not None:
|
50
|
+
self.total_count = total_count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def processes(self):
|
54
|
+
r"""Gets the processes of this ListTaurusDbNodeProcessesResponse.
|
55
|
+
|
56
|
+
**参数解释**: 用户会话线程信息列表。
|
57
|
+
|
58
|
+
:return: The processes of this ListTaurusDbNodeProcessesResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.TaurusDbProcessInfo`]
|
60
|
+
"""
|
61
|
+
return self._processes
|
62
|
+
|
63
|
+
@processes.setter
|
64
|
+
def processes(self, processes):
|
65
|
+
r"""Sets the processes of this ListTaurusDbNodeProcessesResponse.
|
66
|
+
|
67
|
+
**参数解释**: 用户会话线程信息列表。
|
68
|
+
|
69
|
+
:param processes: The processes of this ListTaurusDbNodeProcessesResponse.
|
70
|
+
:type processes: list[:class:`huaweicloudsdkgaussdb.v3.TaurusDbProcessInfo`]
|
71
|
+
"""
|
72
|
+
self._processes = processes
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total_count(self):
|
76
|
+
r"""Gets the total_count of this ListTaurusDbNodeProcessesResponse.
|
77
|
+
|
78
|
+
**参数解释**: 节点中的用户会话线程总数。 **取值范围**: ≥0
|
79
|
+
|
80
|
+
:return: The total_count of this ListTaurusDbNodeProcessesResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total_count
|
84
|
+
|
85
|
+
@total_count.setter
|
86
|
+
def total_count(self, total_count):
|
87
|
+
r"""Sets the total_count of this ListTaurusDbNodeProcessesResponse.
|
88
|
+
|
89
|
+
**参数解释**: 节点中的用户会话线程总数。 **取值范围**: ≥0
|
90
|
+
|
91
|
+
:param total_count: The total_count of this ListTaurusDbNodeProcessesResponse.
|
92
|
+
:type total_count: int
|
93
|
+
"""
|
94
|
+
self._total_count = total_count
|
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, ListTaurusDbNodeProcessesResponse):
|
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,310 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TaurusDbProcessInfo:
|
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': 'int',
|
21
|
+
'user': 'str',
|
22
|
+
'host': 'str',
|
23
|
+
'db': 'str',
|
24
|
+
'command': 'str',
|
25
|
+
'time': 'int',
|
26
|
+
'state': 'str',
|
27
|
+
'info': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'id': 'id',
|
32
|
+
'user': 'user',
|
33
|
+
'host': 'host',
|
34
|
+
'db': 'db',
|
35
|
+
'command': 'command',
|
36
|
+
'time': 'time',
|
37
|
+
'state': 'state',
|
38
|
+
'info': 'info'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, id=None, user=None, host=None, db=None, command=None, time=None, state=None, info=None):
|
42
|
+
r"""TaurusDbProcessInfo
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param id: **参数解释**: 用户会话线程ID。
|
47
|
+
:type id: int
|
48
|
+
:param user: **参数解释**: 启动用户会话线程的用户。
|
49
|
+
:type user: str
|
50
|
+
:param host: **参数解释**: 发送请求的主机和端口。
|
51
|
+
:type host: str
|
52
|
+
:param db: **参数解释**: 当前访问的数据库名。
|
53
|
+
:type db: str
|
54
|
+
:param command: **参数解释**: 当前执行的命令。
|
55
|
+
:type command: str
|
56
|
+
:param time: **参数解释**: 用户会话线程处于当前状态的持续时间,单位为秒。
|
57
|
+
:type time: int
|
58
|
+
:param state: **参数解释**: 正在执行的SQL语句的当前状态。
|
59
|
+
:type state: str
|
60
|
+
:param info: **参数解释**: 额外信息,通常是正在执行的语句。
|
61
|
+
:type info: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._id = None
|
67
|
+
self._user = None
|
68
|
+
self._host = None
|
69
|
+
self._db = None
|
70
|
+
self._command = None
|
71
|
+
self._time = None
|
72
|
+
self._state = None
|
73
|
+
self._info = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.id = id
|
77
|
+
self.user = user
|
78
|
+
self.host = host
|
79
|
+
self.db = db
|
80
|
+
self.command = command
|
81
|
+
self.time = time
|
82
|
+
self.state = state
|
83
|
+
self.info = info
|
84
|
+
|
85
|
+
@property
|
86
|
+
def id(self):
|
87
|
+
r"""Gets the id of this TaurusDbProcessInfo.
|
88
|
+
|
89
|
+
**参数解释**: 用户会话线程ID。
|
90
|
+
|
91
|
+
:return: The id of this TaurusDbProcessInfo.
|
92
|
+
:rtype: int
|
93
|
+
"""
|
94
|
+
return self._id
|
95
|
+
|
96
|
+
@id.setter
|
97
|
+
def id(self, id):
|
98
|
+
r"""Sets the id of this TaurusDbProcessInfo.
|
99
|
+
|
100
|
+
**参数解释**: 用户会话线程ID。
|
101
|
+
|
102
|
+
:param id: The id of this TaurusDbProcessInfo.
|
103
|
+
:type id: int
|
104
|
+
"""
|
105
|
+
self._id = id
|
106
|
+
|
107
|
+
@property
|
108
|
+
def user(self):
|
109
|
+
r"""Gets the user of this TaurusDbProcessInfo.
|
110
|
+
|
111
|
+
**参数解释**: 启动用户会话线程的用户。
|
112
|
+
|
113
|
+
:return: The user of this TaurusDbProcessInfo.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._user
|
117
|
+
|
118
|
+
@user.setter
|
119
|
+
def user(self, user):
|
120
|
+
r"""Sets the user of this TaurusDbProcessInfo.
|
121
|
+
|
122
|
+
**参数解释**: 启动用户会话线程的用户。
|
123
|
+
|
124
|
+
:param user: The user of this TaurusDbProcessInfo.
|
125
|
+
:type user: str
|
126
|
+
"""
|
127
|
+
self._user = user
|
128
|
+
|
129
|
+
@property
|
130
|
+
def host(self):
|
131
|
+
r"""Gets the host of this TaurusDbProcessInfo.
|
132
|
+
|
133
|
+
**参数解释**: 发送请求的主机和端口。
|
134
|
+
|
135
|
+
:return: The host of this TaurusDbProcessInfo.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._host
|
139
|
+
|
140
|
+
@host.setter
|
141
|
+
def host(self, host):
|
142
|
+
r"""Sets the host of this TaurusDbProcessInfo.
|
143
|
+
|
144
|
+
**参数解释**: 发送请求的主机和端口。
|
145
|
+
|
146
|
+
:param host: The host of this TaurusDbProcessInfo.
|
147
|
+
:type host: str
|
148
|
+
"""
|
149
|
+
self._host = host
|
150
|
+
|
151
|
+
@property
|
152
|
+
def db(self):
|
153
|
+
r"""Gets the db of this TaurusDbProcessInfo.
|
154
|
+
|
155
|
+
**参数解释**: 当前访问的数据库名。
|
156
|
+
|
157
|
+
:return: The db of this TaurusDbProcessInfo.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._db
|
161
|
+
|
162
|
+
@db.setter
|
163
|
+
def db(self, db):
|
164
|
+
r"""Sets the db of this TaurusDbProcessInfo.
|
165
|
+
|
166
|
+
**参数解释**: 当前访问的数据库名。
|
167
|
+
|
168
|
+
:param db: The db of this TaurusDbProcessInfo.
|
169
|
+
:type db: str
|
170
|
+
"""
|
171
|
+
self._db = db
|
172
|
+
|
173
|
+
@property
|
174
|
+
def command(self):
|
175
|
+
r"""Gets the command of this TaurusDbProcessInfo.
|
176
|
+
|
177
|
+
**参数解释**: 当前执行的命令。
|
178
|
+
|
179
|
+
:return: The command of this TaurusDbProcessInfo.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._command
|
183
|
+
|
184
|
+
@command.setter
|
185
|
+
def command(self, command):
|
186
|
+
r"""Sets the command of this TaurusDbProcessInfo.
|
187
|
+
|
188
|
+
**参数解释**: 当前执行的命令。
|
189
|
+
|
190
|
+
:param command: The command of this TaurusDbProcessInfo.
|
191
|
+
:type command: str
|
192
|
+
"""
|
193
|
+
self._command = command
|
194
|
+
|
195
|
+
@property
|
196
|
+
def time(self):
|
197
|
+
r"""Gets the time of this TaurusDbProcessInfo.
|
198
|
+
|
199
|
+
**参数解释**: 用户会话线程处于当前状态的持续时间,单位为秒。
|
200
|
+
|
201
|
+
:return: The time of this TaurusDbProcessInfo.
|
202
|
+
:rtype: int
|
203
|
+
"""
|
204
|
+
return self._time
|
205
|
+
|
206
|
+
@time.setter
|
207
|
+
def time(self, time):
|
208
|
+
r"""Sets the time of this TaurusDbProcessInfo.
|
209
|
+
|
210
|
+
**参数解释**: 用户会话线程处于当前状态的持续时间,单位为秒。
|
211
|
+
|
212
|
+
:param time: The time of this TaurusDbProcessInfo.
|
213
|
+
:type time: int
|
214
|
+
"""
|
215
|
+
self._time = time
|
216
|
+
|
217
|
+
@property
|
218
|
+
def state(self):
|
219
|
+
r"""Gets the state of this TaurusDbProcessInfo.
|
220
|
+
|
221
|
+
**参数解释**: 正在执行的SQL语句的当前状态。
|
222
|
+
|
223
|
+
:return: The state of this TaurusDbProcessInfo.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._state
|
227
|
+
|
228
|
+
@state.setter
|
229
|
+
def state(self, state):
|
230
|
+
r"""Sets the state of this TaurusDbProcessInfo.
|
231
|
+
|
232
|
+
**参数解释**: 正在执行的SQL语句的当前状态。
|
233
|
+
|
234
|
+
:param state: The state of this TaurusDbProcessInfo.
|
235
|
+
:type state: str
|
236
|
+
"""
|
237
|
+
self._state = state
|
238
|
+
|
239
|
+
@property
|
240
|
+
def info(self):
|
241
|
+
r"""Gets the info of this TaurusDbProcessInfo.
|
242
|
+
|
243
|
+
**参数解释**: 额外信息,通常是正在执行的语句。
|
244
|
+
|
245
|
+
:return: The info of this TaurusDbProcessInfo.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._info
|
249
|
+
|
250
|
+
@info.setter
|
251
|
+
def info(self, info):
|
252
|
+
r"""Sets the info of this TaurusDbProcessInfo.
|
253
|
+
|
254
|
+
**参数解释**: 额外信息,通常是正在执行的语句。
|
255
|
+
|
256
|
+
:param info: The info of this TaurusDbProcessInfo.
|
257
|
+
:type info: str
|
258
|
+
"""
|
259
|
+
self._info = info
|
260
|
+
|
261
|
+
def to_dict(self):
|
262
|
+
"""Returns the model properties as a dict"""
|
263
|
+
result = {}
|
264
|
+
|
265
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
266
|
+
value = getattr(self, attr)
|
267
|
+
if isinstance(value, list):
|
268
|
+
result[attr] = list(map(
|
269
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
270
|
+
value
|
271
|
+
))
|
272
|
+
elif hasattr(value, "to_dict"):
|
273
|
+
result[attr] = value.to_dict()
|
274
|
+
elif isinstance(value, dict):
|
275
|
+
result[attr] = dict(map(
|
276
|
+
lambda item: (item[0], item[1].to_dict())
|
277
|
+
if hasattr(item[1], "to_dict") else item,
|
278
|
+
value.items()
|
279
|
+
))
|
280
|
+
else:
|
281
|
+
if attr in self.sensitive_list:
|
282
|
+
result[attr] = "****"
|
283
|
+
else:
|
284
|
+
result[attr] = value
|
285
|
+
|
286
|
+
return result
|
287
|
+
|
288
|
+
def to_str(self):
|
289
|
+
"""Returns the string representation of the model"""
|
290
|
+
import simplejson as json
|
291
|
+
if six.PY2:
|
292
|
+
import sys
|
293
|
+
reload(sys)
|
294
|
+
sys.setdefaultencoding("utf-8")
|
295
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
296
|
+
|
297
|
+
def __repr__(self):
|
298
|
+
"""For `print`"""
|
299
|
+
return self.to_str()
|
300
|
+
|
301
|
+
def __eq__(self, other):
|
302
|
+
"""Returns true if both objects are equal"""
|
303
|
+
if not isinstance(other, TaurusDbProcessInfo):
|
304
|
+
return False
|
305
|
+
|
306
|
+
return self.__dict__ == other.__dict__
|
307
|
+
|
308
|
+
def __ne__(self, other):
|
309
|
+
"""Returns true if both objects are not equal"""
|
310
|
+
return not self == other
|
{huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.145.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.145
|
4
4
|
Summary: GaussDB
|
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.145
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|