tencentcloud-sdk-csip 3.0.723 → 3.0.725

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99ac6f73d7887db90e63d496dd615cf3367fc7b5
4
- data.tar.gz: 12d4d8880154a9072c0719ff759ad9269d2d3502
3
+ metadata.gz: 1f3195f3cb28c9146f1a4d1ead46dcf35133f48b
4
+ data.tar.gz: a9d55c886d762845852886fbaf321248d75fd4d2
5
5
  SHA512:
6
- metadata.gz: 5b8be75f9781dea177652d82b8a9d7c39c418e73295126950351f743b76af9ddcdbee171e27c580d80fad0b976979478cbc9052c6e94e393e8180c830f885f71
7
- data.tar.gz: 699d7d497ee4a07371049f29cc4df711a46ab428771ca3a11c1eba25c2eba6e45673eabe08ab166eee7c03b7a3a61ade783b6b05e649a02977583b7fdf511d5f
6
+ metadata.gz: 182793b5a3ac660ddd453c6ef8e2e47bef2b1d291dff0a30e60a523210f78dfd388659ec3936ba7bfb66fe2702c7e5ed58c6a075958ffe532f15bbc6224dbf3d
7
+ data.tar.gz: 4ef81a47c333a78e309734646481860509f5d40d64a16475c687228ba7bdacea3d29f9b4e1f8409d6903b30a84d8990ede71b4492908900829ece49bdd90b4fa
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.723
1
+ 3.0.725
@@ -341,6 +341,30 @@ module TencentCloud
341
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
342
  end
343
343
 
