UNPKG

tencentcloud-sdk-nodejs

Version:
57 lines (55 loc) 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Client = void 0; /* eslint-disable @typescript-eslint/no-unused-vars */ /* * Copyright (c) 2018 Tencent. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ const abstract_client_1 = require("../../../common/abstract_client"); /** * ctsdb client * @class */ class Client extends abstract_client_1.AbstractClient { constructor(clientConfig) { super("ctsdb.tencentcloudapi.com", "2023-02-02", clientConfig); } /** * 查询实例列表及详情 */ async DescribeClusters(req, cb) { return this.request("DescribeClusters", req, cb); } /** * 查询实例详情 */ async DescribeClusterDetail(req, cb) { return this.request("DescribeClusterDetail", req, cb); } /** * 查看数据库/列表 ``` "Database":{ "ClusterID":"ctsdbi-rebg0ghl", "Name":"" //不指定则查询实例下所有db } ``` */ async DescribeDatabases(req, cb) { return this.request("DescribeDatabases", req, cb); } } exports.Client = Client;