tencentcloud-sdk-cfw 3.0.514 → 3.0.516

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: a5fdb4f8f4969ba9ff6fb37b70951534d4bf0543
4
- data.tar.gz: 80049d5d4ac9f286fcdc7399583fe8f8f658e9ed
3
+ metadata.gz: fdc9402f650c42031d2b2884335e84a1ed0bd9f0
4
+ data.tar.gz: ce8b0413045b6737730d7c4eed11326603ca8d6a
5
5
  SHA512:
6
- metadata.gz: 7b5dc3fd4f191bbbe9e3e989c7c247eac3b74bd0769701df97c0bb4d9a70f21bc72055981f6805064fb8e6276223b57a543a3925c6b6f694a586dea2fa883f88
7
- data.tar.gz: 880578a5c49c77546b5ef7a3d1b229fa42883899467b9509cf69c00f7aa30f5cc94eaa3966b610ef7322e6100c836e826ccf15de3a11f2a2591aaade244ff9f0
6
+ metadata.gz: 1bfb08dfe6c18772a564ed203e7ec78ea53424cf38895c61fd6f57418871b8f333b15bcd8942edfdc43d97cd2ae7cec7ec490e8410fe8f2950fbcff7d83ea0fb
7
+ data.tar.gz: 5f87c0d30913c235209c10b242e5ef9f084f7421844f41775d4f23f2c0483283c05c2ed28349e3fc884baee8afd570c9f27eb02bbff97d69b3cb91868bd0b1cf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.514
1
+ 3.0.516
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 添加nat访问控制规则
81
+
82
+ # @param request: Request instance for AddNatAcRule.
83
+ # @type request: :class:`Tencentcloud::cfw::V20190904::AddNatAcRuleRequest`
84
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::AddNatAcRuleResponse`
85
+ def AddNatAcRule(request)
86
+ body = send_request('AddNatAcRule', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddNatAcRuleResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 创建访问控制规则
81
105
 
82
106
  # @param request: Request instance for CreateAcRules.
@@ -605,6 +629,30 @@ module TencentCloud
605
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
630
  end
607
631
 
632
+ # 查询NAT访问控制列表
633
+
634
+ # @param request: Request instance for DescribeNatAcRule.
635
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeNatAcRuleRequest`
636
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeNatAcRuleResponse`
637
+ def DescribeNatAcRule(request)
638
+ body = send_request('DescribeNatAcRule', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeNatAcRuleResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
608
656
  # 获取当前用户接入nat防火墙的所有子网数及natfw实例个数
609
657
 
610
658
  # @param request: Request instance for DescribeNatFwInfoCount.
@@ -1160,6 +1208,30 @@ module TencentCloud
1160
1208
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1161
1209
  end
1162
1210
 
1211
+ # 修改NAT访问控制规则
1212
+
1213
+ # @param request: Request instance for ModifyNatAcRule.
1214
+ # @type request: :class:`Tencentcloud::cfw::V20190904::ModifyNatAcRuleRequest`
1215
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyNatAcRuleResponse`
1216
+ def ModifyNatAcRule(request)
1217
+ body = send_request('ModifyNatAcRule', request.serialize)
1218
+ response = JSON.parse(body)
1219
+ if response['Response'].key?('Error') == false
1220
+ model = ModifyNatAcRuleResponse.new
1221
+ model.deserialize(response['Response'])
1222
+ model
1223
+ else
1224
+ code = response['Response']['Error']['Code']
1225
+ message = response['Response']['Error']['Message']
1226
+ reqid = response['Response']['RequestId']
1227
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1228
+ end
1229
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1230
+ raise e
1231
+ rescue StandardError => e
1232
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1233
+ end
1234
+
1163
1235
  # 防火墙实例重新选择vpc或nat
1164
1236
 
1165
1237
  # @param request: Request instance for ModifyNatFwReSelect.
@@ -1497,6 +1569,30 @@ module TencentCloud
1497
1569
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1498
1570
  end
1499
1571
 
