tencentcloud-sdk-waf 3.0.835 → 3.0.837

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: 98587e35b218e50f6ca966c0cbf752bf0226d599
4
- data.tar.gz: 47712a6bb9c92236cf160d5fc6c5e1e7a030171a
3
+ metadata.gz: 54472e9edf963398436f0fe167b622c999471717
4
+ data.tar.gz: f420b127bfba4a6f3c50b6592cf45bdfec364a43
5
5
  SHA512:
6
- metadata.gz: 07eba4eb795b45fce6ff5b4e83ac2fd2e8135e0276a8cf193646aa62ec920e8ed0a72a7c0463d5a6d8a8c1358fe7a8549188f7aae893a1c19b9f93d2c0973bdc
7
- data.tar.gz: 700e37da88391da47e37a1d9e350d76c887700843e2d6d3e29e589d17f52e59c601a7f2846b8e4c128fac821aab97dac636d3b13f820f824bf2af52d6a67ae06
6
+ metadata.gz: 9be12d957e2bb415d8867206e045970979569c0e76830f65eda5e97027db858d1f66246ef2430eb89af85b1e2f5535e1362135c276cf5f481eaa4f44f17d3012
7
+ data.tar.gz: 9795f73167c9dc861da65986d7fe7c18dd2a94b28d7a48470be0390fba97bcb6a63804d970770433703e14fc823e16e292fc71ce51c872dd1ec992efabf9f051
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.835
1
+ 3.0.837
@@ -2339,6 +2339,30 @@ module TencentCloud
2339
2339
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2340
2340
  end
2341
2341
 
2342
+ # api安全状态变更接口
2343
+
2344
+ # @param request: Request instance for ModifyApiSecEventChange.
2345
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyApiSecEventChangeRequest`
2346
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyApiSecEventChangeResponse`
2347
+ def ModifyApiSecEventChange(request)
2348
+ body = send_request('ModifyApiSecEventChange', request.serialize)
2349
+ response = JSON.parse(body)
2350
+ if response['Response'].key?('Error') == false
2351
+ model = ModifyApiSecEventChangeResponse.new
2352
+ model.deserialize(response['Response'])
2353
+ model
2354
+ else
2355
+ code = response['Response']['Error']['Code']
2356
+ message = response['Response']['Error']['Message']
2357
+ reqid = response['Response']['RequestId']
2358
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2359
+ end
2360
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2361
+ raise e
2362
+ rescue StandardError => e
2363
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2364
+ end
2365
+
2342
2366
  # 修改防护域名的地域封禁状态
2343
2367
 
2344
2368
  # @param request: Request instance for ModifyAreaBanStatus.
@@ -56,8 +56,8 @@ module TencentCloud
56
56
 
57
57
  attr_accessor :BTime, :Count, :BeginTime
58
58
  extend Gem::Deprecate
59
- deprecate :BTime, :none, 2024, 5
60
- deprecate :BTime=, :none, 2024, 5
59
+ deprecate :BTime, :none, 2024, 6
60
+ deprecate :BTime=, :none, 2024, 6
61
61
 
62
62
  def initialize(btime=nil, count=nil, begintime=nil)
63
63
  @BTime = btime
@@ -1035,6 +1035,30 @@ module TencentCloud
1035
1035
  end
1036
1036
  end
1037
1037
 
1038
+ # api列表
1039
+ class ApiSecKey < TencentCloud::Common::AbstractModel
1040
+ # @param ApiName: api名称
1041
+ # @type ApiName: String
1042
+ # @param Domain: 域名
1043
+ # @type Domain: String
1044
+ # @param Method: 请求方法
1045
+ # @type Method: String
1046
+
1047
+ attr_accessor :ApiName, :Domain, :Method
1048
+
1049
+ def initialize(apiname=nil, domain=nil, method=nil)
1050
+ @ApiName = apiname
1051
+ @Domain = domain
1052
+ @Method = method
1053
+ end
1054
+
1055
+ def deserialize(params)
1056
+ @ApiName = params['ApiName']
1057
+ @Domain = params['Domain']
1058
+ @Method = params['Method']
1059
+ end
1060
+ end
1061
+
1038
1062
  # 攻击日志详情
1039
1063
  class AttackLogInfo < TencentCloud::Common::AbstractModel
1040
1064
  # @param Content: 攻击日志的详情内容
@@ -5253,10 +5277,10 @@ module TencentCloud
5253
5277
 
5254
5278
  attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId
5255
5279
  extend Gem::Deprecate
5256
- deprecate :VtsMin, :none, 2024, 5
5257
- deprecate :VtsMin=, :none, 2024, 5
5258
- deprecate :VtsMax, :none, 2024, 5
5259
- deprecate :VtsMax=, :none, 2024, 5
5280
+ deprecate :VtsMin, :none, 2024, 6
5281
+ deprecate :VtsMin=, :none, 2024, 6
5282
+ deprecate :VtsMax, :none, 2024, 6
5283
+ deprecate :VtsMax=, :none, 2024, 6
5260
5284
 
