tencentcloud-sdk-antiddos 3.0.382 → 3.0.386
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 +24 -24
- data/lib/v20200309/models.rb +68 -40
- 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: 9d2fa2425eac709e7d79154f7bedcc792fc5d8e1
|
4
|
+
data.tar.gz: 8587a43b0264b438630f7bc7b5392710c20ff855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0d3ea58ef9f68561f90f126cb1ea52e53a3ff03da31573365983de52a2750a781424fbe18a8c9549add088367d86dbf85754bb959db2d46c9f8a310c3f1e704
|
7
|
+
data.tar.gz: 2779f2f01ad9cb1bd6e97592dbd73a5f0a1e2d9460dabca9670d7df8886546a7d0595f2f17aef41f5128f74213461341e2c7dbdfb42a0bb53188f2e18161cf04
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.386
|
data/lib/v20200309/client.rb
CHANGED
@@ -605,30 +605,6 @@ module TencentCloud
|
|
605
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
606
|
end
|
607
607
|
|
608
|
-
# 删除DDoS防护的IP黑白名单
|
609
|
-
|
610
|
-
# @param request: Request instance for DeleteBlackWhiteIpList.
|
611
|
-
# @type request: :class:`Tencentcloud::antiddos::V20200309::DeleteBlackWhiteIpListRequest`
|
612
|
-
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DeleteBlackWhiteIpListResponse`
|
613
|
-
def DeleteBlackWhiteIpList(request)
|
614
|
-
body = send_request('DeleteBlackWhiteIpList', request.serialize)
|
615
|
-
response = JSON.parse(body)
|
616
|
-
if response['Response'].key?('Error') == false
|
617
|
-
model = DeleteBlackWhiteIpListResponse.new
|
618
|
-
model.deserialize(response['Response'])
|
619
|
-
model
|
620
|
-
else
|
621
|
-
code = response['Response']['Error']['Code']
|
622
|
-
message = response['Response']['Error']['Message']
|
623
|
-
reqid = response['Response']['RequestId']
|
624
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
625
|
-
end
|
626
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
627
|
-
raise e
|
628
|
-
rescue StandardError => e
|
629
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
|
-
end
|
631
|
-
|
632
608
|
# 删除CC分级策略
|
633
609
|
|
634
610
|
# @param request: Request instance for DeleteCCLevelPolicy.
|
@@ -965,6 +941,30 @@ module TencentCloud
|
|
965
941
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
942
|
end
|
967
943
|
|
944
|
+
# 获取高防包流量折线图
|
945
|
+
|
946
|
+
# @param request: Request instance for DescribeBgpBizTrend.
|
947
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeBgpBizTrendRequest`
|
948
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeBgpBizTrendResponse`
|
949
|
+
def DescribeBgpBizTrend(request)
|
950
|
+
body = send_request('DescribeBgpBizTrend', request.serialize)
|
951
|
+
response = JSON.parse(body)
|
952
|
+
if response['Response'].key?('Error') == false
|
953
|
+
model = DescribeBgpBizTrendResponse.new
|
954
|
+
model.deserialize(response['Response'])
|
955
|
+
model
|
956
|
+
else
|
957
|
+
code = response['Response']['Error']['Code']
|
958
|
+
message = response['Response']['Error']['Message']
|
959
|
+
reqid = response['Response']['RequestId']
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
+
end
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
+
raise e
|
964
|
+
rescue StandardError => e
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
+
end
|
967
|
+
|
968
968
|
# 获取业务流量曲线
|
969
969
|
|
970
970
|
# @param request: Request instance for DescribeBizTrend.
|
data/lib/v20200309/models.rb
CHANGED
@@ -2413,46 +2413,6 @@ module TencentCloud
|
|
2413
2413
|
end
|
2414
2414
|
end
|
2415
2415
|
|
2416
|
-
# DeleteBlackWhiteIpList请求参数结构体
|
2417
|
-
class DeleteBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
2418
|
-
# @param InstanceId: 资源实例ID
|
2419
|
-
# @type InstanceId: String
|
2420
|
-
# @param IpList: IP列表
|
2421
|
-
# @type IpList: Array
|
2422
|
-
# @param Type: IP类型,取值[black(黑名单IP), white(白名单IP)]
|
2423
|
-
# @type Type: String
|
2424
|
-
|
2425
|
-
attr_accessor :InstanceId, :IpList, :Type
|
2426
|
-
|
2427
|
-
def initialize(instanceid=nil, iplist=nil, type=nil)
|
2428
|
-
@InstanceId = instanceid
|
2429
|
-
@IpList = iplist
|
2430
|
-
@Type = type
|
2431
|
-
end
|
2432
|
-
|
2433
|
-
def deserialize(params)
|
2434
|
-
@InstanceId = params['InstanceId']
|
2435
|
-
@IpList = params['IpList']
|
2436
|
-
@Type = params['Type']
|
2437
|
-
end
|
2438
|
-
end
|
2439
|
-
|
2440
|
-
# DeleteBlackWhiteIpList返回参数结构体
|
2441
|
-
class DeleteBlackWhiteIpListResponse < TencentCloud::Common::AbstractModel
|
2442
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2443
|
-
# @type RequestId: String
|
2444
|
-
|
2445
|
-
attr_accessor :RequestId
|
2446
|
-
|
2447
|
-
def initialize(requestid=nil)
|
2448
|
-
@RequestId = requestid
|
2449
|
-
end
|
2450
|
-
|
2451
|
-
def deserialize(params)
|
2452
|
-
@RequestId = params['RequestId']
|
2453
|
-
end
|
2454
|
-
end
|
2455
|
-
|
2456
2416
|
# DeleteCCLevelPolicy请求参数结构体
|
2457
2417
|
class DeleteCCLevelPolicyRequest < TencentCloud::Common::AbstractModel
|
2458
2418
|
# @param InstanceId: 实例Id
|
@@ -3005,6 +2965,74 @@ module TencentCloud
|
|
3005
2965
|
end
|
3006
2966
|
end
|
3007
2967
|
|
2968
|
+
# DescribeBgpBizTrend请求参数结构体
|
2969
|
+
class DescribeBgpBizTrendRequest < TencentCloud::Common::AbstractModel
|
2970
|
+
# @param Business: 大禹子产品代号(bgp-multip表示高防包)
|
2971
|
+
# @type Business: String
|
2972
|
+
# @param StartTime: 统计开始时间。 例:“2020-09-22 00:00:00”
|
2973
|
+
# @type StartTime: String
|
2974
|
+
# @param EndTime: 统计结束时间。 例:“2020-09-22 00:00:00”
|
2975
|
+
# @type EndTime: String
|
2976
|
+
# @param MetricName: 统计纬度,可取值intraffic, outtraffic, inpkg, outpkg
|
2977
|
+
# @type MetricName: String
|
2978
|
+
# @param InstanceId: 资源实例ID
|
2979
|
+
# @type InstanceId: String
|
2980
|
+
# @param Flag: 0表示固定时间,1表示自定义时间
|
2981
|
+
# @type Flag: Integer
|
2982
|
+
|
2983
|
+
attr_accessor :Business, :StartTime, :EndTime, :MetricName, :InstanceId, :Flag
|
2984
|
+
|
2985
|
+
def initialize(business=nil, starttime=nil, endtime=nil, metricname=nil, instanceid=nil, flag=nil)
|
2986
|
+
@Business = business
|
2987
|
+
@StartTime = starttime
|
2988
|
+
@EndTime = endtime
|
2989
|
+
@MetricName = metricname
|
2990
|
+
@InstanceId = instanceid
|
2991
|
+
@Flag = flag
|
2992
|
+
end
|
2993
|
+
|
2994
|
+
def deserialize(params)
|
2995
|
+
@Business = params['Business']
|
2996
|
+
@StartTime = params['StartTime']
|
2997
|
+
@EndTime = params['EndTime']
|
2998
|
+
@MetricName = params['MetricName']
|
2999
|
+
@InstanceId = params['InstanceId']
|
3000
|
+
@Flag = params['Flag']
|
3001
|
+
end
|
3002
|
+
end
|
3003
|
+
|
3004
|
+
# DescribeBgpBizTrend返回参数结构体
|
3005
|
+
class DescribeBgpBizTrendResponse < TencentCloud::Common::AbstractModel
|
3006
|
+
# @param DataList: 曲线图各个时间点的值
|
3007
|
+
# @type DataList: Array
|
3008
|
+
# @param Total: 曲线图取值个数
|
3009
|
+
# @type Total: Integer
|
3010
|
+
# @param MetricName: 统计纬度
|
3011
|
+
# @type MetricName: String
|
3012
|
+
# @param MaxData: 返回数组最大值
|
3013
|
+
# @type MaxData: Integer
|
3014
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3015
|
+
# @type RequestId: String
|
3016
|
+
|
3017
|
+
attr_accessor :DataList, :Total, :MetricName, :MaxData, :RequestId
|
3018
|
+
|
3019
|
+
def initialize(datalist=nil, total=nil, metricname=nil, maxdata=nil, requestid=nil)
|
3020
|
+
@DataList = datalist
|
3021
|
+
@Total = total
|
3022
|
+
@MetricName = metricname
|
3023
|
+
@MaxData = maxdata
|
3024
|
+
@RequestId = requestid
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
def deserialize(params)
|
3028
|
+
@DataList = params['DataList']
|
3029
|
+
@Total = params['Total']
|
3030
|
+
@MetricName = params['MetricName']
|
3031
|
+
@MaxData = params['MaxData']
|
3032
|
+
@RequestId = params['RequestId']
|
3033
|
+
end
|
3034
|
+
end
|
3035
|
+
|
3008
3036
|
# DescribeBizTrend请求参数结构体
|
3009
3037
|
class DescribeBizTrendRequest < TencentCloud::Common::AbstractModel
|
3010
3038
|
# @param Statistics: 统计方式,可取值max, min, avg, sum, 如统计纬度是流量速率或包量速率,仅可取值max
|
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.386
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|