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,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,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyAutoExpandPolicyReq:
|
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
|
+
'switch_option': 'bool',
|
21
|
+
'limit_size': 'int',
|
22
|
+
'trigger_available_percent': 'int',
|
23
|
+
'step_percent': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'switch_option': 'switch_option',
|
28
|
+
'limit_size': 'limit_size',
|
29
|
+
'trigger_available_percent': 'trigger_available_percent',
|
30
|
+
'step_percent': 'step_percent'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, switch_option=None, limit_size=None, trigger_available_percent=None, step_percent=None):
|
34
|
+
r"""ModifyAutoExpandPolicyReq
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param switch_option: **参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
|
39
|
+
:type switch_option: bool
|
40
|
+
:param limit_size: **参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
|
41
|
+
:type limit_size: int
|
42
|
+
:param trigger_available_percent: **参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
|
43
|
+
:type trigger_available_percent: int
|
44
|
+
:param step_percent: **参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
|
45
|
+
:type step_percent: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._switch_option = None
|
51
|
+
self._limit_size = None
|
52
|
+
self._trigger_available_percent = None
|
53
|
+
self._step_percent = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if switch_option is not None:
|
57
|
+
self.switch_option = switch_option
|
58
|
+
if limit_size is not None:
|
59
|
+
self.limit_size = limit_size
|
60
|
+
if trigger_available_percent is not None:
|
61
|
+
self.trigger_available_percent = trigger_available_percent
|
62
|
+
if step_percent is not None:
|
63
|
+
self.step_percent = step_percent
|
64
|
+
|
65
|
+
@property
|
66
|
+
def switch_option(self):
|
67
|
+
r"""Gets the switch_option of this ModifyAutoExpandPolicyReq.
|
68
|
+
|
69
|
+
**参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
|
70
|
+
|
71
|
+
:return: The switch_option of this ModifyAutoExpandPolicyReq.
|
72
|
+
:rtype: bool
|
73
|
+
"""
|
74
|
+
return self._switch_option
|
75
|
+
|
76
|
+
@switch_option.setter
|
77
|
+
def switch_option(self, switch_option):
|
78
|
+
r"""Sets the switch_option of this ModifyAutoExpandPolicyReq.
|
79
|
+
|
80
|
+
**参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
|
81
|
+
|
82
|
+
:param switch_option: The switch_option of this ModifyAutoExpandPolicyReq.
|
83
|
+
:type switch_option: bool
|
84
|
+
"""
|
85
|
+
self._switch_option = switch_option
|
86
|
+
|
87
|
+
@property
|
88
|
+
def limit_size(self):
|
89
|
+
r"""Gets the limit_size of this ModifyAutoExpandPolicyReq.
|
90
|
+
|
91
|
+
**参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
|
92
|
+
|
93
|
+
:return: The limit_size of this ModifyAutoExpandPolicyReq.
|
94
|
+
:rtype: int
|
95
|
+
"""
|
96
|
+
return self._limit_size
|
97
|
+
|
98
|
+
@limit_size.setter
|
99
|
+
def limit_size(self, limit_size):
|
100
|
+
r"""Sets the limit_size of this ModifyAutoExpandPolicyReq.
|
101
|
+
|
102
|
+
**参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
|
103
|
+
|
104
|
+
:param limit_size: The limit_size of this ModifyAutoExpandPolicyReq.
|
105
|
+
:type limit_size: int
|
106
|
+
"""
|
107
|
+
self._limit_size = limit_size
|
108
|
+
|
109
|
+
@property
|
110
|
+
def trigger_available_percent(self):
|
111
|
+
r"""Gets the trigger_available_percent of this ModifyAutoExpandPolicyReq.
|
112
|
+
|
113
|
+
**参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
|
114
|
+
|
115
|
+
:return: The trigger_available_percent of this ModifyAutoExpandPolicyReq.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._trigger_available_percent
|
119
|
+
|
120
|
+
@trigger_available_percent.setter
|
121
|
+
def trigger_available_percent(self, trigger_available_percent):
|
122
|
+
r"""Sets the trigger_available_percent of this ModifyAutoExpandPolicyReq.
|
123
|
+
|
124
|
+
**参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
|
125
|
+
|
126
|
+
:param trigger_available_percent: The trigger_available_percent of this ModifyAutoExpandPolicyReq.
|
127
|
+
:type trigger_available_percent: int
|
128
|
+
"""
|
129
|
+
self._trigger_available_percent = trigger_available_percent
|
130
|
+
|
131
|
+
@property
|
132
|
+
def step_percent(self):
|
133
|
+
r"""Gets the step_percent of this ModifyAutoExpandPolicyReq.
|
134
|
+
|
135
|
+
**参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
|
136
|
+
|
137
|
+
:return: The step_percent of this ModifyAutoExpandPolicyReq.
|
138
|
+
:rtype: int
|
139
|
+
"""
|
140
|
+
return self._step_percent
|
141
|
+
|
142
|
+
@step_percent.setter
|
143
|
+
def step_percent(self, step_percent):
|
144
|
+
r"""Sets the step_percent of this ModifyAutoExpandPolicyReq.
|
145
|
+
|
146
|
+
**参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
|
147
|
+
|
148
|
+
:param step_percent: The step_percent of this ModifyAutoExpandPolicyReq.
|
149
|
+
:type step_percent: int
|
150
|
+
"""
|
151
|
+
self._step_percent = step_percent
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ModifyAutoExpandPolicyReq):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|