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.
- huaweicloudsdkdns/v2/__init__.py +20 -5
- huaweicloudsdkdns/v2/dns_async_client.py +299 -11
- huaweicloudsdkdns/v2/dns_client.py +299 -11
- huaweicloudsdkdns/v2/model/__init__.py +20 -5
- huaweicloudsdkdns/v2/model/associate_router_response.py +6 -6
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_record_sets_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_delete_zones_response.py +141 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_record_sets_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request.py +111 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_request_body.py +142 -0
- huaweicloudsdkdns/v2/model/batch_set_zones_status_response.py +166 -0
- huaweicloudsdkdns/v2/model/batch_update_record_set_with_line_request.py +4 -4
- huaweicloudsdkdns/v2/model/{batch_update_record_set_with_line_req.py → batch_update_record_set_with_line_request_body.py} +7 -7
- huaweicloudsdkdns/v2/model/create_custom_line_request.py +4 -4
- huaweicloudsdkdns/v2/model/{create_custom_lines.py → create_custom_line_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/create_eip_record_set_request.py +3 -3
- huaweicloudsdkdns/v2/model/create_eip_record_set_response.py +3 -3
- huaweicloudsdkdns/v2/model/create_private_zone_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/create_public_zone_req.py +6 -6
- huaweicloudsdkdns/v2/model/create_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/create_record_set_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/create_record_set_with_line_request_body.py +3 -3
- huaweicloudsdkdns/v2/model/delete_custom_line_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/delete_private_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/delete_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/disassociate_router_response.py +6 -6
- huaweicloudsdkdns/v2/model/link.py +115 -0
- huaweicloudsdkdns/v2/model/list_custom_line_request.py +64 -6
- huaweicloudsdkdns/v2/model/list_line_groups_request.py +3 -3
- huaweicloudsdkdns/v2/model/list_private_zones_request.py +125 -9
- huaweicloudsdkdns/v2/model/list_ptr_records_floating_resp.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_request.py +3 -3
- huaweicloudsdkdns/v2/model/list_ptr_records_response.py +3 -3
- huaweicloudsdkdns/v2/model/list_public_zones_request.py +100 -13
- huaweicloudsdkdns/v2/model/list_record_sets_by_zone_request.py +6 -6
- huaweicloudsdkdns/v2/model/list_record_sets_request.py +6 -6
- huaweicloudsdkdns/v2/model/list_record_sets_with_line_request.py +36 -7
- huaweicloudsdkdns/v2/model/private_zone_resp.py +9 -9
- huaweicloudsdkdns/v2/model/public_zone_resp.py +6 -6
- huaweicloudsdkdns/v2/model/recordset_data.py +600 -0
- huaweicloudsdkdns/v2/model/restore_ptr_record_request.py +3 -3
- huaweicloudsdkdns/v2/model/router.py +6 -6
- huaweicloudsdkdns/v2/model/router_with_status.py +6 -6
- huaweicloudsdkdns/v2/model/set_record_sets_status_request.py +4 -4
- huaweicloudsdkdns/v2/model/{set_record_sets_status_req.py → set_record_sets_status_request_body.py} +7 -7
- huaweicloudsdkdns/v2/model/show_line_group_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/show_ptr_record_set_request.py +3 -3
- huaweicloudsdkdns/v2/model/show_ptr_record_set_response.py +3 -3
- huaweicloudsdkdns/v2/model/show_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_request.py +6 -6
- huaweicloudsdkdns/v2/model/show_record_set_by_zone_resp.py +35 -35
- huaweicloudsdkdns/v2/model/show_resource_tag_response.py +3 -32
- huaweicloudsdkdns/v2/model/tag_values.py +6 -6
- huaweicloudsdkdns/v2/model/update_custom_line_request.py +7 -7
- huaweicloudsdkdns/v2/model/{update_customs_line_req.py → update_custom_line_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/update_line_groups_request.py +7 -7
- huaweicloudsdkdns/v2/model/{update_line_groups_body.py → update_line_groups_request_body.py} +15 -15
- huaweicloudsdkdns/v2/model/update_private_zone_info_req.py +3 -3
- huaweicloudsdkdns/v2/model/update_private_zone_response.py +9 -9
- huaweicloudsdkdns/v2/model/update_ptr_record_request.py +3 -3
- huaweicloudsdkdns/v2/model/update_ptr_record_response.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_info.py +3 -3
- huaweicloudsdkdns/v2/model/update_public_zone_response.py +6 -6
- huaweicloudsdkdns/v2/model/update_public_zone_status_response.py +6 -6
- huaweicloudsdkdns/v2/model/update_record_set_req.py +4 -2
- huaweicloudsdkdns/v2/model/zone_data.py +517 -0
- huaweicloudsdkdns/v2/region/dns_region.py +21 -0
- {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/RECORD +81 -66
- {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdns-3.1.85.dist-info → huaweicloudsdkdns-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,517 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ZoneData:
|
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
|
+
'email': 'str',
|
24
|
+
'ttl': 'str',
|
25
|
+
'serial': 'str',
|
26
|
+
'masters': 'str',
|
27
|
+
'status': 'str',
|
28
|
+
'pool_id': 'str',
|
29
|
+
'project_id': 'str',
|
30
|
+
'zone_type': 'str',
|
31
|
+
'created_at': 'str',
|
32
|
+
'updated_at': 'str',
|
33
|
+
'record_num': 'str',
|
34
|
+
'links': 'Link'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'id': 'id',
|
39
|
+
'name': 'name',
|
40
|
+
'description': 'description',
|
41
|
+
'email': 'email',
|
42
|
+
'ttl': 'ttl',
|
43
|
+
'serial': 'serial',
|
44
|
+
'masters': 'masters',
|
45
|
+
'status': 'status',
|
46
|
+
'pool_id': 'pool_id',
|
47
|
+
'project_id': 'project_id',
|
48
|
+
'zone_type': 'zone_type',
|
49
|
+
'created_at': 'created_at',
|
50
|
+
'updated_at': 'updated_at',
|
51
|
+
'record_num': 'record_num',
|
52
|
+
'links': 'links'
|
53
|
+
}
|
54
|
+
|
55
|
+
def __init__(self, id=None, name=None, description=None, email=None, ttl=None, serial=None, masters=None, status=None, pool_id=None, project_id=None, zone_type=None, created_at=None, updated_at=None, record_num=None, links=None):
|
56
|
+
"""ZoneData
|
57
|
+
|
58
|
+
The model defined in huaweicloud sdk
|
59
|
+
|
60
|
+
:param id: zone的ID,uuid形式的一个资源标识。
|
61
|
+
:type id: str
|
62
|
+
:param name: zone名称。
|
63
|
+
:type name: str
|
64
|
+
:param description: 对zone的描述信息。
|
65
|
+
:type description: str
|
66
|
+
:param email: 管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
|
67
|
+
:type email: str
|
68
|
+
:param ttl: 该zone下SOA记录中的ttl值。
|
69
|
+
:type ttl: str
|
70
|
+
:param serial: 该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
|
71
|
+
:type serial: str
|
72
|
+
:param masters: 主从模式中,从DNS服务器获取DNS信息。
|
73
|
+
:type masters: str
|
74
|
+
:param status: 资源状态。
|
75
|
+
:type status: str
|
76
|
+
:param pool_id: 托管该zone的pool,由系统分配。
|
77
|
+
:type pool_id: str
|
78
|
+
:param project_id: zone所属的项目ID。
|
79
|
+
:type project_id: str
|
80
|
+
:param zone_type: zone类型,取值 public 或 private。
|
81
|
+
:type zone_type: str
|
82
|
+
:param created_at: 创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
83
|
+
:type created_at: str
|
84
|
+
:param updated_at: 更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
85
|
+
:type updated_at: str
|
86
|
+
:param record_num: 该zone下的recordset个数。
|
87
|
+
:type record_num: str
|
88
|
+
:param links:
|
89
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
90
|
+
"""
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
self._id = None
|
95
|
+
self._name = None
|
96
|
+
self._description = None
|
97
|
+
self._email = None
|
98
|
+
self._ttl = None
|
99
|
+
self._serial = None
|
100
|
+
self._masters = None
|
101
|
+
self._status = None
|
102
|
+
self._pool_id = None
|
103
|
+
self._project_id = None
|
104
|
+
self._zone_type = None
|
105
|
+
self._created_at = None
|
106
|
+
self._updated_at = None
|
107
|
+
self._record_num = None
|
108
|
+
self._links = None
|
109
|
+
self.discriminator = None
|
110
|
+
|
111
|
+
if id is not None:
|
112
|
+
self.id = id
|
113
|
+
if name is not None:
|
114
|
+
self.name = name
|
115
|
+
if description is not None:
|
116
|
+
self.description = description
|
117
|
+
if email is not None:
|
118
|
+
self.email = email
|
119
|
+
if ttl is not None:
|
120
|
+
self.ttl = ttl
|
121
|
+
if serial is not None:
|
122
|
+
self.serial = serial
|
123
|
+
if masters is not None:
|
124
|
+
self.masters = masters
|
125
|
+
if status is not None:
|
126
|
+
self.status = status
|
127
|
+
if pool_id is not None:
|
128
|
+
self.pool_id = pool_id
|
129
|
+
if project_id is not None:
|
130
|
+
self.project_id = project_id
|
131
|
+
if zone_type is not None:
|
132
|
+
self.zone_type = zone_type
|
133
|
+
if created_at is not None:
|
134
|
+
self.created_at = created_at
|
135
|
+
if updated_at is not None:
|
136
|
+
self.updated_at = updated_at
|
137
|
+
if record_num is not None:
|
138
|
+
self.record_num = record_num
|
139
|
+
if links is not None:
|
140
|
+
self.links = links
|
141
|
+
|
142
|
+
@property
|
143
|
+
def id(self):
|
144
|
+
"""Gets the id of this ZoneData.
|
145
|
+
|
146
|
+
zone的ID,uuid形式的一个资源标识。
|
147
|
+
|
148
|
+
:return: The id of this ZoneData.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._id
|
152
|
+
|
153
|
+
@id.setter
|
154
|
+
def id(self, id):
|
155
|
+
"""Sets the id of this ZoneData.
|
156
|
+
|
157
|
+
zone的ID,uuid形式的一个资源标识。
|
158
|
+
|
159
|
+
:param id: The id of this ZoneData.
|
160
|
+
:type id: str
|
161
|
+
"""
|
162
|
+
self._id = id
|
163
|
+
|
164
|
+
@property
|
165
|
+
def name(self):
|
166
|
+
"""Gets the name of this ZoneData.
|
167
|
+
|
168
|
+
zone名称。
|
169
|
+
|
170
|
+
:return: The name of this ZoneData.
|
171
|
+
:rtype: str
|
172
|
+
"""
|
173
|
+
return self._name
|
174
|
+
|
175
|
+
@name.setter
|
176
|
+
def name(self, name):
|
177
|
+
"""Sets the name of this ZoneData.
|
178
|
+
|
179
|
+
zone名称。
|
180
|
+
|
181
|
+
:param name: The name of this ZoneData.
|
182
|
+
:type name: str
|
183
|
+
"""
|
184
|
+
self._name = name
|
185
|
+
|
186
|
+
@property
|
187
|
+
def description(self):
|
188
|
+
"""Gets the description of this ZoneData.
|
189
|
+
|
190
|
+
对zone的描述信息。
|
191
|
+
|
192
|
+
:return: The description of this ZoneData.
|
193
|
+
:rtype: str
|
194
|
+
"""
|
195
|
+
return self._description
|
196
|
+
|
197
|
+
@description.setter
|
198
|
+
def description(self, description):
|
199
|
+
"""Sets the description of this ZoneData.
|
200
|
+
|
201
|
+
对zone的描述信息。
|
202
|
+
|
203
|
+
:param description: The description of this ZoneData.
|
204
|
+
:type description: str
|
205
|
+
"""
|
206
|
+
self._description = description
|
207
|
+
|
208
|
+
@property
|
209
|
+
def email(self):
|
210
|
+
"""Gets the email of this ZoneData.
|
211
|
+
|
212
|
+
管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
|
213
|
+
|
214
|
+
:return: The email of this ZoneData.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._email
|
218
|
+
|
219
|
+
@email.setter
|
220
|
+
def email(self, email):
|
221
|
+
"""Sets the email of this ZoneData.
|
222
|
+
|
223
|
+
管理该zone的管理员邮箱,用于生成该Zone的SOA记录。
|
224
|
+
|
225
|
+
:param email: The email of this ZoneData.
|
226
|
+
:type email: str
|
227
|
+
"""
|
228
|
+
self._email = email
|
229
|
+
|
230
|
+
@property
|
231
|
+
def ttl(self):
|
232
|
+
"""Gets the ttl of this ZoneData.
|
233
|
+
|
234
|
+
该zone下SOA记录中的ttl值。
|
235
|
+
|
236
|
+
:return: The ttl of this ZoneData.
|
237
|
+
:rtype: str
|
238
|
+
"""
|
239
|
+
return self._ttl
|
240
|
+
|
241
|
+
@ttl.setter
|
242
|
+
def ttl(self, ttl):
|
243
|
+
"""Sets the ttl of this ZoneData.
|
244
|
+
|
245
|
+
该zone下SOA记录中的ttl值。
|
246
|
+
|
247
|
+
:param ttl: The ttl of this ZoneData.
|
248
|
+
:type ttl: str
|
249
|
+
"""
|
250
|
+
self._ttl = ttl
|
251
|
+
|
252
|
+
@property
|
253
|
+
def serial(self):
|
254
|
+
"""Gets the serial of this ZoneData.
|
255
|
+
|
256
|
+
该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
|
257
|
+
|
258
|
+
:return: The serial of this ZoneData.
|
259
|
+
:rtype: str
|
260
|
+
"""
|
261
|
+
return self._serial
|
262
|
+
|
263
|
+
@serial.setter
|
264
|
+
def serial(self, serial):
|
265
|
+
"""Sets the serial of this ZoneData.
|
266
|
+
|
267
|
+
该zone下SOA记录中用于标识zone文件变更的序列值,用于主从节点同步。
|
268
|
+
|
269
|
+
:param serial: The serial of this ZoneData.
|
270
|
+
:type serial: str
|
271
|
+
"""
|
272
|
+
self._serial = serial
|
273
|
+
|
274
|
+
@property
|
275
|
+
def masters(self):
|
276
|
+
"""Gets the masters of this ZoneData.
|
277
|
+
|
278
|
+
主从模式中,从DNS服务器获取DNS信息。
|
279
|
+
|
280
|
+
:return: The masters of this ZoneData.
|
281
|
+
:rtype: str
|
282
|
+
"""
|
283
|
+
return self._masters
|
284
|
+
|
285
|
+
@masters.setter
|
286
|
+
def masters(self, masters):
|
287
|
+
"""Sets the masters of this ZoneData.
|
288
|
+
|
289
|
+
主从模式中,从DNS服务器获取DNS信息。
|
290
|
+
|
291
|
+
:param masters: The masters of this ZoneData.
|
292
|
+
:type masters: str
|
293
|
+
"""
|
294
|
+
self._masters = masters
|
295
|
+
|
296
|
+
@property
|
297
|
+
def status(self):
|
298
|
+
"""Gets the status of this ZoneData.
|
299
|
+
|
300
|
+
资源状态。
|
301
|
+
|
302
|
+
:return: The status of this ZoneData.
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._status
|
306
|
+
|
307
|
+
@status.setter
|
308
|
+
def status(self, status):
|
309
|
+
"""Sets the status of this ZoneData.
|
310
|
+
|
311
|
+
资源状态。
|
312
|
+
|
313
|
+
:param status: The status of this ZoneData.
|
314
|
+
:type status: str
|
315
|
+
"""
|
316
|
+
self._status = status
|
317
|
+
|
318
|
+
@property
|
319
|
+
def pool_id(self):
|
320
|
+
"""Gets the pool_id of this ZoneData.
|
321
|
+
|
322
|
+
托管该zone的pool,由系统分配。
|
323
|
+
|
324
|
+
:return: The pool_id of this ZoneData.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._pool_id
|
328
|
+
|
329
|
+
@pool_id.setter
|
330
|
+
def pool_id(self, pool_id):
|
331
|
+
"""Sets the pool_id of this ZoneData.
|
332
|
+
|
333
|
+
托管该zone的pool,由系统分配。
|
334
|
+
|
335
|
+
:param pool_id: The pool_id of this ZoneData.
|
336
|
+
:type pool_id: str
|
337
|
+
"""
|
338
|
+
self._pool_id = pool_id
|
339
|
+
|
340
|
+
@property
|
341
|
+
def project_id(self):
|
342
|
+
"""Gets the project_id of this ZoneData.
|
343
|
+
|
344
|
+
zone所属的项目ID。
|
345
|
+
|
346
|
+
:return: The project_id of this ZoneData.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._project_id
|
350
|
+
|
351
|
+
@project_id.setter
|
352
|
+
def project_id(self, project_id):
|
353
|
+
"""Sets the project_id of this ZoneData.
|
354
|
+
|
355
|
+
zone所属的项目ID。
|
356
|
+
|
357
|
+
:param project_id: The project_id of this ZoneData.
|
358
|
+
:type project_id: str
|
359
|
+
"""
|
360
|
+
self._project_id = project_id
|
361
|
+
|
362
|
+
@property
|
363
|
+
def zone_type(self):
|
364
|
+
"""Gets the zone_type of this ZoneData.
|
365
|
+
|
366
|
+
zone类型,取值 public 或 private。
|
367
|
+
|
368
|
+
:return: The zone_type of this ZoneData.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._zone_type
|
372
|
+
|
373
|
+
@zone_type.setter
|
374
|
+
def zone_type(self, zone_type):
|
375
|
+
"""Sets the zone_type of this ZoneData.
|
376
|
+
|
377
|
+
zone类型,取值 public 或 private。
|
378
|
+
|
379
|
+
:param zone_type: The zone_type of this ZoneData.
|
380
|
+
:type zone_type: str
|
381
|
+
"""
|
382
|
+
self._zone_type = zone_type
|
383
|
+
|
384
|
+
@property
|
385
|
+
def created_at(self):
|
386
|
+
"""Gets the created_at of this ZoneData.
|
387
|
+
|
388
|
+
创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
389
|
+
|
390
|
+
:return: The created_at of this ZoneData.
|
391
|
+
:rtype: str
|
392
|
+
"""
|
393
|
+
return self._created_at
|
394
|
+
|
395
|
+
@created_at.setter
|
396
|
+
def created_at(self, created_at):
|
397
|
+
"""Sets the created_at of this ZoneData.
|
398
|
+
|
399
|
+
创建时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
400
|
+
|
401
|
+
:param created_at: The created_at of this ZoneData.
|
402
|
+
:type created_at: str
|
403
|
+
"""
|
404
|
+
self._created_at = created_at
|
405
|
+
|
406
|
+
@property
|
407
|
+
def updated_at(self):
|
408
|
+
"""Gets the updated_at of this ZoneData.
|
409
|
+
|
410
|
+
更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
411
|
+
|
412
|
+
:return: The updated_at of this ZoneData.
|
413
|
+
:rtype: str
|
414
|
+
"""
|
415
|
+
return self._updated_at
|
416
|
+
|
417
|
+
@updated_at.setter
|
418
|
+
def updated_at(self, updated_at):
|
419
|
+
"""Sets the updated_at of this ZoneData.
|
420
|
+
|
421
|
+
更新时间。 采用UTC时间格式,格式为:YYYY-MM-DDTHH:MM:SSZ。
|
422
|
+
|
423
|
+
:param updated_at: The updated_at of this ZoneData.
|
424
|
+
:type updated_at: str
|
425
|
+
"""
|
426
|
+
self._updated_at = updated_at
|
427
|
+
|
428
|
+
@property
|
429
|
+
def record_num(self):
|
430
|
+
"""Gets the record_num of this ZoneData.
|
431
|
+
|
432
|
+
该zone下的recordset个数。
|
433
|
+
|
434
|
+
:return: The record_num of this ZoneData.
|
435
|
+
:rtype: str
|
436
|
+
"""
|
437
|
+
return self._record_num
|
438
|
+
|
439
|
+
@record_num.setter
|
440
|
+
def record_num(self, record_num):
|
441
|
+
"""Sets the record_num of this ZoneData.
|
442
|
+
|
443
|
+
该zone下的recordset个数。
|
444
|
+
|
445
|
+
:param record_num: The record_num of this ZoneData.
|
446
|
+
:type record_num: str
|
447
|
+
"""
|
448
|
+
self._record_num = record_num
|
449
|
+
|
450
|
+
@property
|
451
|
+
def links(self):
|
452
|
+
"""Gets the links of this ZoneData.
|
453
|
+
|
454
|
+
:return: The links of this ZoneData.
|
455
|
+
:rtype: :class:`huaweicloudsdkdns.v2.Link`
|
456
|
+
"""
|
457
|
+
return self._links
|
458
|
+
|
459
|
+
@links.setter
|
460
|
+
def links(self, links):
|
461
|
+
"""Sets the links of this ZoneData.
|
462
|
+
|
463
|
+
:param links: The links of this ZoneData.
|
464
|
+
:type links: :class:`huaweicloudsdkdns.v2.Link`
|
465
|
+
"""
|
466
|
+
self._links = links
|
467
|
+
|
468
|
+
def to_dict(self):
|
469
|
+
"""Returns the model properties as a dict"""
|
470
|
+
result = {}
|
471
|
+
|
472
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
473
|
+
value = getattr(self, attr)
|
474
|
+
if isinstance(value, list):
|
475
|
+
result[attr] = list(map(
|
476
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
477
|
+
value
|
478
|
+
))
|
479
|
+
elif hasattr(value, "to_dict"):
|
480
|
+
result[attr] = value.to_dict()
|
481
|
+
elif isinstance(value, dict):
|
482
|
+
result[attr] = dict(map(
|
483
|
+
lambda item: (item[0], item[1].to_dict())
|
484
|
+
if hasattr(item[1], "to_dict") else item,
|
485
|
+
value.items()
|
486
|
+
))
|
487
|
+
else:
|
488
|
+
if attr in self.sensitive_list:
|
489
|
+
result[attr] = "****"
|
490
|
+
else:
|
491
|
+
result[attr] = value
|
492
|
+
|
493
|
+
return result
|
494
|
+
|
495
|
+
def to_str(self):
|
496
|
+
"""Returns the string representation of the model"""
|
497
|
+
import simplejson as json
|
498
|
+
if six.PY2:
|
499
|
+
import sys
|
500
|
+
reload(sys)
|
501
|
+
sys.setdefaultencoding("utf-8")
|
502
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
503
|
+
|
504
|
+
def __repr__(self):
|
505
|
+
"""For `print`"""
|
506
|
+
return self.to_str()
|
507
|
+
|
508
|
+
def __eq__(self, other):
|
509
|
+
"""Returns true if both objects are equal"""
|
510
|
+
if not isinstance(other, ZoneData):
|
511
|
+
return False
|
512
|
+
|
513
|
+
return self.__dict__ == other.__dict__
|
514
|
+
|
515
|
+
def __ne__(self, other):
|
516
|
+
"""Returns true if both objects are not equal"""
|
517
|
+
return not self == other
|
@@ -42,6 +42,20 @@ class DnsRegion:
|
|
42
42
|
"https://dns.cn-south-2.myhuaweicloud.com")
|
43
43
|
AP_SOUTHEAST_4 = Region("ap-southeast-4",
|
44
44
|
"https://dns.ap-southeast-4.myhuaweicloud.com")
|
45
|
+
AE_AD_1 = Region("ae-ad-1",
|
46
|
+
"https://dns.ae-ad-1.myhuaweicloud.com")
|
47
|
+
RU_MOSCOW_1 = Region("ru-moscow-1",
|
48
|
+
"https://dns.ru-moscow-1.myhuaweicloud.com")
|
49
|
+
ME_EAST_1 = Region("me-east-1",
|
50
|
+
"https://dns.me-east-1.myhuaweicloud.com")
|
51
|
+
AP_SOUTHEAST_5 = Region("ap-southeast-5",
|
52
|
+
"https://dns.ap-southeast-5.myhuaweicloud.com")
|
53
|
+
CN_EAST_5 = Region("cn-east-5",
|
54
|
+
"https://dns.cn-east-5.myhuaweicloud.com")
|
55
|
+
CN_EAST_4 = Region("cn-east-4",
|
56
|
+
"https://dns.cn-east-4.myhuaweicloud.com")
|
57
|
+
TR_WEST_1 = Region("tr-west-1",
|
58
|
+
"https://dns.tr-west-1.myhuaweicloud.com")
|
45
59
|
|
46
60
|
static_fields = {
|
47
61
|
"cn-east-2": CN_EAST_2,
|
@@ -62,6 +76,13 @@ class DnsRegion:
|
|
62
76
|
"cn-north-2": CN_NORTH_2,
|
63
77
|
"cn-south-2": CN_SOUTH_2,
|
64
78
|
"ap-southeast-4": AP_SOUTHEAST_4,
|
79
|
+
"ae-ad-1": AE_AD_1,
|
80
|
+
"ru-moscow-1": RU_MOSCOW_1,
|
81
|
+
"me-east-1": ME_EAST_1,
|
82
|
+
"ap-southeast-5": AP_SOUTHEAST_5,
|
83
|
+
"cn-east-5": CN_EAST_5,
|
84
|
+
"cn-east-4": CN_EAST_4,
|
85
|
+
"tr-west-1": TR_WEST_1,
|
65
86
|
}
|
66
87
|
|
67
88
|
@classmethod
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkdns
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.132
|
4
4
|
Summary: DNS
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.132
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|