tencentcloud-sdk-nodejs 4.0.301 → 4.0.304

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.
Files changed (82) hide show
  1. package/CHANGELOG.md +311 -0
  2. package/SERVICE_CHANGELOG.md +362 -74
  3. package/package.json +1 -1
  4. package/products.md +22 -21
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/as/v20180419/as_models.ts +17 -6
  7. package/src/services/asr/v20190614/asr_models.ts +1 -1
  8. package/src/services/billing/v20180709/billing_client.ts +31 -2
  9. package/src/services/billing/v20180709/billing_models.ts +334 -47
  10. package/src/services/casb/index.ts +5 -0
  11. package/src/services/casb/v20200507/casb_client.ts +51 -0
  12. package/src/services/casb/v20200507/casb_models.ts +76 -0
  13. package/src/services/casb/v20200507/index.ts +6 -0
  14. package/src/services/cdn/v20180606/cdn_models.ts +18 -18
  15. package/src/services/cls/v20201016/cls_client.ts +1 -1
  16. package/src/services/cls/v20201016/cls_models.ts +31 -42
  17. package/src/services/cpdp/v20190820/cpdp_client.ts +58 -4
  18. package/src/services/cpdp/v20190820/cpdp_models.ts +493 -87
  19. package/src/services/es/v20180416/es_models.ts +5 -0
  20. package/src/services/faceid/v20180301/faceid_models.ts +2 -4
  21. package/src/services/index.ts +1 -0
  22. package/src/services/ivld/v20210903/ivld_client.ts +2 -0
  23. package/src/services/ivld/v20210903/ivld_models.ts +48 -0
  24. package/src/services/mongodb/v20190725/mongodb_models.ts +7 -5
  25. package/src/services/monitor/v20180724/monitor_models.ts +9 -4
  26. package/src/services/organization/v20210331/organization_models.ts +6 -0
  27. package/src/services/ses/v20201002/ses_client.ts +15 -2
  28. package/src/services/ses/v20201002/ses_models.ts +51 -10
  29. package/src/services/tcss/v20201101/tcss_models.ts +5 -0
  30. package/src/services/tem/v20210701/tem_models.ts +11 -0
  31. package/src/services/tke/v20180525/tke_client.ts +25 -13
  32. package/src/services/tke/v20180525/tke_models.ts +39 -4
  33. package/src/services/tse/v20201207/tse_models.ts +15 -0
  34. package/src/services/vod/v20180717/vod_models.ts +1 -1
  35. package/src/services/vpc/v20170312/vpc_client.ts +1 -1
  36. package/tencentcloud/common/sdk_version.d.ts +1 -1
  37. package/tencentcloud/common/sdk_version.js +1 -1
  38. package/tencentcloud/services/as/v20180419/as_models.d.ts +15 -6
  39. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +1 -1
  40. package/tencentcloud/services/billing/v20180709/billing_client.d.ts +9 -1
  41. package/tencentcloud/services/billing/v20180709/billing_client.js +12 -0
  42. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +279 -39
  43. package/tencentcloud/services/casb/index.d.ts +6 -0
  44. package/tencentcloud/services/casb/index.js +7 -0
  45. package/tencentcloud/services/casb/v20200507/casb_client.d.ts +21 -0
  46. package/tencentcloud/services/casb/v20200507/casb_client.js +44 -0
  47. package/tencentcloud/services/casb/v20200507/casb_models.d.ts +51 -0
  48. package/tencentcloud/services/casb/v20200507/casb_models.js +18 -0
  49. package/tencentcloud/services/casb/v20200507/index.d.ts +6 -0
  50. package/tencentcloud/services/casb/v20200507/index.js +9 -0
  51. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +18 -18
  52. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  53. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  54. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +31 -42
  55. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +17 -1
  56. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +24 -0
  57. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +424 -75
  58. package/tencentcloud/services/es/v20180416/es_models.d.ts +4 -0
  59. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +2 -4
  60. package/tencentcloud/services/index.d.ts +1 -0
  61. package/tencentcloud/services/index.js +2 -0
  62. package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +41 -0
  63. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +6 -4
  64. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +8 -4
  65. package/tencentcloud/services/organization/v20210331/organization_models.d.ts +5 -0
  66. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +5 -1
  67. package/tencentcloud/services/ses/v20201002/ses_client.js +6 -0
  68. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +46 -10
  69. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +4 -0
  70. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +10 -0
  71. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +9 -5
  72. package/tencentcloud/services/tke/v20180525/tke_client.js +12 -6
  73. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +34 -4
  74. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +12 -0
  75. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +1 -1
  76. package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
  77. package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
  78. package/test/billing.v20180709.test.js +20 -0
  79. package/test/casb.v20200507.test.js +31 -0
  80. package/test/cpdp.v20190820.test.js +40 -0
  81. package/test/ses.v20201002.test.js +10 -0
  82. package/test/tke.v20180525.test.js +14 -4
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { DescribeCostSummaryByProductRequest, DescribeCostSummaryByProjectResponse, DescribeDosageDetailByDateRequest, DescribeBillSummaryByProductRequest, DescribeBillSummaryByPayModeResponse, DescribeBillSummaryByTagRequest, DescribeBillSummaryByProductResponse, DescribeBillSummaryByRegionResponse, DescribeAccountBalanceRequest, DescribeBillDetailRequest, DescribeCostSummaryByProductResponse, DescribeDosageDetailByDateResponse, DescribeBillListResponse, DescribeAccountBalanceResponse, DescribeCostSummaryByRegionRequest, DescribeBillSummaryByRegionRequest, DescribeBillSummaryByPayModeRequest, DescribeCostSummaryByProjectRequest, DescribeDosageCosDetailByDateResponse, DescribeBillResourceSummaryResponse, DescribeDealsByCondRequest, DescribeBillResourceSummaryRequest, PayDealsRequest, DescribeBillListRequest, PayDealsResponse, DescribeBillSummaryByTagResponse, DescribeCostSummaryByResourceResponse, DescribeBillDetailResponse, DescribeCostDetailRequest, DescribeDealsByCondResponse, DescribeBillSummaryByProjectRequest, DescribeBillSummaryByProjectResponse, DescribeCostSummaryByResourceRequest, DescribeCostDetailResponse, DescribeDosageCosDetailByDateRequest, DescribeCostSummaryByRegionResponse } from "./billing_models";
3
+ import { DescribeCostSummaryByProductRequest, DescribeCostSummaryByProjectResponse, DescribeDosageDetailByDateRequest, DescribeBillSummaryByProductRequest, DescribeBillSummaryByPayModeResponse, DescribeBillSummaryByTagRequest, DescribeBillSummaryByProductResponse, DescribeBillSummaryByRegionResponse, DescribeVoucherInfoResponse, DescribeAccountBalanceRequest, DescribeBillDetailRequest, DescribeCostSummaryByProductResponse, DescribeDosageDetailByDateResponse, DescribeBillListResponse, DescribeAccountBalanceResponse, DescribeCostSummaryByRegionRequest, DescribeBillSummaryByRegionRequest, DescribeBillSummaryByPayModeRequest, DescribeCostSummaryByProjectRequest, DescribeDosageCosDetailByDateResponse, DescribeBillResourceSummaryResponse, DescribeVoucherInfoRequest, DescribeVoucherUsageDetailsRequest, DescribeDealsByCondRequest, DescribeBillResourceSummaryRequest, PayDealsRequest, DescribeBillListRequest, PayDealsResponse, DescribeBillSummaryByTagResponse, DescribeCostSummaryByResourceResponse, DescribeBillDetailResponse, DescribeCostDetailRequest, DescribeVoucherUsageDetailsResponse, DescribeDealsByCondResponse, DescribeBillSummaryByProjectRequest, DescribeBillSummaryByProjectResponse, DescribeCostSummaryByResourceRequest, DescribeCostDetailResponse, DescribeDosageCosDetailByDateRequest, DescribeCostSummaryByRegionResponse } from "./billing_models";
4
4
  /**
5
5
  * billing client
6
6
  * @class
@@ -11,6 +11,10 @@ export declare class Client extends AbstractClient {
11
11
  * 获取云账户余额信息。
12
12
  */
