tencentcloud-sdk-antiddos 1.0.239 → 1.0.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d8289951057b64dbbda2db00406e57c74b1d3f4
4
- data.tar.gz: ecfdf78185374de080a7e5e3ec9c45fb4cd33da8
3
+ metadata.gz: 2edb99a19e6fa62b6238576abbea4616a18a3083
4
+ data.tar.gz: 7dd6c54093030997f62fa7ffc14137e61940e53a
5
5
  SHA512:
6
- metadata.gz: a5da189df4822b8b8cd6afde8ee3d33a83a6f58b797d84c0b246ff129fd1a4fdaeecee10a05fa271a06b16d28deafba3034024f4e46926d08ab1b5d1749661be
7
- data.tar.gz: 386c70b724652da20da929fcb4350b4afc6e59d254420b202953889826cf05e283d9829732c421c3073df92235a944358c95c04ecefc926c898c9026e81a6b51
6
+ metadata.gz: a7327d72cb1f7b5efde4b9057073158080abd7dadbe81f80b89faafaea2264e1f8581d3bb8b8aa16aee63ac908afcab96aa84af85d988b6de4c0e6e45e2d7f8a
7
+ data.tar.gz: e4ecc0843cdf99fefab171741e021c2f6ac2d6bf8a8e53eac43b96cd0d930baafaf3a46f0108f8c7ee3a04ffcf24f5bf832174120da87dccc90d6e81ab755b28
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.239
1
+ 1.0.243
@@ -317,6 +317,54 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 添加DDoS防护的端口acl策略
321
+
322
+ # @param request: Request instance for CreatePortAclConfig.
323
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigRequest`
324
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigResponse`
325
+ def CreatePortAclConfig(request)
326
+ body = send_request('CreatePortAclConfig', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreatePortAclConfigResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 批量添加DDoS防护的端口acl策略
345
+
346
+ # @param request: Request instance for CreatePortAclConfigList.
347
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigListRequest`
348
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigListResponse`
349
+ def CreatePortAclConfigList(request)
350
+ body = send_request('CreatePortAclConfigList', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = CreatePortAclConfigListResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
320
368
  # 设置DDoS防护的协议封禁配置
321
369
 
322
370
  # @param request: Request instance for CreateProtocolBlockConfig.
@@ -17,6 +17,47 @@
17
17
  module TencentCloud
18
18
  module Antiddos
19
19
  module V20200309
20
+ # 基于端口的acl策略
21
+ class AclConfig < TencentCloud::Common::AbstractModel
22
+ # @param ForwardProtocol: 协议类型, 可取值tcp, udp, all
23
+ # @type ForwardProtocol: String
24
+ # @param DPortStart: 目的端口起始,可取值范围0~65535
25
+ # @type DPortStart: Integer
26
+ # @param DPortEnd: 目的端口结束,可取值范围0~65535
27
+ # @type DPortEnd: Integer
28
+ # @param SPortStart: 来源端口起始,可取值范围0~65535
29
+ # @type SPortStart: Integer
30
+ # @param SPortEnd: 来源端口结束,可取值范围0~65535
31
+ # @type SPortEnd: Integer
32
+ # @param Action: 动作,可取值:drop, transmit, forward
33
+ # @type Action: String
34
+ # @param Priority: 策略优先级,数字越小,级别越高,该规则越靠前匹配,取值1-1000
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type Priority: Integer
37
+
38
+ attr_accessor :ForwardProtocol, :DPortStart, :DPortEnd, :SPortStart, :SPortEnd, :Action, :Priority
39
+
40
+ def initialize(forwardprotocol=nil, dportstart=nil, dportend=nil, sportstart=nil, sportend=nil, action=nil, priority=nil)
41
+ @ForwardProtocol = forwardprotocol
42
+ @DPortStart = dportstart
43
+ @DPortEnd = dportend
44
+ @SPortStart = sportstart
45
+ @SPortEnd = sportend
46
+ @Action = action
47
+ @Priority = priority
48
+ end
49
+
50
+ def deserialize(params)
51
+ @ForwardProtocol = params['ForwardProtocol']
52
+ @DPortStart = params['DPortStart']
53
+ @DPortEnd = params['DPortEnd']
54
+ @SPortStart = params['SPortStart']
55
+ @SPortEnd = params['SPortEnd']
56
+ @Action = params['Action']
57
+ @Priority = params['Priority']
58
+ end
59
+ end
60
+
20
61
  # AssociateDDoSEipAddress请求参数结构体
21
62
  class AssociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
22
63
  # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
@@ -1000,6 +1041,84 @@ module TencentCloud
1000
1041
  end
1001
1042
  end
1002
1043
 
1044
+ # CreatePortAclConfigList请求参数结构体
1045
+ class CreatePortAclConfigListRequest < TencentCloud::Common::AbstractModel
1046
+ # @param InstanceIdList: 资源实例ID列表
1047
+ # @type InstanceIdList: Array
1048
+ # @param AclConfig: 端口acl策略
1049
+ # @type AclConfig: :class:`Tencentcloud::Antiddos.v20200309.models.AclConfig`
1050
+
1051
+ attr_accessor :InstanceIdList, :AclConfig
1052
+
1053
+ def initialize(instanceidlist=nil, aclconfig=nil)
1054
+ @InstanceIdList = instanceidlist
1055
+ @AclConfig = aclconfig
1056
+ end
1057
+
1058
+ def deserialize(params)
1059
+ @InstanceIdList = params['InstanceIdList']
1060
+ unless params['AclConfig'].nil?
1061
+ @AclConfig = AclConfig.new
1062
+ @AclConfig.deserialize(params['AclConfig'])
1063
+ end
1064
+ end
1065
+ end
1066
+
1067
+ # CreatePortAclConfigList返回参数结构体
1068
+ class CreatePortAclConfigListResponse < TencentCloud::Common::AbstractModel
1069
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1070
+ # @type RequestId: String
1071
+
1072
+ attr_accessor :RequestId
1073
+
1074
+ def initialize(requestid=nil)
1075
+ @RequestId = requestid
1076
+ end
1077
+
1078
+ def deserialize(params)
1079
+ @RequestId = params['RequestId']
1080
+ end
1081
+ end
1082
+
1083
+ # CreatePortAclConfig请求参数结构体
1084
+ class CreatePortAclConfigRequest < TencentCloud::Common::AbstractModel
1085
+ # @param InstanceId: 资源实例ID
1086
+ # @type InstanceId: String
1087
+ # @param AclConfig: 端口acl策略
1088
+ # @type AclConfig: :class:`Tencentcloud::Antiddos.v20200309.models.AclConfig`
1089
+
1090
+ attr_accessor :InstanceId, :AclConfig
1091
+
1092
+ def initialize(instanceid=nil, aclconfig=nil)
1093
+ @InstanceId = instanceid
1094
+ @AclConfig = aclconfig
1095
+ end
1096
+
1097
+ def deserialize(params)
1098
+ @InstanceId = params['InstanceId']
1099
+ unless params['AclConfig'].nil?
1100
+ @AclConfig = AclConfig.new
1101
+ @AclConfig.deserialize(params['AclConfig'])
1102
+ end
1103
+ end
1104
+ end
1105
+
1106
+ # CreatePortAclConfig返回参数结构体
1107
+ class CreatePortAclConfigResponse < TencentCloud::Common::AbstractModel
1108
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1109
+ # @type RequestId: String
1110
+
1111
+ attr_accessor :RequestId
1112
+
1113
+ def initialize(requestid=nil)
1114
+ @RequestId = requestid
1115
+ end
1116
+
1117
+ def deserialize(params)
1118
+ @RequestId = params['RequestId']
1119
+ end
1120
+ end
1121
+
1003
1122
  # CreateProtocolBlockConfig请求参数结构体
1004
1123
  class CreateProtocolBlockConfigRequest < TencentCloud::Common::AbstractModel
1005
1124
  # @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.239
4
+ version: 1.0.243
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-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common