tencentcloud-sdk-waf 3.0.1016 → 3.0.1017

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be32adad735f35db3684837679438a980733e2d6
4
- data.tar.gz: a10420fdd42946a26333f3152b8a6571f9f1412b
3
+ metadata.gz: b8714f7eb058bc49f1d058d8e6d79979fbb7fec8
4
+ data.tar.gz: 8d290af7acaa82ded7f553fe027e56fdaec207c9
5
5
  SHA512:
6
- metadata.gz: 4ae50ba65da8441d9b250b428e56d6ea9c2192dfcd865868b5e7c7c53fb8b635d355b100bda5b4f18a6d506e6c4d9b617bdd21e38c4ebb8e97b0ca6d686f069a
7
- data.tar.gz: 7d6eae719a16c53cf67f1f5f2d39d5faf0b76c666761a89d13f0f90cbb0f39edbe47caf57dec4a725c9fd2e36f58d85937c4bb5f9a325b43a47585a3e3d21ecb
6
+ metadata.gz: 31fe8c09c974d14c9f1c52b959b99a6788b8b4eac56d9a76ed864dc8f33fcd5c1b737f3e18ee7e314d5dc75461e488fbb50304dd3f97d12d25bae2ba6d342dc4
7
+ data.tar.gz: df1da1daadbba87deaaaf91cc63ec4c9f4c0799130c13763c2e282d9c4dec867a2e43d556d241b1010e10ca006c48d6067e2c04f26d36bbe51dc617996c694fb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1016
1
+ 3.0.1017
@@ -3248,6 +3248,30 @@ module TencentCloud
3248
3248
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3249
3249
  end
3250
3250
 
3251
+ # 切换Tiga引擎规则类型的生效开关
3252
+
3253
+ # @param request: Request instance for ModifyUserSignatureClass.
3254
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureClassRequest`
3255
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureClassResponse`
3256
+ def ModifyUserSignatureClass(request)
3257
+ body = send_request('ModifyUserSignatureClass', request.serialize)
3258
+ response = JSON.parse(body)
3259
+ if response['Response'].key?('Error') == false
3260
+ model = ModifyUserSignatureClassResponse.new
3261
+ model.deserialize(response['Response'])
3262
+ model
3263
+ else
3264
+ code = response['Response']['Error']['Code']
3265
+ message = response['Response']['Error']['Message']
3266
+ reqid = response['Response']['RequestId']
3267
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3268
+ end
3269
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3270
+ raise e
3271
+ rescue StandardError => e
3272
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3273
+ end
3274
+
3251
3275
  # 修改用户防护规则,开启关闭具体的某条规则
3252
3276
 
3253
3277
  # @param request: Request instance for ModifyUserSignatureRule.
@@ -3512,6 +3536,30 @@ module TencentCloud
3512
3536
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3513
3537
  end
3514
3538
 
3539
+ # 更新Tiga引擎下大类规则的防护模式
3540
+
3541
+ # @param request: Request instance for UpdateProtectionModes.
3542
+ # @type request: :class:`Tencentcloud::waf::V20180125::UpdateProtectionModesRequest`
3543
+ # @rtype: :class:`Tencentcloud::waf::V20180125::UpdateProtectionModesResponse`
3544
+ def UpdateProtectionModes(request)
3545
+ body = send_request('UpdateProtectionModes', request.serialize)
3546
+ response = JSON.parse(body)
3547
+ if response['Response'].key?('Error') == false
3548
+ model = UpdateProtectionModesResponse.new
3549
+ model.deserialize(response['Response'])
3550
+ model
3551
+ else
3552
+ code = response['Response']['Error']['Code']
3553
+ message = response['Response']['Error']['Message']
3554
+ reqid = response['Response']['RequestId']
3555
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3556
+ end
3557
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3558
+ raise e
3559
+ rescue StandardError => e
3560
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3561
+ end
3562
+
3515
3563
  # 编辑SAAS型接入的紧急CC防护状态
3516
3564
 
3517
3565
  # @param request: Request instance for UpsertCCAutoStatus.
@@ -11988,6 +11988,54 @@ module TencentCloud
11988
11988
  end
11989
11989
  end
11990
11990
 
