tencentcloud-sdk-python 3.0.1179__py2.py3-none-any.whl → 3.0.1180__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.
@@ -1274,6 +1274,98 @@ class VpcClient(AbstractClient):
1274
1274
  raise TencentCloudSDKException(type(e).__name__, str(e))
1275
1275
 
1276
1276
 
1277
+ def CreatePrivateNatGateway(self, request):
1278
+ """本接口(CreatePrivateNatGateway)用于创建私网NAT网关。
1279
+
1280
+ :param request: Request instance for CreatePrivateNatGateway.
1281
+ :type request: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayRequest`
1282
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayResponse`
1283
+
1284
+ """
1285
+ try:
1286
+ params = request._serialize()
1287
+ headers = request.headers
1288
+ body = self.call("CreatePrivateNatGateway", params, headers=headers)
1289
+ response = json.loads(body)
1290
+ model = models.CreatePrivateNatGatewayResponse()
1291
+ model._deserialize(response["Response"])
1292
+ return model
1293
+ except Exception as e:
1294
+ if isinstance(e, TencentCloudSDKException):
1295
+ raise
1296
+ else:
1297
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1298
+
1299
+
1300
+ def CreatePrivateNatGatewayDestinationIpPortTranslationNatRule(self, request):
1301
+ """本接口(CreatePrivateNatGatewayDestinationIpPortTranslationNatRule)用于创建私网NAT网关目的端口转换规则
1302
+
1303
+ :param request: Request instance for CreatePrivateNatGatewayDestinationIpPortTranslationNatRule.
1304
+ :type request: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
1305
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
1306
+
1307
+ """
1308
+ try:
1309
+ params = request._serialize()
1310
+ headers = request.headers
1311
+ body = self.call("CreatePrivateNatGatewayDestinationIpPortTranslationNatRule", params, headers=headers)
1312
+ response = json.loads(body)
1313
+ model = models.CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse()
1314
+ model._deserialize(response["Response"])
1315
+ return model
1316
+ except Exception as e:
1317
+ if isinstance(e, TencentCloudSDKException):
1318
+ raise
1319
+ else:
1320
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1321
+
1322
+
1323
+ def CreatePrivateNatGatewayTranslationAclRule(self, request):
1324
+ """本接口( CreatePrivateNatGatewayTranslationAclRule)用于创建私网NAT网关源端转换访问控制规则
1325
+
1326
+ :param request: Request instance for CreatePrivateNatGatewayTranslationAclRule.
1327
+ :type request: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayTranslationAclRuleRequest`
1328
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayTranslationAclRuleResponse`
1329
+
1330
+ """
1331
+ try:
1332
+ params = request._serialize()
1333
+ headers = request.headers
1334
+ body = self.call("CreatePrivateNatGatewayTranslationAclRule", params, headers=headers)
1335
+ response = json.loads(body)
1336
+ model = models.CreatePrivateNatGatewayTranslationAclRuleResponse()
1337
+ model._deserialize(response["Response"])
1338
+ return model
1339
+ except Exception as e:
1340
+ if isinstance(e, TencentCloudSDKException):
1341
+ raise
1342
+ else:
1343
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1344
+
1345
+
1346
+ def CreatePrivateNatGatewayTranslationNatRule(self, request):
1347
+ """本接口(CreatePrivateNatGatewayTranslationNatRule)用于创建私网NAT网关源端转换规则。
1348
+
1349
+ :param request: Request instance for CreatePrivateNatGatewayTranslationNatRule.
1350
+ :type request: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayTranslationNatRuleRequest`
1351
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.CreatePrivateNatGatewayTranslationNatRuleResponse`
1352
+
1353
+ """
1354
+ try:
1355
+ params = request._serialize()
1356
+ headers = request.headers
1357
+ body = self.call("CreatePrivateNatGatewayTranslationNatRule", params, headers=headers)
1358
+ response = json.loads(body)
1359
+ model = models.CreatePrivateNatGatewayTranslationNatRuleResponse()
1360
+ model._deserialize(response["Response"])
1361
+ return model
1362
+ except Exception as e:
1363
+ if isinstance(e, TencentCloudSDKException):
1364
+ raise
1365
+ else:
1366
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1367
+
1368
+
1277
1369
  def CreateRouteTable(self, request):