5261
5285
  def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil)
5262
5286
  @Domain = domain
@@ -5359,10 +5383,10 @@ module TencentCloud
5359
5383
 
5360
5384
  attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
5361
5385
  extend Gem::Deprecate
5362
- deprecate :VtsMin, :none, 2024, 5
5363
- deprecate :VtsMin=, :none, 2024, 5
5364
- deprecate :VtsMax, :none, 2024, 5
5365
- deprecate :VtsMax=, :none, 2024, 5
5386
+ deprecate :VtsMin, :none, 2024, 6
5387
+ deprecate :VtsMin=, :none, 2024, 6
5388
+ deprecate :VtsMax, :none, 2024, 6
5389
+ deprecate :VtsMax=, :none, 2024, 6
5366
5390
 
5367
5391
  def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
5368
5392
  @Domain = domain
@@ -9116,8 +9140,8 @@ module TencentCloud
9116
9140
 
9117
9141
  attr_accessor :Period, :TopicId
9118
9142
  extend Gem::Deprecate
9119
- deprecate :TopicId, :none, 2024, 5
9120
- deprecate :TopicId=, :none, 2024, 5
9143
+ deprecate :TopicId, :none, 2024, 6
9144
+ deprecate :TopicId=, :none, 2024, 6
9121
9145
 
9122
9146
  def initialize(period=nil, topicid=nil)
9123
9147
  @Period = period
@@ -9395,6 +9419,69 @@ module TencentCloud
9395
9419
  end
9396
9420
  end
9397
9421
 
9422
+ # ModifyApiSecEventChange请求参数结构体
9423
+ class ModifyApiSecEventChangeRequest < TencentCloud::Common::AbstractModel
9424
+ # @param Mode: 变更状态,1:新发现,2,确认中,3,已确认,4,已下线,5,已忽略
9425
+ # @type Mode: String
9426
+ # @param UserName: 处理人
9427
+ # @type UserName: String
9428
+ # @param Remark: 备注,有长度显示1k
9429
+ # @type Remark: String
9430
+ # @param EventIdList: 批量操作的事件列表
9431
+ # @type EventIdList: Array
9432
+ # @param ApiNameList: 批量操作的api列表
9433
+ # @type ApiNameList: Array
9434
+ # @param IsDelete: 判断是否删除,包括删除事件和删除资产
9435
+ # @type IsDelete: Boolean
9436
+ # @param UpdateApiRemark: 判断是否是更新api的备注,更新api备注的时候,为true
9437
+ # @type UpdateApiRemark: Boolean
9438
+
9439
+ attr_accessor :Mode, :UserName, :Remark, :EventIdList, :ApiNameList, :IsDelete, :UpdateApiRemark
9440
+
9441
+ def initialize(mode=nil, username=nil, remark=nil, eventidlist=nil, apinamelist=nil, isdelete=nil, updateapiremark=nil)
9442
+ @Mode = mode
9443
+ @UserName = username
9444
+ @Remark = remark
9445
+ @EventIdList = eventidlist
9446
+ @ApiNameList = apinamelist
9447
+ @IsDelete = isdelete
9448
+ @UpdateApiRemark = updateapiremark
9449
+ end
9450
+
9451
+ def deserialize(params)
9452
+ @Mode = params['Mode']
9453
+ @UserName = params['UserName']
9454
+ @Remark = params['Remark']
9455
+ @EventIdList = params['EventIdList']
9456
+ unless params['ApiNameList'].nil?
9457
+ @ApiNameList = []
9458
+ params['ApiNameList'].each do |i|
9459
+ apiseckey_tmp = ApiSecKey.new
9460
+ apiseckey_tmp.deserialize(i)
9461
+ @ApiNameList << apiseckey_tmp
9462
+ end
9463
+ end
9464
+ @IsDelete = params['IsDelete']
9465
+ @UpdateApiRemark = params['UpdateApiRemark']
9466
+ end
9467
+ end
9468
+
9469
+ # ModifyApiSecEventChange返回参数结构体
9470
+ class ModifyApiSecEventChangeResponse < TencentCloud::Common::AbstractModel
9471
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9472
+ # @type RequestId: String
9473
+
9474
+ attr_accessor :RequestId
9475
+
9476
+ def initialize(requestid=nil)
9477
+ @RequestId = requestid
9478
+ end
9479
+
9480
+ def deserialize(params)
9481
+ @RequestId = params['RequestId']
9482
+ end
9483
+ end
9484
+
9398
9485
  # ModifyAreaBanStatus请求参数结构体
9399
9486
  class ModifyAreaBanStatusRequest < TencentCloud::Common::AbstractModel
9400
9487
  # @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.835
4
+ version: 3.0.837
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-06-02 00:00:00.000000000 Z
11
+ date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common