tencentcloud-sdk-nodejs-cdn 4.0.1029 → 4.1.8

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/README.md CHANGED
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
44
44
 
45
45
  ### 安装全产品 SDK
46
46
 
47
+ 如果项目依赖的云产品较多,可以引入全产品 SDK。
48
+
47
49
  ```
48
50
  npm install tencentcloud-sdk-nodejs --save
49
51
  ```
50
52
 
51
- 全产品 SDK 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 SDK。
53
+ 全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
54
+
55
+ 如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
56
+
57
+ ```
58
+ npm install tencentcloud-sdk-slim-nodejs --save
59
+ ```
52
60
 
53
61
  ## 通过源码包安装
54
62
 
55
- 1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
56
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
57
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
58
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
63
+ 1. clone 代码到本地:
64
+ ```
65
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
+ # 或者
67
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
68
+ ```
69
+ 2. 在项目根目录执行以下命令完成构建:
70
+ ```
71
+ npm install && npm run build
72
+ ```
73
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
74
+ ```
75
+ npm pack
76
+ ```
77
+ 4. 安装包到你的项目里:
78
+ ```
79
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
80
+ ```
59
81
 
60
82
  # 示例
61
83
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ import { v20180606 } from "./v20180606";
2
+ export const cdn = {
3
+ v20180606: v20180606,
4
+ };
@@ -0,0 +1,249 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("cdn.tencentcloudapi.com", "2018-06-06", clientConfig);
5
+ }
6
+ async AddCLSTopicDomains(req, cb) {
7
+ return this.request("AddCLSTopicDomains", req, cb);
8
+ }
9
+ async ModifyDomainConfig(req, cb) {
10
+ return this.request("ModifyDomainConfig", req, cb);
11
+ }
12
+ async DescribeIpStatus(req, cb) {
13
+ return this.request("DescribeIpStatus", req, cb);
14
+ }
15
+ async DescribeMapInfo(req, cb) {
16
+ return this.request("DescribeMapInfo", req, cb);
17
+ }
18
+ async DeleteCdnDomain(req, cb) {
19
+ return this.request("DeleteCdnDomain", req, cb);
20
+ }
21
+ async VerifyDomainRecord(req, cb) {
22
+ return this.request("VerifyDomainRecord", req, cb);
23
+ }
24
+ async ListTopWafData(req, cb) {
25
+ return this.request("ListTopWafData", req, cb);
26
+ }
27
+ async DescribeEdgePackTaskStatus(req, cb) {
28
+ return this.request("DescribeEdgePackTaskStatus", req, cb);
29
+ }
30
+ async DeleteScdnDomain(req, cb) {
31
+ return this.request("DeleteScdnDomain", req, cb);
32
+ }
33
+ async DescribePayType(req, cb) {
34
+ return this.request("DescribePayType", req, cb);
35
+ }
36
+ async DescribeDomainsConfig(req, cb) {
37
+ return this.request("DescribeDomainsConfig", req, cb);
38
+ }
39
+ async AddCdnDomain(req, cb) {
40
+ return this.request("AddCdnDomain", req, cb);
41
+ }
42
+ async GetDisableRecords(req, cb) {
43
+ return this.request("GetDisableRecords", req, cb);
44
+ }
45
+ async DescribeIpVisit(req, cb) {
46
+ return this.request("DescribeIpVisit", req, cb);
47
+ }
48
+ async DescribeCdnData(req, cb) {
49
+ return this.request("DescribeCdnData", req, cb);
50
+ }
51
+ async DescribeHttpsPackages(req, cb) {
52
+ return this.request("DescribeHttpsPackages", req, cb);
53
+ }
54
+ async CreateEdgePackTask(req, cb) {
55
+ return this.request("CreateEdgePackTask", req, cb);
56
+ }
57
+ async CreateVerifyRecord(req, cb) {
58
+ return this.request("CreateVerifyRecord", req, cb);
59
+ }
60
+ async DescribeCcData(req, cb) {
61
+ return this.request("DescribeCcData", req, cb);
62
+ }
63
+ async ManageClsTopicDomains(req, cb) {
64
+ return this.request("ManageClsTopicDomains", req, cb);
65
+ }
66
+ async CreateDiagnoseUrl(req, cb) {
67
+ return this.request("CreateDiagnoseUrl", req, cb);
68
+ }
69
+ async StartCdnDomain(req, cb) {
70
+ return this.request("StartCdnDomain", req, cb);
71
+ }
72
+ async DuplicateDomainConfig(req, cb) {
73
+ return this.request("DuplicateDomainConfig", req, cb);
74
+ }
75
+ async StopScdnDomain(req, cb) {
76
+ return this.request("StopScdnDomain", req, cb);
77
+ }
78
+ async DescribeDiagnoseReport(req, cb) {
79
+ return this.request("DescribeDiagnoseReport", req, cb);
80
+ }
81
+ async DescribeDDoSData(req, cb) {
82
+ return this.request("DescribeDDoSData", req, cb);
83
+ }
84
+ async DisableCaches(req, cb) {
85
+ return this.request("DisableCaches", req, cb);
86
+ }
87
+ async ListDiagnoseReport(req, cb) {
88
+ return this.request("ListDiagnoseReport", req, cb);
89
+ }
90
+ async ListTopCcData(req, cb) {
91
+ return this.request("ListTopCcData", req, cb);
92
+ }
93
+ async DescribeScdnIpStrategy(req, cb) {
94
+ return this.request("DescribeScdnIpStrategy", req, cb);
95
+ }
96
+ async DescribePurgeQuota(req, cb) {
97
+ return this.request("DescribePurgeQuota", req, cb);
98
+ }
99
+ async UpdateScdnDomain(req, cb) {
100
+ return this.request("UpdateScdnDomain", req, cb);
101
+ }
102
+ async ListScdnLogTasks(req, cb) {
103
+ return this.request("ListScdnLogTasks", req, cb);
104
+ }
105
+ async ListTopBotData(req, cb) {
106
+ return this.request("ListTopBotData", req, cb);
107
+ }
108
+ async CreateScdnLogTask(req, cb) {
109
+ return this.request("CreateScdnLogTask", req, cb);
110
+ }
111
+ async DescribeImageConfig(req, cb) {
112
+ return this.request("DescribeImageConfig", req, cb);
113
+ }
114
+ async DescribeScdnTopData(req, cb) {
115
+ return this.request("DescribeScdnTopData", req, cb);
116
+ }
117
+ async SearchClsLog(req, cb) {
118
+ return this.request("SearchClsLog", req, cb);
119
+ }
120
+ async StopCdnDomain(req, cb) {
121
+ return this.request("StopCdnDomain", req, cb);
122
+ }
123
+ async ListTopData(req, cb) {
124
+ return this.request("ListTopData", req, cb);
125
+ }
126
+ async DescribeOriginData(req, cb) {
127
+ return this.request("DescribeOriginData", req, cb);
128
+ }
129
+ async DescribeCdnIp(req, cb) {
130
+ return this.request("DescribeCdnIp", req, cb);
131
+ }
132
+ async StartScdnDomain(req, cb) {
133
+ return this.request("StartScdnDomain", req, cb);
134
+ }
135
+ async PurgePathCache(req, cb) {
136
+ return this.request("PurgePathCache", req, cb);
137
+ }
138
+ async DescribePurgeTasks(req, cb) {
139
+ return this.request("DescribePurgeTasks", req, cb);
140
+ }
141
+ async ListTopClsLogData(req, cb) {
142
+ return this.request("ListTopClsLogData", req, cb);
143
+ }
144
+ async DescribeUrlViolations(req, cb) {
145
+ return this.request("DescribeUrlViolations", req, cb);
146
+ }
147
+ async DescribeWafData(req, cb) {
148
+ return this.request("DescribeWafData", req, cb);
149
+ }
150
+ async ListTopDDoSData(req, cb) {
151
+ return this.request("ListTopDDoSData", req, cb);
152
+ }
153
+ async DescribeDomains(req, cb) {
154
+ return this.request("DescribeDomains", req, cb);
155
+ }
156
+ async PurgeUrlsCache(req, cb) {
157
+ return this.request("PurgeUrlsCache", req, cb);
158
+ }
159
+ async DescribeTrafficPackages(req, cb) {
160
+ return this.request("DescribeTrafficPackages", req, cb);
161
+ }
162
+ async UpdateDomainConfig(req, cb) {
163
+ return this.request("UpdateDomainConfig", req, cb);
164
+ }
165
+ async DescribeCdnDomainLogs(req, cb) {
166
+ return this.request("DescribeCdnDomainLogs", req, cb);
167
+ }
168
+ async DescribePushTasks(req, cb) {
169
+ return this.request("DescribePushTasks", req, cb);
170
+ }
171
+ async DescribeCertDomains(req, cb) {
172
+ return this.request("DescribeCertDomains", req, cb);
173
+ }
174
+ async DescribeEventLogData(req, cb) {
175
+ return this.request("DescribeEventLogData", req, cb);
176
+ }
177
+ async CreateClsLogTopic(req, cb) {
178
+ return this.request("CreateClsLogTopic", req, cb);
179
+ }
180
+ async PushUrlsCache(req, cb) {
181
+ return this.request("PushUrlsCache", req, cb);
182
+ }
183
+ async CreateScdnDomain(req, cb) {
184
+ return this.request("CreateScdnDomain", req, cb);
185
+ }
186
+ async UpdateImageConfig(req, cb) {
187
+ return this.request("UpdateImageConfig", req, cb);
188
+ }
189
+ async ModifyPurgeFetchTaskStatus(req, cb) {
190
+ return this.request("ModifyPurgeFetchTaskStatus", req, cb);
191
+ }
192
+ async CreateScdnFailedLogTask(req, cb) {
193
+ return this.request("CreateScdnFailedLogTask", req, cb);
194
+ }
195
+ async DisableClsLogTopic(req, cb) {
196
+ return this.request("DisableClsLogTopic", req, cb);
197
+ }
198
+ async ListClsTopicDomains(req, cb) {
199
+ return this.request("ListClsTopicDomains", req, cb);
200
+ }
201
+ async ListClsLogTopics(req, cb) {
202
+ return this.request("ListClsLogTopics", req, cb);
203
+ }
204
+ async DescribeScdnBotRecords(req, cb) {
205
+ return this.request("DescribeScdnBotRecords", req, cb);
206
+ }
207
+ async DescribeScdnConfig(req, cb) {
208
+ return this.request("DescribeScdnConfig", req, cb);
209
+ }
210
+ async DeleteClsLogTopic(req, cb) {
211
+ return this.request("DeleteClsLogTopic", req, cb);
212
+ }
213
+ async DescribeCdnOriginIp(req, cb) {
214
+ return this.request("DescribeCdnOriginIp", req, cb);
215
+ }
216
+ async DescribeBillingData(req, cb) {
217
+ return this.request("DescribeBillingData", req, cb);
218
+ }
219
+ async DescribePushQuota(req, cb) {
220
+ return this.request("DescribePushQuota", req, cb);
221
+ }
222
+ async EnableClsLogTopic(req, cb) {
223
+ return this.request("EnableClsLogTopic", req, cb);
224
+ }
225
+ async ListScdnDomains(req, cb) {
226
+ return this.request("ListScdnDomains", req, cb);
227
+ }
228
+ async DescribeReportData(req, cb) {
229
+ return this.request("DescribeReportData", req, cb);
230
+ }
231
+ async DescribeDistrictIspData(req, cb) {
232
+ return this.request("DescribeDistrictIspData", req, cb);
233
+ }
234
+ async DescribeScdnBotData(req, cb) {
235
+ return this.request("DescribeScdnBotData", req, cb);
236
+ }
237
+ async UpdatePayType(req, cb) {
238
+ return this.request("UpdatePayType", req, cb);
239
+ }
240
+ async DescribeTopData(req, cb) {
241
+ return this.request("DescribeTopData", req, cb);
242
+ }
243
+ async EnableCaches(req, cb) {
244
+ return this.request("EnableCaches", req, cb);
245
+ }
246
+ async ListScdnTopBotData(req, cb) {
247
+ return this.request("ListScdnTopBotData", req, cb);
248
+ }
249
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cdn_models";
2
+ import { Client } from "./cdn_client";
3
+ export const v20180606 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { cdn } from "./cdn";
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-cdn",
3
- "version": "4.0.1029",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.8",
4
+ "description": "腾讯云 API NODEJS SDK",
5
+ "main": "./tencentcloud/index.js",
6
+ "module": "./es/index.js",
7
+ "types": "./tencentcloud/index.d.ts",
6
8
  "scripts": {
7
9
  "test": "mocha -t 10000",
8
- "build": "tsc",
9
- "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
10
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
+ "build:cjs": "tsc -p tsconfig.json",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "build:slim": "node ./scripts/build_slim.js",
14
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
+ "clean": "rimraf tencentcloud es"
10
16
  },
