tencentcloud-sdk-python-cloudaudit 3.0.1333__py2.py3-none-any.whl → 3.1.27__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1333'
17
+ __version__ = '3.1.27'
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ class CloudauditClient(AbstractClient):
27
27
 
28
28
 
29
29
  def CreateAuditTrack(self, request):
30
- """创建操作审计跟踪集
30
+ r"""创建操作审计跟踪集
31
31
 
32
32
  :param request: Request instance for CreateAuditTrack.
33
33
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.CreateAuditTrackRequest`
@@ -50,7 +50,7 @@ class CloudauditClient(AbstractClient):
50
50
 
51
51
 
52
52
  def CreateEventsAuditTrack(self, request):
53
- """创建操作审计跟踪集
53
+ r"""创建操作审计跟踪集
54
54
 
55
55
  :param request: Request instance for CreateEventsAuditTrack.
56
56
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.CreateEventsAuditTrackRequest`
@@ -73,7 +73,7 @@ class CloudauditClient(AbstractClient):
73
73
 
74
74
 
75
75
  def DeleteAuditTrack(self, request):
76
- """删除操作审计跟踪集
76
+ r"""删除操作审计跟踪集
77
77
 
78
78
  :param request: Request instance for DeleteAuditTrack.
79
79
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.DeleteAuditTrackRequest`
@@ -96,7 +96,7 @@ class CloudauditClient(AbstractClient):
96
96
 
97
97
 
98
98
  def DescribeAudit(self, request):
99
- """查询跟踪集详情
99
+ r"""查询跟踪集详情
100
100
 
101
101
  :param request: Request instance for DescribeAudit.
102
102
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.DescribeAuditRequest`
@@ -119,7 +119,7 @@ class CloudauditClient(AbstractClient):
119
119
 
120
120
 
121
121
  def DescribeAuditTrack(self, request):
122
- """查询操作审计跟踪集详情
122
+ r"""查询操作审计跟踪集详情
123
123
 
124
124
  :param request: Request instance for DescribeAuditTrack.
125
125
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.DescribeAuditTrackRequest`
@@ -142,7 +142,7 @@ class CloudauditClient(AbstractClient):
142
142
 
143
143
 
144
144
  def DescribeAuditTracks(self, request):
145
- """查询操作审计跟踪集列表
145
+ r"""查询操作审计跟踪集列表
146
146
 
147
147
  :param request: Request instance for DescribeAuditTracks.
148
148
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.DescribeAuditTracksRequest`
@@ -165,7 +165,7 @@ class CloudauditClient(AbstractClient):
165
165
 
166
166
 
167
167
  def DescribeEvents(self, request):
168
- """查询操作审计日志
168
+ r"""查询操作审计日志
169
169
 
170
170
  :param request: Request instance for DescribeEvents.
171
171
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.DescribeEventsRequest`
@@ -188,7 +188,7 @@ class CloudauditClient(AbstractClient):
188
188
 
189
189
 
190
190
  def GetAttributeKey(self, request):
191
- """查询AttributeKey的有效取值范围
191
+ r"""查询AttributeKey的有效取值范围
192
192
 
193
193
  :param request: Request instance for GetAttributeKey.
194
194
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.GetAttributeKeyRequest`
@@ -211,7 +211,7 @@ class CloudauditClient(AbstractClient):
211
211
 
212
212
 
213
213
  def InquireAuditCredit(self, request):
214
- """查询用户可创建跟踪集的数量
214
+ r"""查询用户可创建跟踪集的数量
215
215
 
216
216
  :param request: Request instance for InquireAuditCredit.
217
217
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.InquireAuditCreditRequest`
@@ -234,7 +234,7 @@ class CloudauditClient(AbstractClient):
234
234
 
235
235
 
236
236
  def ListAudits(self, request):
237
- """查询跟踪集概要
237
+ r"""查询跟踪集概要
238
238
 
239
239
  :param request: Request instance for ListAudits.
240
240
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ListAuditsRequest`
@@ -257,7 +257,7 @@ class CloudauditClient(AbstractClient):
257
257
 
