tencentcloud-sdk-antiddos 1.0.352 → 1.0.355
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 -0
- data/lib/v20200309/models.rb +58 -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: 1d72cff83379a4ff86196b199fd4565cc88b4b32
|
4
|
+
data.tar.gz: df5302a3d1ec1647d4e179f4ce2ed97ff4adb652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42d541ef4d97b46320e3c147bf1298f3f4416aa6ba13dc6173c64ced6c1ef906aa4260a2c8a969a9df0a636bf0ad370d4c79959b0243a366efe31fd8735345d1
|
7
|
+
data.tar.gz: 8d1a34b52700149b49308c08d04a9d238ea2fcdf5ae849e4bf6b53f81d9b839b9bd39c79ae4965b8f4718ad61ce7b8830b3f4cf271be11ae33db0dd581471c11
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.355
|
data/lib/v20200309/client.rb
CHANGED
@@ -413,6 +413,30 @@ module TencentCloud
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
414
|
end
|
415
415
|
|
416
|
+
# 添加7层转发规则
|
417
|
+
|
418
|
+
# @param request: Request instance for CreateNewL7Rules.
|
419
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreateNewL7RulesRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateNewL7RulesResponse`
|
421
|
+
def CreateNewL7Rules(request)
|
422
|
+
body = send_request('CreateNewL7Rules', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateNewL7RulesResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
416
440
|
# 添加DDoS防护的特征过滤规则
|
417
441
|
|
418
442
|
# @param request: Request instance for CreatePacketFilterConfig.
|
data/lib/v20200309/models.rb
CHANGED
@@ -1877,6 +1877,64 @@ module TencentCloud
|
|
1877
1877
|
end
|
1878
1878
|
end
|
1879
1879
|
|
1880
|
+
# CreateNewL7Rules请求参数结构体
|
1881
|
+
class CreateNewL7RulesRequest < TencentCloud::Common::AbstractModel
|
1882
|
+
# @param Rules: 规则列表
|
1883
|
+
# @type Rules: Array
|
1884
|
+
# @param Business: 大禹子产品代号(bgpip表示高防IP)
|
1885
|
+
# @type Business: String
|
1886
|
+
# @param IdList: 资源ID列表
|
1887
|
+
# @type IdList: Array
|
1888
|
+
# @param VipList: 资源IP列表
|
1889
|
+
# @type VipList: Array
|
1890
|
+
|
1891
|
+
attr_accessor :Rules, :Business, :IdList, :VipList
|
1892
|
+
|
1893
|
+
def initialize(rules=nil, business=nil, idlist=nil, viplist=nil)
|
1894
|
+
@Rules = rules
|
1895
|
+
@Business = business
|
1896
|
+
@IdList = idlist
|
1897
|
+
@VipList = viplist
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
def deserialize(params)
|
1901
|
+
unless params['Rules'].nil?
|
1902
|
+
@Rules = []
|
1903
|
+
params['Rules'].each do |i|
|
1904
|
+
l7ruleentry_tmp = L7RuleEntry.new
|
1905
|
+
l7ruleentry_tmp.deserialize(i)
|
1906
|
+
@Rules << l7ruleentry_tmp
|
1907
|
+
end
|
1908
|
+
end
|
1909
|
+
@Business = params['Business']
|
1910
|
+
@IdList = params['IdList']
|
1911
|
+
@VipList = params['VipList']
|
1912
|
+
end
|
1913
|
+
end
|
1914
|
+
|
1915
|
+
# CreateNewL7Rules返回参数结构体
|
1916
|
+
class CreateNewL7RulesResponse < TencentCloud::Common::AbstractModel
|
1917
|
+
# @param Success: 成功码
|
1918
|
+
# @type Success: :class:`Tencentcloud::Antiddos.v20200309.models.SuccessCode`
|
1919
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1920
|
+
# @type RequestId: String
|
1921
|
+
|
1922
|
+
attr_accessor :Success, :RequestId
|
1923
|
+
|
1924
|
+
def initialize(success=nil, requestid=nil)
|
1925
|
+
@Success = success
|
1926
|
+
@RequestId = requestid
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
def deserialize(params)
|
1930
|
+
unless params['Success'].nil?
|
1931
|
+
@Success = SuccessCode.new
|
1932
|
+
@Success.deserialize(params['Success'])
|
1933
|
+
end
|
1934
|
+
@RequestId = params['RequestId']
|
1935
|
+
end
|
1936
|
+
end
|
1937
|
+
|
1880
1938
|
# CreatePacketFilterConfig请求参数结构体
|
1881
1939
|
class CreatePacketFilterConfigRequest < TencentCloud::Common::AbstractModel
|
1882
1940
|
# @param InstanceId: 资源实例ID
|
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.355
|
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-07-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|