tencentcloud-sdk-csip 3.0.753 → 3.0.754
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20221121/client.rb +24 -0
- data/lib/v20221121/models.rb +90 -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: ae032623df2f8b899e6aabda645c33883092365f
|
4
|
+
data.tar.gz: ff4f3dbc53516a6ea041c7a6e5d37ecd4e7132d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef3e612e877240c4304e2d552e112705cebc601cf4ad42d45a659dceadd83a43face97dcafa2f77a3b65ac7a109eb0eed3d0c70061c7f156d1d23e9c753d21a
|
7
|
+
data.tar.gz: dc34ff033d386fba6e8d8a4dfea3088b13d3344d4cbf6c363e2d87268ebc9a265a63203c1da45939afc44112a7f7f7ad61678c0a1df36bd77c6615b6fce679ea
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.754
|
data/lib/v20221121/client.rb
CHANGED
@@ -845,6 +845,30 @@ module TencentCloud
|
|
845
845
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
846
|
end
|
847
847
|
|
848
|
+
# 修改风险中心扫描任务
|
849
|
+
|
850
|
+
# @param request: Request instance for ModifyRiskCenterScanTask.
|
851
|
+
# @type request: :class:`Tencentcloud::csip::V20221121::ModifyRiskCenterScanTaskRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::csip::V20221121::ModifyRiskCenterScanTaskResponse`
|
853
|
+
def ModifyRiskCenterScanTask(request)
|
854
|
+
body = send_request('ModifyRiskCenterScanTask', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = ModifyRiskCenterScanTaskResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
848
872
|
# 停止扫风险中心扫描任务
|
849
873
|
|
850
874
|
# @param request: Request instance for StopRiskCenterTask.
|
data/lib/v20221121/models.rb
CHANGED
@@ -4939,6 +4939,96 @@ module TencentCloud
|
|
4939
4939
|
end
|
4940
4940
|
end
|
4941
4941
|
|
4942
|
+
# ModifyRiskCenterScanTask请求参数结构体
|
4943
|
+
class ModifyRiskCenterScanTaskRequest < TencentCloud::Common::AbstractModel
|
4944
|
+
# @param TaskName: 任务名称
|
4945
|
+
# @type TaskName: String
|
4946
|
+
# @param ScanAssetType: 0-全扫,1-指定资产扫,2-排除资产扫,3-手动填写扫;1和2则Assets字段必填,3则SelfDefiningAssets必填
|
4947
|
+
# @type ScanAssetType: Integer
|
4948
|
+
# @param ScanItem: 扫描项目;port/poc/weakpass/webcontent/configrisk
|
4949
|
+
# @type ScanItem: Array
|
4950
|
+
# @param ScanPlanType: 0-周期任务,1-立即扫描,2-定时扫描,3-自定义;0,2,3则ScanPlanContent必填
|
4951
|
+
# @type ScanPlanType: Integer
|
4952
|
+
# @param TaskId: 要修改的任务id
|
4953
|
+
# @type TaskId: String
|
4954
|
+
# @param Assets: 扫描资产信息列表
|
4955
|
+
# @type Assets: Array
|
4956
|
+
# @param ScanPlanContent: 扫描计划详情
|
4957
|
+
# @type ScanPlanContent: String
|
4958
|
+
# @param SelfDefiningAssets: ip/域名/url数组
|
4959
|
+
# @type SelfDefiningAssets: Array
|
4960
|
+
# @param TaskAdvanceCFG: 高级配置
|
4961
|
+
# @type TaskAdvanceCFG: :class:`Tencentcloud::Csip.v20221121.models.TaskAdvanceCFG`
|
4962
|
+
# @param TaskMode: 体检模式,0-标准模式,1-快速模式,2-高级模式,默认标准模式
|
4963
|
+
# @type TaskMode: Integer
|
4964
|
+
|
4965
|
+
attr_accessor :TaskName, :ScanAssetType, :ScanItem, :ScanPlanType, :TaskId, :Assets, :ScanPlanContent, :SelfDefiningAssets, :TaskAdvanceCFG, :TaskMode
|
4966
|
+
|
4967
|
+
def initialize(taskname=nil, scanassettype=nil, scanitem=nil, scanplantype=nil, taskid=nil, assets=nil, scanplancontent=nil, selfdefiningassets=nil, taskadvancecfg=nil, taskmode=nil)
|
4968
|
+
@TaskName = taskname
|
4969
|
+
@ScanAssetType = scanassettype
|
4970
|
+
@ScanItem = scanitem
|
4971
|
+
@ScanPlanType = scanplantype
|
4972
|
+
@TaskId = taskid
|
4973
|
+
@Assets = assets
|
4974
|
+
@ScanPlanContent = scanplancontent
|
4975
|
+
@SelfDefiningAssets = selfdefiningassets
|
4976
|
+
@TaskAdvanceCFG = taskadvancecfg
|
4977
|
+
@TaskMode = taskmode
|
4978
|
+
end
|
4979
|
+
|
4980
|
+
def deserialize(params)
|
4981
|
+
@TaskName = params['TaskName']
|
4982
|
+
@ScanAssetType = params['ScanAssetType']
|
4983
|
+
@ScanItem = params['ScanItem']
|
4984
|
+
@ScanPlanType = params['ScanPlanType']
|
4985
|
+
@TaskId = params['TaskId']
|
4986
|
+
unless params['Assets'].nil?
|
4987
|
+
@Assets = []
|
4988
|
+
params['Assets'].each do |i|
|
4989
|
+
taskassetobject_tmp = TaskAssetObject.new
|
4990
|
+
taskassetobject_tmp.deserialize(i)
|
4991
|
+
@Assets << taskassetobject_tmp
|
4992
|
+
end
|
4993
|
+
end
|
4994
|
+
@ScanPlanContent = params['ScanPlanContent']
|
4995
|
+
@SelfDefiningAssets = params['SelfDefiningAssets']
|
4996
|
+
unless params['TaskAdvanceCFG'].nil?
|
4997
|
+
@TaskAdvanceCFG = TaskAdvanceCFG.new
|
4998
|
+
@TaskAdvanceCFG.deserialize(params['TaskAdvanceCFG'])
|
4999
|
+
end
|
5000
|
+
@TaskMode = params['TaskMode']
|
5001
|
+
end
|
5002
|
+
end
|
5003
|
+
|
5004
|
+
# ModifyRiskCenterScanTask返回参数结构体
|
5005
|
+
class ModifyRiskCenterScanTaskResponse < TencentCloud::Common::AbstractModel
|
5006
|
+
# @param TaskId: 任务id
|
5007
|
+
# @type TaskId: String
|
5008
|
+
# @param Status: 0,修改成功,其他失败;-1为存在资产未认证
|
5009
|
+
# @type Status: Integer
|
5010
|
+
# @param UnAuthAsset: 未认证资产列表
|
5011
|
+
# @type UnAuthAsset: Array
|
5012
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5013
|
+
# @type RequestId: String
|
5014
|
+
|
5015
|
+
attr_accessor :TaskId, :Status, :UnAuthAsset, :RequestId
|
5016
|
+
|
5017
|
+
def initialize(taskid=nil, status=nil, unauthasset=nil, requestid=nil)
|
5018
|
+
@TaskId = taskid
|
5019
|
+
@Status = status
|
5020
|
+
@UnAuthAsset = unauthasset
|
5021
|
+
@RequestId = requestid
|
5022
|
+
end
|
5023
|
+
|
5024
|
+
def deserialize(params)
|
5025
|
+
@TaskId = params['TaskId']
|
5026
|
+
@Status = params['Status']
|
5027
|
+
@UnAuthAsset = params['UnAuthAsset']
|
5028
|
+
@RequestId = params['RequestId']
|
5029
|
+
end
|
5030
|
+
end
|
5031
|
+
|
4942
5032
|
# 网卡资产
|
4943
5033
|
class NICAsset < TencentCloud::Common::AbstractModel
|
4944
5034
|
# @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.754
|
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-01-
|
11
|
+
date: 2024-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|