11
17
  "engines": {
12
18
  "node": ">=10"
13
19
  },
20
+ "files": [
21
+ "tencentcloud",
22
+ "es"
23
+ ],
14
24
  "keywords": [
15
25
  "tencentcloudapi",
16
26
  "tencentcloud",
@@ -22,7 +32,7 @@
22
32
  "author": "tencentcloudapi",
23
33
  "license": "Apache-2.0",
24
34
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
35
+ "tencentcloud-sdk-nodejs-common": "*",
26
36
  "tslib": "1.13.0"
27
37
  },
28
38
  "directories": {
@@ -35,14 +45,22 @@
35
45
  },
36
46
  "devDependencies": {
37
47
  "@types/form-data": "^2.5.0",
48
+ "@types/json-bigint": "^1.0.1",
38
49
  "@types/node": "^14.0.26",
39
50
  "@types/node-fetch": "^2.5.7",
51
+ "@types/uuid": "^9.0.8",
40
52
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
53
  "@typescript-eslint/parser": "^2.34.0",
54
+ "babel-eslint": "^10.0.2",
42
55
  "chai": "^4.2.0",
56
+ "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
43
58
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
59
+ "eslint-plugin-react": "^7.17.0",
60
+ "mocha": "^8.4.0",
61
+ "prettier": "^2.3.0",
62
+ "rimraf": "^5.0.10",
45
63
  "ts-node": "^8.10.2",
46
64
  "typescript": "^3.9.7"
47
65
  }
