tencentcloud-sdk-nodejs-svp 4.0.1035 → 4.0.1050

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-svp",
3
- "version": "4.0.1035",
4
- "description": "Tencent Cloud API NODEJS SDK",
3
+ "version": "4.0.1050",
4
+ "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
7
7
  "test": "mocha -t 10000",
@@ -22,7 +22,7 @@
22
22
  "author": "tencentcloudapi",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
25
+ "tencentcloud-sdk-nodejs-common": "*",
26
26
  "tslib": "1.13.0"
27
27
  },
28
28
  "directories": {
@@ -35,14 +35,19 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/form-data": "^2.5.0",
38
+ "@types/json-bigint": "^1.0.1",
38
39
  "@types/node": "^14.0.26",
39
40
  "@types/node-fetch": "^2.5.7",
41
+ "@types/uuid": "^9.0.8",
40
42
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
43
  "@typescript-eslint/parser": "^2.34.0",
44
+ "babel-eslint": "^10.0.2",
42
45
  "chai": "^4.2.0",
43
46
  "eslint": "^6.8.0",
47
+ "eslint-plugin-react": "^7.17.0",
44
48
  "mocha": "^8.1.1",
49
+ "prettier": "^2.3.0",
45
50
  "ts-node": "^8.10.2",
46
51
  "typescript": "^3.9.7"
47
52
  }
48
- }
53
+ }
@@ -18,16 +18,20 @@
18
18
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
20
  CreateSavingPlanOrderRequest,
21
+ DescribeSavingPlanCoverageRequest,
21
22
  CreateSavingPlanOrderResponse,
22
23
  DescribeSavingPlanDeductRequest,
23
24
  SavingPlanOverviewDetail,
25
+ SavingPlanCoverageRate,
24
26
  DescribeSavingPlanUsageRequest,
25
27
  SavingPlanDeductDetail,
28
+ SavingPlanCoverageDetail,
26
29
  DescribeSavingPlanOverviewResponse,
27
30
  DescribeSavingPlanUsageResponse,
28
31
  DescribeSavingPlanDeductResponse,
29
32
  DescribeSavingPlanOverviewRequest,
30
33
  SavingPlanUsageDetail,
34
+ DescribeSavingPlanCoverageResponse,
31
35
  } from "./svp_models"
32
36
 
33
37
  /**
@@ -39,6 +43,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
39
43
  super("svp.tencentcloudapi.com", "2024-01-25", clientConfig)
40
44
  }
41
45
 
46
+ /**
47
+ * 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
48
+ */
49
+ async DescribeSavingPlanCoverage(
50
+ req: DescribeSavingPlanCoverageRequest,
51
+ cb?: (error: string, rep: DescribeSavingPlanCoverageResponse) => void
52
+ ): Promise<DescribeSavingPlanCoverageResponse> {
53
+ return this.request("DescribeSavingPlanCoverage", req, cb)
54
+ }
55
+
42
56
  /**
43
57
  * 查用当前用户明细节省计划查询时段内的使用情况
44
58
  */
@@ -57,6 +57,32 @@ export interface CreateSavingPlanOrderRequest {
57
57
  ClientToken?: string
58
58
  }
59
59
 
60
+ /**
61
+ * DescribeSavingPlanCoverage请求参数结构体
62
+ */
63
+ export interface DescribeSavingPlanCoverageRequest {
64
+ /**
65
+ * 费用起始日期,格式yyyy-MM-dd
66
+ */
67
+ StartDate: string
68
+ /**
69
+ * 费用结束日期,格式yyyy-MM-dd
70
+ */
71
+ EndDate: string
72
+ /**
73
+ * 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推
74
+ */
75
+ Offset: number
76
+ /**
77
+ * 数量,最大值为200
78
+ */
79
+ Limit: number
80
+ /**
81
+ * 取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet
82
+ */
83
+ PeriodType?: number
84
+ }
85
+
60
86
  /**
61
87
  * CreateSavingPlanOrder返回参数结构体
62
88
  */
@@ -163,6 +189,20 @@ export interface SavingPlanOverviewDetail {
163
189
  BuyTime?: string
164
190
  }
165
191
 
192
+ /**
193
+ * 节省计划覆盖率聚合数据
194
+ */
195
+ export interface SavingPlanCoverageRate {
196
+ /**
197
+ * 聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM
198
+ */
199
+ DatePoint?: string
200
+ /**
201
+ * 覆盖率结果,取值[0, 100]
202
+ */
203
+ Rate?: number
204
+ }
205
+
166
206
  /**
167
207
  * DescribeSavingPlanUsage请求参数结构体
168
208
  */
@@ -295,6 +335,80 @@ export interface SavingPlanDeductDetail {
295
335
  DeductRate?: string
296
336
  }
297
337
 
