tencentcloud-sdk-nodejs-cloudaudit 4.0.431 → 4.0.432
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/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/services/cloudaudit/index.ts +4 -7
- package/src/services/cloudaudit/v20190319/cloudaudit_client.ts +205 -155
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +591 -630
- package/src/services/cloudaudit/v20190319/index.ts +3 -3
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.d.ts +12 -12
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_client.js +12 -12
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +279 -279
- package/tencentcloud/services/cloudaudit/v20190319/index.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -17,51 +17,50 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
20
|
+
InquireAuditCreditResponse,
|
|
21
|
+
StopLoggingRequest,
|
|
22
|
+
CmqRegionInfo,
|
|
23
|
+
GetAttributeKeyRequest,
|
|
24
|
+
DescribeAuditTracksResponse,
|
|
25
|
+
DeleteAuditResponse,
|
|
26
|
+
ModifyAuditTrackResponse,
|
|
27
|
+
InquireAuditCreditRequest,
|
|
28
|
+
DescribeEventsResponse,
|
|
29
|
+
ListCosEnableRegionResponse,
|
|
30
|
+
LookUpEventsRequest,
|
|
31
|
+
StartLoggingRequest,
|
|
32
|
+
UpdateAuditRequest,
|
|
33
|
+
DescribeAuditTracksRequest,
|
|
34
|
+
CreateAuditResponse,
|
|
35
|
+
DeleteAuditTrackRequest,
|
|
36
|
+
StartLoggingResponse,
|
|
37
|
+
AttributeKeyDetail,
|
|
38
|
+
ListCosEnableRegionRequest,
|
|
39
|
+
ListKeyAliasByRegionResponse,
|
|
40
|
+
CreateAuditTrackResponse,
|
|
41
|
+
Resource,
|
|
42
|
+
ListAuditsRequest,
|
|
43
|
+
ModifyAuditTrackRequest,
|
|
44
|
+
StopLoggingResponse,
|
|
45
|
+
CreateAuditTrackRequest,
|
|
46
|
+
LookupAttribute,
|
|
47
|
+
ListAuditsResponse,
|
|
48
|
+
KeyMetadata,
|
|
49
|
+
DescribeEventsRequest,
|
|
50
|
+
UpdateAuditResponse,
|
|
51
|
+
DescribeAuditRequest,
|
|
52
|
+
ListKeyAliasByRegionRequest,
|
|
53
|
+
CreateAuditRequest,
|
|
54
|
+
DeleteAuditRequest,
|
|
55
|
+
ListCmqEnableRegionRequest,
|
|
56
|
+
GetAttributeKeyResponse,
|
|
57
|
+
ListCmqEnableRegionResponse,
|
|
58
|
+
LookUpEventsResponse,
|
|
59
|
+
DeleteAuditTrackResponse,
|
|
60
|
+
CosRegionInfo,
|
|
61
|
+
DescribeAuditResponse,
|
|
62
|
+
Event,
|
|
63
|
+
AuditSummary,
|
|
65
64
|
} from "./cloudaudit_models"
|
|
66
65
|
|
|
67
66
|
/**
|
|
@@ -69,144 +68,195 @@ import {
|
|
|
69
68
|
* @class
|
|
70
69
|
*/
|
|
71
70
|
export class Client extends TencentCloudCommon.AbstractClient {
|
|
71
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
72
|
+
super("cloudaudit.tencentcloudapi.com", "2019-03-19", clientConfig)
|
|
73
|
+
}
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
75
|
+
/**
|
|
76
|
+
* 修改云审计跟踪
|
|
77
|
+
*/
|
|
78
|
+
async ModifyAuditTrack(
|
|
79
|
+
req?: ModifyAuditTrackRequest,
|
|
80
|
+
cb?: (error: string, rep: ModifyAuditTrackResponse) => void
|
|
81
|
+
): Promise<ModifyAuditTrackResponse> {
|
|
82
|
+
return this.request("ModifyAuditTrack", req, cb)
|
|
83
|
+
}
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
/**
|
|
86
|
+
* 开启跟踪集
|
|
87
|
+
*/
|
|
88
|
+
async StartLogging(
|
|
89
|
+
req: StartLoggingRequest,
|
|
90
|
+
cb?: (error: string, rep: StartLoggingResponse) => void
|
|
91
|
+
): Promise<StartLoggingResponse> {
|
|
92
|
+
return this.request("StartLogging", req, cb)
|
|
93
|
+
}
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
/**
|
|
96
|
+
* 查询云审计支持的cos可用区
|
|
97
|
+
*/
|
|
98
|
+
async ListCosEnableRegion(
|
|
99
|
+
req: ListCosEnableRegionRequest,
|
|
100
|
+
cb?: (error: string, rep: ListCosEnableRegionResponse) => void
|
|
101
|
+
): Promise<ListCosEnableRegionResponse> {
|
|
102
|
+
return this.request("ListCosEnableRegion", req, cb)
|
|
103
|
+
}
|
|
97
104
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
/**
|
|
106
|
+
* 查询AttributeKey的有效取值范围
|
|
107
|
+
*/
|
|
108
|
+
async GetAttributeKey(
|
|
109
|
+
req: GetAttributeKeyRequest,
|
|
110
|
+
cb?: (error: string, rep: GetAttributeKeyResponse) => void
|
|
111
|
+
): Promise<GetAttributeKeyResponse> {
|
|
112
|
+
return this.request("GetAttributeKey", req, cb)
|
|
113
|
+
}
|
|
104
114
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
/**
|
|
116
|
+
* 创建跟踪集
|
|
117
|
+
*/
|
|
118
|
+
async CreateAuditTrack(
|
|
119
|
+
req?: CreateAuditTrackRequest,
|
|
120
|
+
cb?: (error: string, rep: CreateAuditTrackResponse) => void
|
|
121
|
+
): Promise<CreateAuditTrackResponse> {
|
|
122
|
+
return this.request("CreateAuditTrack", req, cb)
|
|
123
|
+
}
|
|
111
124
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
125
|
+
/**
|
|
126
|
+
* 查询云审计支持的cmq的可用区
|
|
127
|
+
*/
|
|
128
|
+
async ListCmqEnableRegion(
|
|
129
|
+
req: ListCmqEnableRegionRequest,
|
|
130
|
+
cb?: (error: string, rep: ListCmqEnableRegionResponse) => void
|
|
131
|
+
): Promise<ListCmqEnableRegionResponse> {
|
|
132
|
+
return this.request("ListCmqEnableRegion", req, cb)
|
|
133
|
+
}
|
|
118
134
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
135
|
+
/**
|
|
136
|
+
* 删除跟踪集
|
|
137
|
+
*/
|
|
138
|
+
async DeleteAudit(
|
|
139
|
+
req: DeleteAuditRequest,
|
|
140
|
+
cb?: (error: string, rep: DeleteAuditResponse) => void
|
|
141
|
+
): Promise<DeleteAuditResponse> {
|
|
142
|
+
return this.request("DeleteAudit", req, cb)
|
|
143
|
+
}
|
|
125
144
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
145
|
+
/**
|
|
146
|
+
* 查询云审计日志
|
|
147
|
+
*/
|
|
148
|
+
async DescribeEvents(
|
|
149
|
+
req: DescribeEventsRequest,
|
|
150
|
+
cb?: (error: string, rep: DescribeEventsResponse) => void
|
|
151
|
+
): Promise<DescribeEventsResponse> {
|
|
152
|
+
return this.request("DescribeEvents", req, cb)
|
|
153
|
+
}
|
|
132
154
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
155
|
+
/**
|
|
156
|
+
* 关闭跟踪集
|
|
157
|
+
*/
|
|
158
|
+
async StopLogging(
|
|
159
|
+
req: StopLoggingRequest,
|
|
160
|
+
cb?: (error: string, rep: StopLoggingResponse) => void
|
|
161
|
+
): Promise<StopLoggingResponse> {
|
|
162
|
+
return this.request("StopLogging", req, cb)
|
|
163
|
+
}
|
|
139
164
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
165
|
+
/**
|
|
166
|
+
* 查询云审计跟踪集列表
|
|
167
|
+
*/
|
|
168
|
+
async DescribeAuditTracks(
|
|
169
|
+
req?: DescribeAuditTracksRequest,
|
|
170
|
+
cb?: (error: string, rep: DescribeAuditTracksResponse) => void
|
|
171
|
+
): Promise<DescribeAuditTracksResponse> {
|
|
172
|
+
return this.request("DescribeAuditTracks", req, cb)
|
|
173
|
+
}
|
|
146
174
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
175
|
+
/**
|
|
176
|
+
* 查询用户可创建跟踪集的数量
|
|
177
|
+
*/
|
|
178
|
+
async InquireAuditCredit(
|
|
179
|
+
req?: InquireAuditCreditRequest,
|
|
180
|
+
cb?: (error: string, rep: InquireAuditCreditResponse) => void
|
|
181
|
+
): Promise<InquireAuditCreditResponse> {
|
|
182
|
+
return this.request("InquireAuditCredit", req, cb)
|
|
183
|
+
}
|
|
153
184
|
|
|
154
|
-
|
|
185
|
+
/**
|
|
155
186
|
* 参数要求:
|
|
156
187
|
1、如果IsCreateNewBucket的值存在的话,cosRegion和cosBucketName都是必填参数。
|
|
157
188
|
2、如果IsEnableCmqNotify的值是1的话,IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
|
|
158
189
|
3、如果IsEnableCmqNotify的值是0的话,IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
|
|
159
190
|
4、如果IsEnableKmsEncry的值是1的话,KmsRegion和KeyId属于必填项
|
|
160
191
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
192
|
+
async UpdateAudit(
|
|
193
|
+
req: UpdateAuditRequest,
|
|
194
|
+
cb?: (error: string, rep: UpdateAuditResponse) => void
|
|
195
|
+
): Promise<UpdateAuditResponse> {
|
|
196
|
+
return this.request("UpdateAudit", req, cb)
|
|
197
|
+
}
|
|
164
198
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
199
|
+
/**
|
|
200
|
+
* 根据地域获取KMS密钥别名
|
|
201
|
+
*/
|
|
202
|
+
async ListKeyAliasByRegion(
|
|
203
|
+
req: ListKeyAliasByRegionRequest,
|
|
204
|
+
cb?: (error: string, rep: ListKeyAliasByRegionResponse) => void
|
|
205
|
+
): Promise<ListKeyAliasByRegionResponse> {
|
|
206
|
+
return this.request("ListKeyAliasByRegion", req, cb)
|
|
207
|
+
}
|
|
171
208
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
/**
|
|
210
|
+
* 查询跟踪集详情
|
|
211
|
+
*/
|
|
212
|
+
async DescribeAudit(
|
|
213
|
+
req: DescribeAuditRequest,
|
|
214
|
+
cb?: (error: string, rep: DescribeAuditResponse) => void
|
|
215
|
+
): Promise<DescribeAuditResponse> {
|
|
216
|
+
return this.request("DescribeAudit", req, cb)
|
|
217
|
+
}
|
|
178
218
|
|
|
179
|
-
|
|
219
|
+
/**
|
|
180
220
|
* 参数要求:
|
|
181
221
|
1、如果IsCreateNewBucket的值存在的话,cosRegion和cosBucketName都是必填参数。
|
|
182
222
|
2、如果IsEnableCmqNotify的值是1的话,IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
|
|
183
223
|
3、如果IsEnableCmqNotify的值是0的话,IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
|
|
184
224
|
4、如果IsEnableKmsEncry的值是1的话,KmsRegion和KeyId属于必填项
|
|
185
225
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
226
|
+
async CreateAudit(
|
|
227
|
+
req: CreateAuditRequest,
|
|
228
|
+
cb?: (error: string, rep: CreateAuditResponse) => void
|
|
229
|
+
): Promise<CreateAuditResponse> {
|
|
230
|
+
return this.request("CreateAudit", req, cb)
|
|
231
|
+
}
|
|
189
232
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*/
|
|
200
|
-
async LookUpEvents(req: LookUpEventsRequest, cb?: (error: string, rep: LookUpEventsResponse) => void): Promise<LookUpEventsResponse> {
|
|
201
|
-
return this.request("LookUpEvents", req, cb);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* 查询跟踪集概要
|
|
206
|
-
*/
|
|
207
|
-
async ListAudits(req?: ListAuditsRequest, cb?: (error: string, rep: ListAuditsResponse) => void): Promise<ListAuditsResponse> {
|
|
208
|
-
return this.request("ListAudits", req, cb);
|
|
209
|
-
}
|
|
233
|
+
/**
|
|
234
|
+
* 删除云审计跟踪集
|
|
235
|
+
*/
|
|
236
|
+
async DeleteAuditTrack(
|
|
237
|
+
req?: DeleteAuditTrackRequest,
|
|
238
|
+
cb?: (error: string, rep: DeleteAuditTrackResponse) => void
|
|
239
|
+
): Promise<DeleteAuditTrackResponse> {
|
|
240
|
+
return this.request("DeleteAuditTrack", req, cb)
|
|
241
|
+
}
|
|
210
242
|
|
|
243
|
+
/**
|
|
244
|
+
* 用于对操作日志进行检索,便于用户进行查询相关的操作信息。
|
|
245
|
+
*/
|
|
246
|
+
async LookUpEvents(
|
|
247
|
+
req: LookUpEventsRequest,
|
|
248
|
+
cb?: (error: string, rep: LookUpEventsResponse) => void
|
|
249
|
+
): Promise<LookUpEventsResponse> {
|
|
250
|
+
return this.request("LookUpEvents", req, cb)
|
|
251
|
+
}
|
|
211
252
|
|
|
253
|
+
/**
|
|
254
|
+
* 查询跟踪集概要
|
|
255
|
+
*/
|
|
256
|
+
async ListAudits(
|
|
257
|
+
req?: ListAuditsRequest,
|
|
258
|
+
cb?: (error: string, rep: ListAuditsResponse) => void
|
|
259
|
+
): Promise<ListAuditsResponse> {
|
|
260
|
+
return this.request("ListAudits", req, cb)
|
|
261
|
+
}
|
|
212
262
|
}
|