258
258
 
259
259
  def ListCmqEnableRegion(self, request):
260
- """查询操作审计支持的cmq的可用区
260
+ r"""查询操作审计支持的cmq的可用区
261
261
 
262
262
  :param request: Request instance for ListCmqEnableRegion.
263
263
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ListCmqEnableRegionRequest`
@@ -280,7 +280,7 @@ class CloudauditClient(AbstractClient):
280
280
 
281
281
 
282
282
  def ListCosEnableRegion(self, request):
283
- """查询操作审计支持的cos可用区
283
+ r"""查询操作审计支持的cos可用区
284
284
 
285
285
  :param request: Request instance for ListCosEnableRegion.
286
286
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ListCosEnableRegionRequest`
@@ -303,7 +303,7 @@ class CloudauditClient(AbstractClient):
303
303
 
304
304
 
305
305
  def ListKeyAliasByRegion(self, request):
306
- """根据地域获取KMS密钥别名
306
+ r"""根据地域获取KMS密钥别名
307
307
 
308
308
  :param request: Request instance for ListKeyAliasByRegion.
309
309
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ListKeyAliasByRegionRequest`
@@ -326,7 +326,7 @@ class CloudauditClient(AbstractClient):
326
326
 
327
327
 
328
328
  def LookUpEvents(self, request):
329
- """用于对操作日志进行检索,便于用户进行查询相关的操作信息。
329
+ r"""用于对操作日志进行检索,便于用户进行查询相关的操作信息。
330
330
 
331
331
  :param request: Request instance for LookUpEvents.
332
332
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.LookUpEventsRequest`
@@ -349,7 +349,7 @@ class CloudauditClient(AbstractClient):
349
349
 
350
350
 
351
351
  def ModifyAuditTrack(self, request):
352
- """修改操作审计跟踪集
352
+ r"""修改操作审计跟踪集
353
353
 
354
354
  :param request: Request instance for ModifyAuditTrack.
355
355
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ModifyAuditTrackRequest`
@@ -372,7 +372,7 @@ class CloudauditClient(AbstractClient):
372
372
 
373
373
 
374
374
  def ModifyEventsAuditTrack(self, request):
375
- """修改操作审计跟踪集
375
+ r"""修改操作审计跟踪集
376
376
 
377
377
  :param request: Request instance for ModifyEventsAuditTrack.
378
378
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.ModifyEventsAuditTrackRequest`
@@ -395,7 +395,7 @@ class CloudauditClient(AbstractClient):
395
395
 
396
396
 
397
397
  def StartLogging(self, request):
398
- """开启跟踪集
398
+ r"""开启跟踪集
399
399
 
400
400
  :param request: Request instance for StartLogging.