1572
+ # 删除NAT访问控制规则
1573
+
1574
+ # @param request: Request instance for RemoveNatAcRule.
1575
+ # @type request: :class:`Tencentcloud::cfw::V20190904::RemoveNatAcRuleRequest`
1576
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::RemoveNatAcRuleResponse`
1577
+ def RemoveNatAcRule(request)
1578
+ body = send_request('RemoveNatAcRule', request.serialize)
1579
+ response = JSON.parse(body)
1580
+ if response['Response'].key?('Error') == false
1581
+ model = RemoveNatAcRuleResponse.new
1582
+ model.deserialize(response['Response'])
1583
+ model
1584
+ else
1585
+ code = response['Response']['Error']['Code']
1586
+ message = response['Response']['Error']['Message']
1587
+ reqid = response['Response']['RequestId']
1588
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1589
+ end
1590
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1591
+ raise e
1592
+ rescue StandardError => e
1593
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1594
+ end
1595
+
1500
1596
  # 配置防火墙Dnat规则
1501
1597
 
1502
1598
  # @param request: Request instance for SetNatFwDnatRule.
@@ -269,6 +269,53 @@ module TencentCloud
269
269
  end
270
270
  end
271
271
 
272
+ # AddNatAcRule请求参数结构体
273
+ class AddNatAcRuleRequest < TencentCloud::Common::AbstractModel
274
+ # @param Rules: 需要添加的nat访问控制规则列表
275
+ # @type Rules: Array
276
+ # @param From: 添加规则的来源,一般不需要使用,值insert_rule 表示插入指定位置的规则;值batch_import 表示批量导入规则;为空时表示添加规则
277
+ # @type From: String
278
+
279
+ attr_accessor :Rules, :From
280
+
281
+ def initialize(rules=nil, from=nil)
282
+ @Rules = rules
283
+ @From = from
284
+ end
285
+
286
+ def deserialize(params)
287
+ unless params['Rules'].nil?
288
+ @Rules = []
289
+ params['Rules'].each do |i|
290
+ createnatruleitem_tmp = CreateNatRuleItem.new
291
+ createnatruleitem_tmp.deserialize(i)
292
+ @Rules << createnatruleitem_tmp
293
+ end
294
+ end
295
+ @From = params['From']
296
+ end
297
+ end
298
+
299
+ # AddNatAcRule返回参数结构体
300
+ class AddNatAcRuleResponse < TencentCloud::Common::AbstractModel
301
+ # @param RuleUuid: 创建成功后返回新策略ID列表
302
+ # @type RuleUuid: Array
303
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
304
+ # @type RequestId: String
305
+
306
+ attr_accessor :RuleUuid, :RequestId
307
+
308
+ def initialize(ruleuuid=nil, requestid=nil)
309
+ @RuleUuid = ruleuuid
310
+ @RequestId = requestid
311
+ end
312
+
313
+ def deserialize(params)
314
+ @RuleUuid = params['RuleUuid']
315
+ @RequestId = params['RequestId']
316
+ end
317
+ end
318
+
272
319
  # AssetZone
273
320
  class AssetZone < TencentCloud::Common::AbstractModel
274
321
  # @param Zone: 地域
@@ -464,6 +511,58 @@ module TencentCloud
464
511
  end
465
512
  end
466
513
 
514
+ # 通用的列表检索过滤选项
515
+ class CommonFilter < TencentCloud::Common::AbstractModel
516
+ # @param Name: 检索的键值
517
+ # @type Name: String
518
+ # @param Values: 检索的值
519
+ # @type Values: Array
520
+ # @param OperatorType: 枚举类型,代表name与values之间的匹配关系
521
+ # enum FilterOperatorType {
522
+ # //INVALID
523
+ # FILTER_OPERATOR_TYPE_INVALID = 0;
524
+ # //等于
525
+ # FILTER_OPERATOR_TYPE_EQUAL = 1;
526
+ # //大于
527
+ # FILTER_OPERATOR_TYPE_GREATER = 2;
528
+ # //小于
529
+ # FILTER_OPERATOR_TYPE_LESS = 3;
530
+ # //大于等于
531
+ # FILTER_OPERATOR_TYPE_GREATER_EQ = 4;
532
+ # //小于等于
533
+ # FILTER_OPERATOR_TYPE_LESS_EQ = 5;
534
+ # //不等于
535
+ # FILTER_OPERATOR_TYPE_NO_EQ = 6;
536
+ # //in,数组中包含
537
+ # FILTER_OPERATOR_TYPE_IN = 7;
538
+ # //not in
539
+ # FILTER_OPERATOR_TYPE_NOT_IN = 8;
540
+ # //模糊匹配
541
+ # FILTER_OPERATOR_TYPE_FUZZINESS = 9;
542
+ # //存在
543
+ # FILTER_OPERATOR_TYPE_EXIST = 10;
544
+ # //不存在
545
+ # FILTER_OPERATOR_TYPE_NOT_EXIST = 11;
546
+ # //正则
547
+ # FILTER_OPERATOR_TYPE_REGULAR = 12;
548
+ # }
549
+ # @type OperatorType: Integer
550
+
551
+ attr_accessor :Name, :Values, :OperatorType
552
+
553
+ def initialize(name=nil, values=nil, operatortype=nil)
554
+ @Name = name
555
+ @Values = values
556
+ @OperatorType = operatortype
557
+ end
558
+
559
+ def deserialize(params)
560
+ @Name = params['Name']
561
+ @Values = params['Values']
562
+ @OperatorType = params['OperatorType']
563
+ end
564
+ end
565
+
467
566
  # CreateAcRules请求参数结构体
468
567
  class CreateAcRulesRequest < TencentCloud::Common::AbstractModel
469
568
  # @param Data: 创建规则数据
@@ -783,6 +882,78 @@ module TencentCloud
783
882
  end
784
883
  end
785
884
 
885
+ # 创建NAT ACL规则参数结构
886
+ class CreateNatRuleItem < TencentCloud::Common::AbstractModel
887
+ # @param SourceContent: 访问源示例: net:IP/CIDR(192.168.0.2)
888
+ # 注意:此字段可能返回 null,表示取不到有效值。
889
+ # @type SourceContent: String
890
+ # @param SourceType: 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
891
+ # 注意:此字段可能返回 null,表示取不到有效值。
892
+ # @type SourceType: String
893
+ # @param TargetContent: 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
894
+ # 注意:此字段可能返回 null,表示取不到有效值。
895
+ # @type TargetContent: String
896
+ # @param TargetType: 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
897
+ # 注意:此字段可能返回 null,表示取不到有效值。
898
+ # @type TargetType: String
899
+ # @param Protocol: 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
900
+ # 注意:此字段可能返回 null,表示取不到有效值。
901
+ # @type Protocol: String
902
+ # @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
903
+ # 注意:此字段可能返回 null,表示取不到有效值。
904
+ # @type RuleAction: String
905
+ # @param Port: 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
906
+ # 注意:此字段可能返回 null,表示取不到有效值。
907
+ # @type Port: String
908
+ # @param Direction: 规则方向:1,入站;0,出站
909
+ # 注意:此字段可能返回 null,表示取不到有效值。
910
+ # @type Direction: Integer
911
+ # @param OrderIndex: 规则序号
912
+ # 注意:此字段可能返回 null,表示取不到有效值。
913
+ # @type OrderIndex: Integer
914
+ # @param Enable: 规则状态,true表示启用,false表示禁用
915
+ # 注意:此字段可能返回 null,表示取不到有效值。
916
+ # @type Enable: String
917
+ # @param Uuid: 规则对应的唯一id,创建规则时无需填写
918
+ # 注意:此字段可能返回 null,表示取不到有效值。
919
+ # @type Uuid: Integer
920
+ # @param Description: 描述
921
+ # 注意:此字段可能返回 null,表示取不到有效值。
922
+ # @type Description: String
923
+
924
+ attr_accessor :SourceContent, :SourceType, :TargetContent, :TargetType, :Protocol, :RuleAction, :Port, :Direction, :OrderIndex, :Enable, :Uuid, :Description
925
+
926
+ def initialize(sourcecontent=nil, sourcetype=nil, targetcontent=nil, targettype=nil, protocol=nil, ruleaction=nil, port=nil, direction=nil, orderindex=nil, enable=nil, uuid=nil, description=nil)
927
+ @SourceContent = sourcecontent
928
+ @SourceType = sourcetype
929
+ @TargetContent = targetcontent
930
+ @TargetType = targettype
931
+ @Protocol = protocol
932
+ @RuleAction = ruleaction
933
+ @Port = port
934
+ @Direction = direction
935
+ @OrderIndex = orderindex
936
+ @Enable = enable
937
+ @Uuid = uuid
938
+ @Description = description
939
+ end
940
+
941
+ def deserialize(params)
942
+ @SourceContent = params['SourceContent']
943
+ @SourceType = params['SourceType']
944
+ @TargetContent = params['TargetContent']
945
+ @TargetType = params['TargetType']
946
+ @Protocol = params['Protocol']
947
+ @RuleAction = params['RuleAction']
948
+ @Port = params['Port']
949
+ @Direction = params['Direction']
950
+ @OrderIndex = params['OrderIndex']
951
+ @Enable = params['Enable']
952
+ @Uuid = params['Uuid']
953
+ @Description = params['Description']
954
+ end
955
+ end
956
+
786
957
  # CreateSecurityGroupRules请求参数结构体
787
958
  class CreateSecurityGroupRulesRequest < TencentCloud::Common::AbstractModel
788
959
  # @param Data: 添加的企业安全组规则数据
@@ -1148,6 +1319,136 @@ module TencentCloud
1148
1319
  end
1149
1320
  end
1150
1321
 
1322
+ # 访问控制列表对象
1323
+ class DescAcItem < TencentCloud::Common::AbstractModel
1324
+ # @param SourceContent: 访问源
1325
+ # 注意:此字段可能返回 null,表示取不到有效值。
1326
+ # @type SourceContent: String
1327
+ # @param TargetContent: 访问目的
1328
+ # 注意:此字段可能返回 null,表示取不到有效值。
1329
+ # @type TargetContent: String
1330
+ # @param Protocol: 协议
1331
+ # 注意:此字段可能返回 null,表示取不到有效值。
1332
+ # @type Protocol: String
1333
+ # @param Port: 端口
1334
+ # 注意:此字段可能返回 null,表示取不到有效值。
1335
+ # @type Port: String
1336
+ # @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
1337
+ # 注意:此字段可能返回 null,表示取不到有效值。
1338
+ # @type RuleAction: String
1339
+ # @param Description: 描述
1340
+ # 注意:此字段可能返回 null,表示取不到有效值。
1341
+ # @type Description: String
1342
+ # @param Count: 命中次数
1343
+ # @type Count: Integer
1344
+ # @param OrderIndex: 执行顺序
1345
+ # @type OrderIndex: Integer
1346
+ # @param SourceType: 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
1347
+ # 注意:此字段可能返回 null,表示取不到有效值。
1348
+ # @type SourceType: String
1349
+ # @param TargetType: 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
1350
+ # 注意:此字段可能返回 null,表示取不到有效值。
1351
+ # @type TargetType: String
1352
+ # @param Uuid: 规则对应的唯一id
1353
+ # 注意:此字段可能返回 null,表示取不到有效值。
1354
+ # @type Uuid: Integer
1355
+ # @param Invalid: 规则有效性
1356
+ # 注意:此字段可能返回 null,表示取不到有效值。
1357
+ # @type Invalid: Integer
1358
+ # @param IsRegion: 0为正常规则,1为地域规则
1359
+ # 注意:此字段可能返回 null,表示取不到有效值。
1360
+ # @type IsRegion: Integer
1361
+ # @param CountryCode: 国家id
1362
+ # 注意:此字段可能返回 null,表示取不到有效值。
1363
+ # @type CountryCode: Integer
1364
+ # @param CityCode: 城市id
1365
+ # 注意:此字段可能返回 null,表示取不到有效值。
1366
+ # @type CityCode: Integer
1367
+ # @param CountryName: 国家名称
1368
+ # 注意:此字段可能返回 null,表示取不到有效值。
1369
+ # @type CountryName: String
1370
+ # @param CityName: 省名称
1371
+ # 注意:此字段可能返回 null,表示取不到有效值。
1372
+ # @type CityName: String
1373
+ # @param CloudCode: 云厂商code
1374
+ # 注意:此字段可能返回 null,表示取不到有效值。
1375
+ # @type CloudCode: String
1376
+ # @param IsCloud: 0为正常规则,1为云厂商规则
1377
+ # 注意:此字段可能返回 null,表示取不到有效值。
1378
+ # @type IsCloud: Integer
1379
+ # @param Enable: 规则状态,true表示启用,false表示禁用
1380
+ # 注意:此字段可能返回 null,表示取不到有效值。
1381
+ # @type Enable: String
1382
+ # @param Direction: 规则方向:1,入向;0,出向
1383
+ # 注意:此字段可能返回 null,表示取不到有效值。
1384
+ # @type Direction: Integer
1385
+ # @param InstanceName: 实例名称
1386
+ # 注意:此字段可能返回 null,表示取不到有效值。
1387
+ # @type InstanceName: String
1388
+ # @param InternalUuid: 内部使用的uuid,一般情况下不会使用到该字段
1389
+ # 注意:此字段可能返回 null,表示取不到有效值。
1390
+ # @type InternalUuid: Integer
1391
+ # @param Status: 规则状态,查询规则命中详情时该字段有效,0:新增,1: 已删除, 2: 编辑删除
1392
+ # 注意:此字段可能返回 null,表示取不到有效值。
1393
+ # @type Status: Integer
1394
+
1395
+ attr_accessor :SourceContent, :TargetContent, :Protocol, :Port, :RuleAction, :Description, :Count, :OrderIndex, :SourceType, :TargetType, :Uuid, :Invalid, :IsRegion, :CountryCode, :CityCode, :CountryName, :CityName, :CloudCode, :IsCloud, :Enable, :Direction, :InstanceName, :InternalUuid, :Status
1396
+
1397
+ def initialize(sourcecontent=nil, targetcontent=nil, protocol=nil, port=nil, ruleaction=nil, description=nil, count=nil, orderindex=nil, sourcetype=nil, targettype=nil, uuid=nil, invalid=nil, isregion=nil, countrycode=nil, citycode=nil, countryname=nil, cityname=nil, cloudcode=nil, iscloud=nil, enable=nil, direction=nil, instancename=nil, internaluuid=nil, status=nil)
1398
+ @SourceContent = sourcecontent
1399
+ @TargetContent = targetcontent
1400
+ @Protocol = protocol
1401
+ @Port = port
1402
+ @RuleAction = ruleaction
1403
+ @Description = description
1404
+ @Count = count
1405
+ @OrderIndex = orderindex
1406
+ @SourceType = sourcetype
1407
+ @TargetType = targettype
1408
+ @Uuid = uuid
1409
+ @Invalid = invalid
1410
+ @IsRegion = isregion
1411
+ @CountryCode = countrycode
1412
+ @CityCode = citycode
1413
+ @CountryName = countryname
1414
+ @CityName = cityname
1415
+ @CloudCode = cloudcode
1416
+ @IsCloud = iscloud
1417
+ @Enable = enable
1418
+ @Direction = direction
1419
+ @InstanceName = instancename
1420
+ @InternalUuid = internaluuid
1421
+ @Status = status
1422
+ end
1423
+
1424
+ def deserialize(params)
1425
+ @SourceContent = params['SourceContent']
1426
+ @TargetContent = params['TargetContent']
1427
+ @Protocol = params['Protocol']
1428
+ @Port = params['Port']
1429
+ @RuleAction = params['RuleAction']
1430
+ @Description = params['Description']
1431
+ @Count = params['Count']
1432
+ @OrderIndex = params['OrderIndex']
1433
+ @SourceType = params['SourceType']
1434
+ @TargetType = params['TargetType']
1435
+ @Uuid = params['Uuid']
1436
+ @Invalid = params['Invalid']
1437
+ @IsRegion = params['IsRegion']
1438
+ @CountryCode = params['CountryCode']
1439
+ @CityCode = params['CityCode']
1440
+ @CountryName = params['CountryName']
1441
+ @CityName = params['CityName']
1442
+ @CloudCode = params['CloudCode']
1443
+ @IsCloud = params['IsCloud']
1444
+ @Enable = params['Enable']
1445
+ @Direction = params['Direction']
1446
+ @InstanceName = params['InstanceName']
1447
+ @InternalUuid = params['InternalUuid']
1448
+ @Status = params['Status']
1449
+ end
1450
+ end
1451
+
1151
1452
  # DescribeAcLists请求参数结构体
1152
1453
  class DescribeAcListsRequest < TencentCloud::Common::AbstractModel
1153
1454
  # @param Protocol: 协议
@@ -1831,6 +2132,93 @@ module TencentCloud
1831
2132
  end
1832
2133
  end
1833
2134
 
2135
+ # DescribeNatAcRule请求参数结构体
2136
+ class DescribeNatAcRuleRequest < TencentCloud::Common::AbstractModel
2137
+ # @param Limit: 每页条数
2138
+ # @type Limit: Integer
2139
+ # @param Offset: 偏移值
2140
+ # @type Offset: Integer
2141
+ # @param Index: 需要查询的索引,特定场景使用,可不填
2142
+ # @type Index: String
2143
+ # @param Filters: 过滤条件组合
2144
+ # @type Filters: Array
2145
+ # @param StartTime: 检索的起始时间,可不传
2146
+ # @type StartTime: String
2147
+ # @param EndTime: 检索的截止时间,可不传
2148
+ # @type EndTime: String
2149
+ # @param Order: desc:降序;asc:升序。根据By字段的值进行排序,这里传参的话则By也必须有值
2150
+ # @type Order: String
2151
+ # @param By: 排序所用到的字段
2152
+ # @type By: String
2153
+
2154
+ attr_accessor :Limit, :Offset, :Index, :Filters, :StartTime, :EndTime, :Order, :By
2155
+
2156
+ def initialize(limit=nil, offset=nil, index=nil, filters=nil, starttime=nil, endtime=nil, order=nil, by=nil)
2157
+ @Limit = limit
2158
+ @Offset = offset
2159
+ @Index = index
2160
+ @Filters = filters
2161
+ @StartTime = starttime
2162
+ @EndTime = endtime
2163
+ @Order = order
2164
+ @By = by
2165
+ end
2166
+
2167
+ def deserialize(params)
2168
+ @Limit = params['Limit']
2169
+ @Offset = params['Offset']
2170
+ @Index = params['Index']
2171
+ unless params['Filters'].nil?
2172
+ @Filters = []
2173
+ params['Filters'].each do |i|
2174
+ commonfilter_tmp = CommonFilter.new
2175
+ commonfilter_tmp.deserialize(i)
2176
+ @Filters << commonfilter_tmp
2177
+ end
2178
+ end
2179
+ @StartTime = params['StartTime']
2180
+ @EndTime = params['EndTime']
2181
+ @Order = params['Order']
2182
+ @By = params['By']
2183
+ end
2184
+ end
2185
+
2186
+ # DescribeNatAcRule返回参数结构体
2187
+ class DescribeNatAcRuleResponse < TencentCloud::Common::AbstractModel
2188
+ # @param Total: 总条数
2189
+ # @type Total: Integer
2190
+ # @param Data: nat访问控制列表数据
2191
+ # 注意:此字段可能返回 null,表示取不到有效值。
2192
+ # @type Data: Array
2193
+ # @param AllTotal: 未过滤的总条数
2194
+ # @type AllTotal: Integer
2195
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2196
+ # @type RequestId: String
2197
+
2198
+ attr_accessor :Total, :Data, :AllTotal, :RequestId
2199
+
2200
+ def initialize(total=nil, data=nil, alltotal=nil, requestid=nil)
2201
+ @Total = total
2202
+ @Data = data
2203
+ @AllTotal = alltotal
2204
+ @RequestId = requestid
2205
+ end
2206
+
2207
+ def deserialize(params)
2208
+ @Total = params['Total']
2209
+ unless params['Data'].nil?
2210
+ @Data = []
2211
+ params['Data'].each do |i|
2212
+ descacitem_tmp = DescAcItem.new
2213
+ descacitem_tmp.deserialize(i)
2214
+ @Data << descacitem_tmp
2215
+ end
2216
+ end
2217
+ @AllTotal = params['AllTotal']
2218
+ @RequestId = params['RequestId']
2219
+ end
2220
+ end
2221
+
1834
2222
  # DescribeNatFwInfoCount请求参数结构体
1835
2223
  class DescribeNatFwInfoCountRequest < TencentCloud::Common::AbstractModel
1836
2224
 
@@ -3319,6 +3707,49 @@ module TencentCloud
3319
3707
  end
3320
3708
  end
3321
3709
 
3710
+ # ModifyNatAcRule请求参数结构体
3711
+ class ModifyNatAcRuleRequest < TencentCloud::Common::AbstractModel
3712
+ # @param Rules: 需要编辑的规则数组
3713
+ # @type Rules: Array
3714
+
3715
+ attr_accessor :Rules
3716
+
3717
+ def initialize(rules=nil)
3718
+ @Rules = rules
3719
+ end
3720
+
3721
+ def deserialize(params)
3722
+ unless params['Rules'].nil?
3723
+ @Rules = []
3724
+ params['Rules'].each do |i|
3725
+ createnatruleitem_tmp = CreateNatRuleItem.new
3726
+ createnatruleitem_tmp.deserialize(i)
3727
+ @Rules << createnatruleitem_tmp
3728
+ end
3729
+ end
3730
+ end
3731
+ end
3732
+
3733
+ # ModifyNatAcRule返回参数结构体
3734
+ class ModifyNatAcRuleResponse < TencentCloud::Common::AbstractModel
3735
+ # @param RuleUuid: 编辑成功后返回新策略ID列表
3736
+ # @type RuleUuid: Array
3737
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3738
+ # @type RequestId: String
3739
+
3740
+ attr_accessor :RuleUuid, :RequestId
3741
+
3742
+ def initialize(ruleuuid=nil, requestid=nil)
3743
+ @RuleUuid = ruleuuid
3744
+ @RequestId = requestid
3745
+ end
3746
+
3747
+ def deserialize(params)
3748
+ @RuleUuid = params['RuleUuid']
3749
+ @RequestId = params['RequestId']
3750
+ end
3751
+ end
3752
+
3322
3753
  # ModifyNatFwReSelect请求参数结构体
3323
3754
  class ModifyNatFwReSelectRequest < TencentCloud::Common::AbstractModel
3324
3755
  # @param Mode: 模式 1:接入模式;0:新增模式
@@ -4155,6 +4586,46 @@ module TencentCloud
4155
4586
  end
4156
4587
  end
4157
4588
 
4589
+ # RemoveNatAcRule请求参数结构体
4590
+ class RemoveNatAcRuleRequest < TencentCloud::Common::AbstractModel
4591
+ # @param RuleUuid: 规则的uuid列表,可通过查询规则列表获取,注意:如果传入的是[-1]将删除所有规则
4592
+ # @type RuleUuid: Array
4593
+ # @param Direction: 规则方向:1,入站;0,出站
4594
+ # @type Direction: Integer
4595
+
4596
+ attr_accessor :RuleUuid, :Direction
4597
+
4598
+ def initialize(ruleuuid=nil, direction=nil)
4599
+ @RuleUuid = ruleuuid
4600
+ @Direction = direction
4601
+ end
4602
+
4603
+ def deserialize(params)
4604
+ @RuleUuid = params['RuleUuid']
4605
+ @Direction = params['Direction']
4606
+ end
4607
+ end
4608
+
4609
+ # RemoveNatAcRule返回参数结构体
4610
+ class RemoveNatAcRuleResponse < TencentCloud::Common::AbstractModel
4611
+ # @param RuleUuid: 删除成功后返回被删除策略的uuid列表
4612
+ # @type RuleUuid: Array
4613
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4614
+ # @type RequestId: String
4615
+
4616
+ attr_accessor :RuleUuid, :RequestId
4617
+
4618
+ def initialize(ruleuuid=nil, requestid=nil)
4619
+ @RuleUuid = ruleuuid
4620
+ @RequestId = requestid
4621
+ end
4622
+
4623
+ def deserialize(params)
4624
+ @RuleUuid = params['RuleUuid']
4625
+ @RequestId = params['RequestId']
4626
+ end
4627
+ end
4628
+
4158
4629
  # 规则输入对象
4159
4630
  class RuleInfoData < TencentCloud::Common::AbstractModel
4160
4631
  # @param OrderIndex: 执行顺序
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.514
4
+ version: 3.0.516
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-22 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common