huaweicloudsdkgaussdb 3.1.123__py2.py3-none-any.whl → 3.1.125__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 (22) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +12 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +274 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +274 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +12 -0
  5. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_item.py +289 -0
  6. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_request.py +171 -0
  7. huaweicloudsdkgaussdb/v3/model/download_slow_log_file_response.py +145 -0
  8. huaweicloudsdkgaussdb/v3/model/operate_multi_tenant_req.py +114 -0
  9. huaweicloudsdkgaussdb/v3/model/show_multi_tenant_request.py +143 -0
  10. huaweicloudsdkgaussdb/v3/model/show_multi_tenant_response.py +116 -0
  11. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_item.py +405 -0
  12. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request.py +168 -0
  13. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request_body.py +344 -0
  14. huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_response.py +145 -0
  15. huaweicloudsdkgaussdb/v3/model/update_multi_tenant_request.py +168 -0
  16. huaweicloudsdkgaussdb/v3/model/update_multi_tenant_response.py +116 -0
  17. huaweicloudsdkgaussdb/v3/region/gaussdb_region.py +9 -0
  18. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/METADATA +2 -2
  19. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/RECORD +22 -10
  20. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/WHEEL +1 -1
  21. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/top_level.txt +0 -0
@@ -210,6 +210,9 @@ from huaweicloudsdkgaussdb.v3.model.delete_task_record_response import DeleteTas
210
210
  from huaweicloudsdkgaussdb.v3.model.describe_backup_encrypt_status_request import DescribeBackupEncryptStatusRequest
211
211
  from huaweicloudsdkgaussdb.v3.model.describe_backup_encrypt_status_response import DescribeBackupEncryptStatusResponse
212
212
  from huaweicloudsdkgaussdb.v3.model.diagnosis_info import DiagnosisInfo
213
+ from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_item import DownloadSlowLogFileItem
214
+ from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_request import DownloadSlowLogFileRequest
215
+ from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_response import DownloadSlowLogFileResponse
213
216
  from huaweicloudsdkgaussdb.v3.model.enlarge_proxy_request import EnlargeProxyRequest
214
217
  from huaweicloudsdkgaussdb.v3.model.enterprise_project_item import EnterpriseProjectItem
215
218
  from huaweicloudsdkgaussdb.v3.model.expand_gauss_my_sql_instance_volume_request import ExpandGaussMySqlInstanceVolumeRequest
@@ -394,6 +397,7 @@ from huaweicloudsdkgaussdb.v3.model.node_sql_filter_rule_pattern import NodeSqlF
394
397
  from huaweicloudsdkgaussdb.v3.model.nodes_weight import NodesWeight
395
398
  from huaweicloudsdkgaussdb.v3.model.open_mysql_proxy_request_body import OpenMysqlProxyRequestBody
396
399
  from huaweicloudsdkgaussdb.v3.model.operate_audit_log_request_v3_body import OperateAuditLogRequestV3Body
400
+ from huaweicloudsdkgaussdb.v3.model.operate_multi_tenant_req import OperateMultiTenantReq
397
401
  from huaweicloudsdkgaussdb.v3.model.operate_sql_filter_control_req import OperateSqlFilterControlReq
398
402
  from huaweicloudsdkgaussdb.v3.model.operate_sql_filter_rule_req import OperateSqlFilterRuleReq
399
403
  from huaweicloudsdkgaussdb.v3.model.param_group import ParamGroup
@@ -530,6 +534,8 @@ from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_pe
530
534
  from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_response import ShowIntelligentDiagnosisInstanceInfosPerMetricResponse
531
535
  from huaweicloudsdkgaussdb.v3.model.show_lts_configs_request import ShowLtsConfigsRequest
532
536
  from huaweicloudsdkgaussdb.v3.model.show_lts_configs_response import ShowLtsConfigsResponse
537
+ from huaweicloudsdkgaussdb.v3.model.show_multi_tenant_request import ShowMultiTenantRequest
538
+ from huaweicloudsdkgaussdb.v3.model.show_multi_tenant_response import ShowMultiTenantResponse
533
539
  from huaweicloudsdkgaussdb.v3.model.show_proxy_configurations_request import ShowProxyConfigurationsRequest
