tencentcloud-sdk-waf 3.0.942 → 3.0.943

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: 57b7bf9581fcf4988a188d1bd3fe67980d36d878
4
- data.tar.gz: 958fe8e816cae7012e35152f864713934b567ba6
3
+ metadata.gz: 4017c655512352fa84441b8efeadaaffadbb8c03
4
+ data.tar.gz: 3f6978c8c1c5d398b435c2f423582b181e4dd076
5
5
  SHA512:
6
- metadata.gz: 82931bc92ac286e5a6c2facb11513888b817cd8405326622f539aa69762c8568e6141c1f961931c3fdb2dcaf9bc3fd644bbf56499c21eced4e227ea4577917a2
7
- data.tar.gz: 15fe20763f7ce60544a58bdf080dffd4c187d55b31885651548a5565643e1f9a7617422ef98a796919fc4f91dc3d773bfbb29d620f0d87a376cce726b2d18f98
6
+ metadata.gz: c07b9f9037e053075917c6b15cc542e7461b94bdc40f51ed9f06fcc612e326198928508b903dc2fa7d95cb1c28c46a9e3bb446cc0e73c45ad9c7873dca0752ca
7
+ data.tar.gz: 18634fc55b006d2da18435e942d0cc018a091bb19a7bc9259e7ff26464da2f5ad7e32ef02f2d54cb5acbe575d4e1a3e5d2e2b18a77dc290e7f42a280765c108b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.942
1
+ 3.0.943
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 批量操作tiga子规则
225
+
226
+ # @param request: Request instance for BatchOperateUserSignatureRules.
227
+ # @type request: :class:`Tencentcloud::waf::V20180125::BatchOperateUserSignatureRulesRequest`
228
+ # @rtype: :class:`Tencentcloud::waf::V20180125::BatchOperateUserSignatureRulesResponse`
229
+ def BatchOperateUserSignatureRules(request)
230
+ body = send_request('BatchOperateUserSignatureRules', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = BatchOperateUserSignatureRulesResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # 本接口用于创建访问日志导出
225
249
 
226
250
  # @param request: Request instance for CreateAccessExport.
@@ -1973,6 +1997,30 @@ module TencentCloud
1973
1997
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
1998
  end
1975
1999
 
2000
+ # 查询Tiga引擎规则类型及状态
2001
+
2002
+ # @param request: Request instance for DescribeUserSignatureClass.
2003
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureClassRequest`
2004
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureClassResponse`
2005
+ def DescribeUserSignatureClass(request)
2006
+ body = send_request('DescribeUserSignatureClass', request.serialize)
2007
+ response = JSON.parse(body)
2008
+ if response['Response'].key?('Error') == false
2009
+ model = DescribeUserSignatureClassResponse.new
2010
+ model.deserialize(response['Response'])
2011
+ model
2012
+ else
2013
+ code = response['Response']['Error']['Code']
2014
+ message = response['Response']['Error']['Message']
2015
+ reqid = response['Response']['RequestId']
2016
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2017
+ end
2018
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2019
+ raise e
2020
+ rescue StandardError => e
2021
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2022
+ end
2023
+
1976
2024
  # 获取用户特征规则列表
1977
2025
 
1978
2026
  # @param request: Request instance for DescribeUserSignatureRule.
@@ -1997,6 +2045,30 @@ module TencentCloud
1997
2045
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1998
2046
  end
1999
2047
 
2048
+ # 获取用户特征规则列表
2049
+
2050
+ # @param request: Request instance for DescribeUserSignatureRuleV2.
2051
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureRuleV2Request`
2052
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeUserSignatureRuleV2Response`
2053
+ def DescribeUserSignatureRuleV2(request)
2054
+ body = send_request('DescribeUserSignatureRuleV2', request.serialize)
2055
+ response = JSON.parse(body)
2056
+ if response['Response'].key?('Error') == false
2057
+ model = DescribeUserSignatureRuleV2Response.new
2058
+ model.deserialize(response['Response'])
2059
+ model
2060
+ else
2061
+ code = response['Response']['Error']['Code']
2062
+ message = response['Response']['Error']['Message']
2063
+ reqid = response['Response']['RequestId']
2064
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2065
+ end
2066
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2067
+ raise e
2068
+ rescue StandardError => e
2069
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2070
+ end
2071
+
2000
2072
  # 根据过滤条件查询VIP信息
2001
2073
 
2002
2074
  # @param request: Request instance for DescribeVipInfo.
@@ -1471,6 +1471,72 @@ module TencentCloud
1471
1471
  end
1472
1472
  end
1473
1473
 
1474
+ # BatchOperateUserSignatureRules请求参数结构体
1475
+ class BatchOperateUserSignatureRulesRequest < TencentCloud::Common::AbstractModel
1476
+ # @param Domain: 域名
1477
+ # @type Domain: String
1478
+ # @param Status: 0:关闭,1:开启,2:仅观察
1479
+ # @type Status: String
1480
+ # @param RuleIds: 如果SelectedAll为true,则表示反选的规则,否则表示手动选择的规则ID
1481
+ # @type RuleIds: Array
1482
+ # @param Reason: 仅观察原因
1483
+ # @type Reason: Integer
1484
+ # @param SelectedAll: 是否全选
1485
+ # @type SelectedAll: Boolean
1486
+ # @param Filters: 过滤
1487
+ # @type Filters: Array
1488
+
1489
+ attr_accessor :Domain, :Status, :RuleIds, :Reason, :SelectedAll, :Filters
1490
+
1491
+ def initialize(domain=nil, status=nil, ruleids=nil, reason=nil, selectedall=nil, filters=nil)
1492
+ @Domain = domain
1493
+ @Status = status
1494
+ @RuleIds = ruleids
1495
+ @Reason = reason
1496
+ @SelectedAll = selectedall
1497
+ @Filters = filters
1498
+ end
1499
+
1500
+ def deserialize(params)
1501
+ @Domain = params['Domain']
1502
+ @Status = params['Status']
1503
+ @RuleIds = params['RuleIds']
1504
+ @Reason = params['Reason']
1505
+ @SelectedAll = params['SelectedAll']
1506
+ unless params['Filters'].nil?
1507
+ @Filters = []
1508
+ params['Filters'].each do |i|
1509
+ filtersitemnew_tmp = FiltersItemNew.new
1510
+ filtersitemnew_tmp.deserialize(i)
1511
+ @Filters << filtersitemnew_tmp
1512
+ end
1513
+ end
1514
+ end
1515
+ end
1516
+
1517
+ # BatchOperateUserSignatureRules返回参数结构体
1518
+ class BatchOperateUserSignatureRulesResponse < TencentCloud::Common::AbstractModel
1519
+ # @param CommonRsp: 操作结果
1520
+ # @type CommonRsp: :class:`Tencentcloud::Waf.v20180125.models.CommonRspData`
1521
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1522
+ # @type RequestId: String
1523
+
1524
+ attr_accessor :CommonRsp, :RequestId
1525
+
1526
+ def initialize(commonrsp=nil, requestid=nil)
1527
+ @CommonRsp = commonrsp
1528
+ @RequestId = requestid
1529
+ end
1530
+
1531
+ def deserialize(params)
1532
+ unless params['CommonRsp'].nil?
1533
+ @CommonRsp = CommonRspData.new
1534
+ @CommonRsp.deserialize(params['CommonRsp'])
1535
+ end
1536
+ @RequestId = params['RequestId']
1537
+ end
1538
+ end
1539
+
1474
1540
  # Bot资源信息
1475
1541
  class BotPkg < TencentCloud::Common::AbstractModel
1476
1542
  # @param ResourceIds: 资源id
@@ -2107,6 +2173,26 @@ module TencentCloud
2107
2173
  end
2108
2174
  end
2109
2175
 
2176
+ # 通用返回
2177
+ class CommonRspData < TencentCloud::Common::AbstractModel
2178
+ # @param Code: 操作结果
2179
+ # @type Code: Integer
2180
+ # @param Msg: 输出信息
2181
+ # @type Msg: String
2182
+
2183
+ attr_accessor :Code, :Msg
2184
+
2185
+ def initialize(code=nil, msg=nil)
2186
+ @Code = code
2187
+ @Msg = msg
2188
+ end
2189
+
2190
+ def deserialize(params)
2191
+ @Code = params['Code']
2192
+ @Msg = params['Msg']
2193
+ end
2194
+ end
2195
+
2110
2196
  # CreateAccessExport请求参数结构体
2111
2197
  class CreateAccessExportRequest < TencentCloud::Common::AbstractModel
2112
2198
  # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
@@ -6791,6 +6877,53 @@ module TencentCloud
6791
6877
  end
6792
6878
  end
6793
6879
 
6880
+ # DescribeUserSignatureClass请求参数结构体
6881
+ class DescribeUserSignatureClassRequest < TencentCloud::Common::AbstractModel
6882
+ # @param Domain: 查询域名
6883
+ # @type Domain: String
6884
+
6885
+ attr_accessor :Domain
6886
+
6887
+ def initialize(domain=nil)
6888
+ @Domain = domain
6889
+ end
6890
+
6891
+ def deserialize(params)
6892
+ @Domain = params['Domain']
6893
+ end
6894
+ end
6895
+
6896
+ # DescribeUserSignatureClass返回参数结构体
6897
+ class DescribeUserSignatureClassResponse < TencentCloud::Common::AbstractModel
6898
+ # @param Total: 规则类型数量
6899
+ # @type Total: Integer
6900
+ # @param RuleTypeList: 规则类型列表及信息
6901
+ # @type RuleTypeList: Array
6902
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6903
+ # @type RequestId: String
6904
+
6905
+ attr_accessor :Total, :RuleTypeList, :RequestId
6906
+
6907
+ def initialize(total=nil, ruletypelist=nil, requestid=nil)
6908
+ @Total = total
6909
+ @RuleTypeList = ruletypelist
6910
+ @RequestId = requestid
6911
+ end
6912
+
6913
+ def deserialize(params)
6914
+ @Total = params['Total']
6915
+ unless params['RuleTypeList'].nil?
6916
+ @RuleTypeList = []
6917
+ params['RuleTypeList'].each do |i|
6918
+ ruletype_tmp = RuleType.new
6919
+ ruletype_tmp.deserialize(i)
6920
+ @RuleTypeList << ruletype_tmp
6921
+ end
6922
+ end
6923
+ @RequestId = params['RequestId']
6924
+ end
6925
+ end
6926
+
6794
6927
  # DescribeUserSignatureRule请求参数结构体
6795
6928
  class DescribeUserSignatureRuleRequest < TencentCloud::Common::AbstractModel
6796
6929
  # @param Domain: 需要查询的域名
@@ -6865,6 +6998,80 @@ module TencentCloud
6865
6998
  end
6866
6999
  end
6867
7000
 
7001
+ # DescribeUserSignatureRuleV2请求参数结构体
7002
+ class DescribeUserSignatureRuleV2Request < TencentCloud::Common::AbstractModel
7003
+ # @param Domain: 需要查询的域名
7004
+ # @type Domain: String
7005
+ # @param Offset: 分页
7006
+ # @type Offset: Integer
7007
+ # @param Limit: 每页容量
7008
+ # @type Limit: Integer
7009
+ # @param By: 排序字段,支持 signature_id, modify_time
7010
+ # @type By: String
7011
+ # @param Order: 排序方式
7012
+ # @type Order: String
7013
+ # @param Filters: 筛选条件,支持 MainClassName,SubClassID ,CveID, Status, ID; ID为规则id
7014
+ # @type Filters: Array
7015
+
7016
+ attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
7017
+
7018
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
7019
+ @Domain = domain
7020
+ @Offset = offset
7021
+ @Limit = limit
7022
+ @By = by
7023
+ @Order = order
7024
+ @Filters = filters
7025
+ end
7026
+
7027
+ def deserialize(params)
7028
+ @Domain = params['Domain']
7029
+ @Offset = params['Offset']
7030
+ @Limit = params['Limit']
7031
+ @By = params['By']
7032
+ @Order = params['Order']
7033
+ unless params['Filters'].nil?
7034
+ @Filters = []
7035
+ params['Filters'].each do |i|
7036
+ filtersitemnew_tmp = FiltersItemNew.new
7037
+ filtersitemnew_tmp.deserialize(i)
7038
+ @Filters << filtersitemnew_tmp
7039
+ end
7040
+ end
7041
+ end
7042
+ end
7043
+
7044
+ # DescribeUserSignatureRuleV2返回参数结构体
7045
+ class DescribeUserSignatureRuleV2Response < TencentCloud::Common::AbstractModel
7046
+ # @param Total: 规则总数
7047
+ # @type Total: Integer
7048
+ # @param Rules: 规则列表
7049
+ # @type Rules: Array
7050
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7051
+ # @type RequestId: String
7052
+
7053
+ attr_accessor :Total, :Rules, :RequestId
7054
+
7055
+ def initialize(total=nil, rules=nil, requestid=nil)
7056
+ @Total = total
7057
+ @Rules = rules
7058
+ @RequestId = requestid
7059
+ end
7060
+
7061
+ def deserialize(params)
7062
+ @Total = params['Total']
7063
+ unless params['Rules'].nil?
7064
+ @Rules = []
7065
+ params['Rules'].each do |i|
7066
+ usersignaturerule_tmp = UserSignatureRule.new
7067
+ usersignaturerule_tmp.deserialize(i)
7068
+ @Rules << usersignaturerule_tmp
7069
+ end
7070
+ end
7071
+ @RequestId = params['RequestId']
7072
+ end
7073
+ end
7074
+
6868
7075
  # DescribeVipInfo请求参数结构体
6869
7076
  class DescribeVipInfoRequest < TencentCloud::Common::AbstractModel
6870
7077
  # @param InstanceIds: waf实例id列表
@@ -12211,6 +12418,42 @@ module TencentCloud
12211
12418
  end
12212
12419
  end
12213
12420
 
12421
+ # Tiga规则
12422
+ class RuleType < TencentCloud::Common::AbstractModel
12423
+ # @param TypeID: 规则ID
12424
+ # @type TypeID: String
12425
+ # @param Name: 规则名称
12426
+ # @type Name: String
12427
+ # @param Desc: 规则类型描述
12428
+ # @type Desc: String
12429
+ # @param RuleTypeStatus: 规则类型状态,即类型生效开关,0:关闭,1:开启
12430
+ # @type RuleTypeStatus: Integer
12431
+ # @param ActiveRuleCount: 类型下生效的规则数量
12432
+ # @type ActiveRuleCount: Integer
12433
+ # @param TotalRuleCount: 类型下的规则总数量
12434
+ # @type TotalRuleCount: Integer
12435
+
12436
+ attr_accessor :TypeID, :Name, :Desc, :RuleTypeStatus, :ActiveRuleCount, :TotalRuleCount
12437
+
12438
+ def initialize(typeid=nil, name=nil, desc=nil, ruletypestatus=nil, activerulecount=nil, totalrulecount=nil)
12439
+ @TypeID = typeid
12440
+ @Name = name
12441
+ @Desc = desc
12442
+ @RuleTypeStatus = ruletypestatus
12443
+ @ActiveRuleCount = activerulecount
12444
+ @TotalRuleCount = totalrulecount
12445
+ end
12446
+
12447
+ def deserialize(params)
12448
+ @TypeID = params['TypeID']
12449
+ @Name = params['Name']
12450
+ @Desc = params['Desc']
12451
+ @RuleTypeStatus = params['RuleTypeStatus']
12452
+ @ActiveRuleCount = params['ActiveRuleCount']
12453
+ @TotalRuleCount = params['TotalRuleCount']
12454
+ end
12455
+ end
12456
+
12214
12457
  # 扫描ip信息
12215
12458
  class ScanIpInfo < TencentCloud::Common::AbstractModel
12216
12459
  # @param Bussiness: 所属业务
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.942
4
+ version: 3.0.943
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common