48
- }
66
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * cdn client
24
25
  * @class
@@ -1763,11 +1763,11 @@ export interface DescribeIpStatusResponse {
1763
1763
  /**
1764
1764
  * 节点列表
1765
1765
  */
1766
- Ips: Array<IpStatus>;
1766
+ Ips?: Array<IpStatus>;
1767
1767
  /**
1768
1768
  * 节点总个数
1769
1769
  */
1770
- TotalCount: number;
1770
+ TotalCount?: number;
1771
1771
  /**
1772
1772
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1773
1773
  */
@@ -3869,7 +3869,7 @@ export interface SearchClsLogResponse {
3869
3869
  /**
3870
3870
  * 查询结果
3871
3871
  */
3872
- Logs: ClsSearchLogs;
3872
+ Logs?: ClsSearchLogs;
3873
3873
  /**
3874
3874
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3875
3875
  */
@@ -4290,15 +4290,15 @@ export interface ListTopClsLogDataResponse {
4290
4290
  /**
4291
4291
  * 数据列表
4292
4292
  */
4293
- Data: Array<ClsLogIpData>;
4293
+ Data?: Array<ClsLogIpData>;
4294
4294
  /**
4295
4295
  * 获取到Top总记录数
4296
4296
  */
4297
- TotalCount: number;
4297
+ TotalCount?: number;
4298
4298
  /**
4299
4299
  * 获取到的不重复IP条数
4300
4300
  */
4301
- IpCount: number;
4301
+ IpCount?: number;
4302
4302
  /**
4303
4303
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4304
4304
  */
@@ -5092,7 +5092,7 @@ export interface CreateClsLogTopicResponse {
5092
5092
  * 主题ID
5093
5093
  注意:此字段可能返回 null,表示取不到有效值。
5094
5094
  */
5095
- TopicId: string;
5095
+ TopicId?: string;
5096
5096
  /**
5097
5097
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5098
5098
  */
@@ -5562,11 +5562,11 @@ export interface DescribeReportDataResponse {
5562
5562
  /**
5563
5563
  * 域名维度数据详情
5564
5564
  */
5565
- DomainReport: Array<ReportData>;
5565
+ DomainReport?: Array<ReportData>;
5566
5566
  /**
5567
5567
  * 项目维度数据详情
5568
5568
  */
5569
- ProjectReport: Array<ReportData>;
5569
+ ProjectReport?: Array<ReportData>;
5570
5570
  /**
5571
5571
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5572
5572
  */
@@ -5579,32 +5579,32 @@ export interface ListClsTopicDomainsResponse {
5579
5579
  /**
5580
5580
  * 开发者ID
5581
5581
  */
5582
- AppId: number;
5582
+ AppId?: number;
5583
5583
  /**
5584
5584
  * 渠道
5585
5585
  */
5586
- Channel: string;
5586
+ Channel?: string;
5587
5587
  /**
5588
5588
  * 日志集ID
5589
5589
  */
5590
- LogsetId: string;
5590
+ LogsetId?: string;
5591
5591
  /**
5592
5592
  * 日志主题ID
5593
5593
  */
5594
- TopicId: string;
5594
+ TopicId?: string;
5595
5595
  /**
5596
5596
  * 域名区域配置,其中可能含有已删除的域名,如果要再传回ManageClsTopicDomains接口,需要结合ListCdnDomains接口排除掉已删除的域名
5597
5597
  */
5598
- DomainAreaConfigs: Array<DomainAreaConfig>;
5598
+ DomainAreaConfigs?: Array<DomainAreaConfig>;
5599
5599
  /**
5600
5600
  * 日志主题名称
5601
5601
  */
5602
- TopicName: string;
5602
+ TopicName?: string;
5603
5603
  /**
5604
5604
  * 日志主题最近更新时间
5605
5605
  注意:此字段可能返回 null,表示取不到有效值。
5606
5606
  */
5607
- UpdateTime: string;
5607
+ UpdateTime?: string;
5608
5608
  /**
5609
5609
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5610
5610
  */
@@ -8664,12 +8664,12 @@ export interface DescribeDomainsConfigResponse {
8664
8664
  /**
8665
8665
  * 域名列表
8666
8666
  */
8667
- Domains: Array<DetailDomain>;
8667
+ Domains?: Array<DetailDomain>;
8668
8668
  /**
8669
8669
  * 符合查询条件的域名总数
8670
8670
  用于分页查询
8671
8671
  */
8672
- TotalNumber: number;
8672
+ TotalNumber?: number;
8673
8673
  /**
8674
8674
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8675
8675
  */
@@ -8703,11 +8703,11 @@ export interface DescribeIpVisitResponse {
8703
8703
  /**
8704
8704
  * 数据统计的时间粒度,支持5min, day,分别表示5分钟,1天的时间粒度。
8705
8705
  */
8706
- Interval: string;
8706
+ Interval?: string;
8707
8707
  /**
8708
8708
  * 各个资源的回源数据详情。
8709
8709
  */
8710
- Data: Array<ResourceData>;
8710
+ Data?: Array<ResourceData>;
8711
8711
  /**
8712
8712
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8713
8713
  */
@@ -9994,11 +9994,11 @@ export interface DescribeUrlViolationsResponse {
9994
9994
  * 违规 URL 详情
9995
9995
  注意:此字段可能返回 null,表示取不到有效值。
9996
9996
  */
9997
- UrlRecordList: Array<ViolationUrl>;
9997
+ UrlRecordList?: Array<ViolationUrl>;
9998
9998
  /**
9999
9999
  * 记录总数,用于分页
10000
10000
  */
10001
- TotalCount: number;
10001
+ TotalCount?: number;
10002
10002
  /**
10003
10003
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10004
10004
  */
@@ -10012,12 +10012,12 @@ export interface DescribePurgeTasksResponse {
10012
10012
  * 详细刷新记录
10013
10013
  注意:此字段可能返回 null,表示取不到有效值。
10014
10014
  */
10015
- PurgeLogs: Array<PurgeTask>;
10015
+ PurgeLogs?: Array<PurgeTask>;
10016
10016
  /**
10017
10017
  * 任务总数,用于分页
10018
10018
  注意:此字段可能返回 null,表示取不到有效值。
10019
10019
  */
10020
- TotalCount: number;
10020
+ TotalCount?: number;
10021
10021
  /**
10022
10022
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10023
10023
  */
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20180606 = void 0;
4
- const Models = require("./cdn_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./cdn_models"));
5
6
  const cdn_client_1 = require("./cdn_client");
6
7
  exports.v20180606 = {
7
8
  Client: cdn_client_1.Client,
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as tencentcloud from './tencentcloud';
2
- export default tencentcloud;
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
- Object.defineProperty(exports, '__esModule', { value: true })
3
- const tslib_1 = require('tslib')
4
- const tencentcloud = tslib_1.__importStar(require('./tencentcloud'))
5
- exports.default = tencentcloud
6
- //# sourceMappingURL=index.js.map
@@ -1,38 +0,0 @@
1
- // prettier.config.js
2
- module.exports = {
3
- // 一行最多 100 字符
4
- printWidth: 100,
5
- // 使用 4 个空格缩进
6
- tabWidth: 2,
7
- // 不使用缩进符,而使用空格
8
- useTabs: false,
9
- // 行尾需要有分号
10
- semi: false,
11
- // 使用单引号
12
- singleQuote: false,
13
- // 对象的 key 仅在必要时用引号
14
- quoteProps: "as-needed",
15
- // jsx 不使用单引号,而使用双引号
16
- jsxSingleQuote: false,
17
- // 末尾不需要逗号
18
- trailingComma: "es5",
19
- // 大括号内的首尾需要空格
20
- bracketSpacing: true,
21
- // jsx 标签的反尖括号需要换行
22
- jsxBracketSameLine: false,
23
- // 箭头函数,只有一个参数的时候,也需要括号
24
- arrowParens: "always",
25
- // 每个文件格式化的范围是文件的全部内容
26
- rangeStart: 0,
27
- rangeEnd: Infinity,
28
- // 不需要写文件开头的 @prettier
29
- requirePragma: false,
30
- // 不需要自动在文件开头插入 @prettier
31
- insertPragma: false,
32
- // 使用默认的折行标准
33
- proseWrap: "preserve",
34
- // 根据显示样式决定 html 要不要折行
35
- htmlWhitespaceSensitivity: "css",
36
- // 换行符使用 lf
37
- endOfLine: "lf",
38
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./services"
@@ -1,5 +0,0 @@
1
- import { v20180606 } from "./v20180606"
2
-
3
- export const cdn = {
4
- v20180606: v20180606,
5
- }