tencentcloud-sdk-cfw 3.0.651 → 3.0.653
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/v20190904/client.rb +49 -0
- data/lib/v20190904/models.rb +153 -13
- 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: c28d4c24d8642efc825caf4707f4eab9422a79dc
|
4
|
+
data.tar.gz: 72bdf2b76c95fe35a3a21489e1ff8d996ad9a461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc6af445c51a3182b9b50dbea7a7bfafd0e6f5491004cec9f4811d69bbd68a62eeae027ef43a361d394451a7864f8784b532bb2e779ee3e56d2c3a1c4e1f917e
|
7
|
+
data.tar.gz: 19fd3cf0e906bdee9df838261621d76ef736635bd8cfa9dfc09009407f48eed72fdbaeccabfbf884dd8d7b6c8e869aa16341b9654da9165af3465484f4770a2e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.653
|
data/lib/v20190904/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
|
+
# 批量添加入侵防御封禁列表、放通列表规则
|
153
|
+
|
154
|
+
# @param request: Request instance for CreateBlockIgnoreRuleList.
|
155
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::CreateBlockIgnoreRuleListRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::CreateBlockIgnoreRuleListResponse`
|
157
|
+
def CreateBlockIgnoreRuleList(request)
|
158
|
+
body = send_request('CreateBlockIgnoreRuleList', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateBlockIgnoreRuleListResponse.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
|
# 创建、选择vpc
|
153
177
|
|
154
178
|
# @param request: Request instance for CreateChooseVpcs.
|
@@ -1304,6 +1328,31 @@ module TencentCloud
|
|
1304
1328
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1305
1329
|
end
|
1306
1330
|
|
1331
|
+
# 启用停用VPC间规则或Nat边界规则
|
1332
|
+
# VPC间规则需指定EdgeId。Nat边界规则需指定地域Region与Direction。
|
1333
|
+
|
1334
|
+
# @param request: Request instance for ModifyEWRuleStatus.
|
1335
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyEWRuleStatusRequest`
|
1336
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyEWRuleStatusResponse`
|
1337
|
+
def ModifyEWRuleStatus(request)
|
1338
|
+
body = send_request('ModifyEWRuleStatus', request.serialize)
|
1339
|
+
response = JSON.parse(body)
|
1340
|
+
if response['Response'].key?('Error') == false
|
1341
|
+
model = ModifyEWRuleStatusResponse.new
|
1342
|
+
model.deserialize(response['Response'])
|
1343
|
+
model
|
1344
|
+
else
|
1345
|
+
code = response['Response']['Error']['Code']
|
1346
|
+
message = response['Response']['Error']['Message']
|
1347
|
+
reqid = response['Response']['RequestId']
|
1348
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1349
|
+
end
|
1350
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1351
|
+
raise e
|
1352
|
+
rescue StandardError => e
|
1353
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1354
|
+
end
|
1355
|
+
|
1307
1356
|
# 修改企业安全组下发状态
|
1308
1357
|
|
1309
1358
|
# @param request: Request instance for ModifyEnterpriseSecurityDispatchStatus.
|
data/lib/v20190904/models.rb
CHANGED
@@ -733,6 +733,49 @@ module TencentCloud
|
|
733
733
|
end
|
734
734
|
end
|
735
735
|
|
736
|
+
# CreateBlockIgnoreRuleList请求参数结构体
|
737
|
+
class CreateBlockIgnoreRuleListRequest < TencentCloud::Common::AbstractModel
|
738
|
+
# @param Rules: 规则列表
|
739
|
+
# @type Rules: Array
|
740
|
+
# @param RuleType: 规则类型,1封禁,2放通,不支持域名封禁
|
741
|
+
# @type RuleType: Integer
|
742
|
+
|
743
|
+
attr_accessor :Rules, :RuleType
|
744
|
+
|
745
|
+
def initialize(rules=nil, ruletype=nil)
|
746
|
+
@Rules = rules
|
747
|
+
@RuleType = ruletype
|
748
|
+
end
|
749
|
+
|
750
|
+
def deserialize(params)
|
751
|
+
unless params['Rules'].nil?
|
752
|
+
@Rules = []
|
753
|
+
params['Rules'].each do |i|
|
754
|
+
intrusiondefenserule_tmp = IntrusionDefenseRule.new
|
755
|
+
intrusiondefenserule_tmp.deserialize(i)
|
756
|
+
@Rules << intrusiondefenserule_tmp
|
757
|
+
end
|
758
|
+
end
|
759
|
+
@RuleType = params['RuleType']
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
# CreateBlockIgnoreRuleList返回参数结构体
|
764
|
+
class CreateBlockIgnoreRuleListResponse < TencentCloud::Common::AbstractModel
|
765
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
766
|
+
# @type RequestId: String
|
767
|
+
|
768
|
+
attr_accessor :RequestId
|
769
|
+
|
770
|
+
def initialize(requestid=nil)
|
771
|
+
@RequestId = requestid
|
772
|
+
end
|
773
|
+
|
774
|
+
def deserialize(params)
|
775
|
+
@RequestId = params['RequestId']
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
736
779
|
# CreateChooseVpcs请求参数结构体
|
737
780
|
class CreateChooseVpcsRequest < TencentCloud::Common::AbstractModel
|
738
781
|
# @param VpcList: vpc列表
|
@@ -3580,6 +3623,42 @@ module TencentCloud
|
|
3580
3623
|
end
|
3581
3624
|
end
|
3582
3625
|
|
3626
|
+
# 入侵防御封禁列表、放通列表添加规则入参
|
3627
|
+
class IntrusionDefenseRule < TencentCloud::Common::AbstractModel
|
3628
|
+
# @param Direction: 规则方向,0出站,1入站,3内网间
|
3629
|
+
# @type Direction: Integer
|
3630
|
+
# @param EndTime: 规则结束时间,格式:2006-01-02 15:04:05,必须大于当前时间
|
3631
|
+
# @type EndTime: String
|
3632
|
+
# @param IP: 规则IP地址,IP与Domain必填其中之一
|
3633
|
+
# @type IP: String
|
3634
|
+
# @param Domain: 规则域名,IP与Domain必填其中之一
|
3635
|
+
# @type Domain: String
|
3636
|
+
# @param Comment: 备注信息,长度不能超过50
|
3637
|
+
# @type Comment: String
|
3638
|
+
# @param StartTime: 规则开始时间
|
3639
|
+
# @type StartTime: String
|
3640
|
+
|
3641
|
+
attr_accessor :Direction, :EndTime, :IP, :Domain, :Comment, :StartTime
|
3642
|
+
|
3643
|
+
def initialize(direction=nil, endtime=nil, ip=nil, domain=nil, comment=nil, starttime=nil)
|
3644
|
+
@Direction = direction
|
3645
|
+
@EndTime = endtime
|
3646
|
+
@IP = ip
|
3647
|
+
@Domain = domain
|
3648
|
+
@Comment = comment
|
3649
|
+
@StartTime = starttime
|
3650
|
+
end
|
3651
|
+
|
3652
|
+
def deserialize(params)
|
3653
|
+
@Direction = params['Direction']
|
3654
|
+
@EndTime = params['EndTime']
|
3655
|
+
@IP = params['IP']
|
3656
|
+
@Domain = params['Domain']
|
3657
|
+
@Comment = params['Comment']
|
3658
|
+
@StartTime = params['StartTime']
|
3659
|
+
end
|
3660
|
+
end
|
3661
|
+
|
3583
3662
|
# 黑白名单IOC列表
|
3584
3663
|
class IocListData < TencentCloud::Common::AbstractModel
|
3585
3664
|
# @param IP: 待处置IP地址,IP/Domain字段二选一
|
@@ -3980,6 +4059,62 @@ module TencentCloud
|
|
3980
4059
|
end
|
3981
4060
|
end
|
3982
4061
|
|
4062
|
+
# ModifyEWRuleStatus请求参数结构体
|
4063
|
+
class ModifyEWRuleStatusRequest < TencentCloud::Common::AbstractModel
|
4064
|
+
# @param EdgeId: vpc规则必填,边id
|
4065
|
+
# @type EdgeId: String
|
4066
|
+
# @param Status: 是否开关开启,0:未开启,1:开启
|
4067
|
+
# @type Status: Integer
|
4068
|
+
# @param Direction: 规则方向,0:出站,1:入站,默认1
|
4069
|
+
# @type Direction: Integer
|
4070
|
+
# @param RuleSequence: 更改的规则当前执行顺序
|
4071
|
+
# @type RuleSequence: Integer
|
4072
|
+
# @param RuleType: 规则类型,vpc:VPC间规则、nat:Nat边界规则
|
4073
|
+
# @type RuleType: String
|
4074
|
+
|
4075
|
+
attr_accessor :EdgeId, :Status, :Direction, :RuleSequence, :RuleType
|
4076
|
+
|
4077
|
+
def initialize(edgeid=nil, status=nil, direction=nil, rulesequence=nil, ruletype=nil)
|
4078
|
+
@EdgeId = edgeid
|
4079
|
+
@Status = status
|
4080
|
+
@Direction = direction
|
4081
|
+
@RuleSequence = rulesequence
|
4082
|
+
@RuleType = ruletype
|
4083
|
+
end
|
4084
|
+
|
4085
|
+
def deserialize(params)
|
4086
|
+
@EdgeId = params['EdgeId']
|
4087
|
+
@Status = params['Status']
|
4088
|
+
@Direction = params['Direction']
|
4089
|
+
@RuleSequence = params['RuleSequence']
|
4090
|
+
@RuleType = params['RuleType']
|
4091
|
+
end
|
4092
|
+
end
|
4093
|
+
|
4094
|
+
# ModifyEWRuleStatus返回参数结构体
|
4095
|
+
class ModifyEWRuleStatusResponse < TencentCloud::Common::AbstractModel
|
4096
|
+
# @param ReturnCode: 状态值,0:修改成功,非0:修改失败
|
4097
|
+
# @type ReturnCode: Integer
|
4098
|
+
# @param ReturnMsg: 状态信息,success:查询成功,fail:查询失败
|
4099
|
+
# @type ReturnMsg: String
|
4100
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4101
|
+
# @type RequestId: String
|
4102
|
+
|
4103
|
+
attr_accessor :ReturnCode, :ReturnMsg, :RequestId
|
4104
|
+
|
4105
|
+
def initialize(returncode=nil, returnmsg=nil, requestid=nil)
|
4106
|
+
@ReturnCode = returncode
|
4107
|
+
@ReturnMsg = returnmsg
|
4108
|
+
@RequestId = requestid
|
4109
|
+
end
|
4110
|
+
|
4111
|
+
def deserialize(params)
|
4112
|
+
@ReturnCode = params['ReturnCode']
|
4113
|
+
@ReturnMsg = params['ReturnMsg']
|
4114
|
+
@RequestId = params['RequestId']
|
4115
|
+
end
|
4116
|
+
end
|
4117
|
+
|
3983
4118
|
# ModifyEnterpriseSecurityDispatchStatus请求参数结构体
|
3984
4119
|
class ModifyEnterpriseSecurityDispatchStatusRequest < TencentCloud::Common::AbstractModel
|
3985
4120
|
# @param Status: 0:打开立即下发开关;
|
@@ -5106,10 +5241,12 @@ module TencentCloud
|
|
5106
5241
|
# @type CityName: String
|
5107
5242
|
# @param CountryName: 国家名
|
5108
5243
|
# @type CountryName: String
|
5244
|
+
# @param RegionIso: 国家二位iso代码或者省份缩写代码
|
5245
|
+
# @type RegionIso: String
|
5109
5246
|
|
5110
|
-
attr_accessor :OrderIndex, :SourceIp, :TargetIp, :Protocol, :Strategy, :SourceType, :Direction, :Detail, :TargetType, :Port, :Id, :LogId, :City, :Country, :CloudCode, :IsRegion, :CityName, :CountryName
|
5247
|
+
attr_accessor :OrderIndex, :SourceIp, :TargetIp, :Protocol, :Strategy, :SourceType, :Direction, :Detail, :TargetType, :Port, :Id, :LogId, :City, :Country, :CloudCode, :IsRegion, :CityName, :CountryName, :RegionIso
|
5111
5248
|
|
5112
|
-
def initialize(orderindex=nil, sourceip=nil, targetip=nil, protocol=nil, strategy=nil, sourcetype=nil, direction=nil, detail=nil, targettype=nil, port=nil, id=nil, logid=nil, city=nil, country=nil, cloudcode=nil, isregion=nil, cityname=nil, countryname=nil)
|
5249
|
+
def initialize(orderindex=nil, sourceip=nil, targetip=nil, protocol=nil, strategy=nil, sourcetype=nil, direction=nil, detail=nil, targettype=nil, port=nil, id=nil, logid=nil, city=nil, country=nil, cloudcode=nil, isregion=nil, cityname=nil, countryname=nil, regioniso=nil)
|
5113
5250
|
@OrderIndex = orderindex
|
5114
5251
|
@SourceIp = sourceip
|
5115
5252
|
@TargetIp = targetip
|
@@ -5128,6 +5265,7 @@ module TencentCloud
|
|
5128
5265
|
@IsRegion = isregion
|
5129
5266
|
@CityName = cityname
|
5130
5267
|
@CountryName = countryname
|
5268
|
+
@RegionIso = regioniso
|
5131
5269
|
end
|
5132
5270
|
|
5133
5271
|
def deserialize(params)
|
@@ -5149,6 +5287,7 @@ module TencentCloud
|
|
5149
5287
|
@IsRegion = params['IsRegion']
|
5150
5288
|
@CityName = params['CityName']
|
5151
5289
|
@CountryName = params['CountryName']
|
5290
|
+
@RegionIso = params['RegionIso']
|
5152
5291
|
end
|
5153
5292
|
end
|
5154
5293
|
|
@@ -5512,20 +5651,20 @@ module TencentCloud
|
|
5512
5651
|
class SecurityGroupRule < TencentCloud::Common::AbstractModel
|
5513
5652
|
# @param SourceContent: 访问源示例:
|
5514
5653
|
# net:IP/CIDR(192.168.0.2)
|
5515
|
-
# template:参数模板(ipm-dyodhpby)
|
5516
|
-
# instance:资产实例(ins-123456)
|
5517
|
-
# resourcegroup:资产分组(
|
5518
|
-
# tag:资源标签({"Key"
|
5654
|
+
# template:参数模板id(ipm-dyodhpby)
|
5655
|
+
# instance:资产实例id(ins-123456)
|
5656
|
+
# resourcegroup:资产分组id(cfwrg-xxxx)
|
5657
|
+
# tag:资源标签({\"Key\":\"标签key值\",\"Value\":\"标签Value值\"})
|
5519
5658
|
# region:地域(ap-gaungzhou)
|
5520
5659
|
# @type SourceContent: String
|
5521
5660
|
# @param SourceType: 访问源类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
|
5522
5661
|
# @type SourceType: String
|
5523
5662
|
# @param DestContent: 访问目的示例:
|
5524
5663
|
# net:IP/CIDR(192.168.0.2)
|
5525
|
-
# template:参数模板(ipm-dyodhpby)
|
5526
|
-
# instance:资产实例(ins-123456)
|
5527
|
-
# resourcegroup:资产分组(
|
5528
|
-
# tag:资源标签({"Key"
|
5664
|
+
# template:参数模板id(ipm-dyodhpby)
|
5665
|
+
# instance:资产实例id(ins-123456)
|
5666
|
+
# resourcegroup:资产分组id(cfwrg-xxxx)
|
5667
|
+
# tag:资源标签({\"Key\":\"标签key值\",\"Value\":\"标签Value值\"})
|
5529
5668
|
# region:地域(ap-gaungzhou)
|
5530
5669
|
# @type DestContent: String
|
5531
5670
|
# @param DestType: 访问目的类型,类型可以为以下6种:net|template|instance|resourcegroup|tag|region
|
@@ -5536,7 +5675,7 @@ module TencentCloud
|
|
5536
5675
|
# @type RuleAction: String
|
5537
5676
|
# @param Description: 描述
|
5538
5677
|
# @type Description: String
|
5539
|
-
# @param OrderIndex: 规则顺序,-1表示最低,1
|
5678
|
+
# @param OrderIndex: 规则顺序,-1表示最低,1表示最高,请勿和外层Type冲突(和外层的Type配合使用,当中间插入时,指定添加位置)
|
5540
5679
|
# @type OrderIndex: String
|
5541
5680
|
# @param Protocol: 协议;TCP/UDP/ICMP/ANY
|
5542
5681
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -5549,9 +5688,10 @@ module TencentCloud
|
|
5549
5688
|
# @param ServiceTemplateId: 端口协议类型参数模板id;协议端口模板id;与Protocol,Port互斥
|
5550
5689
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5551
5690
|
# @type ServiceTemplateId: String
|
5552
|
-
# @param Id:
|
5691
|
+
# @param Id: (入参时无需填写,自动生成)规则对应的唯一id
|
5553
5692
|
# @type Id: String
|
5554
|
-
# @param Enable:
|
5693
|
+
# @param Enable: (入参时、Enable已弃用;由通用配置中新增规则启用状态控制)
|
5694
|
+
# 规则状态,true表示启用,false表示禁用
|
5555
5695
|
# @type Enable: String
|
5556
5696
|
|
5557
5697
|
attr_accessor :SourceContent, :SourceType, :DestContent, :DestType, :RuleAction, :Description, :OrderIndex, :Protocol, :Port, :ServiceTemplateId, :Id, :Enable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cfw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.653
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|