huaweicloudsdkgaussdbforopengauss 3.1.89__py2.py3-none-any.whl → 3.1.91__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.
Files changed (34) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +25 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +548 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +548 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +25 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/instances_statistics_response_body_instances_statistics.py +142 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +259 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_request.py +115 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +145 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
  30. {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/METADATA +2 -2
  31. {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/RECORD +34 -9
  32. {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/LICENSE +0 -0
  33. {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/WHEEL +0 -0
  34. {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RollUpgradeProgress:
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
+ 'upgraded_dn_group_numbers': 'str',
21
+ 'total_dn_group_numbers': 'str',
22
+ 'not_fully_upgraded_az': 'str',
23
+ 'already_upgraded_az': 'str',
24
+ 'az_description_map': 'dict(str, str)'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'upgraded_dn_group_numbers': 'upgraded_dn_group_numbers',
29
+ 'total_dn_group_numbers': 'total_dn_group_numbers',
30
+ 'not_fully_upgraded_az': 'not_fully_upgraded_az',
31
+ 'already_upgraded_az': 'already_upgraded_az',
32
+ 'az_description_map': 'az_description_map'
33
+ }
34
+
35
+ def __init__(self, upgraded_dn_group_numbers=None, total_dn_group_numbers=None, not_fully_upgraded_az=None, already_upgraded_az=None, az_description_map=None):
36
+ """RollUpgradeProgress
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null
41
+ :type upgraded_dn_group_numbers: str
42
+ :param total_dn_group_numbers: 总分片数,非独立部署返回null
43
+ :type total_dn_group_numbers: str
44
+ :param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null
45
+ :type not_fully_upgraded_az: str
46
+ :param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null
47
+ :type already_upgraded_az: str
48
+ :param az_description_map: az描述键值对Map<String,String>
49
+ :type az_description_map: dict(str, str)
50
+ """
51
+
52
+
53
+
54
+ self._upgraded_dn_group_numbers = None
55
+ self._total_dn_group_numbers = None
56
+ self._not_fully_upgraded_az = None
57
+ self._already_upgraded_az = None
58
+ self._az_description_map = None
59
+ self.discriminator = None
60
+
61
+ if upgraded_dn_group_numbers is not None:
62
+ self.upgraded_dn_group_numbers = upgraded_dn_group_numbers
63
+ if total_dn_group_numbers is not None:
64
+ self.total_dn_group_numbers = total_dn_group_numbers
65
+ if not_fully_upgraded_az is not None:
66
+ self.not_fully_upgraded_az = not_fully_upgraded_az
67
+ if already_upgraded_az is not None:
68
+ self.already_upgraded_az = already_upgraded_az
69
+ if az_description_map is not None:
70
+ self.az_description_map = az_description_map
71
+
72
+ @property
73
+ def upgraded_dn_group_numbers(self):
74
+ """Gets the upgraded_dn_group_numbers of this RollUpgradeProgress.
75
+
76
+ 已升级分片数,非独立部署返回null
77
+
78
+ :return: The upgraded_dn_group_numbers of this RollUpgradeProgress.
79
+ :rtype: str
80
+ """
81
+ return self._upgraded_dn_group_numbers
82
+
83
+ @upgraded_dn_group_numbers.setter
84
+ def upgraded_dn_group_numbers(self, upgraded_dn_group_numbers):
85
+ """Sets the upgraded_dn_group_numbers of this RollUpgradeProgress.
86
+
87
+ 已升级分片数,非独立部署返回null
88
+
89
+ :param upgraded_dn_group_numbers: The upgraded_dn_group_numbers of this RollUpgradeProgress.
90
+ :type upgraded_dn_group_numbers: str
91
+ """
92
+ self._upgraded_dn_group_numbers = upgraded_dn_group_numbers
93
+
94
+ @property
95
+ def total_dn_group_numbers(self):
96
+ """Gets the total_dn_group_numbers of this RollUpgradeProgress.
97
+
98
+ 总分片数,非独立部署返回null
99
+
100
+ :return: The total_dn_group_numbers of this RollUpgradeProgress.
101
+ :rtype: str
102
+ """
103
+ return self._total_dn_group_numbers
104
+
105
+ @total_dn_group_numbers.setter
106
+ def total_dn_group_numbers(self, total_dn_group_numbers):
107
+ """Sets the total_dn_group_numbers of this RollUpgradeProgress.
108
+
109
+ 总分片数,非独立部署返回null
110
+
111
+ :param total_dn_group_numbers: The total_dn_group_numbers of this RollUpgradeProgress.
112
+ :type total_dn_group_numbers: str
113
+ """
114
+ self._total_dn_group_numbers = total_dn_group_numbers
115
+
116
+ @property
117
+ def not_fully_upgraded_az(self):
118
+ """Gets the not_fully_upgraded_az of this RollUpgradeProgress.
119
+
120
+ 未完成升级的az,以“,”隔开,独立部署返回null
121
+
122
+ :return: The not_fully_upgraded_az of this RollUpgradeProgress.
123
+ :rtype: str
124
+ """
125
+ return self._not_fully_upgraded_az
126
+
127
+ @not_fully_upgraded_az.setter
128
+ def not_fully_upgraded_az(self, not_fully_upgraded_az):
129
+ """Sets the not_fully_upgraded_az of this RollUpgradeProgress.
130
+
131
+ 未完成升级的az,以“,”隔开,独立部署返回null
132
+
133
+ :param not_fully_upgraded_az: The not_fully_upgraded_az of this RollUpgradeProgress.
134
+ :type not_fully_upgraded_az: str
135
+ """
136
+ self._not_fully_upgraded_az = not_fully_upgraded_az
137
+
138
+ @property
139
+ def already_upgraded_az(self):
140
+ """Gets the already_upgraded_az of this RollUpgradeProgress.
141
+
142
+ 已升级az,以“,”隔开,独立部署返回null
143
+
144
+ :return: The already_upgraded_az of this RollUpgradeProgress.
145
+ :rtype: str
146
+ """
147
+ return self._already_upgraded_az
148
+
149
+ @already_upgraded_az.setter
150
+ def already_upgraded_az(self, already_upgraded_az):
151
+ """Sets the already_upgraded_az of this RollUpgradeProgress.
152
+
153
+ 已升级az,以“,”隔开,独立部署返回null
154
+
155
+ :param already_upgraded_az: The already_upgraded_az of this RollUpgradeProgress.
156
+ :type already_upgraded_az: str
157
+ """
158
+ self._already_upgraded_az = already_upgraded_az
159
+
160
+ @property
161
+ def az_description_map(self):
162
+ """Gets the az_description_map of this RollUpgradeProgress.
163
+
164
+ az描述键值对Map<String,String>
165
+
166
+ :return: The az_description_map of this RollUpgradeProgress.
167
+ :rtype: dict(str, str)
168
+ """
169
+ return self._az_description_map
170
+
171
+ @az_description_map.setter
172
+ def az_description_map(self, az_description_map):
173
+ """Sets the az_description_map of this RollUpgradeProgress.
174
+
175
+ az描述键值对Map<String,String>
176
+
177
+ :param az_description_map: The az_description_map of this RollUpgradeProgress.
178
+ :type az_description_map: dict(str, str)
179
+ """
180
+ self._az_description_map = az_description_map
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, RollUpgradeProgress):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ 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 SearchAutoEnlargePolicyRequest:
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
+ """SearchAutoEnlargePolicyRequest
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 SearchAutoEnlargePolicyRequest.
53
+
54
+ 语言
55
+
56
+ :return: The x_language of this SearchAutoEnlargePolicyRequest.
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 SearchAutoEnlargePolicyRequest.
64
+
65
+ 语言
66
+
67
+ :param x_language: The x_language of this SearchAutoEnlargePolicyRequest.
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 SearchAutoEnlargePolicyRequest.
75
+
76
+ 实例ID。
77
+
78
+ :return: The instance_id of this SearchAutoEnlargePolicyRequest.
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 SearchAutoEnlargePolicyRequest.
86
+
87
+ 实例ID。
88
+
89
+ :param instance_id: The instance_id of this SearchAutoEnlargePolicyRequest.
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, SearchAutoEnlargePolicyRequest):
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,261 @@
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 SearchAutoEnlargePolicyResponse(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_volume_size': 'int',
23
+ 'min_volume_size': 'int',
24
+ 'max_volume_size': 'int',
25
+ 'trigger_available_percent': 'int',
26
+ 'percents': 'list[int]'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'switch_option': 'switch_option',
31
+ 'limit_volume_size': 'limit_volume_size',
32
+ 'min_volume_size': 'min_volume_size',
33
+ 'max_volume_size': 'max_volume_size',
34
+ 'trigger_available_percent': 'trigger_available_percent',
35
+ 'percents': 'percents'
36
+ }
37
+
38
+ def __init__(self, switch_option=None, limit_volume_size=None, min_volume_size=None, max_volume_size=None, trigger_available_percent=None, percents=None):
39
+ """SearchAutoEnlargePolicyResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param switch_option: 磁盘自动扩容开关。
44
+ :type switch_option: bool
45
+ :param limit_volume_size: 存储自动扩容上限。
46
+ :type limit_volume_size: int
47
+ :param min_volume_size: 最小扩容磁盘容量。
48
+ :type min_volume_size: int
49
+ :param max_volume_size: 最大扩容磁盘容量。
50
+ :type max_volume_size: int
51
+ :param trigger_available_percent: 可用存储空间率。
52
+ :type trigger_available_percent: int
53
+ :param percents: 空间率集合。
54
+ :type percents: list[int]
55
+ """
56
+
57
+ super(SearchAutoEnlargePolicyResponse, self).__init__()
58
+
59
+ self._switch_option = None
60
+ self._limit_volume_size = None
61
+ self._min_volume_size = None
62
+ self._max_volume_size = None
63
+ self._trigger_available_percent = None
64
+ self._percents = None
65
+ self.discriminator = None
66
+
67
+ if switch_option is not None:
68
+ self.switch_option = switch_option
69
+ if limit_volume_size is not None:
70
+ self.limit_volume_size = limit_volume_size
71
+ if min_volume_size is not None:
72
+ self.min_volume_size = min_volume_size
73
+ if max_volume_size is not None:
74
+ self.max_volume_size = max_volume_size
75
+ if trigger_available_percent is not None:
76
+ self.trigger_available_percent = trigger_available_percent
77
+ if percents is not None:
78
+ self.percents = percents
79
+
80
+ @property
81
+ def switch_option(self):
82
+ """Gets the switch_option of this SearchAutoEnlargePolicyResponse.
83
+
84
+ 磁盘自动扩容开关。
85
+
86
+ :return: The switch_option of this SearchAutoEnlargePolicyResponse.
87
+ :rtype: bool
88
+ """
89
+ return self._switch_option
90
+
91
+ @switch_option.setter
92
+ def switch_option(self, switch_option):
93
+ """Sets the switch_option of this SearchAutoEnlargePolicyResponse.
94
+
95
+ 磁盘自动扩容开关。
96
+
97
+ :param switch_option: The switch_option of this SearchAutoEnlargePolicyResponse.
98
+ :type switch_option: bool
99
+ """
100
+ self._switch_option = switch_option
101
+
102
+ @property
103
+ def limit_volume_size(self):
104
+ """Gets the limit_volume_size of this SearchAutoEnlargePolicyResponse.
105
+
106
+ 存储自动扩容上限。
107
+
108
+ :return: The limit_volume_size of this SearchAutoEnlargePolicyResponse.
109
+ :rtype: int
110
+ """
111
+ return self._limit_volume_size
112
+
113
+ @limit_volume_size.setter
114
+ def limit_volume_size(self, limit_volume_size):
115
+ """Sets the limit_volume_size of this SearchAutoEnlargePolicyResponse.
116
+
117
+ 存储自动扩容上限。
118
+
119
+ :param limit_volume_size: The limit_volume_size of this SearchAutoEnlargePolicyResponse.
120
+ :type limit_volume_size: int
121
+ """
122
+ self._limit_volume_size = limit_volume_size
123
+
124
+ @property
125
+ def min_volume_size(self):
126
+ """Gets the min_volume_size of this SearchAutoEnlargePolicyResponse.
127
+
128
+ 最小扩容磁盘容量。
129
+
130
+ :return: The min_volume_size of this SearchAutoEnlargePolicyResponse.
131
+ :rtype: int
132
+ """
133
+ return self._min_volume_size
134
+
135
+ @min_volume_size.setter
136
+ def min_volume_size(self, min_volume_size):
137
+ """Sets the min_volume_size of this SearchAutoEnlargePolicyResponse.
138
+
139
+ 最小扩容磁盘容量。
140
+
141
+ :param min_volume_size: The min_volume_size of this SearchAutoEnlargePolicyResponse.
142
+ :type min_volume_size: int
143
+ """
144
+ self._min_volume_size = min_volume_size
145
+
146
+ @property
147
+ def max_volume_size(self):
148
+ """Gets the max_volume_size of this SearchAutoEnlargePolicyResponse.
149
+
150
+ 最大扩容磁盘容量。
151
+
152
+ :return: The max_volume_size of this SearchAutoEnlargePolicyResponse.
153
+ :rtype: int
154
+ """
155
+ return self._max_volume_size
156
+
157
+ @max_volume_size.setter
158
+ def max_volume_size(self, max_volume_size):
159
+ """Sets the max_volume_size of this SearchAutoEnlargePolicyResponse.
160
+
161
+ 最大扩容磁盘容量。
162
+
163
+ :param max_volume_size: The max_volume_size of this SearchAutoEnlargePolicyResponse.
164
+ :type max_volume_size: int
165
+ """
166
+ self._max_volume_size = max_volume_size
167
+
168
+ @property
169
+ def trigger_available_percent(self):
170
+ """Gets the trigger_available_percent of this SearchAutoEnlargePolicyResponse.
171
+
172
+ 可用存储空间率。
173
+
174
+ :return: The trigger_available_percent of this SearchAutoEnlargePolicyResponse.
175
+ :rtype: int
176
+ """
177
+ return self._trigger_available_percent
178
+
179
+ @trigger_available_percent.setter
180
+ def trigger_available_percent(self, trigger_available_percent):
181
+ """Sets the trigger_available_percent of this SearchAutoEnlargePolicyResponse.
182
+
183
+ 可用存储空间率。
184
+
185
+ :param trigger_available_percent: The trigger_available_percent of this SearchAutoEnlargePolicyResponse.
186
+ :type trigger_available_percent: int
187
+ """
188
+ self._trigger_available_percent = trigger_available_percent
189
+
190
+ @property
191
+ def percents(self):
192
+ """Gets the percents of this SearchAutoEnlargePolicyResponse.
193
+
194
+ 空间率集合。
195
+
196
+ :return: The percents of this SearchAutoEnlargePolicyResponse.
197
+ :rtype: list[int]
198
+ """
199
+ return self._percents
200
+
201
+ @percents.setter
202
+ def percents(self, percents):
203
+ """Sets the percents of this SearchAutoEnlargePolicyResponse.
204
+
205
+ 空间率集合。
206
+
207
+ :param percents: The percents of this SearchAutoEnlargePolicyResponse.
208
+ :type percents: list[int]
209
+ """
210
+ self._percents = percents
211
+
212
+ def to_dict(self):
213
+ """Returns the model properties as a dict"""
214
+ result = {}
215
+
216
+ for attr, _ in six.iteritems(self.openapi_types):
217
+ value = getattr(self, attr)
218
+ if isinstance(value, list):
219
+ result[attr] = list(map(
220
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221
+ value
222
+ ))
223
+ elif hasattr(value, "to_dict"):
224
+ result[attr] = value.to_dict()
225
+ elif isinstance(value, dict):
226
+ result[attr] = dict(map(
227
+ lambda item: (item[0], item[1].to_dict())
228
+ if hasattr(item[1], "to_dict") else item,
229
+ value.items()
230
+ ))
231
+ else:
232
+ if attr in self.sensitive_list:
233
+ result[attr] = "****"
234
+ else:
235
+ result[attr] = value
236
+
237
+ return result
238
+
239
+ def to_str(self):
240
+ """Returns the string representation of the model"""
241
+ import simplejson as json
242
+ if six.PY2:
243
+ import sys
244
+ reload(sys)
245
+ sys.setdefaultencoding("utf-8")
246
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
247
+
248
+ def __repr__(self):
249
+ """For `print`"""
250
+ return self.to_str()
251
+
252
+ def __eq__(self, other):
253
+ """Returns true if both objects are equal"""
254
+ if not isinstance(other, SearchAutoEnlargePolicyResponse):
255
+ return False
256
+
257
+ return self.__dict__ == other.__dict__
258
+
259
+ def __ne__(self, other):
260
+ """Returns true if both objects are not equal"""
261
+ return not self == other