tencentcloud-sdk-vpc 3.0.854 → 3.0.855

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b2245339dde2a0abf4a24414aa5dabee552ca5c
4
- data.tar.gz: 5542e2c8cbce4e9a2e22ddc14ccbb0ef1b9610c7
3
+ metadata.gz: f6d38ebdd70a1ea40f2c4c3c008ae225ea9a633d
4
+ data.tar.gz: b07360dd138550abfa9b3677332cf6e9bd2b9b85
5
5
  SHA512:
6
- metadata.gz: 3e2011548b509bc514aea6240a2a604271e12d9b3e83c1f2fd070924199b4a28c75b2ce62b7a7a9ef63d59486f0b2ca756cf226fe8ea92ef9871684e7221ce79
7
- data.tar.gz: baf564782867e2301b53deed96ef66affea284c992fa5296eae89f292ba5f16103346b7fb4191e3d43c22b1d8d3731b52bae1ecbdf37e4a01cf0af2e906b9112
6
+ metadata.gz: 99bfe37679aa15d80ffd06da78f1e15959892bcfec0867dcafa1b1fe1a25264dbbad2d052dea89df5ec5c618033b689558a10be70f19cc336ea65b0cf8dfe053
7
+ data.tar.gz: effbb85fa11e4cbc559c9c1c209cea97f91982858a062f3685f072e55edb3a814a1a3f2489694d273ddc8b67e9cb77b21960db5d3ffcd16a3e88816d8670de9b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.854
1
+ 3.0.855
@@ -1328,6 +1328,102 @@ module TencentCloud
1328
1328
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1329
1329
  end
1330
1330
 
1331
+ # 本接口(CreatePrivateNatGateway)用于创建私网NAT网关。
1332
+
1333
+ # @param request: Request instance for CreatePrivateNatGateway.
1334
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayRequest`
1335
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayResponse`
1336
+ def CreatePrivateNatGateway(request)
1337
+ body = send_request('CreatePrivateNatGateway', request.serialize)
1338
+ response = JSON.parse(body)
1339
+ if response['Response'].key?('Error') == false
1340
+ model = CreatePrivateNatGatewayResponse.new
1341
+ model.deserialize(response['Response'])
1342
+ model
1343
+ else
1344
+ code = response['Response']['Error']['Code']
1345
+ message = response['Response']['Error']['Message']
1346
+ reqid = response['Response']['RequestId']
1347
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1348
+ end
1349
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1350
+ raise e
1351
+ rescue StandardError => e
1352
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1353
+ end
1354
+
1355
+ # 本接口(CreatePrivateNatGatewayDestinationIpPortTranslationNatRule)用于创建私网NAT网关目的端口转换规则
1356
+
1357
+ # @param request: Request instance for CreatePrivateNatGatewayDestinationIpPortTranslationNatRule.
1358
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
1359
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
1360
+ def CreatePrivateNatGatewayDestinationIpPortTranslationNatRule(request)
1361
+ body = send_request('CreatePrivateNatGatewayDestinationIpPortTranslationNatRule', request.serialize)
1362
+ response = JSON.parse(body)
1363
+ if response['Response'].key?('Error') == false
1364
+ model = CreatePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse.new
1365
+ model.deserialize(response['Response'])
1366
+ model
1367
+ else
1368
+ code = response['Response']['Error']['Code']
1369
+ message = response['Response']['Error']['Message']
1370
+ reqid = response['Response']['RequestId']
1371
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1372
+ end
1373
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1374
+ raise e
1375
+ rescue StandardError => e
1376
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1377
+ end
1378
+
1379
+ # 本接口( CreatePrivateNatGatewayTranslationAclRule)用于创建私网NAT网关源端转换访问控制规则
1380
+
1381
+ # @param request: Request instance for CreatePrivateNatGatewayTranslationAclRule.
1382
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayTranslationAclRuleRequest`
1383
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayTranslationAclRuleResponse`
1384
+ def CreatePrivateNatGatewayTranslationAclRule(request)
1385
+ body = send_request('CreatePrivateNatGatewayTranslationAclRule', request.serialize)
1386
+ response = JSON.parse(body)
1387
+ if response['Response'].key?('Error') == false
1388
+ model = CreatePrivateNatGatewayTranslationAclRuleResponse.new
1389
+ model.deserialize(response['Response'])
1390
+ model
1391
+ else
1392
+ code = response['Response']['Error']['Code']
1393
+ message = response['Response']['Error']['Message']
1394
+ reqid = response['Response']['RequestId']
1395
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1396
+ end
1397
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1398
+ raise e
1399
+ rescue StandardError => e
1400
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1401
+ end
1402
+
1403
+ # 本接口(CreatePrivateNatGatewayTranslationNatRule)用于创建私网NAT网关源端转换规则。
1404
+
1405
+ # @param request: Request instance for CreatePrivateNatGatewayTranslationNatRule.
1406
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayTranslationNatRuleRequest`
1407
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreatePrivateNatGatewayTranslationNatRuleResponse`
1408
+ def CreatePrivateNatGatewayTranslationNatRule(request)
1409
+ body = send_request('CreatePrivateNatGatewayTranslationNatRule', request.serialize)
1410
+ response = JSON.parse(body)
1411
+ if response['Response'].key?('Error') == false
1412
+ model = CreatePrivateNatGatewayTranslationNatRuleResponse.new
1413
+ model.deserialize(response['Response'])
1414
+ model
1415
+ else
1416
+ code = response['Response']['Error']['Code']
1417
+ message = response['Response']['Error']['Message']
1418
+ reqid = response['Response']['RequestId']
1419
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1420
+ end
1421
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1422
+ raise e
1423
+ rescue StandardError => e
1424
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1425
+ end
1426
+
1331
1427
  # 本接口(CreateRouteTable)用于创建路由表。
