tencentcloud-sdk-nodejs-intl-en
Version:
2,141 lines (1,809 loc) • 201 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");
/**
* ModifyAutoOpenProVersionConfig request structure.
* @class
*/
class ModifyAutoOpenProVersionConfigRequest extends AbstractModel {
constructor(){
super();
/**
* Auto-Activation status.
<li>CLOSE: disabled</li>
<li>OPEN: enabled</li>
* @type {string || null}
*/
this.Status = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Status = 'Status' in params ? params.Status : null;
}
}
/**
* DescribeProcessTaskStatus response structure.
* @class
*/
class DescribeProcessTaskStatusResponse extends AbstractModel {
constructor(){
super();
/**
* Task status.
<li>COMPLETE: completed (at this point, you can call the `DescribeProcesses` API to get the list of real-time processes)</li>
<li>AGENT_OFFLINE: CWP agent is offline</li>
<li>COLLECTING: getting process</li>
<li>FAILED: failed to get processes</li>
* @type {string || null}
*/
this.Status = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Status = 'Status' in params ? params.Status : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeAlarmAttribute response structure.
* @class
*/
class DescribeAlarmAttributeResponse extends AbstractModel {
constructor(){
super();
/**
* CWP deactivation alarm status:
<li>OPEN: alarm enabled</li>
<li>CLOSE: alarm disabled</li>
* @type {string || null}
*/
this.Offline = null;
/**
* Trojan discovery alarm status:
<li>OPEN: alarm enabled</li>
<li>CLOSE: alarm disabled</li>
* @type {string || null}
*/
this.Malware = null;
/**
* Unusual login location discovery alarm status:
<li>OPEN: alarm enabled</li>
<li>CLOSE: alarm disabled</li>
* @type {string || null}
*/
this.NonlocalLogin = null;
/**
* Brute force attack success alarm status:
<li>OPEN: alarm enabled</li>
<li>CLOSE: alarm disabled</li>
* @type {string || null}
*/
this.CrackSuccess = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Offline = 'Offline' in params ? params.Offline : null;
this.Malware = 'Malware' in params ? params.Malware : null;
this.NonlocalLogin = 'NonlocalLogin' in params ? params.NonlocalLogin : null;
this.CrackSuccess = 'CrackSuccess' in params ? params.CrackSuccess : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeWeeklyReportBruteAttacks response structure.
* @class
*/
class DescribeWeeklyReportBruteAttacksResponse extends AbstractModel {
constructor(){
super();
/**
* Brute force attack array in weekly CWP Pro report.
* @type {Array.<WeeklyReportBruteAttack> || null}
*/
this.WeeklyReportBruteAttacks = null;
/**
* Total number of records.
* @type {number || null}
*/
this.TotalCount = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.WeeklyReportBruteAttacks) {
this.WeeklyReportBruteAttacks = new Array();
for (let z in params.WeeklyReportBruteAttacks) {
let obj = new WeeklyReportBruteAttack();
obj.deserialize(params.WeeklyReportBruteAttacks[z]);
this.WeeklyReportBruteAttacks.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeAgentVuls request structure.
* @class
*/
class DescribeAgentVulsRequest extends AbstractModel {
constructor(){
super();
/**
* Vulnerability type.
<li>WEB: web application vulnerability</li>
<li>SYSTEM: system component vulnerability</li>
<li>BASELINE: security baseline</li>
* @type {string || null}
*/
this.VulType = null;
/**
* Agent `UUID`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Status - String - Required: No - Filter by status (UN_OPERATED: to be processed, FIXED: fixed)
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.VulType = 'VulType' in params ? params.VulType : null;
this.Uuid = 'Uuid' in params ? params.Uuid : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* AddMachineTag response structure.
* @class
*/
class AddMachineTagResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. 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;
}
}
/**
* Usual login location
* @class
*/
class UsualPlace extends AbstractModel {
constructor(){
super();
/**
* ID.
* @type {number || null}
*/
this.Id = null;
/**
* CWP agent `UUID`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Country/Region ID.
* @type {number || null}
*/
this.CountryId = null;
/**
* Province/State ID.
* @type {number || null}
*/
this.ProvinceId = null;
/**
* City ID.
* @type {number || null}
*/
this.CityId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.CountryId = 'CountryId' in params ? params.CountryId : null;
this.ProvinceId = 'ProvinceId' in params ? params.ProvinceId : null;
this.CityId = 'CityId' in params ? params.CityId : null;
}
}
/**
* DescribeAccounts request structure.
* @class
*/
class DescribeAccountsRequest extends AbstractModel {
constructor(){
super();
/**
* CWP agent `Uuid`. Either `Username` or `Uuid` must be specified. If `Uuid` is specified, it indicates to query the information list under the specified server.
* @type {string || null}
*/
this.Uuid = null;
/**
* CWP agent `Uuid`. Either `Username` or `Uuid` must be specified. If `Username` is specified, it indicates to query the information list under the specified username.
* @type {string || null}
*/
this.Username = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Username - String - Required: No - Account name</li>
<li>Privilege - String - Required: No - Account name (ORDINARY: ordinary account, SUPPER: super admin account)</li>
<li>MachineIp - String - Required: No - Private IP of server</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.Username = 'Username' in params ? params.Username : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* Vulnerability data in weekly CWP Pro report.
* @class
*/
class WeeklyReportVul extends AbstractModel {
constructor(){
super();
/**
* Private IP of server.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Vulnerability name.
* @type {string || null}
*/
this.VulName = null;
/**
* Vulnerability type.
<li> WEB: web vulnerability</li>
<li> SYSTEM: system component vulnerability</li>
<li> BASELINE: security baseline</li>
* @type {string || null}
*/
this.VulType = null;
/**
* Vulnerability description.
* @type {string || null}
*/
this.Description = null;
/**
* Vulnerability status.
<li> UN_OPERATED: to be processed</li>
<li> SCANING: scanning</li>
<li> FIXED: fixed</li>
* @type {string || null}
*/
this.VulStatus = null;
/**
* Last scanned time.
* @type {string || null}
*/
this.LastScanTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.VulName = 'VulName' in params ? params.VulName : null;
this.VulType = 'VulType' in params ? params.VulType : null;
this.Description = 'Description' in params ? params.Description : null;
this.VulStatus = 'VulStatus' in params ? params.VulStatus : null;
this.LastScanTime = 'LastScanTime' in params ? params.LastScanTime : null;
}
}
/**
* DescribeWeeklyReportBruteAttacks request structure.
* @class
*/
class DescribeWeeklyReportBruteAttacksRequest extends AbstractModel {
constructor(){
super();
/**
* Weekly CWP Pro report start time.
* @type {string || null}
*/
this.BeginDate = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BeginDate = 'BeginDate' in params ? params.BeginDate : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
}
}
/**
* CreateUsualLoginPlaces request structure.
* @class
*/
class CreateUsualLoginPlacesRequest extends AbstractModel {
constructor(){
super();
/**
* CWP agent `UUID` array.
* @type {Array.<string> || null}
*/
this.Uuids = null;
/**
* Login region information array.
* @type {Array.<Place> || null}
*/
this.Places = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuids = 'Uuids' in params ? params.Uuids : null;
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);
}
}
}
}
/**
* DescribeProcessTaskStatus request structure.
* @class
*/
class DescribeProcessTaskStatusRequest extends AbstractModel {
constructor(){
super();
/**
* CWP agent `Uuid`.
* @type {string || null}
*/
this.Uuid = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : null;
}
}
/**
* Region information
* @class
*/
class RegionInfo extends AbstractModel {
constructor(){
super();
/**
* Region, such as `ap-guangzhou`, `ap-shanghai` and `ap-beijing`
* @type {string || null}
*/
this.Region = null;
/**
* Region name, such as `South China (Guangzhou)`, `East China (Shanghai)`, and `North China (Beijing)`
* @type {string || null}
*/
this.RegionName = null;
/**
* Region ID
* @type {number || null}
*/
this.RegionId = null;
/**
* Region code, such as `gz`, `sh`, and `bj`
* @type {string || null}
*/
this.RegionCode = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Region = 'Region' in params ? params.Region : null;
this.RegionName = 'RegionName' in params ? params.RegionName : null;
this.RegionId = 'RegionId' in params ? params.RegionId : null;
this.RegionCode = 'RegionCode' in params ? params.RegionCode : null;
}
}
/**
* ModifyAlarmAttribute request structure.
* @class
*/
class ModifyAlarmAttributeRequest extends AbstractModel {
constructor(){
super();
/**
* Alarm item.
<li>Offline: CWP is offline</li>
<li>Malware: trojan event</li>
<li>NonlocalLogin: unusual login location discovered</li>
<li>CrackSuccess: brute force attack succeeded</li>
* @type {string || null}
*/
this.Attribute = null;
/**
* Alarm item attributes.
<li>CLOSE: disabled</li>
<li>OPEN: enabled</li>
* @type {string || null}
*/
this.Value = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Attribute = 'Attribute' in params ? params.Attribute : null;
this.Value = 'Value' in params ? params.Value : null;
}
}
/**
* Component statistics.
* @class
*/
class ComponentStatistics extends AbstractModel {
constructor(){
super();
/**
* Component ID.
* @type {number || null}
*/
this.Id = null;
/**
* Number of servers.
* @type {number || null}
*/
this.MachineNum = null;
/**
* Component name.
* @type {string || null}
*/
this.ComponentName = null;
/**
* Component type.
<li>WEB: web component</li>
<li>SYSTEM: system component</li>
* @type {string || null}
*/
this.ComponentType = null;
/**
* Component description.
* @type {string || null}
*/
this.Description = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.MachineNum = 'MachineNum' in params ? params.MachineNum : null;
this.ComponentName = 'ComponentName' in params ? params.ComponentName : null;
this.ComponentType = 'ComponentType' in params ? params.ComponentType : null;
this.Description = 'Description' in params ? params.Description : null;
}
}
/**
* ExportMalwares request structure.
* @class
*/
class ExportMalwaresRequest extends AbstractModel {
constructor(){
super();
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
}
}
/**
* DescribeProcesses response structure.
* @class
*/
class DescribeProcessesResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of records in process list.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Process list data array.
* @type {Array.<Process> || null}
*/
this.Processes = null;
/**
* The unique request ID, which is returned for each request. 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.Processes) {
this.Processes = new Array();
for (let z in params.Processes) {
let obj = new Process();
obj.deserialize(params.Processes[z]);
this.Processes.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Trojan data in weekly CWP Pro report.
* @class
*/
class WeeklyReportMalware extends AbstractModel {
constructor(){
super();
/**
* Server IP.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Trojan file path.
* @type {string || null}
*/
this.FilePath = null;
/**
* Trojan file MD5 value.
* @type {string || null}
*/
this.Md5 = null;
/**
* Trojan discovery time.
* @type {string || null}
*/
this.FindTime = null;
/**
* Current trojan status.
<li>UN_OPERATED: not processed</li>
<li>SEGREGATED: isolated</li>
<li>TRUSTED: trusted</li>
<li>SEPARATING: isolating</li>
<li>RECOVERING: recovering</li>
* @type {string || null}
*/
this.Status = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.FilePath = 'FilePath' in params ? params.FilePath : null;
this.Md5 = 'Md5' in params ? params.Md5 : null;
this.FindTime = 'FindTime' in params ? params.FindTime : null;
this.Status = 'Status' in params ? params.Status : null;
}
}
/**
* DescribeBruteAttacks request structure.
* @class
*/
class DescribeBruteAttacksRequest extends AbstractModel {
constructor(){
super();
/**
* Agent `Uuid`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Keywords - String - Required: No - Query keywords</li>
<li>Status - String - Required: No - Query status (FAILED: brute force attack failed, SUCCESS: brute force attack succeeded)</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : 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);
}
}
this.Limit = 'Limit' in params ? params.Limit : null;
}
}
/**
* DescribeSecurityTrends request structure.
* @class
*/
class DescribeSecurityTrendsRequest extends AbstractModel {
constructor(){
super();
/**
* Start time.
* @type {string || null}
*/
this.BeginDate = null;
/**
* End time.
* @type {string || null}
*/
this.EndDate = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BeginDate = 'BeginDate' in params ? params.BeginDate : null;
this.EndDate = 'EndDate' in params ? params.EndDate : null;
}
}
/**
* Account list information.
* @class
*/
class Account extends AbstractModel {
constructor(){
super();
/**
* Unique ID.
* @type {number || null}
*/
this.Id = null;
/**
* CWP agent `Uuid`
* @type {string || null}
*/
this.Uuid = null;
/**
* Private IP of server.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Server name.
* @type {string || null}
*/
this.MachineName = null;
/**
* Account name.
* @type {string || null}
*/
this.Username = null;
/**
* Account group.
* @type {string || null}
*/
this.Groups = null;
/**
* Account type.
<li>ORDINARY: ordinary account</li>
<li>SUPPER: super admin account</li>
* @type {string || null}
*/
this.Privilege = null;
/**
* Account creation time.
* @type {string || null}
*/
this.AccountCreateTime = null;
/**
* Account last login time.
* @type {string || null}
*/
this.LastLoginTime = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.MachineName = 'MachineName' in params ? params.MachineName : null;
this.Username = 'Username' in params ? params.Username : null;
this.Groups = 'Groups' in params ? params.Groups : null;
this.Privilege = 'Privilege' in params ? params.Privilege : null;
this.AccountCreateTime = 'AccountCreateTime' in params ? params.AccountCreateTime : null;
this.LastLoginTime = 'LastLoginTime' in params ? params.LastLoginTime : null;
}
}
/**
* RescanImpactedHost request structure.
* @class
*/
class RescanImpactedHostRequest extends AbstractModel {
constructor(){
super();
/**
* Vulnerability ID.
* @type {number || null}
*/
this.Id = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
}
}
/**
* Brute force attack list
* @class
*/
class BruteAttack extends AbstractModel {
constructor(){
super();
/**
* Event ID.
* @type {number || null}
*/
this.Id = null;
/**
* Server IP.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Brute force attack event status
<li>BRUTEATTACK_FAIL_ACCOUNT: brute force attack event - failure (the account exists)</li>
<li>BRUTEATTACK_FAIL_NOACCOUNT: brute force attack event - failure (the account does not exist)</li>
<li>BRUTEATTACK_SUCCESS: brute force attack event - success </li>
* @type {string || null}
*/
this.Status = null;
/**
* Username.
* @type {string || null}
*/
this.UserName = null;
/**
* City ID.
* @type {number || null}
*/
this.City = null;
/**
* Country/Region ID.
* @type {number || null}
*/
this.Country = null;
/**
* Province/State ID.
* @type {number || null}
*/
this.Province = null;
/**
* Source IP.
* @type {string || null}
*/
this.SrcIp = null;
/**
* Number of attempts.
* @type {number || null}
*/
this.Count = null;
/**
* Occurrence time.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Server name.
* @type {string || null}
*/
this.MachineName = null;
/**
* CWP agent `UUID`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Whether the server enables CWP Pro.
* @type {boolean || null}
*/
this.IsProVersion = null;
/**
* Whether the server is banned.
* @type {string || null}
*/
this.BanStatus = null;
/**
* Server `UUID`
* @type {string || null}
*/
this.Quuid = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.Status = 'Status' in params ? params.Status : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.City = 'City' in params ? params.City : null;
this.Country = 'Country' in params ? params.Country : null;
this.Province = 'Province' in params ? params.Province : null;
this.SrcIp = 'SrcIp' in params ? params.SrcIp : null;
this.Count = 'Count' in params ? params.Count : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.MachineName = 'MachineName' in params ? params.MachineName : null;
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.IsProVersion = 'IsProVersion' in params ? params.IsProVersion : null;
this.BanStatus = 'BanStatus' in params ? params.BanStatus : null;
this.Quuid = 'Quuid' in params ? params.Quuid : null;
}
}
/**
* DescribeOpenPorts request structure.
* @class
*/
class DescribeOpenPortsRequest extends AbstractModel {
constructor(){
super();
/**
* CWP agent `Uuid`. Either `Port` or `Uuid` must be specified. If `Uuid` is specified, it indicates to query the information list under the specified server.
* @type {string || null}
*/
this.Uuid = null;
/**
* Open port number. Either `Port` or `Uuid` must be specified. If `Port` is specified, it indicates to query the information list under the specified port.
* @type {number || null}
*/
this.Port = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Port - Uint64 - Required: No - Port number</li>
<li>ProcessName - String - Required: No - Process name</li>
<li>MachineIp - String - Required: No - Private IP of server</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.Port = 'Port' in params ? params.Port : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* DescribeImpactedHosts request structure.
* @class
*/
class DescribeImpactedHostsRequest extends AbstractModel {
constructor(){
super();
/**
* Vulnerability category ID.
* @type {number || null}
*/
this.VulId = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Status - String - Required: No - Filter by status (UN_OPERATED: to be processed, FIXED: fixed)</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.VulId = 'VulId' in params ? params.VulId : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* DescribeMaliciousRequests response structure.
* @class
*/
class DescribeMaliciousRequestsResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of records.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Malicious request record array.
* @type {Array.<MaliciousRequest> || null}
*/
this.MaliciousRequests = null;
/**
* The unique request ID, which is returned for each request. 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.MaliciousRequests) {
this.MaliciousRequests = new Array();
for (let z in params.MaliciousRequests) {
let obj = new MaliciousRequest();
obj.deserialize(params.MaliciousRequests[z]);
this.MaliciousRequests.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Unusual login location
* @class
*/
class NonLocalLoginPlace extends AbstractModel {
constructor(){
super();
/**
* Event ID.
* @type {number || null}
*/
this.Id = null;
/**
* Server IP.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Login status
<li>NON_LOCAL_LOGIN: unusual login location</li>
<li>NORMAL_LOGIN: intended login</li>
* @type {string || null}
*/
this.Status = null;
/**
* Username.
* @type {string || null}
*/
this.UserName = null;
/**
* City ID.
* @type {number || null}
*/
this.City = null;
/**
* Country/Region ID.
* @type {number || null}
*/
this.Country = null;
/**
* Province/State ID.
* @type {number || null}
*/
this.Province = null;
/**
* Login IP.
* @type {string || null}
*/
this.SrcIp = null;
/**
* Server name.
* @type {string || null}
*/
this.MachineName = null;
/**
* Login time.
* @type {string || null}
*/
this.LoginTime = null;
/**
* CWP agent `Uuid`.
* @type {string || null}
*/
this.Uuid = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.Status = 'Status' in params ? params.Status : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.City = 'City' in params ? params.City : null;
this.Country = 'Country' in params ? params.Country : null;
this.Province = 'Province' in params ? params.Province : null;
this.SrcIp = 'SrcIp' in params ? params.SrcIp : null;
this.MachineName = 'MachineName' in params ? params.MachineName : null;
this.LoginTime = 'LoginTime' in params ? params.LoginTime : null;
this.Uuid = 'Uuid' in params ? params.Uuid : null;
}
}
/**
* CreateProcessTask response structure.
* @class
*/
class CreateProcessTaskResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. 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;
}
}
/**
* Security event message data.
* @class
*/
class SecurityDynamic extends AbstractModel {
constructor(){
super();
/**
* CWP agent `UUID`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Security event occurrence time.
* @type {string || null}
*/
this.EventTime = null;
/**
* Security event type.
<li>MALWARE: trojan event</li>
<li>NON_LOCAL_LOGIN: unusual login location</li>
<li>BRUTEATTACK_SUCCESS: brute force attack succeeded</li>
<li>VUL: vulnerability</li>
<li>BASELINE: security baseline</li>
* @type {string || null}
*/
this.EventType = null;
/**
* Security event message.
* @type {string || null}
*/
this.Message = null;
/**
* Security event level.
<li>RISK: severe</li>
<li>HIGH: high</li>
<li>NORMAL: medium</li>
<li>LOW: low</li>
* @type {string || null}
*/
this.SecurityLevel = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.EventTime = 'EventTime' in params ? params.EventTime : null;
this.EventType = 'EventType' in params ? params.EventType : null;
this.Message = 'Message' in params ? params.Message : null;
this.SecurityLevel = 'SecurityLevel' in params ? params.SecurityLevel : null;
}
}
/**
* DescribeComponents request structure.
* @class
*/
class DescribeComponentsRequest extends AbstractModel {
constructor(){
super();
/**
* CWP agent `Uuid`. Either `Uuid` or `ComponentId` must be specified. If `Uuid` is specified, it indicates to query the information list under the specified server.
* @type {string || null}
*/
this.Uuid = null;
/**
* Component ID. Either `Uuid` or `ComponentId` must be specified. If `ComponentId` is specified, it indicates to query the information list under the specified component.
* @type {number || null}
*/
this.ComponentId = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>ComponentVersion - String - Required: No - Component version number</li>
<li>MachineIp - String - Required: No - Private IP of server</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : null;
this.ComponentId = 'ComponentId' in params ? params.ComponentId : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* DescribeNonlocalLoginPlaces request structure.
* @class
*/
class DescribeNonlocalLoginPlacesRequest extends AbstractModel {
constructor(){
super();
/**
* Agent `Uuid`.
* @type {string || null}
*/
this.Uuid = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Keywords - String - Required: No - Query keywords</li>
<li>Status - String - Required: No - Login status (NON_LOCAL_LOGIN: unusual login location, NORMAL_LOGIN: intended login)</li>
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Uuid = 'Uuid' in params ? params.Uuid : 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 Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* DeleteMachineTag request structure.
* @class
*/
class DeleteMachineTagRequest extends AbstractModel {
constructor(){
super();
/**
* Associated tag ID
* @type {number || null}
*/
this.Rid = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Rid = 'Rid' in params ? params.Rid : null;
}
}
/**
* Port statistics list
* @class
*/
class OpenPortStatistics extends AbstractModel {
constructor(){
super();
/**
* Port number
* @type {number || null}
*/
this.Port = null;
/**
* Number of servers
* @type {number || null}
*/
this.MachineNum = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Port = 'Port' in params ? params.Port : null;
this.MachineNum = 'MachineNum' in params ? params.MachineNum : null;
}
}
/**
* DescribeHistoryAccounts response structure.
* @class
*/
class DescribeHistoryAccountsResponse extends AbstractModel {
constructor(){
super();
/**
* Total number of records in account change history list.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Account change history data array.
* @type {Array.<HistoryAccount> || null}
*/
this.HistoryAccounts = null;
/**
* The unique request ID, which is returned for each request. 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.HistoryAccounts) {
this.HistoryAccounts = new Array();
for (let z in params.HistoryAccounts) {
let obj = new HistoryAccount();
obj.deserialize(params.HistoryAccounts[z]);
this.HistoryAccounts.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Server vulnerability information
* @class
*/
class AgentVul extends AbstractModel {
constructor(){
super();
/**
* Vulnerability ID.
* @type {number || null}
*/
this.Id = null;
/**
* Server IP.
* @type {string || null}
*/
this.MachineIp = null;
/**
* Vulnerability name.
* @type {string || null}
*/
this.VulName = null;
/**
* Vulnerability severity level.
<li>HIGH: high</li>
<li>MIDDLE: medium</li>
<li>LOW: low</li>
<li>NOTICE: notice</li>
* @type {string || null}
*/
this.VulLevel = null;
/**
* Last scanned time.
* @type {string || null}
*/
this.LastScanTime = null;
/**
* Vulnerability description.
* @type {string || null}
*/
this.Description = null;
/**
* Vulnerability category ID.
* @type {number || null}
*/
this.VulId = null;
/**
* Vulnerability status.
<li>UN_OPERATED: to be processed</li>
<li>FIXED: fixed</li>
* @type {string || null}
*/
this.VulStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.MachineIp = 'MachineIp' in params ? params.MachineIp : null;
this.VulName = 'VulName' in params ? params.VulName : null;
this.VulLevel = 'VulLevel' in params ? params.VulLevel : null;
this.LastScanTime = 'LastScanTime' in params ? params.LastScanTime : null;
this.Description = 'Description' in params ? params.Description : null;
this.VulId = 'VulId' in params ? params.VulId : null;
this.VulStatus = 'VulStatus' in params ? params.VulStatus : null;
}
}
/**
* UntrustMalwares request structure.
* @class
*/
class UntrustMalwaresRequest extends AbstractModel {
constructor(){
super();
/**
* Trojan event ID array. Up to 200 IDs can be processed at a time.
* @type {Array.<number> || null}
*/
this.Ids = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Ids = 'Ids' in params ? params.Ids : null;
}
}
/**
* DescribeWeeklyReportVuls request structure.
* @class
*/
class DescribeWeeklyReportVulsRequest extends AbstractModel {
constructor(){
super();
/**
* Weekly CWP Pro report start time.
* @type {string || null}
*/
this.BeginDate = null;
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.BeginDate = 'BeginDate' in params ? params.BeginDate : null;
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
}
}
/**
* DescribeLoginWhiteList request structure.
* @class
*/
class DescribeLoginWhiteListRequest extends AbstractModel {
constructor(){
super();
/**
* Number of results to be returned. Default value: 10. Maximum value: 100.
* @type {number || null}
*/
this.Limit = null;
/**
* Offset. Default value: 0.
* @type {number || null}
*/
this.Offset = null;
/**
* Filter.
<li>Keywords - String - Required: No - Query keywords</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);
}
}
}
}
/**
* UntrustMalwares response structure.
* @class
*/
class UntrustMalwaresResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, which is returned for each request. 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;
}
}
/**
* UntrustMaliciousRequest request structure.
* @class
*/
class UntrustMaliciousRequestRequest extends AbstractModel {
constructor(){
super();
/**
* Trusted record ID.
* @type {number || null}
*/
this.Id = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
}
}
/**
* DescribeComponentInfo response structure.
* @class
*/
class DescribeComponentInfoResponse extends AbstractModel {
constructor(){
super();
/**
* Component ID.
* @type {number || null}
*/
this.Id = null;
/**
* Component name.
* @type {string || null}
*/
this.ComponentName = null;
/**
* Component type.
<li>WEB: web component</li>
<li>SYSTEM: system component</li>
* @type {string || null}
*/
this.ComponentType = null;
/**
* Component's official website.
* @type {string || null}
*/
this.Homepage = null;
/**
* Component description.
* @type {string || null}
*/
this.Description = null;
/**
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ?