UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,889 lines (1,591 loc) • 1.29 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"); /** * CreateVirusScanAgain request structure. * @class */ class CreateVirusScanAgainRequest extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.TaskId = null; /** * Set of IDs of containers to be scanned * @type {Array.<string> || null} */ this.ContainerIds = null; /** * Whether to scan all timed-out containers * @type {boolean || null} */ this.TimeoutAll = null; /** * New timeout period * @type {number || null} */ this.Timeout = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; this.ContainerIds = 'ContainerIds' in params ? params.ContainerIds : null; this.TimeoutAll = 'TimeoutAll' in params ? params.TimeoutAll : null; this.Timeout = 'Timeout' in params ? params.Timeout : null; } } /** * DescribeSecLogDeliveryKafkaSetting request structure. * @class */ class DescribeSecLogDeliveryKafkaSettingRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * 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; } } /** * Scan for ignored vulnerabilities * @class */ class ScanIgnoreVul extends AbstractModel { constructor(){ super(); /** * Vulnerability name * @type {string || null} */ this.VulName = null; /** * Vulnerability CVE ID * @type {string || null} */ this.CVEID = null; /** * POC ID * @type {string || null} */ this.PocID = null; /** * Number of ignored repository images * @type {number || null} */ this.RegistryImageCount = null; /** * Update time * @type {string || null} */ this.UpdateTime = null; /** * Whether to ignore all images. Valid values: `0` (no); `1` (yes). * @type {number || null} */ this.IsIgnoreAll = null; /** * Number of ignored local images * @type {number || null} */ this.LocalImageCount = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VulName = 'VulName' in params ? params.VulName : null; this.CVEID = 'CVEID' in params ? params.CVEID : null; this.PocID = 'PocID' in params ? params.PocID : null; this.RegistryImageCount = 'RegistryImageCount' in params ? params.RegistryImageCount : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; this.IsIgnoreAll = 'IsIgnoreAll' in params ? params.IsIgnoreAll : null; this.LocalImageCount = 'LocalImageCount' in params ? params.LocalImageCount : null; } } /** * UpdateImageRegistryTimingScanTask response structure. * @class */ class UpdateImageRegistryTimingScanTaskResponse 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; } } /** * DescribeScanIgnoreVulList response structure. * @class */ class DescribeScanIgnoreVulListResponse extends AbstractModel { constructor(){ super(); /** * Total number * @type {number || null} */ this.TotalCount = null; /** * List of vulnerabilities * @type {Array.<ScanIgnoreVul> || 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 ScanIgnoreVul(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyVulDefenceEventStatus request structure. * @class */ class ModifyVulDefenceEventStatusRequest extends AbstractModel { constructor(){ super(); /** * Array of event IDs * @type {Array.<number> || null} */ this.EventIDs = null; /** * Operation status: Valid values: `EVENT_DEALED` (processed); `EVENT_IGNORE` (ignore); `EVENT_ISOLATE_CONTAINER` (isolate the container); `EVENT_DEL` (delete). * @type {string || null} */ this.Status = null; /** * Remarks * @type {string || null} */ this.Remark = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EventIDs = 'EventIDs' in params ? params.EventIDs : null; this.Status = 'Status' in params ? params.Status : null; this.Remark = 'Remark' in params ? params.Remark : null; } } /** * ModifyVirusAutoIsolateExampleSwitch response structure. * @class */ class ModifyVirusAutoIsolateExampleSwitchResponse 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; } } /** * CKafka topic information * @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; } } /** * CreateVulExportJob response structure. * @class */ class CreateVulExportJobResponse extends AbstractModel { constructor(){ super(); /** * Export task ID, which is used to query the task progress on the frontend. * @type {string || null} */ this.JobId = 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.JobId = 'JobId' in params ? params.JobId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeUnfinishRefreshTask response structure. * @class */ class DescribeUnfinishRefreshTaskResponse extends AbstractModel { constructor(){ super(); /** * ID of the last task * @type {number || null} */ this.TaskId = null; /** * Task status. Valid values: `Task_New`, `Task_Running`, `Task_Finish`, `Task_Error`, `Task_NoExist`. `Task_New` and `Task_Running` indicate that a task exists and no new task can be distributed. * @type {string || null} */ this.TaskStatus = 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.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateComponentExportJob request structure. * @class */ class CreateComponentExportJobRequest extends AbstractModel { constructor(){ super(); /** * Image ID * @type {string || null} */ this.ImageID = null; /** * Number of results to be returned. Default value: `10000`. Maximum value: `10000`. * @type {number || null} */ this.Limit = null; /** * Offset. Default value: `0`. * @type {number || null} */ this.Offset = null; /** * Filter <li>ComponentName- String - Required: No - Image component name</li><li>ComponentVersion- String - Required: No - Image component version</li><li>ComponentType- String - Required: No - Image component type</li><li>VulLevel- String - Required: No - Vulnerability severity</li><li>HasVul- String - Required: No - Whether there is a vulnerability. Valid values: `true` (yes); `false` (no). If `ComponentName` is not passed in or is `ALL`, it indicates all.</li> * @type {Array.<AssetFilters> || null} */ this.Filters = null; /** * Sorting field * @type {string || null} */ this.By = null; /** * Sorting order. Valid values: `desc`, `asc`. * @type {string || null} */ this.Order = null; /** * Export field * @type {Array.<string> || null} */ this.ExportField = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ImageID = 'ImageID' in params ? params.ImageID : 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); } } this.By = 'By' in params ? params.By : null; this.Order = 'Order' in params ? params.Order : null; this.ExportField = 'ExportField' in params ? params.ExportField : null; } } /** * Whether to enable the compliance standard * @class */ class ComplianceBenchmarkStandardEnable extends AbstractModel { constructor(){ super(); /** * Compliance standard ID * @type {number || null} */ this.StandardId = null; /** * Whether to enable the compliance standard * @type {boolean || null} */ this.Enable = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StandardId = 'StandardId' in params ? params.StandardId : null; this.Enable = 'Enable' in params ? params.Enable : null; } } /** * CreateNetworkFirewallUndoPublish request structure. * @class */ class CreateNetworkFirewallUndoPublishRequest extends AbstractModel { constructor(){ super(); /** * Cluster ID * @type {string || null} */ this.ClusterId = null; /** * Array of cluster IDs * @type {Array.<number> || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.Id = 'Id' in params ? params.Id : null; } } /** * CreateRefreshTask response structure. * @class */ class CreateRefreshTaskResponse extends AbstractModel { constructor(){ super(); /** * ID of the created cluster check task. `0` indicates that the creation failed. * @type {number || null} */ this.TaskId = null; /** * Result of creating the check task. Valid values: `Succ`, `Failed`. * @type {string || null} */ this.CreateResult = 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.CreateResult = 'CreateResult' in params ? params.CreateResult : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateVulDefenceHostExportJob response structure. * @class */ class CreateVulDefenceHostExportJobResponse extends AbstractModel { constructor(){ super(); /** * Export task ID, which is used to query the task progress on the frontend. * @type {string || null} */ this.JobId = 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.JobId = 'JobId' in params ? params.JobId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Information of a vulnerability in the image * @class */ class ImageVul extends AbstractModel { constructor(){ super(); /** * Vulnerability ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CVEID = null; /** * POC ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.POCID = null; /** * Vulnerability name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Name = null; /** * Component information Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<ComponentsInfo> || null} */ this.Components = null; /** * Category Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Category = null; /** * Category 2 Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CategoryType = null; /** * Risk level Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Level = null; /** * Description Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Des = null; /** * Solution Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OfficialSolution = null; /** * Reference Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Reference = null; /** * Defense solution Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DefenseSolution = null; /** * Submission time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SubmitTime = null; /** * CVSS score Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CvssScore = null; /** * CVSS information Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CvssVector = null; /** * Whether fix is suggested Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IsSuggest = null; /** * Number of the fixed version Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FixedVersions = null; /** * Vulnerability tag. Valid values: `CanBeFixed`, `DynamicLevelPoc`, `DynamicLevelExp`. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.Tag = null; /** * Component name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Component = null; /** * Component version Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Version = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CVEID = 'CVEID' in params ? params.CVEID : null; this.POCID = 'POCID' in params ? params.POCID : null; this.Name = 'Name' in params ? params.Name : null; if (params.Components) { this.Components = new Array(); for (let z in params.Components) { let obj = new ComponentsInfo(); obj.deserialize(params.Components[z]); this.Components.push(obj); } } this.Category = 'Category' in params ? params.Category : null; this.CategoryType = 'CategoryType' in params ? params.CategoryType : null; this.Level = 'Level' in params ? params.Level : null; this.Des = 'Des' in params ? params.Des : null; this.OfficialSolution = 'OfficialSolution' in params ? params.OfficialSolution : null; this.Reference = 'Reference' in params ? params.Reference : null; this.DefenseSolution = 'DefenseSolution' in params ? params.DefenseSolution : null; this.SubmitTime = 'SubmitTime' in params ? params.SubmitTime : null; this.CvssScore = 'CvssScore' in params ? params.CvssScore : null; this.CvssVector = 'CvssVector' in params ? params.CvssVector : null; this.IsSuggest = 'IsSuggest' in params ? params.IsSuggest : null; this.FixedVersions = 'FixedVersions' in params ? params.FixedVersions : null; this.Tag = 'Tag' in params ? params.Tag : null; this.Component = 'Component' in params ? params.Component : null; this.Version = 'Version' in params ? params.Version : null; } } /** * CreateVulImageExportJob response structure. * @class */ class CreateVulImageExportJobResponse extends AbstractModel { constructor(){ super(); /** * Export task ID, which is used to query the task progress on the frontend. * @type {string || null} */ this.JobId = 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.JobId = 'JobId' in params ? params.JobId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Description of the abnormal container process event at runtime * @class */ class AbnormalProcessEventDescription extends AbstractModel { constructor(){ super(); /** * Event rule * @type {string || null} */ this.Description = null; /** * Solution * @type {string || null} */ this.Solution = null; /** * Event remarks Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * Details of the hit rule * @type {AbnormalProcessChildRuleInfo || null} */ this.MatchRule = null; /** * Name of the hit rule. Valid values: `PROXY_TOOL` (proxy); `TRANSFER_CONTROL` (lateral movement); `ATTACK_CMD` (malicious command); `REVERSE_SHELL` (reverse shell); `FILELESS` (fileless execution); `RISK_CMD` (high-risk command); `ABNORMAL_CHILD_PROC` (unusual start found in the child process of the sensitive service); `USER_DEFINED_RULE` (custom rule). * @type {string || null} */ this.RuleName = null; /** * ID of the hit rule * @type {string || null} */ this.RuleId = null; /** * Last processing time of the event Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OperationTime = null; /** * Name of the hit policy. Valid values: `SYSTEM_DEFINED_RULE` (preset policy); name of the custom policy. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.GroupName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Description = 'Description' in params ? params.Description : null; this.Solution = 'Solution' in params ? params.Solution : null; this.Remark = 'Remark' in params ? params.Remark : null; if (params.MatchRule) { let obj = new AbnormalProcessChildRuleInfo(); obj.deserialize(params.MatchRule) this.MatchRule = obj; } this.RuleName = 'RuleName' in params ? params.RuleName : null; this.RuleId = 'RuleId' in params ? params.RuleId : null; this.OperationTime = 'OperationTime' in params ? params.OperationTime : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; } } /** * Cycle of a scheduled task * @class */ class CompliancePeriodTaskRule extends AbstractModel { constructor(){ super(); /** * Execution frequency (days). Valid values: `1`, `3`, `7`. * @type {number || null} */ this.Frequency = null; /** * Execution time in the format of "HH:mm:SS" * @type {string || null} */ this.ExecutionTime = null; /** * Whether to enable Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.Enable = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Frequency = 'Frequency' in params ? params.Frequency : null; this.ExecutionTime = 'ExecutionTime' in params ? params.ExecutionTime : null; this.Enable = 'Enable' in params ? params.Enable : null; } } /** * DescribeVirusScanTimeoutSetting response structure. * @class */ class DescribeVirusScanTimeoutSettingResponse extends AbstractModel { constructor(){ super(); /** * Timeout period in hours Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Timeout = 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.Timeout = 'Timeout' in params ? params.Timeout : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeVulImageList response structure. * @class */ class DescribeVulImageListResponse extends AbstractModel { constructor(){ super(); /** * List of affected images * @type {Array.<VulAffectedImageInfo> || null} */ this.List = null; /** * Total number of images * @type {number || null} */ this.TotalCount = 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.List) { this.List = new Array(); for (let z in params.List) { let obj = new VulAffectedImageInfo(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateVulExportJob request structure. * @class */ class CreateVulExportJobRequest extends AbstractModel { constructor(){ super(); /** * Image ID * @type {string || null} */ this.ImageID = null; /** * Export field * @type {Array.<string> || null} */ this.ExportField = null; /** * Number of results to be returned. Default value: `10000`. Maximum value: `10000`. * @type {number || null} */ this.Limit = null; /** * Offset. Default value: `0`. * @type {number || null} */ this.Offset = null; /** * Filter <li>ComponentName- String - Required: No - Image component name</li><li>ComponentVersion- String - Required: No - Image component version</li><li>ComponentType- String - Required: No - Image component type</li><li>VulLevel- String - Required: No - Vulnerability severity</li><li>HasVul- String - Required: No - Whether there is a vulnerability. Valid values: `true` (yes); `false` (no). If `ComponentName` is not passed in or is `ALL`, it indicates all.</li> * @type {Array.<AssetFilters> || null} */ this.Filters = null; /** * Sorting field * @type {string || null} */ this.By = null; /** * Sorting order. Valid values: `desc`, `asc`. * @type {string || null} */ this.Order = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ImageID = 'ImageID' in params ? params.ImageID : null; this.ExportField = 'ExportField' in params ? params.ExportField : 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); } } this.By = 'By' in params ? params.By : null; this.Order = 'Order' in params ? params.Order : null; } } /** * DescribeNetworkFirewallNamespaceLabelList response structure. * @class */ class DescribeNetworkFirewallNamespaceLabelListResponse extends AbstractModel { constructor(){ super(); /** * Total number of clusters * @type {number || null} */ this.TotalCount = null; /** * Cluster namespace label details * @type {Array.<NetworkClusterNamespaceLabelInfo> || null} */ this.ClusterNamespaceLabelList = 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.ClusterNamespaceLabelList) { this.ClusterNamespaceLabelList = new Array(); for (let z in params.ClusterNamespaceLabelList) { let obj = new NetworkClusterNamespaceLabelInfo(); obj.deserialize(params.ClusterNamespaceLabelList[z]); this.ClusterNamespaceLabelList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Input parameters for `CreateCheckComponent`, which are used to batch install defenders. * @class */ class ClusterCreateComponentItem extends AbstractModel { constructor(){ super(); /** * ID of the cluster for which to install the component * @type {string || null} */ this.ClusterId = null; /** * Cluster region * @type {string || null} */ this.ClusterRegion = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClusterId = 'ClusterId' in params ? params.ClusterId : null; this.ClusterRegion = 'ClusterRegion' in params ? params.ClusterRegion : null; } } /** * DescribeAssetComponentList response structure. * @class */ class DescribeAssetComponentListResponse extends AbstractModel { constructor(){ super(); /** * List of components * @type {Array.<ComponentInfo> || null} */ this.List = null; /** * Total number * @type {number || null} */ this.TotalCount = 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.List) { this.List = new Array(); for (let z in params.List) { let obj = new ComponentInfo(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeVulImageList request structure. * @class */ class DescribeVulImageListRequest extends AbstractModel { constructor(){ super(); /** * POC ID * @type {string || null} */ this.PocID = 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>OnlyAffectedNewestImage- Bool- Required: No - Show only vulnerabilities that affect the latest image tags</li> <li>ImageID- string - Required: No - Image ID</li> <li>ImageName- String - Required: No - Image name</li> <li>HostIP- string - Required: No - Private IP</li> <li>PublicIP- string - Required: No - Public IP</li> <li>ComponentName- string - Required: No - Component name</li> <li>ComponentVersion- string - Required: No - Component version</li> <li>HostName- string - Required: No - Server name</li> * @type {Array.<RunTimeFilters> || null} */ this.Filters = null; /** * Sorting order * @type {string || null} */ this.Order = null; /** * Sorting field * @type {string || null} */ this.By = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PocID = 'PocID' in params ? params.PocID : 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 RunTimeFilters(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Order = 'Order' in params ? params.Order : null; this.By = 'By' in params ? params.By : null; } } /** * DescribeAssetImageRegistryVulList response structure. * @class */ class DescribeAssetImageRegistryVulListResponse extends AbstractModel { constructor(){ super(); /** * List of image vulnerabilities Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<ImageVul> || null} */ this.List = null; /** * Total number Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = 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.List) { this.List = new Array(); for (let z in params.List) { let obj = new ImageVul(); obj.deserialize(params.List[z]); this.List.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Information of the scanned image * @class */ class VulScanImageInfo extends AbstractModel { constructor(){ super(); /** * Image ID * @type {string || null} */ this.ImageID = null; /** * Image name * @type {string || null} */ this.ImageName = null; /** * Image size * @type {number || null} */ this.Size = null; /** * Task status. Valid values: `SCANNING` (scanning); `FAILED` (failed); `FINISHED` (completed); `CANCELED` (canceled). * @type {string || null} */ this.ScanStatus = null; /** * Scan duration Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ScanDuration = null; /** * Number of high-risk vulnerabilities * @type {number || null} */ this.HighLevelVulCount = null; /** * Number of medium-risk vulnerabilities * @type {number || null} */ this.MediumLevelVulCount = null; /** * Number of low-risk vulnerabilities * @type {number || null} */ this.LowLevelVulCount = null; /** * Number of critical vulnerabilities * @type {number || null} */ this.CriticalLevelVulCount = null; /** * ID of the task to scan local images for vulnerabilities * @type {number || null} */ this.TaskID = null; /** * Start time of the vulnerability scan * @type {string || null} */ this.ScanStartTime = null; /** * End time of the vulnerability scan * @type {string || null} */ this.ScanEndTime = null; /** * Cause of the failure. Valid values: `TIMEOUT` (timeout); `TOO_MANY` (too many tasks); `OFFLINE` (offline). * @type {string || null} */ this.ErrorStatus = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ImageID = 'ImageID' in params ? params.ImageID : null; this.ImageName = 'ImageName' in params ? params.ImageName : null; this.Size = 'Size' in params ? params.Size : null; this.ScanStatus = 'ScanStatus' in params ? params.ScanStatus : null; this.ScanDuration = 'ScanDuration' in params ? params.ScanDuration : null; this.HighLevelVulCount = 'HighLevelVulCount' in params ? params.HighLevelVulCount : null; this.MediumLevelVulCount = 'MediumLevelVulCount' in params ? params.MediumLevelVulCount : null; this.LowLevelVulCount = 'LowLevelVulCount' in params ? params.LowLevelVulCount : null; this.CriticalLevelVulCount = 'CriticalLevelVulCount' in params ? params.CriticalLevelVulCount : null; this.TaskID = 'TaskID' in params ? params.TaskID : null; this.ScanStartTime = 'ScanStartTime' in params ? params.ScanStartTime : null; this.ScanEndTime = 'ScanEndTime' in params ? params.ScanEndTime : null; this.ErrorStatus = 'ErrorStatus' in params ? params.ErrorStatus : null; } } /** * AddAssetImageRegistryRegistryDetail response structure. * @class */ class AddAssetImageRegistryRegistryDetailResponse extends AbstractModel { constructor(){ super(); /** * Connection error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.HealthCheckErr = null; /** * Name error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.NameRepeatErr = null; /** * Unique repository ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RegistryId = 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.HealthCheckErr = 'HealthCheckErr' in params ? params.HealthCheckErr : null; this.NameRepeatErr = 'NameRepeatErr' in params ? params.NameRepeatErr : null; this.RegistryId = 'RegistryId' in params ? params.RegistryId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteCompliancePolicyItemFromWhitelist request structure. * @class */ class DeleteCompliancePolicyItemFromWhitelistRequest extends AbstractModel { constructor(){ super(); /** * List of IDs of specified allowed items * @type {Array.<number> || null} */ this.WhitelistIdSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.WhitelistIdSet = 'WhitelistIdSet' in params ? params.WhitelistIdSet : null; } } /** * DescribeAssetImageDetail request structure. * @class */ class DescribeAssetImageDetailRequest extends AbstractModel { constructor(){ super(); /** * Image ID * @type {string || null} */ this.ImageID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ImageID = 'ImageID' in params ? params.ImageID : null; } } /** * Local images ignored by the vulnerability scan * @class */ class VulIgnoreLocalImage extends AbstractModel { constructor(){ super(); /** * Record ID * @type {number || null} */ this.ID = null; /** * Image ID * @type {string || null} */ this.ImageID = null; /** * Image name * @type {string || null} */ this.ImageName = null; /** * Image size * @type {number || null} */ this.ImageSize = null; /** * POC ID * @type {string || null} */ this.PocID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ID = 'ID' in params ? params.ID : null; this.ImageID = 'ImageID' in params ? params.ImageID : null; this.ImageName = 'ImageName' in params ? params.ImageName : null; this.ImageSize = 'ImageSize' in params ? params.ImageSize : null; this.PocID = 'PocID' in params ? params.PocID : null; } } /** * ModifyK8sApiAbnormalRuleInfo response structure. * @class */ class ModifyK8sApiAbnormalRuleInfoResponse 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; } } /** * ModifyAssetImageScanStop response structure. * @class */ class ModifyAssetImageScanStopResponse extends AbstractModel { constructor(){ super(); /** * Paused * @type {string || null} */ this.Status = 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.Status = 'Status' in params ? params.Status : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * AddAssetImageRegistryRegistryDetail request structure. * @class */ class AddAssetImageRegistryRegistryDetailRequest extends AbstractModel { constructor(){ super(); /** * Repository name * @type {string || null} */ this.Name = null; /** * Username * @type {string || null} */ this.Username = null; /** * Password * @type {string || null} */ this.Password = null; /** * Repository URL * @type {string || null} */ this.Url = null; /** * Repository type, which can be `harbor`. * @type {string || null} */ this.RegistryType = null; /** * Network type, which can be `public` (public network). * @type {string || null} */ this.NetType = null; /** * Repository version * @type {string || null} */ this.RegistryVersion = null; /** * Region. Default value: `default`. * @type {string || null} */ this.RegistryRegion = null; /** * Speed limit * @type {number || null} */ this.SpeedLimit = null; /** * Valid values: `0` (secure mode with certificate verification, which is the default value); `1` (unsecure mode that skips certificate verification). * @type {number || null} */ this.Insecure = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null;