代码拉取完成,页面将自动刷新
/* 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)
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。