tencentcloud-sdk-nodejs
Version:
230 lines (229 loc) • 8.33 kB
JavaScript
"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");
/**
* dbdc client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("dbdc.tencentcloudapi.com", "2020-10-29", clientConfig);
}
/**
* 该接口(DestroyDBCustomNode)用于销毁 DB Custom 节点。
*/
async DestroyDBCustomNode(req, cb) {
return this.request("DestroyDBCustomNode", req, cb);
}
/**
* 该接口(AddNodesToDBCustomCluster)用于为 DB Custom 集群添加已存在的节点。
*/
async AddNodesToDBCustomCluster(req, cb) {
return this.request("AddNodesToDBCustomCluster", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterResources)用于查询 DB Custom 集群的资源信息。
*/
async DescribeDBCustomClusterResources(req, cb) {
return this.request("DescribeDBCustomClusterResources", req, cb);
}
/**
* 该接口(DescribeDBCustomNodeSecurityGroups)用于查询 DB Custom 节点安全组信息。
*/
async DescribeDBCustomNodeSecurityGroups(req, cb) {
return this.request("DescribeDBCustomNodeSecurityGroups", req, cb);
}
/**
* 本接口用于查询独享集群详情
*/
async DescribeInstanceDetail(req, cb) {
return this.request("DescribeInstanceDetail", req, cb);
}
/**
* 该接口(DescribeDBCustomNodes)用于查询 DB Custom 节点列表。
*/
async DescribeDBCustomNodes(req, cb) {
return this.request("DescribeDBCustomNodes", req, cb);
}
/**
* 该接口(ModifyDBCustomNodeSecurityGroups)用于修改 DB Custom 节点安全组。
*/
async ModifyDBCustomNodeSecurityGroups(req, cb) {
return this.request("ModifyDBCustomNodeSecurityGroups", req, cb);
}
/**
* 根据不同地域不同用户,获取集群列表信息
*/
async DescribeInstances(req, cb) {
return this.request("DescribeInstances", req, cb);
}
/**
* 该接口(CreateDBCustomNodes)用于创建 DB Custom 节点(需支付)。
*/
async CreateDBCustomNodes(req, cb) {
return this.request("CreateDBCustomNodes", req, cb);
}
/**
* 该接口(DescribeDBCustomImages)用于查询 DB Custom 可用的操作系统镜像列表。
*/
async DescribeDBCustomImages(req, cb) {
return this.request("DescribeDBCustomImages", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterNodes)用于查询 DB Custom 集群中的节点列表。
*/
async DescribeDBCustomClusterNodes(req, cb) {
return this.request("DescribeDBCustomClusterNodes", req, cb);
}
/**
* 该接口(DestroyDBCustomCluster)用于销毁 DB Custom 集群。
*/
async DestroyDBCustomCluster(req, cb) {
return this.request("DestroyDBCustomCluster", req, cb);
}
/**
* 该接口(DescribeDBCustomRegions) 用于查询 DB Custom 支持的地域列表。
*/
async DescribeDBCustomRegions(req, cb) {
return this.request("DescribeDBCustomRegions", req, cb);
}
/**
* 本接口用于修改集群名称
*/
async ModifyInstanceName(req, cb) {
return this.request("ModifyInstanceName", req, cb);
}
/**
* 该接口(DescribeDBCustomNodeTypes) 用于查询 DB Custom 节点支持的机型信息。
*/
async DescribeDBCustomNodeTypes(req, cb) {
return this.request("DescribeDBCustomNodeTypes", req, cb);
}
/**
* 该接口(ModifyDBCustomClusterTags)用于修改 DB Custom 集群绑定的标签。
*/
async ModifyDBCustomClusterTags(req, cb) {
return this.request("ModifyDBCustomClusterTags", req, cb);
}
/**
* 本接口用于查询独享集群内的DB实例列表
*/
async DescribeDBInstances(req, cb) {
return this.request("DescribeDBInstances", req, cb);
}
/**
* 该接口(RenewDBCustomNode)用于给 DB Custom 节点续费,或者给已经隔离的实例解除隔离。
*/
async RenewDBCustomNode(req, cb) {
return this.request("RenewDBCustomNode", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterDetail) 用于查询 DB Custom 集群的详情信息。
*/
async DescribeDBCustomClusterDetail(req, cb) {
return this.request("DescribeDBCustomClusterDetail", req, cb);
}
/**
* 该接口 (IsolateDBCustomNode) 用于隔离 DB Custom 节点。
*/
async IsolateDBCustomNode(req, cb) {
return this.request("IsolateDBCustomNode", req, cb);
}
/**
* 本接口用于查询独享集群实例列表
*/
async DescribeInstanceList(req, cb) {
return this.request("DescribeInstanceList", req, cb);
}
/**
* 该接口(CreateDBCustomCluster)用于创建 DB Custom 集群。
*/
async CreateDBCustomCluster(req, cb) {
return this.request("CreateDBCustomCluster", req, cb);
}
/**
* 该接口(RemoveNodesFromDBCustomCluster)用于从 DB Custom 集群移出节点。
*/
async RemoveNodesFromDBCustomCluster(req, cb) {
return this.request("RemoveNodesFromDBCustomCluster", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterNodeConfig)用于查询 DB Custom 集群内节点的配置信息。
*/
async DescribeDBCustomClusterNodeConfig(req, cb) {
return this.request("DescribeDBCustomClusterNodeConfig", req, cb);
}
/**
* 该接口(ModifyDBCustomNodeTags)用于修改 DB Custom 节点绑定的标签。
*/
async ModifyDBCustomNodeTags(req, cb) {
return this.request("ModifyDBCustomNodeTags", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterKubeconfig)用于查询 DB Custom 集群 Kubeconfig。
*/
async DescribeDBCustomClusterKubeconfig(req, cb) {
return this.request("DescribeDBCustomClusterKubeconfig", req, cb);
}
/**
* 本接口用于查询主机列表
*/
async DescribeHostList(req, cb) {
return this.request("DescribeHostList", req, cb);
}
/**
* 该接口(DescribeDBCustomZones) 用于查询指定地域的 DB Custom 可用区列表。
*/
async DescribeDBCustomZones(req, cb) {
return this.request("DescribeDBCustomZones", req, cb);
}
/**
* 该接口(DescribeDBCustomClusterNodeResources)用于查询 DB Custom 集群内节点的资源信息。
*/
async DescribeDBCustomClusterNodeResources(req, cb) {
return this.request("DescribeDBCustomClusterNodeResources", req, cb);
}
/**
* 该接口(ModifyDBCustomClusterNodeConfig)用于修改 DB Custom 集群中节点的配置。
*/
async ModifyDBCustomClusterNodeConfig(req, cb) {
return this.request("ModifyDBCustomClusterNodeConfig", req, cb);
}
/**
* 该接口(DescribeDBCustomTaskStatus)用于查询 DB Custom 任务的状态。
*/
async DescribeDBCustomTaskStatus(req, cb) {
return this.request("DescribeDBCustomTaskStatus", req, cb);
}
/**
* 检查服务相关角色是否已创建
*/
async CheckRoleAuthorized(req, cb) {
return this.request("CheckRoleAuthorized", req, cb);
}
/**
* 该接口(DescribeDBCustomClusters)为 DB Custom 集群列表查询接口。
*/
async DescribeDBCustomClusters(req, cb) {
return this.request("DescribeDBCustomClusters", req, cb);
}
}
exports.Client = Client;