1278
1370
  """本接口(CreateRouteTable)用于创建路由表。
1279
1371
  * 创建了VPC后,系统会创建一个默认路由表,所有新建的子网都会关联到默认路由表。默认情况下您可以直接使用默认路由表来管理您的路由策略。当您的路由策略较多时,您可以调用创建路由表接口创建更多路由表管理您的路由策略。
@@ -2311,6 +2403,98 @@ class VpcClient(AbstractClient):
2311
2403
  raise TencentCloudSDKException(type(e).__name__, str(e))
2312
2404
 
2313
2405
 
2406
+ def DeletePrivateNatGateway(self, request):
2407
+ """本接口(DeletePrivateNatGateway)用于删除私网NAT网关。
2408
+
2409
+ :param request: Request instance for DeletePrivateNatGateway.
2410
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayRequest`
2411
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayResponse`
2412
+
2413
+ """
2414
+ try:
2415
+ params = request._serialize()
2416
+ headers = request.headers
2417
+ body = self.call("DeletePrivateNatGateway", params, headers=headers)
2418
+ response = json.loads(body)
2419
+ model = models.DeletePrivateNatGatewayResponse()
2420
+ model._deserialize(response["Response"])
2421
+ return model
2422
+ except Exception as e:
2423
+ if isinstance(e, TencentCloudSDKException):
2424
+ raise
2425
+ else:
2426
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2427
+
2428
+
2429
+ def DeletePrivateNatGatewayDestinationIpPortTranslationNatRule(self, request):
2430
+ """本接口(DeletePrivateNatGatewayDestinationIpPortTranslationNatRule)用于删除私网NAT网关目的端口转换规则
2431
+
2432
+ :param request: Request instance for DeletePrivateNatGatewayDestinationIpPortTranslationNatRule.
2433
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
2434
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
2435
+
2436
+ """
2437
+ try:
2438
+ params = request._serialize()
2439
+ headers = request.headers
2440
+ body = self.call("DeletePrivateNatGatewayDestinationIpPortTranslationNatRule", params, headers=headers)
2441
+ response = json.loads(body)
2442
+ model = models.DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse()
2443
+ model._deserialize(response["Response"])
2444
+ return model
2445
+ except Exception as e:
2446
+ if isinstance(e, TencentCloudSDKException):
2447
+ raise
2448
+ else:
2449
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2450
+
2451
+
2452
+ def DeletePrivateNatGatewayTranslationAclRule(self, request):
2453
+ """本接口(DeletePrivateNatGatewayTranslationAclRule)用于删除私网NAT网关源端转换访问控制规则
2454
+
2455
+ :param request: Request instance for DeletePrivateNatGatewayTranslationAclRule.
2456
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayTranslationAclRuleRequest`
2457
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayTranslationAclRuleResponse`
2458
+
2459
+ """
2460
+ try:
2461
+ params = request._serialize()
2462
+ headers = request.headers
2463
+ body = self.call("DeletePrivateNatGatewayTranslationAclRule", params, headers=headers)
2464
+ response = json.loads(body)
2465
+ model = models.DeletePrivateNatGatewayTranslationAclRuleResponse()
2466
+ model._deserialize(response["Response"])
2467
+ return model
2468
+ except Exception as e:
2469
+ if isinstance(e, TencentCloudSDKException):
2470
+ raise
2471
+ else:
2472
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2473
+
2474
+
2475
+ def DeletePrivateNatGatewayTranslationNatRule(self, request):
2476
+ """本接口(DeletePrivateNatGatewayTranslationNatRule)用于删除私网NAT网关源端转换规则
2477
+
2478
+ :param request: Request instance for DeletePrivateNatGatewayTranslationNatRule.
2479
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayTranslationNatRuleRequest`
2480
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DeletePrivateNatGatewayTranslationNatRuleResponse`
2481
+
2482
+ """
2483
+ try:
2484
+ params = request._serialize()
2485
+ headers = request.headers
2486
+ body = self.call("DeletePrivateNatGatewayTranslationNatRule", params, headers=headers)
2487
+ response = json.loads(body)
2488
+ model = models.DeletePrivateNatGatewayTranslationNatRuleResponse()
2489
+ model._deserialize(response["Response"])
2490
+ return model
2491
+ except Exception as e:
2492
+ if isinstance(e, TencentCloudSDKException):
2493
+ raise
2494
+ else:
2495
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2496
+
2497
+
2314
2498
  def DeleteRouteTable(self, request):
2315
2499
  """本接口(DeleteRouteTable)用于删除路由表。
2316
2500
 
@@ -3826,6 +4010,144 @@ class VpcClient(AbstractClient):
3826
4010
  raise TencentCloudSDKException(type(e).__name__, str(e))
3827
4011
 
3828
4012
 
