tencentcloud-sdk-waf 3.0.931 → 3.0.933

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: 18f56f9cd6c56c98aefbae10d91c9aceb6a43ab6
4
- data.tar.gz: fab613b62b58ddda437bd295c2a557d52e555dd2
3
+ metadata.gz: e2c4fa5296896fbf476dfb58c2a63f6908ddadae
4
+ data.tar.gz: dcbec670f038d5c38ddcf60e5aedaa3495a3f2ed
5
5
  SHA512:
6
- metadata.gz: eefe45d5d55433d7238541b0c886822d0f6dc4868048a2dcc17a0629f0b9bfd5512f05c2a3b72b8095dba0408e783896f9b505ace2cc01d3b82fb439445448b8
7
- data.tar.gz: 8d5641d73a3cdd31b85317ece829085b306ef5ae92d92d1c1485064c10ab7b2525680708bd83ce2b7c6efcdf1f9b4a4312432e325ed5b66e6c9fd2132e2b810b
6
+ metadata.gz: 97197512bfaa49f3f2c0cfa0a754ba9f77a455fc3407795a1b6308c138bf63bf9e79a41ada3d87b8325ebb2d21206810799d380203dee9a2ca40769aaf131a60
7
+ data.tar.gz: de71966ae32a13dabca85c1fdc782db5b0cae53fc0869da1015c0b7d9e10375edaf76e9b6f7c371d8e0504907c65755a8881ccc397d2696fae71ed18bc48a050
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.931
1
+ 3.0.933
@@ -3180,6 +3180,30 @@ module TencentCloud
3180
3180
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3181
3181
  end
3182
3182
 
3183
+ # 修改用户防护规则,开启关闭具体的某条规则
3184
+
3185
+ # @param request: Request instance for ModifyUserSignatureRuleV2.
3186
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureRuleV2Request`
3187
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyUserSignatureRuleV2Response`
3188
+ def ModifyUserSignatureRuleV2(request)
3189
+ body = send_request('ModifyUserSignatureRuleV2', request.serialize)
3190
+ response = JSON.parse(body)
3191
+ if response['Response'].key?('Error') == false
3192
+ model = ModifyUserSignatureRuleV2Response.new
3193
+ model.deserialize(response['Response'])
3194
+ model
3195
+ else
3196
+ code = response['Response']['Error']['Code']
3197
+ message = response['Response']['Error']['Message']
3198
+ reqid = response['Response']['RequestId']
3199
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3200
+ end
3201
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3202
+ raise e
3203
+ rescue StandardError => e
3204
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3205
+ end
3206
+
3183
3207
  # 修改ip惩罚规则
3184
3208
 
3185
3209
  # @param request: Request instance for ModifyWafAutoDenyRules.
@@ -12053,6 +12053,57 @@ module TencentCloud
12053
12053
  end
12054
12054
  end
12055
12055
 
12056
+ # ModifyUserSignatureRuleV2请求参数结构体
12057
+ class ModifyUserSignatureRuleV2Request < TencentCloud::Common::AbstractModel
12058
+ # @param Domain: 域名
12059
+ # @type Domain: String
12060
+ # @param MainClassID: 主类id
12061
+ # @type MainClassID: String
12062
+ # @param Status: 主类开关0=关闭,1=开启,2=只告警
12063
+ # @type Status: Integer
12064
+ # @param RuleID: 下发修改的规则列表
12065
+ # @type RuleID: Array
12066
+
12067
+ attr_accessor :Domain, :MainClassID, :Status, :RuleID
12068
+
12069
+ def initialize(domain=nil, mainclassid=nil, status=nil, ruleid=nil)
12070
+ @Domain = domain
12071
+ @MainClassID = mainclassid
12072
+ @Status = status
12073
+ @RuleID = ruleid
12074
+ end
12075
+
12076
+ def deserialize(params)
12077
+ @Domain = params['Domain']
12078
+ @MainClassID = params['MainClassID']
12079
+ @Status = params['Status']
12080
+ unless params['RuleID'].nil?
12081
+ @RuleID = []
12082
+ params['RuleID'].each do |i|
12083
+ requserrule_tmp = ReqUserRule.new
12084
+ requserrule_tmp.deserialize(i)
12085
+ @RuleID << requserrule_tmp
12086
+ end
12087
+ end
12088
+ end
12089
+ end
12090
+
12091
+ # ModifyUserSignatureRuleV2返回参数结构体
12092
+ class ModifyUserSignatureRuleV2Response < TencentCloud::Common::AbstractModel
12093
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12094
+ # @type RequestId: String
12095
+
12096
+ attr_accessor :RequestId
12097
+
12098
+ def initialize(requestid=nil)
12099
+ @RequestId = requestid
12100
+ end
12101
+
12102
+ def deserialize(params)
12103
+ @RequestId = params['RequestId']
12104
+ end
12105
+ end
12106
+
12056
12107
  # ModifyWafAutoDenyRules请求参数结构体
12057
12108
  class ModifyWafAutoDenyRulesRequest < TencentCloud::Common::AbstractModel
12058
12109
  # @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.931
4
+ version: 3.0.933
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-10-23 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common