tencentcloud-sdk-nodejs-cloudaudit 4.0.1013 → 4.1.33

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
@@ -1,36 +1,88 @@
1
1
  # 简介
2
2
 
3
- 欢迎使用腾讯云开发者工具套件(SDK),NODEJS SDK 4.0 是云 API 3.0 平台的配套工具。目前已经支持 cvm、vpc、cbs 等产品,后续所有的云服务产品都会接入进来。新版 SDK 实现了统一化,具有各个语言版本的 SDK 使用方法相同,接口调用方式相同,统一的错误码和返回包格式这些优点。
4
- 为方便 NODEJS 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 NODEJS 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 NODEJS SDK 并开始调用。
3
+ 欢迎使用腾讯云开发者工具套件(SDK),Node.js SDK 4.0 是云 API 3.0 平台的配套工具。
4
+ 为方便 Node.js 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 Node.js 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 Node.js SDK 并开始调用。
5
5
 
6
6
  # 依赖环境
7
7
 
8
- 1. NODEJS 10.0.0 版本及以上
9
- 2. 从腾讯云控制台 开通相应产品
10
- 3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为\*.tencentcloudapi.com,如 CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
8
+ 1. Node.js 10.0.0 版本及以上。
9
+ 2. 注意:部分产品需在 [腾讯云控制台](https://console.cloud.tencent.com/) 开通服务后才能使用。
11
10
 
12
11
  # 获取安装
13
12
 
14
- 安装 NODEJS SDK 前,先获取安全凭证。在第一次使用云 API 之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID SecretKey, SecretID 是用于标识 API 调用者的身份,SecretKey 是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretKey 必须严格保管,避免泄露。
13
+ 使用 SDK 需要 API 密钥,可前往 [腾讯云控制台 - 访问密钥](https://console.cloud.tencent.com/cam/capi) 页面申请,API 密钥包括 SecretID SecretKey,密钥须严格保管,避免泄露。
15
14
 
16
- ## 通过 Npm 安装
15
+ ## 通过 npm 安装
17
16
 
18
- 通过 npm 获取安装是使用 NODEJS SDK 的推荐方法,npm 是 NODEJS 的包管理工具。关于 npm 详细可参考[ npm 官网](https://www.npmjs.com/) 。
17
+ 通过 npm 获取安装是使用 Node.js SDK 的推荐方法,关于 npm 详细可参考 [NPM 官网](https://www.npmjs.com/) 。
19
18
 
20
- 1. 执行以下安装命令:
21
- > npm install tencentcloud-sdk-nodejs --save
22
- 2. 在您的代码中引用对应模块代码,可参考示例。
23
- 3. 如上引用方式会将腾讯云所有产品sdk下载到本地,可以将tencentcloud-sdk-nodejs换成tencentcloud-sdk-nodejs-cvm/cbs/vpc等,即可引用特定产品的sdk,代码中可将require("tencentcloud-sdk-nodejs")改为require("tencentcloud-sdk-nodejs-cvm/cbs/vpc"),其余不变,可参考示例,可大大节省存储空间。
19
+ ### 安装指定产品 SDK(推荐)
20
+
21
+ 安装 CVM SDK:
22
+
23
+ ```
24
+ npm install tencentcloud-sdk-nodejs-cvm --save
25
+ ```
26
+
27
+ 安装 VPC SDK:
28
+
29
+ ```
30
+ npm install tencentcloud-sdk-nodejs-vpc --save
31
+ ```
32
+
33
+ 具体产品的缩写表请参考 [products.md](./products.md) 中的包名字段。
34
+
35
+ 安装指定产品 SDK 后,注意修改引入的包名:
36
+
37
+ ```diff
38
+ - const tencentcloud = require("tencentcloud-sdk-nodejs")
39
+ + const { cvm } = require("tencentcloud-sdk-nodejs-cvm")
40
+
41
+ - const CvmClient = tencentcloud.cvm.v20170312.Client
42
+ + const CvmClient = cvm.v20170312.Client
43
+ ```
44
+
45
+ ### 安装全产品 SDK
46
+
47
+ 如果项目依赖的云产品较多,可以引入全产品 SDK。
48
+
49
+ ```
50
+ npm install tencentcloud-sdk-nodejs --save
51
+ ```
52
+
53
+ 全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
54
+
55
+ 如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
56
+
57
+ ```
58
+ npm install tencentcloud-sdk-slim-nodejs --save
59
+ ```
24
60
 
25
61
  ## 通过源码包安装
26
62
 
27
- 1. 前往 [Github 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
28
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
29
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
30
- 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
+ ```
31
81
 
32
82
  # 示例
33
83
 
84
+ 以云服务器产品查询可用区列表接口为例。
85
+
34
86
  ```js
35
87
  const tencentcloud = require("tencentcloud-sdk-nodejs")
36
88
 
@@ -73,7 +125,7 @@ client.DescribeZones().then(
73
125
  )
74
126
  ```
75
127
 
76
- 在支持 typescript 项目中,采用如下方式调用
128
+ 在支持 TypeScript 项目中,采用如下方式调用
77
129
 
78
130
  ```js
79
131
  import * as tencentcloud from "tencentcloud-sdk-nodejs"
@@ -83,10 +135,11 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
83
135
  // ...
84
136
  ```
85
137
 
86
- 实例化`Client` 的入参支持 `clientConfig` 数据结构和说明 详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)
138
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)
87
139
 
88
140
  ## Common Client
89
- 从 4.0.714 版本开始腾讯云 NODEJS SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
141
+
142
+ 从 4.0.714 版本开始,腾讯云 Node.js SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 tencentcloud-sdk-nodejs-common 包,即可向任何产品发起调用。
90
143
 
91
144
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
92
145
 
@@ -94,19 +147,19 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
94
147
 
95
148
  ## 更多示例
96
149
 
97
- 更丰富的使用 demo 请在 examples 目录中寻找。
150
+ 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
98
151
 
99
152
  # 相关配置
100
153
 
101
154
  ## 代理
102
155
 
103
- 如果是有代理的环境下,需要配置代理,请在创建Client时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
156
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
104
157
 
105
158
  # 凭证管理
106
159
 
107
160
  除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
108
161
 
109
- 在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
162
+ 在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js 示例代码](./examples/cvm_role.js) 或 [ts 示例代码](./examples/cvm_role.ts)
110
163
  ```javascript
111
164
  // ...
112
165
  const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
@@ -118,20 +171,16 @@ new XxxClient({
118
171
  })
119
172
  ```
120
173
 
121
- # 旧版 SDK
122
-
123
- 我们推荐使用新版 NODEJS SDK,如果一定要用旧版 SDK,请前往[github 仓库](https://github.com/CFETeam/qcloudapi-sdk)下载。
124
-
125
174
  # 常见问题
126
- - webpack打包出错/浏览器报错
175
+ - webpack 打包出错/浏览器报错
127
176
 
128
- 请**务必不要**将此sdk直接用于web前端(包括小程序等),暴露密钥在这些环境非常不安全。
177
+ 请**务必不要**将此 SDK 直接用于 Web 前端(包括小程序等),暴露密钥在这些环境非常不安全。
129
178
 
130
- 正确的做法是在自己的服务端引用此sdk,并保存好密钥,做好请求鉴权;前端再调用服务端执行业务流程。
179
+ 正确的做法是在自己的服务端引用此 SDK,并保存好密钥,做好请求鉴权,前端再调用服务端执行业务流程。
131
180
 
132
181
  - `The "original" argument must be of type Function.`
133
182
 
134
- 通常是因为nodejs版本低于 `v10` ,或处于非node环境,请再次确认执行环境。
183
+ 通常是因为 Node.js 版本低于 `v10` ,或处于非 Node.js 环境,请再次确认执行环境。
135
184
 
136
185
  - 请求不通
137
186
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ import { v20190319 } from "./v20190319";
2
+ export const cloudaudit = {
3
+ v20190319: v20190319,
4
+ };
@@ -0,0 +1,63 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("cloudaudit.tencentcloudapi.com", "2019-03-19", clientConfig);
5
+ }
6
+ async ModifyAuditTrack(req, cb) {
7
+ return this.request("ModifyAuditTrack", req, cb);
8
+ }
9
+ async StartLogging(req, cb) {
10
+ return this.request("StartLogging", req, cb);
11
+ }
12
+ async DescribeAuditTrack(req, cb) {
13
+ return this.request("DescribeAuditTrack", req, cb);
14
+ }
15
+ async GetAttributeKey(req, cb) {
16
+ return this.request("GetAttributeKey", req, cb);
17
+ }
18
+ async CreateAuditTrack(req, cb) {
19
+ return this.request("CreateAuditTrack", req, cb);
20
+ }
21
+ async ListCmqEnableRegion(req, cb) {
22
+ return this.request("ListCmqEnableRegion", req, cb);
23
+ }
24
+ async CreateEventsAuditTrack(req, cb) {
25
+ return this.request("CreateEventsAuditTrack", req, cb);
26
+ }
27
+ async DescribeEvents(req, cb) {
28
+ return this.request("DescribeEvents", req, cb);
29
+ }
30
+ async ModifyEventsAuditTrack(req, cb) {
31
+ return this.request("ModifyEventsAuditTrack", req, cb);
32
+ }
33
+ async StopLogging(req, cb) {
34
+ return this.request("StopLogging", req, cb);
35
+ }
36
+ async ListCosEnableRegion(req, cb) {
37
+ return this.request("ListCosEnableRegion", req, cb);
38
+ }
39
+ async DescribeAuditTracks(req, cb) {
40
+ return this.request("DescribeAuditTracks", req, cb);
41
+ }
42
+ async InquireAuditCredit(req, cb) {
43
+ return this.request("InquireAuditCredit", req, cb);
44
+ }
45
+ async UpdateAudit(req, cb) {
46
+ return this.request("UpdateAudit", req, cb);
47
+ }
48
+ async ListKeyAliasByRegion(req, cb) {
49
+ return this.request("ListKeyAliasByRegion", req, cb);
50
+ }
51
+ async DescribeAudit(req, cb) {
52
+ return this.request("DescribeAudit", req, cb);
53
+ }
54
+ async DeleteAuditTrack(req, cb) {
55
+ return this.request("DeleteAuditTrack", req, cb);
56
+ }
57
+ async LookUpEvents(req, cb) {
58
+ return this.request("LookUpEvents", req, cb);
59
+ }
60
+ async ListAudits(req, cb) {
61
+ return this.request("ListAudits", req, cb);
62
+ }
63
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cloudaudit_models";
2
+ import { Client } from "./cloudaudit_client";
3
+ export const v20190319 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { cloudaudit } from "./cloudaudit";
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-cloudaudit",
3
- "version": "4.0.1013",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.33",
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
  * cloudaudit client
24
25
  * @class
@@ -26,12 +26,10 @@ export interface StopLoggingRequest {
26
26
  export interface CmqRegionInfo {
27
27
  /**
28
28
  * 地域描述
29
- 注意:此字段可能返回 null,表示取不到有效值。
30
29
  */
31
30
  CmqRegionName?: string;
32
31
  /**
33
32
  * cmq地域
34
- 注意:此字段可能返回 null,表示取不到有效值。
35
33
  */
36
34
  CmqRegion?: string;
37
35
  }
@@ -66,12 +64,10 @@ export interface Storage {
66
64
  StoragePrefix: string;
67
65
  /**
68
66
  * 被指定存储用户ID
69
- 注意:此字段可能返回 null,表示取不到有效值。
70
67
  */
71
68
  StorageAccountId?: string;
72
69
  /**
73
70
  * 被指定存储用户appid
74
- 注意:此字段可能返回 null,表示取不到有效值。
75
71
  */
76
72
  StorageAppId?: string;
77
73
  }
@@ -128,12 +124,10 @@ export interface DescribeEventsResponse {
128
124
  NextToken?: number;
129
125
  /**
130
126
  * 日志集合
131
- 注意:此字段可能返回 null,表示取不到有效值。
132
127
  */
133
128
  Events?: Array<Event>;
134
129
  /**
135
130
  * 此字段已经废弃。翻页请使用ListOver配合NextToken,在ListOver为false进行下一页数据读取。
136
- 注意:此字段可能返回 null,表示取不到有效值。
137
131
  */
138
132
  TotalCount?: number;
139
133
  /**
@@ -303,27 +297,22 @@ export interface StartLoggingResponse {
303
297
  export interface AttributeKeyDetail {
304
298
  /**
305
299
  * 输入框类型
306
- 注意:此字段可能返回 null,表示取不到有效值。
307
300
  */
308
301
  LabelType: string;
309
302
  /**
310
303
  * 初始化展示
311
- 注意:此字段可能返回 null,表示取不到有效值。
312
304
  */
313
305
  Starter: string;
314
306
  /**
315
307
  * 展示排序
316
- 注意:此字段可能返回 null,表示取不到有效值。
317
308
  */
318
309
  Order: number;
319
310
  /**
320
311
  * AttributeKey值
321
- 注意:此字段可能返回 null,表示取不到有效值。
322
312
  */
323
313
  Value: string;
324
314
  /**
325
315
  * 中文标签
326
- 注意:此字段可能返回 null,表示取不到有效值。
327
316
  */
328
317
  Label: string;
329
318
  }
@@ -409,12 +398,10 @@ export interface Tracks {
409
398
  export interface Resource {
410
399
  /**
411
400
  * 资源类型
412
- 注意:此字段可能返回 null,表示取不到有效值。
413
401
  */
414
402
  ResourceType?: string;
415
403
  /**
416
404
  * 资源名称
417
- 注意:此字段可能返回 null,表示取不到有效值。
418
405
  */
419
406
  ResourceName?: string;
420
407
  }
@@ -478,7 +465,6 @@ export interface StopLoggingResponse {
478
465
  export interface Filter {
479
466
  /**
480
467
  * 资源筛选条件
481
- 注意:此字段可能返回 null,表示取不到有效值。
482
468
  */
483
469
  ResourceFields?: Array<ResourceField>;
484
470
  }
@@ -488,17 +474,14 @@ export interface Filter {
488
474
  export interface ResourceField {
489
475
  /**
490
476
  * 跟踪事件所属产品(支持全部产品或单个产品,如:cam,全部:*)
491
- 注意:此字段可能返回 null,表示取不到有效值。
492
477
  */
493
478
  ResourceType: string;
494
479
  /**
495
480
  * 跟踪事件类型(读:Read;写:Write;全部:*)
496
- 注意:此字段可能返回 null,表示取不到有效值。
497
481
  */
498
482
  ActionType: string;
499
483
  /**
500
484
  * 跟踪事件接口名列表(ResourceType为 * 时,EventNames必须为全部:[""];指定ResourceType时,支持全部接口:[""];支持部分接口:["cos", "cls"],接口列表上限10个)
501
- 注意:此字段可能返回 null,表示取不到有效值。
502
485
  */
503
486
  EventNames: Array<string>;
504
487
  }
@@ -554,7 +537,6 @@ export interface LookupAttribute {
554
537
  export interface ListAuditsResponse {
555
538
  /**
556
539
  * 查询跟踪集概要集合
557
- 注意:此字段可能返回 null,表示取不到有效值。
558
540
  */
559
541
  AuditSummarys?: Array<AuditSummary>;
560
542
  /**
@@ -568,12 +550,10 @@ export interface ListAuditsResponse {
568
550
  export interface KeyMetadata {
569
551
  /**
570
552
  * 作为密钥更容易辨识,更容易被人看懂的别名
571
- 注意:此字段可能返回 null,表示取不到有效值。
572
553
  */
573
554
  Alias?: string;
574
555
  /**
575
556
  * CMK的全局唯一标识
576
- 注意:此字段可能返回 null,表示取不到有效值。
577
557
  */
578
558
  KeyId?: string;
579
559
  }
@@ -695,22 +675,18 @@ export interface ListCmqEnableRegionResponse {
695
675
  export interface LookUpEventsResponse {
696
676
  /**
697
677
  * 查看更多日志的凭证
698
- 注意:此字段可能返回 null,表示取不到有效值。
699
678
  */
700
679
  NextToken?: string;
701
680
  /**
702
681
  * 日志集合
703
- 注意:此字段可能返回 null,表示取不到有效值。
704
682
  */
705
683
  Events?: Array<Event>;
706
684
  /**
707
685
  * 日志集合是否结束
708
- 注意:此字段可能返回 null,表示取不到有效值。
709
686
  */
710
687
  ListOver?: boolean;
711
688
  /**
712
689
  * 数量
713
- 注意:此字段可能返回 null,表示取不到有效值。
714
690
  */
715
691
  TotalCount?: number;
716
692
  /**
@@ -801,12 +777,10 @@ export interface DescribeAuditTrackResponse {
801
777
  CreateTime?: string;
802
778
  /**
803
779
  * 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号
804
- 注意:此字段可能返回 null,表示取不到有效值。
805
780
  */
806
781
  TrackForAllMembers?: number;
807
782
  /**
808
783
  * 数据投递过滤条件
809
- 注意:此字段可能返回 null,表示取不到有效值。
810
784
  */
811
785
  Filters?: Filter;
812
786
  /**
@@ -938,7 +912,6 @@ export interface Event {
938
912
  EventName?: string;
939
913
  /**
940
914
  * 证书ID
941
- 注意:此字段可能返回 null,表示取不到有效值。
942
915
  */
943
916
  SecretId?: string;
944
917
  /**
@@ -959,7 +932,6 @@ export interface Event {
959
932
  AccountID?: number;
960
933
  /**
961
934
  * 源IP
962
- 注意:此字段可能返回 null,表示取不到有效值。
963
935
  */
964
936
  SourceIPAddress?: string;
965
937
  /**
@@ -985,22 +957,18 @@ export interface Event {
985
957
  export interface AuditSummary {
986
958
  /**
987
959
  * 跟踪集状态,1:开启,0:关闭
988
- 注意:此字段可能返回 null,表示取不到有效值。
989
960
  */
990
961
  AuditStatus?: number;
991
962
  /**
992
963
  * COS存储桶名称
993
- 注意:此字段可能返回 null,表示取不到有效值。
994
964
  */
995
965
  CosBucketName?: string;
996
966
  /**
997
967
  * 跟踪集名称
998
- 注意:此字段可能返回 null,表示取不到有效值。
999
968
  */
1000
969
  AuditName?: string;
1001
970
  /**
1002
971
  * 日志前缀
1003
- 注意:此字段可能返回 null,表示取不到有效值。
1004
972
  */
1005
973
  LogFilePrefix?: string;
1006
974
  }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20190319 = void 0;
4
- const Models = require("./cloudaudit_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./cloudaudit_models"));
5
6
  const cloudaudit_client_1 = require("./cloudaudit_client");
6
7
  exports.v20190319 = {
7
8
  Client: cloudaudit_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
- }