huaweicloudsdkgaussdb 3.1.123__py2.py3-none-any.whl → 3.1.124__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 +12 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +274 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +274 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +12 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_item.py +289 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/operate_multi_tenant_req.py +114 -0
- huaweicloudsdkgaussdb/v3/model/show_multi_tenant_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_multi_tenant_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_item.py +405 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request_body.py +344 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/update_multi_tenant_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_multi_tenant_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/RECORD +21 -9
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/WHEEL +1 -1
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OperateMultiTenantReq:
|
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
|
+
'multi_tenant_switch': 'bool'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'multi_tenant_switch': 'multi_tenant_switch'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, multi_tenant_switch=None):
|
28
|
+
"""OperateMultiTenantReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param multi_tenant_switch: 实例多租特性开关。 - true:开启 - false:关闭。
|
33
|
+
:type multi_tenant_switch: bool
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._multi_tenant_switch = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.multi_tenant_switch = multi_tenant_switch
|
42
|
+
|
43
|
+
@property
|
44
|
+
def multi_tenant_switch(self):
|
45
|
+
"""Gets the multi_tenant_switch of this OperateMultiTenantReq.
|
46
|
+
|
47
|
+
实例多租特性开关。 - true:开启 - false:关闭。
|
48
|
+
|
49
|
+
:return: The multi_tenant_switch of this OperateMultiTenantReq.
|
50
|
+
:rtype: bool
|
51
|
+
"""
|
52
|
+
return self._multi_tenant_switch
|
53
|
+
|
54
|
+
@multi_tenant_switch.setter
|
55
|
+
def multi_tenant_switch(self, multi_tenant_switch):
|
56
|
+
"""Sets the multi_tenant_switch of this OperateMultiTenantReq.
|
57
|
+
|
58
|
+
实例多租特性开关。 - true:开启 - false:关闭。
|
59
|
+
|
60
|
+
:param multi_tenant_switch: The multi_tenant_switch of this OperateMultiTenantReq.
|
61
|
+
:type multi_tenant_switch: bool
|
62
|
+
"""
|
63
|
+
self._multi_tenant_switch = multi_tenant_switch
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, OperateMultiTenantReq):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowMultiTenantRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'instance_id': 'instance_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, instance_id=None):
|
30
|
+
"""ShowMultiTenantRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._instance_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
self.instance_id = instance_id
|
49
|
+
|
50
|
+
@property
|
51
|
+
def x_language(self):
|
52
|
+
"""Gets the x_language of this ShowMultiTenantRequest.
|
53
|
+
|
54
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
55
|
+
|
56
|
+
:return: The x_language of this ShowMultiTenantRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
"""Sets the x_language of this ShowMultiTenantRequest.
|
64
|
+
|
65
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowMultiTenantRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
"""Gets the instance_id of this ShowMultiTenantRequest.
|
75
|
+
|
76
|
+
实例ID,严格匹配UUID规则。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowMultiTenantRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
"""Sets the instance_id of this ShowMultiTenantRequest.
|
86
|
+
|
87
|
+
实例ID,严格匹配UUID规则。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowMultiTenantRequest.
|
90
|
+
:type instance_id: str
|
91
|
+
"""
|
92
|
+
self._instance_id = instance_id
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowMultiTenantRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
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 ShowMultiTenantResponse(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
|
+
'multi_tenant_switch': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'multi_tenant_switch': 'multi_tenant_switch'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, multi_tenant_switch=None):
|
29
|
+
"""ShowMultiTenantResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param multi_tenant_switch: 实例多租特性开关。 - true:开启 - false:关闭。
|
34
|
+
:type multi_tenant_switch: bool
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowMultiTenantResponse, self).__init__()
|
38
|
+
|
39
|
+
self._multi_tenant_switch = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if multi_tenant_switch is not None:
|
43
|
+
self.multi_tenant_switch = multi_tenant_switch
|
44
|
+
|
45
|
+
@property
|
46
|
+
def multi_tenant_switch(self):
|
47
|
+
"""Gets the multi_tenant_switch of this ShowMultiTenantResponse.
|
48
|
+
|
49
|
+
实例多租特性开关。 - true:开启 - false:关闭。
|
50
|
+
|
51
|
+
:return: The multi_tenant_switch of this ShowMultiTenantResponse.
|
52
|
+
:rtype: bool
|
53
|
+
"""
|
54
|
+
return self._multi_tenant_switch
|
55
|
+
|
56
|
+
@multi_tenant_switch.setter
|
57
|
+
def multi_tenant_switch(self, multi_tenant_switch):
|
58
|
+
"""Sets the multi_tenant_switch of this ShowMultiTenantResponse.
|
59
|
+
|
60
|
+
实例多租特性开关。 - true:开启 - false:关闭。
|
61
|
+
|
62
|
+
:param multi_tenant_switch: The multi_tenant_switch of this ShowMultiTenantResponse.
|
63
|
+
:type multi_tenant_switch: bool
|
64
|
+
"""
|
65
|
+
self._multi_tenant_switch = multi_tenant_switch
|
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, ShowMultiTenantResponse):
|
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
|