338
+ /**
339
+ * 节省计划覆盖率数据
340
+ */
341
+ export interface SavingPlanCoverageDetail {
342
+ /**
343
+ * 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
344
+ */
345
+ ResourceId?: string
346
+ /**
347
+ * 地域ID
348
+ */
349
+ RegionId?: number
350
+ /**
351
+ * 产品编码
352
+ */
353
+ ProductCode?: string
354
+ /**
355
+ * 子产品编码
356
+ */
357
+ SubProductCode?: string
358
+ /**
359
+ * 费用起始日期,格式yyyy-MM-dd
360
+ */
361
+ StartDate?: string
362
+ /**
363
+ * 费用结束日期,格式yyyy-MM-dd,目前与StartDate相等
364
+ */
365
+ EndDate?: string
366
+ /**
367
+ * 节省计划覆盖金额(即节省计划支付金额)
368
+ */
369
+ SpCoveredAmount?: number
370
+ /**
371
+ * 节省计划未覆盖金额(即优惠后总价)
372
+ */
373
+ SpUncoveredAmount?: number
374
+ /**
375
+ * 总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)
376
+ */
377
+ TotalRealAmount?: number
378
+ /**
379
+ * 按量计费预期金额(即折前价 * 折扣)
380
+ */
381
+ ExpectedAmount?: number
382
+ /**
383
+ * 覆盖率结果,取值[0, 100]
384
+ */
385
+ SpCoverage?: number
386
+ /**
387
+ * 支付者昵称
388
+ */
389
+ PayerUinName?: string
390
+ /**
391
+ * 使用者昵称
392
+ */
393
+ OwnerUinName?: string
394
+ /**
395
+ * 支付者uin
396
+ */
397
+ PayerUin?: string
398
+ /**
399
+ * 计费项名称
400
+ */
401
+ SubBillingItemName?: string
402
+ /**
403
+ * 计费细项名称
404
+ */
405
+ BillingItemName?: string
406
+ /**
407
+ * 子产品名称
408
+ */
409
+ SubProductName?: string
410
+ }
411
+
298
412
  /**
299
413
  * DescribeSavingPlanOverview返回参数结构体
300
414
  */
@@ -418,3 +532,25 @@ export interface SavingPlanUsageDetail {
418
532
  */
419
533
  Region?: Array<string>
420
534
  }
535
+
536
+ /**
537
+ * DescribeSavingPlanCoverage返回参数结构体
538
+ */
539
+ export interface DescribeSavingPlanCoverageResponse {
540
+ /**
541
+ * 节省计划覆盖率明细数据
542
+ */
543
+ DetailSet?: Array<SavingPlanCoverageDetail>
544
+ /**
545
+ * 节省计划覆盖率聚合数据
546
+ */
547
+ RateSet?: Array<SavingPlanCoverageRate>
548
+ /**
549
+ * 查询命中的节省计划覆盖率明细数据总条数
550
+ */
551
+ TotalCount?: number
552
+ /**
553
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
554
+ */
555
+ RequestId?: string
556
+ }
@@ -1,11 +1,15 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CreateSavingPlanOrderRequest, CreateSavingPlanOrderResponse, DescribeSavingPlanDeductRequest, DescribeSavingPlanUsageRequest, DescribeSavingPlanOverviewResponse, DescribeSavingPlanUsageResponse, DescribeSavingPlanDeductResponse, DescribeSavingPlanOverviewRequest } from "./svp_models";
2
+ import { CreateSavingPlanOrderRequest, DescribeSavingPlanCoverageRequest, CreateSavingPlanOrderResponse, DescribeSavingPlanDeductRequest, DescribeSavingPlanUsageRequest, DescribeSavingPlanOverviewResponse, DescribeSavingPlanUsageResponse, DescribeSavingPlanDeductResponse, DescribeSavingPlanOverviewRequest, DescribeSavingPlanCoverageResponse } from "./svp_models";
3
3
  /**
4
4
  * svp client
5
5
  * @class
6
6
  */
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
11
+ */
12
+ DescribeSavingPlanCoverage(req: DescribeSavingPlanCoverageRequest, cb?: (error: string, rep: DescribeSavingPlanCoverageResponse) => void): Promise<DescribeSavingPlanCoverageResponse>;
9
13
  /**
10
14
  * 查用当前用户明细节省计划查询时段内的使用情况
11
15
  */
