tencentcloud-sdk-antiddos 1.0.227 → 1.0.228
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 +72 -0
- data/lib/v20200309/models.rb +168 -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: a7b1e43e1f467164c2b8cf0ea6749304182d9a72
|
4
|
+
data.tar.gz: b2d2c89aae1bde3afff3cfd500fed739e4be2d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac58896ba3b422d7813df1599ddb339d4c0f0687d53ec84662cd8924bb6dcddb4d82845a822da33c3fd59173bc07427bd6dd8806b6c242426758797214000bf5
|
7
|
+
data.tar.gz: 13b76adcf64160a3bd7290832fc07d0f25e946dc99dc5a1b9249c00be12327ee5d1fb58bd20a3ee61a94e799b21ee89f2ac6c1b9f1dbad24d362d4ac50ee6440
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.228
|
data/lib/v20200309/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 添加DDoS防护的IP网段黑白名单
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateDDoSBlackWhiteIpList.
|
155
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreateDDoSBlackWhiteIpListRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateDDoSBlackWhiteIpListResponse`
|
157
|
+
def CreateDDoSBlackWhiteIpList(request)
|
158
|
+
body = send_request('CreateDDoSBlackWhiteIpList', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateDDoSBlackWhiteIpListResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 添加DDoS防护的区域封禁配置
|
153
177
|
|
154
178
|
# @param request: Request instance for CreateDDoSGeoIPBlockConfig.
|
@@ -413,6 +437,30 @@ module TencentCloud
|
|
413
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
438
|
end
|
415
439
|
|
440
|
+
# 删除DDoS防护的IP网段黑白名单
|
441
|
+
|
442
|
+
# @param request: Request instance for DeleteDDoSBlackWhiteIpList.
|
443
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteDDoSBlackWhiteIpListRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteDDoSBlackWhiteIpListResponse`
|
445
|
+
def DeleteDDoSBlackWhiteIpList(request)
|
446
|
+
body = send_request('DeleteDDoSBlackWhiteIpList', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = DeleteDDoSBlackWhiteIpListResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
416
464
|
# 删除DDoS防护的区域封禁配置
|
417
465
|
|
418
466
|
# @param request: Request instance for DeleteDDoSGeoIPBlockConfig.
|
@@ -629,6 +677,30 @@ module TencentCloud
|
|
629
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
678
|
end
|
631
679
|
|
680
|
+
# 获取DDoS防护的IP网段黑白名单
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeDDoSBlackWhiteIpList.
|
683
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeDDoSBlackWhiteIpListRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeDDoSBlackWhiteIpListResponse`
|
685
|
+
def DescribeDDoSBlackWhiteIpList(request)
|
686
|
+
body = send_request('DescribeDDoSBlackWhiteIpList', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeDDoSBlackWhiteIpListResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
632
704
|
# 获取DDoS攻击流量带宽和攻击包速率数据
|
633
705
|
|
634
706
|
# @param request: Request instance for DescribeDDoSTrend.
|
data/lib/v20200309/models.rb
CHANGED
@@ -705,6 +705,53 @@ module TencentCloud
|
|
705
705
|
end
|
706
706
|
end
|
707
707
|
|
708
|
+
# CreateDDoSBlackWhiteIpList请求参数结构体
|
709
|
+
class CreateDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
710
|
+
# @param InstanceId: 资源实例ID
|
711
|
+
# @type InstanceId: String
|
712
|
+
# @param IpList: IP列表
|
713
|
+
# @type IpList: Array
|
714
|
+
# @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)]
|
715
|
+
# @type Type: String
|
716
|
+
|
717
|
+
attr_accessor :InstanceId, :IpList, :Type
|
718
|
+
|
719
|
+
def initialize(instanceid=nil, iplist=nil, type=nil)
|
720
|
+
@InstanceId = instanceid
|
721
|
+
@IpList = iplist
|
722
|
+
@Type = type
|
723
|
+
end
|
724
|
+
|
725
|
+
def deserialize(params)
|
726
|
+
@InstanceId = params['InstanceId']
|
727
|
+
unless params['IpList'].nil?
|
728
|
+
@IpList = []
|
729
|
+
params['IpList'].each do |i|
|
730
|
+
ipsegment_tmp = IpSegment.new
|
731
|
+
ipsegment_tmp.deserialize(i)
|
732
|
+
@IpList << ipsegment_tmp
|
733
|
+
end
|
734
|
+
end
|
735
|
+
@Type = params['Type']
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
739
|
+
# CreateDDoSBlackWhiteIpList返回参数结构体
|
740
|
+
class CreateDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
|
741
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
742
|
+
# @type RequestId: String
|
743
|
+
|
744
|
+
attr_accessor :RequestId
|
745
|
+
|
746
|
+
def initialize(requestid=nil)
|
747
|
+
@RequestId = requestid
|
748
|
+
end
|
749
|
+
|
750
|
+
def deserialize(params)
|
751
|
+
@RequestId = params['RequestId']
|
752
|
+
end
|
753
|
+
end
|
754
|
+
|
708
755
|
# CreateDDoSGeoIPBlockConfig请求参数结构体
|
709
756
|
class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
|
710
757
|
# @param InstanceId: 资源实例ID
|
@@ -1342,6 +1389,53 @@ module TencentCloud
|
|
1342
1389
|
end
|
1343
1390
|
end
|
1344
1391
|
|
1392
|
+
# DeleteDDoSBlackWhiteIpList请求参数结构体
|
1393
|
+
class DeleteDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
1394
|
+
# @param InstanceId: 资源实例ID
|
1395
|
+
# @type InstanceId: String
|
1396
|
+
# @param IpList: IP列表
|
1397
|
+
# @type IpList: Array
|
1398
|
+
# @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)]
|
1399
|
+
# @type Type: String
|
1400
|
+
|
1401
|
+
attr_accessor :InstanceId, :IpList, :Type
|
1402
|
+
|
1403
|
+
def initialize(instanceid=nil, iplist=nil, type=nil)
|
1404
|
+
@InstanceId = instanceid
|
1405
|
+
@IpList = iplist
|
1406
|
+
@Type = type
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
def deserialize(params)
|
1410
|
+
@InstanceId = params['InstanceId']
|
1411
|
+
unless params['IpList'].nil?
|
1412
|
+
@IpList = []
|
1413
|
+
params['IpList'].each do |i|
|
1414
|
+
ipsegment_tmp = IpSegment.new
|
1415
|
+
ipsegment_tmp.deserialize(i)
|
1416
|
+
@IpList << ipsegment_tmp
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
@Type = params['Type']
|
1420
|
+
end
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
# DeleteDDoSBlackWhiteIpList返回参数结构体
|
1424
|
+
class DeleteDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
|
1425
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1426
|
+
# @type RequestId: String
|
1427
|
+
|
1428
|
+
attr_accessor :RequestId
|
1429
|
+
|
1430
|
+
def initialize(requestid=nil)
|
1431
|
+
@RequestId = requestid
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
def deserialize(params)
|
1435
|
+
@RequestId = params['RequestId']
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1345
1439
|
# DeleteDDoSGeoIPBlockConfig请求参数结构体
|
1346
1440
|
class DeleteDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
|
1347
1441
|
# @param InstanceId: 资源实例ID
|
@@ -1789,6 +1883,60 @@ module TencentCloud
|
|
1789
1883
|
end
|
1790
1884
|
end
|
1791
1885
|
|
1886
|
+
# DescribeDDoSBlackWhiteIpList请求参数结构体
|
1887
|
+
class DescribeDDoSBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
1888
|
+
# @param InstanceId: 资源实例ID
|
1889
|
+
# @type InstanceId: String
|
1890
|
+
|
1891
|
+
attr_accessor :InstanceId
|
1892
|
+
|
1893
|
+
def initialize(instanceid=nil)
|
1894
|
+
@InstanceId = instanceid
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
def deserialize(params)
|
1898
|
+
@InstanceId = params['InstanceId']
|
1899
|
+
end
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
# DescribeDDoSBlackWhiteIpList返回参数结构体
|
1903
|
+
class DescribeDDoSBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
|
1904
|
+
# @param BlackIpList: 黑名单IP列表
|
1905
|
+
# @type BlackIpList: Array
|
1906
|
+
# @param WhiteIpList: 白名单IP列表
|
1907
|
+
# @type WhiteIpList: Array
|
1908
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1909
|
+
# @type RequestId: String
|
1910
|
+
|
1911
|
+
attr_accessor :BlackIpList, :WhiteIpList, :RequestId
|
1912
|
+
|
1913
|
+
def initialize(blackiplist=nil, whiteiplist=nil, requestid=nil)
|
1914
|
+
@BlackIpList = blackiplist
|
1915
|
+
@WhiteIpList = whiteiplist
|
1916
|
+
@RequestId = requestid
|
1917
|
+
end
|
1918
|
+
|
1919
|
+
def deserialize(params)
|
1920
|
+
unless params['BlackIpList'].nil?
|
1921
|
+
@BlackIpList = []
|
1922
|
+
params['BlackIpList'].each do |i|
|
1923
|
+
ipsegment_tmp = IpSegment.new
|
1924
|
+
ipsegment_tmp.deserialize(i)
|
1925
|
+
@BlackIpList << ipsegment_tmp
|
1926
|
+
end
|
1927
|
+
end
|
1928
|
+
unless params['WhiteIpList'].nil?
|
1929
|
+
@WhiteIpList = []
|
1930
|
+
params['WhiteIpList'].each do |i|
|
1931
|
+
ipsegment_tmp = IpSegment.new
|
1932
|
+
ipsegment_tmp.deserialize(i)
|
1933
|
+
@WhiteIpList << ipsegment_tmp
|
1934
|
+
end
|
1935
|
+
end
|
1936
|
+
@RequestId = params['RequestId']
|
1937
|
+
end
|
1938
|
+
end
|
1939
|
+
|
1792
1940
|
# DescribeDDoSTrend请求参数结构体
|
1793
1941
|
class DescribeDDoSTrendRequest < TencentCloud::Common::AbstractModel
|
1794
1942
|
# @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
|
@@ -3086,6 +3234,26 @@ module TencentCloud
|
|
3086
3234
|
end
|
3087
3235
|
end
|
3088
3236
|
|
3237
|
+
# ip段数据结构
|
3238
|
+
class IpSegment < TencentCloud::Common::AbstractModel
|
3239
|
+
# @param Ip: ip地址
|
3240
|
+
# @type Ip: String
|
3241
|
+
# @param Mask: ip掩码,如果为32位ip,填0
|
3242
|
+
# @type Mask: Integer
|
3243
|
+
|
3244
|
+
attr_accessor :Ip, :Mask
|
3245
|
+
|
3246
|
+
def initialize(ip=nil, mask=nil)
|
3247
|
+
@Ip = ip
|
3248
|
+
@Mask = mask
|
3249
|
+
end
|
3250
|
+
|
3251
|
+
def deserialize(params)
|
3252
|
+
@Ip = params['Ip']
|
3253
|
+
@Mask = params['Mask']
|
3254
|
+
end
|
3255
|
+
end
|
3256
|
+
|
3089
3257
|
# 字段值,K-V形式
|
3090
3258
|
class KeyValue < TencentCloud::Common::AbstractModel
|
3091
3259
|
# @param Key: 字段名称
|
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: 1.0.
|
4
|
+
version: 1.0.228
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|