13
13
  DescribeAccountBalance(req?: DescribeAccountBalanceRequest, cb?: (error: string, rep: DescribeAccountBalanceResponse) => void): Promise<DescribeAccountBalanceResponse>;
14
+ /**
15
+ * 获取代金券相关信息
16
+ */
17
+ DescribeVoucherInfo(req: DescribeVoucherInfoRequest, cb?: (error: string, rep: DescribeVoucherInfoResponse) => void): Promise<DescribeVoucherInfoResponse>;
14
18
  /**
15
19
  * 按日期获取产品用量明细
16
20
  */
@@ -19,6 +23,10 @@ export declare class Client extends AbstractClient {
19
23
  * 获取按资源汇总消耗详情
20
24
  */
21
25
  DescribeCostSummaryByResource(req: DescribeCostSummaryByResourceRequest, cb?: (error: string, rep: DescribeCostSummaryByResourceResponse) => void): Promise<DescribeCostSummaryByResourceResponse>;
26
+ /**
27
+ * 获取代金券使用记录
28
+ */
29
+ DescribeVoucherUsageDetails(req: DescribeVoucherUsageDetailsRequest, cb?: (error: string, rep: DescribeVoucherUsageDetailsResponse) => void): Promise<DescribeVoucherUsageDetailsResponse>;
22
30
  /**
23
31
  * 获取收支明细列表,支持翻页和参数过滤
24
32
  */
@@ -33,6 +33,12 @@ class Client extends abstract_client_1.AbstractClient {
33
33
  async DescribeAccountBalance(req, cb) {
34
34
  return this.request("DescribeAccountBalance", req, cb);
35
35
  }
36
+ /**
37
+ * 获取代金券相关信息
38
+ */
39
+ async DescribeVoucherInfo(req, cb) {
40
+ return this.request("DescribeVoucherInfo", req, cb);
41
+ }
36
42
  /**
37
43
  * 按日期获取产品用量明细
38
44
  */
@@ -45,6 +51,12 @@ class Client extends abstract_client_1.AbstractClient {
45
51
  async DescribeCostSummaryByResource(req, cb) {
46
52
  return this.request("DescribeCostSummaryByResource", req, cb);
47
53
  }
54
+ /**
55
+ * 获取代金券使用记录
56
+ */
57
+ async DescribeVoucherUsageDetails(req, cb) {
58
+ return this.request("DescribeVoucherUsageDetails", req, cb);
59
+ }
48
60
  /**
49
61
  * 获取收支明细列表,支持翻页和参数过滤
50
62
  */
@@ -51,6 +51,57 @@ export interface CostComponentSet {
51
51
  */
52
52
  IncentivePayAmount: string;
53
53
  }
54
+ /**
55
+ * 代金券相关信息
56
+ */
57
+ export interface VoucherInfos {
58
+ /**
59
+ * 代金券拥有者
60
+ */
61
+ OwnerUin: string;
62
+ /**
63
+ * 券状态:待使用:unUsed,已使用: used,已发货:delivered,已作废: cancel,已过期:overdue
64
+ */
65
+ Status: string;
66
+ /**
67
+ * 代金券面额(微分)
68
+ */
69
+ NominalValue: number;
70
+ /**
71
+ * 剩余金额(微分)
72
+ */
73
+ Balance: number;
74
+ /**
75
+ * 代金券id
76
+ */
77
+ VoucherId: string;
78
+ /**
79
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者'*'表示全部模式
80
+ */
81
+ PayMode: string;
82
+ /**
83
+ * 付费场景PayMode=postPay时:spotpay-竞价实例,"settle account"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景
84
+ */
85
+ PayScene: string;
86
+ /**
87
+ * 有效期生效时间
88
+ */
89
+ BeginTime: string;
90
+ /**
91
+ * 有效期截止时间
92
+ */
93
+ EndTime: string;
94
+ /**
95
+ * 适用商品信息
96
+ 注意:此字段可能返回 null,表示取不到有效值。
97
+ */
98
+ ApplicableProducts: ApplicableProducts;
99
+ /**
100
+ * 不适用商品信息
101
+ 注意:此字段可能返回 null,表示取不到有效值。
102
+ */
103
+ ExcludedProducts: Array<ExcludedProducts>;
104
+ }
54
105
  /**
55
106
  * DescribeCostSummaryByProduct请求参数结构体
56
107
  */
@@ -729,46 +780,26 @@ export interface BillTransactionInfo {
729
780
  DeductMode: string;
730
781
  }
731
782
  /**
732
- * 按地域汇总消费详情
783
+ * DescribeVoucherInfo返回参数结构体
733
784
  */
734
- export interface RegionSummaryOverviewItem {
735
- /**
736
- * 地域ID
737
- 注意:此字段可能返回 null,表示取不到有效值。
738
- */
739
- RegionId: string;
740
- /**
741
- * 地域名称
742
- */
743
- RegionName: string;
785
+ export interface DescribeVoucherInfoResponse {
744
786
  /**
745
- * 实际花费
746
- */
747
- RealTotalCost: string;
748
- /**
749
- * 费用所占百分比,两位小数
750
- */
751
- RealTotalCostRatio: string;
752
- /**
753
- * 现金金额
787
+ * 券总数
754
788
  */
755
- CashPayAmount: string;
756
- /**
757
- * 赠送金金额
758
- */
759
- IncentivePayAmount: string;
789
+ TotalCount: number;
760
790
  /**
761
- * 代金券金额
791
+ * 总余额(微分)
762
792
  */
763
- VoucherPayAmount: string;
793
+ TotalBalance: number;
764
794
  /**
765
- * 账单月份,格式2019-08
795
+ * 代金券相关信息
796
+ 注意:此字段可能返回 null,表示取不到有效值。
766
797
  */
767
- BillMonth: string;
798
+ VoucherInfos: Array<VoucherInfos>;
768
799
  /**
769
- * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
800
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
770
801
  */
771
- TotalCost: string;
802
+ RequestId?: string;
772
803
  }
773
804
  /**
774
805
  * 消耗按资源汇总详情
@@ -945,6 +976,48 @@ export interface ConsumptionProjectSummaryDataItem {
945
976
  */
946
977
  Business: Array<ConsumptionBusinessSummaryDataItem>;
947
978
  }
979
+ /**
980
+ * 按地域汇总消费详情
981
+ */
982
+ export interface RegionSummaryOverviewItem {
983
+ /**
984
+ * 地域ID
985
+ 注意:此字段可能返回 null,表示取不到有效值。
986
+ */
987
+ RegionId: string;
988
+ /**
989
+ * 地域名称
990
+ */
991
+ RegionName: string;
992
+ /**
993
+ * 实际花费
994
+ */
995
+ RealTotalCost: string;
996
+ /**
997
+ * 费用所占百分比,两位小数
998
+ */
999
+ RealTotalCostRatio: string;
1000
+ /**
1001
+ * 现金金额
1002
+ */
1003
+ CashPayAmount: string;
1004
+ /**
1005
+ * 赠送金金额
1006
+ */
1007
+ IncentivePayAmount: string;
1008
+ /**
1009
+ * 代金券金额
1010
+ */
1011
+ VoucherPayAmount: string;
1012
+ /**
1013
+ * 账单月份,格式2019-08
1014
+ */
1015
+ BillMonth: string;
1016
+ /**
1017
+ * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1018
+ */
1019
+ TotalCost: string;
1020
+ }
948
1021
  /**
949
1022
  * DescribeCostSummaryByProduct返回参数结构体
950
1023
  */
@@ -1364,6 +1437,24 @@ export interface DescribeCostSummaryByProjectRequest {
1364
1437
  */
1365
1438
  NeedRecordNum?: number;
1366
1439
  }
1440
+ /**
1441
+ * 使用记录
1442
+ */
1443
+ export interface UsageRecords {
1444
+ /**
1445
+ * 使用金额(微分)
1446
+ */
1447
+ UsedAmount: number;
1448
+ /**
1449
+ * 使用时间
1450
+ */
1451
+ UsedTime: string;
1452
+ /**
1453
+ * 使用记录细节
1454
+ 注意:此字段可能返回 null,表示取不到有效值。
1455
+ */
1456
+ UsageDetails: Array<UsageDetails>;
1457
+ }
1367
1458
  /**
1368
1459
  * 消耗按地域汇总详情
1369
1460
  */
@@ -1402,6 +1493,21 @@ export interface DescribeDosageCosDetailByDateResponse {
1402
1493
  */
1403
1494
  RequestId?: string;
1404
1495
  }
1496
+ /**
1497
+ * 购买商品信息
1498
+ */
1499
+ export interface UsageDetails {
1500
+ /**
1501
+ * 商品名
1502
+ 注意:此字段可能返回 null,表示取不到有效值。
1503
+ */
1504
+ ProductName: string;
1505
+ /**
1506
+ * 商品细节
1507
+ 注意:此字段可能返回 null,表示取不到有效值。
1508
+ */
1509
+ SubProductName: string;
1510
+ }
1405
1511
  /**
1406
1512
  * DescribeBillResourceSummary返回参数结构体
1407
1513
  */
@@ -1461,6 +1567,84 @@ export interface ActionSummaryOverviewItem {
1461
1567
  */
1462
1568
  TotalCost: string;
1463
1569
  }
1570
+ /**
1571
+ * DescribeVoucherInfo请求参数结构体
1572
+ */
1573
+ export interface DescribeVoucherInfoRequest {
1574
+ /**
1575
+ * 一页多少条数据,默认是20条,最大不超过1000
1576
+ */
1577
+ Limit: number;
1578
+ /**
1579
+ * 第多少页,默认是1
1580
+ */
1581
+ Offset: number;
1582
+ /**
1583
+ * 券状态:待使用:unUsed,已使用: used,已发货:delivered,已作废: cancel,已过期:overdue
1584
+ */
1585
+ Status?: string;
1586
+ /**
1587
+ * 代金券id
1588
+ */
1589
+ VoucherId?: string;
1590
+ /**
1591
+ * 代金券订单id
1592
+ */
1593
+ CodeId?: string;
1594
+ /**
1595
+ * 商品码
1596
+ */
1597
+ ProductCode?: string;
1598
+ /**
1599
+ * 活动id
1600
+ */
1601
+ ActivityId?: string;
1602
+ /**
1603
+ * 代金券名称
1604
+ */
1605
+ VoucherName?: string;
1606
+ /**
1607
+ * 发放开始时间
1608
+ */
1609
+ TimeFrom?: string;
1610
+ /**
1611
+ * 发放结束时间
1612
+ */
1613
+ TimeTo?: string;
1614
+ /**
1615
+ * 指定排序字段:BeginTime开始时间、EndTime到期时间、CreateTime创建时间
1616
+ */
1617
+ SortField?: string;
1618
+ /**
1619
+ * 指定升序降序:desc、asc
1620
+ */
1621
+ SortOrder?: string;
1622
+ /**
1623
+ * 付费模式,postPay后付费/prePay预付费/riPay预留实例/""或者"*"表示全部模式,如果payMode为""或"*",那么productCode与subProductCode必须传空
1624
+ */
1625
+ PayMode?: string;
1626
+ /**
1627
+ * 付费场景PayMode=postPay时:spotpay-竞价实例,"settle account"-普通后付费PayMode=prePay时:purchase-包年包月新购,renew-包年包月续费(自动续费),modify-包年包月配置变更(变配)PayMode=riPay时:oneOffFee-预留实例预付,hourlyFee-预留实例每小时扣费,*-支持全部付费场景
1628
+ */
1629
+ PayScene?: string;
1630
+ /**
1631
+ * 操作人,默认就是用户uin
1632
+ */
1633
+ Operator?: string;
1634
+ }
1635
+ /**
1636
+ * 适用商品信息
1637
+ */
1638
+ export interface ApplicableProducts {
1639
+ /**
1640
+ * 适用商品名称,值为“全产品通用”或商品名称组成的string,以","分割。
1641
+ */
1642
+ GoodsName: string;
1643
+ /**
1644
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者"*"表示全部模式。如GoodsName为多个商品名以","分割组成的string,而PayMode为"*",表示每一件商品的模式都为"*"。
1645
+ */
1646
+ PayMode: string;
1647
+ }
1464
1648
  /**
1465
1649
  * 付费模式过滤条件
1466
1650
  */
@@ -1474,6 +1658,27 @@ export interface ConditionPayMode {
1474
1658
  */
1475
1659
  PayModeName: string;
1476
1660
  }
1661
+ /**
1662
+ * DescribeVoucherUsageDetails请求参数结构体
1663
+ */
1664
+ export interface DescribeVoucherUsageDetailsRequest {
1665
+ /**
1666
+ * 一页多少条数据,默认是20条,最大不超过1000
1667
+ */
1668
+ Limit: number;
1669
+ /**
1670
+ * 第多少页,默认是1
1671
+ */
1672
+ Offset: number;
1673
+ /**
1674
+ * 代金券id
1675
+ */
1676
+ VoucherId?: string;
1677
+ /**
1678
+ * 操作人,默认就是用户uin
1679
+ */
1680
+ Operator?: string;
1681
+ }
1477
1682
  /**
1478
1683
  * DescribeDealsByCond请求参数结构体
1479
1684
  */
@@ -1690,6 +1895,21 @@ export interface PayDealsResponse {
1690
1895
  */
1691
1896
  RequestId?: string;
1692
1897
  }
1898
+ /**
1899
+ * 总数
1900
+ */
1901
+ export interface SummaryTotal {
1902
+ /**
1903
+ * 总数
1904
+ 注意:此字段可能返回 null,表示取不到有效值。
1905
+ */
1906
+ RealTotalCost: string;
1907
+ /**
1908
+ * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
1909
+ 注意:此字段可能返回 null,表示取不到有效值。
1910
+ */
1911
+ TotalCost: string;
1912
+ }
1693
1913
  /**
1694
1914
  * 账单明细数据对象
1695
1915
  */
@@ -2081,6 +2301,28 @@ export interface DescribeCostDetailRequest {
2081
2301
  */
2082
2302
  ResourceId?: string;
2083
2303
  }
2304
+ /**
2305
+ * DescribeVoucherUsageDetails返回参数结构体
2306
+ */
2307
+ export interface DescribeVoucherUsageDetailsResponse {
2308
+ /**
2309
+ * 券总数
2310
+ */
2311
+ TotalCount: number;
2312
+ /**
2313
+ * 总已用金额(微分)
2314
+ */
2315
+ TotalUsedAmount: number;
2316
+ /**
2317
+ * 代金券使用记录细节
2318
+ 注意:此字段可能返回 null,表示取不到有效值。
2319
+ */
2320
+ UsageRecords: Array<UsageRecords>;
2321
+ /**
2322
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2323
+ */
2324
+ RequestId?: string;
2325
+ }
2084
2326
  /**
2085
2327
  * DescribeDealsByCond返回参数结构体
2086
2328
  */
@@ -2266,19 +2508,17 @@ export interface DescribeDosageCosDetailByDateRequest {
2266
2508
  BucketName: string;
2267
2509
  }
2268
2510
  /**
2269
- * 总数
2511
+ * 不适用商品信息
2270
2512
  */
2271
- export interface SummaryTotal {
2513
+ export interface ExcludedProducts {
2272
2514
  /**
2273
- * 总数
2274
- 注意:此字段可能返回 null,表示取不到有效值。
2515
+ * 不适用商品名称
2275
2516
  */
2276
- RealTotalCost: string;
2517
+ GoodsName: string;
2277
2518
  /**
2278
- * 原价,单位为元。TotalCost字段自账单3.0(即2021-05)之后开始生效,账单3.0之前返回"-"。合同价的情况下,TotalCost字段与官网价格存在差异,也返回“-”。
2279
- 注意:此字段可能返回 null,表示取不到有效值。
2519
+ * postPay后付费/prePay预付费/riPay预留实例/空字符串或者"*"表示全部模式。
2280
2520
  */
2281
- TotalCost: string;
2521
+ PayMode: string;
2282
2522
  }
2283
2523
  /**
2284
2524
  * 按付费模式汇总消费详情
@@ -0,0 +1,6 @@
1
+ export declare const casb: {
2
+ v20200507: {
3
+ Client: typeof import("./v20200507/casb_client").Client;
4
+ Models: typeof import("./v20200507/casb_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.casb = void 0;
4
+ const v20200507_1 = require("./v20200507");
5
+ exports.casb = {
6
+ v20200507: v20200507_1.v20200507,
7
+ };
@@ -0,0 +1,21 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { CopyCryptoColumnPolicyRequest, CopyCryptoColumnPolicyResponse } from "./casb_models";
4
+ /**
5
+ * casb client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 同region下 根据用户输入的CasbId,MetaDataId 复制策略到DstCasbId,MetaDataId中。
12
+ 场景1:
13
+ 相同CasbId,不同MetadataId 下策略复制
14
+ 场景2:
15
+ 不同Casbid,不同MetaDataId 下策略复制
16
+ 场景3:
17
+ 相同CasbId,相同MetaDataId 且 DatabaseName不同 策略复制
18
+
19
+ */
20
+ CopyCryptoColumnPolicy(req: CopyCryptoColumnPolicyRequest, cb?: (error: string, rep: CopyCryptoColumnPolicyResponse) => void): Promise<CopyCryptoColumnPolicyResponse>;
21
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * casb client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("casb.tencentcloudapi.com", "2020-05-07", clientConfig);
29
+ }
30
+ /**
31
+ * 同region下 根据用户输入的CasbId,MetaDataId 复制策略到DstCasbId,MetaDataId中。
32
+ 场景1:
33
+ 相同CasbId,不同MetadataId 下策略复制
34
+ 场景2:
35
+ 不同Casbid,不同MetaDataId 下策略复制
36
+ 场景3:
37
+ 相同CasbId,相同MetaDataId 且 DatabaseName不同 策略复制
38
+
39
+ */
40
+ async CopyCryptoColumnPolicy(req, cb) {
41
+ return this.request("CopyCryptoColumnPolicy", req, cb);
42
+ }
43
+ }
44
+ exports.Client = Client;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * CopyCryptoColumnPolicy请求参数结构体
3
+ */
4
+ export interface CopyCryptoColumnPolicyRequest {
5
+ /**
6
+ * 实例Id
7
+ */
8
+ CasbId: string;
9
+ /**
10
+ * 元数据id
11
+ */
12
+ MetaDataId: string;
13
+ /**
14
+ * 目标实例Id 如果和实例Id相同则为同CasbId下的策略复制
15
+ */
16
+ DstCasbId: string;
17
+ /**
18
+ * 目标实例Id 如果和[元数据id]相同则为同元数据下的策略复制
19
+ */
20
+ DstMetaDataId: string;
21
+ /**
22
+ * 筛选来源数据库的表
23
+ */
24
+ SrcTableFilter?: Array<CryptoCopyColumnPolicyTableFilter>;
25
+ /**
26
+ * 复制同元数据下的策略,需要填写目标数据库名
27
+ */
28
+ DstDatabaseName?: string;
29
+ }
30
+ /**
31
+ * 策略迁移表信息筛选
32
+ */
33
+ export interface CryptoCopyColumnPolicyTableFilter {
34
+ /**
35
+ * 数据库名称
36
+ */
37
+ DatabaseName: string;
38
+ /**
39
+ * 表名称
40
+ */
41
+ TableNameSet?: Array<string>;
42
+ }
43
+ /**
44
+ * CopyCryptoColumnPolicy返回参数结构体
45
+ */
46
+ export interface CopyCryptoColumnPolicyResponse {
47
+ /**
48
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
49
+ */
50
+ RequestId?: string;
51
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./casb_models";
2
+ import { Client } from "./casb_client";
3
+ export declare const v20200507: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20200507 = void 0;
4
+ const Models = require("./casb_models");
5
+ const casb_client_1 = require("./casb_client");
6
+ exports.v20200507 = {
7
+ Client: casb_client_1.Client,
8
+ Models: Models
9
+ };