@@ -27,6 +27,12 @@ class Client extends TencentCloudCommon.AbstractClient {
27
27
  constructor(clientConfig) {
28
28
  super("svp.tencentcloudapi.com", "2024-01-25", clientConfig);
29
29
  }
30
+ /**
31
+ * 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
32
+ */
33
+ async DescribeSavingPlanCoverage(req, cb) {
34
+ return this.request("DescribeSavingPlanCoverage", req, cb);
35
+ }
30
36
  /**
31
37
  * 查用当前用户明细节省计划查询时段内的使用情况
32
38
  */
@@ -39,6 +39,31 @@ export interface CreateSavingPlanOrderRequest {
39
39
  */
40
40
  ClientToken?: string;
41
41
  }
42
+ /**
43
+ * DescribeSavingPlanCoverage请求参数结构体
44
+ */
45
+ export interface DescribeSavingPlanCoverageRequest {
46
+ /**
47
+ * 费用起始日期,格式yyyy-MM-dd
48
+ */
49
+ StartDate: string;
50
+ /**
51
+ * 费用结束日期,格式yyyy-MM-dd
52
+ */
53
+ EndDate: string;
54
+ /**
55
+ * 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推
56
+ */
57
+ Offset: number;
58
+ /**
59
+ * 数量,最大值为200
60
+ */
61
+ Limit: number;
62
+ /**
63
+ * 取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet
64
+ */
65
+ PeriodType?: number;
66
+ }
42
67
  /**
43
68
  * CreateSavingPlanOrder返回参数结构体
44
69
  */
@@ -142,6 +167,19 @@ export interface SavingPlanOverviewDetail {
142
167
  */
143
168
  BuyTime?: string;
144
169
  }
170
+ /**
171
+ * 节省计划覆盖率聚合数据
172
+ */
173
+ export interface SavingPlanCoverageRate {
174
+ /**
175
+ * 聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM
176
+ */
177
+ DatePoint?: string;
178
+ /**
179
+ * 覆盖率结果,取值[0, 100]
180
+ */
181
+ Rate?: number;
182
+ }
145
183
  /**
146
184
  * DescribeSavingPlanUsage请求参数结构体
147
185
  */
@@ -272,6 +310,79 @@ export interface SavingPlanDeductDetail {
272
310
  */
273
311
  DeductRate?: string;
274
312
  }
313
+ /**
314
+ * 节省计划覆盖率数据
315
+ */
316
+ export interface SavingPlanCoverageDetail {
317
+ /**
318
+ * 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
319
+ */
320
+ ResourceId?: string;
321
+ /**
322
+ * 地域ID
323
+ */
324
+ RegionId?: number;
325
+ /**
326
+ * 产品编码
327
+ */
328
+ ProductCode?: string;
329
+ /**
330
+ * 子产品编码
331
+ */
332
+ SubProductCode?: string;
333
+ /**
334
+ * 费用起始日期,格式yyyy-MM-dd
335
+ */
336
+ StartDate?: string;
337
+ /**
338
+ * 费用结束日期,格式yyyy-MM-dd,目前与StartDate相等
339
+ */
340
+ EndDate?: string;
341
+ /**
342
+ * 节省计划覆盖金额(即节省计划支付金额)
343
+ */
344
+ SpCoveredAmount?: number;
345
+ /**
346
+ * 节省计划未覆盖金额(即优惠后总价)
347
+ */
348
+ SpUncoveredAmount?: number;
349
+ /**
350
+ * 总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)
351
+ */
352
+ TotalRealAmount?: number;
353
+ /**
354
+ * 按量计费预期金额(即折前价 * 折扣)
355
+ */
356
+ ExpectedAmount?: number;
357
+ /**
358
+ * 覆盖率结果,取值[0, 100]
359
+ */
360
+ SpCoverage?: number;
361
+ /**
362
+ * 支付者昵称
363
+ */
364
+ PayerUinName?: string;
365
+ /**
366
+ * 使用者昵称
367
+ */
368
+ OwnerUinName?: string;
369
+ /**
370
+ * 支付者uin
371
+ */
372
+ PayerUin?: string;
373
+ /**
374
+ * 计费项名称
375
+ */
376
+ SubBillingItemName?: string;
377
+ /**
378
+ * 计费细项名称
379
+ */
380
+ BillingItemName?: string;
381
+ /**
382
+ * 子产品名称
383
+ */
384
+ SubProductName?: string;
385
+ }
275
386
  /**
276
387
  * DescribeSavingPlanOverview返回参数结构体
277
388
  */
@@ -391,3 +502,24 @@ export interface SavingPlanUsageDetail {
391
502
  */
392
503
  Region?: Array<string>;
393
504
  }
505
+ /**
506
+ * DescribeSavingPlanCoverage返回参数结构体
507
+ */
508
+ export interface DescribeSavingPlanCoverageResponse {
509
+ /**
510
+ * 节省计划覆盖率明细数据
511
+ */
512
+ DetailSet?: Array<SavingPlanCoverageDetail>;
513
+ /**
514
+ * 节省计划覆盖率聚合数据
515
+ */
516
+ RateSet?: Array<SavingPlanCoverageRate>;
517
+ /**
518
+ * 查询命中的节省计划覆盖率明细数据总条数
519
+ */
520
+ TotalCount?: number;
521
+ /**
522
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
523
+ */
524
+ RequestId?: string;
525
+ }