534
540
  from huaweicloudsdkgaussdb.v3.model.show_proxy_configurations_response import ShowProxyConfigurationsResponse
535
541
  from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_request import ShowProxyIpgroupRequest
@@ -540,6 +546,10 @@ from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_request import ShowRecyc
540
546
  from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
541
547
  from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
542
548
  from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
549
+ from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_item import ShowSlowLogStatisticsItem
550
+ from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_request import ShowSlowLogStatisticsRequest
551
+ from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_request_body import ShowSlowLogStatisticsRequestBody
552
+ from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_response import ShowSlowLogStatisticsResponse
543
553
  from huaweicloudsdkgaussdb.v3.model.show_slowlog_sensitive_status_request import ShowSlowlogSensitiveStatusRequest
544
554
  from huaweicloudsdkgaussdb.v3.model.show_slowlog_sensitive_status_response import ShowSlowlogSensitiveStatusResponse
545
555
  from huaweicloudsdkgaussdb.v3.model.show_sql_filter_control_request import ShowSqlFilterControlRequest
@@ -664,6 +674,8 @@ from huaweicloudsdkgaussdb.v3.model.update_instance_configurations_request_body
664
674
  from huaweicloudsdkgaussdb.v3.model.update_instance_configurations_response import UpdateInstanceConfigurationsResponse
665
675
  from huaweicloudsdkgaussdb.v3.model.update_instance_monitor_request import UpdateInstanceMonitorRequest
666
676
  from huaweicloudsdkgaussdb.v3.model.update_instance_monitor_response import UpdateInstanceMonitorResponse
