tencentcloud-sdk-cfw 3.0.872 → 3.0.873
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 +24 -0
- data/lib/v20190904/models.rb +157 -2
- 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: 2cee1ba28e66e83573025c51586bbbfb167eda91
|
4
|
+
data.tar.gz: 9a570f73ab10be95ba75a71d7ab1d33e6a9ea8f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719d5d2f136f08f2fe29912e43204dbc92dd2a151de1a6b61cffe1bbef793d10e7849e12481a81335689624aab0c3ea6c6448fe3fbe5844370768b09414e358e
|
7
|
+
data.tar.gz: 2a93422fe5186d3af3489692dc9fa40bf849d4719424acd971e8af6ef584e61b076c077feac0441abfbe99b233f7ca3f7d2af10abd080b7f5ad427056b359fcd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.873
|
data/lib/v20190904/client.rb
CHANGED
@@ -1231,6 +1231,30 @@ module TencentCloud
|
|
1231
1231
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1232
1232
|
end
|
1233
1233
|
|
1234
|
+
# 查询Nat防火墙Dnat规则
|
1235
|
+
|
1236
|
+
# @param request: Request instance for DescribeNatFwDnatRule.
|
1237
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeNatFwDnatRuleRequest`
|
1238
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeNatFwDnatRuleResponse`
|
1239
|
+
def DescribeNatFwDnatRule(request)
|
1240
|
+
body = send_request('DescribeNatFwDnatRule', request.serialize)
|
1241
|
+
response = JSON.parse(body)
|
1242
|
+
if response['Response'].key?('Error') == false
|
1243
|
+
model = DescribeNatFwDnatRuleResponse.new
|
1244
|
+
model.deserialize(response['Response'])
|
1245
|
+
model
|
1246
|
+
else
|
1247
|
+
code = response['Response']['Error']['Code']
|
1248
|
+
message = response['Response']['Error']['Message']
|
1249
|
+
reqid = response['Response']['RequestId']
|
1250
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1251
|
+
end
|
1252
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1253
|
+
raise e
|
1254
|
+
rescue StandardError => e
|
1255
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1256
|
+
end
|
1257
|
+
|
1234
1258
|
# 获取当前用户接入nat防火墙的所有子网数及natfw实例个数
|
1235
1259
|
|
1236
1260
|
# @param request: Request instance for DescribeNatFwInfoCount.
|
data/lib/v20190904/models.rb
CHANGED
@@ -2608,6 +2608,68 @@ module TencentCloud
|
|
2608
2608
|
end
|
2609
2609
|
end
|
2610
2610
|
|
2611
|
+
# NAT防火墙Dnat规则列表
|
2612
|
+
class DescNatDnatRule < TencentCloud::Common::AbstractModel
|
2613
|
+
# @param Id: id
|
2614
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2615
|
+
# @type Id: Integer
|
2616
|
+
# @param IpProtocol: 网络协议,可选值:TCP、UDP。
|
2617
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2618
|
+
# @type IpProtocol: String
|
2619
|
+
# @param PublicIpAddress: 弹性IP。
|
2620
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2621
|
+
# @type PublicIpAddress: String
|
2622
|
+
# @param PublicPort: 公网端口。
|
2623
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2624
|
+
# @type PublicPort: Integer
|
2625
|
+
# @param PrivateIpAddress: 内网地址。
|
2626
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2627
|
+
# @type PrivateIpAddress: String
|
2628
|
+
# @param PrivatePort: 内网端口。
|
2629
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2630
|
+
# @type PrivatePort: Integer
|
2631
|
+
# @param Description: NAT防火墙转发规则描述。
|
2632
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2633
|
+
# @type Description: String
|
2634
|
+
# @param IsReferenced: 是否被关联引用,如被远程运维使用
|
2635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2636
|
+
# @type IsReferenced: Integer
|
2637
|
+
# @param FwInsId: 所属防火墙实例id
|
2638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2639
|
+
# @type FwInsId: String
|
2640
|
+
# @param NatGwId: 关联的nat网关Id
|
2641
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2642
|
+
# @type NatGwId: String
|
2643
|
+
|
2644
|
+
attr_accessor :Id, :IpProtocol, :PublicIpAddress, :PublicPort, :PrivateIpAddress, :PrivatePort, :Description, :IsReferenced, :FwInsId, :NatGwId
|
2645
|
+
|
2646
|
+
def initialize(id=nil, ipprotocol=nil, publicipaddress=nil, publicport=nil, privateipaddress=nil, privateport=nil, description=nil, isreferenced=nil, fwinsid=nil, natgwid=nil)
|
2647
|
+
@Id = id
|
2648
|
+
@IpProtocol = ipprotocol
|
2649
|
+
@PublicIpAddress = publicipaddress
|
2650
|
+
@PublicPort = publicport
|
2651
|
+
@PrivateIpAddress = privateipaddress
|
2652
|
+
@PrivatePort = privateport
|
2653
|
+
@Description = description
|
2654
|
+
@IsReferenced = isreferenced
|
2655
|
+
@FwInsId = fwinsid
|
2656
|
+
@NatGwId = natgwid
|
2657
|
+
end
|
2658
|
+
|
2659
|
+
def deserialize(params)
|
2660
|
+
@Id = params['Id']
|
2661
|
+
@IpProtocol = params['IpProtocol']
|
2662
|
+
@PublicIpAddress = params['PublicIpAddress']
|
2663
|
+
@PublicPort = params['PublicPort']
|
2664
|
+
@PrivateIpAddress = params['PrivateIpAddress']
|
2665
|
+
@PrivatePort = params['PrivatePort']
|
2666
|
+
@Description = params['Description']
|
2667
|
+
@IsReferenced = params['IsReferenced']
|
2668
|
+
@FwInsId = params['FwInsId']
|
2669
|
+
@NatGwId = params['NatGwId']
|
2670
|
+
end
|
2671
|
+
end
|
2672
|
+
|
2611
2673
|
# DescribeAcLists请求参数结构体
|
2612
2674
|
class DescribeAcListsRequest < TencentCloud::Common::AbstractModel
|
2613
2675
|
# @param Protocol: 协议
|
@@ -4025,6 +4087,89 @@ module TencentCloud
|
|
4025
4087
|
end
|
4026
4088
|
end
|
4027
4089
|
|
4090
|
+
# DescribeNatFwDnatRule请求参数结构体
|
4091
|
+
class DescribeNatFwDnatRuleRequest < TencentCloud::Common::AbstractModel
|
4092
|
+
# @param Index: 需要查询的索引,特定场景使用,可不填
|
4093
|
+
# @type Index: String
|
4094
|
+
# @param Filters: 过滤条件组合
|
4095
|
+
# @type Filters: Array
|
4096
|
+
# @param Limit: 每页条数
|
4097
|
+
# @type Limit: Integer
|
4098
|
+
# @param Offset: 偏移值
|
4099
|
+
# @type Offset: Integer
|
4100
|
+
# @param StartTime: 检索的起始时间,可不传
|
4101
|
+
# @type StartTime: String
|
4102
|
+
# @param EndTime: 检索的截止时间,可不传
|
4103
|
+
# @type EndTime: String
|
4104
|
+
# @param Order: desc:降序;asc:升序。根据By字段的值进行排序,这里传参的话则By也必须有值
|
4105
|
+
# @type Order: String
|
4106
|
+
# @param By: 排序所用到的字段
|
4107
|
+
# @type By: String
|
4108
|
+
|
4109
|
+
attr_accessor :Index, :Filters, :Limit, :Offset, :StartTime, :EndTime, :Order, :By
|
4110
|
+
|
4111
|
+
def initialize(index=nil, filters=nil, limit=nil, offset=nil, starttime=nil, endtime=nil, order=nil, by=nil)
|
4112
|
+
@Index = index
|
4113
|
+
@Filters = filters
|
4114
|
+
@Limit = limit
|
4115
|
+
@Offset = offset
|
4116
|
+
@StartTime = starttime
|
4117
|
+
@EndTime = endtime
|
4118
|
+
@Order = order
|
4119
|
+
@By = by
|
4120
|
+
end
|
4121
|
+
|
4122
|
+
def deserialize(params)
|
4123
|
+
@Index = params['Index']
|
4124
|
+
unless params['Filters'].nil?
|
4125
|
+
@Filters = []
|
4126
|
+
params['Filters'].each do |i|
|
4127
|
+
commonfilter_tmp = CommonFilter.new
|
4128
|
+
commonfilter_tmp.deserialize(i)
|
4129
|
+
@Filters << commonfilter_tmp
|
4130
|
+
end
|
4131
|
+
end
|
4132
|
+
@Limit = params['Limit']
|
4133
|
+
@Offset = params['Offset']
|
4134
|
+
@StartTime = params['StartTime']
|
4135
|
+
@EndTime = params['EndTime']
|
4136
|
+
@Order = params['Order']
|
4137
|
+
@By = params['By']
|
4138
|
+
end
|
4139
|
+
end
|
4140
|
+
|
4141
|
+
# DescribeNatFwDnatRule返回参数结构体
|
4142
|
+
class DescribeNatFwDnatRuleResponse < TencentCloud::Common::AbstractModel
|
4143
|
+
# @param Data: Dnat规则列表
|
4144
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4145
|
+
# @type Data: Array
|
4146
|
+
# @param Total: 列表总数
|
4147
|
+
# @type Total: Integer
|
4148
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4149
|
+
# @type RequestId: String
|
4150
|
+
|
4151
|
+
attr_accessor :Data, :Total, :RequestId
|
4152
|
+
|
4153
|
+
def initialize(data=nil, total=nil, requestid=nil)
|
4154
|
+
@Data = data
|
4155
|
+
@Total = total
|
4156
|
+
@RequestId = requestid
|
4157
|
+
end
|
4158
|
+
|
4159
|
+
def deserialize(params)
|
4160
|
+
unless params['Data'].nil?
|
4161
|
+
@Data = []
|
4162
|
+
params['Data'].each do |i|
|
4163
|
+
descnatdnatrule_tmp = DescNatDnatRule.new
|
4164
|
+
descnatdnatrule_tmp.deserialize(i)
|
4165
|
+
@Data << descnatdnatrule_tmp
|
4166
|
+
end
|
4167
|
+
end
|
4168
|
+
@Total = params['Total']
|
4169
|
+
@RequestId = params['RequestId']
|
4170
|
+
end
|
4171
|
+
end
|
4172
|
+
|
4028
4173
|
# DescribeNatFwInfoCount请求参数结构体
|
4029
4174
|
class DescribeNatFwInfoCountRequest < TencentCloud::Common::AbstractModel
|
4030
4175
|
|
@@ -9384,10 +9529,16 @@ module TencentCloud
|
|
9384
9529
|
# @param CrossUserMode: 跨租户模式 1管理员 2单边 0 非跨租户
|
9385
9530
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
9386
9531
|
# @type CrossUserMode: String
|
9532
|
+
# @param NeedSwitchCcnOverlap: 云联网模式下,当前实例是否需要开启重叠路由开关,1:需要开启,0:不需要开启
|
9533
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9534
|
+
# @type NeedSwitchCcnOverlap: Integer
|
9535
|
+
# @param CcnId: 云联网模式下,实例关联的云联网id
|
9536
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9537
|
+
# @type CcnId: String
|
9387
9538
|
|
9388
|
-
attr_accessor :FwGroupId, :FwGroupName, :FwSwitchNum, :RegionLst, :Mode, :SwitchMode, :FwInstanceLst, :Status, :FwVpcCidr, :CdcId, :CdcName, :CrossUserMode
|
9539
|
+
attr_accessor :FwGroupId, :FwGroupName, :FwSwitchNum, :RegionLst, :Mode, :SwitchMode, :FwInstanceLst, :Status, :FwVpcCidr, :CdcId, :CdcName, :CrossUserMode, :NeedSwitchCcnOverlap, :CcnId
|
9389
9540
|
|
9390
|
-
def initialize(fwgroupid=nil, fwgroupname=nil, fwswitchnum=nil, regionlst=nil, mode=nil, switchmode=nil, fwinstancelst=nil, status=nil, fwvpccidr=nil, cdcid=nil, cdcname=nil, crossusermode=nil)
|
9541
|
+
def initialize(fwgroupid=nil, fwgroupname=nil, fwswitchnum=nil, regionlst=nil, mode=nil, switchmode=nil, fwinstancelst=nil, status=nil, fwvpccidr=nil, cdcid=nil, cdcname=nil, crossusermode=nil, needswitchccnoverlap=nil, ccnid=nil)
|
9391
9542
|
@FwGroupId = fwgroupid
|
9392
9543
|
@FwGroupName = fwgroupname
|
9393
9544
|
@FwSwitchNum = fwswitchnum
|
@@ -9400,6 +9551,8 @@ module TencentCloud
|
|
9400
9551
|
@CdcId = cdcid
|
9401
9552
|
@CdcName = cdcname
|
9402
9553
|
@CrossUserMode = crossusermode
|
9554
|
+
@NeedSwitchCcnOverlap = needswitchccnoverlap
|
9555
|
+
@CcnId = ccnid
|
9403
9556
|
end
|
9404
9557
|
|
9405
9558
|
def deserialize(params)
|
@@ -9422,6 +9575,8 @@ module TencentCloud
|
|
9422
9575
|
@CdcId = params['CdcId']
|
9423
9576
|
@CdcName = params['CdcName']
|
9424
9577
|
@CrossUserMode = params['CrossUserMode']
|
9578
|
+
@NeedSwitchCcnOverlap = params['NeedSwitchCcnOverlap']
|
9579
|
+
@CcnId = params['CcnId']
|
9425
9580
|
end
|
9426
9581
|
end
|
9427
9582
|
|
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.873
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|