tencentcloud-sdk-antiddos 1.0.352 → 1.0.353
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: d4fbaacaa1d6869fb5890d606d07f7a54ee8c0fd
|
4
|
+
data.tar.gz: 1686ba60ba2b70a4a767fe66e7ab2544eb934311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beed55c4513e10f9e8b13e1e21bbe3e5c9ff9bd0c10f32653194578dbd0bfd2f71397596cb46633fb4b4f8cb9db6219fcbe2d2c8b064dd464e4b6e39dc9bbf7d
|
7
|
+
data.tar.gz: 84ef347c32346ab7da8e71f7a0b5b66541effe9ea659b55ef10c8747064777a8654a6bd31ce6835283cd14f2b4654fc7714ca7ad6b71cf22d30dbcee0e00ab49
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.353
|
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.353
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|