tencentcloud-sdk-cloudaudit 3.0.931 → 3.0.932
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190319/client.rb +31 -35
- data/lib/v20190319/models.rb +175 -120
- 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: e0bf8c2cdbdb299711a719a491fb364bdec2198f
|
4
|
+
data.tar.gz: a0068d30b0f6b1dd7422e47e094359587dc3278d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e1f77f9c5df9915a8cd42800c2c59b23c4b7fe34bc84c6cf9e4f7dc7a6aa1e65846fd8ad429886b75fbe24585108e1ec8d5ca934a5c7a735802dc9086582792
|
7
|
+
data.tar.gz: 55c1ef0fcbb38597a369631c07172ff9d2e6e0fdf1c273dccfa05502e4d0e45b94ff3f3b82cd295c168842f1a6d71c56b1b6f5d5f74fb7bba8a3b55357460079
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.932
|
data/lib/v20190319/client.rb
CHANGED
@@ -29,34 +29,6 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
# 参数要求:
|
33
|
-
# 1、如果IsCreateNewBucket的值存在的话,cosRegion和cosBucketName都是必填参数。
|
34
|
-
# 2、如果IsEnableCmqNotify的值是1的话,IsCreateNewQueue、CmqRegion和CmqQueueName都是必填参数。
|
35
|
-
# 3、如果IsEnableCmqNotify的值是0的话,IsCreateNewQueue、CmqRegion和CmqQueueName都不能传。
|
36
|
-
# 4、如果IsEnableKmsEncry的值是1的话,KmsRegion和KeyId属于必填项
|
37
|
-
|
38
|
-
# @param request: Request instance for CreateAudit.
|
39
|
-
# @type request: :class:`Tencentcloud::cloudaudit::V20190319::CreateAuditRequest`
|
40
|
-
# @rtype: :class:`Tencentcloud::cloudaudit::V20190319::CreateAuditResponse`
|
41
|
-
def CreateAudit(request)
|
42
|
-
body = send_request('CreateAudit', request.serialize)
|
43
|
-
response = JSON.parse(body)
|
44
|
-
if response['Response'].key?('Error') == false
|
45
|
-
model = CreateAuditResponse.new
|
46
|
-
model.deserialize(response['Response'])
|
47
|
-
model
|
48
|
-
else
|
49
|
-
code = response['Response']['Error']['Code']
|
50
|
-
message = response['Response']['Error']['Message']
|
51
|
-
reqid = response['Response']['RequestId']
|
52
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
53
|
-
end
|
54
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
55
|
-
raise e
|
56
|
-
rescue StandardError => e
|
57
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
58
|
-
end
|
59
|
-
|
60
32
|
# 创建操作审计跟踪集
|
61
33
|
|
62
34
|
# @param request: Request instance for CreateAuditTrack.
|
@@ -81,16 +53,16 @@ module TencentCloud
|
|
81
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
82
54
|
end
|
83
55
|
|
84
|
-
#
|
56
|
+
# 创建操作审计跟踪集
|
85
57
|
|
86
|
-
# @param request: Request instance for
|
87
|
-
# @type request: :class:`Tencentcloud::cloudaudit::V20190319::
|
88
|
-
# @rtype: :class:`Tencentcloud::cloudaudit::V20190319::
|
89
|
-
def
|
90
|
-
body = send_request('
|
58
|
+
# @param request: Request instance for CreateEventsAuditTrack.
|
59
|
+
# @type request: :class:`Tencentcloud::cloudaudit::V20190319::CreateEventsAuditTrackRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cloudaudit::V20190319::CreateEventsAuditTrackResponse`
|
61
|
+
def CreateEventsAuditTrack(request)
|
62
|
+
body = send_request('CreateEventsAuditTrack', request.serialize)
|
91
63
|
response = JSON.parse(body)
|
92
64
|
if response['Response'].key?('Error') == false
|
93
|
-
model =
|
65
|
+
model = CreateEventsAuditTrackResponse.new
|
94
66
|
model.deserialize(response['Response'])
|
95
67
|
model
|
96
68
|
else
|
@@ -417,6 +389,30 @@ module TencentCloud
|
|
417
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
418
390
|
end
|
419
391
|
|
392
|
+
# 修改操作审计跟踪集
|
393
|
+
|
394
|
+
# @param request: Request instance for ModifyEventsAuditTrack.
|
395
|
+
# @type request: :class:`Tencentcloud::cloudaudit::V20190319::ModifyEventsAuditTrackRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::cloudaudit::V20190319::ModifyEventsAuditTrackResponse`
|
397
|
+
def ModifyEventsAuditTrack(request)
|
398
|
+
body = send_request('ModifyEventsAuditTrack', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = ModifyEventsAuditTrackResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
420
416
|
# 开启跟踪集
|
421
417
|
|
422
418
|
# @param request: Request instance for StartLogging.
|
data/lib/v20190319/models.rb
CHANGED
@@ -117,90 +117,6 @@ module TencentCloud
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
# CreateAudit请求参数结构体
|
121
|
-
class CreateAuditRequest < TencentCloud::Common::AbstractModel
|
122
|
-
# @param IsEnableCmqNotify: 是否开启cmq消息通知。1:是,0:否。目前仅支持cmq的队列服务。如果开启cmq消息通知服务,云审计会将您的日志内容实时投递到您指定地域的指定队列中。
|
123
|
-
# @type IsEnableCmqNotify: Integer
|
124
|
-
# @param ReadWriteAttribute: 管理事件的读写属性。1:只读,2:只写,3:全部。
|
125
|
-
# @type ReadWriteAttribute: Integer
|
126
|
-
# @param AuditName: 跟踪集名称。3-128字符,只能包含 ASCII 编码字母 a-z,A-Z,数字 0-9,下划线 _。
|
127
|
-
# @type AuditName: String
|
128
|
-
# @param CosRegion: cos地域。目前支持的地域可以使用ListCosEnableRegion来获取。
|
129
|
-
# @type CosRegion: String
|
130
|
-
# @param IsCreateNewBucket: 是否创建新的cos存储桶。1:是,0:否。
|
131
|
-
# @type IsCreateNewBucket: Integer
|
132
|
-
# @param CosBucketName: cos的存储桶名称。仅支持小写英文字母和数字即[a-z,0-9]、中划线“-”及其组合。用户自定义的字符串支持1 - 40个字符。存储桶命名不能以“-”开头或结尾。如果不是新创建的存储桶,云审计不会去校验该存储桶是否真的存在,请谨慎填写,避免日志投递不成功,导致您的数据丢失。
|
133
|
-
# @type CosBucketName: String
|
134
|
-
# @param KeyId: CMK的全局唯一标识符,如果不是新创建的kms,该值是必填值。可以通过ListKeyAliasByRegion来获取。云审计不会校验KeyId的合法性,请您谨慎填写,避免给您的数据造成损失。
|
135
|
-
# @type KeyId: String
|
136
|
-
# @param CmqQueueName: 队列名称。队列名称是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。如果IsEnableCmqNotify值是1的话,此值属于必填字段。如果不是新创建的队列,云审计不会去校验该队列是否真的存在,请谨慎填写,避免日志通知不成功,导致您的数据丢失。
|
137
|
-
# @type CmqQueueName: String
|
138
|
-
# @param KmsRegion: kms地域。目前支持的地域可以使用ListKmsEnableRegion来获取。必须要和cos的地域保持一致。
|
139
|
-
# @type KmsRegion: String
|
140
|
-
# @param IsEnableKmsEncry: 是否开启kms加密。1:是,0:否。如果开启KMS加密,数据在投递到cos时,会将数据加密。
|
141
|
-
# @type IsEnableKmsEncry: Integer
|
142
|
-
# @param CmqRegion: 队列所在的地域。可以通过ListCmqEnableRegion获取支持的cmq地域。如果IsEnableCmqNotify值是1的话,此值属于必填字段。
|
143
|
-
# @type CmqRegion: String
|
144
|
-
# @param LogFilePrefix: 日志文件前缀。3-40个字符,只能包含 ASCII 编码字母 a-z,A-Z,数字 0-9。可以不填,默认以账号ID作为日志前缀。
|
145
|
-
# @type LogFilePrefix: String
|
146
|
-
# @param IsCreateNewQueue: 是否创建新的队列。1:是,0:否。如果IsEnableCmqNotify值是1的话,此值属于必填字段。
|
147
|
-
# @type IsCreateNewQueue: Integer
|
148
|
-
|
149
|
-
attr_accessor :IsEnableCmqNotify, :ReadWriteAttribute, :AuditName, :CosRegion, :IsCreateNewBucket, :CosBucketName, :KeyId, :CmqQueueName, :KmsRegion, :IsEnableKmsEncry, :CmqRegion, :LogFilePrefix, :IsCreateNewQueue
|
150
|
-
|
151
|
-
def initialize(isenablecmqnotify=nil, readwriteattribute=nil, auditname=nil, cosregion=nil, iscreatenewbucket=nil, cosbucketname=nil, keyid=nil, cmqqueuename=nil, kmsregion=nil, isenablekmsencry=nil, cmqregion=nil, logfileprefix=nil, iscreatenewqueue=nil)
|
152
|
-
@IsEnableCmqNotify = isenablecmqnotify
|
153
|
-
@ReadWriteAttribute = readwriteattribute
|
154
|
-
@AuditName = auditname
|
155
|
-
@CosRegion = cosregion
|
156
|
-
@IsCreateNewBucket = iscreatenewbucket
|
157
|
-
@CosBucketName = cosbucketname
|
158
|
-
@KeyId = keyid
|
159
|
-
@CmqQueueName = cmqqueuename
|
160
|
-
@KmsRegion = kmsregion
|
161
|
-
@IsEnableKmsEncry = isenablekmsencry
|
162
|
-
@CmqRegion = cmqregion
|
163
|
-
@LogFilePrefix = logfileprefix
|
164
|
-
@IsCreateNewQueue = iscreatenewqueue
|
165
|
-
end
|
166
|
-
|
167
|
-
def deserialize(params)
|
168
|
-
@IsEnableCmqNotify = params['IsEnableCmqNotify']
|
169
|
-
@ReadWriteAttribute = params['ReadWriteAttribute']
|
170
|
-
@AuditName = params['AuditName']
|
171
|
-
@CosRegion = params['CosRegion']
|
172
|
-
@IsCreateNewBucket = params['IsCreateNewBucket']
|
173
|
-
@CosBucketName = params['CosBucketName']
|
174
|
-
@KeyId = params['KeyId']
|
175
|
-
@CmqQueueName = params['CmqQueueName']
|
176
|
-
@KmsRegion = params['KmsRegion']
|
177
|
-
@IsEnableKmsEncry = params['IsEnableKmsEncry']
|
178
|
-
@CmqRegion = params['CmqRegion']
|
179
|
-
@LogFilePrefix = params['LogFilePrefix']
|
180
|
-
@IsCreateNewQueue = params['IsCreateNewQueue']
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
# CreateAudit返回参数结构体
|
185
|
-
class CreateAuditResponse < TencentCloud::Common::AbstractModel
|
186
|
-
# @param IsSuccess: 是否创建成功。
|
187
|
-
# @type IsSuccess: Integer
|
188
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
189
|
-
# @type RequestId: String
|
190
|
-
|
191
|
-
attr_accessor :IsSuccess, :RequestId
|
192
|
-
|
193
|
-
def initialize(issuccess=nil, requestid=nil)
|
194
|
-
@IsSuccess = issuccess
|
195
|
-
@RequestId = requestid
|
196
|
-
end
|
197
|
-
|
198
|
-
def deserialize(params)
|
199
|
-
@IsSuccess = params['IsSuccess']
|
200
|
-
@RequestId = params['RequestId']
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
120
|
# CreateAuditTrack请求参数结构体
|
205
121
|
class CreateAuditTrackRequest < TencentCloud::Common::AbstractModel
|
206
122
|
# @param Name: 跟踪集名称,仅支持大小写字母、数字、-以及_的组合,3-48个字符
|
@@ -248,7 +164,7 @@ module TencentCloud
|
|
248
164
|
class CreateAuditTrackResponse < TencentCloud::Common::AbstractModel
|
249
165
|
# @param TrackId: 跟踪集 ID
|
250
166
|
# @type TrackId: Integer
|
251
|
-
# @param RequestId: 唯一请求 ID
|
167
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
252
168
|
# @type RequestId: String
|
253
169
|
|
254
170
|
attr_accessor :TrackId, :RequestId
|
@@ -264,38 +180,60 @@ module TencentCloud
|
|
264
180
|
end
|
265
181
|
end
|
266
182
|
|
267
|
-
#
|
268
|
-
class
|
269
|
-
# @param
|
270
|
-
# @type
|
183
|
+
# CreateEventsAuditTrack请求参数结构体
|
184
|
+
class CreateEventsAuditTrackRequest < TencentCloud::Common::AbstractModel
|
185
|
+
# @param Name: 跟踪集名称,仅支持大小写字母、数字、-以及_的组合,3-48个字符
|
186
|
+
# @type Name: String
|
187
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
188
|
+
# @type Status: Integer
|
189
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
190
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
191
|
+
# @param Filters: 数据过滤条件
|
192
|
+
# @type Filters: :class:`Tencentcloud::Cloudaudit.v20190319.models.Filter`
|
193
|
+
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号(0:未开启,1:开启,只能集团管理账号或者可信服务管理账号开启此项功能)
|
194
|
+
# @type TrackForAllMembers: Integer
|
271
195
|
|
272
|
-
attr_accessor :
|
196
|
+
attr_accessor :Name, :Status, :Storage, :Filters, :TrackForAllMembers
|
273
197
|
|
274
|
-
def initialize(
|
275
|
-
@
|
198
|
+
def initialize(name=nil, status=nil, storage=nil, filters=nil, trackforallmembers=nil)
|
199
|
+
@Name = name
|
200
|
+
@Status = status
|
201
|
+
@Storage = storage
|
202
|
+
@Filters = filters
|
203
|
+
@TrackForAllMembers = trackforallmembers
|
276
204
|
end
|
277
205
|
|
278
206
|
def deserialize(params)
|
279
|
-
@
|
207
|
+
@Name = params['Name']
|
208
|
+
@Status = params['Status']
|
209
|
+
unless params['Storage'].nil?
|
210
|
+
@Storage = Storage.new
|
211
|
+
@Storage.deserialize(params['Storage'])
|
212
|
+
end
|
213
|
+
unless params['Filters'].nil?
|
214
|
+
@Filters = Filter.new
|
215
|
+
@Filters.deserialize(params['Filters'])
|
216
|
+
end
|
217
|
+
@TrackForAllMembers = params['TrackForAllMembers']
|
280
218
|
end
|
281
219
|
end
|
282
220
|
|
283
|
-
#
|
284
|
-
class
|
285
|
-
# @param
|
286
|
-
# @type
|
287
|
-
# @param RequestId: 唯一请求 ID
|
221
|
+
# CreateEventsAuditTrack返回参数结构体
|
222
|
+
class CreateEventsAuditTrackResponse < TencentCloud::Common::AbstractModel
|
223
|
+
# @param TrackId: 跟踪集 ID
|
224
|
+
# @type TrackId: Integer
|
225
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
288
226
|
# @type RequestId: String
|
289
227
|
|
290
|
-
attr_accessor :
|
228
|
+
attr_accessor :TrackId, :RequestId
|
291
229
|
|
292
|
-
def initialize(
|
293
|
-
@
|
230
|
+
def initialize(trackid=nil, requestid=nil)
|
231
|
+
@TrackId = trackid
|
294
232
|
@RequestId = requestid
|
295
233
|
end
|
296
234
|
|
297
235
|
def deserialize(params)
|
298
|
-
@
|
236
|
+
@TrackId = params['TrackId']
|
299
237
|
@RequestId = params['RequestId']
|
300
238
|
end
|
301
239
|
end
|
@@ -318,7 +256,7 @@ module TencentCloud
|
|
318
256
|
|
319
257
|
# DeleteAuditTrack返回参数结构体
|
320
258
|
class DeleteAuditTrackResponse < TencentCloud::Common::AbstractModel
|
321
|
-
# @param RequestId: 唯一请求 ID
|
259
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
322
260
|
# @type RequestId: String
|
323
261
|
|
324
262
|
attr_accessor :RequestId
|
@@ -376,7 +314,7 @@ module TencentCloud
|
|
376
314
|
# @type CmqRegion: String
|
377
315
|
# @param LogFilePrefix: 日志前缀。
|
378
316
|
# @type LogFilePrefix: String
|
379
|
-
# @param RequestId: 唯一请求 ID
|
317
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
380
318
|
# @type RequestId: String
|
381
319
|
|
382
320
|
attr_accessor :IsEnableCmqNotify, :ReadWriteAttribute, :KeyId, :AuditStatus, :AuditName, :CosRegion, :CmqQueueName, :KmsAlias, :KmsRegion, :IsEnableKmsEncry, :CosBucketName, :CmqRegion, :LogFilePrefix, :RequestId
|
@@ -451,12 +389,15 @@ module TencentCloud
|
|
451
389
|
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号
|
452
390
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
453
391
|
# @type TrackForAllMembers: Integer
|
454
|
-
# @param
|
392
|
+
# @param Filters: 数据投递过滤条件
|
393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
394
|
+
# @type Filters: :class:`Tencentcloud::Cloudaudit.v20190319.models.Filter`
|
395
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
455
396
|
# @type RequestId: String
|
456
397
|
|
457
|
-
attr_accessor :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :CreateTime, :TrackForAllMembers, :RequestId
|
398
|
+
attr_accessor :Name, :ActionType, :ResourceType, :Status, :EventNames, :Storage, :CreateTime, :TrackForAllMembers, :Filters, :RequestId
|
458
399
|
|
459
|
-
def initialize(name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, createtime=nil, trackforallmembers=nil, requestid=nil)
|
400
|
+
def initialize(name=nil, actiontype=nil, resourcetype=nil, status=nil, eventnames=nil, storage=nil, createtime=nil, trackforallmembers=nil, filters=nil, requestid=nil)
|
460
401
|
@Name = name
|
461
402
|
@ActionType = actiontype
|
462
403
|
@ResourceType = resourcetype
|
@@ -465,6 +406,7 @@ module TencentCloud
|
|
465
406
|
@Storage = storage
|
466
407
|
@CreateTime = createtime
|
467
408
|
@TrackForAllMembers = trackforallmembers
|
409
|
+
@Filters = filters
|
468
410
|
@RequestId = requestid
|
469
411
|
end
|
470
412
|
|
@@ -480,6 +422,10 @@ module TencentCloud
|
|
480
422
|
end
|
481
423
|
@CreateTime = params['CreateTime']
|
482
424
|
@TrackForAllMembers = params['TrackForAllMembers']
|
425
|
+
unless params['Filters'].nil?
|
426
|
+
@Filters = Filter.new
|
427
|
+
@Filters.deserialize(params['Filters'])
|
428
|
+
end
|
483
429
|
@RequestId = params['RequestId']
|
484
430
|
end
|
485
431
|
end
|
@@ -510,7 +456,7 @@ module TencentCloud
|
|
510
456
|
# @type Tracks: Array
|
511
457
|
# @param TotalCount: 总数目
|
512
458
|
# @type TotalCount: Integer
|
513
|
-
# @param RequestId: 唯一请求 ID
|
459
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
514
460
|
# @type RequestId: String
|
515
461
|
|
516
462
|
attr_accessor :Tracks, :TotalCount, :RequestId
|
@@ -590,7 +536,7 @@ module TencentCloud
|
|
590
536
|
# @param TotalCount: 此字段已经废弃。翻页请使用ListOver配合NextToken,在ListOver为false进行下一页数据读取。
|
591
537
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
592
538
|
# @type TotalCount: Integer
|
593
|
-
# @param RequestId: 唯一请求 ID
|
539
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
594
540
|
# @type RequestId: String
|
595
541
|
|
596
542
|
attr_accessor :ListOver, :NextToken, :Events, :TotalCount, :RequestId
|
@@ -704,6 +650,30 @@ module TencentCloud
|
|
704
650
|
end
|
705
651
|
end
|
706
652
|
|
653
|
+
# 跟踪集数据投递筛选条件
|
654
|
+
class Filter < TencentCloud::Common::AbstractModel
|
655
|
+
# @param ResourceFields: 资源筛选条件
|
656
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
657
|
+
# @type ResourceFields: Array
|
658
|
+
|
659
|
+
attr_accessor :ResourceFields
|
660
|
+
|
661
|
+
def initialize(resourcefields=nil)
|
662
|
+
@ResourceFields = resourcefields
|
663
|
+
end
|
664
|
+
|
665
|
+
def deserialize(params)
|
666
|
+
unless params['ResourceFields'].nil?
|
667
|
+
@ResourceFields = []
|
668
|
+
params['ResourceFields'].each do |i|
|
669
|
+
resourcefield_tmp = ResourceField.new
|
670
|
+
resourcefield_tmp.deserialize(i)
|
671
|
+
@ResourceFields << resourcefield_tmp
|
672
|
+
end
|
673
|
+
end
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
707
677
|
# GetAttributeKey请求参数结构体
|
708
678
|
class GetAttributeKeyRequest < TencentCloud::Common::AbstractModel
|
709
679
|
# @param WebsiteType: 网站类型,取值范围是zh和en。如果不传值默认zh
|
@@ -724,7 +694,7 @@ module TencentCloud
|
|
724
694
|
class GetAttributeKeyResponse < TencentCloud::Common::AbstractModel
|
725
695
|
# @param AttributeKeyDetails: AttributeKey的有效取值范围
|
726
696
|
# @type AttributeKeyDetails: Array
|
727
|
-
# @param RequestId: 唯一请求 ID
|
697
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
728
698
|
# @type RequestId: String
|
729
699
|
|
730
700
|
attr_accessor :AttributeKeyDetails, :RequestId
|
@@ -762,7 +732,7 @@ module TencentCloud
|
|
762
732
|
class InquireAuditCreditResponse < TencentCloud::Common::AbstractModel
|
763
733
|
# @param AuditAmount: 可创建跟踪集的数量
|
764
734
|
# @type AuditAmount: Integer
|
765
|
-
# @param RequestId: 唯一请求 ID
|
735
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
766
736
|
# @type RequestId: String
|
767
737
|
|
768
738
|
attr_accessor :AuditAmount, :RequestId
|
@@ -814,7 +784,7 @@ module TencentCloud
|
|
814
784
|
# @param AuditSummarys: 查询跟踪集概要集合
|
815
785
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
816
786
|
# @type AuditSummarys: Array
|
817
|
-
# @param RequestId: 唯一请求 ID
|
787
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
818
788
|
# @type RequestId: String
|
819
789
|
|
820
790
|
attr_accessor :AuditSummarys, :RequestId
|
@@ -857,7 +827,7 @@ module TencentCloud
|
|
857
827
|
class ListCmqEnableRegionResponse < TencentCloud::Common::AbstractModel
|
858
828
|
# @param EnableRegions: 云审计支持的cmq的可用区
|
859
829
|
# @type EnableRegions: Array
|
860
|
-
# @param RequestId: 唯一请求 ID
|
830
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
861
831
|
# @type RequestId: String
|
862
832
|
|
863
833
|
attr_accessor :EnableRegions, :RequestId
|
@@ -900,7 +870,7 @@ module TencentCloud
|
|
900
870
|
class ListCosEnableRegionResponse < TencentCloud::Common::AbstractModel
|
901
871
|
# @param EnableRegions: 云审计支持的cos可用区
|
902
872
|
# @type EnableRegions: Array
|
903
|
-
# @param RequestId: 唯一请求 ID
|
873
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
904
874
|
# @type RequestId: String
|
905
875
|
|
906
876
|
attr_accessor :EnableRegions, :RequestId
|
@@ -953,7 +923,7 @@ module TencentCloud
|
|
953
923
|
# @type TotalCount: Integer
|
954
924
|
# @param KeyMetadatas: 密钥别名
|
955
925
|
# @type KeyMetadatas: Array
|
956
|
-
# @param RequestId: 唯一请求 ID
|
926
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
957
927
|
# @type RequestId: String
|
958
928
|
|
959
929
|
attr_accessor :TotalCount, :KeyMetadatas, :RequestId
|
@@ -1032,7 +1002,7 @@ module TencentCloud
|
|
1032
1002
|
# @param ListOver: 日志集合是否结束
|
1033
1003
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1034
1004
|
# @type ListOver: Boolean
|
1035
|
-
# @param RequestId: 唯一请求 ID
|
1005
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1036
1006
|
# @type RequestId: String
|
1037
1007
|
|
1038
1008
|
attr_accessor :NextToken, :Events, :ListOver, :RequestId
|
@@ -1128,7 +1098,65 @@ module TencentCloud
|
|
1128
1098
|
|
1129
1099
|
# ModifyAuditTrack返回参数结构体
|
1130
1100
|
class ModifyAuditTrackResponse < TencentCloud::Common::AbstractModel
|
1131
|
-
# @param RequestId: 唯一请求 ID
|
1101
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1102
|
+
# @type RequestId: String
|
1103
|
+
|
1104
|
+
attr_accessor :RequestId
|
1105
|
+
|
1106
|
+
def initialize(requestid=nil)
|
1107
|
+
@RequestId = requestid
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
def deserialize(params)
|
1111
|
+
@RequestId = params['RequestId']
|
1112
|
+
end
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
# ModifyEventsAuditTrack请求参数结构体
|
1116
|
+
class ModifyEventsAuditTrackRequest < TencentCloud::Common::AbstractModel
|
1117
|
+
# @param TrackId: 跟踪集 ID
|
1118
|
+
# @type TrackId: Integer
|
1119
|
+
# @param Name: 跟踪集名称,仅支持大小写字母、数字、-以及_的组合,3-48个字符
|
1120
|
+
# @type Name: String
|
1121
|
+
# @param Status: 跟踪集状态(未开启:0;开启:1)
|
1122
|
+
# @type Status: Integer
|
1123
|
+
# @param Storage: 数据投递存储(目前支持 cos、cls)
|
1124
|
+
# @type Storage: :class:`Tencentcloud::Cloudaudit.v20190319.models.Storage`
|
1125
|
+
# @param TrackForAllMembers: 是否开启将集团成员操作日志投递到集团管理账号或者可信服务管理账号(0:未开启,1:开启,只能集团管理账号或者可信服务管理账号开启此项功能)
|
1126
|
+
# @type TrackForAllMembers: Integer
|
1127
|
+
# @param Filters: 多产品筛选过滤条件
|
1128
|
+
# @type Filters: :class:`Tencentcloud::Cloudaudit.v20190319.models.Filter`
|
1129
|
+
|
1130
|
+
attr_accessor :TrackId, :Name, :Status, :Storage, :TrackForAllMembers, :Filters
|
1131
|
+
|
1132
|
+
def initialize(trackid=nil, name=nil, status=nil, storage=nil, trackforallmembers=nil, filters=nil)
|
1133
|
+
@TrackId = trackid
|
1134
|
+
@Name = name
|
1135
|
+
@Status = status
|
1136
|
+
@Storage = storage
|
1137
|
+
@TrackForAllMembers = trackforallmembers
|
1138
|
+
@Filters = filters
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
def deserialize(params)
|
1142
|
+
@TrackId = params['TrackId']
|
1143
|
+
@Name = params['Name']
|
1144
|
+
@Status = params['Status']
|
1145
|
+
unless params['Storage'].nil?
|
1146
|
+
@Storage = Storage.new
|
1147
|
+
@Storage.deserialize(params['Storage'])
|
1148
|
+
end
|
1149
|
+
@TrackForAllMembers = params['TrackForAllMembers']
|
1150
|
+
unless params['Filters'].nil?
|
1151
|
+
@Filters = Filter.new
|
1152
|
+
@Filters.deserialize(params['Filters'])
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# ModifyEventsAuditTrack返回参数结构体
|
1158
|
+
class ModifyEventsAuditTrackResponse < TencentCloud::Common::AbstractModel
|
1159
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1132
1160
|
# @type RequestId: String
|
1133
1161
|
|
1134
1162
|
attr_accessor :RequestId
|
@@ -1164,6 +1192,33 @@ module TencentCloud
|
|
1164
1192
|
end
|
1165
1193
|
end
|
1166
1194
|
|
1195
|
+
# 资源筛选条件
|
1196
|
+
class ResourceField < TencentCloud::Common::AbstractModel
|
1197
|
+
# @param ResourceType: 跟踪事件所属产品(支持全部产品或单个产品,如:cam,全部:*)
|
1198
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1199
|
+
# @type ResourceType: String
|
1200
|
+
# @param ActionType: 跟踪事件类型(读:Read;写:Write;全部:*)
|
1201
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1202
|
+
# @type ActionType: String
|
1203
|
+
# @param EventNames: 跟踪事件接口名列表(ResourceType为 * 时,EventNames必须为全部:[""];指定ResourceType时,支持全部接口:[""];支持部分接口:["cos", "cls"],接口列表上限10个)
|
1204
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1205
|
+
# @type EventNames: Array
|
1206
|
+
|
1207
|
+
attr_accessor :ResourceType, :ActionType, :EventNames
|
1208
|
+
|
1209
|
+
def initialize(resourcetype=nil, actiontype=nil, eventnames=nil)
|
1210
|
+
@ResourceType = resourcetype
|
1211
|
+
@ActionType = actiontype
|
1212
|
+
@EventNames = eventnames
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
def deserialize(params)
|
1216
|
+
@ResourceType = params['ResourceType']
|
1217
|
+
@ActionType = params['ActionType']
|
1218
|
+
@EventNames = params['EventNames']
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1167
1222
|
# StartLogging请求参数结构体
|
1168
1223
|
class StartLoggingRequest < TencentCloud::Common::AbstractModel
|
1169
1224
|
# @param AuditName: 跟踪集名称
|
@@ -1184,7 +1239,7 @@ module TencentCloud
|
|
1184
1239
|
class StartLoggingResponse < TencentCloud::Common::AbstractModel
|
1185
1240
|
# @param IsSuccess: 是否开启成功
|
1186
1241
|
# @type IsSuccess: Integer
|
1187
|
-
# @param RequestId: 唯一请求 ID
|
1242
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1188
1243
|
# @type RequestId: String
|
1189
1244
|
|
1190
1245
|
attr_accessor :IsSuccess, :RequestId
|
@@ -1220,7 +1275,7 @@ module TencentCloud
|
|
1220
1275
|
class StopLoggingResponse < TencentCloud::Common::AbstractModel
|
1221
1276
|
# @param IsSuccess: 是否关闭成功
|
1222
1277
|
# @type IsSuccess: Integer
|
1223
|
-
# @param RequestId: 唯一请求 ID
|
1278
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1224
1279
|
# @type RequestId: String
|
1225
1280
|
|
1226
1281
|
attr_accessor :IsSuccess, :RequestId
|
@@ -1389,7 +1444,7 @@ module TencentCloud
|
|
1389
1444
|
class UpdateAuditResponse < TencentCloud::Common::AbstractModel
|
1390
1445
|
# @param IsSuccess: 是否更新成功
|
1391
1446
|
# @type IsSuccess: Integer
|
1392
|
-
# @param RequestId: 唯一请求 ID
|
1447
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1393
1448
|
# @type RequestId: String
|
1394
1449
|
|
1395
1450
|
attr_accessor :IsSuccess, :RequestId
|
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.932
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|