huaweicloudsdkdns 3.1.85__py2.py3-none-any.whl → 3.1.132__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 (81) hide show
  1. huaweicloudsdkdns/v2/__init__.py +20 -5
  2. huaweicloudsdkdns/v2/dns_async_client.py +299 -11
  3. huaweicloudsdkdns/v2/dns_client.py +299 -11
  4. huaweicloudsdkdns/v2/model/__init__.py +20 -5
  5. huaweicloudsdkdns/v2/model/associate_router_response.py +6 -6
  6. huaweicloudsdkdns/v2/model/batch_delete_record_sets_request.py +111 -0
  7. huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +142 -0
  8. huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +141 -0
  9. huaweicloudsdkdns/v2/model/batch_delete_zones_request.py +111 -0
  10. huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +142 -0
  11. huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +141 -0
  12. huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request.py +111 -0
  13. huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +142 -0
  14. huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +166 -0
  15. huaweicloudsdkdns/v2/model/batch_set_zones_status_request.py +111 -0
  16. huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +142 -0
  17. huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +166 -0
  18. huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +4 -4
  19. huaweicloudsdkdns/v2/model/{batch_update_record_set_with_line_req.py → batch_update_record_set_with_line_request_body.py} +7 -7
  20. huaweicloudsdkdns/v2/model/create_custom_line_request.py +4 -4
  21. huaweicloudsdkdns/v2/model/{create_custom_lines.py → create_custom_line_request_body.py} +15 -15
  22. huaweicloudsdkdns/v2/model/create_eip_record_set_request.py +3 -3
  23. huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +3 -3
  24. huaweicloudsdkdns/v2/model/create_private_zone_req.py +6 -6
  25. huaweicloudsdkdns/v2/model/create_private_zone_response.py +9 -9
  26. huaweicloudsdkdns/v2/model/create_public_zone_req.py +6 -6
  27. huaweicloudsdkdns/v2/model/create_public_zone_response.py +6 -6
  28. huaweicloudsdkdns/v2/model/create_record_set_request_body.py +3 -3
  29. huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +3 -3
  30. huaweicloudsdkdns/v2/model/delete_custom_line_request.py +3 -3
  31. huaweicloudsdkdns/v2/model/delete_line_group_request.py +3 -3
  32. huaweicloudsdkdns/v2/model/delete_private_zone_response.py +6 -6
  33. huaweicloudsdkdns/v2/model/delete_public_zone_response.py +6 -6
  34. huaweicloudsdkdns/v2/model/disassociate_router_response.py +6 -6
  35. huaweicloudsdkdns/v2/model/link.py +115 -0
  36. huaweicloudsdkdns/v2/model/list_custom_line_request.py +64 -6
  37. huaweicloudsdkdns/v2/model/list_line_groups_request.py +3 -3
  38. huaweicloudsdkdns/v2/model/list_private_zones_request.py +125 -9
  39. huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +3 -3
  40. huaweicloudsdkdns/v2/model/list_ptr_records_request.py +3 -3
  41. huaweicloudsdkdns/v2/model/list_ptr_records_response.py +3 -3
  42. huaweicloudsdkdns/v2/model/list_public_zones_request.py +100 -13
  43. huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +6 -6
  44. huaweicloudsdkdns/v2/model/list_record_sets_request.py +6 -6
  45. huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +36 -7
  46. huaweicloudsdkdns/v2/model/private_zone_resp.py +9 -9
  47. huaweicloudsdkdns/v2/model/public_zone_resp.py +6 -6
  48. huaweicloudsdkdns/v2/model/recordset_data.py +600 -0
  49. huaweicloudsdkdns/v2/model/restore_ptr_record_request.py +3 -3
  50. huaweicloudsdkdns/v2/model/router.py +6 -6
  51. huaweicloudsdkdns/v2/model/router_with_status.py +6 -6
  52. huaweicloudsdkdns/v2/model/set_record_sets_status_request.py +4 -4
  53. huaweicloudsdkdns/v2/model/{set_record_sets_status_req.py → set_record_sets_status_request_body.py} +7 -7
  54. huaweicloudsdkdns/v2/model/show_line_group_request.py +3 -3
  55. huaweicloudsdkdns/v2/model/show_private_zone_response.py +9 -9
  56. huaweicloudsdkdns/v2/model/show_ptr_record_set_request.py +3 -3
  57. huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +3 -3
  58. huaweicloudsdkdns/v2/model/show_public_zone_response.py +6 -6
  59. huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +6 -6
  60. huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +35 -35
  61. huaweicloudsdkdns/v2/model/show_resource_tag_response.py +3 -32
  62. huaweicloudsdkdns/v2/model/tag_values.py +6 -6
  63. huaweicloudsdkdns/v2/model/update_custom_line_request.py +7 -7
  64. huaweicloudsdkdns/v2/model/{update_customs_line_req.py → update_custom_line_request_body.py} +15 -15
  65. huaweicloudsdkdns/v2/model/update_line_groups_request.py +7 -7
  66. huaweicloudsdkdns/v2/model/{update_line_groups_body.py → update_line_groups_request_body.py} +15 -15
  67. huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +3 -3
  68. huaweicloudsdkdns/v2/model/update_private_zone_response.py +9 -9
  69. huaweicloudsdkdns/v2/model/update_ptr_record_request.py +3 -3
  70. huaweicloudsdkdns/v2/model/update_ptr_record_response.py +3 -3
  71. huaweicloudsdkdns/v2/model/update_public_zone_info.py +3 -3
  72. huaweicloudsdkdns/v2/model/update_public_zone_response.py +6 -6
  73. huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +6 -6
  74. huaweicloudsdkdns/v2/model/update_record_set_req.py +4 -2
  75. huaweicloudsdkdns/v2/model/zone_data.py +517 -0
  76. huaweicloudsdkdns/v2/region/dns_region.py +21 -0
  77. {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/METADATA +2 -2
  78. {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/RECORD +81 -66
  79. {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/WHEEL +1 -1
  80. {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/LICENSE +0 -0
  81. {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,600 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RecordsetData:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'description': 'str',
23
+ 'type': 'str',
24
+ 'ttl': 'int',
25
+ 'records': 'list[str]',
26
+ 'status': 'str',
27
+ 'zone_id': 'str',
28
+ 'zone_name': 'str',
29
+ 'line': 'str',
30
+ 'alias_target': 'AliasTarget',
31
+ 'created_at': 'str',
32
+ 'updated_at': 'str',
33
+ 'health_check_id': 'str',
34
+ 'default': 'bool',
35
+ 'project_id': 'str',
36
+ 'links': 'Link',
37
+ 'weight': 'int'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'id': 'id',
42
+ 'name': 'name',
43
+ 'description': 'description',
44
+ 'type': 'type',
45
+ 'ttl': 'ttl',
46
+ 'records': 'records',
47
+ 'status': 'status',
48
+ 'zone_id': 'zone_id',
49
+ 'zone_name': 'zone_name',
50
+ 'line': 'line',
51
+ 'alias_target': 'alias_target',
52
+ 'created_at': 'created_at',
53
+ 'updated_at': 'updated_at',
54
+ 'health_check_id': 'health_check_id',
55
+ 'default': 'default',
56
+ 'project_id': 'project_id',
57
+ 'links': 'links',
58
+ 'weight': 'weight'
59
+ }
60
+
61
+ def __init__(self, id=None, name=None, description=None, type=None, ttl=None, records=None, status=None, zone_id=None, zone_name=None, line=None, alias_target=None, created_at=None, updated_at=None, health_check_id=None, default=None, project_id=None, links=None, weight=None):
62
+ """RecordsetData
63
+
64
+ The model defined in huaweicloud sdk
65
+
66
+ :param id: Record Set的ID。
67
+ :type id: str
68
+ :param name: Record Set的名称。
69
+ :type name: str
70
+ :param description: Record Set的描述信息。
71
+ :type description: str
72
+ :param type: 记录类型。
73
+ :type type: str
74
+ :param ttl: 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
75
+ :type ttl: int
76
+ :param records: 域名解析后的值。
77
+ :type records: list[str]
78
+ :param status: 资源状态。
79
+ :type status: str
80
+ :param zone_id: 托管该记录的zone_id。
81
+ :type zone_id: str
82
+ :param zone_name: 托管该记录的zone_name。
83
+ :type zone_name: str
84
+ :param line: 解析线路ID。
85
+ :type line: str
86
+ :param alias_target:
87
+ :type alias_target: :class:`huaweicloudsdkdns.v2.AliasTarget`
88
+ :param created_at: 创建时间。
89
+ :type created_at: str
90
+ :param updated_at: 更新时间。
91
+ :type updated_at: str
92
+ :param health_check_id: 健康检查ID。
93
+ :type health_check_id: str
94
+ :param default: 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
95
+ :type default: bool
96
+ :param project_id: 该Record Set所属的项目ID。
97
+ :type project_id: str
98
+ :param links:
99
+ :type links: :class:`huaweicloudsdkdns.v2.Link`
100
+ :param weight: 解析记录的权重。
101
+ :type weight: int
102
+ """
103
+
104
+
105
+
106
+ self._id = None
107
+ self._name = None
108
+ self._description = None
109
+ self._type = None
110
+ self._ttl = None
111
+ self._records = None
112
+ self._status = None
113
+ self._zone_id = None
114
+ self._zone_name = None
115
+ self._line = None
116
+ self._alias_target = None
117
+ self._created_at = None
118
+ self._updated_at = None
119
+ self._health_check_id = None
120
+ self._default = None
121
+ self._project_id = None
122
+ self._links = None
123
+ self._weight = None
124
+ self.discriminator = None
125
+
126
+ if id is not None:
127
+ self.id = id
128
+ if name is not None:
129
+ self.name = name
130
+ if description is not None:
131
+ self.description = description
132
+ if type is not None:
133
+ self.type = type
134
+ if ttl is not None:
135
+ self.ttl = ttl
136
+ if records is not None:
137
+ self.records = records
138
+ if status is not None:
139
+ self.status = status
140
+ if zone_id is not None:
141
+ self.zone_id = zone_id
142
+ if zone_name is not None:
143
+ self.zone_name = zone_name
144
+ if line is not None:
145
+ self.line = line
146
+ if alias_target is not None:
147
+ self.alias_target = alias_target
148
+ if created_at is not None:
149
+ self.created_at = created_at
150
+ if updated_at is not None:
151
+ self.updated_at = updated_at
152
+ if health_check_id is not None:
153
+ self.health_check_id = health_check_id
154
+ if default is not None:
155
+ self.default = default
156
+ if project_id is not None:
157
+ self.project_id = project_id
158
+ if links is not None:
159
+ self.links = links
160
+ if weight is not None:
161
+ self.weight = weight
162
+
163
+ @property
164
+ def id(self):
165
+ """Gets the id of this RecordsetData.
166
+
167
+ Record Set的ID。
168
+
169
+ :return: The id of this RecordsetData.
170
+ :rtype: str
171
+ """
172
+ return self._id
173
+
174
+ @id.setter
175
+ def id(self, id):
176
+ """Sets the id of this RecordsetData.
177
+
178
+ Record Set的ID。
179
+
180
+ :param id: The id of this RecordsetData.
181
+ :type id: str
182
+ """
183
+ self._id = id
184
+
185
+ @property
186
+ def name(self):
187
+ """Gets the name of this RecordsetData.
188
+
189
+ Record Set的名称。
190
+
191
+ :return: The name of this RecordsetData.
192
+ :rtype: str
193
+ """
194
+ return self._name
195
+
196
+ @name.setter
197
+ def name(self, name):
198
+ """Sets the name of this RecordsetData.
199
+
200
+ Record Set的名称。
201
+
202
+ :param name: The name of this RecordsetData.
203
+ :type name: str
204
+ """
205
+ self._name = name
206
+
207
+ @property
208
+ def description(self):
209
+ """Gets the description of this RecordsetData.
210
+
211
+ Record Set的描述信息。
212
+
213
+ :return: The description of this RecordsetData.
214
+ :rtype: str
215
+ """
216
+ return self._description
217
+
218
+ @description.setter
219
+ def description(self, description):
220
+ """Sets the description of this RecordsetData.
221
+
222
+ Record Set的描述信息。
223
+
224
+ :param description: The description of this RecordsetData.
225
+ :type description: str
226
+ """
227
+ self._description = description
228
+
229
+ @property
230
+ def type(self):
231
+ """Gets the type of this RecordsetData.
232
+
233
+ 记录类型。
234
+
235
+ :return: The type of this RecordsetData.
236
+ :rtype: str
237
+ """
238
+ return self._type
239
+
240
+ @type.setter
241
+ def type(self, type):
242
+ """Sets the type of this RecordsetData.
243
+
244
+ 记录类型。
245
+
246
+ :param type: The type of this RecordsetData.
247
+ :type type: str
248
+ """
249
+ self._type = type
250
+
251
+ @property
252
+ def ttl(self):
253
+ """Gets the ttl of this RecordsetData.
254
+
255
+ 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
256
+
257
+ :return: The ttl of this RecordsetData.
258
+ :rtype: int
259
+ """
260
+ return self._ttl
261
+
262
+ @ttl.setter
263
+ def ttl(self, ttl):
264
+ """Sets the ttl of this RecordsetData.
265
+
266
+ 解析记录在本地DNS服务器的缓存时间,缓存时间越长更新生效越慢,以秒为单位。
267
+
268
+ :param ttl: The ttl of this RecordsetData.
269
+ :type ttl: int
270
+ """
271
+ self._ttl = ttl
272
+
273
+ @property
274
+ def records(self):
275
+ """Gets the records of this RecordsetData.
276
+
277
+ 域名解析后的值。
278
+
279
+ :return: The records of this RecordsetData.
280
+ :rtype: list[str]
281
+ """
282
+ return self._records
283
+
284
+ @records.setter
285
+ def records(self, records):
286
+ """Sets the records of this RecordsetData.
287
+
288
+ 域名解析后的值。
289
+
290
+ :param records: The records of this RecordsetData.
291
+ :type records: list[str]
292
+ """
293
+ self._records = records
294
+
295
+ @property
296
+ def status(self):
297
+ """Gets the status of this RecordsetData.
298
+
299
+ 资源状态。
300
+
301
+ :return: The status of this RecordsetData.
302
+ :rtype: str
303
+ """
304
+ return self._status
305
+
306
+ @status.setter
307
+ def status(self, status):
308
+ """Sets the status of this RecordsetData.
309
+
310
+ 资源状态。
311
+
312
+ :param status: The status of this RecordsetData.
313
+ :type status: str
314
+ """
315
+ self._status = status
316
+
317
+ @property
318
+ def zone_id(self):
319
+ """Gets the zone_id of this RecordsetData.
320
+
321
+ 托管该记录的zone_id。
322
+
323
+ :return: The zone_id of this RecordsetData.
324
+ :rtype: str
325
+ """
326
+ return self._zone_id
327
+
328
+ @zone_id.setter
329
+ def zone_id(self, zone_id):
330
+ """Sets the zone_id of this RecordsetData.
331
+
332
+ 托管该记录的zone_id。
333
+
334
+ :param zone_id: The zone_id of this RecordsetData.
335
+ :type zone_id: str
336
+ """
337
+ self._zone_id = zone_id
338
+
339
+ @property
340
+ def zone_name(self):
341
+ """Gets the zone_name of this RecordsetData.
342
+
343
+ 托管该记录的zone_name。
344
+
345
+ :return: The zone_name of this RecordsetData.
346
+ :rtype: str
347
+ """
348
+ return self._zone_name
349
+
350
+ @zone_name.setter
351
+ def zone_name(self, zone_name):
352
+ """Sets the zone_name of this RecordsetData.
353
+
354
+ 托管该记录的zone_name。
355
+
356
+ :param zone_name: The zone_name of this RecordsetData.
357
+ :type zone_name: str
358
+ """
359
+ self._zone_name = zone_name
360
+
361
+ @property
362
+ def line(self):
363
+ """Gets the line of this RecordsetData.
364
+
365
+ 解析线路ID。
366
+
367
+ :return: The line of this RecordsetData.
368
+ :rtype: str
369
+ """
370
+ return self._line
371
+
372
+ @line.setter
373
+ def line(self, line):
374
+ """Sets the line of this RecordsetData.
375
+
376
+ 解析线路ID。
377
+
378
+ :param line: The line of this RecordsetData.
379
+ :type line: str
380
+ """
381
+ self._line = line
382
+
383
+ @property
384
+ def alias_target(self):
385
+ """Gets the alias_target of this RecordsetData.
386
+
387
+ :return: The alias_target of this RecordsetData.
388
+ :rtype: :class:`huaweicloudsdkdns.v2.AliasTarget`
389
+ """
390
+ return self._alias_target
391
+
392
+ @alias_target.setter
393
+ def alias_target(self, alias_target):
394
+ """Sets the alias_target of this RecordsetData.
395
+
396
+ :param alias_target: The alias_target of this RecordsetData.
397
+ :type alias_target: :class:`huaweicloudsdkdns.v2.AliasTarget`
398
+ """
399
+ self._alias_target = alias_target
400
+
401
+ @property
402
+ def created_at(self):
403
+ """Gets the created_at of this RecordsetData.
404
+
405
+ 创建时间。
406
+
407
+ :return: The created_at of this RecordsetData.
408
+ :rtype: str
409
+ """
410
+ return self._created_at
411
+
412
+ @created_at.setter
413
+ def created_at(self, created_at):
414
+ """Sets the created_at of this RecordsetData.
415
+
416
+ 创建时间。
417
+
418
+ :param created_at: The created_at of this RecordsetData.
419
+ :type created_at: str
420
+ """
421
+ self._created_at = created_at
422
+
423
+ @property
424
+ def updated_at(self):
425
+ """Gets the updated_at of this RecordsetData.
426
+
427
+ 更新时间。
428
+
429
+ :return: The updated_at of this RecordsetData.
430
+ :rtype: str
431
+ """
432
+ return self._updated_at
433
+
434
+ @updated_at.setter
435
+ def updated_at(self, updated_at):
436
+ """Sets the updated_at of this RecordsetData.
437
+
438
+ 更新时间。
439
+
440
+ :param updated_at: The updated_at of this RecordsetData.
441
+ :type updated_at: str
442
+ """
443
+ self._updated_at = updated_at
444
+
445
+ @property
446
+ def health_check_id(self):
447
+ """Gets the health_check_id of this RecordsetData.
448
+
449
+ 健康检查ID。
450
+
451
+ :return: The health_check_id of this RecordsetData.
452
+ :rtype: str
453
+ """
454
+ return self._health_check_id
455
+
456
+ @health_check_id.setter
457
+ def health_check_id(self, health_check_id):
458
+ """Sets the health_check_id of this RecordsetData.
459
+
460
+ 健康检查ID。
461
+
462
+ :param health_check_id: The health_check_id of this RecordsetData.
463
+ :type health_check_id: str
464
+ """
465
+ self._health_check_id = health_check_id
466
+
467
+ @property
468
+ def default(self):
469
+ """Gets the default of this RecordsetData.
470
+
471
+ 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
472
+
473
+ :return: The default of this RecordsetData.
474
+ :rtype: bool
475
+ """
476
+ return self._default
477
+
478
+ @default.setter
479
+ def default(self, default):
480
+ """Sets the default of this RecordsetData.
481
+
482
+ 标识是否由系统默认生成,系统默认生成的Record Set不能删除。
483
+
484
+ :param default: The default of this RecordsetData.
485
+ :type default: bool
486
+ """
487
+ self._default = default
488
+
489
+ @property
490
+ def project_id(self):
491
+ """Gets the project_id of this RecordsetData.
492
+
493
+ 该Record Set所属的项目ID。
494
+
495
+ :return: The project_id of this RecordsetData.
496
+ :rtype: str
497
+ """
498
+ return self._project_id
499
+
500
+ @project_id.setter
501
+ def project_id(self, project_id):
502
+ """Sets the project_id of this RecordsetData.
503
+
504
+ 该Record Set所属的项目ID。
505
+
506
+ :param project_id: The project_id of this RecordsetData.
507
+ :type project_id: str
508
+ """
509
+ self._project_id = project_id
510
+
511
+ @property
512
+ def links(self):
513
+ """Gets the links of this RecordsetData.
514
+
515
+ :return: The links of this RecordsetData.
516
+ :rtype: :class:`huaweicloudsdkdns.v2.Link`
517
+ """
518
+ return self._links
519
+
520
+ @links.setter
521
+ def links(self, links):
522
+ """Sets the links of this RecordsetData.
523
+
524
+ :param links: The links of this RecordsetData.
525
+ :type links: :class:`huaweicloudsdkdns.v2.Link`
526
+ """
527
+ self._links = links
528
+
529
+ @property
530
+ def weight(self):
531
+ """Gets the weight of this RecordsetData.
532
+
533
+ 解析记录的权重。
534
+
535
+ :return: The weight of this RecordsetData.
536
+ :rtype: int
537
+ """
538
+ return self._weight
539
+
540
+ @weight.setter
541
+ def weight(self, weight):
542
+ """Sets the weight of this RecordsetData.
543
+
544
+ 解析记录的权重。
545
+
546
+ :param weight: The weight of this RecordsetData.
547
+ :type weight: int
548
+ """
549
+ self._weight = weight
550
+
551
+ def to_dict(self):
552
+ """Returns the model properties as a dict"""
553
+ result = {}
554
+
555
+ for attr, _ in six.iteritems(self.openapi_types):
556
+ value = getattr(self, attr)
557
+ if isinstance(value, list):
558
+ result[attr] = list(map(
559
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
560
+ value
561
+ ))
562
+ elif hasattr(value, "to_dict"):
563
+ result[attr] = value.to_dict()
564
+ elif isinstance(value, dict):
565
+ result[attr] = dict(map(
566
+ lambda item: (item[0], item[1].to_dict())
567
+ if hasattr(item[1], "to_dict") else item,
568
+ value.items()
569
+ ))
570
+ else:
571
+ if attr in self.sensitive_list:
572
+ result[attr] = "****"
573
+ else:
574
+ result[attr] = value
575
+
576
+ return result
577
+
578
+ def to_str(self):
579
+ """Returns the string representation of the model"""
580
+ import simplejson as json
581
+ if six.PY2:
582
+ import sys
583
+ reload(sys)
584
+ sys.setdefaultencoding("utf-8")
585
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
586
+
587
+ def __repr__(self):
588
+ """For `print`"""
589
+ return self.to_str()
590
+
591
+ def __eq__(self, other):
592
+ """Returns true if both objects are equal"""
593
+ if not isinstance(other, RecordsetData):
594
+ return False
595
+
596
+ return self.__dict__ == other.__dict__
597
+
598
+ def __ne__(self, other):
599
+ """Returns true if both objects are not equal"""
600
+ return not self == other
@@ -35,7 +35,7 @@ class RestorePtrRecordRequest:
35
35
 
36
36
  :param region: 域名所属的区域。
37
37
  :type region: str
38
- :param floatingip_id: 待删除PTR ID。
38
+ :param floatingip_id: 弹性公网IP(EIP)的ID。
39
39
  :type floatingip_id: str
40
40
  :param body: Body of the RestorePtrRecordRequest
41
41
  :type body: :class:`huaweicloudsdkdns.v2.RestorePtrReq`
@@ -79,7 +79,7 @@ class RestorePtrRecordRequest:
79
79
  def floatingip_id(self):
80
80
  """Gets the floatingip_id of this RestorePtrRecordRequest.
81
81
 
82
- 待删除PTR ID。
82
+ 弹性公网IP(EIP)的ID。
83
83
 
84
84
  :return: The floatingip_id of this RestorePtrRecordRequest.
85
85
  :rtype: str
@@ -90,7 +90,7 @@ class RestorePtrRecordRequest:
90
90
  def floatingip_id(self, floatingip_id):
91
91
  """Sets the floatingip_id of this RestorePtrRecordRequest.
92
92
 
93
- 待删除PTR ID。
93
+ 弹性公网IP(EIP)的ID。
94
94
 
95
95
  :param floatingip_id: The floatingip_id of this RestorePtrRecordRequest.
96
96
  :type floatingip_id: str
@@ -33,9 +33,9 @@ class Router:
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param router_id: Router(VPC)所属VPC的ID。
36
+ :param router_id: 关联VPC的ID。
37
37
  :type router_id: str
38
- :param router_region: Router(VPC)所在的region。
38
+ :param router_region: 关联VPC所在的region。
39
39
  :type router_region: str
40
40
  :param status: 资源状态。
41
41
  :type status: str
@@ -58,7 +58,7 @@ class Router:
58
58
  def router_id(self):
59
59
  """Gets the router_id of this Router.
60
60
 
61
- Router(VPC)所属VPC的ID。
61
+ 关联VPC的ID。
62
62
 
63
63
  :return: The router_id of this Router.
64
64
  :rtype: str
@@ -69,7 +69,7 @@ class Router:
69
69
  def router_id(self, router_id):
70
70
  """Sets the router_id of this Router.
71
71
 
72
- Router(VPC)所属VPC的ID。
72
+ 关联VPC的ID。
73
73
 
74
74
  :param router_id: The router_id of this Router.
75
75
  :type router_id: str
@@ -80,7 +80,7 @@ class Router:
80
80
  def router_region(self):
81
81
  """Gets the router_region of this Router.
82
82
 
83
- Router(VPC)所在的region。
83
+ 关联VPC所在的region。
84
84
 
85
85
  :return: The router_region of this Router.
86
86
  :rtype: str
@@ -91,7 +91,7 @@ class Router:
91
91
  def router_region(self, router_region):
92
92
  """Sets the router_region of this Router.
93
93
 
94
- Router(VPC)所在的region。
94
+ 关联VPC所在的region。
95
95
 
96
96
  :param router_region: The router_region of this Router.
97
97
  :type router_region: str