kingsoftcloud-sdk-python 1.5.8.111__py2.py3-none-any.whl → 1.5.8.112__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kingsoftcloud-sdk-python
3
- Version: 1.5.8.111
3
+ Version: 1.5.8.112
4
4
  Summary: Kingsoft Cloud SDK for Python
5
5
  Home-page: https://github.com/ksyun/ksyun-sdk-python
6
6
  Author: Kingsoft Cloud
@@ -1,5 +1,5 @@
1
- kingsoftcloud_sdk_python-1.5.8.111.dist-info/licenses/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
2
- ksyun/__init__.py,sha256=kq1bZtm0umTtsfc0zdORlMgdrX62rmn9sKT0xUNg-mA,625
1
+ kingsoftcloud_sdk_python-1.5.8.112.dist-info/licenses/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
2
+ ksyun/__init__.py,sha256=WtnMSdS-WOw6245eAu0vARLwVe4LPcf6itg0z7QehpA,625
3
3
  ksyun/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  ksyun/client/actiontrail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  ksyun/client/actiontrail/v20190401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -260,8 +260,8 @@ ksyun/client/monitor/v20250101/client.py,sha256=B_jltaqwL38SW_0mZx9qKRwyT3IHyWBW
260
260
  ksyun/client/monitor/v20250101/models.py,sha256=uIJpaUWXWU0RsNJv-ipPc8Sbaycykgdf4UcVUoh3F88,7937
261
261
  ksyun/client/pdns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
262
262
  ksyun/client/pdns/v20160304/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
263
- ksyun/client/pdns/v20160304/client.py,sha256=HFhav7_08auTyk3IkbL22jq_ceGx-ZvUj6zfS720Cl4,33749
264
- ksyun/client/pdns/v20160304/models.py,sha256=hWiAZIQjPEtX6kkBTS4Z4Ec6PUFruzDg--WjO7i6zs0,24849
263
+ ksyun/client/pdns/v20160304/client.py,sha256=VKlROVUPdVksbFkNoPpqAPx1EtKDrG47Ls66rcS3qJ8,35645
264
+ ksyun/client/pdns/v20160304/models.py,sha256=_2gmCz1sOWRrkk-ulbZszHJ5w1yUlWIFIS7bzidd3yE,27541
265
265
  ksyun/client/postgresql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
266
266
  ksyun/client/postgresql/v20181225/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
267
267
  ksyun/client/postgresql/v20181225/client.py,sha256=707uxvwZhNLrkOIVeFjDyATMKG3fFM5-FgMbZfZ_JZw,46740
@@ -345,7 +345,7 @@ ksyun/common/http/request.py,sha256=x8cWSnSQWFqitiTUZ1DAS4UVS96oR-K-X8adgeGmOmY,
345
345
  ksyun/common/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
346
346
  ksyun/common/profile/client_profile.py,sha256=RJGav6wx8kPnEQ1unEwzys1ZJuP9jUXCcAMleJDacqU,1594
347
347
  ksyun/common/profile/http_profile.py,sha256=pf_F81rldkVfDyUynNTIyjIIxrHqA3WsJ1oirTa9Rhg,2621
348
- kingsoftcloud_sdk_python-1.5.8.111.dist-info/METADATA,sha256=QfbQLMnP75iWBtLdLcqu6Vg_dLLRB-WO_8NZOy4YG58,2118
349
- kingsoftcloud_sdk_python-1.5.8.111.dist-info/WHEEL,sha256=4YBfCYNH4wlLpv3pzq1hbEuIlXA4WJabKLFurZ7eTL0,109
350
- kingsoftcloud_sdk_python-1.5.8.111.dist-info/top_level.txt,sha256=mzM04AZwi_rRte0l5x-qpr79yKptjcaFLfIPtRA-8Dk,6
351
- kingsoftcloud_sdk_python-1.5.8.111.dist-info/RECORD,,
348
+ kingsoftcloud_sdk_python-1.5.8.112.dist-info/METADATA,sha256=ZwtWFZHKQGfgvToNH2Ql8VvouSYopnCXTpBSIICgdL8,2118
349
+ kingsoftcloud_sdk_python-1.5.8.112.dist-info/WHEEL,sha256=4YBfCYNH4wlLpv3pzq1hbEuIlXA4WJabKLFurZ7eTL0,109
350
+ kingsoftcloud_sdk_python-1.5.8.112.dist-info/top_level.txt,sha256=mzM04AZwi_rRte0l5x-qpr79yKptjcaFLfIPtRA-8Dk,6
351
+ kingsoftcloud_sdk_python-1.5.8.112.dist-info/RECORD,,
ksyun/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '1.5.8.111'
17
+ __version__ = '1.5.8.112'
@@ -813,6 +813,52 @@ class PdnsClient(AbstractClient):
813
813
  raise KsyunSDKException(message=str(e))
