huaweicloudsdkgaussdb 3.1.98__py2.py3-none-any.whl → 3.1.100__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 +52 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1151 -45
- huaweicloudsdkgaussdb/v3/model/__init__.py +52 -0
- huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
- huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
- huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
- huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
- huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
- huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
- huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
- huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
- huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_dedicated_resource_info_response.py +18 -18
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
- huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +5 -9
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
- huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/RECORD +64 -12
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.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 ShowProxyConfigurationsResponse(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_count': 'str',
|
22
|
+
'configurations': 'list[ProxyConfiguration]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total_count': 'total_count',
|
27
|
+
'configurations': 'configurations'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total_count=None, configurations=None):
|
31
|
+
"""ShowProxyConfigurationsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total_count: 数据总数
|
36
|
+
:type total_count: str
|
37
|
+
:param configurations: 内核可配置的参数列表
|
38
|
+
:type configurations: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowProxyConfigurationsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total_count = None
|
44
|
+
self._configurations = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total_count is not None:
|
48
|
+
self.total_count = total_count
|
49
|
+
if configurations is not None:
|
50
|
+
self.configurations = configurations
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total_count(self):
|
54
|
+
"""Gets the total_count of this ShowProxyConfigurationsResponse.
|
55
|
+
|
56
|
+
数据总数
|
57
|
+
|
58
|
+
:return: The total_count of this ShowProxyConfigurationsResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._total_count
|
62
|
+
|
63
|
+
@total_count.setter
|
64
|
+
def total_count(self, total_count):
|
65
|
+
"""Sets the total_count of this ShowProxyConfigurationsResponse.
|
66
|
+
|
67
|
+
数据总数
|
68
|
+
|
69
|
+
:param total_count: The total_count of this ShowProxyConfigurationsResponse.
|
70
|
+
:type total_count: str
|
71
|
+
"""
|
72
|
+
self._total_count = total_count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def configurations(self):
|
76
|
+
"""Gets the configurations of this ShowProxyConfigurationsResponse.
|
77
|
+
|
78
|
+
内核可配置的参数列表
|
79
|
+
|
80
|
+
:return: The configurations of this ShowProxyConfigurationsResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
82
|
+
"""
|
83
|
+
return self._configurations
|
84
|
+
|
85
|
+
@configurations.setter
|
86
|
+
def configurations(self, configurations):
|
87
|
+
"""Sets the configurations of this ShowProxyConfigurationsResponse.
|
88
|
+
|
89
|
+
内核可配置的参数列表
|
90
|
+
|
91
|
+
:param configurations: The configurations of this ShowProxyConfigurationsResponse.
|
92
|
+
:type configurations: list[:class:`huaweicloudsdkgaussdb.v3.ProxyConfiguration`]
|
93
|
+
"""
|
94
|
+
self._configurations = configurations
|
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, ShowProxyConfigurationsResponse):
|
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
|
@@ -20,7 +20,7 @@ class ShowProxyIpgroupResponse(SdkResponse):
|
|
20
20
|
openapi_types = {
|
21
21
|
'enable_ip_group': 'bool',
|
22
22
|
'type': 'str',
|
23
|
-
'ip_group': '
|
23
|
+
'ip_group': 'ProxyIpGroupDetail'
|
24
24
|
}
|
25
25
|
|
26
26
|
attribute_map = {
|
@@ -38,8 +38,8 @@ class ShowProxyIpgroupResponse(SdkResponse):
|
|
38
38
|
:type enable_ip_group: bool
|
39
39
|
:param type: 白名单或者黑名单 'white' | 'black'
|
40
40
|
:type type: str
|
41
|
-
:param ip_group:
|
42
|
-
:type ip_group:
|
41
|
+
:param ip_group:
|
42
|
+
:type ip_group: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
43
43
|
"""
|
44
44
|
|
45
45
|
super(ShowProxyIpgroupResponse, self).__init__()
|
@@ -104,10 +104,8 @@ class ShowProxyIpgroupResponse(SdkResponse):
|
|
104
104
|
def ip_group(self):
|
105
105
|
"""Gets the ip_group of this ShowProxyIpgroupResponse.
|
106
106
|
|
107
|
-
白名单或黑名单详细信息
|
108
|
-
|
109
107
|
:return: The ip_group of this ShowProxyIpgroupResponse.
|
110
|
-
:rtype:
|
108
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
111
109
|
"""
|
112
110
|
return self._ip_group
|
113
111
|
|
@@ -115,10 +113,8 @@ class ShowProxyIpgroupResponse(SdkResponse):
|
|
115
113
|
def ip_group(self, ip_group):
|
116
114
|
"""Sets the ip_group of this ShowProxyIpgroupResponse.
|
117
115
|
|
118
|
-
白名单或黑名单详细信息
|
119
|
-
|
120
116
|
:param ip_group: The ip_group of this ShowProxyIpgroupResponse.
|
121
|
-
:type ip_group:
|
117
|
+
:type ip_group: :class:`huaweicloudsdkgaussdb.v3.ProxyIpGroupDetail`
|
122
118
|
"""
|
123
119
|
self._ip_group = ip_group
|
124
120
|
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowRecyclePolicyRequest:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'x_language': 'X-Language'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, x_language=None):
|
28
|
+
"""ShowRecyclePolicyRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param x_language: 语言。
|
33
|
+
:type x_language: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._x_language = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if x_language is not None:
|
42
|
+
self.x_language = x_language
|
43
|
+
|
44
|
+
@property
|
45
|
+
def x_language(self):
|
46
|
+
"""Gets the x_language of this ShowRecyclePolicyRequest.
|
47
|
+
|
48
|
+
语言。
|
49
|
+
|
50
|
+
:return: The x_language of this ShowRecyclePolicyRequest.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._x_language
|
54
|
+
|
55
|
+
@x_language.setter
|
56
|
+
def x_language(self, x_language):
|
57
|
+
"""Sets the x_language of this ShowRecyclePolicyRequest.
|
58
|
+
|
59
|
+
语言。
|
60
|
+
|
61
|
+
:param x_language: The x_language of this ShowRecyclePolicyRequest.
|
62
|
+
:type x_language: str
|
63
|
+
"""
|
64
|
+
self._x_language = x_language
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, ShowRecyclePolicyRequest):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -0,0 +1,112 @@
|
|
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 ShowRecyclePolicyResponse(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
|
+
'recycle_policy': 'RecyclePolicy'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'recycle_policy': 'recycle_policy'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, recycle_policy=None):
|
29
|
+
"""ShowRecyclePolicyResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param recycle_policy:
|
34
|
+
:type recycle_policy: :class:`huaweicloudsdkgaussdb.v3.RecyclePolicy`
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowRecyclePolicyResponse, self).__init__()
|
38
|
+
|
39
|
+
self._recycle_policy = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if recycle_policy is not None:
|
43
|
+
self.recycle_policy = recycle_policy
|
44
|
+
|
45
|
+
@property
|
46
|
+
def recycle_policy(self):
|
47
|
+
"""Gets the recycle_policy of this ShowRecyclePolicyResponse.
|
48
|
+
|
49
|
+
:return: The recycle_policy of this ShowRecyclePolicyResponse.
|
50
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RecyclePolicy`
|
51
|
+
"""
|
52
|
+
return self._recycle_policy
|
53
|
+
|
54
|
+
@recycle_policy.setter
|
55
|
+
def recycle_policy(self, recycle_policy):
|
56
|
+
"""Sets the recycle_policy of this ShowRecyclePolicyResponse.
|
57
|
+
|
58
|
+
:param recycle_policy: The recycle_policy of this ShowRecyclePolicyResponse.
|
59
|
+
:type recycle_policy: :class:`huaweicloudsdkgaussdb.v3.RecyclePolicy`
|
60
|
+
"""
|
61
|
+
self._recycle_policy = recycle_policy
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, ShowRecyclePolicyResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
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 ShowSlowlogSensitiveStatusRequest:
|
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
|
+
"""ShowSlowlogSensitiveStatusRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 语言。
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: 实例ID。
|
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 ShowSlowlogSensitiveStatusRequest.
|
53
|
+
|
54
|
+
语言。
|
55
|
+
|
56
|
+
:return: The x_language of this ShowSlowlogSensitiveStatusRequest.
|
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 ShowSlowlogSensitiveStatusRequest.
|
64
|
+
|
65
|
+
语言。
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowSlowlogSensitiveStatusRequest.
|
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 ShowSlowlogSensitiveStatusRequest.
|
75
|
+
|
76
|
+
实例ID。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowSlowlogSensitiveStatusRequest.
|
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 ShowSlowlogSensitiveStatusRequest.
|
86
|
+
|
87
|
+
实例ID。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowSlowlogSensitiveStatusRequest.
|
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, ShowSlowlogSensitiveStatusRequest):
|
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 ShowSlowlogSensitiveStatusResponse(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
|
+
'open_slow_log_switch': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'open_slow_log_switch': 'open_slow_log_switch'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, open_slow_log_switch=None):
|
29
|
+
"""ShowSlowlogSensitiveStatusResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param open_slow_log_switch: 慢日志开关状态。
|
34
|
+
:type open_slow_log_switch: bool
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowSlowlogSensitiveStatusResponse, self).__init__()
|
38
|
+
|
39
|
+
self._open_slow_log_switch = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if open_slow_log_switch is not None:
|
43
|
+
self.open_slow_log_switch = open_slow_log_switch
|
44
|
+
|
45
|
+
@property
|
46
|
+
def open_slow_log_switch(self):
|
47
|
+
"""Gets the open_slow_log_switch of this ShowSlowlogSensitiveStatusResponse.
|
48
|
+
|
49
|
+
慢日志开关状态。
|
50
|
+
|
51
|
+
:return: The open_slow_log_switch of this ShowSlowlogSensitiveStatusResponse.
|
52
|
+
:rtype: bool
|
53
|
+
"""
|
54
|
+
return self._open_slow_log_switch
|
55
|
+
|
56
|
+
@open_slow_log_switch.setter
|
57
|
+
def open_slow_log_switch(self, open_slow_log_switch):
|
58
|
+
"""Sets the open_slow_log_switch of this ShowSlowlogSensitiveStatusResponse.
|
59
|
+
|
60
|
+
慢日志开关状态。
|
61
|
+
|
62
|
+
:param open_slow_log_switch: The open_slow_log_switch of this ShowSlowlogSensitiveStatusResponse.
|
63
|
+
:type open_slow_log_switch: bool
|
64
|
+
"""
|
65
|
+
self._open_slow_log_switch = open_slow_log_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, ShowSlowlogSensitiveStatusResponse):
|
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
|