huaweicloudsdkgaussdb 3.1.144__py2.py3-none-any.whl → 3.1.146__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 +13 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +743 -388
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +743 -388
- huaweicloudsdkgaussdb/v3/model/__init__.py +13 -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/modify_auto_expand_policy_req.py +202 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_data_ip_request.py +3 -3
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_request.py +257 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/taurus_db_process_info.py +310 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/RECORD +23 -10
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.144.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyAutoExpandPolicyRequest:
|
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
|
+
'body': 'ModifyAutoExpandPolicyReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, instance_id=None, body=None):
|
32
|
+
r"""ModifyAutoExpandPolicyRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
37
|
+
:type x_language: str
|
38
|
+
:param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the ModifyAutoExpandPolicyRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.instance_id = instance_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
r"""Gets the x_language of this ModifyAutoExpandPolicyRequest.
|
60
|
+
|
61
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
62
|
+
|
63
|
+
:return: The x_language of this ModifyAutoExpandPolicyRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
r"""Sets the x_language of this ModifyAutoExpandPolicyRequest.
|
71
|
+
|
72
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this ModifyAutoExpandPolicyRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def instance_id(self):
|
81
|
+
r"""Gets the instance_id of this ModifyAutoExpandPolicyRequest.
|
82
|
+
|
83
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
84
|
+
|
85
|
+
:return: The instance_id of this ModifyAutoExpandPolicyRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._instance_id
|
89
|
+
|
90
|
+
@instance_id.setter
|
91
|
+
def instance_id(self, instance_id):
|
92
|
+
r"""Sets the instance_id of this ModifyAutoExpandPolicyRequest.
|
93
|
+
|
94
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
95
|
+
|
96
|
+
:param instance_id: The instance_id of this ModifyAutoExpandPolicyRequest.
|
97
|
+
:type instance_id: str
|
98
|
+
"""
|
99
|
+
self._instance_id = instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
r"""Gets the body of this ModifyAutoExpandPolicyRequest.
|
104
|
+
|
105
|
+
:return: The body of this ModifyAutoExpandPolicyRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
r"""Sets the body of this ModifyAutoExpandPolicyRequest.
|
113
|
+
|
114
|
+
:param body: The body of this ModifyAutoExpandPolicyRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, ModifyAutoExpandPolicyRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
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 ModifyAutoExpandPolicyResponse(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
|
+
'result': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'result': 'result'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, result=None):
|
29
|
+
r"""ModifyAutoExpandPolicyResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param result: 修改结果。
|
34
|
+
:type result: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ModifyAutoExpandPolicyResponse, self).__init__()
|
38
|
+
|
39
|
+
self._result = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if result is not None:
|
43
|
+
self.result = result
|
44
|
+
|
45
|
+
@property
|
46
|
+
def result(self):
|
47
|
+
r"""Gets the result of this ModifyAutoExpandPolicyResponse.
|
48
|
+
|
49
|
+
修改结果。
|
50
|
+
|
51
|
+
:return: The result of this ModifyAutoExpandPolicyResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._result
|
55
|
+
|
56
|
+
@result.setter
|
57
|
+
def result(self, result):
|
58
|
+
r"""Sets the result of this ModifyAutoExpandPolicyResponse.
|
59
|
+
|
60
|
+
修改结果。
|
61
|
+
|
62
|
+
:param result: The result of this ModifyAutoExpandPolicyResponse.
|
63
|
+
:type result: str
|
64
|
+
"""
|
65
|
+
self._result = result
|
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, ModifyAutoExpandPolicyResponse):
|
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
|
@@ -29,7 +29,7 @@ class ModifyNodeDataIpRequest:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param internal_ip: **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
32
|
+
:param internal_ip: **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
33
33
|
:type internal_ip: str
|
34
34
|
"""
|
35
35
|
|
@@ -44,7 +44,7 @@ class ModifyNodeDataIpRequest:
|
|
44
44
|
def internal_ip(self):
|
45
45
|
r"""Gets the internal_ip of this ModifyNodeDataIpRequest.
|
46
46
|
|
47
|
-
**参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
47
|
+
**参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
48
48
|
|
49
49
|
:return: The internal_ip of this ModifyNodeDataIpRequest.
|
50
50
|
:rtype: str
|
@@ -55,7 +55,7 @@ class ModifyNodeDataIpRequest:
|
|
55
55
|
def internal_ip(self, internal_ip):
|
56
56
|
r"""Sets the internal_ip of this ModifyNodeDataIpRequest.
|
57
57
|
|
58
|
-
**参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
58
|
+
**参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
|
59
59
|
|
60
60
|
:param internal_ip: The internal_ip of this ModifyNodeDataIpRequest.
|
61
61
|
:type internal_ip: str
|
@@ -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 ShowAutoExpandPolicyRequest:
|
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
|
+
r"""ShowAutoExpandPolicyRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
35
|
+
:type x_language: str
|
36
|
+
:param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
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
|
+
r"""Gets the x_language of this ShowAutoExpandPolicyRequest.
|
53
|
+
|
54
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
55
|
+
|
56
|
+
:return: The x_language of this ShowAutoExpandPolicyRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._x_language
|
60
|
+
|
61
|
+
@x_language.setter
|
62
|
+
def x_language(self, x_language):
|
63
|
+
r"""Sets the x_language of this ShowAutoExpandPolicyRequest.
|
64
|
+
|
65
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
|
66
|
+
|
67
|
+
:param x_language: The x_language of this ShowAutoExpandPolicyRequest.
|
68
|
+
:type x_language: str
|
69
|
+
"""
|
70
|
+
self._x_language = x_language
|
71
|
+
|
72
|
+
@property
|
73
|
+
def instance_id(self):
|
74
|
+
r"""Gets the instance_id of this ShowAutoExpandPolicyRequest.
|
75
|
+
|
76
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
77
|
+
|
78
|
+
:return: The instance_id of this ShowAutoExpandPolicyRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._instance_id
|
82
|
+
|
83
|
+
@instance_id.setter
|
84
|
+
def instance_id(self, instance_id):
|
85
|
+
r"""Sets the instance_id of this ShowAutoExpandPolicyRequest.
|
86
|
+
|
87
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
88
|
+
|
89
|
+
:param instance_id: The instance_id of this ShowAutoExpandPolicyRequest.
|
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, ShowAutoExpandPolicyRequest):
|
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,203 @@
|
|
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 ShowAutoExpandPolicyResponse(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
|
+
'switch_option': 'bool',
|
22
|
+
'limit_size': 'int',
|
23
|
+
'trigger_available_percent': 'int',
|
24
|
+
'step_percent': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'switch_option': 'switch_option',
|
29
|
+
'limit_size': 'limit_size',
|
30
|
+
'trigger_available_percent': 'trigger_available_percent',
|
31
|
+
'step_percent': 'step_percent'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, switch_option=None, limit_size=None, trigger_available_percent=None, step_percent=None):
|
35
|
+
r"""ShowAutoExpandPolicyResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param switch_option: **参数解释**: 自动扩容策略开关。
|
40
|
+
:type switch_option: bool
|
41
|
+
:param limit_size: **参数解释**: 存储自动扩容上限,单位GB。
|
42
|
+
:type limit_size: int
|
43
|
+
:param trigger_available_percent: **参数解释**: 可用存储空间率。
|
44
|
+
:type trigger_available_percent: int
|
45
|
+
:param step_percent: **参数解释**: 扩容步长百分比。
|
46
|
+
:type step_percent: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowAutoExpandPolicyResponse, self).__init__()
|
50
|
+
|
51
|
+
self._switch_option = None
|
52
|
+
self._limit_size = None
|
53
|
+
self._trigger_available_percent = None
|
54
|
+
self._step_percent = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if switch_option is not None:
|
58
|
+
self.switch_option = switch_option
|
59
|
+
if limit_size is not None:
|
60
|
+
self.limit_size = limit_size
|
61
|
+
if trigger_available_percent is not None:
|
62
|
+
self.trigger_available_percent = trigger_available_percent
|
63
|
+
if step_percent is not None:
|
64
|
+
self.step_percent = step_percent
|
65
|
+
|
66
|
+
@property
|
67
|
+
def switch_option(self):
|
68
|
+
r"""Gets the switch_option of this ShowAutoExpandPolicyResponse.
|
69
|
+
|
70
|
+
**参数解释**: 自动扩容策略开关。
|
71
|
+
|
72
|
+
:return: The switch_option of this ShowAutoExpandPolicyResponse.
|
73
|
+
:rtype: bool
|
74
|
+
"""
|
75
|
+
return self._switch_option
|
76
|
+
|
77
|
+
@switch_option.setter
|
78
|
+
def switch_option(self, switch_option):
|
79
|
+
r"""Sets the switch_option of this ShowAutoExpandPolicyResponse.
|
80
|
+
|
81
|
+
**参数解释**: 自动扩容策略开关。
|
82
|
+
|
83
|
+
:param switch_option: The switch_option of this ShowAutoExpandPolicyResponse.
|
84
|
+
:type switch_option: bool
|
85
|
+
"""
|
86
|
+
self._switch_option = switch_option
|
87
|
+
|
88
|
+
@property
|
89
|
+
def limit_size(self):
|
90
|
+
r"""Gets the limit_size of this ShowAutoExpandPolicyResponse.
|
91
|
+
|
92
|
+
**参数解释**: 存储自动扩容上限,单位GB。
|
93
|
+
|
94
|
+
:return: The limit_size of this ShowAutoExpandPolicyResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._limit_size
|
98
|
+
|
99
|
+
@limit_size.setter
|
100
|
+
def limit_size(self, limit_size):
|
101
|
+
r"""Sets the limit_size of this ShowAutoExpandPolicyResponse.
|
102
|
+
|
103
|
+
**参数解释**: 存储自动扩容上限,单位GB。
|
104
|
+
|
105
|
+
:param limit_size: The limit_size of this ShowAutoExpandPolicyResponse.
|
106
|
+
:type limit_size: int
|
107
|
+
"""
|
108
|
+
self._limit_size = limit_size
|
109
|
+
|
110
|
+
@property
|
111
|
+
def trigger_available_percent(self):
|
112
|
+
r"""Gets the trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
113
|
+
|
114
|
+
**参数解释**: 可用存储空间率。
|
115
|
+
|
116
|
+
:return: The trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._trigger_available_percent
|
120
|
+
|
121
|
+
@trigger_available_percent.setter
|
122
|
+
def trigger_available_percent(self, trigger_available_percent):
|
123
|
+
r"""Sets the trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
124
|
+
|
125
|
+
**参数解释**: 可用存储空间率。
|
126
|
+
|
127
|
+
:param trigger_available_percent: The trigger_available_percent of this ShowAutoExpandPolicyResponse.
|
128
|
+
:type trigger_available_percent: int
|
129
|
+
"""
|
130
|
+
self._trigger_available_percent = trigger_available_percent
|
131
|
+
|
132
|
+
@property
|
133
|
+
def step_percent(self):
|
134
|
+
r"""Gets the step_percent of this ShowAutoExpandPolicyResponse.
|
135
|
+
|
136
|
+
**参数解释**: 扩容步长百分比。
|
137
|
+
|
138
|
+
:return: The step_percent of this ShowAutoExpandPolicyResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._step_percent
|
142
|
+
|
143
|
+
@step_percent.setter
|
144
|
+
def step_percent(self, step_percent):
|
145
|
+
r"""Sets the step_percent of this ShowAutoExpandPolicyResponse.
|
146
|
+
|
147
|
+
**参数解释**: 扩容步长百分比。
|
148
|
+
|
149
|
+
:param step_percent: The step_percent of this ShowAutoExpandPolicyResponse.
|
150
|
+
:type step_percent: int
|
151
|
+
"""
|
152
|
+
self._step_percent = step_percent
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ShowAutoExpandPolicyResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|