tencentcloud-sdk-nodejs-intl-en
Version:
1,935 lines (1,641 loc) • 682 kB
JavaScript
/*
* Copyright (c) 2018 Tencent. 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");
/**
* DescribeRiskCenterPortViewPortRiskList request structure.
* @class
*/
class DescribeRiskCenterPortViewPortRiskListRequest extends AbstractModel {
constructor(){
super();
/**
* Group Account Member ID
* @type {Array.<string> || null}
*/
this.MemberId = null;
/**
* Filter conditions
* @type {Filter || null}
*/
this.Filter = null;
/**
* Asset tags
* @type {Array.<AssetTag> || null}
*/
this.Tags = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
if (params.Filter) {
let obj = new Filter();
obj.deserialize(params.Filter)
this.Filter = obj;
}
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new AssetTag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
}
}
/**
* DescribeDbAssetInfo response structure.
* @class
*/
class DescribeDbAssetInfoResponse extends AbstractModel {
constructor(){
super();
/**
* DB Asset Details
* @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();
/**
* task id and target AppID list
* @type {Array.<TaskIdListKey> || null}
*/
this.TaskIdList = null;
/**
* Group Account Member ID
* @type {Array.<string> || null}
*/
this.MemberId = 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);
}
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
}
}
/**
* 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;
}
}
/**
* DescribeCSIPRiskStatistics request structure.
* @class
*/
class DescribeCSIPRiskStatisticsRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Group account member id</p>
* @type {Array.<string> || null}
*/
this.MemberId = null;
/**
* Filtered Content
* @type {Filter || null}
*/
this.Filter = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
if (params.Filter) {
let obj = new Filter();
obj.deserialize(params.Filter)
this.Filter = obj;
}
}
}
/**
* Risk center risk overview statistics.
* @class
*/
class CsipRiskCenterStatistics extends AbstractModel {
constructor(){
super();
/**
* Total Number of Port Risks
* @type {number || null}
*/
this.PortTotal = null;
/**
* High Port Risk Count
* @type {number || null}
*/
this.PortHighLevel = null;
/**
* Total number of weak password risks.
* @type {number || null}
*/
this.WeakPasswordTotal = null;
/**
* High Weak Password Risk Count
* @type {number || null}
*/
this.WeakPasswordHighLevel = null;
/**
* Website Risk Count
* @type {number || null}
*/
this.WebsiteTotal = null;
/**
* Number of High Risks on Websites
* @type {number || null}
*/
this.WebsiteHighLevel = null;
/**
* Time of the Latest Scan
* @type {string || null}
*/
this.LastScanTime = null;
/**
* Number of vulnerability risks.
* @type {number || null}
*/
this.VULTotal = null;
/**
* Number of High-Risk Vulnerability Risks
* @type {number || null}
*/
this.VULHighLevel = null;
/**
* Number of Configuration Item Risks
* @type {number || null}
*/
this.CFGTotal = null;
/**
* Number of High-Risk Configuration Item Risks
* @type {number || null}
*/
this.CFGHighLevel = null;
/**
* Mapping Service Risk Count
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ServerTotal = null;
/**
* High Mapping Service Risk Count
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ServerHighLevel = null;
/**
* Number of host baseline risks.
* @type {number || null}
*/
this.HostBaseLineRiskTotal = null;
/**
* Number of high-risk risks.
* @type {number || null}
*/
this.HostBaseLineRiskHighLevel = null;
/**
* Baseline risk count of the container.
* @type {number || null}
*/
this.PodBaseLineRiskTotal = null;
/**
* Number of high-risk baseline risks in the container.
* @type {number || null}
*/
this.PodBaseLineRiskHighLevel = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.PortTotal = 'PortTotal' in params ? params.PortTotal : null;
this.PortHighLevel = 'PortHighLevel' in params ? params.PortHighLevel : null;
this.WeakPasswordTotal = 'WeakPasswordTotal' in params ? params.WeakPasswordTotal : null;
this.WeakPasswordHighLevel = 'WeakPasswordHighLevel' in params ? params.WeakPasswordHighLevel : null;
this.WebsiteTotal = 'WebsiteTotal' in params ? params.WebsiteTotal : null;
this.WebsiteHighLevel = 'WebsiteHighLevel' in params ? params.WebsiteHighLevel : null;
this.LastScanTime = 'LastScanTime' in params ? params.LastScanTime : null;
this.VULTotal = 'VULTotal' in params ? params.VULTotal : null;
this.VULHighLevel = 'VULHighLevel' in params ? params.VULHighLevel : null;
this.CFGTotal = 'CFGTotal' in params ? params.CFGTotal : null;
this.CFGHighLevel = 'CFGHighLevel' in params ? params.CFGHighLevel : null;
this.ServerTotal = 'ServerTotal' in params ? params.ServerTotal : null;
this.ServerHighLevel = 'ServerHighLevel' in params ? params.ServerHighLevel : null;
this.HostBaseLineRiskTotal = 'HostBaseLineRiskTotal' in params ? params.HostBaseLineRiskTotal : null;
this.HostBaseLineRiskHighLevel = 'HostBaseLineRiskHighLevel' in params ? params.HostBaseLineRiskHighLevel : null;
this.PodBaseLineRiskTotal = 'PodBaseLineRiskTotal' in params ? params.PodBaseLineRiskTotal : null;
this.PodBaseLineRiskHighLevel = 'PodBaseLineRiskHighLevel' in params ? params.PodBaseLineRiskHighLevel : null;
}
}
/**
* DescribeVULRiskAdvanceCFGList response structure.
* @class
*/
class DescribeVULRiskAdvanceCFGListResponse extends AbstractModel {
constructor(){
super();
/**
* Configuration item list
* @type {Array.<VULRiskAdvanceCFGList> || null}
*/
this.Data = null;
/**
* Total number of results
* @type {number || null}
*/
this.TotalCount = null;
/**
* Risk Level Filter List
* @type {Array.<FilterDataObject> || null}
*/
this.RiskLevelLists = null;
/**
* Vulnerability Type Filter List
* @type {Array.<FilterDataObject> || null}
*/
this.VULTypeLists = null;
/**
* Recognition Source Filter List
* @type {Array.<FilterDataObject> || null}
*/
this.CheckFromLists = null;
/**
* Vulnerability tag list.
* @type {Array.<FilterDataObject> || null}
*/
this.VulTagList = 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);
}
}
if (params.VulTagList) {
this.VulTagList = new Array();
for (let z in params.VulTagList) {
let obj = new FilterDataObject();
obj.deserialize(params.VulTagList[z]);
this.VulTagList.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CSPM standard
* @class
*/
class StandardItem extends AbstractModel {
constructor(){
super();
/**
* Specification ID
* @type {number || null}
*/
this.ID = null;
/**
* Standard name
* @type {string || null}
*/
this.Name = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ID = 'ID' in params ? params.ID : null;
this.Name = 'Name' in params ? params.Name : null;
}
}
/**
* High-Risk baseline risk content.
* @class
*/
class HighBaseLineRiskItem extends AbstractModel {
constructor(){
super();
/**
* Cloud account ID.
* @type {string || null}
*/
this.CloudAccountID = null;
/**
* Instance ID.
* @type {string || null}
*/
this.AssetID = null;
/**
* Instance status
* @type {string || null}
*/
this.InstanceStatus = null;
/**
* Instance name
* @type {string || null}
*/
this.InstanceName = null;
/**
* Risk name.
* @type {string || null}
*/
this.RiskName = null;
/**
* Risk classification.
* @type {string || null}
*/
this.RiskCategory = null;
/**
* Risk level.
* @type {string || null}
*/
this.RiskLevel = null;
/**
* Risk description.
* @type {string || null}
*/
this.RiskDesc = null;
/**
* Risk result.
* @type {string || null}
*/
this.RiskResult = null;
/**
* Fixing suggestion
* @type {string || null}
*/
this.FixAdvice = null;
/**
* Linux vulnerability.
* @type {string || null}
*/
this.RiskCategoryName = null;
/**
* Risk name.
* @type {string || null}
*/
this.RiskLevelName = null;
/**
* Instance status
* @type {string || null}
*/
this.InstanceStatusName = null;
/**
* First detection time
* @type {string || null}
*/
this.CreateTime = null;
/**
* Last discovery time
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Tenant ID.
* @type {number || null}
*/
this.AppID = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.CloudAccountID = 'CloudAccountID' in params ? params.CloudAccountID : null;
this.AssetID = 'AssetID' in params ? params.AssetID : null;
this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null;
this.InstanceName = 'InstanceName' in params ? params.InstanceName : null;
this.RiskName = 'RiskName' in params ? params.RiskName : null;
this.RiskCategory = 'RiskCategory' in params ? params.RiskCategory : null;
this.RiskLevel = 'RiskLevel' in params ? params.RiskLevel : null;
this.RiskDesc = 'RiskDesc' in params ? params.RiskDesc : null;
this.RiskResult = 'RiskResult' in params ? params.RiskResult : null;
this.FixAdvice = 'FixAdvice' in params ? params.FixAdvice : null;
this.RiskCategoryName = 'RiskCategoryName' in params ? params.RiskCategoryName : null;
this.RiskLevelName = 'RiskLevelName' in params ? params.RiskLevelName : null;
this.InstanceStatusName = 'InstanceStatusName' in params ? params.InstanceStatusName : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.AppID = 'AppID' in params ? params.AppID : null;
}
}
/**
* Access key asset Alarm information.
* @class
*/
class AccessKeyAlarmInfo extends AbstractModel {
constructor(){
super();
/**
* Alarm type/risktype.
Alarm type:.
Abnormal calls.
Leakage detection.
2 custom.
Risk type:.
Configuration risk.
Custom risk.
* @type {number || null}
*/
this.Type = null;
/**
* Alarm count/number of risks.
* @type {number || null}
*/
this.Count = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Type = 'Type' in params ? params.Type : null;
this.Count = 'Count' in params ? params.Count : null;
}
}
/**
* DescribeOtherCloudAssets response structure.
* @class
*/
class DescribeOtherCloudAssetsResponse extends AbstractModel {
constructor(){
super();
/**
* Total number.
* @type {number || null}
*/
this.Total = null;
/**
* Total number of assets
* @type {Array.<DBAssetVO> || null}
*/
this.Data = null;
/**
* Region Enumeration
* @type {Array.<FilterDataObject> || null}
*/
this.RegionList = null;
/**
* Asset Type Enumeration
* @type {Array.<FilterDataObject> || null}
*/
this.AssetTypeList = null;
/**
* VPC Enumeration
* @type {Array.<FilterDataObject> || null}
*/
this.VpcList = null;
/**
* Appid Enumeration
* @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;
}
this.Total = 'Total' in params ? params.Total : null;
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new DBAssetVO();
obj.deserialize(params.Data[z]);
this.Data.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.AssetTypeList) {
this.AssetTypeList = new Array();
for (let z in params.AssetTypeList) {
let obj = new FilterDataObject();
obj.deserialize(params.AssetTypeList[z]);
this.AssetTypeList.push(obj);
}
}
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.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;
}
}
/**
* DescribeAssetViewVulRiskList response structure.
* @class
*/
class DescribeAssetViewVulRiskListResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of entries
* @type {number || null}
*/
this.TotalCount = null;
/**
* Vulnerability Risk List from Asset's Perspective
* @type {Array.<AssetViewVULRiskData> || null}
*/
this.Data = null;
/**
* Status list
* @type {Array.<FilterDataObject> || null}
*/
this.StatusLists = null;
/**
* Danger Level List
* @type {Array.<FilterDataObject> || null}
*/
this.LevelLists = null;
/**
* Source List
* @type {Array.<FilterDataObject> || null}
*/
this.FromLists = null;
/**
* Vulnerability Type List
* @type {Array.<FilterDataObject> || null}
*/
this.VULTypeLists = null;
/**
* Asset Type List
* @type {Array.<FilterDataObject> || null}
*/
this.InstanceTypeLists = null;
/**
* tag enumeration.
* @type {Array.<FilterDataObject> || null}
*/
this.Tags = 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 AssetViewVULRiskData();
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.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.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.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new FilterDataObject();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeRepositoryImageAssets request structure.
* @class
*/
class DescribeRepositoryImageAssetsRequest extends AbstractModel {
constructor(){
super();
/**
* Group Account Member ID
* @type {Array.<string> || null}
*/
this.MemberId = null;
/**
* Filters
* @type {Filter || null}
*/
this.Filter = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
if (params.Filter) {
let obj = new Filter();
obj.deserialize(params.Filter)
this.Filter = obj;
}
}
}
/**
* DescribeOrganizationUserInfo request structure.
* @class
*/
class DescribeOrganizationUserInfoRequest extends AbstractModel {
constructor(){
super();
/**
* Group Account Member ID
* @type {Array.<string> || null}
*/
this.MemberId = null;
/**
* Filtered Content
* @type {Filter || null}
*/
this.Filter = null;
/**
* Does not support multi-cloud.
* @type {boolean || null}
*/
this.NotSupportCloud = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
if (params.Filter) {
let obj = new Filter();
obj.deserialize(params.Filter)
this.Filter = obj;
}
this.NotSupportCloud = 'NotSupportCloud' in params ? params.NotSupportCloud : null;
}
}
/**
* DescribeTaskLogURL response structure.
* @class
*/
class DescribeTaskLogURLResponse extends AbstractModel {
constructor(){
super();
/**
* Temp download URL of the report
* @type {Array.<TaskLogURL> || 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) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new TaskLogURL();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Skill power tag
* @class
*/
class SkillCapabilityTag extends AbstractModel {
constructor(){
super();
/**
* Capacity tag identification, suitable for program judgment, filtering or aggregation usage
* @type {string || null}
*/
this.ID = null;
/**
* Capacity Tag Display Name
* @type {string || null}
*/
this.Name = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ID = 'ID' in params ? params.ID : null;
this.Name = 'Name' in params ? params.Name : null;
}
}
/**
* ModifyUebaRuleSwitch response structure.
* @class
*/
class ModifyUebaRuleSwitchResponse extends AbstractModel {
constructor(){
super();
/**
* 0: Success; 1: Failure
* @type {number || null}
*/
this.Code = null;
/**
* Returned information.
* @type {string || null}
*/
this.Msg = 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.Code = 'Code' in params ? params.Code : null;
this.Msg = 'Msg' in params ? params.Msg : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeAKAnalysisDetail response structure.
* @class
*/
class DescribeAKAnalysisDetailResponse extends AbstractModel {
constructor(){
super();
/**
* Alarm AI analysis status -1 Analysis failed 0 Not analyzed 1 Under analysis 2 Analysis successful, real alarm 3 Analysis successful, suspicious alarm
* @type {number || null}
*/
this.AIStatus = null;
/**
* AI Analysis Task ID
* @type {string || null}
*/
this.AITaskID = null;
/**
* Alarm AI analysis result, base64 format, avoid data interception
* @type {string || null}
*/
this.AIResult = null;
/**
* Feedback and Suggestions
* @type {string || null}
*/
this.Feedback = null;
/**
* Feedback status 0 means no feedback, 1 means recognized, 2 means not recognized
* @type {number || null}
*/
this.FeedbackResult = null;
/**
* Reason for failure
* @type {string || null}
*/
this.FailedReason = 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.AIStatus = 'AIStatus' in params ? params.AIStatus : null;
this.AITaskID = 'AITaskID' in params ? params.AITaskID : null;
this.AIResult = 'AIResult' in params ? params.AIResult : null;
this.Feedback = 'Feedback' in params ? params.Feedback : null;
this.FeedbackResult = 'FeedbackResult' in params ? params.FeedbackResult : null;
this.FailedReason = 'FailedReason' in params ? params.FailedReason : null;
this.RequestId = 'RequestId' in params ? params.RequestId : 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;
}
}
/**
* CreateAccessKeySyncTask request structure.
* @class
*/
class CreateAccessKeySyncTaskRequest extends AbstractModel {
constructor(){
super();
/**
* Group Account Member ID
* @type {Array.<string> || null}
*/
this.MemberId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
}
}
/**
* AddNewBindRoleUser request structure.
* @class
*/
class AddNewBindRoleUserRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* DescribeCheckViewRisks request structure.
* @class
*/
class DescribeCheckViewRisksRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Group account member id</p>
* @type {Array.<string> || null}
*/
this.MemberId = null;
/**
* <p>Filter content</p>
* @type {Array.<Filters> || null}
*/
this.Filters = null;
/**
* <p>Page size.</p>
* @type {number || null}
*/
this.Limit = null;
/**
* <p>Offset.</p>
* @type {number || null}
*/
this.Offset = null;
/**
* <p>Sorting type</p>
* @type {string || null}
*/
this.Order = null;
/**
* <p>Sorting field.</p>
* @type {string || null}
*/
this.By = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MemberId = 'MemberId' in params ? params.MemberId : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filters();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.Order = 'Order' in params ? params.Order : null;
this.By = 'By' in params ? params.By : null;
}
}
/**
* Emergency vulnerability basic data.
* @class
*/
class VULBaseInfo extends AbstractModel {
constructor(){
super();
/**
* Risk level.
High - high risk, middle - medium risk, low - low risk, info - Note.
* @type {string || null}
*/
this.Level = null;
/**
* Component.
* @type {string || null}
*/
this.Component = null;
/**
* Release date.
* @type {string || null}
*/
this.PublishTime = null;
/**
* Last scan time
* @type {string || null}
*/
this.LastScanTime = null;
/**
* Number of Affected Assets
* @type {number || null}
*/
this.AffectAssetCount = null;
/**
* Risk ID
* @type {string || null}
*/
this.RiskId = null;
/**
* Vulnerability type.
* @type {string || null}
*/
this.VULType = null;
/**
* Vulnerability name
* @type {string || null}
*/
this.VULName = null;
/**
* cve
* @type {string || null}
*/
this.CVE = null;
/**
* Description
* @type {string || null}
*/
this.Describe = null;
/**
* Vulnerability Payload
* @type {string || null}
*/
this.Payload = null;
/**
* Vulnerability impact component.
* @type {string || null}
*/
this.AppName = null;
/**
* Technology reference.
* @type {string || null}
*/
this.References = null;
/**
* Vulnerability impact version.
* @type {string || null}
*/
this.AppVersion = null;
/**
* Risks.
* @type {string || null}
*/
this.VULURL = null;
/**
* User Nickname
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Nick = null;
/**
* User appid.
* @type {string || 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;
/**
* Fixing suggestion
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Fix = null;
/**
* Emergency Vulnerability Type. 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;
/**
* CVSS score
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.CVSS = null;
/**
* Attack intensity.
0/1/2/3
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.AttackHeat = null;
/**
* Detection status 0 unscanned 1 scan in progress 2 scan complete.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ScanStatus = null;
/**
* 1/0 whether compulsory.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.IsSuggest = null;
/**
* Tag.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.VulTag = null;
/**
* Support products: "cfw_waf_virtual", "cwp_detect", "cwp_defense", "cwp_fix" (comma-separated).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.SupportProduct = null;
/**
* Vulnerability detection task id.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskId = null;
/**
* Primary key
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Index = null;
/**
* Vulnerability id old version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PcmgrID = null;
/**
* Vulnerability id new version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TvdID = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Level = 'Level' in params ? params.Level : null;
this.Component = 'Component' in params ? params.Component : null;
this.PublishTime = 'PublishTime' in params ? params.PublishTime : null;
this.LastScanTime = 'LastScanTime' in params ? params.LastScanTime : null;
this.AffectAssetCount = 'AffectAssetCount' in params ? params.AffectAssetCount : null;
this.RiskId = 'RiskId' in params ? params.RiskId : null;
this.VULType = 'VULType' in params ? params.VULType : null;
this.VULName = 'VULName' in params ? params.VULName : null;
this.CVE = 'CVE' in params ? params.CVE : null;
this.Describe = 'Describe' in params ? params.Describe : null;
this.Payload = 'Payload' in params ? params.Payload : 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.Nick = 'Nick' in params ? params.Nick : null;
this.AppId = 'AppId' in params ? params.AppId : null;
this.Uin = 'Uin' in params ? params.Uin : null;
this.Fix = 'Fix' in params ? params.Fix : null;
this.EMGCVulType = 'EMGCVulType' in params ? params.EMGCVulType : null;
this.CVSS = 'CVSS' in params ? params.CVSS : null;
this.AttackHeat = 'AttackHeat' in params ? params.AttackHeat : null;
this.ScanStatus = 'ScanStatus' in params ? params.ScanStatus : null;
this.IsSuggest = 'IsSuggest' in params ? params.IsSuggest : null;
this.VulTag = 'VulTag' in params ? params.VulTag : null;
this.SupportProduct = 'SupportProduct' in params ? params.SupportProduct : null;
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.Index = 'Index' in params ? params.Index : null;
this.PcmgrID = 'PcmgrID' in params ? params.PcmgrID : null;
this.TvdID = 'TvdID' in params ? params.TvdID : null;
}
}
/**
* DescribeCallRecord response structure.
* @class
*/
class DescribeCallRecordResponse extends AbstractModel {
constructor(){
super();
/**
* Invocation record list.
* @type {Array.<CallRecord> || null}
*/
this.Data = null;
/**
* Total number of records.
* @type {number || null}
*/
this.Total = 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 CallRecord();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.Total = 'Total' in params ? params.Total : null;
this.RequestId = 'RequestId' in params ? params.RequestId : 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, low - low risk, high - high risk, middle - medium risk, info - notification, extreme - critical.
* @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;
/**
* relevant standards
* @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 Nickname
* @type {string || null}
*/
this.Nick = null;
/**
* User UIN
* @type {string || null}
*/
this.Uin = null;
/**
* When the asset type is LBL, show this field to locate the specific LB.
* @type {string || null}
*/
this.ClbId = 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;
this.ClbId = 'ClbId' in params ? params.ClbId : null;
}
}
/**
* DescribeIaCFileList request structure.
* @class
*/
class DescribeIaCFileListRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Filter conditions.</p>
* @type