tencentcloud-sdk-cloudaudit 3.0.456 → 3.0.458
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190319/client.rb +24 -0
- data/lib/v20190319/models.rb +254 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b10790d289fa3f69b6f80d15b4e78bffd5f153f0
|
4
|
+
data.tar.gz: a751ff41230ab5bf7282a629eb091439690bc47a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae7710581442f3a7586f7e7dd07c7ce579d292b3e93d420c7e6b4f13d7e21c3237c0310760214218ef3434efe4147606db8e366b3a5bd4a39e0bb98e9274b4e
|
7
|
+
data.tar.gz: a2ebf8e64cbce9e60660e7a4acf22eb5a2396b2b1f9ad1cb70a1ce0b20aa211a5e580396de672f771ad49eae8bea7e666a3f6a9e6624221ee0c617734c92ae12
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.458
|
data/lib/v20190319/client.rb
CHANGED
@@ -153,6 +153,30 @@ module TencentCloud
|
|
153
153
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
154
154
|
end
|
155
155
|
|
156
|
+
# 查询云审计跟踪集详情
|
157
|
+
|
158
|
+
# @param request: Request instance for DescribeAuditTrack.
|
159
|
+
# @type request: :class:`Tencentcloud::cloudaudit::V20190319::DescribeAuditTrackRequest`
|
160
|
+
# @rtype: :class:`Tencentcloud::cloudaudit::V20190319::DescribeAuditTrackResponse`
|
161
|
+
def DescribeAuditTrack(request)
|
162
|
+
body = send_request('DescribeAuditTrack', request.serialize)
|
163
|
+
response = JSON.parse(body)
|
164
|
+
if response['Response'].key?('Error') == false
|
165
|
+
model = DescribeAuditTrackResponse.new
|
166
|
+
model.deserialize(response['Response'])
|
167
|
+
model
|
168
|
+
else
|
169
|
+
code = response['Response']['Error']['Code']
|
170
|
+
message = response['Response']['Error']['Message']
|
171
|
+
reqid = response['Response']['RequestId']
|
172
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
173
|
+
end
|
174
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
175
|
+
raise e
|
176
|
+
rescue StandardError => e
|
177
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
178
|
+
end
|
179
|
+
|
156
180
|
# 查询云审计跟踪集列表
|
157
181
|
|
158
182
|
# @param request: Request instance for DescribeAuditTracks.
|
data/lib/v20190319/models.rb
CHANGED
@@ -203,27 +203,63 @@ module TencentCloud
|
|
203
203
|
|
204
204
|
# CreateAuditTrack请求参数结构体
|
205
205
|
class CreateAuditTrackRequest < TencentCloud::Common::AbstractModel
|
206
|
-
|
206
|
+
# @param Name: 跟踪集名称,仅支持大小写字母、数字、-以及_的组合,3-48个字符
|
207
|
+
# @type Name: String
|
208
|
+
# @param ActionType: 跟踪事件类型(读:Read;写:Write;全部:*)
|
209
|
+
# @type ActionType: String
|
210
|
+
# @param ResourceType: 跟踪事件所属产品(支持全部产品或单个产品,如:cos,全部:*)
|
211
|
+
# @type ResourceType: String
|
212
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
213
|
+
# @type Status: Integer
|
214
|
+
# @param EventNames: 跟踪事件接口名列表(ResourceType为 * 时,EventNames必须为全部:["*"];指定ResourceType时,支持全部接口:["*"];支持部分接口:["cos", "cls"],接口列表上限10个)
|
215
|
+
# @type EventNames: Array
|
216
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
217
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
218
|
+
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号(0:未开启,1:开启,只能集团管理账号或者可信服务管理账号开启此项功能)
|
219
|
+
# @type TrackForAllMembers: Integer
|
220
|
+
|
221
|
+
attr_accessor :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :TrackForAllMembers
|
207
222
|
|
208
|
-
def initialize()
|
223
|
+
def initialize(name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, trackforallmembers=nil)
|
224
|
+
@Name = name
|
225
|
+
@ActionType = actiontype
|
226
|
+
@ResourceType = resourcetype
|
227
|
+
@Status = status
|
228
|
+
@EventNames = eventnames
|
229
|
+
@Storage = storage
|
230
|
+
@TrackForAllMembers = trackforallmembers
|
209
231
|
end
|
210
232
|
|
211
233
|
def deserialize(params)
|
234
|
+
@Name = params['Name']
|
235
|
+
@ActionType = params['ActionType']
|
236
|
+
@ResourceType = params['ResourceType']
|
237
|
+
@Status = params['Status']
|
238
|
+
@EventNames = params['EventNames']
|
239
|
+
unless params['Storage'].nil?
|
240
|
+
@Storage = Storage.new
|
241
|
+
@Storage.deserialize(params['Storage'])
|
242
|
+
end
|
243
|
+
@TrackForAllMembers = params['TrackForAllMembers']
|
212
244
|
end
|
213
245
|
end
|
214
246
|
|
215
247
|
# CreateAuditTrack返回参数结构体
|
216
248
|
class CreateAuditTrackResponse < TencentCloud::Common::AbstractModel
|
249
|
+
# @param TrackId: 跟踪集 ID
|
250
|
+
# @type TrackId: Integer
|
217
251
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
218
252
|
# @type RequestId: String
|
219
253
|
|
220
|
-
attr_accessor :RequestId
|
254
|
+
attr_accessor :TrackId, :RequestId
|
221
255
|
|
222
|
-
def initialize(requestid=nil)
|
256
|
+
def initialize(trackid=nil, requestid=nil)
|
257
|
+
@TrackId = trackid
|
223
258
|
@RequestId = requestid
|
224
259
|
end
|
225
260
|
|
226
261
|
def deserialize(params)
|
262
|
+
@TrackId = params['TrackId']
|
227
263
|
@RequestId = params['RequestId']
|
228
264
|
end
|
229
265
|
end
|
@@ -266,12 +302,17 @@ module TencentCloud
|
|
266
302
|
|
267
303
|
# DeleteAuditTrack请求参数结构体
|
268
304
|
class DeleteAuditTrackRequest < TencentCloud::Common::AbstractModel
|
305
|
+
# @param TrackId: 跟踪集 ID
|
306
|
+
# @type TrackId: Integer
|
269
307
|
|
308
|
+
attr_accessor :TrackId
|
270
309
|
|
271
|
-
def initialize()
|
310
|
+
def initialize(trackid=nil)
|
311
|
+
@TrackId = trackid
|
272
312
|
end
|
273
313
|
|
274
314
|
def deserialize(params)
|
315
|
+
@TrackId = params['TrackId']
|
275
316
|
end
|
276
317
|
end
|
277
318
|
|
@@ -375,29 +416,121 @@ module TencentCloud
|
|
375
416
|
end
|
376
417
|
end
|
377
418
|
|
419
|
+
# DescribeAuditTrack请求参数结构体
|
420
|
+
class DescribeAuditTrackRequest < TencentCloud::Common::AbstractModel
|
421
|
+
# @param TrackId: 跟踪集 ID
|
422
|
+
# @type TrackId: Integer
|
423
|
+
|
424
|
+
attr_accessor :TrackId
|
425
|
+
|
426
|
+
def initialize(trackid=nil)
|
427
|
+
@TrackId = trackid
|
428
|
+
end
|
429
|
+
|
430
|
+
def deserialize(params)
|
431
|
+
@TrackId = params['TrackId']
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# DescribeAuditTrack返回参数结构体
|
436
|
+
class DescribeAuditTrackResponse < TencentCloud::Common::AbstractModel
|
437
|
+
# @param Name: 跟踪集名称
|
438
|
+
# @type Name: String
|
439
|
+
# @param ActionType: 跟踪事件类型(读:Read;写:Write;全部:*)
|
440
|
+
# @type ActionType: String
|
441
|
+
# @param ResourceType: 跟踪事件所属产品(如:cos,全部:*)
|
442
|
+
# @type ResourceType: String
|
443
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
444
|
+
# @type Status: Integer
|
445
|
+
# @param EventNames: 跟踪事件接口名列表(全部:[*])
|
446
|
+
# @type EventNames: Array
|
447
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
448
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
449
|
+
# @param CreateTime: 跟踪集创建时间
|
450
|
+
# @type CreateTime: String
|
451
|
+
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号
|
452
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
453
|
+
# @type TrackForAllMembers: Integer
|
454
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
455
|
+
# @type RequestId: String
|
456
|
+
|
457
|
+
attr_accessor :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :CreateTime, :TrackForAllMembers, :RequestId
|
458
|
+
|
459
|
+
def initialize(name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, createtime=nil, trackforallmembers=nil, requestid=nil)
|
460
|
+
@Name = name
|
461
|
+
@ActionType = actiontype
|
462
|
+
@ResourceType = resourcetype
|
463
|
+
@Status = status
|
464
|
+
@EventNames = eventnames
|
465
|
+
@Storage = storage
|
466
|
+
@CreateTime = createtime
|
467
|
+
@TrackForAllMembers = trackforallmembers
|
468
|
+
@RequestId = requestid
|
469
|
+
end
|
470
|
+
|
471
|
+
def deserialize(params)
|
472
|
+
@Name = params['Name']
|
473
|
+
@ActionType = params['ActionType']
|
474
|
+
@ResourceType = params['ResourceType']
|
475
|
+
@Status = params['Status']
|
476
|
+
@EventNames = params['EventNames']
|
477
|
+
unless params['Storage'].nil?
|
478
|
+
@Storage = Storage.new
|
479
|
+
@Storage.deserialize(params['Storage'])
|
480
|
+
end
|
481
|
+
@CreateTime = params['CreateTime']
|
482
|
+
@TrackForAllMembers = params['TrackForAllMembers']
|
483
|
+
@RequestId = params['RequestId']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
378
487
|
# DescribeAuditTracks请求参数结构体
|
379
488
|
class DescribeAuditTracksRequest < TencentCloud::Common::AbstractModel
|
489
|
+
# @param PageNumber: 页码
|
490
|
+
# @type PageNumber: Integer
|
491
|
+
# @param PageSize: 每页数目
|
492
|
+
# @type PageSize: Integer
|
380
493
|
|
494
|
+
attr_accessor :PageNumber, :PageSize
|
381
495
|
|
382
|
-
def initialize()
|
496
|
+
def initialize(pagenumber=nil, pagesize=nil)
|
497
|
+
@PageNumber = pagenumber
|
498
|
+
@PageSize = pagesize
|
383
499
|
end
|
384
500
|
|
385
501
|
def deserialize(params)
|
502
|
+
@PageNumber = params['PageNumber']
|
503
|
+
@PageSize = params['PageSize']
|
386
504
|
end
|
387
505
|
end
|
388
506
|
|
389
507
|
# DescribeAuditTracks返回参数结构体
|
390
508
|
class DescribeAuditTracksResponse < TencentCloud::Common::AbstractModel
|
509
|
+
# @param Tracks: 跟踪集列表
|
510
|
+
# @type Tracks: Array
|
511
|
+
# @param TotalCount: 总数目
|
512
|
+
# @type TotalCount: Integer
|
391
513
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
392
514
|
# @type RequestId: String
|
393
515
|
|
394
|
-
attr_accessor :RequestId
|
516
|
+
attr_accessor :Tracks, :TotalCount, :RequestId
|
395
517
|
|
396
|
-
def initialize(requestid=nil)
|
518
|
+
def initialize(tracks=nil, totalcount=nil, requestid=nil)
|
519
|
+
@Tracks = tracks
|
520
|
+
@TotalCount = totalcount
|
397
521
|
@RequestId = requestid
|
398
522
|
end
|
399
523
|
|
400
524
|
def deserialize(params)
|
525
|
+
unless params['Tracks'].nil?
|
526
|
+
@Tracks = []
|
527
|
+
params['Tracks'].each do |i|
|
528
|
+
tracks_tmp = Tracks.new
|
529
|
+
tracks_tmp.deserialize(i)
|
530
|
+
@Tracks << tracks_tmp
|
531
|
+
end
|
532
|
+
end
|
533
|
+
@TotalCount = params['TotalCount']
|
401
534
|
@RequestId = params['RequestId']
|
402
535
|
end
|
403
536
|
end
|
@@ -950,12 +1083,48 @@ module TencentCloud
|
|
950
1083
|
|
951
1084
|
# ModifyAuditTrack请求参数结构体
|
952
1085
|
class ModifyAuditTrackRequest < TencentCloud::Common::AbstractModel
|
953
|
-
|
1086
|
+
# @param TrackId: 跟踪集 ID
|
1087
|
+
# @type TrackId: Integer
|
1088
|
+
# @param Name: 跟踪集名称,仅支持大小写字母、数字、-以及_的组合,3-48个字符
|
1089
|
+
# @type Name: String
|
1090
|
+
# @param ActionType: 跟踪事件类型(读:Read;写:Write;全部:*)
|
1091
|
+
# @type ActionType: String
|
1092
|
+
# @param ResourceType: 跟踪事件所属产品(支持全部产品或单个产品,如:cos,全部:*)
|
1093
|
+
# @type ResourceType: String
|
1094
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
1095
|
+
# @type Status: Integer
|
1096
|
+
# @param EventNames: 跟踪事件接口名列表(ResourceType为 * 时,EventNames必须为全部:["*"];指定ResourceType时,支持全部接口:["*"];支持部分接口:["cos", "cls"],接口列表上限10个)
|
1097
|
+
# @type EventNames: Array
|
1098
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
1099
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
1100
|
+
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号(0:未开启,1:开启,只能集团管理账号或者可信服务管理账号开启此项功能)
|
1101
|
+
# @type TrackForAllMembers: Integer
|
1102
|
+
|
1103
|
+
attr_accessor :TrackId, :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :TrackForAllMembers
|
954
1104
|
|
955
|
-
def initialize()
|
1105
|
+
def initialize(trackid=nil, name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, trackforallmembers=nil)
|
1106
|
+
@TrackId = trackid
|
1107
|
+
@Name = name
|
1108
|
+
@ActionType = actiontype
|
1109
|
+
@ResourceType = resourcetype
|
1110
|
+
@Status = status
|
1111
|
+
@EventNames = eventnames
|
1112
|
+
@Storage = storage
|
1113
|
+
@TrackForAllMembers = trackforallmembers
|
956
1114
|
end
|
957
1115
|
|
958
1116
|
def deserialize(params)
|
1117
|
+
@TrackId = params['TrackId']
|
1118
|
+
@Name = params['Name']
|
1119
|
+
@ActionType = params['ActionType']
|
1120
|
+
@ResourceType = params['ResourceType']
|
1121
|
+
@Status = params['Status']
|
1122
|
+
@EventNames = params['EventNames']
|
1123
|
+
unless params['Storage'].nil?
|
1124
|
+
@Storage = Storage.new
|
1125
|
+
@Storage.deserialize(params['Storage'])
|
1126
|
+
end
|
1127
|
+
@TrackForAllMembers = params['TrackForAllMembers']
|
959
1128
|
end
|
960
1129
|
end
|
961
1130
|
|
@@ -1068,6 +1237,81 @@ module TencentCloud
|
|
1068
1237
|
end
|
1069
1238
|
end
|
1070
1239
|
|
1240
|
+
# 跟踪集存储信息
|
1241
|
+
class Storage < TencentCloud::Common::AbstractModel
|
1242
|
+
# @param StorageType: 存储类型(目前支持 cos、cls)
|
1243
|
+
# @type StorageType: String
|
1244
|
+
# @param StorageRegion: 存储所在地域
|
1245
|
+
# @type StorageRegion: String
|
1246
|
+
# @param StorageName: 存储名称(cos:存储名称为用户自定义的存储桶名称,不包含"-APPID",仅支持小写字母、数字以及中划线"-"的组合,不能超过50字符,且不支持中划线"-"开头或结尾; cls:存储名称为日志主题id,字符长度为1-50个字符)
|
1247
|
+
# @type StorageName: String
|
1248
|
+
# @param StoragePrefix: 存储目录前缀,cos日志文件前缀仅支持字母和数字的组合,3-40个字符
|
1249
|
+
# @type StoragePrefix: String
|
1250
|
+
|
1251
|
+
attr_accessor :StorageType, :StorageRegion, :StorageName, :StoragePrefix
|
1252
|
+
|
1253
|
+
def initialize(storagetype=nil, storageregion=nil, storagename=nil, storageprefix=nil)
|
1254
|
+
@StorageType = storagetype
|
1255
|
+
@StorageRegion = storageregion
|
1256
|
+
@StorageName = storagename
|
1257
|
+
@StoragePrefix = storageprefix
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
def deserialize(params)
|
1261
|
+
@StorageType = params['StorageType']
|
1262
|
+
@StorageRegion = params['StorageRegion']
|
1263
|
+
@StorageName = params['StorageName']
|
1264
|
+
@StoragePrefix = params['StoragePrefix']
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# 跟踪集列表
|
1269
|
+
class Tracks < TencentCloud::Common::AbstractModel
|
1270
|
+
# @param Name: 跟踪集名称
|
1271
|
+
# @type Name: String
|
1272
|
+
# @param ActionType: 跟踪事件类型(读:Read;写:Write;全部:*)
|
1273
|
+
# @type ActionType: String
|
1274
|
+
# @param ResourceType: 跟踪事件所属产品(如:cos,全部:*)
|
1275
|
+
# @type ResourceType: String
|
1276
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
1277
|
+
# @type Status: Integer
|
1278
|
+
# @param EventNames: 跟踪事件接口名列表(全部:[*])
|
1279
|
+
# @type EventNames: Array
|
1280
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
1281
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
1282
|
+
# @param CreateTime: 跟踪集创建时间
|
1283
|
+
# @type CreateTime: String
|
1284
|
+
# @param TrackId: 跟踪集 ID
|
1285
|
+
# @type TrackId: Integer
|
1286
|
+
|
1287
|
+
attr_accessor :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :CreateTime, :TrackId
|
1288
|
+
|
1289
|
+
def initialize(name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, createtime=nil, trackid=nil)
|
1290
|
+
@Name = name
|
1291
|
+
@ActionType = actiontype
|
1292
|
+
@ResourceType = resourcetype
|
1293
|
+
@Status = status
|
1294
|
+
@EventNames = eventnames
|
1295
|
+
@Storage = storage
|
1296
|
+
@CreateTime = createtime
|
1297
|
+
@TrackId = trackid
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
def deserialize(params)
|
1301
|
+
@Name = params['Name']
|
1302
|
+
@ActionType = params['ActionType']
|
1303
|
+
@ResourceType = params['ResourceType']
|
1304
|
+
@Status = params['Status']
|
1305
|
+
@EventNames = params['EventNames']
|
1306
|
+
unless params['Storage'].nil?
|
1307
|
+
@Storage = Storage.new
|
1308
|
+
@Storage.deserialize(params['Storage'])
|
1309
|
+
end
|
1310
|
+
@CreateTime = params['CreateTime']
|
1311
|
+
@TrackId = params['TrackId']
|
1312
|
+
end
|
1313
|
+
end
|
1314
|
+
|
1071
1315
|
# UpdateAudit请求参数结构体
|
1072
1316
|
class UpdateAuditRequest < TencentCloud::Common::AbstractModel
|
1073
1317
|
# @param AuditName: 跟踪集名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cloudaudit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.458
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|