tencentcloud-sdk-csip 3.0.595 → 3.0.596

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: f428d84d678a1c2cec4fcc4f054301cbbafb0d5e
4
- data.tar.gz: 22c79ae759ddcb2875a978197bbbc642bc74a15f
3
+ metadata.gz: 395b6be6f9f653825beabdd4e4da7b1026e8eb2f
4
+ data.tar.gz: 18b5ce954e41b15d25c8edb2a15acfbae1a0b551
5
5
  SHA512:
6
- metadata.gz: fbcdc09be04a71175e6764d9e541a5587b10c3f0de4ac7f4a42a8dfe30a9f1e7b6fc7bff1166096ffd2a232dc6c8519bd93831ad2499949e6f02c441c7e9dea4
7
- data.tar.gz: 32181dcaf3cf9d5e4e6fe975952294e1d9d81c1abb65b1df51c66019ecbe7f2f2a5209af41812cd0b03655b8fe680f83639990dc3abfbc1bb791f4f515cdea32
6
+ metadata.gz: bb3838bcb15d2845d1d50bff537cfbf9236c23dc8a89aae1f6f1db593ee13e9d518fc66511563e80d8e12e7ba668f4c94f0950c30b6c004c35efe712c06ba06a
7
+ data.tar.gz: 72e818d98e1c9e6c67b72cbcf2c0a98bec881bd87c4500c1c764da9a616abdcbc1ac92868919765aff7a9fc9469a9be66942b71592b108f66d5d5dd16a4fb988
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.595
1
+ 3.0.596
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 创建风险中心扫描任务
81
+
82
+ # @param request: Request instance for CreateRiskCenterScanTask.
83
+ # @type request: :class:`Tencentcloud::csip::V20221121::CreateRiskCenterScanTaskRequest`
84
+ # @rtype: :class:`Tencentcloud::csip::V20221121::CreateRiskCenterScanTaskResponse`
85
+ def CreateRiskCenterScanTask(request)
86
+ body = send_request('CreateRiskCenterScanTask', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateRiskCenterScanTaskResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # cvm详情
81
105
 
82
106
  # @param request: Request instance for DescribeCVMAssetInfo.
@@ -856,6 +856,84 @@ module TencentCloud
856
856
  end
857
857
  end
858
858
 
859
+ # CreateRiskCenterScanTask请求参数结构体
860
+ class CreateRiskCenterScanTaskRequest < TencentCloud::Common::AbstractModel
861
+ # @param TaskName: 任务名称
862
+ # @type TaskName: String
863
+ # @param ScanAssetType: 0-全扫,1-指定资产扫,2-排除资产扫,3-手动填写扫;1和2则Assets字段必填,3则SelfDefiningAssets必填
864
+ # @type ScanAssetType: Integer
865
+ # @param ScanItem: 扫描项目;port/poc/weakpass/webcontent/configrisk
866
+ # @type ScanItem: Array
867
+ # @param ScanPlanType: 0-周期任务,1-立即扫描,2-定时扫描,3-自定义;0,2,3则ScanPlanContent必填
868
+ # @type ScanPlanType: Integer
869
+ # @param Assets: 扫描资产信息列表
870
+ # @type Assets: Array
871
+ # @param ScanPlanContent: 扫描计划详情
872
+ # @type ScanPlanContent: String
873
+ # @param SelfDefiningAssets: ip/域名/url数组
874
+ # @type SelfDefiningAssets: Array
875
+ # @param TaskAdvanceCFG: 高级配置
876
+ # @type TaskAdvanceCFG: :class:`Tencentcloud::Csip.v20221121.models.TaskAdvanceCFG`
877
+ # @param TaskMode: 体检模式,0-标准模式,1-快速模式,2-高级模式,默认标准模式
878
+ # @type TaskMode: Integer
879
+
880
+ attr_accessor :TaskName, :ScanAssetType, :ScanItem, :ScanPlanType, :Assets, :ScanPlanContent, :SelfDefiningAssets, :TaskAdvanceCFG, :TaskMode
881
+
882
+ def initialize(taskname=nil, scanassettype=nil, scanitem=nil, scanplantype=nil, assets=nil, scanplancontent=nil, selfdefiningassets=nil, taskadvancecfg=nil, taskmode=nil)
883
+ @TaskName = taskname
884
+ @ScanAssetType = scanassettype
885
+ @ScanItem = scanitem
886
+ @ScanPlanType = scanplantype
887
+ @Assets = assets
888
+ @ScanPlanContent = scanplancontent
889
+ @SelfDefiningAssets = selfdefiningassets
890
+ @TaskAdvanceCFG = taskadvancecfg
891
+ @TaskMode = taskmode
892
+ end
893
+
894
+ def deserialize(params)
895
+ @TaskName = params['TaskName']
896
+ @ScanAssetType = params['ScanAssetType']
897
+ @ScanItem = params['ScanItem']
898
+ @ScanPlanType = params['ScanPlanType']
899
+ unless params['Assets'].nil?
900
+ @Assets = []
901
+ params['Assets'].each do |i|
902
+ taskassetobject_tmp = TaskAssetObject.new
903
+ taskassetobject_tmp.deserialize(i)
904
+ @Assets << taskassetobject_tmp
905
+ end
906
+ end
907
+ @ScanPlanContent = params['ScanPlanContent']
908
+ @SelfDefiningAssets = params['SelfDefiningAssets']
909
+ unless params['TaskAdvanceCFG'].nil?
910
+ @TaskAdvanceCFG = TaskAdvanceCFG.new
911
+ @TaskAdvanceCFG.deserialize(params['TaskAdvanceCFG'])
912
+ end
913
+ @TaskMode = params['TaskMode']
914
+ end
915
+ end
916
+
917
+ # CreateRiskCenterScanTask返回参数结构体
918
+ class CreateRiskCenterScanTaskResponse < TencentCloud::Common::AbstractModel
919
+ # @param TaskId: 任务id
920
+ # @type TaskId: String
921
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
922
+ # @type RequestId: String
923
+
924
+ attr_accessor :TaskId, :RequestId
925
+
926
+ def initialize(taskid=nil, requestid=nil)
927
+ @TaskId = taskid
928
+ @RequestId = requestid
929
+ end
930
+
931
+ def deserialize(params)
932
+ @TaskId = params['TaskId']
933
+ @RequestId = params['RequestId']
934
+ end
935
+ end
936
+
859
937
  # db资产输出字段
860
938
  class DBAssetVO < TencentCloud::Common::AbstractModel
861
939
  # @param AssetId: 资产id
@@ -2779,6 +2857,151 @@ module TencentCloud
2779
2857
  end
2780
2858
  end
2781
2859
 
2860
+ # 任务高级配置
2861
+ class TaskAdvanceCFG < TencentCloud::Common::AbstractModel
2862
+ # @param VulRisk: 漏洞风险高级配置
2863
+ # @type VulRisk: Array
2864
+ # @param WeakPwdRisk: 弱口令风险高级配置
2865
+ # @type WeakPwdRisk: Array
2866
+ # @param CFGRisk: 配置风险高级配置
2867
+ # @type CFGRisk: Array
2868
+
2869
+ attr_accessor :VulRisk, :WeakPwdRisk, :CFGRisk
2870
+
2871
+ def initialize(vulrisk=nil, weakpwdrisk=nil, cfgrisk=nil)
2872
+ @VulRisk = vulrisk
2873
+ @WeakPwdRisk = weakpwdrisk
2874
+ @CFGRisk = cfgrisk
2875
+ end
2876
+
2877
+ def deserialize(params)
2878
+ unless params['VulRisk'].nil?
2879
+ @VulRisk = []
2880
+ params['VulRisk'].each do |i|
2881
+ taskcentervulriskinputparam_tmp = TaskCenterVulRiskInputParam.new
2882
+ taskcentervulriskinputparam_tmp.deserialize(i)
2883
+ @VulRisk << taskcentervulriskinputparam_tmp
2884
+ end
2885
+ end
2886
+ unless params['WeakPwdRisk'].nil?
2887
+ @WeakPwdRisk = []
2888
+ params['WeakPwdRisk'].each do |i|
2889
+ taskcenterweakpwdriskinputparam_tmp = TaskCenterWeakPwdRiskInputParam.new
2890
+ taskcenterweakpwdriskinputparam_tmp.deserialize(i)
2891
+ @WeakPwdRisk << taskcenterweakpwdriskinputparam_tmp
2892
+ end
2893
+ end
2894
+ unless params['CFGRisk'].nil?
2895
+ @CFGRisk = []
2896
+ params['CFGRisk'].each do |i|
2897
+ taskcentercfgriskinputparam_tmp = TaskCenterCFGRiskInputParam.new
2898
+ taskcentercfgriskinputparam_tmp.deserialize(i)
2899
+ @CFGRisk << taskcentercfgriskinputparam_tmp
2900
+ end
2901
+ end
2902
+ end
2903
+ end
2904
+
2905
+ # 任务资产项
2906
+ class TaskAssetObject < TencentCloud::Common::AbstractModel
2907
+ # @param AssetName: 资产名
2908
+ # 注意:此字段可能返回 null,表示取不到有效值。
2909
+ # @type AssetName: String
2910
+ # @param InstanceType: 资产类型
2911
+ # 注意:此字段可能返回 null,表示取不到有效值。
2912
+ # @type InstanceType: String
2913
+ # @param AssetType: 资产分类
2914
+ # 注意:此字段可能返回 null,表示取不到有效值。
2915
+ # @type AssetType: String
2916
+ # @param Asset: ip/域名/资产id,数据库id等
2917
+ # @type Asset: String
2918
+ # @param Region: 地域
2919
+ # 注意:此字段可能返回 null,表示取不到有效值。
2920
+ # @type Region: String
2921
+
2922
+ attr_accessor :AssetName, :InstanceType, :AssetType, :Asset, :Region
2923
+
2924
+ def initialize(assetname=nil, instancetype=nil, assettype=nil, asset=nil, region=nil)
2925
+ @AssetName = assetname
2926
+ @InstanceType = instancetype
2927
+ @AssetType = assettype
2928
+ @Asset = asset
2929
+ @Region = region
2930
+ end
2931
+
2932
+ def deserialize(params)
2933
+ @AssetName = params['AssetName']
2934
+ @InstanceType = params['InstanceType']
2935
+ @AssetType = params['AssetType']
2936
+ @Asset = params['Asset']
2937
+ @Region = params['Region']
2938
+ end
2939
+ end
2940
+
2941
+ # 配置风险高级配置
2942
+ class TaskCenterCFGRiskInputParam < TencentCloud::Common::AbstractModel
2943
+ # @param ItemId: 检测项ID
2944
+ # @type ItemId: String
2945
+ # @param Enable: 是否开启,0-不开启,1-开启
2946
+ # @type Enable: Integer
2947
+ # @param ResourceType: 资源类型
2948
+ # @type ResourceType: String
2949
+
2950
+ attr_accessor :ItemId, :Enable, :ResourceType
2951
+
2952
+ def initialize(itemid=nil, enable=nil, resourcetype=nil)
2953
+ @ItemId = itemid
2954
+ @Enable = enable
2955
+ @ResourceType = resourcetype
2956
+ end
2957
+
2958
+ def deserialize(params)
2959
+ @ItemId = params['ItemId']
2960
+ @Enable = params['Enable']
2961
+ @ResourceType = params['ResourceType']
2962
+ end
2963
+ end
2964
+
2965
+ # 漏洞风险高级配置
2966
+ class TaskCenterVulRiskInputParam < TencentCloud::Common::AbstractModel
2967
+ # @param RiskId: 风险ID
2968
+ # @type RiskId: String
2969
+ # @param Enable: 是否开启,0-不开启,1-开启
2970
+ # @type Enable: Integer
2971
+
2972
+ attr_accessor :RiskId, :Enable
2973
+
2974
+ def initialize(riskid=nil, enable=nil)
2975
+ @RiskId = riskid
2976
+ @Enable = enable
2977
+ end
2978
+
2979
+ def deserialize(params)
2980
+ @RiskId = params['RiskId']
2981
+ @Enable = params['Enable']
2982
+ end
2983
+ end
2984
+
2985
+ # 弱口令风险高级配置
2986
+ class TaskCenterWeakPwdRiskInputParam < TencentCloud::Common::AbstractModel
2987
+ # @param CheckItemId: 检测项ID
2988
+ # @type CheckItemId: Integer
2989
+ # @param Enable: 是否开启,0-不开启,1-开启
2990
+ # @type Enable: Integer
2991
+
2992
+ attr_accessor :CheckItemId, :Enable
2993
+
2994
+ def initialize(checkitemid=nil, enable=nil)
2995
+ @CheckItemId = checkitemid
2996
+ @Enable = enable
2997
+ end
2998
+
2999
+ def deserialize(params)
3000
+ @CheckItemId = params['CheckItemId']
3001
+ @Enable = params['Enable']
3002
+ end
3003
+ end
3004
+
2782
3005
  # vpc列表数据
2783
3006
  class Vpc < TencentCloud::Common::AbstractModel
2784
3007
  # @param Subnet: 子网(只支持32位)
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.595
4
+ version: 3.0.596
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-06-19 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common