tencentcloud-sdk-antiddos 3.0.725 → 3.0.726
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200309/client.rb +25 -1
- data/lib/v20200309/models.rb +74 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c50f990297c18c79e5987c3396c0941207e0a2
|
4
|
+
data.tar.gz: 64c6325f85663738e4aaffafface52a48d825bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8487ee5803461a9d6d0321975164657d87fde01d449310ef8fc69367b7e68395bb382d4f133cc5f19d0e79ce51d917e0b8c8ea49c27f32cf0298f00ddd0ad164
|
7
|
+
data.tar.gz: 37f49a51303bcc1ac9cbaa92775389576e2c7f4344a79bf9ee0f2a2541fabbf9c24aac86a724e50eba51f84704ca52f39135aaf71e0b90b6c87b920430b996fa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.726
|
data/lib/v20200309/client.rb
CHANGED
@@ -197,7 +197,7 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
-
# 新建
|
200
|
+
# 新建CC防护的地域封禁配置
|
201
201
|
|
202
202
|
# @param request: Request instance for CreateCcGeoIPBlockConfig.
|
203
203
|
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreateCcGeoIPBlockConfigRequest`
|
@@ -1351,6 +1351,30 @@ module TencentCloud
|
|
1351
1351
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1352
1352
|
end
|
1353
1353
|
|
1354
|
+
# 获取IP封堵列表
|
1355
|
+
|
1356
|
+
# @param request: Request instance for DescribeIpBlockList.
|
1357
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeIpBlockListRequest`
|
1358
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeIpBlockListResponse`
|
1359
|
+
def DescribeIpBlockList(request)
|
1360
|
+
body = send_request('DescribeIpBlockList', request.serialize)
|
1361
|
+
response = JSON.parse(body)
|
1362
|
+
if response['Response'].key?('Error') == false
|
1363
|
+
model = DescribeIpBlockListResponse.new
|
1364
|
+
model.deserialize(response['Response'])
|
1365
|
+
model
|
1366
|
+
else
|
1367
|
+
code = response['Response']['Error']['Code']
|
1368
|
+
message = response['Response']['Error']['Message']
|
1369
|
+
reqid = response['Response']['RequestId']
|
1370
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1371
|
+
end
|
1372
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1373
|
+
raise e
|
1374
|
+
rescue StandardError => e
|
1375
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1376
|
+
end
|
1377
|
+
|
1354
1378
|
# 查询与证书ID对于域名匹配的七层规则
|
1355
1379
|
|
1356
1380
|
# @param request: Request instance for DescribeL7RulesBySSLCertId.
|
data/lib/v20200309/models.rb
CHANGED
@@ -4213,6 +4213,44 @@ module TencentCloud
|
|
4213
4213
|
end
|
4214
4214
|
end
|
4215
4215
|
|
4216
|
+
# DescribeIpBlockList请求参数结构体
|
4217
|
+
class DescribeIpBlockListRequest < TencentCloud::Common::AbstractModel
|
4218
|
+
|
4219
|
+
|
4220
|
+
def initialize()
|
4221
|
+
end
|
4222
|
+
|
4223
|
+
def deserialize(params)
|
4224
|
+
end
|
4225
|
+
end
|
4226
|
+
|
4227
|
+
# DescribeIpBlockList返回参数结构体
|
4228
|
+
class DescribeIpBlockListResponse < TencentCloud::Common::AbstractModel
|
4229
|
+
# @param List: IP封堵列表
|
4230
|
+
# @type List: Array
|
4231
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4232
|
+
# @type RequestId: String
|
4233
|
+
|
4234
|
+
attr_accessor :List, :RequestId
|
4235
|
+
|
4236
|
+
def initialize(list=nil, requestid=nil)
|
4237
|
+
@List = list
|
4238
|
+
@RequestId = requestid
|
4239
|
+
end
|
4240
|
+
|
4241
|
+
def deserialize(params)
|
4242
|
+
unless params['List'].nil?
|
4243
|
+
@List = []
|
4244
|
+
params['List'].each do |i|
|
4245
|
+
ipblockdata_tmp = IpBlockData.new
|
4246
|
+
ipblockdata_tmp.deserialize(i)
|
4247
|
+
@List << ipblockdata_tmp
|
4248
|
+
end
|
4249
|
+
end
|
4250
|
+
@RequestId = params['RequestId']
|
4251
|
+
end
|
4252
|
+
end
|
4253
|
+
|
4216
4254
|
# DescribeL7RulesBySSLCertId请求参数结构体
|
4217
4255
|
class DescribeL7RulesBySSLCertIdRequest < TencentCloud::Common::AbstractModel
|
4218
4256
|
# @param Status: 域名状态,可取bindable, binded, opened, closed, all,all表示全部状态
|
@@ -6095,6 +6133,42 @@ module TencentCloud
|
|
6095
6133
|
end
|
6096
6134
|
end
|
6097
6135
|
|
6136
|
+
# IP封堵记录
|
6137
|
+
class IpBlockData < TencentCloud::Common::AbstractModel
|
6138
|
+
# @param Status: 状态(Blocked:被封堵;UnBlocking:解封中;UnBlockFailed:解封失败)
|
6139
|
+
# @type Status: String
|
6140
|
+
# @param Ip: 资源IP
|
6141
|
+
# @type Ip: String
|
6142
|
+
# @param BlockTime: 封堵时间
|
6143
|
+
# @type BlockTime: String
|
6144
|
+
# @param UnBlockTime: 解封时间(预计解封时间)
|
6145
|
+
# @type UnBlockTime: String
|
6146
|
+
# @param ActionType: 解封类型(user:自助解封;auto:自动解封; update:升级解封;bind:绑定高防包解封)
|
6147
|
+
# @type ActionType: String
|
6148
|
+
# @param ProtectFlag: 高防标记,0:非高防,1:高防
|
6149
|
+
# @type ProtectFlag: Integer
|
6150
|
+
|
6151
|
+
attr_accessor :Status, :Ip, :BlockTime, :UnBlockTime, :ActionType, :ProtectFlag
|
6152
|
+
|
6153
|
+
def initialize(status=nil, ip=nil, blocktime=nil, unblocktime=nil, actiontype=nil, protectflag=nil)
|
6154
|
+
@Status = status
|
6155
|
+
@Ip = ip
|
6156
|
+
@BlockTime = blocktime
|
6157
|
+
@UnBlockTime = unblocktime
|
6158
|
+
@ActionType = actiontype
|
6159
|
+
@ProtectFlag = protectflag
|
6160
|
+
end
|
6161
|
+
|
6162
|
+
def deserialize(params)
|
6163
|
+
@Status = params['Status']
|
6164
|
+
@Ip = params['Ip']
|
6165
|
+
@BlockTime = params['BlockTime']
|
6166
|
+
@UnBlockTime = params['UnBlockTime']
|
6167
|
+
@ActionType = params['ActionType']
|
6168
|
+
@ProtectFlag = params['ProtectFlag']
|
6169
|
+
end
|
6170
|
+
end
|
6171
|
+
|
6098
6172
|
# ip段数据结构
|
6099
6173
|
class IpSegment < TencentCloud::Common::AbstractModel
|
6100
6174
|
# @param Ip: ip地址
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-antiddos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.726
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|