677
+ from huaweicloudsdkgaussdb.v3.model.update_multi_tenant_request import UpdateMultiTenantRequest
678
+ from huaweicloudsdkgaussdb.v3.model.update_multi_tenant_response import UpdateMultiTenantResponse
667
679
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request import UpdateNewNodeAutoAddSwitchRequest
668
680
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request_body import UpdateNewNodeAutoAddSwitchRequestBody
669
681
  from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_response import UpdateNewNodeAutoAddSwitchResponse
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadSlowLogFileItem:
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
+ 'job_id': 'str',
21
+ 'file_name': 'str',
22
+ 'status': 'str',
23
+ 'file_size': 'str',
24
+ 'file_link': 'str',
25
+ 'create_at': 'int',
26
+ 'updated_at': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'job_id': 'job_id',
31
+ 'file_name': 'file_name',
32
+ 'status': 'status',
33
+ 'file_size': 'file_size',
34
+ 'file_link': 'file_link',
35
+ 'create_at': 'create_at',
36
+ 'updated_at': 'updated_at'
37
+ }
38
+
39
+ def __init__(self, job_id=None, file_name=None, status=None, file_size=None, file_link=None, create_at=None, updated_at=None):
40
+ """DownloadSlowLogFileItem
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param job_id: 任务ID。
45
+ :type job_id: str
46
+ :param file_name: 文件名。
47
+ :type file_name: str
48
+ :param status: 状态。 取值范围: - SUCCESS:表示下载链接已经生成完成。 - EXPORTING:表示下载链接正在生成中。 - FAILED: 表示下载链接生成失败。
49
+ :type status: str
50
+ :param file_size: 文件大小,单位:KB。
51
+ :type file_size: str
52
+ :param file_link: 下载链接。链接有效时间为5分钟。
53
+ :type file_link: str
54
+ :param create_at: 创建时间。
55
+ :type create_at: int
56
+ :param updated_at: 更新时间。
57
+ :type updated_at: int
58
+ """
59
+
60
+
61
+
62
+ self._job_id = None
63
+ self._file_name = None
64
+ self._status = None
65
+ self._file_size = None
66
+ self._file_link = None
67
+ self._create_at = None
68
+ self._updated_at = None
69
+ self.discriminator = None
70
+
71
+ if job_id is not None:
72
+ self.job_id = job_id
73
+ if file_name is not None:
74
+ self.file_name = file_name
75
+ if status is not None:
76
+ self.status = status
77
+ if file_size is not None:
78
+ self.file_size = file_size
79
+ if file_link is not None:
80
+ self.file_link = file_link
81
+ if create_at is not None:
82
+ self.create_at = create_at
83
+ if updated_at is not None:
84
+ self.updated_at = updated_at
85
+
86
+ @property
87
+ def job_id(self):
88
+ """Gets the job_id of this DownloadSlowLogFileItem.
89
+
90
+ 任务ID。
91
+
92
+ :return: The job_id of this DownloadSlowLogFileItem.
93
+ :rtype: str
94
+ """
95
+ return self._job_id
96
+
97
+ @job_id.setter
98
+ def job_id(self, job_id):
99
+ """Sets the job_id of this DownloadSlowLogFileItem.
100
+
101
+ 任务ID。
102
+
103
+ :param job_id: The job_id of this DownloadSlowLogFileItem.
104
+ :type job_id: str
105
+ """
106
+ self._job_id = job_id
107
+
108
+ @property
109
+ def file_name(self):
110
+ """Gets the file_name of this DownloadSlowLogFileItem.
111
+
112
+ 文件名。
113
+
114
+ :return: The file_name of this DownloadSlowLogFileItem.
115
+ :rtype: str
116
+ """
117
+ return self._file_name
118
+
119
+ @file_name.setter
120
+ def file_name(self, file_name):
121
+ """Sets the file_name of this DownloadSlowLogFileItem.
122
+
123
+ 文件名。
124
+
125
+ :param file_name: The file_name of this DownloadSlowLogFileItem.
126
+ :type file_name: str
127
+ """
128
+ self._file_name = file_name
129
+
130
+ @property
131
+ def status(self):
132
+ """Gets the status of this DownloadSlowLogFileItem.
133
+
134
+ 状态。 取值范围: - SUCCESS:表示下载链接已经生成完成。 - EXPORTING:表示下载链接正在生成中。 - FAILED: 表示下载链接生成失败。
135
+
136
+ :return: The status of this DownloadSlowLogFileItem.
137
+ :rtype: str
138
+ """
139
+ return self._status
140
+
141
+ @status.setter
142
+ def status(self, status):
143
+ """Sets the status of this DownloadSlowLogFileItem.
144
+
145
+ 状态。 取值范围: - SUCCESS:表示下载链接已经生成完成。 - EXPORTING:表示下载链接正在生成中。 - FAILED: 表示下载链接生成失败。
146
+
147
+ :param status: The status of this DownloadSlowLogFileItem.
148
+ :type status: str
149
+ """
150
+ self._status = status
151
+
152
+ @property
153
+ def file_size(self):
154
+ """Gets the file_size of this DownloadSlowLogFileItem.
155
+
156
+ 文件大小,单位:KB。
157
+
158
+ :return: The file_size of this DownloadSlowLogFileItem.
159
+ :rtype: str
160
+ """
161
+ return self._file_size
162
+
163
+ @file_size.setter
164
+ def file_size(self, file_size):
165
+ """Sets the file_size of this DownloadSlowLogFileItem.
166
+
167
+ 文件大小,单位:KB。
168
+
169
+ :param file_size: The file_size of this DownloadSlowLogFileItem.
170
+ :type file_size: str
171
+ """
172
+ self._file_size = file_size
173
+
174
+ @property
175
+ def file_link(self):
176
+ """Gets the file_link of this DownloadSlowLogFileItem.
177
+
178
+ 下载链接。链接有效时间为5分钟。
179
+
180
+ :return: The file_link of this DownloadSlowLogFileItem.
181
+ :rtype: str
182
+ """
183
+ return self._file_link
184
+
185
+ @file_link.setter
186
+ def file_link(self, file_link):
187
+ """Sets the file_link of this DownloadSlowLogFileItem.
188
+
189
+ 下载链接。链接有效时间为5分钟。
190
+
191
+ :param file_link: The file_link of this DownloadSlowLogFileItem.
192
+ :type file_link: str
193
+ """
194
+ self._file_link = file_link
195
+
196
+ @property
197
+ def create_at(self):
198
+ """Gets the create_at of this DownloadSlowLogFileItem.
199
+
200
+ 创建时间。
201
+
202
+ :return: The create_at of this DownloadSlowLogFileItem.
203
+ :rtype: int
204
+ """
205
+ return self._create_at
206
+
207
+ @create_at.setter
208
+ def create_at(self, create_at):
209
+ """Sets the create_at of this DownloadSlowLogFileItem.
210
+
211
+ 创建时间。
212
+
213
+ :param create_at: The create_at of this DownloadSlowLogFileItem.
214
+ :type create_at: int
215
+ """
216
+ self._create_at = create_at
217
+
218
+ @property
219
+ def updated_at(self):
220
+ """Gets the updated_at of this DownloadSlowLogFileItem.
221
+
222
+ 更新时间。
223
+
224
+ :return: The updated_at of this DownloadSlowLogFileItem.
225
+ :rtype: int
226
+ """
227
+ return self._updated_at
228
+
229
+ @updated_at.setter
230
+ def updated_at(self, updated_at):
231
+ """Sets the updated_at of this DownloadSlowLogFileItem.
232
+
233
+ 更新时间。
234
+
235
+ :param updated_at: The updated_at of this DownloadSlowLogFileItem.
236
+ :type updated_at: int
237
+ """
238
+ self._updated_at = updated_at
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, DownloadSlowLogFileItem):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadSlowLogFileRequest:
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
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'node_id': 'node_id'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, node_id=None):
32
+ """DownloadSlowLogFileRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
37
+ :type x_language: str
38
+ :param instance_id: 实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param node_id: 节点ID。
41
+ :type node_id: str
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._node_id = 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
+ self.node_id = node_id
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this DownloadSlowLogFileRequest.
59
+
60
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
61
+
62
+ :return: The x_language of this DownloadSlowLogFileRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this DownloadSlowLogFileRequest.
70
+
71
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
72
+
73
+ :param x_language: The x_language of this DownloadSlowLogFileRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this DownloadSlowLogFileRequest.
81
+
82
+ 实例ID,严格匹配UUID规则。
83
+
84
+ :return: The instance_id of this DownloadSlowLogFileRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this DownloadSlowLogFileRequest.
92
+
93
+ 实例ID,严格匹配UUID规则。
94
+
95
+ :param instance_id: The instance_id of this DownloadSlowLogFileRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def node_id(self):
102
+ """Gets the node_id of this DownloadSlowLogFileRequest.
103
+
104
+ 节点ID。
105
+
106
+ :return: The node_id of this DownloadSlowLogFileRequest.
107
+ :rtype: str
108
+ """
109
+ return self._node_id
110
+
111
+ @node_id.setter
112
+ def node_id(self, node_id):
113
+ """Sets the node_id of this DownloadSlowLogFileRequest.
114
+
115
+ 节点ID。
116
+
117
+ :param node_id: The node_id of this DownloadSlowLogFileRequest.
118
+ :type node_id: str
119
+ """
120
+ self._node_id = node_id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, DownloadSlowLogFileRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ 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 DownloadSlowLogFileResponse(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
+ 'list': 'list[DownloadSlowLogFileItem]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'list': 'list',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, list=None, count=None):
31
+ """DownloadSlowLogFileResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param list: 慢日志下载链接列表。
36
+ :type list: list[:class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileItem`]
37
+ :param count: 条数。
38
+ :type count: int
39
+ """
40
+
41
+ super(DownloadSlowLogFileResponse, self).__init__()
42
+
43
+ self._list = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if list is not None:
48
+ self.list = list
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def list(self):
54
+ """Gets the list of this DownloadSlowLogFileResponse.
55
+
56
+ 慢日志下载链接列表。
57
+
58
+ :return: The list of this DownloadSlowLogFileResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileItem`]
60
+ """
61
+ return self._list
62
+
63
+ @list.setter
64
+ def list(self, list):
65
+ """Sets the list of this DownloadSlowLogFileResponse.
66
+
67
+ 慢日志下载链接列表。
68
+
69
+ :param list: The list of this DownloadSlowLogFileResponse.
70
+ :type list: list[:class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileItem`]
71
+ """
72
+ self._list = list
73
+
74
+ @property
75
+ def count(self):
76
+ """Gets the count of this DownloadSlowLogFileResponse.
77
+
78
+ 条数。
79
+
80
+ :return: The count of this DownloadSlowLogFileResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ """Sets the count of this DownloadSlowLogFileResponse.
88
+
89
+ 条数。
90
+
91
+ :param count: The count of this DownloadSlowLogFileResponse.
92
+ :type count: int
93
+ """
94
+ self._count = 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, DownloadSlowLogFileResponse):
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