tencentcloud-sdk-nodejs
Version:
74 lines (73 loc) • 2.78 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Client = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */
/*
* 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 abstract_client_1 = require("../../../common/abstract_client");
/**
* bsca client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("bsca.tencentcloudapi.com", "2021-08-11", clientConfig);
}
/**
* 根据输入的组件名、组件类型搜索相应的组件,返回符合条件的组件列表
*/
async SearchKBComponent(req, cb) {
return this.request("SearchKBComponent", req, cb);
}
/**
* 查询特定组件的版本列表
*/
async DescribeKBComponentVersionList(req, cb) {
return this.request("DescribeKBComponentVersionList", req, cb);
}
/**
* 本接口(DescribeKBComponent)用于在知识库中查询开源组件信息。本接口根据用户输入的PURL在知识库中寻找对应的开源组件,其中Name为必填字段。
*/
async DescribeKBComponent(req, cb) {
return this.request("DescribeKBComponent", req, cb);
}
/**
* 本接口(DescribeKBLicense)用于在知识库中查询许可证信息。
*/
async DescribeKBLicense(req, cb) {
return this.request("DescribeKBLicense", req, cb);
}
/**
* 本接口(MatchKBPURLList)用于在知识库中匹配与特征对应的开源组件列表。
*/
async MatchKBPURLList(req, cb) {
return this.request("MatchKBPURLList", req, cb);
}
/**
* 本接口(DescribeKBComponentVulnerability)用于在知识库中查询开源组件的漏洞信息。
*/
async DescribeKBComponentVulnerability(req, cb) {
return this.request("DescribeKBComponentVulnerability", req, cb);
}
/**
* 本接口(DescribeKBVulnerability)用于在知识库中查询漏洞详细信息,支持根据CVE、Vul ID、CNVD ID、CNNVD ID查询。
*/
async DescribeKBVulnerability(req, cb) {
return this.request("DescribeKBVulnerability", req, cb);
}
}
exports.Client = Client;
;