4013
+ def DescribePrivateNatGatewayDestinationIpPortTranslationNatRules(self, request):
4014
+ """本接口(DescribePrivateNatGatewayDestinationIpPortTranslationNatRules)用于查询私网NAT网关目的端口转换规则
4015
+
4016
+ :param request: Request instance for DescribePrivateNatGatewayDestinationIpPortTranslationNatRules.
4017
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesRequest`
4018
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesResponse`
4019
+
4020
+ """
4021
+ try:
4022
+ params = request._serialize()
4023
+ headers = request.headers
4024
+ body = self.call("DescribePrivateNatGatewayDestinationIpPortTranslationNatRules", params, headers=headers)
4025
+ response = json.loads(body)
4026
+ model = models.DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesResponse()
4027
+ model._deserialize(response["Response"])
4028
+ return model
4029
+ except Exception as e:
4030
+ if isinstance(e, TencentCloudSDKException):
4031
+ raise
4032
+ else:
4033
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4034
+
4035
+
4036
+ def DescribePrivateNatGatewayLimits(self, request):
4037
+ """本接口(DescribePrivateNatGatewayLimits)用于查询可创建的私网NAT网关配额数量
4038
+
4039
+ :param request: Request instance for DescribePrivateNatGatewayLimits.
4040
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayLimitsRequest`
4041
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayLimitsResponse`
4042
+
4043
+ """
4044
+ try:
4045
+ params = request._serialize()
4046
+ headers = request.headers
4047
+ body = self.call("DescribePrivateNatGatewayLimits", params, headers=headers)
4048
+ response = json.loads(body)
4049
+ model = models.DescribePrivateNatGatewayLimitsResponse()
4050
+ model._deserialize(response["Response"])
4051
+ return model
4052
+ except Exception as e:
4053
+ if isinstance(e, TencentCloudSDKException):
4054
+ raise
4055
+ else:
4056
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4057
+
4058
+
4059
+ def DescribePrivateNatGatewayRegions(self, request):
4060
+ """本接口(DescribePrivateNatGatewayRegions)用于查询查询私网NAT网关可支持地域
4061
+
4062
+ :param request: Request instance for DescribePrivateNatGatewayRegions.
4063
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayRegionsRequest`
4064
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayRegionsResponse`
4065
+
4066
+ """
4067
+ try:
4068
+ params = request._serialize()
4069
+ headers = request.headers
4070
+ body = self.call("DescribePrivateNatGatewayRegions", params, headers=headers)
4071
+ response = json.loads(body)
4072
+ model = models.DescribePrivateNatGatewayRegionsResponse()
4073
+ model._deserialize(response["Response"])
4074
+ return model
4075
+ except Exception as e:
4076
+ if isinstance(e, TencentCloudSDKException):
4077
+ raise
4078
+ else:
4079
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4080
+
4081
+
4082
+ def DescribePrivateNatGatewayTranslationAclRules(self, request):
4083
+ """本接口(DescribePrivateNatGatewayTranslationAclRules)用于查询私网NAT网关源端转换访问控制规则
4084
+
4085
+ :param request: Request instance for DescribePrivateNatGatewayTranslationAclRules.
4086
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayTranslationAclRulesRequest`
4087
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayTranslationAclRulesResponse`
4088
+
4089
+ """
4090
+ try:
4091
+ params = request._serialize()
4092
+ headers = request.headers
4093
+ body = self.call("DescribePrivateNatGatewayTranslationAclRules", params, headers=headers)
4094
+ response = json.loads(body)
4095
+ model = models.DescribePrivateNatGatewayTranslationAclRulesResponse()
4096
+ model._deserialize(response["Response"])
4097
+ return model
4098
+ except Exception as e:
4099
+ if isinstance(e, TencentCloudSDKException):
4100
+ raise
4101
+ else:
4102
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4103
+
4104
+
4105
+ def DescribePrivateNatGatewayTranslationNatRules(self, request):
4106
+ """本接口(DescribePrivateNatGatewayTranslationNatRules)用于查询私网NAT网关源端转换规则
4107
+
4108
+ :param request: Request instance for DescribePrivateNatGatewayTranslationNatRules.
4109
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayTranslationNatRulesRequest`
4110
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewayTranslationNatRulesResponse`
4111
+
4112
+ """
4113
+ try:
4114
+ params = request._serialize()
4115
+ headers = request.headers
4116
+ body = self.call("DescribePrivateNatGatewayTranslationNatRules", params, headers=headers)
4117
+ response = json.loads(body)
4118
+ model = models.DescribePrivateNatGatewayTranslationNatRulesResponse()
4119
+ model._deserialize(response["Response"])
4120
+ return model
4121
+ except Exception as e:
4122
+ if isinstance(e, TencentCloudSDKException):
4123
+ raise
4124
+ else:
4125
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4126
+
4127
+
4128
+ def DescribePrivateNatGateways(self, request):
4129
+ """本接口(DescribePrivateNatGateways)用于查询私网NAT网关
4130
+
4131
+ :param request: Request instance for DescribePrivateNatGateways.
4132
+ :type request: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewaysRequest`
4133
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.DescribePrivateNatGatewaysResponse`
4134
+
4135
+ """
4136
+ try:
4137
+ params = request._serialize()
4138
+ headers = request.headers
4139
+ body = self.call("DescribePrivateNatGateways", params, headers=headers)
4140
+ response = json.loads(body)
4141
+ model = models.DescribePrivateNatGatewaysResponse()
4142
+ model._deserialize(response["Response"])
4143
+ return model
4144
+ except Exception as e:
4145
+ if isinstance(e, TencentCloudSDKException):
4146
+ raise
4147
+ else:
4148
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4149
+
4150
+
3829
4151
  def DescribeProductQuota(self, request):