401
401
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.StartLoggingRequest`
@@ -418,7 +418,7 @@ class CloudauditClient(AbstractClient):
418
418
 
419
419
 
420
420
  def StopLogging(self, request):
421
- """关闭跟踪集
421
+ r"""关闭跟踪集
422
422
 
423
423
  :param request: Request instance for StopLogging.
424
424
  :type request: :class:`tencentcloud.cloudaudit.v20190319.models.StopLoggingRequest`
@@ -441,7 +441,7 @@ class CloudauditClient(AbstractClient):
441
441
 
442
442
 
443
443
  def UpdateAudit(self, request):
444
- """参数要求:
444
+ r"""参数要求:
445
445
  1、如果IsCreateNewBucket的值存在的话,cosRegion和cosBucketName都是必填参数。
446
446
  2、如果IsEnableCmqNotify的值是1的话,IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
447
447
  3、如果IsEnableCmqNotify的值是0的话,IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
@@ -0,0 +1,372 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.cloudaudit.v20190319 import models
20
+ from typing import Dict
21
+
22
+
23
+ class CloudauditClient(AbstractClient):
24
+ _apiVersion = '2019-03-19'
25
+ _endpoint = 'cloudaudit.tencentcloudapi.com'
26
+ _service = 'cloudaudit'
27
+
28
+ async def CreateAuditTrack(
29
+ self,
30
+ request: models.CreateAuditTrackRequest,
31
+ opts: Dict = None,
32
+ ) -> models.CreateAuditTrackResponse:
33
+ """
34
+ 创建操作审计跟踪集
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "CreateAuditTrack"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.CreateAuditTrackResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateEventsAuditTrack(
47
+ self,
48
+ request: models.CreateEventsAuditTrackRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateEventsAuditTrackResponse:
51
+ """
52
+ 创建操作审计跟踪集
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateEventsAuditTrack"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateEventsAuditTrackResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def DeleteAuditTrack(
65
+ self,
66
+ request: models.DeleteAuditTrackRequest,
67
+ opts: Dict = None,
68
+ ) -> models.DeleteAuditTrackResponse:
69
+ """
70
+ 删除操作审计跟踪集
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "DeleteAuditTrack"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.DeleteAuditTrackResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DescribeAudit(
83
+ self,
84
+ request: models.DescribeAuditRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DescribeAuditResponse:
87
+ """
88
+ 查询跟踪集详情
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DescribeAudit"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DescribeAuditResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def DescribeAuditTrack(
101
+ self,
102
+ request: models.DescribeAuditTrackRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DescribeAuditTrackResponse:
105
+ """
106
+ 查询操作审计跟踪集详情
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DescribeAuditTrack"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DescribeAuditTrackResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def DescribeAuditTracks(
119
+ self,
120
+ request: models.DescribeAuditTracksRequest,
121
+ opts: Dict = None,
122
+ ) -> models.DescribeAuditTracksResponse:
123
+ """
124
+ 查询操作审计跟踪集列表
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "DescribeAuditTracks"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.DescribeAuditTracksResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def DescribeEvents(
137
+ self,
138
+ request: models.DescribeEventsRequest,
139
+ opts: Dict = None,
140
+ ) -> models.DescribeEventsResponse:
141
+ """
142
+ 查询操作审计日志
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "DescribeEvents"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.DescribeEventsResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def GetAttributeKey(
155
+ self,
156
+ request: models.GetAttributeKeyRequest,
157
+ opts: Dict = None,
158
+ ) -> models.GetAttributeKeyResponse:
159
+ """
160
+ 查询AttributeKey的有效取值范围
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "GetAttributeKey"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.GetAttributeKeyResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def InquireAuditCredit(
173
+ self,
174
+ request: models.InquireAuditCreditRequest,
175
+ opts: Dict = None,
176
+ ) -> models.InquireAuditCreditResponse:
177
+ """
178
+ 查询用户可创建跟踪集的数量
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "InquireAuditCredit"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.InquireAuditCreditResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def ListAudits(
191
+ self,
192
+ request: models.ListAuditsRequest,
193
+ opts: Dict = None,
194
+ ) -> models.ListAuditsResponse:
195
+ """
196
+ 查询跟踪集概要
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "ListAudits"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.ListAuditsResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def ListCmqEnableRegion(
209
+ self,
210
+ request: models.ListCmqEnableRegionRequest,
211
+ opts: Dict = None,
212
+ ) -> models.ListCmqEnableRegionResponse:
213
+ """
214
+ 查询操作审计支持的cmq的可用区
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "ListCmqEnableRegion"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.ListCmqEnableRegionResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
226
+ async def ListCosEnableRegion(
227
+ self,
228
+ request: models.ListCosEnableRegionRequest,
229
+ opts: Dict = None,
230
+ ) -> models.ListCosEnableRegionResponse:
231
+ """
232
+ 查询操作审计支持的cos可用区
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "ListCosEnableRegion"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.ListCosEnableRegionResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
244
+ async def ListKeyAliasByRegion(
245
+ self,
246
+ request: models.ListKeyAliasByRegionRequest,
247
+ opts: Dict = None,
248
+ ) -> models.ListKeyAliasByRegionResponse:
249
+ """
250
+ 根据地域获取KMS密钥别名
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "ListKeyAliasByRegion"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.ListKeyAliasByRegionResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
261
+
262
+ async def LookUpEvents(
263
+ self,
264
+ request: models.LookUpEventsRequest,
265
+ opts: Dict = None,
266
+ ) -> models.LookUpEventsResponse:
267
+ """
268
+ 用于对操作日志进行检索,便于用户进行查询相关的操作信息。
269
+ """
270
+
271
+ kwargs = {}
272
+ kwargs["action"] = "LookUpEvents"
273
+ kwargs["params"] = request._serialize()
274
+ kwargs["resp_cls"] = models.LookUpEventsResponse
275
+ kwargs["headers"] = request.headers
276
+ kwargs["opts"] = opts or {}
277
+
278
+ return await self.call_and_deserialize(**kwargs)
279
+
280
+ async def ModifyAuditTrack(
281
+ self,
282
+ request: models.ModifyAuditTrackRequest,
283
+ opts: Dict = None,
284
+ ) -> models.ModifyAuditTrackResponse:
285
+ """
286
+ 修改操作审计跟踪集
287
+ """
288
+
289
+ kwargs = {}
290
+ kwargs["action"] = "ModifyAuditTrack"
291
+ kwargs["params"] = request._serialize()
292
+ kwargs["resp_cls"] = models.ModifyAuditTrackResponse
293
+ kwargs["headers"] = request.headers
294
+ kwargs["opts"] = opts or {}
295
+
296
+ return await self.call_and_deserialize(**kwargs)
297
+
298
+ async def ModifyEventsAuditTrack(
299
+ self,
300
+ request: models.ModifyEventsAuditTrackRequest,
301
+ opts: Dict = None,
302
+ ) -> models.ModifyEventsAuditTrackResponse:
303
+ """
304
+ 修改操作审计跟踪集
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "ModifyEventsAuditTrack"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.ModifyEventsAuditTrackResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
316
+ async def StartLogging(
317
+ self,
318
+ request: models.StartLoggingRequest,
319
+ opts: Dict = None,
320
+ ) -> models.StartLoggingResponse:
321
+ """
322
+ 开启跟踪集
323
+ """
324
+
325
+ kwargs = {}
326
+ kwargs["action"] = "StartLogging"
327
+ kwargs["params"] = request._serialize()
328
+ kwargs["resp_cls"] = models.StartLoggingResponse
329
+ kwargs["headers"] = request.headers
330
+ kwargs["opts"] = opts or {}
331
+
332
+ return await self.call_and_deserialize(**kwargs)
333
+
334
+ async def StopLogging(
335
+ self,
336
+ request: models.StopLoggingRequest,
337
+ opts: Dict = None,
338
+ ) -> models.StopLoggingResponse:
339
+ """
340
+ 关闭跟踪集
341
+ """
342
+
343
+ kwargs = {}
344
+ kwargs["action"] = "StopLogging"
345
+ kwargs["params"] = request._serialize()
346
+ kwargs["resp_cls"] = models.StopLoggingResponse
347
+ kwargs["headers"] = request.headers
348
+ kwargs["opts"] = opts or {}
349
+
350
+ return await self.call_and_deserialize(**kwargs)
351
+
352
+ async def UpdateAudit(
353
+ self,
354
+ request: models.UpdateAuditRequest,
355
+ opts: Dict = None,
356
+ ) -> models.UpdateAuditResponse:
357
+ """
358
+ 参数要求:
359
+ 1、如果IsCreateNewBucket的值存在的话,cosRegion和cosBucketName都是必填参数。
360
+ 2、如果IsEnableCmqNotify的值是1的话,IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
361
+ 3、如果IsEnableCmqNotify的值是0的话,IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
362
+ 4、如果IsEnableKmsEncry的值是1的话,KmsRegion和KeyId属于必填项
363
+ """
364
+
365
+ kwargs = {}
366
+ kwargs["action"] = "UpdateAudit"
367
+ kwargs["params"] = request._serialize()
368
+ kwargs["resp_cls"] = models.UpdateAuditResponse
369
+ kwargs["headers"] = request.headers
370
+ kwargs["opts"] = opts or {}
371
+
372
+ return await self.call_and_deserialize(**kwargs)
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.