2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
svp_client.ts 3.17 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-07-06 00:33 +08:00 . release 4.1.70
/* 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.
*/
import { AbstractClient } from "../../../common/abstract_client"
import { ClientConfig } from "../../../common/interface"
import {
CreateSavingPlanOrderRequest,
DescribeSavingPlanCoverageRequest,
CreateSavingPlanOrderResponse,
DescribeSavingPlanDeductRequest,
SavingPlanOverviewDetail,
SavingPlanCoverageRate,
DescribeSavingPlanUsageRequest,
SavingPlanDeductDetail,
SavingPlanCoverageDetail,
DescribeSavingPlanOverviewResponse,
DescribeSavingPlanUsageResponse,
DescribeSavingPlanDeductResponse,
DescribeSavingPlanOverviewRequest,
SavingPlanUsageDetail,
DescribeSavingPlanCoverageResponse,
} from "./svp_models"
/**
* svp client
* @class
*/
export class Client extends AbstractClient {
constructor(clientConfig: ClientConfig) {
super("svp.tencentcloudapi.com", "2024-01-25", clientConfig)
}
/**
* 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
*/
async DescribeSavingPlanCoverage(
req: DescribeSavingPlanCoverageRequest,
cb?: (error: string, rep: DescribeSavingPlanCoverageResponse) => void
): Promise<DescribeSavingPlanCoverageResponse> {
return this.request("DescribeSavingPlanCoverage", req, cb)
}
/**
* 查用当前用户明细节省计划查询时段内的使用情况
*/
async DescribeSavingPlanUsage(
req: DescribeSavingPlanUsageRequest,
cb?: (error: string, rep: DescribeSavingPlanUsageResponse) => void
): Promise<DescribeSavingPlanUsageResponse> {
return this.request("DescribeSavingPlanUsage", req, cb)
}
/**
* 查用当前用户明细节省计划总览查询时段内的使用情况
*/
async DescribeSavingPlanOverview(
req: DescribeSavingPlanOverviewRequest,
cb?: (error: string, rep: DescribeSavingPlanOverviewResponse) => void
): Promise<DescribeSavingPlanOverviewResponse> {
return this.request("DescribeSavingPlanOverview", req, cb)
}
/**
* 创建节省计划订单
*/
async CreateSavingPlanOrder(
req: CreateSavingPlanOrderRequest,
cb?: (error: string, rep: CreateSavingPlanOrderResponse) => void
): Promise<CreateSavingPlanOrderResponse> {
return this.request("CreateSavingPlanOrder", req, cb)
}
/**
* 查询节省计划抵扣明细
*/
async DescribeSavingPlanDeduct(
req: DescribeSavingPlanDeductRequest,
cb?: (error: string, rep: DescribeSavingPlanDeductResponse) => void
): Promise<DescribeSavingPlanDeductResponse> {
return this.request("DescribeSavingPlanDeduct", req, cb)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs.git
git@gitee.com:tencentcloud/tencentcloud-sdk-nodejs.git
tencentcloud
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
master

搜索帮助