1332
1428
  # * 创建了VPC后,系统会创建一个默认路由表,所有新建的子网都会关联到默认路由表。默认情况下您可以直接使用默认路由表来管理您的路由策略。当您的路由策略较多时,您可以调用创建路由表接口创建更多路由表管理您的路由策略。
1333
1429
  # * 创建路由表同时可以绑定标签, 应答里的标签列表代表添加成功的标签。
@@ -2407,6 +2503,102 @@ module TencentCloud
2407
2503
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2408
2504
  end
2409
2505
 
2506
+ # 本接口(DeletePrivateNatGateway)用于删除私网NAT网关。
2507
+
2508
+ # @param request: Request instance for DeletePrivateNatGateway.
2509
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayRequest`
2510
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayResponse`
2511
+ def DeletePrivateNatGateway(request)
2512
+ body = send_request('DeletePrivateNatGateway', request.serialize)
2513
+ response = JSON.parse(body)
2514
+ if response['Response'].key?('Error') == false
2515
+ model = DeletePrivateNatGatewayResponse.new
2516
+ model.deserialize(response['Response'])
2517
+ model
2518
+ else
2519
+ code = response['Response']['Error']['Code']
2520
+ message = response['Response']['Error']['Message']
2521
+ reqid = response['Response']['RequestId']
2522
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2523
+ end
2524
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2525
+ raise e
2526
+ rescue StandardError => e
2527
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2528
+ end
2529
+
2530
+ # 本接口(DeletePrivateNatGatewayDestinationIpPortTranslationNatRule)用于删除私网NAT网关目的端口转换规则
2531
+
2532
+ # @param request: Request instance for DeletePrivateNatGatewayDestinationIpPortTranslationNatRule.
2533
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
2534
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
2535
+ def DeletePrivateNatGatewayDestinationIpPortTranslationNatRule(request)
2536
+ body = send_request('DeletePrivateNatGatewayDestinationIpPortTranslationNatRule', request.serialize)
2537
+ response = JSON.parse(body)
2538
+ if response['Response'].key?('Error') == false
2539
+ model = DeletePrivateNatGatewayDestinationIpPortTranslationNatRuleResponse.new
2540
+ model.deserialize(response['Response'])
2541
+ model
2542
+ else
2543
+ code = response['Response']['Error']['Code']
2544
+ message = response['Response']['Error']['Message']
2545
+ reqid = response['Response']['RequestId']
2546
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2547
+ end
2548
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2549
+ raise e
2550
+ rescue StandardError => e
2551
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2552
+ end
2553
+
2554
+ # 本接口(DeletePrivateNatGatewayTranslationAclRule)用于删除私网NAT网关源端转换访问控制规则
2555
+
2556
+ # @param request: Request instance for DeletePrivateNatGatewayTranslationAclRule.
2557
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayTranslationAclRuleRequest`
2558
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayTranslationAclRuleResponse`
2559
+ def DeletePrivateNatGatewayTranslationAclRule(request)
2560
+ body = send_request('DeletePrivateNatGatewayTranslationAclRule', request.serialize)
2561
+ response = JSON.parse(body)
2562
+ if response['Response'].key?('Error') == false
2563
+ model = DeletePrivateNatGatewayTranslationAclRuleResponse.new
2564
+ model.deserialize(response['Response'])
2565
+ model
2566
+ else
2567
+ code = response['Response']['Error']['Code']
2568
+ message = response['Response']['Error']['Message']
2569
+ reqid = response['Response']['RequestId']
2570
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2571
+ end
2572
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2573
+ raise e
2574
+ rescue StandardError => e
2575
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2576
+ end
2577
+
2578
+ # 本接口(DeletePrivateNatGatewayTranslationNatRule)用于删除私网NAT网关源端转换规则
2579
+
2580
+ # @param request: Request instance for DeletePrivateNatGatewayTranslationNatRule.
2581
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayTranslationNatRuleRequest`
2582
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DeletePrivateNatGatewayTranslationNatRuleResponse`
2583
+ def DeletePrivateNatGatewayTranslationNatRule(request)
2584
+ body = send_request('DeletePrivateNatGatewayTranslationNatRule', request.serialize)
2585
+ response = JSON.parse(body)
2586
+ if response['Response'].key?('Error') == false
2587
+ model = DeletePrivateNatGatewayTranslationNatRuleResponse.new
2588
+ model.deserialize(response['Response'])
2589
+ model
2590
+ else
2591
+ code = response['Response']['Error']['Code']
2592
+ message = response['Response']['Error']['Message']
2593
+ reqid = response['Response']['RequestId']
2594
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2595
+ end
2596
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2597
+ raise e
2598
+ rescue StandardError => e
2599
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2600
+ end
2601
+
2410
2602
  # 本接口(DeleteRouteTable)用于删除路由表。
