tencentcloud-sdk-csip 3.0.1073 → 3.0.1082
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 +247 -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: 1047f8200dc07c3614fd154cc09cab7429076cc8
|
4
|
+
data.tar.gz: ce3b4a476f05841995f535e9f11fa9cddd9c52c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43bd8692f6ee8f1de4a203d988a1df8d216a60164bc61f9de28aaed5549cc98fa4b1d3f238e9cfb3ad060b8e033c7d844e230b95490c21c48f5f508a66dabc9
|
7
|
+
data.tar.gz: e2b0fe67bd26470b6ecccd49ec6b49c69bf9ca1ec303fa15ecaaf733ad87ca3ad9e55ed1eac5fec6c29d6f8110427dddef63307dddf63faf2739572f1a624d47
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1082
|
data/lib/v20221121/client.rb
CHANGED
@@ -389,6 +389,30 @@ module TencentCloud
|
|
389
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
390
|
end
|
391
391
|
|
392
|
+
# 互联网暴露资产列表
|
393
|
+
|
394
|
+
# @param request: Request instance for DescribeExposures.
|
395
|
+
# @type request: :class:`Tencentcloud::csip::V20221121::DescribeExposuresRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::csip::V20221121::DescribeExposuresResponse`
|
397
|
+
def DescribeExposures(request)
|
398
|
+
body = send_request('DescribeExposures', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DescribeExposuresResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
392
416
|
# 获取网关列表
|
393
417
|
|
394
418
|
# @param request: Request instance for DescribeGatewayAssets.
|
data/lib/v20221121/models.rb
CHANGED
@@ -3671,6 +3671,80 @@ module TencentCloud
|
|
3671
3671
|
end
|
3672
3672
|
end
|
3673
3673
|
|
3674
|
+
# DescribeExposures请求参数结构体
|
3675
|
+
class DescribeExposuresRequest < TencentCloud::Common::AbstractModel
|
3676
|
+
# @param MemberId: 集团账号的成员id
|
3677
|
+
# @type MemberId: Array
|
3678
|
+
# @param Filters: 过滤内容
|
3679
|
+
# @type Filters: Array
|
3680
|
+
# @param Limit: 分页大小
|
3681
|
+
# @type Limit: Integer
|
3682
|
+
# @param Offset: 偏移量
|
3683
|
+
# @type Offset: Integer
|
3684
|
+
# @param Order: 排序类型
|
3685
|
+
# @type Order: String
|
3686
|
+
# @param By: 排序字段
|
3687
|
+
# @type By: String
|
3688
|
+
|
3689
|
+
attr_accessor :MemberId, :Filters, :Limit, :Offset, :Order, :By
|
3690
|
+
|
3691
|
+
def initialize(memberid=nil, filters=nil, limit=nil, offset=nil, order=nil, by=nil)
|
3692
|
+
@MemberId = memberid
|
3693
|
+
@Filters = filters
|
3694
|
+
@Limit = limit
|
3695
|
+
@Offset = offset
|
3696
|
+
@Order = order
|
3697
|
+
@By = by
|
3698
|
+
end
|
3699
|
+
|
3700
|
+
def deserialize(params)
|
3701
|
+
@MemberId = params['MemberId']
|
3702
|
+
unless params['Filters'].nil?
|
3703
|
+
@Filters = []
|
3704
|
+
params['Filters'].each do |i|
|
3705
|
+
filters_tmp = Filters.new
|
3706
|
+
filters_tmp.deserialize(i)
|
3707
|
+
@Filters << filters_tmp
|
3708
|
+
end
|
3709
|
+
end
|
3710
|
+
@Limit = params['Limit']
|
3711
|
+
@Offset = params['Offset']
|
3712
|
+
@Order = params['Order']
|
3713
|
+
@By = params['By']
|
3714
|
+
end
|
3715
|
+
end
|
3716
|
+
|
3717
|
+
# DescribeExposures返回参数结构体
|
3718
|
+
class DescribeExposuresResponse < TencentCloud::Common::AbstractModel
|
3719
|
+
# @param TotalCount: 互联网暴露资产数量
|
3720
|
+
# @type TotalCount: Integer
|
3721
|
+
# @param ExposeList: 互联网暴露资产列表
|
3722
|
+
# @type ExposeList: Array
|
3723
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3724
|
+
# @type RequestId: String
|
3725
|
+
|
3726
|
+
attr_accessor :TotalCount, :ExposeList, :RequestId
|
3727
|
+
|
3728
|
+
def initialize(totalcount=nil, exposelist=nil, requestid=nil)
|
3729
|
+
@TotalCount = totalcount
|
3730
|
+
@ExposeList = exposelist
|
3731
|
+
@RequestId = requestid
|
3732
|
+
end
|
3733
|
+
|
3734
|
+
def deserialize(params)
|
3735
|
+
@TotalCount = params['TotalCount']
|
3736
|
+
unless params['ExposeList'].nil?
|
3737
|
+
@ExposeList = []
|
3738
|
+
params['ExposeList'].each do |i|
|
3739
|
+
exposesitem_tmp = ExposesItem.new
|
3740
|
+
exposesitem_tmp.deserialize(i)
|
3741
|
+
@ExposeList << exposesitem_tmp
|
3742
|
+
end
|
3743
|
+
end
|
3744
|
+
@RequestId = params['RequestId']
|
3745
|
+
end
|
3746
|
+
end
|
3747
|
+
|
3674
3748
|
# DescribeGatewayAssets请求参数结构体
|
3675
3749
|
class DescribeGatewayAssetsRequest < TencentCloud::Common::AbstractModel
|
3676
3750
|
# @param MemberId: 集团账号的成员id
|
@@ -5547,21 +5621,41 @@ module TencentCloud
|
|
5547
5621
|
|
5548
5622
|
# DescribeTopAttackInfo请求参数结构体
|
5549
5623
|
class DescribeTopAttackInfoRequest < TencentCloud::Common::AbstractModel
|
5624
|
+
# @param StartTime: 起始时间
|
5625
|
+
# @type StartTime: String
|
5626
|
+
# @param EndTime: 结束时间
|
5627
|
+
# @type EndTime: String
|
5628
|
+
# @param QueryType: 1:攻击类型 2:攻击者
|
5629
|
+
# @type QueryType: Integer
|
5550
5630
|
# @param MemberId: 集团账号的成员id
|
5551
5631
|
# @type MemberId: Array
|
5552
5632
|
# @param OperatedMemberId: 被调用的集团账号的成员id
|
5553
5633
|
# @type OperatedMemberId: Array
|
5634
|
+
# @param AssetName: 资产名称
|
5635
|
+
# @type AssetName: String
|
5636
|
+
# @param AssetType: 0: 默认全部 1:资产ID 2:域名
|
5637
|
+
# @type AssetType: Integer
|
5554
5638
|
|
5555
|
-
attr_accessor :MemberId, :OperatedMemberId
|
5639
|
+
attr_accessor :StartTime, :EndTime, :QueryType, :MemberId, :OperatedMemberId, :AssetName, :AssetType
|
5556
5640
|
|
5557
|
-
def initialize(memberid=nil, operatedmemberid=nil)
|
5641
|
+
def initialize(starttime=nil, endtime=nil, querytype=nil, memberid=nil, operatedmemberid=nil, assetname=nil, assettype=nil)
|
5642
|
+
@StartTime = starttime
|
5643
|
+
@EndTime = endtime
|
5644
|
+
@QueryType = querytype
|
5558
5645
|
@MemberId = memberid
|
5559
5646
|
@OperatedMemberId = operatedmemberid
|
5647
|
+
@AssetName = assetname
|
5648
|
+
@AssetType = assettype
|
5560
5649
|
end
|
5561
5650
|
|
5562
5651
|
def deserialize(params)
|
5652
|
+
@StartTime = params['StartTime']
|
5653
|
+
@EndTime = params['EndTime']
|
5654
|
+
@QueryType = params['QueryType']
|
5563
5655
|
@MemberId = params['MemberId']
|
5564
5656
|
@OperatedMemberId = params['OperatedMemberId']
|
5657
|
+
@AssetName = params['AssetName']
|
5658
|
+
@AssetType = params['AssetType']
|
5565
5659
|
end
|
5566
5660
|
end
|
5567
5661
|
|
@@ -6227,6 +6321,130 @@ module TencentCloud
|
|
6227
6321
|
end
|
6228
6322
|
end
|
6229
6323
|
|
6324
|
+
# 暴露资产
|
6325
|
+
class ExposesItem < TencentCloud::Common::AbstractModel
|
6326
|
+
# @param Provider: 云厂商
|
6327
|
+
# @type Provider: String
|
6328
|
+
# @param CloudAccountName: 云账号名称
|
6329
|
+
# @type CloudAccountName: String
|
6330
|
+
# @param CloudAccountId: 云账号
|
6331
|
+
# @type CloudAccountId: String
|
6332
|
+
# @param Domain: 域名
|
6333
|
+
# @type Domain: String
|
6334
|
+
# @param Ip: IP
|
6335
|
+
# @type Ip: String
|
6336
|
+
# @param Port: 端口或者端口范围
|
6337
|
+
# @type Port: String
|
6338
|
+
# @param Status: 开放
|
6339
|
+
# @type Status: String
|
6340
|
+
# @param RiskType: 风险类型
|
6341
|
+
# @type RiskType: String
|
6342
|
+
# @param AclType: acl类型
|
6343
|
+
# @type AclType: String
|
6344
|
+
# @param AclList: acl列表
|
6345
|
+
# @type AclList: String
|
6346
|
+
# @param AssetId: 资产ID
|
6347
|
+
# @type AssetId: String
|
6348
|
+
# @param InstanceName: 实例名称
|
6349
|
+
# @type InstanceName: String
|
6350
|
+
# @param AssetType: 资产类型
|
6351
|
+
# @type AssetType: String
|
6352
|
+
# @param PortServiceCount: 端口服务数量
|
6353
|
+
# @type PortServiceCount: Integer
|
6354
|
+
# @param HighRiskPortServiceCount: 高危端口数量
|
6355
|
+
# @type HighRiskPortServiceCount: Integer
|
6356
|
+
# @param WebAppCount: web应用数量
|
6357
|
+
# @type WebAppCount: Integer
|
6358
|
+
# @param RiskWebAppCount: 有风险web应用数量
|
6359
|
+
# @type RiskWebAppCount: Integer
|
6360
|
+
# @param WeakPasswordCount: 弱口令数量
|
6361
|
+
# @type WeakPasswordCount: Integer
|
6362
|
+
# @param VulCount: 漏洞数量
|
6363
|
+
# @type VulCount: Integer
|
6364
|
+
# @param CreateTime: 首次发现时间
|
6365
|
+
# @type CreateTime: String
|
6366
|
+
# @param UpdateTime: 最近更新时间
|
6367
|
+
# @type UpdateTime: String
|
6368
|
+
# @param AssetTypeName: 实例类型名称
|
6369
|
+
# @type AssetTypeName: String
|
6370
|
+
# @param DisplayStatus: 开放状态
|
6371
|
+
# @type DisplayStatus: String
|
6372
|
+
# @param DisplayRiskType: 端口状态
|
6373
|
+
# @type DisplayRiskType: String
|
6374
|
+
# @param ScanTaskStatus: 扫描任务状态
|
6375
|
+
# @type ScanTaskStatus: String
|
6376
|
+
# @param Uuid: uuid
|
6377
|
+
# @type Uuid: String
|
6378
|
+
# @param HasScan: 是否进行过安全体检
|
6379
|
+
# @type HasScan: String
|
6380
|
+
# @param AppId: 租户ID
|
6381
|
+
# @type AppId: Integer
|
6382
|
+
|
6383
|
+
attr_accessor :Provider, :CloudAccountName, :CloudAccountId, :Domain, :Ip, :Port, :Status, :RiskType, :AclType, :AclList, :AssetId, :InstanceName, :AssetType, :PortServiceCount, :HighRiskPortServiceCount, :WebAppCount, :RiskWebAppCount, :WeakPasswordCount, :VulCount, :CreateTime, :UpdateTime, :AssetTypeName, :DisplayStatus, :DisplayRiskType, :ScanTaskStatus, :Uuid, :HasScan, :AppId
|
6384
|
+
|
6385
|
+
def initialize(provider=nil, cloudaccountname=nil, cloudaccountid=nil, domain=nil, ip=nil, port=nil, status=nil, risktype=nil, acltype=nil, acllist=nil, assetid=nil, instancename=nil, assettype=nil, portservicecount=nil, highriskportservicecount=nil, webappcount=nil, riskwebappcount=nil, weakpasswordcount=nil, vulcount=nil, createtime=nil, updatetime=nil, assettypename=nil, displaystatus=nil, displayrisktype=nil, scantaskstatus=nil, uuid=nil, hasscan=nil, appid=nil)
|
6386
|
+
@Provider = provider
|
6387
|
+
@CloudAccountName = cloudaccountname
|
6388
|
+
@CloudAccountId = cloudaccountid
|
6389
|
+
@Domain = domain
|
6390
|
+
@Ip = ip
|
6391
|
+
@Port = port
|
6392
|
+
@Status = status
|
6393
|
+
@RiskType = risktype
|
6394
|
+
@AclType = acltype
|
6395
|
+
@AclList = acllist
|
6396
|
+
@AssetId = assetid
|
6397
|
+
@InstanceName = instancename
|
6398
|
+
@AssetType = assettype
|
6399
|
+
@PortServiceCount = portservicecount
|
6400
|
+
@HighRiskPortServiceCount = highriskportservicecount
|
6401
|
+
@WebAppCount = webappcount
|
6402
|
+
@RiskWebAppCount = riskwebappcount
|
6403
|
+
@WeakPasswordCount = weakpasswordcount
|
6404
|
+
@VulCount = vulcount
|
6405
|
+
@CreateTime = createtime
|
6406
|
+
@UpdateTime = updatetime
|
6407
|
+
@AssetTypeName = assettypename
|
6408
|
+
@DisplayStatus = displaystatus
|
6409
|
+
@DisplayRiskType = displayrisktype
|
6410
|
+
@ScanTaskStatus = scantaskstatus
|
6411
|
+
@Uuid = uuid
|
6412
|
+
@HasScan = hasscan
|
6413
|
+
@AppId = appid
|
6414
|
+
end
|
6415
|
+
|
6416
|
+
def deserialize(params)
|
6417
|
+
@Provider = params['Provider']
|
6418
|
+
@CloudAccountName = params['CloudAccountName']
|
6419
|
+
@CloudAccountId = params['CloudAccountId']
|
6420
|
+
@Domain = params['Domain']
|
6421
|
+
@Ip = params['Ip']
|
6422
|
+
@Port = params['Port']
|
6423
|
+
@Status = params['Status']
|
6424
|
+
@RiskType = params['RiskType']
|
6425
|
+
@AclType = params['AclType']
|
6426
|
+
@AclList = params['AclList']
|
6427
|
+
@AssetId = params['AssetId']
|
6428
|
+
@InstanceName = params['InstanceName']
|
6429
|
+
@AssetType = params['AssetType']
|
6430
|
+
@PortServiceCount = params['PortServiceCount']
|
6431
|
+
@HighRiskPortServiceCount = params['HighRiskPortServiceCount']
|
6432
|
+
@WebAppCount = params['WebAppCount']
|
6433
|
+
@RiskWebAppCount = params['RiskWebAppCount']
|
6434
|
+
@WeakPasswordCount = params['WeakPasswordCount']
|
6435
|
+
@VulCount = params['VulCount']
|
6436
|
+
@CreateTime = params['CreateTime']
|
6437
|
+
@UpdateTime = params['UpdateTime']
|
6438
|
+
@AssetTypeName = params['AssetTypeName']
|
6439
|
+
@DisplayStatus = params['DisplayStatus']
|
6440
|
+
@DisplayRiskType = params['DisplayRiskType']
|
6441
|
+
@ScanTaskStatus = params['ScanTaskStatus']
|
6442
|
+
@Uuid = params['Uuid']
|
6443
|
+
@HasScan = params['HasScan']
|
6444
|
+
@AppId = params['AppId']
|
6445
|
+
end
|
6446
|
+
end
|
6447
|
+
|
6230
6448
|
# 列表查询接口采用新filter 接口,直接传给后台供后台查询过滤
|
6231
6449
|
class Filter < TencentCloud::Common::AbstractModel
|
6232
6450
|
# @param Limit: 查询数量限制
|
@@ -6294,6 +6512,33 @@ module TencentCloud
|
|
6294
6512
|
end
|
6295
6513
|
end
|
6296
6514
|
|
6515
|
+
# filter过滤条件
|
6516
|
+
class Filters < TencentCloud::Common::AbstractModel
|
6517
|
+
# @param Name: 无
|
6518
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6519
|
+
# @type Name: String
|
6520
|
+
# @param Values: 无
|
6521
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6522
|
+
# @type Values: Array
|
6523
|
+
# @param ExactMatch: 模糊匹配
|
6524
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6525
|
+
# @type ExactMatch: String
|
6526
|
+
|
6527
|
+
attr_accessor :Name, :Values, :ExactMatch
|
6528
|
+
|
6529
|
+
def initialize(name=nil, values=nil, exactmatch=nil)
|
6530
|
+
@Name = name
|
6531
|
+
@Values = values
|
6532
|
+
@ExactMatch = exactmatch
|
6533
|
+
end
|
6534
|
+
|
6535
|
+
def deserialize(params)
|
6536
|
+
@Name = params['Name']
|
6537
|
+
@Values = params['Values']
|
6538
|
+
@ExactMatch = params['ExactMatch']
|
6539
|
+
end
|
6540
|
+
end
|
6541
|
+
|
6297
6542
|
# 网关资产
|
6298
6543
|
class GateWayAsset < TencentCloud::Common::AbstractModel
|
6299
6544
|
# @param AppId: appid
|
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.1082
|
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-06-
|
11
|
+
date: 2025-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|