tencentcloud-sdk-waf 3.0.849 → 3.0.850

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: 63ed30276ffb4c4469a3ecff244ddb204cc9d3bd
4
- data.tar.gz: bf28e9c45aa51278f09d40bf8eac0881c58db0f3
3
+ metadata.gz: 207ba983e87487ea1d234b2ba42c2dce9106a8f1
4
+ data.tar.gz: 01d41c522afafd2026ec9497ab08f3de7a93dbc5
5
5
  SHA512:
6
- metadata.gz: a1818e913498c6284595c264fd5b398e947c33fae83e7d3ae626089a39d778b3475bcd42cedc3234afacffad29b48f2367a4fc04c67166cfe8c9502f89c0bd1a
7
- data.tar.gz: 02cda68024779c6580b4d648c1f5d5cddaba5b246c08433256ead9d1ee7e41429ed4da43046d5020a80fe863d1897eeb9ed8a35711e870db3fd4c8568305fe33
6
+ metadata.gz: 43610c40a7f9dd8a759ad5415746ac45eb6a1f3991f8fed49ef158207b60f3d8d2b0b31058e310d6f0de5337c8d8a675234a1d0036f0e5c2841ea37a2f8e5b3b
7
+ data.tar.gz: 3b9b07c52edf8511274a0f42828e6f40d0c24bd9e72f032c2b63a52d36c0d82e59599763874d492fd59d57fdc2fdaf8d0106718286a60b037ef077e9f7c6c773
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.849
1
+ 3.0.850
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 添加地域封禁中的地域信息
81
+
82
+ # @param request: Request instance for AddAreaBanAreas.
83
+ # @type request: :class:`Tencentcloud::waf::V20180125::AddAreaBanAreasRequest`
84
+ # @rtype: :class:`Tencentcloud::waf::V20180125::AddAreaBanAreasResponse`
85
+ def AddAreaBanAreas(request)
86
+ body = send_request('AddAreaBanAreas', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddAreaBanAreasResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 供用户控制台调用,增加Tiga规则引擎白名单。
81
105
 
82
106
  # @param request: Request instance for AddAttackWhiteRule.
@@ -457,6 +457,57 @@ module TencentCloud
457
457
  end
458
458
  end
459
459
 
460
+ # AddAreaBanAreas请求参数结构体
461
+ class AddAreaBanAreasRequest < TencentCloud::Common::AbstractModel
462
+ # @param Domain: 需要修改的域名
463
+ # @type Domain: String
464
+ # @param Areas: 需要新增的封禁地域
465
+ # @type Areas: Array
466
+ # @param Edition: waf版本信息,spart-waf或者clb-waf,其他无效,请一定填写
467
+ # @type Edition: String
468
+ # @param JobType: 定时任务类型
469
+ # @type JobType: String
470
+ # @param JobDateTime: 定时任务配置
471
+ # @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
472
+
473
+ attr_accessor :Domain, :Areas, :Edition, :JobType, :JobDateTime
474
+
475
+ def initialize(domain=nil, areas=nil, edition=nil, jobtype=nil, jobdatetime=nil)
476
+ @Domain = domain
477
+ @Areas = areas
478
+ @Edition = edition
479
+ @JobType = jobtype
480
+ @JobDateTime = jobdatetime
481
+ end
482
+
483
+ def deserialize(params)
484
+ @Domain = params['Domain']
485
+ @Areas = params['Areas']
486
+ @Edition = params['Edition']
487
+ @JobType = params['JobType']
488
+ unless params['JobDateTime'].nil?
489
+ @JobDateTime = JobDateTime.new
490
+ @JobDateTime.deserialize(params['JobDateTime'])
491
+ end
492
+ end
493
+ end
494
+
495
+ # AddAreaBanAreas返回参数结构体
496
+ class AddAreaBanAreasResponse < TencentCloud::Common::AbstractModel
497
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
498
+ # @type RequestId: String
499
+
500
+ attr_accessor :RequestId
501
+
502
+ def initialize(requestid=nil)
503
+ @RequestId = requestid
504
+ end
505
+
506
+ def deserialize(params)
507
+ @RequestId = params['RequestId']
508
+ end
509
+ end
510
+
460
511
  # AddAttackWhiteRule请求参数结构体
461
512
  class AddAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
462
513
  # @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.849
4
+ version: 3.0.850
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-23 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common