UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,997 lines (1,687 loc) 1.74 MB
/* * 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"); /** * ExportBashEvents request structure. * @class */ class ExportBashEventsRequest extends AbstractModel { constructor(){ super(); /** * Filter parameters * @type {Array.<Filters> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } 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); } } } } /** * DescribeSearchTemplates response structure. * @class */ class DescribeSearchTemplatesResponse extends AbstractModel { constructor(){ super(); /** * Total number * @type {number || null} */ this.TotalCount = null; /** * Template list * @type {Array.<SearchTemplate> || null} */ this.List = 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.List) { this.List = new Array(); for (let z in params.List) { let obj = new SearchTemplate(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyJavaMemShellPluginSwitch response structure. * @class */ class ModifyJavaMemShellPluginSwitchResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ExportReverseShellEvents response structure. * @class */ class ExportReverseShellEventsResponse extends AbstractModel { constructor(){ super(); /** * This parameter has been discarded. * @type {string || null} */ this.DownloadUrl = null; /** * Task ID, required for obtaining the DownloadURL at API Asynchronous Export Task ExportTasks * @type {string || null} */ this.TaskId = 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.DownloadUrl = 'DownloadUrl' in params ? params.DownloadUrl : null; this.TaskId = 'TaskId' in params ? params.TaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeBaselineTop response structure. * @class */ class DescribeBaselineTopResponse extends AbstractModel { constructor(){ super(); /** * List of top check items Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<BaselineRuleTopInfo> || null} */ this.RuleTopList = 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.RuleTopList) { this.RuleTopList = new Array(); for (let z in params.RuleTopList) { let obj = new BaselineRuleTopInfo(); obj.deserialize(params.RuleTopList[z]); this.RuleTopList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Information on alarms associated with the node * @class */ class AlarmInfo extends AbstractModel { constructor(){ super(); /** * Table names of IDs of alarms associated with the node. Separate multiple pairs with commas. Example: t1:id1,t2:id2 * @type {string || null} */ this.AlarmId = null; /** * Alarm status. This parameter takes effect when this node is an alarm node. * @type {number || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AlarmId = 'AlarmId' in params ? params.AlarmId : null; this.Status = 'Status' in params ? params.Status : null; } } /** * DescribeLogHistogram request structure. * @class */ class DescribeLogHistogramRequest extends AbstractModel { constructor(){ super(); /** * Start time of logs to be queried, which is a Unix timestamp in milliseconds * @type {number || null} */ this.StartTime = null; /** * End time of logs to be queried, which is a Unix timestamp in milliseconds * @type {number || null} */ this.EndTime = null; /** * Query statement * @type {string || null} */ this.QueryString = null; /** * Time interval, in ms * @type {number || null} */ this.Interval = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.QueryString = 'QueryString' in params ? params.QueryString : null; this.Interval = 'Interval' in params ? params.Interval : null; } } /** * ModifyWarningSetting response structure. * @class */ class ModifyWarningSettingResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAssetWebServiceInfoList response structure. * @class */ class DescribeAssetWebServiceInfoListResponse extends AbstractModel { constructor(){ super(); /** * List Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<AssetWebServiceBaseInfo> || null} */ this.WebServices = null; /** * Total number * @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.WebServices) { this.WebServices = new Array(); for (let z in params.WebServices) { let obj = new AssetWebServiceBaseInfo(); obj.deserialize(params.WebServices[z]); this.WebServices.push(obj); } } this.Total = 'Total' in params ? params.Total : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyVulDefenceEventStatus request structure. * @class */ class ModifyVulDefenceEventStatusRequest extends AbstractModel { constructor(){ super(); /** * Event ID * @type {Array.<number> || null} */ this.Ids = null; /** * 0: pending; 2: processed; 3: ignored; 4: deleted. * @type {number || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Ids = 'Ids' in params ? params.Ids : null; this.Status = 'Status' in params ? params.Status : null; } } /** * DescribeAssetAppProcessList response structure. * @class */ class DescribeAssetAppProcessListResponse extends AbstractModel { constructor(){ super(); /** * Process list Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<AssetAppProcessInfo> || null} */ this.Process = null; /** * Total number of partitions * @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.Process) { this.Process = new Array(); for (let z in params.Process) { let obj = new AssetAppProcessInfo(); obj.deserialize(params.Process[z]); this.Process.push(obj); } } this.Total = 'Total' in params ? params.Total : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyWebHookPolicy request structure. * @class */ class ModifyWebHookPolicyRequest extends AbstractModel { constructor(){ super(); /** * id * @type {number || null} */ this.Id = null; /** * Policy name * @type {string || null} */ this.Name = null; /** * Event type * @type {Array.<WebHookEventKv> || null} */ this.Events = null; /** * Host range * @type {Array.<WebHookHostLabel> || null} */ this.HostLabels = null; /** * Recipient * @type {Array.<WebHookReceiver> || null} */ this.Receivers = null; /** * Format. 0: text; 1: JSON. * @type {number || null} */ this.Format = null; /** * Custom passthrough field * @type {Array.<WebHookCustomField> || null} */ this.CustomFields = null; /** * Enable/Disable [1-Disable, 0-Enable] * @type {number || null} */ this.IsDisabled = null; /** * Host list * @type {Array.<string> || null} */ this.Quuids = null; /** * * @type {Array.<string> || null} */ this.ExcludedQuuids = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Name = 'Name' in params ? params.Name : null; if (params.Events) { this.Events = new Array(); for (let z in params.Events) { let obj = new WebHookEventKv(); obj.deserialize(params.Events[z]); this.Events.push(obj); } } if (params.HostLabels) { this.HostLabels = new Array(); for (let z in params.HostLabels) { let obj = new WebHookHostLabel(); obj.deserialize(params.HostLabels[z]); this.HostLabels.push(obj); } } if (params.Receivers) { this.Receivers = new Array(); for (let z in params.Receivers) { let obj = new WebHookReceiver(); obj.deserialize(params.Receivers[z]); this.Receivers.push(obj); } } this.Format = 'Format' in params ? params.Format : null; if (params.CustomFields) { this.CustomFields = new Array(); for (let z in params.CustomFields) { let obj = new WebHookCustomField(); obj.deserialize(params.CustomFields[z]); this.CustomFields.push(obj); } } this.IsDisabled = 'IsDisabled' in params ? params.IsDisabled : null; this.Quuids = 'Quuids' in params ? params.Quuids : null; this.ExcludedQuuids = 'ExcludedQuuids' in params ? params.ExcludedQuuids : null; } } /** * DescribeBashPolicies request structure. * @class */ class DescribeBashPoliciesRequest extends AbstractModel { constructor(){ super(); /** * Quantity of returned entries. The maximum value is 100. * @type {number || null} */ this.Limit = null; /** * Offset. Default value: 0. * @type {number || null} */ this.Offset = null; /** * Filtering criteria <li>Name - String - required: no - rule name</li> <li>Rule - String - required: no - rule content</li> <li>Level - Int - required: no - threat level</li> <li>White - Int - required: no - allowlist type</li> <li>Category - Int - required: no - policy type</li> <li>BashAction - Int - required: no - action</li> <li>Enable - Int - required: no - enabling status</li> <li>Id - Int - required: no - policy ID</li> <li>PolicyId - Int - required: no - policy ID</li> <li>RuleId - Int - required: no - rule ID</li> * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * DescribeLoginWhiteHostList request structure. * @class */ class DescribeLoginWhiteHostListRequest extends AbstractModel { constructor(){ super(); /** * Allowlist ID * @type {number || null} */ this.Id = null; /** * Number of results to be returned. Maximum value: 1000. * @type {number || null} */ this.Limit = null; /** * Offset. Default value: 0. * @type {number || null} */ this.Offset = null; /** * Filtering criteria <li>IpOrAlias - String - required: no - host IP or alias for filtering</li> * @type {Array.<AssetFilters> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new AssetFilters(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * ExportRansomDefenseBackupList response structure. * @class */ class ExportRansomDefenseBackupListResponse extends AbstractModel { constructor(){ super(); /** * Task ID, required for obtaining the DownloadURL at API Asynchronous Export Task ExportTasks Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TaskId = 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.TaskId = 'TaskId' in params ? params.TaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CKafka topic name * @class */ class CKafkaTopicInfo extends AbstractModel { constructor(){ super(); /** * Topic ID * @type {string || null} */ this.TopicID = null; /** * Topic name * @type {string || null} */ this.TopicName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TopicID = 'TopicID' in params ? params.TopicID : null; this.TopicName = 'TopicName' in params ? params.TopicName : null; } } /** * DeleteWebHookPolicy response structure. * @class */ class DeleteWebHookPolicyResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAssetAppCount response structure. * @class */ class DescribeAssetAppCountResponse extends AbstractModel { constructor(){ super(); /** * Number of software applications Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<AssetKeyVal> || null} */ this.Apps = 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.Apps) { this.Apps = new Array(); for (let z in params.Apps) { let obj = new AssetKeyVal(); obj.deserialize(params.Apps[z]); this.Apps.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAttackTop response structure. * @class */ class DescribeAttackTopResponse extends AbstractModel { constructor(){ super(); /** * Top Statistics Note: This field may return null, indicating that no valid values can be obtained. * @type {NetAttackTopInfo || null} */ this.NetAttackTopInfo = 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.NetAttackTopInfo) { let obj = new NetAttackTopInfo(); obj.deserialize(params.NetAttackTopInfo) this.NetAttackTopInfo = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyLicenseOrder request structure. * @class */ class ModifyLicenseOrderRequest extends AbstractModel { constructor(){ super(); /** * Resource ID * @type {string || null} */ this.ResourceId = null; /** * Expected value. If the current value is 10, fill in a larger value for scale-out, a smaller value for scale-down (the expected value must be no less than the usage value during scale-down), or the same value for no change. * @type {number || null} */ this.InquireNum = null; /** * Project ID. Fill in the original value for no change. * @type {number || null} */ this.ProjectId = null; /** * Resource alias. Fill in the original value for no change. * @type {string || null} */ this.Alias = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.InquireNum = 'InquireNum' in params ? params.InquireNum : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.Alias = 'Alias' in params ? params.Alias : null; } } /** * Index Rule * @class */ class RuleInfo extends AbstractModel { constructor(){ super(); /** * Full-text index configurations * @type {FullTextInfo || null} */ this.FullText = null; /** * Key-value index configurations * @type {KeyValueInfo || null} */ this.KeyValue = null; /** * Meta field index configuration * @type {KeyValueInfo || null} */ this.Tag = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.FullText) { let obj = new FullTextInfo(); obj.deserialize(params.FullText) this.FullText = obj; } if (params.KeyValue) { let obj = new KeyValueInfo(); obj.deserialize(params.KeyValue) this.KeyValue = obj; } if (params.Tag) { let obj = new KeyValueInfo(); obj.deserialize(params.Tag) this.Tag = obj; } } } /** * DeleteBaselineStrategy response structure. * @class */ class DeleteBaselineStrategyResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyWebHookRule request structure. * @class */ class ModifyWebHookRuleRequest extends AbstractModel { constructor(){ super(); /** * Rule content * @type {WebHookRuleDetail || null} */ this.Data = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Data) { let obj = new WebHookRuleDetail(); obj.deserialize(params.Data) this.Data = obj; } } } /** * Information on the authorization bound to the machine * @class */ class MachineLicenseDetail extends AbstractModel { constructor(){ super(); /** * Host QUUID * @type {string || null} */ this.Quuid = null; /** * xx * @type {number || null} */ this.PayMode = null; /** * xxx * @type {string || null} */ this.ResourceId = null; /** * xxx * @type {string || null} */ this.InquireKey = null; /** * xxx * @type {number || null} */ this.SourceType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Quuid = 'Quuid' in params ? params.Quuid : null; this.PayMode = 'PayMode' in params ? params.PayMode : null; this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.InquireKey = 'InquireKey' in params ? params.InquireKey : null; this.SourceType = 'SourceType' in params ? params.SourceType : null; } } /** * DescribeBashEventsInfo request structure. * @class */ class DescribeBashEventsInfoRequest extends AbstractModel { constructor(){ super(); /** * Event ID * @type {number || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; } } /** * ExportAssetDatabaseList request structure. * @class */ class ExportAssetDatabaseListRequest extends AbstractModel { constructor(){ super(); /** * Filtering criteria <li>User- string - required: no - running user</li> <li>Ip - String - required: no - bound IP address</li> <li>Port - Int - required: no - port</li> <li>Name - Int - required: no - database name 0: all 1:MySQL 2:Redis 3:Oracle 4:MongoDB 5:MemCache 6:PostgreSQL 7:HBase 8:DB2 9:Sybase 10:TiDB</li> <li>Proto - String - required: no - protocol: 1: TCP; 2: UDP; 3: unknown</li> <li>OsType - String - required: no - operating system: Linux/Windows</li> * @type {Array.<AssetFilters> || null} */ this.Filters = null; /** * Query the information on the host with the specified QUUID * @type {string || null} */ this.Quuid = null; /** * Sorting order: asc for ascending or desc for descending * @type {string || null} */ this.Order = null; /** * Sorting method: [FirstTime] * @type {string || null} */ this.By = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new AssetFilters(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Quuid = 'Quuid' in params ? params.Quuid : null; this.Order = 'Order' in params ? params.Order : null; this.By = 'By' in params ? params.By : null; } } /** * Add log-in audit allowlist entity * @class */ class HostLoginWhiteObj extends AbstractModel { constructor(){ super(); /** * Allowlisted region * @type {Array.<Place> || null} */ this.Places = null; /** * Allowlisted source IP address. IP ranges are supported. Multiple IPs are separated by commas. * @type {string || null} */ this.SrcIp = null; /** * Allowlisted username separated by commas * @type {string || null} */ this.UserName = null; /** * Whether the allowlist is effective globally. 1: all hosts; 0: only a single host. * @type {number || null} */ this.IsGlobal = null; /** * List of information on machines where the allowlist is effective * @type {Array.<HostInfo> || null} */ this.HostInfos = null; /** * Remarks * @type {string || null} */ this.Remark = null; /** * Start time * @type {string || null} */ this.StartTime = null; /** * End time * @type {string || null} */ this.EndTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Places) { this.Places = new Array(); for (let z in params.Places) { let obj = new Place(); obj.deserialize(params.Places[z]); this.Places.push(obj); } } this.SrcIp = 'SrcIp' in params ? params.SrcIp : null; this.UserName = 'UserName' in params ? params.UserName : null; this.IsGlobal = 'IsGlobal' in params ? params.IsGlobal : null; if (params.HostInfos) { this.HostInfos = new Array(); for (let z in params.HostInfos) { let obj = new HostInfo(); obj.deserialize(params.HostInfos[z]); this.HostInfos.push(obj); } } this.Remark = 'Remark' in params ? params.Remark : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; } } /** * ClearLocalStorage response structure. * @class */ class ClearLocalStorageResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateNetAttackWhiteList request structure. * @class */ class CreateNetAttackWhiteListRequest extends AbstractModel { constructor(){ super(); /** * Whether the allowlist applies to all hosts. 0: no; 1: yes. * @type {number || null} */ this.Scope = null; /** * Source IP. Single IP: 1.1.1.1, IP Range: 1.1.1.1-1.1.2.1, IP Range: 1.1.1.0/24 * @type {Array.<string> || null} */ this.SrcIp = null; /** * QUUID list * @type {Array.<string> || null} */ this.QuuidList = null; /** * Event ID * @type {number || null} */ this.EventId = null; /** * Whether to allowlist all alarms that match this rule: 1: Yes, 0: No. * @type {number || null} */ this.DealOldEvents = null; /** * Description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Scope = 'Scope' in params ? params.Scope : null; this.SrcIp = 'SrcIp' in params ? params.SrcIp : null; this.QuuidList = 'QuuidList' in params ? params.QuuidList : null; this.EventId = 'EventId' in params ? params.EventId : null; this.DealOldEvents = 'DealOldEvents' in params ? params.DealOldEvents : null; this.Description = 'Description' in params ? params.Description : null; } } /** * DescribeUndoVulCounts response structure. * @class */ class DescribeUndoVulCountsResponse extends AbstractModel { constructor(){ super(); /** * Number of unfixed vulnerabilities Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.UndoVulCount = null; /** * Number of unfixed hosts Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.UndoHostCount = null; /** * Number of Standard Edition hosts Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.NotProfessionCount = 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.UndoVulCount = 'UndoVulCount' in params ? params.UndoVulCount : null; this.UndoHostCount = 'UndoHostCount' in params ? params.UndoHostCount : null; this.NotProfessionCount = 'NotProfessionCount' in params ? params.NotProfessionCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeBaselineScanSchedule response structure. * @class */ class DescribeBaselineScanScheduleResponse extends AbstractModel { constructor(){ super(); /** * Check progress (percentage) Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Schedule = 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.Schedule = 'Schedule' in params ? params.Schedule : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Malicious request allowlist information * @class */ class MaliciousRequestWhiteListInfo extends AbstractModel { constructor(){ super(); /** * Allowlist ID * @type {number || null} */ this.Id = null; /** * Domain name * @type {string || null} */ this.Domain = null; /** * Remarks * @type {string || null} */ this.Mark = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * Update time * @type {string || null} */ this.ModifyTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Domain = 'Domain' in params ? params.Domain : null; this.Mark = 'Mark' in params ? params.Mark : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null; } } /** * DeleteBashEvents response structure. * @class */ class DeleteBashEventsResponse extends AbstractModel { constructor(){ super(); /** * 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.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAssetProcessInfoList request structure. * @class */ class DescribeAssetProcessInfoListRequest extends AbstractModel { constructor(){ super(); /** * Query the information on the host with the specified QUUID * @type {string || null} */ this.Quuid = null; /** * Filtering criteria <li>IP - String - required: no - host IP address</li> <li>MachineName - String - required: no - host name</li> <li>InstanceID - string - required: no - instance ID</li> <li>Name - String - required: no - process name</li> <li>User - String - required: no - process user</li> <li>Group - String - required: no - process user group</li> <li>Pid - uint64 - required: no - process ID</li> <li>Ppid - uint64 - required: no - parent process ID</li> <li>OsType - uint64 - required: no - Windows/Linux</li> <li>Status - string - required: no - process status: 1: R, runnable 2: S, interruptible 3: D, uninterruptible 4: T, stopped or traced 5: Z, zombie 6: X, to be terminated</li> <li>RunTimeStart - String - required: no - running start time</li> <li>RunTimeEnd - String - required: no - running end time</li> <li>InstallByPackage - uint64 - required: no - whether to install by package: 0: no; 1: yes</li> <li>Os - String required: no - operating system (value of DescribeMachineOsList)</li> * @type {Array.<Filter> || null} */ this.Filters = null; /** * Number of items to be returned. It is 10 by default, and the maximum value is 100. * @type {number || null} */ this.Limit = null; /** * Offset. Default value: 0. * @type {number || null} */ this.Offset = null; /** * Sorting method: asc for ascending order or desc for descending order * @type {string || null} */ this.Order = null; /** * Sorting method: [FirstTime|StartTime] * @type {string || null} */ this.By = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Quuid = 'Quuid' in params ? params.Quuid : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); 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 notification entity * @class */ class VulEmergentMsgInfo extends AbstractModel { constructor(){ super(); /** * Vulnerability ID * @type {number || null} */ this.VulId = null; /** * Vulnerability publish time * @type {string || null} */ this.PublishTime = null; /** * Vulnerability name * @type {string || null} */ this.Name = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VulId = 'VulId' in params ? params.VulId : null; this.PublishTime = 'PublishTime' in params ? params.PublishTime : null; this.Name = 'Name' in params ? params.Name : null; } } /** * SearchLog response structure. * @class */ class SearchLogResponse extends AbstractModel { constructor(){ super(); /** * Number of raw logs matching the retrieval criteria * @type {number || null} */ this.Count = null; /** * Pass through the Context value returned by this API, which can access more logs later, with an expiration time of 1 hour. * @type {string || null} */ this.Context = null; /** * Whether all logs meeting the retrieval criteria have been returned. If not, use the Context parameter to retrieve more logs. * @type {boolean || null} */ this.ListOver = null; /** * Whether the returned data is the SQL analysis result * @type {boolean || null} */ this.Analysis = null; /** * Raw logs matching the retrieval criteria * @type {Array.<LogInfo> || 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; } this.Count = 'Count' in params ? params.Count : null; this.Context = 'Context' in params ? params.Context : null; this.ListOver = 'ListOver' in params ? params.ListOver : null; this.Analysis = 'Analysis' in params ? params.Analysis : null; if (params.Data) { this.Data = new Array(); for (let z in params.Data) { let obj = new LogInfo(); obj.deserialize(params.Data[z]); this.Data.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Asset management network interface information * @class */ class AssetNetworkCardInfo extends AbstractModel { constructor(){ super(); /** * Network interface name * @type {string || null} */ this.Name = null; /** * IPv4 address * @type {string || null} */ this.Ip = null; /** * Gateway * @type {string || null} */ this.GateWay = null; /** * MAC address * @type {string || null} */ this.Mac = null; /** * IPv6 address * @type {string || null} */ this.Ipv6 = null; /** * DNS server * @type {string || null} */ this.DnsServer = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Ip = 'Ip' in params ? params.Ip : null; this.GateWay = 'GateWay' in params ? params.GateWay : null; this.Mac = 'Mac' in params ? params.Mac : null; this.Ipv6 = 'Ipv6' in params ? params.Ipv6 : null; this.DnsServer = 'DnsServer' in params ? params.DnsServer : null; } } /** * DescribeAssetWebFrameList request structure. * @class */ class DescribeAssetWebFrameListRequest extends AbstractModel { constructor(){ super(); /** * Query the information on the host with the specified QUUID * @type {string || null} */ this.Quuid = null; /** * Filtering criteria <li>IP - String - required: no - host IP address</li> <li>MachineName - String - required: no - host name</li> <li>InstanceID - string - required: no - instance ID</li> <li>Name - String - required: no - framework name</li> <li>NameStrict - String - required: no - framework name (strict match)</li> <li>Lang - String - required: no - framework language: java/python</li> <li>Type - String - required: no - service type: 0: all 1:Tomcat 2:Apache 3:Nginx 4:WebLogic 5:Websphere 6:JBoss 7:WildFly 8:Jetty 9:IHS 10:Tengine</li> <li>OsType - String - required: no - Windows/Linux</li> <li>Os -String required: no - operating system (value of DescribeMachineOsList)</li> * @type {Array.<Filter> || null} */ this.Filters = null; /** * Offset. Default value: 0. * @type {number || null} */ this.Offset = null; /** * Number of results to be returned. Default value: 10. Maximum value: 100. * @type {number || null} */ this.Limit = null; /** * Sorting method: asc for ascending order or desc for descending order * @type {string || null} */ this.Order = null; /** * Sorting method: [FirstTime|JarCount] * @type {string || null} */ this.By = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Quuid = 'Quuid' in params ? params.Quuid : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Order = 'Order' in params ? params.Order : null; this.By = 'By' in params ? params.By : null; } } /** * DescribeMonthInspectionReport response structure. * @class */ class DescribeMonthInspectionReportResponse extends AbstractModel { constructor(){ super(); /** * Total number * @type {number || null} */ this.TotalCount = null; /** * Inspection report list * @type {Array.<MonthInspectionReport> || null} */ this.List = 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.List) { this.List = new Array(); for (let z in params.List) { let obj = new MonthInspectionReport(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeBaselineHostTop response structure. * @class */ class DescribeBaselineHostTopResponse extends AbstractModel { constructor(){ super(); /** * Top host baseline policy events Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<BaselineHostTopList> || null} */ this.BaselineHostTopList = null; /** * The unique request ID, generated by the server, will be returned for every request (if th