344
+ # 获取网卡列表
345
+
346
+ # @param request: Request instance for DescribeNICAssets.
347
+ # @type request: :class:`Tencentcloud::csip::V20221121::DescribeNICAssetsRequest`
348
+ # @rtype: :class:`Tencentcloud::csip::V20221121::DescribeNICAssetsResponse`
349
+ def DescribeNICAssets(request)
350
+ body = send_request('DescribeNICAssets', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeNICAssetsResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
344
368
  # ip公网列表
345
369
 
346
370
  # @param request: Request instance for DescribePublicIpAssets.
@@ -2512,6 +2512,100 @@ module TencentCloud
2512
2512
  end
2513
2513
  end
2514
2514
 
2515
+ # DescribeNICAssets请求参数结构体
2516
+ class DescribeNICAssetsRequest < TencentCloud::Common::AbstractModel
2517
+ # @param Filter: 过滤参数
2518
+ # @type Filter: :class:`Tencentcloud::Csip.v20221121.models.Filter`
2519
+
2520
+ attr_accessor :Filter
2521
+
2522
+ def initialize(filter=nil)
2523
+ @Filter = filter
2524
+ end
2525
+
2526
+ def deserialize(params)
2527
+ unless params['Filter'].nil?
2528
+ @Filter = Filter.new
2529
+ @Filter.deserialize(params['Filter'])
2530
+ end
2531
+ end
2532
+ end
2533
+
2534
+ # DescribeNICAssets返回参数结构体
2535
+ class DescribeNICAssetsResponse < TencentCloud::Common::AbstractModel
2536
+ # @param Data: 列表
2537
+ # @type Data: Array
2538
+ # @param TotalCount: 总数
2539
+ # @type TotalCount: Integer
2540
+ # @param RegionList: 地域列表
2541
+ # @type RegionList: Array
2542
+ # @param AssetTypeList: 资产类型列表
2543
+ # @type AssetTypeList: Array
2544
+ # @param VpcList: vpc列表
2545
+ # @type VpcList: Array
2546
+ # @param AppIdList: appid列表
2547
+ # @type AppIdList: Array
2548
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2549
+ # @type RequestId: String
2550
+
2551
+ attr_accessor :Data, :TotalCount, :RegionList, :AssetTypeList, :VpcList, :AppIdList, :RequestId
2552
+
2553
+ def initialize(data=nil, totalcount=nil, regionlist=nil, assettypelist=nil, vpclist=nil, appidlist=nil, requestid=nil)
2554
+ @Data = data
2555
+ @TotalCount = totalcount
2556
+ @RegionList = regionlist
2557
+ @AssetTypeList = assettypelist
2558
+ @VpcList = vpclist
2559
+ @AppIdList = appidlist
2560
+ @RequestId = requestid
2561
+ end
2562
+
2563
+ def deserialize(params)
2564
+ unless params['Data'].nil?
2565
+ @Data = []
2566
+ params['Data'].each do |i|
2567
+ nicasset_tmp = NICAsset.new
2568
+ nicasset_tmp.deserialize(i)
2569
+ @Data << nicasset_tmp
2570
+ end
2571
+ end
2572
+ @TotalCount = params['TotalCount']
2573
+ unless params['RegionList'].nil?
2574
+ @RegionList = []
2575
+ params['RegionList'].each do |i|
2576
+ filterdataobject_tmp = FilterDataObject.new
2577
+ filterdataobject_tmp.deserialize(i)
2578
+ @RegionList << filterdataobject_tmp
2579
+ end
2580
+ end
2581
+ unless params['AssetTypeList'].nil?
2582
+ @AssetTypeList = []
2583
+ params['AssetTypeList'].each do |i|
2584
+ filterdataobject_tmp = FilterDataObject.new
2585
+ filterdataobject_tmp.deserialize(i)
2586
+ @AssetTypeList << filterdataobject_tmp
2587
+ end
2588
+ end
2589
+ unless params['VpcList'].nil?
2590
+ @VpcList = []
2591
+ params['VpcList'].each do |i|
2592
+ filterdataobject_tmp = FilterDataObject.new
2593
+ filterdataobject_tmp.deserialize(i)
2594
+ @VpcList << filterdataobject_tmp
2595
+ end
2596
+ end
2597
+ unless params['AppIdList'].nil?
2598
+ @AppIdList = []
2599
+ params['AppIdList'].each do |i|
2600
+ filterdataobject_tmp = FilterDataObject.new
2601
+ filterdataobject_tmp.deserialize(i)
2602
+ @AppIdList << filterdataobject_tmp
2603
+ end
2604
+ end
2605
+ @RequestId = params['RequestId']
2606
+ end
2607
+ end
2608
+
2515
2609
  # DescribePublicIpAssets请求参数结构体
2516
2610
  class DescribePublicIpAssetsRequest < TencentCloud::Common::AbstractModel
2517
2611
  # @param Filter: filte过滤条件
@@ -4733,6 +4827,128 @@ module TencentCloud
4733
4827
  end
4734
4828
  end
4735
4829
 
4830
+ # 网卡资产
4831
+ class NICAsset < TencentCloud::Common::AbstractModel
4832
+ # @param AppId: appid
4833
+ # @type AppId: String
4834
+ # @param Uin: uin
4835
+ # @type Uin: String
4836
+ # @param AssetId: 资产ID
4837
+ # @type AssetId: String
4838
+ # @param AssetName: 资产名
4839
+ # @type AssetName: String
4840
+ # @param AssetType: 资产类型
4841
+ # @type AssetType: String
4842
+ # @param PrivateIp: 私有ip
4843
+ # @type PrivateIp: String
4844
+ # @param PublicIp: 公网ip
4845
+ # @type PublicIp: String
4846
+ # @param Region: 区域
4847
+ # @type Region: String
4848
+ # @param VpcId: 私有网络id
4849
+ # @type VpcId: String
4850
+ # @param VpcName: 私有网络名
4851
+ # @type VpcName: String
4852
+ # @param Tag: 标签
4853
+ # 注意:此字段可能返回 null,表示取不到有效值。
4854
+ # @type Tag: Array
4855
+ # @param OutboundPeakBandwidth: 出向峰值带宽
4856
+ # @type OutboundPeakBandwidth: String
4857
+ # @param InboundPeakBandwidth: 入向峰值带宽
4858
+ # @type InboundPeakBandwidth: String
4859
+ # @param OutboundCumulativeFlow: 出站累计流量
4860
+ # @type OutboundCumulativeFlow: String
4861
+ # @param InboundCumulativeFlow: 入站累计流量
4862
+ # @type InboundCumulativeFlow: String
4863
+ # @param NetworkAttack: 网络攻击
4864
+ # @type NetworkAttack: Integer
4865
+ # @param ExposedPort: 暴露端口
4866
+ # @type ExposedPort: Integer
4867
+ # @param ExposedVUL: 暴露漏洞
4868
+ # @type ExposedVUL: Integer
4869
+ # @param ConfigureRisk: 配置风险
4870
+ # @type ConfigureRisk: Integer
4871
+ # @param CreateTime: 创建时间
4872
+ # @type CreateTime: String
4873
+ # @param ScanTask: 任务数
4874
+ # @type ScanTask: Integer
4875
+ # @param LastScanTime: 最后扫描时间
4876
+ # @type LastScanTime: String
4877
+ # @param Nick: 昵称
4878
+ # @type Nick: String
4879
+ # @param IsCore: 是否核心
4880
+ # 注意:此字段可能返回 null,表示取不到有效值。
4881
+ # @type IsCore: Integer
4882
+ # @param IsNewAsset: 是否新资产 1新
4883
+ # 注意:此字段可能返回 null,表示取不到有效值。
4884
+ # @type IsNewAsset: Integer
4885
+
4886
+ 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, :IsCore, :IsNewAsset
4887
+
4888
+ 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, iscore=nil, isnewasset=nil)
4889
+ @AppId = appid
4890
+ @Uin = uin
4891
+ @AssetId = assetid
4892
+ @AssetName = assetname
4893
+ @AssetType = assettype
4894
+ @PrivateIp = privateip
4895
+ @PublicIp = publicip
4896
+ @Region = region
4897
+ @VpcId = vpcid
4898
+ @VpcName = vpcname
4899
+ @Tag = tag
4900
+ @OutboundPeakBandwidth = outboundpeakbandwidth
4901
+ @InboundPeakBandwidth = inboundpeakbandwidth
4902
+ @OutboundCumulativeFlow = outboundcumulativeflow
4903
+ @InboundCumulativeFlow = inboundcumulativeflow
4904
+ @NetworkAttack = networkattack
4905
+ @ExposedPort = exposedport
4906
+ @ExposedVUL = exposedvul
4907
+ @ConfigureRisk = configurerisk
4908
+ @CreateTime = createtime
4909
+ @ScanTask = scantask
4910
+ @LastScanTime = lastscantime
4911
+ @Nick = nick
4912
+ @IsCore = iscore
4913
+ @IsNewAsset = isnewasset
4914
+ end
4915
+
4916
+ def deserialize(params)
4917
+ @AppId = params['AppId']
4918
+ @Uin = params['Uin']
4919
+ @AssetId = params['AssetId']
4920
+ @AssetName = params['AssetName']
4921
+ @AssetType = params['AssetType']
4922
+ @PrivateIp = params['PrivateIp']
4923
+ @PublicIp = params['PublicIp']
4924
+ @Region = params['Region']
4925
+ @VpcId = params['VpcId']
4926
+ @VpcName = params['VpcName']
4927
+ unless params['Tag'].nil?
4928
+ @Tag = []
4929
+ params['Tag'].each do |i|
4930
+ tag_tmp = Tag.new
4931
+ tag_tmp.deserialize(i)
4932
+ @Tag << tag_tmp
4933
+ end
4934
+ end
4935
+ @OutboundPeakBandwidth = params['OutboundPeakBandwidth']
4936
+ @InboundPeakBandwidth = params['InboundPeakBandwidth']
4937
+ @OutboundCumulativeFlow = params['OutboundCumulativeFlow']
4938
+ @InboundCumulativeFlow = params['InboundCumulativeFlow']
4939
+ @NetworkAttack = params['NetworkAttack']
4940
+ @ExposedPort = params['ExposedPort']
4941
+ @ExposedVUL = params['ExposedVUL']
4942
+ @ConfigureRisk = params['ConfigureRisk']
4943
+ @CreateTime = params['CreateTime']
4944
+ @ScanTask = params['ScanTask']
4945
+ @LastScanTime = params['LastScanTime']
4946
+ @Nick = params['Nick']
4947
+ @IsCore = params['IsCore']
4948
+ @IsNewAsset = params['IsNewAsset']
4949
+ end
4950
+ end
4951
+
4736
4952
  # 端口视角的端口风险对象
4737
4953
  class PortViewPortRisk < TencentCloud::Common::AbstractModel
4738
4954
  # @param NoHandleCount: 影响资产
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.723
4
+ version: 3.0.725
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-07 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common