tencentcloud-sdk-csip 3.0.721 → 3.0.723
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/v20221121/client.rb +24 -0
- data/lib/v20221121/models.rb +236 -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: 99ac6f73d7887db90e63d496dd615cf3367fc7b5
|
4
|
+
data.tar.gz: 12d4d8880154a9072c0719ff759ad9269d2d3502
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8be75f9781dea177652d82b8a9d7c39c418e73295126950351f743b76af9ddcdbee171e27c580d80fad0b976979478cbc9052c6e94e393e8180c830f885f71
|
7
|
+
data.tar.gz: 699d7d497ee4a07371049f29cc4df711a46ab428771ca3a11c1eba25c2eba6e45673eabe08ab166eee7c03b7a3a61ade783b6b05e649a02977583b7fdf511d5f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.723
|
data/lib/v20221121/client.rb
CHANGED
@@ -293,6 +293,30 @@ module TencentCloud
|
|
293
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
294
|
end
|
295
295
|
|
296
|
+
# 获取网关列表
|
297
|
+
|
298
|
+
# @param request: Request instance for DescribeGatewayAssets.
|
299
|
+
# @type request: :class:`Tencentcloud::csip::V20221121::DescribeGatewayAssetsRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::csip::V20221121::DescribeGatewayAssetsResponse`
|
301
|
+
def DescribeGatewayAssets(request)
|
302
|
+
body = send_request('DescribeGatewayAssets', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DescribeGatewayAssetsResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
296
320
|
# 查询clb监听器列表
|
297
321
|
|
298
322
|
# @param request: Request instance for DescribeListenerList.
|
data/lib/v20221121/models.rb
CHANGED
@@ -2366,6 +2366,100 @@ module TencentCloud
|
|
2366
2366
|
end
|
2367
2367
|
end
|
2368
2368
|
|
2369
|
+
# DescribeGatewayAssets请求参数结构体
|
2370
|
+
class DescribeGatewayAssetsRequest < TencentCloud::Common::AbstractModel
|
2371
|
+
# @param Filter: 过滤参数
|
2372
|
+
# @type Filter: :class:`Tencentcloud::Csip.v20221121.models.Filter`
|
2373
|
+
|
2374
|
+
attr_accessor :Filter
|
2375
|
+
|
2376
|
+
def initialize(filter=nil)
|
2377
|
+
@Filter = filter
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
def deserialize(params)
|
2381
|
+
unless params['Filter'].nil?
|
2382
|
+
@Filter = Filter.new
|
2383
|
+
@Filter.deserialize(params['Filter'])
|
2384
|
+
end
|
2385
|
+
end
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
# DescribeGatewayAssets返回参数结构体
|
2389
|
+
class DescribeGatewayAssetsResponse < TencentCloud::Common::AbstractModel
|
2390
|
+
# @param Data: 列表
|
2391
|
+
# @type Data: Array
|
2392
|
+
# @param TotalCount: 总数
|
2393
|
+
# @type TotalCount: Integer
|
2394
|
+
# @param RegionList: 地域列表
|
2395
|
+
# @type RegionList: Array
|
2396
|
+
# @param AssetTypeList: 资产类型列表
|
2397
|
+
# @type AssetTypeList: Array
|
2398
|
+
# @param VpcList: vpc列表
|
2399
|
+
# @type VpcList: Array
|
2400
|
+
# @param AppIdList: appid列表
|
2401
|
+
# @type AppIdList: Array
|
2402
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2403
|
+
# @type RequestId: String
|
2404
|
+
|
2405
|
+
attr_accessor :Data, :TotalCount, :RegionList, :AssetTypeList, :VpcList, :AppIdList, :RequestId
|
2406
|
+
|
2407
|
+
def initialize(data=nil, totalcount=nil, regionlist=nil, assettypelist=nil, vpclist=nil, appidlist=nil, requestid=nil)
|
2408
|
+
@Data = data
|
2409
|
+
@TotalCount = totalcount
|
2410
|
+
@RegionList = regionlist
|
2411
|
+
@AssetTypeList = assettypelist
|
2412
|
+
@VpcList = vpclist
|
2413
|
+
@AppIdList = appidlist
|
2414
|
+
@RequestId = requestid
|
2415
|
+
end
|
2416
|
+
|
2417
|
+
def deserialize(params)
|
2418
|
+
unless params['Data'].nil?
|
2419
|
+
@Data = []
|
2420
|
+
params['Data'].each do |i|
|
2421
|
+
gatewayasset_tmp = GateWayAsset.new
|
2422
|
+
gatewayasset_tmp.deserialize(i)
|
2423
|
+
@Data << gatewayasset_tmp
|
2424
|
+
end
|
2425
|
+
end
|
2426
|
+
@TotalCount = params['TotalCount']
|
2427
|
+
unless params['RegionList'].nil?
|
2428
|
+
@RegionList = []
|
2429
|
+
params['RegionList'].each do |i|
|
2430
|
+
filterdataobject_tmp = FilterDataObject.new
|
2431
|
+
filterdataobject_tmp.deserialize(i)
|
2432
|
+
@RegionList << filterdataobject_tmp
|
2433
|
+
end
|
2434
|
+
end
|
2435
|
+
unless params['AssetTypeList'].nil?
|
2436
|
+
@AssetTypeList = []
|
2437
|
+
params['AssetTypeList'].each do |i|
|
2438
|
+
filterdataobject_tmp = FilterDataObject.new
|
2439
|
+
filterdataobject_tmp.deserialize(i)
|
2440
|
+
@AssetTypeList << filterdataobject_tmp
|
2441
|
+
end
|
2442
|
+
end
|
2443
|
+
unless params['VpcList'].nil?
|
2444
|
+
@VpcList = []
|
2445
|
+
params['VpcList'].each do |i|
|
2446
|
+
filterdataobject_tmp = FilterDataObject.new
|
2447
|
+
filterdataobject_tmp.deserialize(i)
|
2448
|
+
@VpcList << filterdataobject_tmp
|
2449
|
+
end
|
2450
|
+
end
|
2451
|
+
unless params['AppIdList'].nil?
|
2452
|
+
@AppIdList = []
|
2453
|
+
params['AppIdList'].each do |i|
|
2454
|
+
filterdataobject_tmp = FilterDataObject.new
|
2455
|
+
filterdataobject_tmp.deserialize(i)
|
2456
|
+
@AppIdList << filterdataobject_tmp
|
2457
|
+
end
|
2458
|
+
end
|
2459
|
+
@RequestId = params['RequestId']
|
2460
|
+
end
|
2461
|
+
end
|
2462
|
+
|
2369
2463
|
# DescribeListenerList请求参数结构体
|
2370
2464
|
class DescribeListenerListRequest < TencentCloud::Common::AbstractModel
|
2371
2465
|
# @param Filter: -
|
@@ -4256,6 +4350,148 @@ module TencentCloud
|
|
4256
4350
|
end
|
4257
4351
|
end
|
4258
4352
|
|
4353
|
+
# 网关资产
|
4354
|
+
class GateWayAsset < TencentCloud::Common::AbstractModel
|
4355
|
+
# @param AppId: appid
|
4356
|
+
# @type AppId: String
|
4357
|
+
# @param Uin: uin
|
4358
|
+
# @type Uin: String
|
4359
|
+
# @param AssetId: 资产ID
|
4360
|
+
# @type AssetId: String
|
4361
|
+
# @param AssetName: 资产名
|
4362
|
+
# @type AssetName: String
|
4363
|
+
# @param AssetType: 资产类型
|
4364
|
+
# @type AssetType: String
|
4365
|
+
# @param PrivateIp: 私有ip
|
4366
|
+
# @type PrivateIp: String
|
4367
|
+
# @param PublicIp: 公网ip
|
4368
|
+
# @type PublicIp: String
|
4369
|
+
# @param Region: 区域
|
4370
|
+
# @type Region: String
|
4371
|
+
# @param VpcId: 私有网络id
|
4372
|
+
# @type VpcId: String
|
4373
|
+
# @param VpcName: 私有网络名
|
4374
|
+
# @type VpcName: String
|
4375
|
+
# @param Tag: 标签
|
4376
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4377
|
+
# @type Tag: Array
|
4378
|
+
# @param OutboundPeakBandwidth: 出向峰值带宽
|
4379
|
+
# @type OutboundPeakBandwidth: String
|
4380
|
+
# @param InboundPeakBandwidth: 入向峰值带宽
|
4381
|
+
# @type InboundPeakBandwidth: String
|
4382
|
+
# @param OutboundCumulativeFlow: 出站累计流量
|
4383
|
+
# @type OutboundCumulativeFlow: String
|
4384
|
+
# @param InboundCumulativeFlow: 入站累计流量
|
4385
|
+
# @type InboundCumulativeFlow: String
|
4386
|
+
# @param NetworkAttack: 网络攻击
|
4387
|
+
# @type NetworkAttack: Integer
|
4388
|
+
# @param ExposedPort: 暴露端口
|
4389
|
+
# @type ExposedPort: Integer
|
4390
|
+
# @param ExposedVUL: 暴露漏洞
|
4391
|
+
# @type ExposedVUL: Integer
|
4392
|
+
# @param ConfigureRisk: 配置风险
|
4393
|
+
# @type ConfigureRisk: Integer
|
4394
|
+
# @param CreateTime: 创建时间
|
4395
|
+
# @type CreateTime: String
|
4396
|
+
# @param ScanTask: 任务数
|
4397
|
+
# @type ScanTask: Integer
|
4398
|
+
# @param LastScanTime: 最后扫描时间
|
4399
|
+
# @type LastScanTime: String
|
4400
|
+
# @param Nick: 昵称
|
4401
|
+
# @type Nick: String
|
4402
|
+
# @param AddressIPV6: ipv6地址
|
4403
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4404
|
+
# @type AddressIPV6: String
|
4405
|
+
# @param IsCore: 是否核心
|
4406
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4407
|
+
# @type IsCore: Integer
|
4408
|
+
# @param RiskExposure: 风险服务暴露
|
4409
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4410
|
+
# @type RiskExposure: Integer
|
4411
|
+
# @param IsNewAsset: 是否新资产 1新
|
4412
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4413
|
+
# @type IsNewAsset: Integer
|
4414
|
+
# @param Status: 网关状态
|
4415
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4416
|
+
# @type Status: String
|
4417
|
+
# @param EngineRegion: TSE的网关真实地域
|
4418
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4419
|
+
# @type EngineRegion: String
|
4420
|
+
|
4421
|
+
attr_accessor :AppId, :Uin, :AssetId, :AssetName, :AssetType, :PrivateIp, :PublicIp, :Region, :VpcId, :VpcName, :Tag, :OutboundPeakBandwidth, :InboundPeakBandwidth, :OutboundCumulativeFlow, :InboundCumulativeFlow, :NetworkAttack, :ExposedPort, :ExposedVUL, :ConfigureRisk, :CreateTime, :ScanTask, :LastScanTime, :Nick, :AddressIPV6, :IsCore, :RiskExposure, :IsNewAsset, :Status, :EngineRegion
|
4422
|
+
|
4423
|
+
def initialize(appid=nil, uin=nil, assetid=nil, assetname=nil, assettype=nil, privateip=nil, publicip=nil, region=nil, vpcid=nil, vpcname=nil, tag=nil, outboundpeakbandwidth=nil, inboundpeakbandwidth=nil, outboundcumulativeflow=nil, inboundcumulativeflow=nil, networkattack=nil, exposedport=nil, exposedvul=nil, configurerisk=nil, createtime=nil, scantask=nil, lastscantime=nil, nick=nil, addressipv6=nil, iscore=nil, riskexposure=nil, isnewasset=nil, status=nil, engineregion=nil)
|
4424
|
+
@AppId = appid
|
4425
|
+
@Uin = uin
|
4426
|
+
@AssetId = assetid
|
4427
|
+
@AssetName = assetname
|
4428
|
+
@AssetType = assettype
|
4429
|
+
@PrivateIp = privateip
|
4430
|
+
@PublicIp = publicip
|
4431
|
+
@Region = region
|
4432
|
+
@VpcId = vpcid
|
4433
|
+
@VpcName = vpcname
|
4434
|
+
@Tag = tag
|
4435
|
+
@OutboundPeakBandwidth = outboundpeakbandwidth
|
4436
|
+
@InboundPeakBandwidth = inboundpeakbandwidth
|
4437
|
+
@OutboundCumulativeFlow = outboundcumulativeflow
|
4438
|
+
@InboundCumulativeFlow = inboundcumulativeflow
|
4439
|
+
@NetworkAttack = networkattack
|
4440
|
+
@ExposedPort = exposedport
|
4441
|
+
@ExposedVUL = exposedvul
|
4442
|
+
@ConfigureRisk = configurerisk
|
4443
|
+
@CreateTime = createtime
|
4444
|
+
@ScanTask = scantask
|
4445
|
+
@LastScanTime = lastscantime
|
4446
|
+
@Nick = nick
|
4447
|
+
@AddressIPV6 = addressipv6
|
4448
|
+
@IsCore = iscore
|
4449
|
+
@RiskExposure = riskexposure
|
4450
|
+
@IsNewAsset = isnewasset
|
4451
|
+
@Status = status
|
4452
|
+
@EngineRegion = engineregion
|
4453
|
+
end
|
4454
|
+
|
4455
|
+
def deserialize(params)
|
4456
|
+
@AppId = params['AppId']
|
4457
|
+
@Uin = params['Uin']
|
4458
|
+
@AssetId = params['AssetId']
|
4459
|
+
@AssetName = params['AssetName']
|
4460
|
+
@AssetType = params['AssetType']
|
4461
|
+
@PrivateIp = params['PrivateIp']
|
4462
|
+
@PublicIp = params['PublicIp']
|
4463
|
+
@Region = params['Region']
|
4464
|
+
@VpcId = params['VpcId']
|
4465
|
+
@VpcName = params['VpcName']
|
4466
|
+
unless params['Tag'].nil?
|
4467
|
+
@Tag = []
|
4468
|
+
params['Tag'].each do |i|
|
4469
|
+
tag_tmp = Tag.new
|
4470
|
+
tag_tmp.deserialize(i)
|
4471
|
+
@Tag << tag_tmp
|
4472
|
+
end
|
4473
|
+
end
|
4474
|
+
@OutboundPeakBandwidth = params['OutboundPeakBandwidth']
|
4475
|
+
@InboundPeakBandwidth = params['InboundPeakBandwidth']
|
4476
|
+
@OutboundCumulativeFlow = params['OutboundCumulativeFlow']
|
4477
|
+
@InboundCumulativeFlow = params['InboundCumulativeFlow']
|
4478
|
+
@NetworkAttack = params['NetworkAttack']
|
4479
|
+
@ExposedPort = params['ExposedPort']
|
4480
|
+
@ExposedVUL = params['ExposedVUL']
|
4481
|
+
@ConfigureRisk = params['ConfigureRisk']
|
4482
|
+
@CreateTime = params['CreateTime']
|
4483
|
+
@ScanTask = params['ScanTask']
|
4484
|
+
@LastScanTime = params['LastScanTime']
|
4485
|
+
@Nick = params['Nick']
|
4486
|
+
@AddressIPV6 = params['AddressIPV6']
|
4487
|
+
@IsCore = params['IsCore']
|
4488
|
+
@RiskExposure = params['RiskExposure']
|
4489
|
+
@IsNewAsset = params['IsNewAsset']
|
4490
|
+
@Status = params['Status']
|
4491
|
+
@EngineRegion = params['EngineRegion']
|
4492
|
+
end
|
4493
|
+
end
|
4494
|
+
|
4259
4495
|
# ip列表
|
4260
4496
|
class IpAssetListVO < TencentCloud::Common::AbstractModel
|
4261
4497
|
# @param AssetId: 资产id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-csip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.723
|
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-12-
|
11
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|