tencentcloud-sdk-cfw 3.0.402 → 3.0.405
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 +2 -47
- 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: aefc64ec8a005142b28e43530ed6a70b2dfc9c90
|
|
4
|
+
data.tar.gz: a4fc8f7ac05a961e9c1f79b81515bc7dd68ad1b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4bd580c9b85576408f659e2a3f99503b93a6d70458205762cbf6a04082f92561a6586db2bc599f35ec52d1cb70ef778313ad00dbc97be9296b09a8a4afb0c995
|
|
7
|
+
data.tar.gz: c2899eb18d5f83ade5272e547175aa9929de60079db1d586af170b1e6002bdba67f8ecbab9f5b72a3309a2ff9a6359077c05d78bb910d6a99717d868ec37ec5d
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.405
|
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
|
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.405
|
|
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-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|