tencentcloud-sdk-nodejs
Version:
134 lines (133 loc) • 3.64 kB
JavaScript
"use strict";
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");
/**
* tem client
* @class
*/
class Client extends abstract_client_1.AbstractClient {
constructor(clientConfig) {
super("tem.tencentcloudapi.com", "2020-12-21", clientConfig);
}
/**
* 编辑环境
*/
async ModifyNamespace(req, cb) {
return this.request("ModifyNamespace", req, cb);
}
/**
* 创建环境
*/
async CreateNamespace(req, cb) {
return this.request("CreateNamespace", req, cb);
}
/**
* 创建或者更新 Ingress 规则
*/
async ModifyIngress(req, cb) {
return this.request("ModifyIngress", req, cb);
}
/**
* 生成包预签名下载链接
*/
async GenerateDownloadUrl(req, cb) {
return this.request("GenerateDownloadUrl", req, cb);
}
/**
* 生成Cos临时秘钥
*/
async CreateCosToken(req, cb) {
return this.request("CreateCosToken", req, cb);
}
/**
* 查询 Ingress 规则
*/
async DescribeIngress(req, cb) {
return this.request("DescribeIngress", req, cb);
}
/**
* 生成Cos临时秘钥
*/
async CreateCosTokenV2(req, cb) {
return this.request("CreateCosTokenV2", req, cb);
}
/**
* 服务部署
*/
async DeployServiceV2(req, cb) {
return this.request("DeployServiceV2", req, cb);
}
/**
* 创建服务
*/
async CreateServiceV2(req, cb) {
return this.request("CreateServiceV2", req, cb);
}
/**
* 查询服务关联的 Ingress 规则列表
*/
async DescribeRelatedIngresses(req, cb) {
return this.request("DescribeRelatedIngresses", req, cb);
}
/**
* 修改服务基本信息
*/
async ModifyServiceInfo(req, cb) {
return this.request("ModifyServiceInfo", req, cb);
}
/**
* 重启实例
*/
async RestartServiceRunPod(req, cb) {
return this.request("RestartServiceRunPod", req, cb);
}
/**
* 绑定云资源
*/
async CreateResource(req, cb) {
return this.request("CreateResource", req, cb);
}
/**
* 获取服务下面运行pod列表
*/
async DescribeServiceRunPodListV2(req, cb) {
return this.request("DescribeServiceRunPodListV2", req, cb);
}
/**
* 查询 Ingress 规则列表
*/
async DescribeIngresses(req, cb) {
return this.request("DescribeIngresses", req, cb);
}
/**
* 获取租户环境列表
*/
async DescribeNamespaces(req, cb) {
return this.request("DescribeNamespaces", req, cb);
}
/**
* 删除 Ingress 规则
*/
async DeleteIngress(req, cb) {
return this.request("DeleteIngress", req, cb);
}
}
exports.Client = Client;