814
814
 
815
815
 
816
+ def SetPdnsDeleteProtection(self, request):
817
+ """设置私有Zone删除保护
818
+ :param request: Request instance for SetPdnsDeleteProtection.
819
+ :type request: :class:`ksyun.client.pdns.v20160304.models.SetPdnsDeleteProtectionRequest`
820
+ """
821
+ try:
822
+ params = request._serialize()
823
+ body = self.call_judge("SetPdnsDeleteProtection", params, "application/x-www-form-urlencoded")
824
+ response = json.loads(body)
825
+ if "Error" not in response:
826
+ return body
827
+ else:
828
+ code = response["Error"]["Code"]
829
+ message = response["Error"]["Message"]
830
+ req_id = response["RequestId"]
831
+ raise KsyunSDKException(code, message, req_id)
832
+ except Exception as e:
833
+ if isinstance(e, KsyunSDKException):
834
+ raise
835
+ else:
836
+ raise KsyunSDKException(message=str(e))
837
+
838
+
839
+ def SetPdnsModifyProtection(self, request):
840
+ """设置私有Zone修改保护
841
+ :param request: Request instance for SetPdnsModifyProtection.
842
+ :type request: :class:`ksyun.client.pdns.v20160304.models.SetPdnsModifyProtectionRequest`
843
+ """
844
+ try:
845
+ params = request._serialize()
846
+ body = self.call_judge("SetPdnsModifyProtection", params, "application/x-www-form-urlencoded")
847
+ response = json.loads(body)
848
+ if "Error" not in response:
849
+ return body
850
+ else:
851
+ code = response["Error"]["Code"]
852
+ message = response["Error"]["Message"]
853
+ req_id = response["RequestId"]
854
+ raise KsyunSDKException(code, message, req_id)
855
+ except Exception as e:
856
+ if isinstance(e, KsyunSDKException):
857
+ raise
858
+ else:
859
+ raise KsyunSDKException(message=str(e))
860
+
861
+
816
862
  def BatchCreateZoneRecord(self, request):
817
863
  """批量新增ZoneRecord
818
864
  :param request: Request instance for BatchCreateZoneRecord.
@@ -300,12 +300,24 @@ class CreatePdnsZoneRequest(AbstractModel):
300
300
  :type PathPrefix: String
301
301
  :param ChargeType: 有效值:
302
302
  TrafficMonthly:按量付费(流量月结)。
303
+ :type PathPrefix: String
304
+ :param ProxyPattern: 内网 Zone的子域名递归解析代理模式
305
+ 有效值:
306
+ AUTHORITY:当前Zone未开启递归解析代理(创建默认值)
307
+ RECURSIVE:当前Zone开启递归解析代理
308
+ :type PathPrefix: String
309
+ :param DeleteProtection: 是否开启删除保护on/off
310
+ :type PathPrefix: String
311
+ :param ModifyProtection: 是否开启修改保护on/off
303
312
  :type PathPrefix: String
304
313
  """
305
314
  self.ZoneName = None
306
315
  self.ZoneTtl = None
307
316
  self.ProjectId = None
308
317
  self.ChargeType = None
318
+ self.ProxyPattern = None
319
+ self.DeleteProtection = None
320
+ self.ModifyProtection = None
309
321
 
310
322
  def _deserialize(self, params):
311
323
  if params.get("ZoneName"):
@@ -316,6 +328,12 @@ TrafficMonthly:按量付费(流量月结)。
316
328
  self.ProjectId = params.get("ProjectId")
317
329
  if params.get("ChargeType"):
318
330
  self.ChargeType = params.get("ChargeType")
331
+ if params.get("ProxyPattern"):
332
+ self.ProxyPattern = params.get("ProxyPattern")
333
+ if params.get("DeleteProtection"):
334
+ self.DeleteProtection = params.get("DeleteProtection")
335
+ if params.get("ModifyProtection"):
336
+ self.ModifyProtection = params.get("ModifyProtection")
319
337
 
