huaweicloudsdkdrs 3.1.116__py2.py3-none-any.whl → 3.1.118__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 (59) hide show
  1. huaweicloudsdkdrs/v3/model/query_job_resp.py +7 -7
  2. huaweicloudsdkdrs/v5/__init__.py +40 -0
  3. huaweicloudsdkdrs/v5/drs_async_client.py +890 -17
  4. huaweicloudsdkdrs/v5/drs_client.py +890 -17
  5. huaweicloudsdkdrs/v5/model/__init__.py +40 -0
  6. huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
  7. huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
  8. huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
  9. huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
  10. huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
  11. huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
  12. huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
  13. huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
  14. huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
  15. huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
  16. huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
  17. huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
  18. huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
  19. huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
  20. huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
  21. huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
  22. huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
  23. huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
  24. huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
  25. huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
  26. huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
  27. huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
  28. huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
  29. huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
  30. huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
  31. huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
  32. huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
  33. huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
  34. huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
  35. huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
  36. huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
  37. huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
  38. huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
  39. huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
  40. huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
  41. huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
  42. huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
  43. huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
  44. huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
  45. huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
  46. huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
  47. huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
  48. huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
  49. huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
  50. huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
  51. huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
  52. huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
  53. huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
  54. huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
  55. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/RECORD +59 -19
  57. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,390 @@
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 ShowReplicationJobResponse(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
+ 'id': 'str',
22
+ 'status': 'str',
23
+ 'create_time': 'str',
24
+ 'finish_time': 'str',
25
+ 'backup_info': 'BackupInfoResp',
26
+ 'base_info': 'BackupJobBaseInfo',
27
+ 'target_db_info': 'BackupJobEndpointInfo',
28
+ 'options': 'BackupRestoreOptionInfo',
29
+ 'new_db_names': 'str',
30
+ 'instance_name': 'str',
31
+ 'error_log': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'id': 'id',
36
+ 'status': 'status',
37
+ 'create_time': 'create_time',
38
+ 'finish_time': 'finish_time',
39
+ 'backup_info': 'backup_info',
40
+ 'base_info': 'base_info',
41
+ 'target_db_info': 'target_db_info',
42
+ 'options': 'options',
43
+ 'new_db_names': 'new_db_names',
44
+ 'instance_name': 'instance_name',
45
+ 'error_log': 'error_log'
46
+ }
47
+
48
+ def __init__(self, id=None, status=None, create_time=None, finish_time=None, backup_info=None, base_info=None, target_db_info=None, options=None, new_db_names=None, instance_name=None, error_log=None):
49
+ """ShowReplicationJobResponse
50
+
51
+ The model defined in huaweicloud sdk
52
+
53
+ :param id: 任务ID。
54
+ :type id: str
55
+ :param status: 任务状态。
56
+ :type status: str
57
+ :param create_time: 任务创建时间。
58
+ :type create_time: str
59
+ :param finish_time: 任务完成时间。
60
+ :type finish_time: str
61
+ :param backup_info:
62
+ :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfoResp`
63
+ :param base_info:
64
+ :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
65
+ :param target_db_info:
66
+ :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
67
+ :param options:
68
+ :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
69
+ :param new_db_names: 备份恢复数据库映射新名称。
70
+ :type new_db_names: str
71
+ :param instance_name: RDS实例名称。
72
+ :type instance_name: str
73
+ :param error_log: 迁移过程中失败原因。
74
+ :type error_log: str
75
+ """
76
+
77
+ super(ShowReplicationJobResponse, self).__init__()
78
+
79
+ self._id = None
80
+ self._status = None
81
+ self._create_time = None
82
+ self._finish_time = None
83
+ self._backup_info = None
84
+ self._base_info = None
85
+ self._target_db_info = None
86
+ self._options = None
87
+ self._new_db_names = None
88
+ self._instance_name = None
89
+ self._error_log = None
90
+ self.discriminator = None
91
+
92
+ if id is not None:
93
+ self.id = id
94
+ if status is not None:
95
+ self.status = status
96
+ if create_time is not None:
97
+ self.create_time = create_time
98
+ if finish_time is not None:
99
+ self.finish_time = finish_time
100
+ if backup_info is not None:
101
+ self.backup_info = backup_info
102
+ if base_info is not None:
103
+ self.base_info = base_info
104
+ if target_db_info is not None:
105
+ self.target_db_info = target_db_info
106
+ if options is not None:
107
+ self.options = options
108
+ if new_db_names is not None:
109
+ self.new_db_names = new_db_names
110
+ if instance_name is not None:
111
+ self.instance_name = instance_name
112
+ if error_log is not None:
113
+ self.error_log = error_log
114
+
115
+ @property
116
+ def id(self):
117
+ """Gets the id of this ShowReplicationJobResponse.
118
+
119
+ 任务ID。
120
+
121
+ :return: The id of this ShowReplicationJobResponse.
122
+ :rtype: str
123
+ """
124
+ return self._id
125
+
126
+ @id.setter
127
+ def id(self, id):
128
+ """Sets the id of this ShowReplicationJobResponse.
129
+
130
+ 任务ID。
131
+
132
+ :param id: The id of this ShowReplicationJobResponse.
133
+ :type id: str
134
+ """
135
+ self._id = id
136
+
137
+ @property
138
+ def status(self):
139
+ """Gets the status of this ShowReplicationJobResponse.
140
+
141
+ 任务状态。
142
+
143
+ :return: The status of this ShowReplicationJobResponse.
144
+ :rtype: str
145
+ """
146
+ return self._status
147
+
148
+ @status.setter
149
+ def status(self, status):
150
+ """Sets the status of this ShowReplicationJobResponse.
151
+
152
+ 任务状态。
153
+
154
+ :param status: The status of this ShowReplicationJobResponse.
155
+ :type status: str
156
+ """
157
+ self._status = status
158
+
159
+ @property
160
+ def create_time(self):
161
+ """Gets the create_time of this ShowReplicationJobResponse.
162
+
163
+ 任务创建时间。
164
+
165
+ :return: The create_time of this ShowReplicationJobResponse.
166
+ :rtype: str
167
+ """
168
+ return self._create_time
169
+
170
+ @create_time.setter
171
+ def create_time(self, create_time):
172
+ """Sets the create_time of this ShowReplicationJobResponse.
173
+
174
+ 任务创建时间。
175
+
176
+ :param create_time: The create_time of this ShowReplicationJobResponse.
177
+ :type create_time: str
178
+ """
179
+ self._create_time = create_time
180
+
181
+ @property
182
+ def finish_time(self):
183
+ """Gets the finish_time of this ShowReplicationJobResponse.
184
+
185
+ 任务完成时间。
186
+
187
+ :return: The finish_time of this ShowReplicationJobResponse.
188
+ :rtype: str
189
+ """
190
+ return self._finish_time
191
+
192
+ @finish_time.setter
193
+ def finish_time(self, finish_time):
194
+ """Sets the finish_time of this ShowReplicationJobResponse.
195
+
196
+ 任务完成时间。
197
+
198
+ :param finish_time: The finish_time of this ShowReplicationJobResponse.
199
+ :type finish_time: str
200
+ """
201
+ self._finish_time = finish_time
202
+
203
+ @property
204
+ def backup_info(self):
205
+ """Gets the backup_info of this ShowReplicationJobResponse.
206
+
207
+ :return: The backup_info of this ShowReplicationJobResponse.
208
+ :rtype: :class:`huaweicloudsdkdrs.v5.BackupInfoResp`
209
+ """
210
+ return self._backup_info
211
+
212
+ @backup_info.setter
213
+ def backup_info(self, backup_info):
214
+ """Sets the backup_info of this ShowReplicationJobResponse.
215
+
216
+ :param backup_info: The backup_info of this ShowReplicationJobResponse.
217
+ :type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfoResp`
218
+ """
219
+ self._backup_info = backup_info
220
+
221
+ @property
222
+ def base_info(self):
223
+ """Gets the base_info of this ShowReplicationJobResponse.
224
+
225
+ :return: The base_info of this ShowReplicationJobResponse.
226
+ :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
227
+ """
228
+ return self._base_info
229
+
230
+ @base_info.setter
231
+ def base_info(self, base_info):
232
+ """Sets the base_info of this ShowReplicationJobResponse.
233
+
234
+ :param base_info: The base_info of this ShowReplicationJobResponse.
235
+ :type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
236
+ """
237
+ self._base_info = base_info
238
+
239
+ @property
240
+ def target_db_info(self):
241
+ """Gets the target_db_info of this ShowReplicationJobResponse.
242
+
243
+ :return: The target_db_info of this ShowReplicationJobResponse.
244
+ :rtype: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
245
+ """
246
+ return self._target_db_info
247
+
248
+ @target_db_info.setter
249
+ def target_db_info(self, target_db_info):
250
+ """Sets the target_db_info of this ShowReplicationJobResponse.
251
+
252
+ :param target_db_info: The target_db_info of this ShowReplicationJobResponse.
253
+ :type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
254
+ """
255
+ self._target_db_info = target_db_info
256
+
257
+ @property
258
+ def options(self):
259
+ """Gets the options of this ShowReplicationJobResponse.
260
+
261
+ :return: The options of this ShowReplicationJobResponse.
262
+ :rtype: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
263
+ """
264
+ return self._options
265
+
266
+ @options.setter
267
+ def options(self, options):
268
+ """Sets the options of this ShowReplicationJobResponse.
269
+
270
+ :param options: The options of this ShowReplicationJobResponse.
271
+ :type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
272
+ """
273
+ self._options = options
274
+
275
+ @property
276
+ def new_db_names(self):
277
+ """Gets the new_db_names of this ShowReplicationJobResponse.
278
+
279
+ 备份恢复数据库映射新名称。
280
+
281
+ :return: The new_db_names of this ShowReplicationJobResponse.
282
+ :rtype: str
283
+ """
284
+ return self._new_db_names
285
+
286
+ @new_db_names.setter
287
+ def new_db_names(self, new_db_names):
288
+ """Sets the new_db_names of this ShowReplicationJobResponse.
289
+
290
+ 备份恢复数据库映射新名称。
291
+
292
+ :param new_db_names: The new_db_names of this ShowReplicationJobResponse.
293
+ :type new_db_names: str
294
+ """
295
+ self._new_db_names = new_db_names
296
+
297
+ @property
298
+ def instance_name(self):
299
+ """Gets the instance_name of this ShowReplicationJobResponse.
300
+
301
+ RDS实例名称。
302
+
303
+ :return: The instance_name of this ShowReplicationJobResponse.
304
+ :rtype: str
305
+ """
306
+ return self._instance_name
307
+
308
+ @instance_name.setter
309
+ def instance_name(self, instance_name):
310
+ """Sets the instance_name of this ShowReplicationJobResponse.
311
+
312
+ RDS实例名称。
313
+
314
+ :param instance_name: The instance_name of this ShowReplicationJobResponse.
315
+ :type instance_name: str
316
+ """
317
+ self._instance_name = instance_name
318
+
319
+ @property
320
+ def error_log(self):
321
+ """Gets the error_log of this ShowReplicationJobResponse.
322
+
323
+ 迁移过程中失败原因。
324
+
325
+ :return: The error_log of this ShowReplicationJobResponse.
326
+ :rtype: str
327
+ """
328
+ return self._error_log
329
+
330
+ @error_log.setter
331
+ def error_log(self, error_log):
332
+ """Sets the error_log of this ShowReplicationJobResponse.
333
+
334
+ 迁移过程中失败原因。
335
+
336
+ :param error_log: The error_log of this ShowReplicationJobResponse.
337
+ :type error_log: str
338
+ """
339
+ self._error_log = error_log
340
+
341
+ def to_dict(self):
342
+ """Returns the model properties as a dict"""
343
+ result = {}
344
+
345
+ for attr, _ in six.iteritems(self.openapi_types):
346
+ value = getattr(self, attr)
347
+ if isinstance(value, list):
348
+ result[attr] = list(map(
349
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
350
+ value
351
+ ))
352
+ elif hasattr(value, "to_dict"):
353
+ result[attr] = value.to_dict()
354
+ elif isinstance(value, dict):
355
+ result[attr] = dict(map(
356
+ lambda item: (item[0], item[1].to_dict())
357
+ if hasattr(item[1], "to_dict") else item,
358
+ value.items()
359
+ ))
360
+ else:
361
+ if attr in self.sensitive_list:
362
+ result[attr] = "****"
363
+ else:
364
+ result[attr] = value
365
+
366
+ return result
367
+
368
+ def to_str(self):
369
+ """Returns the string representation of the model"""
370
+ import simplejson as json
371
+ if six.PY2:
372
+ import sys
373
+ reload(sys)
374
+ sys.setdefaultencoding("utf-8")
375
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
376
+
377
+ def __repr__(self):
378
+ """For `print`"""
379
+ return self.to_str()
380
+
381
+ def __eq__(self, other):
382
+ """Returns true if both objects are equal"""
383
+ if not isinstance(other, ShowReplicationJobResponse):
384
+ return False
385
+
386
+ return self.__dict__ == other.__dict__
387
+
388
+ def __ne__(self, other):
389
+ """Returns true if both objects are not equal"""
390
+ return not self == other
@@ -36,7 +36,7 @@ class ShowUpdateObjectSavingStatusResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class ShowUpdateObjectSavingStatusResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this ShowUpdateObjectSavingStatusResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this ShowUpdateObjectSavingStatusResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class ShowUpdateObjectSavingStatusResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this ShowUpdateObjectSavingStatusResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this ShowUpdateObjectSavingStatusResponse.
99
99
  :type status: str
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ToPeriodReq:
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
+ 'period_type': 'str',
21
+ 'period_num': 'int',
22
+ 'is_auto_renew': 'bool',
23
+ 'is_auto_pay': 'bool'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'period_type': 'period_type',
28
+ 'period_num': 'period_num',
29
+ 'is_auto_renew': 'is_auto_renew',
30
+ 'is_auto_pay': 'is_auto_pay'
31
+ }
32
+
33
+ def __init__(self, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None):
34
+ """ToPeriodReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param period_type: 订单类型,取值: - 2:包月 - 3:包年
39
+ :type period_type: str
40
+ :param period_num: 订单周期数
41
+ :type period_num: int
42
+ :param is_auto_renew: 是否自动续费
43
+ :type is_auto_renew: bool
44
+ :param is_auto_pay: 是否自动支付
45
+ :type is_auto_pay: bool
46
+ """
47
+
48
+
49
+
50
+ self._period_type = None
51
+ self._period_num = None
52
+ self._is_auto_renew = None
53
+ self._is_auto_pay = None
54
+ self.discriminator = None
55
+
56
+ self.period_type = period_type
57
+ self.period_num = period_num
58
+ self.is_auto_renew = is_auto_renew
59
+ self.is_auto_pay = is_auto_pay
60
+
61
+ @property
62
+ def period_type(self):
63
+ """Gets the period_type of this ToPeriodReq.
64
+
65
+ 订单类型,取值: - 2:包月 - 3:包年
66
+
67
+ :return: The period_type of this ToPeriodReq.
68
+ :rtype: str
69
+ """
70
+ return self._period_type
71
+
72
+ @period_type.setter
73
+ def period_type(self, period_type):
74
+ """Sets the period_type of this ToPeriodReq.
75
+
76
+ 订单类型,取值: - 2:包月 - 3:包年
77
+
78
+ :param period_type: The period_type of this ToPeriodReq.
79
+ :type period_type: str
80
+ """
81
+ self._period_type = period_type
82
+
83
+ @property
84
+ def period_num(self):
85
+ """Gets the period_num of this ToPeriodReq.
86
+
87
+ 订单周期数
88
+
89
+ :return: The period_num of this ToPeriodReq.
90
+ :rtype: int
91
+ """
92
+ return self._period_num
93
+
94
+ @period_num.setter
95
+ def period_num(self, period_num):
96
+ """Sets the period_num of this ToPeriodReq.
97
+
98
+ 订单周期数
99
+
100
+ :param period_num: The period_num of this ToPeriodReq.
101
+ :type period_num: int
102
+ """
103
+ self._period_num = period_num
104
+
105
+ @property
106
+ def is_auto_renew(self):
107
+ """Gets the is_auto_renew of this ToPeriodReq.
108
+
109
+ 是否自动续费
110
+
111
+ :return: The is_auto_renew of this ToPeriodReq.
112
+ :rtype: bool
113
+ """
114
+ return self._is_auto_renew
115
+
116
+ @is_auto_renew.setter
117
+ def is_auto_renew(self, is_auto_renew):
118
+ """Sets the is_auto_renew of this ToPeriodReq.
119
+
120
+ 是否自动续费
121
+
122
+ :param is_auto_renew: The is_auto_renew of this ToPeriodReq.
123
+ :type is_auto_renew: bool
124
+ """
125
+ self._is_auto_renew = is_auto_renew
126
+
127
+ @property
128
+ def is_auto_pay(self):
129
+ """Gets the is_auto_pay of this ToPeriodReq.
130
+
131
+ 是否自动支付
132
+
133
+ :return: The is_auto_pay of this ToPeriodReq.
134
+ :rtype: bool
135
+ """
136
+ return self._is_auto_pay
137
+
138
+ @is_auto_pay.setter
139
+ def is_auto_pay(self, is_auto_pay):
140
+ """Sets the is_auto_pay of this ToPeriodReq.
141
+
142
+ 是否自动支付
143
+
144
+ :param is_auto_pay: The is_auto_pay of this ToPeriodReq.
145
+ :type is_auto_pay: bool
146
+ """
147
+ self._is_auto_pay = is_auto_pay
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, ToPeriodReq):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other