11991
+ # ModifyUserSignatureClass请求参数结构体
11992
+ class ModifyUserSignatureClassRequest < TencentCloud::Common::AbstractModel
11993
+ # @param Domain: 域名
11994
+ # @type Domain: String
11995
+ # @param TypeID: 规则类型ID
11996
+ # @type TypeID: String
11997
+ # @param Status: 规则类型状态,0:关闭,1:开启
11998
+ # @type Status: Integer
11999
+
12000
+ attr_accessor :Domain, :TypeID, :Status
12001
+
12002
+ def initialize(domain=nil, typeid=nil, status=nil)
12003
+ @Domain = domain
12004
+ @TypeID = typeid
12005
+ @Status = status
12006
+ end
12007
+
12008
+ def deserialize(params)
12009
+ @Domain = params['Domain']
12010
+ @TypeID = params['TypeID']
12011
+ @Status = params['Status']
12012
+ end
12013
+ end
12014
+
12015
+ # ModifyUserSignatureClass返回参数结构体
12016
+ class ModifyUserSignatureClassResponse < TencentCloud::Common::AbstractModel
12017
+ # @param TypeID: 规则类型ID
12018
+ # @type TypeID: String
12019
+ # @param Status: 规则类型状态,0:关闭,1:开启
12020
+ # @type Status: Integer
12021
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12022
+ # @type RequestId: String
12023
+
12024
+ attr_accessor :TypeID, :Status, :RequestId
12025
+
12026
+ def initialize(typeid=nil, status=nil, requestid=nil)
12027
+ @TypeID = typeid
12028
+ @Status = status
12029
+ @RequestId = requestid
12030
+ end
12031
+
12032
+ def deserialize(params)
12033
+ @TypeID = params['TypeID']
12034
+ @Status = params['Status']
12035
+ @RequestId = params['RequestId']
12036
+ end
12037
+ end
12038
+
11991
12039
  # ModifyUserSignatureRule请求参数结构体
11992
12040
  class ModifyUserSignatureRuleRequest < TencentCloud::Common::AbstractModel
11993
12041
  # @param Domain: 域名
@@ -13419,6 +13467,58 @@ module TencentCloud
13419
13467
  end
13420
13468
  end
13421
13469
 
13470
+ # UpdateProtectionModes请求参数结构体
13471
+ class UpdateProtectionModesRequest < TencentCloud::Common::AbstractModel
13472
+ # @param Domain: 域名
13473
+ # @type Domain: String
13474
+ # @param Edition: 资源类型
13475
+ # @type Edition: String
13476
+ # @param TypeIDs: 大类规则ID
13477
+ # @type TypeIDs: Array
13478
+ # @param Mode: 0表示观察,1表示拦截
13479
+ # @type Mode: Integer
13480
+
13481
+ attr_accessor :Domain, :Edition, :TypeIDs, :Mode
13482
+
13483
+ def initialize(domain=nil, edition=nil, typeids=nil, mode=nil)
13484
+ @Domain = domain
13485
+ @Edition = edition
13486
+ @TypeIDs = typeids
13487
+ @Mode = mode
13488
+ end
13489
+
13490
+ def deserialize(params)
13491
+ @Domain = params['Domain']
13492
+ @Edition = params['Edition']
13493
+ @TypeIDs = params['TypeIDs']
13494
+ @Mode = params['Mode']
13495
+ end
13496
+ end
13497
+
13498
+ # UpdateProtectionModes返回参数结构体
13499
+ class UpdateProtectionModesResponse < TencentCloud::Common::AbstractModel
13500
+ # @param CommonRsp: 操作结果
13501
+ # 注意:此字段可能返回 null,表示取不到有效值。
13502
+ # @type CommonRsp: :class:`Tencentcloud::Waf.v20180125.models.CommonRspData`
13503
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13504
+ # @type RequestId: String
13505
+
13506
+ attr_accessor :CommonRsp, :RequestId
13507
+
13508
+ def initialize(commonrsp=nil, requestid=nil)
13509
+ @CommonRsp = commonrsp
13510
+ @RequestId = requestid
13511
+ end
13512
+
13513
+ def deserialize(params)
13514
+ unless params['CommonRsp'].nil?
13515
+ @CommonRsp = CommonRspData.new
13516
+ @CommonRsp.deserialize(params['CommonRsp'])
13517
+ end
13518
+ @RequestId = params['RequestId']
13519
+ end
13520
+ end
13521
+
13422
13522
  # UpsertCCAutoStatus请求参数结构体
13423
13523
  class UpsertCCAutoStatusRequest < TencentCloud::Common::AbstractModel
13424
13524
  # @param Domain: 域名
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.1016
4
+ version: 3.0.1017
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-11 00:00:00.000000000 Z
11
+ date: 2025-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common