320
338
 
321
339
  class ModifyPdnsZoneRequest(AbstractModel):
@@ -328,15 +346,23 @@ class ModifyPdnsZoneRequest(AbstractModel):
328
346
  :type PathPrefix: String
329
347
  :param ZoneTtl: TTL
330
348
  :type PathPrefix: Int
349
+ :param ProxyPattern: 内网Zone的子域名递归解析代理模式
350
+ 有效值:
351
+ AUTHORITY:当前Zone未开启递归解析代理
352
+ RECURSIVE:当前Zone开启递归解析代理
353
+ :type PathPrefix: String
331
354
  """
332
355
  self.ZoneId = None
333
356
  self.ZoneTtl = None
357
+ self.ProxyPattern = None
334
358
 
335
359
  def _deserialize(self, params):
336
360
  if params.get("ZoneId"):
337
361
  self.ZoneId = params.get("ZoneId")
338
362
  if params.get("ZoneTtl"):
339
363
  self.ZoneTtl = params.get("ZoneTtl")
364
+ if params.get("ProxyPattern"):
365
+ self.ProxyPattern = params.get("ProxyPattern")
340
366
 
341
367
 
342
368
  class DeletePdnsZoneRequest(AbstractModel):
@@ -367,10 +393,13 @@ class DescribePdnsZonesRequest(AbstractModel):
367
393
  :type PathPrefix: Int
368
394
  :param NextToken: 获取另一页返回结果的 token.
369
395
  :type PathPrefix: String
396
+ :param ZoneName: ZoneName查询
397
+ :type PathPrefix: Filter
370
398
  """
371
399
  self.Filter = None
372
400
  self.MaxResults = None
373
401
  self.NextToken = None
402
+ self.ZoneName = None
374
403
 
375
404
  def _deserialize(self, params):
376
405
  if params.get("Filter"):
@@ -379,6 +408,8 @@ class DescribePdnsZonesRequest(AbstractModel):
379
408
  self.MaxResults = params.get("MaxResults")
380
409
  if params.get("NextToken"):
381
410
  self.NextToken = params.get("NextToken")
411
+ if params.get("ZoneName"):
412
+ self.ZoneName = params.get("ZoneName")
382
413
 
383
414
 
384
415
  class BindZoneVpcRequest(AbstractModel):
@@ -828,6 +859,48 @@ class CreateEndPointRequest(AbstractModel):
828
859
  self.IpConfig = params.get("IpConfig")
829
860
 
830
861
 
862
+ class SetPdnsDeleteProtectionRequest(AbstractModel):
863
+ """SetPdnsDeleteProtection请求参数结构体
864
+ """
865
+
866
+ def __init__(self):
867
+ r"""设置私有Zone删除保护
868
+ :param ZoneId: Zone的ID
869
+ :type PathPrefix: String
870
+ :param DeleteProtection: 是否开启删除保护on/off
871
+ :type PathPrefix: String
872
+ """
873
+ self.ZoneId = None
874
+ self.DeleteProtection = None
875
+
876
+ def _deserialize(self, params):
877
+ if params.get("ZoneId"):
878
+ self.ZoneId = params.get("ZoneId")
879
+ if params.get("DeleteProtection"):
880
+ self.DeleteProtection = params.get("DeleteProtection")
881
+
882
+
883
+ class SetPdnsModifyProtectionRequest(AbstractModel):
884
+ """SetPdnsModifyProtection请求参数结构体
885
+ """
886
+
887
+ def __init__(self):
888
+ r"""设置私有Zone修改保护
889
+ :param ZoneId: Zone的ID
890
+ :type PathPrefix: String
891
+ :param ModifyProtection: 是否开启修改保护on/off
892
+ :type PathPrefix: String
893
+ """
894
+ self.ZoneId = None
895
+ self.ModifyProtection = None
896
+
897
+ def _deserialize(self, params):
898
+ if params.get("ZoneId"):
899
+ self.ZoneId = params.get("ZoneId")
900
+ if params.get("ModifyProtection"):
901
+ self.ModifyProtection = params.get("ModifyProtection")
902
+
903
+
831
904
  class BatchCreateZoneRecordRequest(AbstractModel):
832
905
  """BatchCreateZoneRecord请求参数结构体
833
906
  """