tencentcloud-sdk-waf 3.0.834 → 3.0.836

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: 06cab6def399d63a147bd9cb42e359201e75506c
4
- data.tar.gz: c7c10966f780d7f32577c7700f9d872365869880
3
+ metadata.gz: bf622286997eed551e89dd30d0c7c1f49f602af0
4
+ data.tar.gz: 0804dc57277653c6db39b1bdd0697e116813a08a
5
5
  SHA512:
6
- metadata.gz: d78ab9afef1dbd765a603195e8aec60d23640e85d748440585c81be1215e66edd96cf063a98f94139c42ac420d4b434b5a6d327a267d2cba4e038fa10c722647
7
- data.tar.gz: ecb5ebd572e2a99ec294b03100916bbc6031e752d20e1c86a842ea75152d90e901bd07cc092b71369f8ea2269ce205a1112c070c0a54d26d67210231c5493aee
6
+ metadata.gz: 8aa437876a656a9a12558a9fcbfb6d88ae603b5135599ec05ae57d6c6980a449cae02e30248acd21c3f5ca78eb938d850f9e27dae0ba0b81681985208d64ec32
7
+ data.tar.gz: 1acf14401210c14214a349a2146488a572872d4584b66e9b0df0614981ee8527d722bde35d0a8f374a30cc4d91adcbc81b439d99cb26239c220c40ed22799a98
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.834
1
+ 3.0.836
@@ -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.834
4
+ version: 3.0.836
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-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common