2411
2603
 
2412
2604
  # @param request: Request instance for DeleteRouteTable.
@@ -3987,6 +4179,150 @@ module TencentCloud
3987
4179
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3988
4180
  end
3989
4181
 
4182
+ # 本接口(DescribePrivateNatGatewayDestinationIpPortTranslationNatRules)用于查询私网NAT网关目的端口转换规则
4183
+
4184
+ # @param request: Request instance for DescribePrivateNatGatewayDestinationIpPortTranslationNatRules.
4185
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesRequest`
4186
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesResponse`
4187
+ def DescribePrivateNatGatewayDestinationIpPortTranslationNatRules(request)
4188
+ body = send_request('DescribePrivateNatGatewayDestinationIpPortTranslationNatRules', request.serialize)
4189
+ response = JSON.parse(body)
4190
+ if response['Response'].key?('Error') == false
4191
+ model = DescribePrivateNatGatewayDestinationIpPortTranslationNatRulesResponse.new
4192
+ model.deserialize(response['Response'])
4193
+ model
4194
+ else
4195
+ code = response['Response']['Error']['Code']
4196
+ message = response['Response']['Error']['Message']
4197
+ reqid = response['Response']['RequestId']
4198
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4199
+ end
4200
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4201
+ raise e
4202
+ rescue StandardError => e
4203
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4204
+ end
4205
+
4206
+ # 本接口(DescribePrivateNatGatewayLimits)用于查询可创建的私网NAT网关配额数量
4207
+
4208
+ # @param request: Request instance for DescribePrivateNatGatewayLimits.
4209
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayLimitsRequest`
4210
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayLimitsResponse`
4211
+ def DescribePrivateNatGatewayLimits(request)
4212
+ body = send_request('DescribePrivateNatGatewayLimits', request.serialize)
4213
+ response = JSON.parse(body)
4214
+ if response['Response'].key?('Error') == false
4215
+ model = DescribePrivateNatGatewayLimitsResponse.new
4216
+ model.deserialize(response['Response'])
4217
+ model
4218
+ else
4219
+ code = response['Response']['Error']['Code']
4220
+ message = response['Response']['Error']['Message']
4221
+ reqid = response['Response']['RequestId']
4222
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4223
+ end
4224
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4225
+ raise e
4226
+ rescue StandardError => e
4227
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4228
+ end
4229
+
4230
+ # 本接口(DescribePrivateNatGatewayRegions)用于查询查询私网NAT网关可支持地域
4231
+
4232
+ # @param request: Request instance for DescribePrivateNatGatewayRegions.
4233
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayRegionsRequest`
4234
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayRegionsResponse`
4235
+ def DescribePrivateNatGatewayRegions(request)
4236
+ body = send_request('DescribePrivateNatGatewayRegions', request.serialize)
4237
+ response = JSON.parse(body)
4238
+ if response['Response'].key?('Error') == false
4239
+ model = DescribePrivateNatGatewayRegionsResponse.new
4240
+ model.deserialize(response['Response'])
4241
+ model
4242
+ else
4243
+ code = response['Response']['Error']['Code']
4244
+ message = response['Response']['Error']['Message']
4245
+ reqid = response['Response']['RequestId']
4246
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4247
+ end
4248
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4249
+ raise e
4250
+ rescue StandardError => e
4251
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4252
+ end
4253
+
4254
+ # 本接口(DescribePrivateNatGatewayTranslationAclRules)用于查询私网NAT网关源端转换访问控制规则
4255
+
4256
+ # @param request: Request instance for DescribePrivateNatGatewayTranslationAclRules.
4257
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayTranslationAclRulesRequest`
4258
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayTranslationAclRulesResponse`
4259
+ def DescribePrivateNatGatewayTranslationAclRules(request)
4260
+ body = send_request('DescribePrivateNatGatewayTranslationAclRules', request.serialize)
4261
+ response = JSON.parse(body)
4262
+ if response['Response'].key?('Error') == false
4263
+ model = DescribePrivateNatGatewayTranslationAclRulesResponse.new
4264
+ model.deserialize(response['Response'])
4265
+ model
4266
+ else
4267
+ code = response['Response']['Error']['Code']
4268
+ message = response['Response']['Error']['Message']
4269
+ reqid = response['Response']['RequestId']
4270
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4271
+ end
4272
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4273
+ raise e
4274
+ rescue StandardError => e
4275
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4276
+ end
4277
+
4278
+ # 本接口(DescribePrivateNatGatewayTranslationNatRules)用于查询私网NAT网关源端转换规则
4279
+
4280
+ # @param request: Request instance for DescribePrivateNatGatewayTranslationNatRules.
4281
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayTranslationNatRulesRequest`
4282
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewayTranslationNatRulesResponse`
4283
+ def DescribePrivateNatGatewayTranslationNatRules(request)
4284
+ body = send_request('DescribePrivateNatGatewayTranslationNatRules', request.serialize)
4285
+ response = JSON.parse(body)
4286
+ if response['Response'].key?('Error') == false
4287
+ model = DescribePrivateNatGatewayTranslationNatRulesResponse.new
4288
+ model.deserialize(response['Response'])
4289
+ model
4290
+ else
4291
+ code = response['Response']['Error']['Code']
4292
+ message = response['Response']['Error']['Message']
4293
+ reqid = response['Response']['RequestId']
4294
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4295
+ end
4296
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4297
+ raise e
4298
+ rescue StandardError => e
4299
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4300
+ end
4301
+
4302
+ # 本接口(DescribePrivateNatGateways)用于查询私网NAT网关
4303
+
4304
+ # @param request: Request instance for DescribePrivateNatGateways.
4305
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewaysRequest`
4306
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribePrivateNatGatewaysResponse`
4307
+ def DescribePrivateNatGateways(request)
4308
+ body = send_request('DescribePrivateNatGateways', request.serialize)
4309
+ response = JSON.parse(body)
4310
+ if response['Response'].key?('Error') == false
4311
+ model = DescribePrivateNatGatewaysResponse.new
4312
+ model.deserialize(response['Response'])
4313
+ model
4314
+ else
4315
+ code = response['Response']['Error']['Code']
4316
+ message = response['Response']['Error']['Message']
4317
+ reqid = response['Response']['RequestId']
4318
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4319
+ end
4320
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4321
+ raise e
4322
+ rescue StandardError => e
4323
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4324
+ end
4325
+
3990
4326
  # 本接口(DescribeProductQuota)用于查询网络产品的配额信息。
