tencentcloud-sdk-cfw 3.0.517 → 3.0.518
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +72 -0
- data/lib/v20190904/models.rb +155 -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: 30f131b214d778766addd24106f7719e6f775b0e
|
4
|
+
data.tar.gz: 6f909e5e26035ca6534a3211c1fdb5bc8012657c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c525fbee1c3f50640973ac6d4ffb16b21dad9b96d3df2bc1c4a7f9baafb91b98dcd44993453154f975a43e861537d95ee9920e471adec846c8a1384e9477c46
|
7
|
+
data.tar.gz: 4e4044755e498d944634ad37d498735b36c61bfd4f0ca510a7ee814191496c4bc8ffb4f751421141a50fccc3d596185c900bfbb17b7646aa5a5ecbf573d037b6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.518
|
data/lib/v20190904/client.rb
CHANGED
@@ -1208,6 +1208,54 @@ module TencentCloud
|
|
1208
1208
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1209
1209
|
end
|
1210
1210
|
|
1211
|
+
# 修改企业安全组下发状态
|
1212
|
+
|
1213
|
+
# @param request: Request instance for ModifyEnterpriseSecurityDispatchStatus.
|
1214
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyEnterpriseSecurityDispatchStatusRequest`
|
1215
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyEnterpriseSecurityDispatchStatusResponse`
|
1216
|
+
def ModifyEnterpriseSecurityDispatchStatus(request)
|
1217
|
+
body = send_request('ModifyEnterpriseSecurityDispatchStatus', request.serialize)
|
1218
|
+
response = JSON.parse(body)
|
1219
|
+
if response['Response'].key?('Error') == false
|
1220
|
+
model = ModifyEnterpriseSecurityDispatchStatusResponse.new
|
1221
|
+
model.deserialize(response['Response'])
|
1222
|
+
model
|
1223
|
+
else
|
1224
|
+
code = response['Response']['Error']['Code']
|
1225
|
+
message = response['Response']['Error']['Message']
|
1226
|
+
reqid = response['Response']['RequestId']
|
1227
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1228
|
+
end
|
1229
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1230
|
+
raise e
|
1231
|
+
rescue StandardError => e
|
1232
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# 编辑新企业安全组规则
|
1236
|
+
|
1237
|
+
# @param request: Request instance for ModifyEnterpriseSecurityGroupRule.
|
1238
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyEnterpriseSecurityGroupRuleRequest`
|
1239
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyEnterpriseSecurityGroupRuleResponse`
|
1240
|
+
def ModifyEnterpriseSecurityGroupRule(request)
|
1241
|
+
body = send_request('ModifyEnterpriseSecurityGroupRule', request.serialize)
|
1242
|
+
response = JSON.parse(body)
|
1243
|
+
if response['Response'].key?('Error') == false
|
1244
|
+
model = ModifyEnterpriseSecurityGroupRuleResponse.new
|
1245
|
+
model.deserialize(response['Response'])
|
1246
|
+
model
|
1247
|
+
else
|
1248
|
+
code = response['Response']['Error']['Code']
|
1249
|
+
message = response['Response']['Error']['Message']
|
1250
|
+
reqid = response['Response']['RequestId']
|
1251
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1252
|
+
end
|
1253
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1254
|
+
raise e
|
1255
|
+
rescue StandardError => e
|
1256
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1257
|
+
end
|
1258
|
+
|
1211
1259
|
# 修改NAT访问控制规则
|
1212
1260
|
|
1213
1261
|
# @param request: Request instance for ModifyNatAcRule.
|
@@ -1304,6 +1352,30 @@ module TencentCloud
|
|
1304
1352
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1305
1353
|
end
|
1306
1354
|
|
1355
|
+
# NAT防火墙规则快速排序
|
1356
|
+
|
1357
|
+
# @param request: Request instance for ModifyNatSequenceRules.
|
1358
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyNatSequenceRulesRequest`
|
1359
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyNatSequenceRulesResponse`
|
1360
|
+
def ModifyNatSequenceRules(request)
|
1361
|
+
body = send_request('ModifyNatSequenceRules', request.serialize)
|
1362
|
+
response = JSON.parse(body)
|
1363
|
+
if response['Response'].key?('Error') == false
|
1364
|
+
model = ModifyNatSequenceRulesResponse.new
|
1365
|
+
model.deserialize(response['Response'])
|
1366
|
+
model
|
1367
|
+
else
|
1368
|
+
code = response['Response']['Error']['Code']
|
1369
|
+
message = response['Response']['Error']['Message']
|
1370
|
+
reqid = response['Response']['RequestId']
|
1371
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1372
|
+
end
|
1373
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1374
|
+
raise e
|
1375
|
+
rescue StandardError => e
|
1376
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1377
|
+
end
|
1378
|
+
|
1307
1379
|
# 单个修改互联网边界防火墙开关
|
1308
1380
|
|
1309
1381
|
# @param request: Request instance for ModifyPublicIPSwitchStatus.
|
data/lib/v20190904/models.rb
CHANGED
@@ -3707,6 +3707,98 @@ module TencentCloud
|
|
3707
3707
|
end
|
3708
3708
|
end
|
3709
3709
|
|
3710
|
+
# ModifyEnterpriseSecurityDispatchStatus请求参数结构体
|
3711
|
+
class ModifyEnterpriseSecurityDispatchStatusRequest < TencentCloud::Common::AbstractModel
|
3712
|
+
# @param Status: 状态,0:立即下发,1:停止下发
|
3713
|
+
# @type Status: Integer
|
3714
|
+
|
3715
|
+
attr_accessor :Status
|
3716
|
+
|
3717
|
+
def initialize(status=nil)
|
3718
|
+
@Status = status
|
3719
|
+
end
|
3720
|
+
|
3721
|
+
def deserialize(params)
|
3722
|
+
@Status = params['Status']
|
3723
|
+
end
|
3724
|
+
end
|
3725
|
+
|
3726
|
+
# ModifyEnterpriseSecurityDispatchStatus返回参数结构体
|
3727
|
+
class ModifyEnterpriseSecurityDispatchStatusResponse < TencentCloud::Common::AbstractModel
|
3728
|
+
# @param Status: 0: 修改成功, 其他: 修改失败
|
3729
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3730
|
+
# @type Status: Integer
|
3731
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3732
|
+
# @type RequestId: String
|
3733
|
+
|
3734
|
+
attr_accessor :Status, :RequestId
|
3735
|
+
|
3736
|
+
def initialize(status=nil, requestid=nil)
|
3737
|
+
@Status = status
|
3738
|
+
@RequestId = requestid
|
3739
|
+
end
|
3740
|
+
|
3741
|
+
def deserialize(params)
|
3742
|
+
@Status = params['Status']
|
3743
|
+
@RequestId = params['RequestId']
|
3744
|
+
end
|
3745
|
+
end
|
3746
|
+
|
3747
|
+
# ModifyEnterpriseSecurityGroupRule请求参数结构体
|
3748
|
+
class ModifyEnterpriseSecurityGroupRuleRequest < TencentCloud::Common::AbstractModel
|
3749
|
+
# @param RuleUuid: 规则的uuid,可通过查询规则列表获取
|
3750
|
+
# @type RuleUuid: Integer
|
3751
|
+
# @param ModifyType: 修改类型,0:修改规则内容;1:修改单条规则开关状态;2:修改所有规则开关状态
|
3752
|
+
# @type ModifyType: Integer
|
3753
|
+
# @param Data: 编辑后的企业安全组规则数据;修改规则状态不用填该字段
|
3754
|
+
# @type Data: :class:`Tencentcloud::Cfw.v20190904.models.SecurityGroupRule`
|
3755
|
+
# @param Enable: 0是关闭,1是开启
|
3756
|
+
# @type Enable: Integer
|
3757
|
+
|
3758
|
+
attr_accessor :RuleUuid, :ModifyType, :Data, :Enable
|
3759
|
+
|
3760
|
+
def initialize(ruleuuid=nil, modifytype=nil, data=nil, enable=nil)
|
3761
|
+
@RuleUuid = ruleuuid
|
3762
|
+
@ModifyType = modifytype
|
3763
|
+
@Data = data
|
3764
|
+
@Enable = enable
|
3765
|
+
end
|
3766
|
+
|
3767
|
+
def deserialize(params)
|
3768
|
+
@RuleUuid = params['RuleUuid']
|
3769
|
+
@ModifyType = params['ModifyType']
|
3770
|
+
unless params['Data'].nil?
|
3771
|
+
@Data = SecurityGroupRule.new
|
3772
|
+
@Data.deserialize(params['Data'])
|
3773
|
+
end
|
3774
|
+
@Enable = params['Enable']
|
3775
|
+
end
|
3776
|
+
end
|
3777
|
+
|
3778
|
+
# ModifyEnterpriseSecurityGroupRule返回参数结构体
|
3779
|
+
class ModifyEnterpriseSecurityGroupRuleResponse < TencentCloud::Common::AbstractModel
|
3780
|
+
# @param Status: 状态值,0:编辑成功,非0:编辑失败
|
3781
|
+
# @type Status: Integer
|
3782
|
+
# @param NewRuleUuid: 编辑后新生成规则的Id
|
3783
|
+
# @type NewRuleUuid: Integer
|
3784
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3785
|
+
# @type RequestId: String
|
3786
|
+
|
3787
|
+
attr_accessor :Status, :NewRuleUuid, :RequestId
|
3788
|
+
|
3789
|
+
def initialize(status=nil, newruleuuid=nil, requestid=nil)
|
3790
|
+
@Status = status
|
3791
|
+
@NewRuleUuid = newruleuuid
|
3792
|
+
@RequestId = requestid
|
3793
|
+
end
|
3794
|
+
|
3795
|
+
def deserialize(params)
|
3796
|
+
@Status = params['Status']
|
3797
|
+
@NewRuleUuid = params['NewRuleUuid']
|
3798
|
+
@RequestId = params['RequestId']
|
3799
|
+
end
|
3800
|
+
end
|
3801
|
+
|
3710
3802
|
# ModifyNatAcRule请求参数结构体
|
3711
3803
|
class ModifyNatAcRuleRequest < TencentCloud::Common::AbstractModel
|
3712
3804
|
# @param Rules: 需要编辑的规则数组
|
@@ -3893,6 +3985,49 @@ module TencentCloud
|
|
3893
3985
|
end
|
3894
3986
|
end
|
3895
3987
|
|
3988
|
+
# ModifyNatSequenceRules请求参数结构体
|
3989
|
+
class ModifyNatSequenceRulesRequest < TencentCloud::Common::AbstractModel
|
3990
|
+
# @param RuleChangeItems: 规则快速排序:OrderIndex,原始序号;NewOrderIndex:新序号
|
3991
|
+
# @type RuleChangeItems: Array
|
3992
|
+
# @param Direction: 规则方向:1,入站;0,出站
|
3993
|
+
# @type Direction: Integer
|
3994
|
+
|
3995
|
+
attr_accessor :RuleChangeItems, :Direction
|
3996
|
+
|
3997
|
+
def initialize(rulechangeitems=nil, direction=nil)
|
3998
|
+
@RuleChangeItems = rulechangeitems
|
3999
|
+
@Direction = direction
|
4000
|
+
end
|
4001
|
+
|
4002
|
+
def deserialize(params)
|
4003
|
+
unless params['RuleChangeItems'].nil?
|
4004
|
+
@RuleChangeItems = []
|
4005
|
+
params['RuleChangeItems'].each do |i|
|
4006
|
+
rulechangeitem_tmp = RuleChangeItem.new
|
4007
|
+
rulechangeitem_tmp.deserialize(i)
|
4008
|
+
@RuleChangeItems << rulechangeitem_tmp
|
4009
|
+
end
|
4010
|
+
end
|
4011
|
+
@Direction = params['Direction']
|
4012
|
+
end
|
4013
|
+
end
|
4014
|
+
|
4015
|
+
# ModifyNatSequenceRules返回参数结构体
|
4016
|
+
class ModifyNatSequenceRulesResponse < TencentCloud::Common::AbstractModel
|
4017
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4018
|
+
# @type RequestId: String
|
4019
|
+
|
4020
|
+
attr_accessor :RequestId
|
4021
|
+
|
4022
|
+
def initialize(requestid=nil)
|
4023
|
+
@RequestId = requestid
|
4024
|
+
end
|
4025
|
+
|
4026
|
+
def deserialize(params)
|
4027
|
+
@RequestId = params['RequestId']
|
4028
|
+
end
|
4029
|
+
end
|
4030
|
+
|
3896
4031
|
# ModifyPublicIPSwitchStatus请求参数结构体
|
3897
4032
|
class ModifyPublicIPSwitchStatusRequest < TencentCloud::Common::AbstractModel
|
3898
4033
|
# @param FireWallPublicIP: 公网IP
|
@@ -4626,6 +4761,26 @@ module TencentCloud
|
|
4626
4761
|
end
|
4627
4762
|
end
|
4628
4763
|
|
4764
|
+
# 规则顺序变更项,由原始id值变为新的id值。
|
4765
|
+
class RuleChangeItem < TencentCloud::Common::AbstractModel
|
4766
|
+
# @param OrderIndex: 原始sequence 值
|
4767
|
+
# @type OrderIndex: Integer
|
4768
|
+
# @param NewOrderIndex: 新的sequence 值
|
4769
|
+
# @type NewOrderIndex: Integer
|
4770
|
+
|
4771
|
+
attr_accessor :OrderIndex, :NewOrderIndex
|
4772
|
+
|
4773
|
+
def initialize(orderindex=nil, neworderindex=nil)
|
4774
|
+
@OrderIndex = orderindex
|
4775
|
+
@NewOrderIndex = neworderindex
|
4776
|
+
end
|
4777
|
+
|
4778
|
+
def deserialize(params)
|
4779
|
+
@OrderIndex = params['OrderIndex']
|
4780
|
+
@NewOrderIndex = params['NewOrderIndex']
|
4781
|
+
end
|
4782
|
+
end
|
4783
|
+
|
4629
4784
|
# 规则输入对象
|
4630
4785
|
class RuleInfoData < TencentCloud::Common::AbstractModel
|
4631
4786
|
# @param OrderIndex: 执行顺序
|
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.518
|
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-02-
|
11
|
+
date: 2023-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|