tencentcloud-sdk-cfw 3.0.1145 → 3.0.1173

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ed4fe975a2de19392f0ecad6bbbc1c1b05f58c0
4
- data.tar.gz: dc4557a6982f7ae6d318de50bd79183eea8e1738
3
+ metadata.gz: 3d8d8b787df035822fc36edb58306273e9226f23
4
+ data.tar.gz: c5d37b3a6ccf870368886f2b8e860aa3642f0bea
5
5
  SHA512:
6
- metadata.gz: 0ae99dc970b4eb3fe76744cb5792c7edc3fedfef10ad6ea5e8b51c53996535d67182eef05d6188353470f9ecbd6897842c3d9ab15f77b3651d6e1f2907e4b526
7
- data.tar.gz: 549f30ae806f07d5c0f94c63305470301d06dd9424b3fecd3792b828aabf2af6d82fe4897986f585560b1473b809b6cc175bbb2d273076632ffd6de4ec48fd0f
6
+ metadata.gz: 195908638b4b5918c1585602490738567bceb957b103d79ce07da6848f481bd8f5ca1baecc675026603a2e086e32463ed5d79ea242a6250f9394e935d1e3790a
7
+ data.tar.gz: 39b5bb8962707d02ed50bea2b91526f5598fed17f4a237e76b300f7ecf11fe5d4e2c34f2200a7757fbe0afec8d7de70164504f76a43b2447b93b933cb981eb0d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1145
1
+ 3.0.1173
@@ -1325,6 +1325,30 @@ module TencentCloud
1325
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
1326
  end
1327
1327
 
