tencentcloud-sdk-cfw 3.0.403 → 3.0.406
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 +0 -24
- data/lib/v20190904/models.rb +19 -49
- 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: 0698d5ee970ae00afff132c5b6357557a058089b
|
|
4
|
+
data.tar.gz: 38ebb016dd10294f4b52e32f7977fb2f064b6d53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95848e957de93f45696d41c3e7d07d30b6d2ffbca7b445b554a546842220e176f75c8a3caca9b8c9adabcff709f80f0cb337fc1b9ec3d3fd4aaa4aac290da6ee
|
|
7
|
+
data.tar.gz: c5264f14e4ddfe6dacf8e5a0a5f9b354930fba64195c14a205c64441db98d6e413bbb371fa54ca358349b98b9e6fd66303f192a51f59434cd92f73415dd95b96
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.406
|
data/lib/v20190904/client.rb
CHANGED
|
@@ -1545,30 +1545,6 @@ module TencentCloud
|
|
|
1545
1545
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1546
1546
|
end
|
|
1547
1547
|
|
|
1548
|
-
# 单个修改VPC火墙开关
|
|
1549
|
-
|
|
1550
|
-
# @param request: Request instance for ModifyVPCSwitchStatus.
|
|
1551
|
-
# @type request: :class:`Tencentcloud::cfw::V20190904::ModifyVPCSwitchStatusRequest`
|
|
1552
|
-
# @rtype: :class:`Tencentcloud::cfw::V20190904::ModifyVPCSwitchStatusResponse`
|
|
1553
|
-
def ModifyVPCSwitchStatus(request)
|
|
1554
|
-
body = send_request('ModifyVPCSwitchStatus', request.serialize)
|
|
1555
|
-
response = JSON.parse(body)
|
|
1556
|
-
if response['Response'].key?('Error') == false
|
|
1557
|
-
model = ModifyVPCSwitchStatusResponse.new
|
|
1558
|
-
model.deserialize(response['Response'])
|
|
1559
|
-
model
|
|
1560
|
-
else
|
|
1561
|
-
code = response['Response']['Error']['Code']
|
|
1562
|
-
message = response['Response']['Error']['Message']
|
|
1563
|
-
reqid = response['Response']['RequestId']
|
|
1564
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1565
|
-
end
|
|
1566
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1567
|
-
raise e
|
|
1568
|
-
rescue StandardError => e
|
|
1569
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1570
|
-
end
|
|
1571
|
-
|
|
1572
1548
|
# 删除互联网边界规则
|
|
1573
1549
|
|
|
1574
1550
|
# @param request: Request instance for RemoveAcRule.
|
data/lib/v20190904/models.rb
CHANGED
|
@@ -102,7 +102,7 @@ module TencentCloud
|
|
|
102
102
|
# 当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
|
|
103
103
|
# 例如:1.1.1.0/24
|
|
104
104
|
|
|
105
|
-
# 当SourceType为template时,SourceContent
|
|
105
|
+
# 当SourceType为template时,SourceContent为源地址模板id。
|
|
106
106
|
|
|
107
107
|
# 当SourceType为location时,SourceContent为源区域。
|
|
108
108
|
# 例如["BJ11", "ZB"]
|
|
@@ -125,7 +125,7 @@ module TencentCloud
|
|
|
125
125
|
# 当DestType为net时,DestContent为源IP地址或者CIDR地址。
|
|
126
126
|
# 例如:1.1.1.0/24
|
|
127
127
|
|
|
128
|
-
# 当DestType为template时,DestContent
|
|
128
|
+
# 当DestType为template时,DestContent为源地址模板id。
|
|
129
129
|
|
|
130
130
|
# 当DestType为location时,DestContent为源区域。
|
|
131
131
|
# 例如["BJ11", "ZB"]
|
|
@@ -3895,51 +3895,6 @@ module TencentCloud
|
|
|
3895
3895
|
end
|
|
3896
3896
|
end
|
|
3897
3897
|
|
|
3898
|
-
# ModifyVPCSwitchStatus请求参数结构体
|
|
3899
|
-
class ModifyVPCSwitchStatusRequest < TencentCloud::Common::AbstractModel
|
|
3900
|
-
# @param FirewallVpcId: 公网IP
|
|
3901
|
-
# @type FirewallVpcId: String
|
|
3902
|
-
# @param Status: 状态值,0: 关闭 ,1:开启
|
|
3903
|
-
# @type Status: Integer
|
|
3904
|
-
|
|
3905
|
-
attr_accessor :FirewallVpcId, :Status
|
|
3906
|
-
|
|
3907
|
-
def initialize(firewallvpcid=nil, status=nil)
|
|
3908
|
-
@FirewallVpcId = firewallvpcid
|
|
3909
|
-
@Status = status
|
|
3910
|
-
end
|
|
3911
|
-
|
|
3912
|
-
def deserialize(params)
|
|
3913
|
-
@FirewallVpcId = params['FirewallVpcId']
|
|
3914
|
-
@Status = params['Status']
|
|
3915
|
-
end
|
|
3916
|
-
end
|
|
3917
|
-
|
|
3918
|
-
# ModifyVPCSwitchStatus返回参数结构体
|
|
3919
|
-
class ModifyVPCSwitchStatusResponse < TencentCloud::Common::AbstractModel
|
|
3920
|
-
# @param ReturnMsg: 接口返回信息
|
|
3921
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3922
|
-
# @type ReturnMsg: String
|
|
3923
|
-
# @param ReturnCode: 接口返回错误码,0请求成功 非0失败
|
|
3924
|
-
# @type ReturnCode: Integer
|
|
3925
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3926
|
-
# @type RequestId: String
|
|
3927
|
-
|
|
3928
|
-
attr_accessor :ReturnMsg, :ReturnCode, :RequestId
|
|
3929
|
-
|
|
3930
|
-
def initialize(returnmsg=nil, returncode=nil, requestid=nil)
|
|
3931
|
-
@ReturnMsg = returnmsg
|
|
3932
|
-
@ReturnCode = returncode
|
|
3933
|
-
@RequestId = requestid
|
|
3934
|
-
end
|
|
3935
|
-
|
|
3936
|
-
def deserialize(params)
|
|
3937
|
-
@ReturnMsg = params['ReturnMsg']
|
|
3938
|
-
@ReturnCode = params['ReturnCode']
|
|
3939
|
-
@RequestId = params['RequestId']
|
|
3940
|
-
end
|
|
3941
|
-
end
|
|
3942
|
-
|
|
3943
3898
|
# Nat防火墙弹性公网ip列表
|
|
3944
3899
|
class NatFwEipsInfo < TencentCloud::Common::AbstractModel
|
|
3945
3900
|
# @param Eip: 弹性公网ip
|
|
@@ -4056,10 +4011,19 @@ module TencentCloud
|
|
|
4056
4011
|
# @param Status: 0 :正常 1:正在初始化
|
|
4057
4012
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4058
4013
|
# @type Status: Integer
|
|
4014
|
+
# @param RegionDetail: 地域区域信息
|
|
4015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4016
|
+
# @type RegionDetail: String
|
|
4017
|
+
# @param ZoneZh: 实例所在可用区
|
|
4018
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4019
|
+
# @type ZoneZh: String
|
|
4020
|
+
# @param ZoneZhBak: 实例所在可用区
|
|
4021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4022
|
+
# @type ZoneZhBak: String
|
|
4059
4023
|
|
|
4060
|
-
attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :BandWidth, :InFlowMax, :OutFlowMax, :RegionZh, :EipAddress, :VpcIp, :Subnets, :Status
|
|
4024
|
+
attr_accessor :NatinsId, :NatinsName, :Region, :FwMode, :BandWidth, :InFlowMax, :OutFlowMax, :RegionZh, :EipAddress, :VpcIp, :Subnets, :Status, :RegionDetail, :ZoneZh, :ZoneZhBak
|
|
4061
4025
|
|
|
4062
|
-
def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, bandwidth=nil, inflowmax=nil, outflowmax=nil, regionzh=nil, eipaddress=nil, vpcip=nil, subnets=nil, status=nil)
|
|
4026
|
+
def initialize(natinsid=nil, natinsname=nil, region=nil, fwmode=nil, bandwidth=nil, inflowmax=nil, outflowmax=nil, regionzh=nil, eipaddress=nil, vpcip=nil, subnets=nil, status=nil, regiondetail=nil, zonezh=nil, zonezhbak=nil)
|
|
4063
4027
|
@NatinsId = natinsid
|
|
4064
4028
|
@NatinsName = natinsname
|
|
4065
4029
|
@Region = region
|
|
@@ -4072,6 +4036,9 @@ module TencentCloud
|
|
|
4072
4036
|
@VpcIp = vpcip
|
|
4073
4037
|
@Subnets = subnets
|
|
4074
4038
|
@Status = status
|
|
4039
|
+
@RegionDetail = regiondetail
|
|
4040
|
+
@ZoneZh = zonezh
|
|
4041
|
+
@ZoneZhBak = zonezhbak
|
|
4075
4042
|
end
|
|
4076
4043
|
|
|
4077
4044
|
def deserialize(params)
|
|
@@ -4087,6 +4054,9 @@ module TencentCloud
|
|
|
4087
4054
|
@VpcIp = params['VpcIp']
|
|
4088
4055
|
@Subnets = params['Subnets']
|
|
4089
4056
|
@Status = params['Status']
|
|
4057
|
+
@RegionDetail = params['RegionDetail']
|
|
4058
|
+
@ZoneZh = params['ZoneZh']
|
|
4059
|
+
@ZoneZhBak = params['ZoneZhBak']
|
|
4090
4060
|
end
|
|
4091
4061
|
end
|
|
4092
4062
|
|
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.406
|
|
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-09-
|
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|