ucloud-sdk-python3 0.11.145__py3-none-any.whl → 0.11.147__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.
@@ -141,6 +141,32 @@ class UDNSClient(Client):
141
141
  resp = self.invoke("DeleteUDNSRecord", d, **kwargs)
142
142
  return apis.DeleteUDNSRecordResponseSchema().loads(resp)
143
143
 
144
+ def delete_udns_zone(
145
+ self, req: typing.Optional[dict] = None, **kwargs
146
+ ) -> dict:
147
+ """DeleteUDNSZone - 删除域名
148
+
149
+ **Request**
150
+
151
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
152
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
153
+ - **DNSZoneId** (str) - (Required) 域名资源ID
154
+
155
+ **Response**
156
+
157
+
158
+ """
159
+ # build request
160
+ d = {
161
+ "ProjectId": self.config.project_id,
162
+ "Region": self.config.region,
163
+ }
164
+ req and d.update(req)
165
+ d = apis.DeleteUDNSZoneRequestSchema().dumps(d)
166
+
167
+ resp = self.invoke("DeleteUDNSZone", d, **kwargs)
168
+ return apis.DeleteUDNSZoneResponseSchema().loads(resp)
169
+
144
170
  def describe_udns_domain(
145
171
  self, req: typing.Optional[dict] = None, **kwargs
146
172
  ) -> dict:
@@ -296,6 +322,55 @@ class UDNSClient(Client):
296
322
  resp = self.invoke("DescribeUDNSZone", d, **kwargs)
297
323
  return apis.DescribeUDNSZoneResponseSchema().loads(resp)
298
324
 
325
+ def describe_udns_zone_by_vpc(
326
+ self, req: typing.Optional[dict] = None, **kwargs
327
+ ) -> dict:
328
+ """DescribeUDNSZoneByVPC - 根据VPC id 查询绑定的UDNSZone
329
+
330
+ **Request**
331
+
332
+ - **VPCId** (str) - (Required) VPC id
333
+
334
+ **Response**
335
+
336
+
337
+ """
338
+ # build request
339
+ d = {}
340
+ req and d.update(req)
341
+ d = apis.DescribeUDNSZoneByVPCRequestSchema().dumps(d)
342
+
343
+ resp = self.invoke("DescribeUDNSZoneByVPC", d, **kwargs)
344
+ return apis.DescribeUDNSZoneByVPCResponseSchema().loads(resp)
345
+
346
+ def describe_udns_zone_forward(
347
+ self, req: typing.Optional[dict] = None, **kwargs
348
+ ) -> dict:
349
+ """DescribeUDNSZoneForward - 获取域名转发配置
350
+
351
+ **Request**
352
+
353
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
354
+ - **DNSZoneId** (str) - (Required) 域名ID
355
+
356
+ **Response**
357
+
358
+ - **Servers** (list) - 转发目标DNS 服务器地址
359
+ - **VPCId** (str) - 转发目标VPC的ID
360
+ - **VPCProjectId** (str) - 转发目标VPC所属VPC
361
+ - **VPCRegion** (str) - 转发目标VPC所属地域
362
+
363
+ """
364
+ # build request
365
+ d = {
366
+ "ProjectId": self.config.project_id,
367
+ }
368
+ req and d.update(req)
369
+ d = apis.DescribeUDNSZoneForwardRequestSchema().dumps(d)
370
+
371
+ resp = self.invoke("DescribeUDNSZoneForward", d, **kwargs)
372
+ return apis.DescribeUDNSZoneForwardResponseSchema().loads(resp)
373
+
299
374
  def disassociate_udns_zone_vpc(
300
375
  self, req: typing.Optional[dict] = None, **kwargs
301
376
  ) -> dict:
@@ -366,7 +441,7 @@ class UDNSClient(Client):
366
441
  - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
367
442
  - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
368
443
  - **DNSZoneId** (str) - (Required) 域名资源ID
369
- - **IsRecursionEnabled** (str) - 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
444
+ - **IsRecursionEnabled** (str) - 是否支持递归。枚举值,"enable",支持; "disable",不支持
370
445
  - **Remark** (str) - 备注
371
446
 
372
447
  **Response**
@@ -121,6 +121,29 @@ class DeleteUDNSRecordResponseSchema(schema.ResponseSchema):
121
121
  fields = {}
122
122
 
123
123
 
124
+ """
125
+ API: DeleteUDNSZone
126
+
127
+ 删除域名
128
+ """
129
+
130
+
131
+ class DeleteUDNSZoneRequestSchema(schema.RequestSchema):
132
+ """DeleteUDNSZone - 删除域名"""
133
+
134
+ fields = {
135
+ "DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
136
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
137
+ "Region": fields.Str(required=True, dump_to="Region"),
138
+ }
139
+
140
+
141
+ class DeleteUDNSZoneResponseSchema(schema.ResponseSchema):
142
+ """DeleteUDNSZone - 删除域名"""
143
+
144
+ fields = {}
145
+
146
+
124
147
  """
125
148
  API: DescribeUDNSDomain
126
149
 
@@ -216,6 +239,56 @@ class DescribeUDNSZoneResponseSchema(schema.ResponseSchema):
216
239
  }
217
240
 
218
241
 
242
+ """
243
+ API: DescribeUDNSZoneByVPC
244
+
245
+ 根据VPC id 查询绑定的UDNSZone
246
+ """
247
+
248
+
249
+ class DescribeUDNSZoneByVPCRequestSchema(schema.RequestSchema):
250
+ """DescribeUDNSZoneByVPC - 根据VPC id 查询绑定的UDNSZone"""
251
+
252
+ fields = {
253
+ "VPCId": fields.Str(required=True, dump_to="VPCId"),
254
+ }
255
+
256
+
257
+ class DescribeUDNSZoneByVPCResponseSchema(schema.ResponseSchema):
258
+ """DescribeUDNSZoneByVPC - 根据VPC id 查询绑定的UDNSZone"""
259
+
260
+ fields = {}
261
+
262
+
263
+ """
264
+ API: DescribeUDNSZoneForward
265
+
266
+ 获取域名转发配置
267
+ """
268
+
269
+
270
+ class DescribeUDNSZoneForwardRequestSchema(schema.RequestSchema):
271
+ """DescribeUDNSZoneForward - 获取域名转发配置"""
272
+
273
+ fields = {
274
+ "DNSZoneId": fields.Str(required=True, dump_to="DNSZoneId"),
275
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
276
+ }
277
+
278
+
279
+ class DescribeUDNSZoneForwardResponseSchema(schema.ResponseSchema):
280
+ """DescribeUDNSZoneForward - 获取域名转发配置"""
281
+
282
+ fields = {
283
+ "Servers": fields.List(
284
+ fields.Str(), required=False, load_from="Servers"
285
+ ),
286
+ "VPCId": fields.Str(required=False, load_from="VPCId"),
287
+ "VPCProjectId": fields.Str(required=False, load_from="VPCProjectId"),
288
+ "VPCRegion": fields.Str(required=False, load_from="VPCRegion"),
289
+ }
290
+
291
+
219
292
  """
220
293
  API: DisassociateUDNSZoneVPC
221
294