3991
4327
 
3992
4328
  # @param request: Request instance for DescribeProductQuota.
@@ -6648,6 +6984,102 @@ module TencentCloud
6648
6984
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
6649
6985
  end
6650
6986
 
6987
+ # 本接口(ModifyPrivateNatGatewayAttribute)用于修改私网NAT网关属性
6988
+
6989
+ # @param request: Request instance for ModifyPrivateNatGatewayAttribute.
6990
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayAttributeRequest`
6991
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayAttributeResponse`
6992
+ def ModifyPrivateNatGatewayAttribute(request)
6993
+ body = send_request('ModifyPrivateNatGatewayAttribute', request.serialize)
6994
+ response = JSON.parse(body)
6995
+ if response['Response'].key?('Error') == false
6996
+ model = ModifyPrivateNatGatewayAttributeResponse.new
6997
+ model.deserialize(response['Response'])
6998
+ model
6999
+ else
7000
+ code = response['Response']['Error']['Code']
7001
+ message = response['Response']['Error']['Message']
7002
+ reqid = response['Response']['RequestId']
7003
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7004
+ end
7005
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7006
+ raise e
7007
+ rescue StandardError => e
7008
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7009
+ end
7010
+
7011
+ # 本接口(ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule)用于修改私网NAT网关目的端口转换规则
7012
+
7013
+ # @param request: Request instance for ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule.
7014
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleRequest`
7015
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleResponse`
7016
+ def ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule(request)
7017
+ body = send_request('ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule', request.serialize)
7018
+ response = JSON.parse(body)
7019
+ if response['Response'].key?('Error') == false
7020
+ model = ModifyPrivateNatGatewayDestinationIpPortTranslationNatRuleResponse.new
7021
+ model.deserialize(response['Response'])
7022
+ model
7023
+ else
7024
+ code = response['Response']['Error']['Code']
7025
+ message = response['Response']['Error']['Message']
7026
+ reqid = response['Response']['RequestId']
7027
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7028
+ end
7029
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7030
+ raise e
7031
+ rescue StandardError => e
7032
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7033
+ end
7034
+
7035
+ # 本接口(ModifyPrivateNatGatewayTranslationAclRule)用于修改私网NAT网关源端转换访问控制规则
7036
+
7037
+ # @param request: Request instance for ModifyPrivateNatGatewayTranslationAclRule.
7038
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayTranslationAclRuleRequest`
7039
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayTranslationAclRuleResponse`
7040
+ def ModifyPrivateNatGatewayTranslationAclRule(request)
7041
+ body = send_request('ModifyPrivateNatGatewayTranslationAclRule', request.serialize)
7042
+ response = JSON.parse(body)
7043
+ if response['Response'].key?('Error') == false
7044
+ model = ModifyPrivateNatGatewayTranslationAclRuleResponse.new
7045
+ model.deserialize(response['Response'])
7046
+ model
7047
+ else
7048
+ code = response['Response']['Error']['Code']
7049
+ message = response['Response']['Error']['Message']
7050
+ reqid = response['Response']['RequestId']
7051
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7052
+ end
7053
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7054
+ raise e
7055
+ rescue StandardError => e
7056
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7057
+ end
7058
+
7059
+ # 本接口(ModifyPrivateNatGatewayTranslationNatRule)用于修改私网NAT网关源端转换规则
7060
+
7061
+ # @param request: Request instance for ModifyPrivateNatGatewayTranslationNatRule.
7062
+ # @type request: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayTranslationNatRuleRequest`
7063
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyPrivateNatGatewayTranslationNatRuleResponse`
7064
+ def ModifyPrivateNatGatewayTranslationNatRule(request)
7065
+ body = send_request('ModifyPrivateNatGatewayTranslationNatRule', request.serialize)
7066
+ response = JSON.parse(body)
7067
+ if response['Response'].key?('Error') == false
7068
+ model = ModifyPrivateNatGatewayTranslationNatRuleResponse.new
7069
+ model.deserialize(response['Response'])
7070
+ model
7071
+ else
7072
+ code = response['Response']['Error']['Code']
7073
+ message = response['Response']['Error']['Message']
7074
+ reqid = response['Response']['RequestId']
7075
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
7076
+ end
7077
+ rescue TencentCloud::Common::TencentCloudSDKException => e
7078
+ raise e
7079
+ rescue StandardError => e
7080
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
7081
+ end
7082
+
6651
7083
  # 本接口(ModifyRouteTableAttribute)用于修改路由表(RouteTable)属性。
6652
7084
 
6653
7085
  # @param request: Request instance for ModifyRouteTableAttribute.