tencentcloud-sdk-nodejs-intl-en
Version:
1,790 lines (1,533 loc) • 271 kB
JavaScript
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* DescribeDbAssetInfo response structure.
* @class
*/
class DescribeDbAssetInfoResponse extends AbstractModel {
constructor(){
super();
/**
* Details of a database asset.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {DbAssetInfo || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new DbAssetInfo();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteRiskScanTask request structure.
* @class
*/
class DeleteRiskScanTaskRequest extends AbstractModel {
constructor(){
super();
/**
* List of task IDs
* @type {Array.<TaskIdListKey> || null}
*/
this.TaskIdList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.TaskIdList) {
this.TaskIdList = new Array();
for (let z in params.TaskIdList) {
let obj = new TaskIdListKey();
obj.deserialize(params.TaskIdList[z]);
this.TaskIdList.push(obj);
}
}
}
}
/**
* DescribeRiskCenterAssetViewWeakPasswordRiskList response structure.
* @class
*/
class DescribeRiskCenterAssetViewWeakPasswordRiskListResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of entries
* @type {number || null}
*/
this.TotalCount = null;
/**
* List of risks
* @type {Array.<AssetViewWeakPassRisk> || null}
*/
this.Data = null;
/**
* List of risk handling status
* @type {Array.<FilterDataObject> || null}
*/
this.StatusLists = null;
/**
* List of risk levels
* @type {Array.<FilterDataObject> || null}
*/
this.LevelLists = null;
/**
* List of check source
* @type {Array.<FilterDataObject> || null}
*/
this.FromLists = null;
/**
* List of asset types
* @type {Array.<FilterDataObject> || null}
*/
this.InstanceTypeLists = null;
/**
* List of weak password types
* @type {Array.<FilterDataObject> || null}
*/
this.PasswordTypeLists = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new AssetViewWeakPassRisk();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
if (params.StatusLists) {
this.StatusLists = new Array();
for (let z in params.StatusLists) {
let obj = new FilterDataObject();
obj.deserialize(params.StatusLists[z]);
this.StatusLists.push(obj);
}
}
if (params.LevelLists) {
this.LevelLists = new Array();
for (let z in params.LevelLists) {
let obj = new FilterDataObject();
obj.deserialize(params.LevelLists[z]);
this.LevelLists.push(obj);
}
}
if (params.FromLists) {
this.FromLists = new Array();
for (let z in params.FromLists) {
let obj = new FilterDataObject();
obj.deserialize(params.FromLists[z]);
this.FromLists.push(obj);
}
}
if (params.InstanceTypeLists) {
this.InstanceTypeLists = new Array();
for (let z in params.InstanceTypeLists) {
let obj = new FilterDataObject();
obj.deserialize(params.InstanceTypeLists[z]);
this.InstanceTypeLists.push(obj);
}
}
if (params.PasswordTypeLists) {
this.PasswordTypeLists = new Array();
for (let z in params.PasswordTypeLists) {
let obj = new FilterDataObject();
obj.deserialize(params.PasswordTypeLists[z]);
this.PasswordTypeLists.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeVULRiskAdvanceCFGList response structure.
* @class
*/
class DescribeVULRiskAdvanceCFGListResponse extends AbstractModel {
constructor(){
super();
/**
* List of configuration items
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<VULRiskAdvanceCFGList> || null}
*/
this.Data = null;
/**
* Total number of results
* @type {number || null}
*/
this.TotalCount = null;
/**
* List of risk levels
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<FilterDataObject> || null}
*/
this.RiskLevelLists = null;
/**
* List of vulnerabilities types
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<FilterDataObject> || null}
*/
this.VULTypeLists = null;
/**
* List of check source
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<FilterDataObject> || null}
*/
this.CheckFromLists = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new VULRiskAdvanceCFGList();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.RiskLevelLists) {
this.RiskLevelLists = new Array();
for (let z in params.RiskLevelLists) {
let obj = new FilterDataObject();
obj.deserialize(params.RiskLevelLists[z]);
this.RiskLevelLists.push(obj);
}
}
if (params.VULTypeLists) {
this.VULTypeLists = new Array();
for (let z in params.VULTypeLists) {
let obj = new FilterDataObject();
obj.deserialize(params.VULTypeLists[z]);
this.VULTypeLists.push(obj);
}
}
if (params.CheckFromLists) {
this.CheckFromLists = new Array();
for (let z in params.CheckFromLists) {
let obj = new FilterDataObject();
obj.deserialize(params.CheckFromLists[z]);
this.CheckFromLists.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Advanced weak password check configuration
* @class
*/
class TaskCenterWeakPwdRiskInputParam extends AbstractModel {
constructor(){
super();
/**
* Check item ID
* @type {number || null}
*/
this.CheckItemId = null;
/**
* Whether to enable. `0`: no, `1`: yes.
* @type {number || null}
*/
this.Enable = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CheckItemId = 'CheckItemId' in params ? params.CheckItemId : null;
this.Enable = 'Enable' in params ? params.Enable : null;
}
}
/**
* ModifyRiskCenterRiskStatus request structure.
* @class
*/
class ModifyRiskCenterRiskStatusRequest extends AbstractModel {
constructor(){
super();
/**
* Data of risk assets
* @type {Array.<RiskCenterStatusKey> || null}
*/
this.RiskStatusKeys = null;
/**
* Specify how you want to change the risk status. `1`: Change to Handled, `2`: Change to Ignored; `3`: Remove from Handled; `4`: Remove from Ignored
* @type {number || null}
*/
this.Status = null;
/**
* Risk type. `0`: Port risk; `1`: Vulnerability; `2`: Weak password; `3`: Website content risk; `4`: Configuration risk; `5`: Risk services
* @type {number || null}
*/
this.Type = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.RiskStatusKeys) {
this.RiskStatusKeys = new Array();
for (let z in params.RiskStatusKeys) {
let obj = new RiskCenterStatusKey();
obj.deserialize(params.RiskStatusKeys[z]);
this.RiskStatusKeys.push(obj);
}
}
this.Status = 'Status' in params ? params.Status : null;
this.Type = 'Type' in params ? params.Type : null;
}
}
/**
* Report item
* @class
*/
class ReportItemKey extends AbstractModel {
constructor(){
super();
/**
* List of report IDs.
* @type {Array.<string> || null}
*/
this.TaskLogList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskLogList = 'TaskLogList' in params ? params.TaskLogList : null;
}
}
/**
* Details of a server asset
* @class
*/
class CVMAssetVO extends AbstractModel {
constructor(){
super();
/**
* Asset ID
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AssetId = null;
/**
* Asset name
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AssetName = null;
/**
* Asset type
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AssetType = null;
/**
* Region
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Region = null;
/**
* Protection status
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CWPStatus = null;
/**
* Asset creation time
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AssetCreateTime = null;
/**
* Public IP
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PublicIp = null;
/**
* Private IP
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PrivateIp = null;
/**
*
* @type {string || null}
*/
this.VpcId = null;
/**
* VPC name
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VpcName = null;
/**
* App ID
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.AppId = null;
/**
* User `uin`
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Uin = null;
/**
* User name
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.NickName = null;
/**
* Availability zone
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AvailableArea = null;
/**
* Whether it's a critical asset
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsCore = null;
/**
* Subnet ID
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SubnetId = null;
/**
* Subnet name
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SubnetName = null;
/**
* UUID of the instance
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceUuid = null;
/**
* QUuid of the instance
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InstanceQUuid = null;
/**
* OS name
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OsName = null;
/**
* Number of partitions
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PartitionCount = null;
/**
* CPU information
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CPUInfo = null;
/**
* CPU size
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CPUSize = null;
/**
* CPU load
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CPULoad = null;
/**
* Memory size
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MemorySize = null;
/**
* Memory load
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MemoryLoad = null;
/**
* Disk size.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DiskSize = null;
/**
* Disk load
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DiskLoad = null;
/**
* Number of accounts
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AccountCount = null;
/**
* Number of processes
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProcessCount = null;
/**
* Number of applications
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AppCount = null;
/**
* Number of listened ports.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PortCount = null;
/**
* Number of network attacks
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Attack = null;
/**
* Number of network access requests
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Access = null;
/**
* Number of blocked attacks
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Intercept = null;
/**
* Inbound peak bandwidth
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InBandwidth = null;
/**
* OutInbound peak bandwidth
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OutBandwidth = null;
/**
* Total inbound traffic
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.InFlow = null;
/**
* Total outbound traffic
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.OutFlow = null;
/**
* Last scan time
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LastScanTime = null;
/**
* Proactive malicious outgoing requests
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.NetWorkOut = null;
/**
* Port risks
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.PortRisk = null;
/**
* Vulnerabilities
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.VulnerabilityRisk = null;
/**
* Configuraiton risks
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ConfigurationRisk = null;
/**
* Number of scan tasks
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ScanTask = null;
/**
* Tags
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<Tag> || null}
*/
this.Tag = null;
/**
* Member ID
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MemberId = null;
/**
* Full name of the operating system
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Os = null;
/**
* Risk exposure
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.RiskExposure = null;
/**
* BAS toolkit status. `0`: Not installed; `1`: Installed; `2`: Offline.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.BASAgentStatus = null;
/**
* `1`: New asset; `0`: Not a new asset
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsNewAsset = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AssetId = 'AssetId' in params ? params.AssetId : null;
this.AssetName = 'AssetName' in params ? params.AssetName : null;
this.AssetType = 'AssetType' in params ? params.AssetType : null;
this.Region = 'Region' in params ? params.Region : null;
this.CWPStatus = 'CWPStatus' in params ? params.CWPStatus : null;
this.AssetCreateTime = 'AssetCreateTime' in params ? params.AssetCreateTime : null;
this.PublicIp = 'PublicIp' in params ? params.PublicIp : null;
this.PrivateIp = 'PrivateIp' in params ? params.PrivateIp : null;
this.VpcId = 'VpcId' in params ? params.VpcId : null;
this.VpcName = 'VpcName' in params ? params.VpcName : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.Uin = 'Uin' in params ? params.Uin : null;
this.NickName = 'NickName' in params ? params.NickName : null;
this.AvailableArea = 'AvailableArea' in params ? params.AvailableArea : null;
this.IsCore = 'IsCore' in params ? params.IsCore : null;
this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
this.SubnetName = 'SubnetName' in params ? params.SubnetName : null;
this.InstanceUuid = 'InstanceUuid' in params ? params.InstanceUuid : null;
this.InstanceQUuid = 'InstanceQUuid' in params ? params.InstanceQUuid : null;
this.OsName = 'OsName' in params ? params.OsName : null;
this.PartitionCount = 'PartitionCount' in params ? params.PartitionCount : null;
this.CPUInfo = 'CPUInfo' in params ? params.CPUInfo : null;
this.CPUSize = 'CPUSize' in params ? params.CPUSize : null;
this.CPULoad = 'CPULoad' in params ? params.CPULoad : null;
this.MemorySize = 'MemorySize' in params ? params.MemorySize : null;
this.MemoryLoad = 'MemoryLoad' in params ? params.MemoryLoad : null;
this.DiskSize = 'DiskSize' in params ? params.DiskSize : null;
this.DiskLoad = 'DiskLoad' in params ? params.DiskLoad : null;
this.AccountCount = 'AccountCount' in params ? params.AccountCount : null;
this.ProcessCount = 'ProcessCount' in params ? params.ProcessCount : null;
this.AppCount = 'AppCount' in params ? params.AppCount : null;
this.PortCount = 'PortCount' in params ? params.PortCount : null;
this.Attack = 'Attack' in params ? params.Attack : null;
this.Access = 'Access' in params ? params.Access : null;
this.Intercept = 'Intercept' in params ? params.Intercept : null;
this.InBandwidth = 'InBandwidth' in params ? params.InBandwidth : null;
this.OutBandwidth = 'OutBandwidth' in params ? params.OutBandwidth : null;
this.InFlow = 'InFlow' in params ? params.InFlow : null;
this.OutFlow = 'OutFlow' in params ? params.OutFlow : null;
this.LastScanTime = 'LastScanTime' in params ? params.LastScanTime : null;
this.NetWorkOut = 'NetWorkOut' in params ? params.NetWorkOut : null;
this.PortRisk = 'PortRisk' in params ? params.PortRisk : null;
this.VulnerabilityRisk = 'VulnerabilityRisk' in params ? params.VulnerabilityRisk : null;
this.ConfigurationRisk = 'ConfigurationRisk' in params ? params.ConfigurationRisk : null;
this.ScanTask = 'ScanTask' in params ? params.ScanTask : null;
if (params.Tag) {
this.Tag = new Array();
for (let z in params.Tag) {
let obj = new Tag();
obj.deserialize(params.Tag[z]);
this.Tag.push(obj);
}
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
this.Os = 'Os' in params ? params.Os : null;
this.RiskExposure = 'RiskExposure' in params ? params.RiskExposure : null;
this.BASAgentStatus = 'BASAgentStatus' in params ? params.BASAgentStatus : null;
this.IsNewAsset = 'IsNewAsset' in params ? params.IsNewAsset : null;
}
}
/**
* Details of a configuration risk
* @class
*/
class AssetViewCFGRisk extends AbstractModel {
constructor(){
super();
/**
* The unique ID.
* @type {string || null}
*/
this.Id = null;
/**
* Configuration name
* @type {string || null}
*/
this.CFGName = null;
/**
* Check type
* @type {string || null}
*/
this.CheckType = null;
/**
* Instance ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Instance name
* @type {string || null}
*/
this.InstanceName = null;
/**
* Instance type
* @type {string || null}
*/
this.InstanceType = null;
/**
* Affected assets
* @type {string || null}
*/
this.AffectAsset = null;
/**
* Risk level
* @type {string || null}
*/
this.Level = null;
/**
* First detected
* @type {string || null}
*/
this.FirstTime = null;
/**
* Last detected
* @type {string || null}
*/
this.RecentTime = null;
/**
* Source of the task
* @type {string || null}
*/
this.From = null;
/**
* Status
* @type {number || null}
*/
this.Status = null;
/**
* u200c-
* @type {string || null}
*/
this.CFGSTD = null;
/**
* Configuration details.
* @type {string || null}
*/
this.CFGDescribe = null;
/**
* Fix suggestion
* @type {string || null}
*/
this.CFGFix = null;
/**
* URL of the help documentation
* @type {string || null}
*/
this.CFGHelpURL = null;
/**
* Data entry key
* @type {string || null}
*/
this.Index = null;
/**
* User AppId
* @type {string || null}
*/
this.AppId = null;
/**
* User name.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Nick = null;
/**
* User UIN
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Uin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.CFGName = 'CFGName' in params ? params.CFGName : null;
this.CheckType = 'CheckType' in params ? params.CheckType : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
this.AffectAsset = 'AffectAsset' in params ? params.AffectAsset : null;
this.Level = 'Level' in params ? params.Level : null;
this.FirstTime = 'FirstTime' in params ? params.FirstTime : null;
this.RecentTime = 'RecentTime' in params ? params.RecentTime : null;
this.From = 'From' in params ? params.From : null;
this.Status = 'Status' in params ? params.Status : null;
this.CFGSTD = 'CFGSTD' in params ? params.CFGSTD : null;
this.CFGDescribe = 'CFGDescribe' in params ? params.CFGDescribe : null;
this.CFGFix = 'CFGFix' in params ? params.CFGFix : null;
this.CFGHelpURL = 'CFGHelpURL' in params ? params.CFGHelpURL : null;
this.Index = 'Index' in params ? params.Index : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.Nick = 'Nick' in params ? params.Nick : null;
this.Uin = 'Uin' in params ? params.Uin : null;
}
}
/**
* Details of a vulnerability
* @class
*/
class AssetViewVULRisk extends AbstractModel {
constructor(){
super();
/**
* Affected assets
* @type {string || null}
*/
this.AffectAsset = null;
/**
* Risk level
* @type {string || null}
*/
this.Level = null;
/**
* Asset type
* @type {string || null}
*/
this.InstanceType = null;
/**
* Components
* @type {string || null}
*/
this.Component = null;
/**
* Service
* @type {string || null}
*/
this.Service = null;
/**
* Last detected
* @type {string || null}
*/
this.RecentTime = null;
/**
* First detected
* @type {string || null}
*/
this.FirstTime = null;
/**
* Status of the risk. `0`: Not handled, `1`: Handled; `2`: Ignored
* @type {number || null}
*/
this.Status = null;
/**
* Unique ID of the asset
* @type {string || null}
*/
this.Id = null;
/**
* Frontend index
* @type {string || null}
*/
this.Index = null;
/**
* Instance ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Instance name
* @type {string || null}
*/
this.InstanceName = null;
/**
* User `appid`
* @type {string || null}
*/
this.AppId = null;
/**
* User name.
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Nick = null;
/**
* User `uin`
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Uin = null;
/**
* Vulnerability type
* @type {string || null}
*/
this.VULType = null;
/**
* Port
* @type {string || null}
*/
this.Port = null;
/**
* Description
* @type {string || null}
*/
this.Describe = null;
/**
* Components affected by the vulnerability
* @type {string || null}
*/
this.AppName = null;
/**
* Reference information about the vulnerability
* @type {string || null}
*/
this.References = null;
/**
* Version
* @type {string || null}
*/
this.AppVersion = null;
/**
* Vulnerability URL
* @type {string || null}
*/
this.VULURL = null;
/**
* Vulnerability name
* @type {string || null}
*/
this.VULName = null;
/**
* CVE number
* @type {string || null}
*/
this.CVE = null;
/**
* Fix suggestion
* @type {string || null}
*/
this.Fix = null;
/**
* POC ID
* @type {string || null}
*/
this.POCId = null;
/**
* Source of the task
* @type {string || null}
*/
this.From = null;
/**
* CWPP edition
* @type {number || null}
*/
this.CWPVersion = null;
/**
* Whether it can be fixed
* @type {boolean || null}
*/
this.IsSupportRepair = null;
/**
* Whether it can be detected
* @type {boolean || null}
*/
this.IsSupportDetect = null;
/**
* Instance UUID
* @type {string || null}
*/
this.InstanceUUID = null;
/**
* Pay load
* @type {string || null}
*/
this.Payload = null;
/**
* Whether it's an emergency vulnerability. Values: `1` (emergency vulnerability); `0` (non-emergency vulnerability
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.EMGCVulType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AffectAsset = 'AffectAsset' in params ? params.AffectAsset : null;
this.Level = 'Level' in params ? params.Level : null;
this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
this.Component = 'Component' in params ? params.Component : null;
this.Service = 'Service' in params ? params.Service : null;
this.RecentTime = 'RecentTime' in params ? params.RecentTime : null;
this.FirstTime = 'FirstTime' in params ? params.FirstTime : null;
this.Status = 'Status' in params ? params.Status : null;
this.Id = 'Id' in params ? params.Id : null;
this.Index = 'Index' in params ? params.Index : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.Nick = 'Nick' in params ? params.Nick : null;
this.Uin = 'Uin' in params ? params.Uin : null;
this.VULType = 'VULType' in params ? params.VULType : null;
this.Port = 'Port' in params ? params.Port : null;
this.Describe = 'Describe' in params ? params.Describe : null;
this.AppName = 'AppName' in params ? params.AppName : null;
this.References = 'References' in params ? params.References : null;
this.AppVersion = 'AppVersion' in params ? params.AppVersion : null;
this.VULURL = 'VULURL' in params ? params.VULURL : null;
this.VULName = 'VULName' in params ? params.VULName : null;
this.CVE = 'CVE' in params ? params.CVE : null;
this.Fix = 'Fix' in params ? params.Fix : null;
this.POCId = 'POCId' in params ? params.POCId : null;
this.From = 'From' in params ? params.From : null;
this.CWPVersion = 'CWPVersion' in params ? params.CWPVersion : null;
this.IsSupportRepair = 'IsSupportRepair' in params ? params.IsSupportRepair : null;
this.IsSupportDetect = 'IsSupportDetect' in params ? params.IsSupportDetect : null;
this.InstanceUUID = 'InstanceUUID' in params ? params.InstanceUUID : null;
this.Payload = 'Payload' in params ? params.Payload : null;
this.EMGCVulType = 'EMGCVulType' in params ? params.EMGCVulType : null;
}
}
/**
* DescribeScanReportList request structure.
* @class
*/
class DescribeScanReportListRequest extends AbstractModel {
constructor(){
super();
/**
* Filter conditions
* @type {Filter || null}
*/
this.Filter = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Filter) {
let obj = new Filter();
obj.deserialize(params.Filter)
this.Filter = obj;
}
}
}
/**
* DescribeVpcAssets response structure.
* @class
*/
class DescribeVpcAssetsResponse extends AbstractModel {
constructor(){
super();
/**
* Data list
* @type {Array.<Vpc> || null}
*/
this.Data = null;
/**
* Total number of results
* @type {number || null}
*/
this.TotalCount = null;
/**
* List of VPCs
* @type {Array.<FilterDataObject> || null}
*/
this.VpcList = null;
/**
* List of regions
* @type {Array.<FilterDataObject> || null}
*/
this.RegionList = null;
/**
* List of AppIds
* @type {Array.<FilterDataObject> || null}
*/
this.AppIdList = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new Vpc();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.VpcList) {
this.VpcList = new Array();
for (let z in params.VpcList) {
let obj = new FilterDataObject();
obj.deserialize(params.VpcList[z]);
this.VpcList.push(obj);
}
}
if (params.RegionList) {
this.RegionList = new Array();
for (let z in params.RegionList) {
let obj = new FilterDataObject();
obj.deserialize(params.RegionList[z]);
this.RegionList.push(obj);
}
}
if (params.AppIdList) {
this.AppIdList = new Array();
for (let z in params.AppIdList) {
let obj = new FilterDataObject();
obj.deserialize(params.AppIdList[z]);
this.AppIdList.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* List of VPCs
* @class
*/
class Vpc extends AbstractModel {
constructor(){
super();
/**
* Subnet (32-bit mask)
* @type {number || null}
*/
this.Subnet = null;
/**
* Connected VPC (32-bit mask)
* @type {number || null}
*/
this.ConnectedVpc = null;
/**
* Asset ID
* @type {string || null}
*/
this.AssetId = null;
/**
* Region
* @type {string || null}
*/
this.Region = null;
/**
* CVM (only 32-bit)
* @type {number || null}
*/
this.CVM = null;
/**
* Tags
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<Tag> || null}
*/
this.Tag = null;
/**
* DNS domain
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.DNS = null;
/**
* Asset name
* @type {string || null}
*/
this.AssetName = null;
/**
* CIDR block
* @type {string || null}
*/
this.CIDR = null;
/**
* Asset creation time
* @type {string || null}
*/
this.CreateTime = null;
/**
* appid
* @type {string || null}
*/
this.AppId = null;
/**
* UIN
* @type {string || null}
*/
this.Uin = null;
/**
* User name
* @type {string || null}
*/
this.Nick = null;
/**
* Whether it's a newly-added asset. Values: `1` (Yes), `0` (No)
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsNewAsset = null;
/**
* Whether it's a critical asset. `1`: Yes; `2`: No
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsCore = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Subnet = 'Subnet' in params ? params.Subnet : null;
this.ConnectedVpc = 'ConnectedVpc' in params ? params.ConnectedVpc : null;
this.AssetId = 'AssetId' in params ? params.AssetId : null;
this.Region = 'Region' in params ? params.Region : null;
this.CVM = 'CVM' in params ? params.CVM : null;
if (params.Tag) {
this.Tag = new Array();
for (let z in params.Tag) {
let obj = new Tag();
obj.deserialize(params.Tag[z]);
this.Tag.push(obj);
}
}
this.DNS = 'DNS' in params ? params.DNS : null;
this.AssetName = 'AssetName' in params ? params.AssetName : null;
this.CIDR = 'CIDR' in params ? params.CIDR : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.Uin = 'Uin' in params ? params.Uin : null;
this.Nick = 'Nick' in params ? params.Nick : null;
this.IsNewAsset = 'IsNewAsset' in params ? params.IsNewAsset : null;
this.IsCore = 'IsCore' in params ? params.IsCore : null;
}
}
/**
* List of advanced vulnerability scan configurations
* @class
*/
class VULRiskAdvanceCFGList extends AbstractModel {
constructor(){
super();
/**
* Risk ID
* @type {string || null}
*/
this.RiskId = null;
/**
* Vulnerability name
* @type {string || null}
*/
this.VULName = null;
/**
* Risk level
* @type {string || null}
*/
this.RiskLevel = null;
/**
* Source of the check task
* @type {string || null}
*/
this.CheckFrom = null;
/**
* Whether it's enabled. `1`: Enable; `0`: Disabled
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Enable = null;
/**
* Risk type.
* @type {string || null}
*/
this.VULType = null;
/**
* Affected versions
* @type {string || null}
*/
this.ImpactVersion = null;
/**
* CVE number
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CVE = null;
/**
* Vulnerability tag
* @type {Array.<string> || null}
*/
this.VULTag = null;
/**
* Fix solution
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.FixMethod = null;
/**
* Disclosure time
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ReleaseTime = null;
/**
* Whether it's an emergency vulnerability. Values: `1` (emergency vulnerability); `0` (non-emergency vulnerability
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.EMGCVulType = null;
/**
* Vulnerability description
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.VULDescribe = null;
/**
* Affected components
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ImpactComponent = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RiskId = 'RiskId' in params ? params.RiskId : null;
this.VULName = 'VULName' in params ? params.VULName : null;
this.RiskLevel = 'RiskLevel' in params ? params.RiskLevel : null;
this.CheckFrom = 'CheckFrom' in params ? params.CheckFrom : null;
this.Enable = 'Enable' in params ? params.Enable : null;
this.VULType = 'VULType' in params ? params.VULType : null;
this.ImpactVersion = 'ImpactVersion' in params ? params.ImpactVersion : null;
this.CVE = 'CVE' in params ? params.CVE : null;
this.VULTag = 'VULTag' in params ? params.VULTag : null;
this.FixMethod = 'FixMethod' in params ? params.FixMethod : null;
this.ReleaseTime = 'ReleaseTime' in params ? params.ReleaseTime : null;
this.EMGCVulType = 'EMGCVulType' in params ? params.EMGCVulType : null;
this.VULDescribe = 'VULDescribe' in params ? params.VULDescribe : null;
this.ImpactComponent = 'ImpactComponent' in params ? params.ImpactComponent : null;
}
}
/**
* StopRiskCenterTask request structure.
* @class
*/
class StopRiskCenterTaskRequest extends AbstractModel {
constructor(){
super();
/**
* List of task IDs
* @type {Array.<TaskIdListKey> || null}
*/
this.TaskIdList = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.TaskIdList) {
this.TaskIdList = new Array();
for (let z in params.TaskIdList) {
let obj = new TaskIdListKey();
obj.deserialize(params.TaskIdList[z]);
this.TaskIdList.push(obj);
}
}
}
}
/**
* Vulnerability and asset information
* @class
*/
class DataSearchBug extends AbstractModel {
constructor(){
super();
/**
* Query status code
* @type {string || null}
*/
this.StateCode = null;
/**
*
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<BugInfoDetail> || null}
*/
this.DataBug = null;
/**
* None
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {Array.<AssetInfoDetail> || null}
*/
this.DataAsset = null;
/**
* `true`: Support vulnerability scan; `false`: Do not support vulnerability scan
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.VSSScan = null;
/**
* `0`: Do not support; `1`: Support
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CWPScan = null;
/**
* `1`: Support virtual patches; `0` or null: Do not support
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CFWPatch = null;
/**
* `0`: Do not support; `1`: Support
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.WafPatch = null;
/**
* `0`: Do not support; `1`: Support
Note: This field may return·null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CWPFix = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.StateCode = 'StateCode' in params ? params.StateCode : null;
if (params.DataBug) {
this.DataBu