3830
4152
  """本接口(DescribeProductQuota)用于查询网络产品的配额信息。
3831
4153
 
@@ -6379,6 +6701,98 @@ class VpcClient(AbstractClient):
6379
6701
  raise TencentCloudSDKException(type(e).__name__, str(e))
6380
6702
 
6381
6703
 
6704
+ def ModifyPrivateNatGatewayAttribute(self, request):
6705
+ """本接口(ModifyPrivateNatGatewayAttribute)用于修改私网NAT网关属性
6706
+
6707
+ :param request: Request instance for ModifyPrivateNatGatewayAttribute.
6708
+ :type request: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayAttributeRequest`
6709
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayAttributeResponse`
6710
+
6711
+ """
6712
+ try:
6713
+ params = request._serialize()
6714
+ headers = request.headers
6715
+ body = self.call("ModifyPrivateNatGatewayAttribute", params, headers=headers)
6716
+ response = json.loads(body)
6717
+ model = models.ModifyPrivateNatGatewayAttributeResponse()
6718
+ model._deserialize(response["Response"])
6719
+ return model
6720
+ except Exception as e:
6721
+ if isinstance(e, TencentCloudSDKException):
6722
+ raise
6723
+ else:
6724
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6725
+
6726
+
6727
+ def ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule(self, request):
6728
+ """本接口(ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule)用于修改私网NAT网关目的端口转换规则
6729
+
6730
+ :param request: Request instance for ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule.
6731
+ :type request: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
6732
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
6733
+
6734
+ """
6735
+ try:
6736
+ params = request._serialize()
6737
+ headers = request.headers
6738
+ body = self.call("ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule", params, headers=headers)
6739
+ response = json.loads(body)
6740
+ model = models.ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleResponse()
6741
+ model._deserialize(response["Response"])
6742
+ return model
6743
+ except Exception as e:
6744
+ if isinstance(e, TencentCloudSDKException):
6745
+ raise
6746
+ else:
6747
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6748
+
6749
+
6750
+ def ModifyPrivateNatGatewayTranslationAclRule(self, request):
6751
+ """本接口(ModifyPrivateNatGatewayTranslationAclRule)用于修改私网NAT网关源端转换访问控制规则
6752
+
6753
+ :param request: Request instance for ModifyPrivateNatGatewayTranslationAclRule.
6754
+ :type request: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayTranslationAclRuleRequest`
6755
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayTranslationAclRuleResponse`
6756
+
6757
+ """
6758
+ try:
6759
+ params = request._serialize()
6760
+ headers = request.headers
6761
+ body = self.call("ModifyPrivateNatGatewayTranslationAclRule", params, headers=headers)
6762
+ response = json.loads(body)
6763
+ model = models.ModifyPrivateNatGatewayTranslationAclRuleResponse()
6764
+ model._deserialize(response["Response"])
6765
+ return model
6766
+ except Exception as e:
6767
+ if isinstance(e, TencentCloudSDKException):
6768
+ raise
6769
+ else:
6770
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6771
+
6772
+
6773
+ def ModifyPrivateNatGatewayTranslationNatRule(self, request):
6774
+ """本接口(ModifyPrivateNatGatewayTranslationNatRule)用于修改私网NAT网关源端转换规则
6775
+
6776
+ :param request: Request instance for ModifyPrivateNatGatewayTranslationNatRule.
6777
+ :type request: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayTranslationNatRuleRequest`
6778
+ :rtype: :class:`tencentcloud.vpc.v20170312.models.ModifyPrivateNatGatewayTranslationNatRuleResponse`
6779
+
6780
+ """
6781
+ try:
6782
+ params = request._serialize()
6783
+ headers = request.headers
6784
+ body = self.call("ModifyPrivateNatGatewayTranslationNatRule", params, headers=headers)
6785
+ response = json.loads(body)
6786
+ model = models.ModifyPrivateNatGatewayTranslationNatRuleResponse()
6787
+ model._deserialize(response["Response"])
6788
+ return model
6789
+ except Exception as e:
6790
+ if isinstance(e, TencentCloudSDKException):
6791
+ raise
6792
+ else:
6793
+ raise TencentCloudSDKException(type(e).__name__, str(e))
6794
+
6795
+
6382
6796
  def ModifyRouteTableAttribute(self, request):
6383
6797
  """本接口(ModifyRouteTableAttribute)用于修改路由表(RouteTable)属性。
6384
6798
 
@@ -20308,80 +20308,6 @@ class MiniPkg(AbstractModel):
20308
20308
 
20309
20309
 
20310
20310
 
20311
- class ModifyAccessPeriodRequest(AbstractModel):
20312
- """ModifyAccessPeriod请求参数结构体
20313
-
20314
- """
20315
-
20316
- def __init__(self):
20317
- r"""
20318
- :param _Period: 访问日志保存期限,范围为[1, 180]
20319
- :type Period: int
20320
- :param _TopicId: 日志主题,新版本不需要再传
20321
- :type TopicId: str
20322
- """
20323
- self._Period = None
20324
- self._TopicId = None
20325
-
20326
- @property
20327
- def Period(self):
20328
- return self._Period
20329
-
20330
- @Period.setter
20331
- def Period(self, Period):
20332
- self._Period = Period
20333
-
20334
- @property
20335
- def TopicId(self):
20336
- warnings.warn("parameter `TopicId` is deprecated", DeprecationWarning)
20337
-
20338
- return self._TopicId
20339
-
20340
- @TopicId.setter
20341
- def TopicId(self, TopicId):
20342
- warnings.warn("parameter `TopicId` is deprecated", DeprecationWarning)
20343
-
20344
- self._TopicId = TopicId
20345
-
20346
-
20347
- def _deserialize(self, params):
20348
- self._Period = params.get("Period")
20349
- self._TopicId = params.get("TopicId")
20350
- memeber_set = set(params.keys())
20351
- for name, value in vars(self).items():
20352
- property_name = name[1:]
20353
- if property_name in memeber_set:
20354
- memeber_set.remove(property_name)
20355
- if len(memeber_set) > 0:
20356
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20357
-
20358
-
20359
-
20360
- class ModifyAccessPeriodResponse(AbstractModel):
20361
- """ModifyAccessPeriod返回参数结构体
20362
-
20363
- """
20364
-
20365
- def __init__(self):
20366
- r"""
20367
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20368
- :type RequestId: str
20369
- """
20370
- self._RequestId = None
20371
-
20372
- @property
20373
- def RequestId(self):
20374
- return self._RequestId
20375
-
20376
- @RequestId.setter
20377
- def RequestId(self, RequestId):
20378
- self._RequestId = RequestId
20379
-
20380
-
20381
- def _deserialize(self, params):
20382
- self._RequestId = params.get("RequestId")
20383
-
20384
-
20385
20311
  class ModifyAntiFakeUrlRequest(AbstractModel):
20386
20312
  """ModifyAntiFakeUrl请求参数结构体
20387
20313
 
@@ -2171,29 +2171,6 @@ class WafClient(AbstractClient):
2171
2171
  raise TencentCloudSDKException(type(e).__name__, str(e))
2172
2172
 
2173
2173
 
2174
- def ModifyAccessPeriod(self, request):
2175
- """本接口用于修改访问日志保存期限等字段信息
2176
-
2177
- :param request: Request instance for ModifyAccessPeriod.
2178
- :type request: :class:`tencentcloud.waf.v20180125.models.ModifyAccessPeriodRequest`
2179
- :rtype: :class:`tencentcloud.waf.v20180125.models.ModifyAccessPeriodResponse`
2180
-
2181
- """
2182
- try:
2183
- params = request._serialize()
2184
- headers = request.headers
2185
- body = self.call("ModifyAccessPeriod", params, headers=headers)
2186
- response = json.loads(body)
2187
- model = models.ModifyAccessPeriodResponse()
2188
- model._deserialize(response["Response"])
2189
- return model
2190
- except Exception as e:
2191
- if isinstance(e, TencentCloudSDKException):
2192
- raise
2193
- else:
2194
- raise TencentCloudSDKException(type(e).__name__, str(e))
2195
-
2196
-
2197
2174
  def ModifyAntiFakeUrl(self, request):
2198
2175
  """编辑防篡改url
2199
2176