1328
+ # 查询NAT边界防火墙开关列表
1329
+
1330
+ # @param request: Request instance for DescribeNatFwSwitch.
1331
+ # @type request: :class:`Tencentcloud::cfw::V20190904::DescribeNatFwSwitchRequest`
1332
+ # @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeNatFwSwitchResponse`
1333
+ def DescribeNatFwSwitch(request)
1334
+ body = send_request('DescribeNatFwSwitch', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribeNatFwSwitchResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1328
1352
  # 展示当前natfw 实例对应的vpc dns开关
1329
1353
 
1330
1354
  # @param request: Request instance for DescribeNatFwVpcDnsLst.
@@ -756,6 +756,55 @@ module TencentCloud
756
756
  end
757
757
  end
758
758
 
759
+ # ID NAME 组合
760
+ class CommonIdName < TencentCloud::Common::AbstractModel
761
+ # @param Id: 资源ID
762
+ # 注意:此字段可能返回 null,表示取不到有效值。
763
+ # @type Id: String
764
+ # @param Name: 资源名字
765
+ # 注意:此字段可能返回 null,表示取不到有效值。
766
+ # @type Name: String
767
+
768
+ attr_accessor :Id, :Name
769
+
770
+ def initialize(id=nil, name=nil)
771
+ @Id = id
772
+ @Name = name
773
+ end
774
+
775
+ def deserialize(params)
776
+ @Id = params['Id']
777
+ @Name = params['Name']
778
+ end
779
+ end
780
+
781
+ # ID NAME STATUS 组合结构
782
+ class CommonIdNameStatus < TencentCloud::Common::AbstractModel
783
+ # @param Id: 资源id
784
+ # 注意:此字段可能返回 null,表示取不到有效值。
785
+ # @type Id: String
786
+ # @param Name: 资源name
787
+ # 注意:此字段可能返回 null,表示取不到有效值。
788
+ # @type Name: String
789
+ # @param Status: 状态
790
+ # 注意:此字段可能返回 null,表示取不到有效值。
791
+ # @type Status: Integer
792
+
793
+ attr_accessor :Id, :Name, :Status
794
+
795
+ def initialize(id=nil, name=nil, status=nil)
796
+ @Id = id
797
+ @Name = name
798
+ @Status = status
799
+ end
800
+
801
+ def deserialize(params)
802
+ @Id = params['Id']
803
+ @Name = params['Name']
804
+ @Status = params['Status']
805
+ end
806
+ end
807
+
759
808
  # CreateAcRules请求参数结构体
760
809
  class CreateAcRulesRequest < TencentCloud::Common::AbstractModel
761
810
  # @param Data: 创建规则数据
@@ -4330,6 +4379,136 @@ module TencentCloud
4330
4379
  end
4331
4380
  end
4332
4381
 
4382
+ # DescribeNatFwSwitch请求参数结构体
4383
+ class DescribeNatFwSwitchRequest < TencentCloud::Common::AbstractModel
4384
+ # @param Offset: 偏移量,分页用
4385
+ # @type Offset: Integer
4386
+ # @param Limit: 条数,分页用
4387
+ # @type Limit: Integer
4388
+ # @param Filters: 过滤条件组合
4389
+ # @type Filters: Array
4390
+ # @param Order: desc:降序;asc:升序。根据By字段的值进行排序,这里传参的话则By也必须有值
4391
+ # @type Order: String
4392
+ # @param By: 排序所用到的字段
4393
+ # @type By: String
4394
+
4395
+ attr_accessor :Offset, :Limit, :Filters, :Order, :By
4396
+
4397
+ def initialize(offset=nil, limit=nil, filters=nil, order=nil, by=nil)
4398
+ @Offset = offset
4399
+ @Limit = limit
4400
+ @Filters = filters
4401
+ @Order = order
4402
+ @By = by
4403
+ end
4404
+
4405
+ def deserialize(params)
4406
+ @Offset = params['Offset']
4407
+ @Limit = params['Limit']
4408
+ unless params['Filters'].nil?
4409
+ @Filters = []
4410
+ params['Filters'].each do |i|
4411
+ commonfilter_tmp = CommonFilter.new
4412
+ commonfilter_tmp.deserialize(i)
4413
+ @Filters << commonfilter_tmp
4414
+ end
4415
+ end
4416
+ @Order = params['Order']
4417
+ @By = params['By']
4418
+ end
4419
+ end
4420
+
4421
+ # DescribeNatFwSwitch返回参数结构体
4422
+ class DescribeNatFwSwitchResponse < TencentCloud::Common::AbstractModel
4423
+ # @param Total: 总数
4424
+ # 注意:此字段可能返回 null,表示取不到有效值。
4425
+ # @type Total: Integer
4426
+ # @param Data: NAT边界防火墙开关列表数据
4427
+ # 注意:此字段可能返回 null,表示取不到有效值。
4428
+ # @type Data: Array
4429
+ # @param VpcList: 开关相关VPC列表
4430
+ # 注意:此字段可能返回 null,表示取不到有效值。
4431
+ # @type VpcList: Array
4432
+ # @param NatList: 开关相关NAT列表
4433
+ # 注意:此字段可能返回 null,表示取不到有效值。
4434
+ # @type NatList: Array
4435
+ # @param RouteList: 开关相关ROUTE列表
4436
+ # 注意:此字段可能返回 null,表示取不到有效值。
4437
+ # @type RouteList: Array
4438
+ # @param OnNum: 开启开关个数
4439
+ # 注意:此字段可能返回 null,表示取不到有效值。
4440
+ # @type OnNum: Integer
4441
+ # @param OffNum: 关闭开关个数
4442
+ # 注意:此字段可能返回 null,表示取不到有效值。
4443
+ # @type OffNum: Integer
4444
+ # @param FailData: 失败开关状态
4445
+ # 注意:此字段可能返回 null,表示取不到有效值。
4446
+ # @type FailData: Array
4447
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4448
+ # @type RequestId: String
4449
+
4450
+ attr_accessor :Total, :Data, :VpcList, :NatList, :RouteList, :OnNum, :OffNum, :FailData, :RequestId
4451
+
4452
+ def initialize(total=nil, data=nil, vpclist=nil, natlist=nil, routelist=nil, onnum=nil, offnum=nil, faildata=nil, requestid=nil)
4453
+ @Total = total
4454
+ @Data = data
4455
+ @VpcList = vpclist
4456
+ @NatList = natlist
4457
+ @RouteList = routelist
4458
+ @OnNum = onnum
4459
+ @OffNum = offnum
4460
+ @FailData = faildata
4461
+ @RequestId = requestid
4462
+ end
4463
+
4464
+ def deserialize(params)
4465
+ @Total = params['Total']
4466
+ unless params['Data'].nil?
4467
+ @Data = []
4468
+ params['Data'].each do |i|
4469
+ natswitchlistdata_tmp = NatSwitchListData.new
4470
+ natswitchlistdata_tmp.deserialize(i)
4471
+ @Data << natswitchlistdata_tmp
4472
+ end
4473
+ end
4474
+ unless params['VpcList'].nil?
4475
+ @VpcList = []
4476
+ params['VpcList'].each do |i|
4477
+ commonidname_tmp = CommonIdName.new
4478
+ commonidname_tmp.deserialize(i)
4479
+ @VpcList << commonidname_tmp
4480
+ end
4481
+ end
4482
+ unless params['NatList'].nil?
4483
+ @NatList = []
4484
+ params['NatList'].each do |i|
4485
+ commonidname_tmp = CommonIdName.new
4486
+ commonidname_tmp.deserialize(i)
4487
+ @NatList << commonidname_tmp
4488
+ end
4489
+ end
4490
+ unless params['RouteList'].nil?
4491
+ @RouteList = []
4492
+ params['RouteList'].each do |i|
4493
+ commonidname_tmp = CommonIdName.new
4494
+ commonidname_tmp.deserialize(i)
4495
+ @RouteList << commonidname_tmp
4496
+ end
4497
+ end
4498
+ @OnNum = params['OnNum']
4499
+ @OffNum = params['OffNum']
4500
+ unless params['FailData'].nil?
4501
+ @FailData = []
4502
+ params['FailData'].each do |i|
4503
+ commonidnamestatus_tmp = CommonIdNameStatus.new
4504
+ commonidnamestatus_tmp.deserialize(i)
4505
+ @FailData << commonidnamestatus_tmp
4506
+ end
4507
+ end
4508
+ @RequestId = params['RequestId']
4509
+ end
4510
+ end
4511
+
4333
4512
  # DescribeNatFwVpcDnsLst请求参数结构体
4334
4513
  class DescribeNatFwVpcDnsLstRequest < TencentCloud::Common::AbstractModel
4335
4514
  # @param NatFwInsId: natfw 防火墙实例id
@@ -7995,6 +8174,117 @@ module TencentCloud
7995
8174
  end
7996
8175
  end
7997
8176
 
8177
+ # NAT防火墙开关列表数据
8178
+ class NatSwitchListData < TencentCloud::Common::AbstractModel
8179
+ # @param Id: 列表ID
8180
+ # @type Id: Integer
8181
+ # @param SubnetId: 子网ID
8182
+ # 注意:此字段可能返回 null,表示取不到有效值。
8183
+ # @type SubnetId: String
8184
+ # @param SubnetName: 子网名称
8185
+ # 注意:此字段可能返回 null,表示取不到有效值。
8186
+ # @type SubnetName: String
8187
+ # @param SubnetCidr: IPv4 CIDR
8188
+ # 注意:此字段可能返回 null,表示取不到有效值。
8189
+ # @type SubnetCidr: String
8190
+ # @param RouteId: 关联路由ID
8191
+ # 注意:此字段可能返回 null,表示取不到有效值。
8192
+ # @type RouteId: String
8193
+ # @param RouteName: 关联路由名称
8194
+ # 注意:此字段可能返回 null,表示取不到有效值。
8195
+ # @type RouteName: String
8196
+ # @param CvmNum: 云服务器个数
8197
+ # 注意:此字段可能返回 null,表示取不到有效值。
8198
+ # @type CvmNum: Integer
8199
+ # @param VpcId: 所属VPC ID
8200
+ # 注意:此字段可能返回 null,表示取不到有效值。
8201
+ # @type VpcId: String
8202
+ # @param VpcName: 所属VPC名称
8203
+ # 注意:此字段可能返回 null,表示取不到有效值。
8204
+ # @type VpcName: String
8205
+ # @param Enable: 是否生效
8206
+ # 注意:此字段可能返回 null,表示取不到有效值。
8207
+ # @type Enable: Integer
8208
+ # @param Status: 开关状态
8209
+ # 注意:此字段可能返回 null,表示取不到有效值。
8210
+ # @type Status: Integer
8211
+ # @param NatId: NAT网关ID
8212
+ # 注意:此字段可能返回 null,表示取不到有效值。
8213
+ # @type NatId: String
8214
+ # @param NatName: NAT网关名称
8215
+ # 注意:此字段可能返回 null,表示取不到有效值。
8216
+ # @type NatName: String
8217
+ # @param NatInsId: NAT防火墙实例ID
8218
+ # 注意:此字段可能返回 null,表示取不到有效值。
8219
+ # @type NatInsId: String
8220
+ # @param NatInsName: NAT防火墙实例名称
8221
+ # 注意:此字段可能返回 null,表示取不到有效值。
8222
+ # @type NatInsName: String
8223
+ # @param Region: 地域
8224
+ # 注意:此字段可能返回 null,表示取不到有效值。
8225
+ # @type Region: String
8226
+ # @param Abnormal: 开关是否异常,0:正常,1:异常
8227
+ # 注意:此字段可能返回 null,表示取不到有效值。
8228
+ # @type Abnormal: Integer
8229
+ # @param ORTableId: nat防火墙出口路由表id
8230
+ # 注意:此字段可能返回 null,表示取不到有效值。
8231
+ # @type ORTableId: String
8232
+ # @param ORTableName: nat防火墙出口路由表名称
8233
+ # 注意:此字段可能返回 null,表示取不到有效值。
8234
+ # @type ORTableName: String
8235
+ # @param Ohavips: 出口Snat Ip列表
8236
+ # 注意:此字段可能返回 null,表示取不到有效值。
8237
+ # @type Ohavips: Array
8238
+
8239
+ attr_accessor :Id, :SubnetId, :SubnetName, :SubnetCidr, :RouteId, :RouteName, :CvmNum, :VpcId, :VpcName, :Enable, :Status, :NatId, :NatName, :NatInsId, :NatInsName, :Region, :Abnormal, :ORTableId, :ORTableName, :Ohavips
8240
+
8241
+ def initialize(id=nil, subnetid=nil, subnetname=nil, subnetcidr=nil, routeid=nil, routename=nil, cvmnum=nil, vpcid=nil, vpcname=nil, enable=nil, status=nil, natid=nil, natname=nil, natinsid=nil, natinsname=nil, region=nil, abnormal=nil, ortableid=nil, ortablename=nil, ohavips=nil)
8242
+ @Id = id
8243
+ @SubnetId = subnetid
8244
+ @SubnetName = subnetname
8245
+ @SubnetCidr = subnetcidr
8246
+ @RouteId = routeid
8247
+ @RouteName = routename
8248
+ @CvmNum = cvmnum
8249
+ @VpcId = vpcid
8250
+ @VpcName = vpcname
8251
+ @Enable = enable
8252
+ @Status = status
8253
+ @NatId = natid
8254
+ @NatName = natname
8255
+ @NatInsId = natinsid
8256
+ @NatInsName = natinsname
8257
+ @Region = region
8258
+ @Abnormal = abnormal
8259
+ @ORTableId = ortableid
8260
+ @ORTableName = ortablename
8261
+ @Ohavips = ohavips
8262
+ end
8263
+
8264
+ def deserialize(params)
8265
+ @Id = params['Id']
8266
+ @SubnetId = params['SubnetId']
8267
+ @SubnetName = params['SubnetName']
8268
+ @SubnetCidr = params['SubnetCidr']
8269
+ @RouteId = params['RouteId']
8270
+ @RouteName = params['RouteName']
8271
+ @CvmNum = params['CvmNum']
8272
+ @VpcId = params['VpcId']
8273
+ @VpcName = params['VpcName']
8274
+ @Enable = params['Enable']
8275
+ @Status = params['Status']
8276
+ @NatId = params['NatId']
8277
+ @NatName = params['NatName']
8278
+ @NatInsId = params['NatInsId']
8279
+ @NatInsName = params['NatInsName']
8280
+ @Region = params['Region']
8281
+ @Abnormal = params['Abnormal']
8282
+ @ORTableId = params['ORTableId']
8283
+ @ORTableName = params['ORTableName']
8284
+ @Ohavips = params['Ohavips']
8285
+ end
8286
+ end
8287
+
7998
8288
  # 网络实例信息
7999
8289
  class NetInstancesInfo < TencentCloud::Common::AbstractModel
8000
8290
  # @param InstanceId: 网络实例ID
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.1145
4
+ version: 3.0.1173
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-23 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common