tencentcloud-sdk-tcss 1.0.218

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4020 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Tcss
21
+ module V20201101
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-11-01'
26
+ api_endpoint = 'tcss.tencentcloudapi.com'
27
+ sdk_version = 'TCSS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 新增单个镜像仓库详细信息
33
+
34
+ # @param request: Request instance for AddAssetImageRegistryRegistryDetail.
35
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddAssetImageRegistryRegistryDetailRequest`
36
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddAssetImageRegistryRegistryDetailResponse`
37
+ def AddAssetImageRegistryRegistryDetail(request)
38
+ body = send_request('AddAssetImageRegistryRegistryDetail', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddAssetImageRegistryRegistryDetailResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 将指定的检测项添加到白名单中,不显示未通过结果。
57
+
58
+ # @param request: Request instance for AddCompliancePolicyItemToWhitelist.
59
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddCompliancePolicyItemToWhitelistRequest`
60
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddCompliancePolicyItemToWhitelistResponse`
61
+ def AddCompliancePolicyItemToWhitelist(request)
62
+ body = send_request('AddCompliancePolicyItemToWhitelist', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = AddCompliancePolicyItemToWhitelistResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 添加编辑运行时异常进程策略
81
+
82
+ # @param request: Request instance for AddEditAbnormalProcessRule.
83
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddEditAbnormalProcessRuleRequest`
84
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddEditAbnormalProcessRuleResponse`
85
+ def AddEditAbnormalProcessRule(request)
86
+ body = send_request('AddEditAbnormalProcessRule', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddEditAbnormalProcessRuleResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 添加编辑运行时访问控制策略
105
+
106
+ # @param request: Request instance for AddEditAccessControlRule.
107
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddEditAccessControlRuleRequest`
108
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddEditAccessControlRuleResponse`
109
+ def AddEditAccessControlRule(request)
110
+ body = send_request('AddEditAccessControlRule', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = AddEditAccessControlRuleResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 添加编辑运行时反弹shell白名单
129
+
130
+ # @param request: Request instance for AddEditReverseShellWhiteList.
131
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddEditReverseShellWhiteListRequest`
132
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddEditReverseShellWhiteListResponse`
133
+ def AddEditReverseShellWhiteList(request)
134
+ body = send_request('AddEditReverseShellWhiteList', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = AddEditReverseShellWhiteListResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 添加编辑运行时高危系统调用白名单
153
+
154
+ # @param request: Request instance for AddEditRiskSyscallWhiteList.
155
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddEditRiskSyscallWhiteListRequest`
156
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddEditRiskSyscallWhiteListResponse`
157
+ def AddEditRiskSyscallWhiteList(request)
158
+ body = send_request('AddEditRiskSyscallWhiteList', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = AddEditRiskSyscallWhiteListResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 添加编辑告警策略
177
+
178
+ # @param request: Request instance for AddEditWarningRules.
179
+ # @type request: :class:`Tencentcloud::tcss::V20201101::AddEditWarningRulesRequest`
180
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::AddEditWarningRulesResponse`
181
+ def AddEditWarningRules(request)
182
+ body = send_request('AddEditWarningRules', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = AddEditWarningRulesResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 检查单个镜像仓库名是否重复
201
+
202
+ # @param request: Request instance for CheckRepeatAssetImageRegistry.
203
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CheckRepeatAssetImageRegistryRequest`
204
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CheckRepeatAssetImageRegistryResponse`
205
+ def CheckRepeatAssetImageRegistry(request)
206
+ body = send_request('CheckRepeatAssetImageRegistry', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CheckRepeatAssetImageRegistryResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 镜像仓库创建镜像扫描任务
225
+
226
+ # @param request: Request instance for CreateAssetImageRegistryScanTask.
227
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageRegistryScanTaskRequest`
228
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageRegistryScanTaskResponse`
229
+ def CreateAssetImageRegistryScanTask(request)
230
+ body = send_request('CreateAssetImageRegistryScanTask', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateAssetImageRegistryScanTaskResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+ # 镜像仓库创建镜像一键扫描任务
249
+
250
+ # @param request: Request instance for CreateAssetImageRegistryScanTaskOneKey.
251
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageRegistryScanTaskOneKeyRequest`
252
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageRegistryScanTaskOneKeyResponse`
253
+ def CreateAssetImageRegistryScanTaskOneKey(request)
254
+ body = send_request('CreateAssetImageRegistryScanTaskOneKey', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = CreateAssetImageRegistryScanTaskOneKeyResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+ # 添加容器安全镜像扫描设置
273
+
274
+ # @param request: Request instance for CreateAssetImageScanSetting.
275
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageScanSettingRequest`
276
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageScanSettingResponse`
277
+ def CreateAssetImageScanSetting(request)
278
+ body = send_request('CreateAssetImageScanSetting', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = CreateAssetImageScanSettingResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 容器安全创建镜像扫描任务
297
+
298
+ # @param request: Request instance for CreateAssetImageScanTask.
299
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageScanTaskRequest`
300
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateAssetImageScanTaskResponse`
301
+ def CreateAssetImageScanTask(request)
302
+ body = send_request('CreateAssetImageScanTask', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = CreateAssetImageScanTaskResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 安装检查组件,创建防护容器
321
+
322
+ # @param request: Request instance for CreateCheckComponent.
323
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateCheckComponentRequest`
324
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateCheckComponentResponse`
325
+ def CreateCheckComponent(request)
326
+ body = send_request('CreateCheckComponent', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreateCheckComponentResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 创建集群检查任务,用户检查用户的集群相关风险项
345
+
346
+ # @param request: Request instance for CreateClusterCheckTask.
347
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateClusterCheckTaskRequest`
348
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateClusterCheckTaskResponse`
349
+ def CreateClusterCheckTask(request)
350
+ body = send_request('CreateClusterCheckTask', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = CreateClusterCheckTaskResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
368
+ # 创建合规检查任务,在资产级别触发重新检测时使用。
369
+
370
+ # @param request: Request instance for CreateComplianceTask.
371
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateComplianceTaskRequest`
372
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateComplianceTaskResponse`
373
+ def CreateComplianceTask(request)
374
+ body = send_request('CreateComplianceTask', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = CreateComplianceTaskResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
392
+ # 创建一个导出安全合规信息的任务
393
+
394
+ # @param request: Request instance for CreateExportComplianceStatusListJob.
395
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateExportComplianceStatusListJobRequest`
396
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateExportComplianceStatusListJobResponse`
397
+ def CreateExportComplianceStatusListJob(request)
398
+ body = send_request('CreateExportComplianceStatusListJob', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = CreateExportComplianceStatusListJobResponse.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
+
416
+ # CreateOrModifyPostPayCores 创建或者编辑弹性计费上限
417
+
418
+ # @param request: Request instance for CreateOrModifyPostPayCores.
419
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateOrModifyPostPayCoresRequest`
420
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateOrModifyPostPayCoresResponse`
421
+ def CreateOrModifyPostPayCores(request)
422
+ body = send_request('CreateOrModifyPostPayCores', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = CreateOrModifyPostPayCoresResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 下发刷新任务,会刷新资产信息
441
+
442
+ # @param request: Request instance for CreateRefreshTask.
443
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateRefreshTaskRequest`
444
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateRefreshTaskResponse`
445
+ def CreateRefreshTask(request)
446
+ body = send_request('CreateRefreshTask', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = CreateRefreshTaskResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 运行时文件查杀重新检测
465
+
466
+ # @param request: Request instance for CreateVirusScanAgain.
467
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateVirusScanAgainRequest`
468
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateVirusScanAgainResponse`
469
+ def CreateVirusScanAgain(request)
470
+ body = send_request('CreateVirusScanAgain', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = CreateVirusScanAgainResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
488
+ # 运行时文件查杀一键扫描
489
+
490
+ # @param request: Request instance for CreateVirusScanTask.
491
+ # @type request: :class:`Tencentcloud::tcss::V20201101::CreateVirusScanTaskRequest`
492
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::CreateVirusScanTaskResponse`
493
+ def CreateVirusScanTask(request)
494
+ body = send_request('CreateVirusScanTask', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = CreateVirusScanTaskResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
512
+ # 删除运行异常进程策略
513
+
514
+ # @param request: Request instance for DeleteAbnormalProcessRules.
515
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteAbnormalProcessRulesRequest`
516
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteAbnormalProcessRulesResponse`
517
+ def DeleteAbnormalProcessRules(request)
518
+ body = send_request('DeleteAbnormalProcessRules', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DeleteAbnormalProcessRulesResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 删除运行访问控制策略
537
+
538
+ # @param request: Request instance for DeleteAccessControlRules.
539
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteAccessControlRulesRequest`
540
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteAccessControlRulesResponse`
541
+ def DeleteAccessControlRules(request)
542
+ body = send_request('DeleteAccessControlRules', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DeleteAccessControlRulesResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 从白名单中删除将指定的检测项。
561
+
562
+ # @param request: Request instance for DeleteCompliancePolicyItemFromWhitelist.
563
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteCompliancePolicyItemFromWhitelistRequest`
564
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteCompliancePolicyItemFromWhitelistResponse`
565
+ def DeleteCompliancePolicyItemFromWhitelist(request)
566
+ body = send_request('DeleteCompliancePolicyItemFromWhitelist', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DeleteCompliancePolicyItemFromWhitelistResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 删除运行时反弹shell白名单
585
+
586
+ # @param request: Request instance for DeleteReverseShellWhiteLists.
587
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteReverseShellWhiteListsRequest`
588
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteReverseShellWhiteListsResponse`
589
+ def DeleteReverseShellWhiteLists(request)
590
+ body = send_request('DeleteReverseShellWhiteLists', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DeleteReverseShellWhiteListsResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 删除运行时高危系统调用白名单
609
+
610
+ # @param request: Request instance for DeleteRiskSyscallWhiteLists.
611
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DeleteRiskSyscallWhiteListsRequest`
612
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DeleteRiskSyscallWhiteListsResponse`
613
+ def DeleteRiskSyscallWhiteLists(request)
614
+ body = send_request('DeleteRiskSyscallWhiteLists', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DeleteRiskSyscallWhiteListsResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 查询运行时异常进程事件详细信息
633
+
634
+ # @param request: Request instance for DescribeAbnormalProcessDetail.
635
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessDetailRequest`
636
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessDetailResponse`
637
+ def DescribeAbnormalProcessDetail(request)
638
+ body = send_request('DescribeAbnormalProcessDetail', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeAbnormalProcessDetailResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
656
+ # 查询运行时异常进程事件列表信息
657
+
658
+ # @param request: Request instance for DescribeAbnormalProcessEvents.
659
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessEventsRequest`
660
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessEventsResponse`
661
+ def DescribeAbnormalProcessEvents(request)
662
+ body = send_request('DescribeAbnormalProcessEvents', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeAbnormalProcessEventsResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
680
+ # 查询运行时异常进程事件列表信息导出
681
+
682
+ # @param request: Request instance for DescribeAbnormalProcessEventsExport.
683
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessEventsExportRequest`
684
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessEventsExportResponse`
685
+ def DescribeAbnormalProcessEventsExport(request)
686
+ body = send_request('DescribeAbnormalProcessEventsExport', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeAbnormalProcessEventsExportResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
704
+ # 查询运行时异常策略详细信息
705
+
706
+ # @param request: Request instance for DescribeAbnormalProcessRuleDetail.
707
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRuleDetailRequest`
708
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRuleDetailResponse`
709
+ def DescribeAbnormalProcessRuleDetail(request)
710
+ body = send_request('DescribeAbnormalProcessRuleDetail', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = DescribeAbnormalProcessRuleDetailResponse.new
714
+ model.deserialize(response['Response'])
715
+ model
716
+ else
717
+ code = response['Response']['Error']['Code']
718
+ message = response['Response']['Error']['Message']
719
+ reqid = response['Response']['RequestId']
720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
721
+ end
722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
723
+ raise e
724
+ rescue StandardError => e
725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
+ end
727
+
728
+ # 查询运行时异常进程策略列表信息
729
+
730
+ # @param request: Request instance for DescribeAbnormalProcessRules.
731
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRulesRequest`
732
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRulesResponse`
733
+ def DescribeAbnormalProcessRules(request)
734
+ body = send_request('DescribeAbnormalProcessRules', request.serialize)
735
+ response = JSON.parse(body)
736
+ if response['Response'].key?('Error') == false
737
+ model = DescribeAbnormalProcessRulesResponse.new
738
+ model.deserialize(response['Response'])
739
+ model
740
+ else
741
+ code = response['Response']['Error']['Code']
742
+ message = response['Response']['Error']['Message']
743
+ reqid = response['Response']['RequestId']
744
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
745
+ end
746
+ rescue TencentCloud::Common::TencentCloudSDKException => e
747
+ raise e
748
+ rescue StandardError => e
749
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
+ end
751
+
752
+ # 查询运行时异常进程策略列表信息导出
753
+
754
+ # @param request: Request instance for DescribeAbnormalProcessRulesExport.
755
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRulesExportRequest`
756
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAbnormalProcessRulesExportResponse`
757
+ def DescribeAbnormalProcessRulesExport(request)
758
+ body = send_request('DescribeAbnormalProcessRulesExport', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DescribeAbnormalProcessRulesExportResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
776
+ # 查询运行时访问控制事件的详细信息
777
+
778
+ # @param request: Request instance for DescribeAccessControlDetail.
779
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlDetailRequest`
780
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlDetailResponse`
781
+ def DescribeAccessControlDetail(request)
782
+ body = send_request('DescribeAccessControlDetail', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribeAccessControlDetailResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
800
+ # 查询运行时访问控制事件列表
801
+
802
+ # @param request: Request instance for DescribeAccessControlEvents.
803
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlEventsRequest`
804
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlEventsResponse`
805
+ def DescribeAccessControlEvents(request)
806
+ body = send_request('DescribeAccessControlEvents', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = DescribeAccessControlEventsResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
824
+ # 查询运行时访问控制事件列表导出
825
+
826
+ # @param request: Request instance for DescribeAccessControlEventsExport.
827
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlEventsExportRequest`
828
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlEventsExportResponse`
829
+ def DescribeAccessControlEventsExport(request)
830
+ body = send_request('DescribeAccessControlEventsExport', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = DescribeAccessControlEventsExportResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
848
+ # 查询运行时访问控制策略详细信息
849
+
850
+ # @param request: Request instance for DescribeAccessControlRuleDetail.
851
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRuleDetailRequest`
852
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRuleDetailResponse`
853
+ def DescribeAccessControlRuleDetail(request)
854
+ body = send_request('DescribeAccessControlRuleDetail', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeAccessControlRuleDetailResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
872
+ # 查询运行访问控制策略列表信息
873
+
874
+ # @param request: Request instance for DescribeAccessControlRules.
875
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRulesRequest`
876
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRulesResponse`
877
+ def DescribeAccessControlRules(request)
878
+ body = send_request('DescribeAccessControlRules', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = DescribeAccessControlRulesResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
896
+ # 查询运行时访问控制策略列表导出
897
+
898
+ # @param request: Request instance for DescribeAccessControlRulesExport.
899
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRulesExportRequest`
900
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAccessControlRulesExportResponse`
901
+ def DescribeAccessControlRulesExport(request)
902
+ body = send_request('DescribeAccessControlRulesExport', request.serialize)
903
+ response = JSON.parse(body)
904
+ if response['Response'].key?('Error') == false
905
+ model = DescribeAccessControlRulesExportResponse.new
906
+ model.deserialize(response['Response'])
907
+ model
908
+ else
909
+ code = response['Response']['Error']['Code']
910
+ message = response['Response']['Error']['Message']
911
+ reqid = response['Response']['RequestId']
912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
913
+ end
914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
915
+ raise e
916
+ rescue StandardError => e
917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
918
+ end
919
+
920
+ # 获取受影响的集群数量,返回数量
921
+
922
+ # @param request: Request instance for DescribeAffectedClusterCount.
923
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedClusterCountRequest`
924
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedClusterCountResponse`
925
+ def DescribeAffectedClusterCount(request)
926
+ body = send_request('DescribeAffectedClusterCount', request.serialize)
927
+ response = JSON.parse(body)
928
+ if response['Response'].key?('Error') == false
929
+ model = DescribeAffectedClusterCountResponse.new
930
+ model.deserialize(response['Response'])
931
+ model
932
+ else
933
+ code = response['Response']['Error']['Code']
934
+ message = response['Response']['Error']['Message']
935
+ reqid = response['Response']['RequestId']
936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
937
+ end
938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
939
+ raise e
940
+ rescue StandardError => e
941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
+ end
943
+
944
+ # 查询节点类型的影响范围,返回节点列表
945
+
946
+ # @param request: Request instance for DescribeAffectedNodeList.
947
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedNodeListRequest`
948
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedNodeListResponse`
949
+ def DescribeAffectedNodeList(request)
950
+ body = send_request('DescribeAffectedNodeList', request.serialize)
951
+ response = JSON.parse(body)
952
+ if response['Response'].key?('Error') == false
953
+ model = DescribeAffectedNodeListResponse.new
954
+ model.deserialize(response['Response'])
955
+ model
956
+ else
957
+ code = response['Response']['Error']['Code']
958
+ message = response['Response']['Error']['Message']
959
+ reqid = response['Response']['RequestId']
960
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
961
+ end
962
+ rescue TencentCloud::Common::TencentCloudSDKException => e
963
+ raise e
964
+ rescue StandardError => e
965
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
+ end
967
+
968
+ # 查询workload类型的影响范围,返回workload列表
969
+
970
+ # @param request: Request instance for DescribeAffectedWorkloadList.
971
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedWorkloadListRequest`
972
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAffectedWorkloadListResponse`
973
+ def DescribeAffectedWorkloadList(request)
974
+ body = send_request('DescribeAffectedWorkloadList', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = DescribeAffectedWorkloadListResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
992
+ # 容器安全查询app服务列表
993
+
994
+ # @param request: Request instance for DescribeAssetAppServiceList.
995
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetAppServiceListRequest`
996
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetAppServiceListResponse`
997
+ def DescribeAssetAppServiceList(request)
998
+ body = send_request('DescribeAssetAppServiceList', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = DescribeAssetAppServiceListResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
1016
+ # 容器安全搜索查询容器组件列表
1017
+
1018
+ # @param request: Request instance for DescribeAssetComponentList.
1019
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetComponentListRequest`
1020
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetComponentListResponse`
1021
+ def DescribeAssetComponentList(request)
1022
+ body = send_request('DescribeAssetComponentList', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeAssetComponentListResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
1040
+ # 查询容器详细信息
1041
+
1042
+ # @param request: Request instance for DescribeAssetContainerDetail.
1043
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetContainerDetailRequest`
1044
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetContainerDetailResponse`
1045
+ def DescribeAssetContainerDetail(request)
1046
+ body = send_request('DescribeAssetContainerDetail', request.serialize)
1047
+ response = JSON.parse(body)
1048
+ if response['Response'].key?('Error') == false
1049
+ model = DescribeAssetContainerDetailResponse.new
1050
+ model.deserialize(response['Response'])
1051
+ model
1052
+ else
1053
+ code = response['Response']['Error']['Code']
1054
+ message = response['Response']['Error']['Message']
1055
+ reqid = response['Response']['RequestId']
1056
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1057
+ end
1058
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1059
+ raise e
1060
+ rescue StandardError => e
1061
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
+ end
1063
+
1064
+ # 搜索查询容器列表
1065
+
1066
+ # @param request: Request instance for DescribeAssetContainerList.
1067
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetContainerListRequest`
1068
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetContainerListResponse`
1069
+ def DescribeAssetContainerList(request)
1070
+ body = send_request('DescribeAssetContainerList', request.serialize)
1071
+ response = JSON.parse(body)
1072
+ if response['Response'].key?('Error') == false
1073
+ model = DescribeAssetContainerListResponse.new
1074
+ model.deserialize(response['Response'])
1075
+ model
1076
+ else
1077
+ code = response['Response']['Error']['Code']
1078
+ message = response['Response']['Error']['Message']
1079
+ reqid = response['Response']['RequestId']
1080
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1081
+ end
1082
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1083
+ raise e
1084
+ rescue StandardError => e
1085
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1086
+ end
1087
+
1088
+ # 容器安全查询db服务列表
1089
+
1090
+ # @param request: Request instance for DescribeAssetDBServiceList.
1091
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetDBServiceListRequest`
1092
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetDBServiceListResponse`
1093
+ def DescribeAssetDBServiceList(request)
1094
+ body = send_request('DescribeAssetDBServiceList', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = DescribeAssetDBServiceListResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1112
+ # 查询主机详细信息
1113
+
1114
+ # @param request: Request instance for DescribeAssetHostDetail.
1115
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetHostDetailRequest`
1116
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetHostDetailResponse`
1117
+ def DescribeAssetHostDetail(request)
1118
+ body = send_request('DescribeAssetHostDetail', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = DescribeAssetHostDetailResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
1136
+ # 容器安全搜索查询主机列表
1137
+
1138
+ # @param request: Request instance for DescribeAssetHostList.
1139
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetHostListRequest`
1140
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetHostListResponse`
1141
+ def DescribeAssetHostList(request)
1142
+ body = send_request('DescribeAssetHostList', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = DescribeAssetHostListResponse.new
1146
+ model.deserialize(response['Response'])
1147
+ model
1148
+ else
1149
+ code = response['Response']['Error']['Code']
1150
+ message = response['Response']['Error']['Message']
1151
+ reqid = response['Response']['RequestId']
1152
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1153
+ end
1154
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1155
+ raise e
1156
+ rescue StandardError => e
1157
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
+ end
1159
+
1160
+ # 镜像绑定规则列表信息,包含运行时访问控制和异常进程公用
1161
+
1162
+ # @param request: Request instance for DescribeAssetImageBindRuleInfo.
1163
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageBindRuleInfoRequest`
1164
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageBindRuleInfoResponse`
1165
+ def DescribeAssetImageBindRuleInfo(request)
1166
+ body = send_request('DescribeAssetImageBindRuleInfo', request.serialize)
1167
+ response = JSON.parse(body)
1168
+ if response['Response'].key?('Error') == false
1169
+ model = DescribeAssetImageBindRuleInfoResponse.new
1170
+ model.deserialize(response['Response'])
1171
+ model
1172
+ else
1173
+ code = response['Response']['Error']['Code']
1174
+ message = response['Response']['Error']['Message']
1175
+ reqid = response['Response']['RequestId']
1176
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1177
+ end
1178
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1179
+ raise e
1180
+ rescue StandardError => e
1181
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
+ end
1183
+
1184
+ # 查询镜像详细信息
1185
+
1186
+ # @param request: Request instance for DescribeAssetImageDetail.
1187
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageDetailRequest`
1188
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageDetailResponse`
1189
+ def DescribeAssetImageDetail(request)
1190
+ body = send_request('DescribeAssetImageDetail', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = DescribeAssetImageDetailResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1208
+ # 容器安全查询镜像关联主机
1209
+
1210
+ # @param request: Request instance for DescribeAssetImageHostList.
1211
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageHostListRequest`
1212
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageHostListResponse`
1213
+ def DescribeAssetImageHostList(request)
1214
+ body = send_request('DescribeAssetImageHostList', request.serialize)
1215
+ response = JSON.parse(body)
1216
+ if response['Response'].key?('Error') == false
1217
+ model = DescribeAssetImageHostListResponse.new
1218
+ model.deserialize(response['Response'])
1219
+ model
1220
+ else
1221
+ code = response['Response']['Error']['Code']
1222
+ message = response['Response']['Error']['Message']
1223
+ reqid = response['Response']['RequestId']
1224
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1225
+ end
1226
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1227
+ raise e
1228
+ rescue StandardError => e
1229
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
+ end
1231
+
1232
+ # 容器安全搜索查询镜像列表
1233
+
1234
+ # @param request: Request instance for DescribeAssetImageList.
1235
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageListRequest`
1236
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageListResponse`
1237
+ def DescribeAssetImageList(request)
1238
+ body = send_request('DescribeAssetImageList', request.serialize)
1239
+ response = JSON.parse(body)
1240
+ if response['Response'].key?('Error') == false
1241
+ model = DescribeAssetImageListResponse.new
1242
+ model.deserialize(response['Response'])
1243
+ model
1244
+ else
1245
+ code = response['Response']['Error']['Code']
1246
+ message = response['Response']['Error']['Message']
1247
+ reqid = response['Response']['RequestId']
1248
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1249
+ end
1250
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1251
+ raise e
1252
+ rescue StandardError => e
1253
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1254
+ end
1255
+
1256
+ # 容器安全搜索查询镜像列表导出
1257
+
1258
+ # @param request: Request instance for DescribeAssetImageListExport.
1259
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageListExportRequest`
1260
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageListExportResponse`
1261
+ def DescribeAssetImageListExport(request)
1262
+ body = send_request('DescribeAssetImageListExport', request.serialize)
1263
+ response = JSON.parse(body)
1264
+ if response['Response'].key?('Error') == false
1265
+ model = DescribeAssetImageListExportResponse.new
1266
+ model.deserialize(response['Response'])
1267
+ model
1268
+ else
1269
+ code = response['Response']['Error']['Code']
1270
+ message = response['Response']['Error']['Message']
1271
+ reqid = response['Response']['RequestId']
1272
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1273
+ end
1274
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1275
+ raise e
1276
+ rescue StandardError => e
1277
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
+ end
1279
+
1280
+ # 查看镜像仓库资产更新进度状态
1281
+
1282
+ # @param request: Request instance for DescribeAssetImageRegistryAssetStatus.
1283
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryAssetStatusRequest`
1284
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryAssetStatusResponse`
1285
+ def DescribeAssetImageRegistryAssetStatus(request)
1286
+ body = send_request('DescribeAssetImageRegistryAssetStatus', request.serialize)
1287
+ response = JSON.parse(body)
1288
+ if response['Response'].key?('Error') == false
1289
+ model = DescribeAssetImageRegistryAssetStatusResponse.new
1290
+ model.deserialize(response['Response'])
1291
+ model
1292
+ else
1293
+ code = response['Response']['Error']['Code']
1294
+ message = response['Response']['Error']['Message']
1295
+ reqid = response['Response']['RequestId']
1296
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1297
+ end
1298
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1299
+ raise e
1300
+ rescue StandardError => e
1301
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
+ end
1303
+
1304
+ # 镜像仓库镜像仓库列表详情
1305
+
1306
+ # @param request: Request instance for DescribeAssetImageRegistryDetail.
1307
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryDetailRequest`
1308
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryDetailResponse`
1309
+ def DescribeAssetImageRegistryDetail(request)
1310
+ body = send_request('DescribeAssetImageRegistryDetail', request.serialize)
1311
+ response = JSON.parse(body)
1312
+ if response['Response'].key?('Error') == false
1313
+ model = DescribeAssetImageRegistryDetailResponse.new
1314
+ model.deserialize(response['Response'])
1315
+ model
1316
+ else
1317
+ code = response['Response']['Error']['Code']
1318
+ message = response['Response']['Error']['Message']
1319
+ reqid = response['Response']['RequestId']
1320
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1321
+ end
1322
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1323
+ raise e
1324
+ rescue StandardError => e
1325
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
+ end
1327
+
1328
+ # 镜像仓库镜像仓库列表
1329
+
1330
+ # @param request: Request instance for DescribeAssetImageRegistryList.
1331
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryListRequest`
1332
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryListResponse`
1333
+ def DescribeAssetImageRegistryList(request)
1334
+ body = send_request('DescribeAssetImageRegistryList', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribeAssetImageRegistryListResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1352
+ # 镜像仓库镜像列表导出
1353
+
1354
+ # @param request: Request instance for DescribeAssetImageRegistryListExport.
1355
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryListExportRequest`
1356
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryListExportResponse`
1357
+ def DescribeAssetImageRegistryListExport(request)
1358
+ body = send_request('DescribeAssetImageRegistryListExport', request.serialize)
1359
+ response = JSON.parse(body)
1360
+ if response['Response'].key?('Error') == false
1361
+ model = DescribeAssetImageRegistryListExportResponse.new
1362
+ model.deserialize(response['Response'])
1363
+ model
1364
+ else
1365
+ code = response['Response']['Error']['Code']
1366
+ message = response['Response']['Error']['Message']
1367
+ reqid = response['Response']['RequestId']
1368
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1369
+ end
1370
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1371
+ raise e
1372
+ rescue StandardError => e
1373
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1374
+ end
1375
+
1376
+ # 查看单个镜像仓库详细信息
1377
+
1378
+ # @param request: Request instance for DescribeAssetImageRegistryRegistryDetail.
1379
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRegistryDetailRequest`
1380
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRegistryDetailResponse`
1381
+ def DescribeAssetImageRegistryRegistryDetail(request)
1382
+ body = send_request('DescribeAssetImageRegistryRegistryDetail', request.serialize)
1383
+ response = JSON.parse(body)
1384
+ if response['Response'].key?('Error') == false
1385
+ model = DescribeAssetImageRegistryRegistryDetailResponse.new
1386
+ model.deserialize(response['Response'])
1387
+ model
1388
+ else
1389
+ code = response['Response']['Error']['Code']
1390
+ message = response['Response']['Error']['Message']
1391
+ reqid = response['Response']['RequestId']
1392
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1393
+ end
1394
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1395
+ raise e
1396
+ rescue StandardError => e
1397
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1398
+ end
1399
+
1400
+ # 镜像仓库仓库列表
1401
+
1402
+ # @param request: Request instance for DescribeAssetImageRegistryRegistryList.
1403
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRegistryListRequest`
1404
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRegistryListResponse`
1405
+ def DescribeAssetImageRegistryRegistryList(request)
1406
+ body = send_request('DescribeAssetImageRegistryRegistryList', request.serialize)
1407
+ response = JSON.parse(body)
1408
+ if response['Response'].key?('Error') == false
1409
+ model = DescribeAssetImageRegistryRegistryListResponse.new
1410
+ model.deserialize(response['Response'])
1411
+ model
1412
+ else
1413
+ code = response['Response']['Error']['Code']
1414
+ message = response['Response']['Error']['Message']
1415
+ reqid = response['Response']['RequestId']
1416
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1417
+ end
1418
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1419
+ raise e
1420
+ rescue StandardError => e
1421
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
+ end
1423
+
1424
+ # 镜像仓库查询镜像高危行为列表
1425
+
1426
+ # @param request: Request instance for DescribeAssetImageRegistryRiskInfoList.
1427
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRiskInfoListRequest`
1428
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRiskInfoListResponse`
1429
+ def DescribeAssetImageRegistryRiskInfoList(request)
1430
+ body = send_request('DescribeAssetImageRegistryRiskInfoList', request.serialize)
1431
+ response = JSON.parse(body)
1432
+ if response['Response'].key?('Error') == false
1433
+ model = DescribeAssetImageRegistryRiskInfoListResponse.new
1434
+ model.deserialize(response['Response'])
1435
+ model
1436
+ else
1437
+ code = response['Response']['Error']['Code']
1438
+ message = response['Response']['Error']['Message']
1439
+ reqid = response['Response']['RequestId']
1440
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1441
+ end
1442
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1443
+ raise e
1444
+ rescue StandardError => e
1445
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1446
+ end
1447
+
1448
+ # 镜像仓库敏感信息列表导出
1449
+
1450
+ # @param request: Request instance for DescribeAssetImageRegistryRiskListExport.
1451
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRiskListExportRequest`
1452
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryRiskListExportResponse`
1453
+ def DescribeAssetImageRegistryRiskListExport(request)
1454
+ body = send_request('DescribeAssetImageRegistryRiskListExport', request.serialize)
1455
+ response = JSON.parse(body)
1456
+ if response['Response'].key?('Error') == false
1457
+ model = DescribeAssetImageRegistryRiskListExportResponse.new
1458
+ model.deserialize(response['Response'])
1459
+ model
1460
+ else
1461
+ code = response['Response']['Error']['Code']
1462
+ message = response['Response']['Error']['Message']
1463
+ reqid = response['Response']['RequestId']
1464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1465
+ end
1466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1467
+ raise e
1468
+ rescue StandardError => e
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
+ end
1471
+
1472
+ # 镜像仓库查询一键镜像扫描状态
1473
+
1474
+ # @param request: Request instance for DescribeAssetImageRegistryScanStatusOneKey.
1475
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryScanStatusOneKeyRequest`
1476
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryScanStatusOneKeyResponse`
1477
+ def DescribeAssetImageRegistryScanStatusOneKey(request)
1478
+ body = send_request('DescribeAssetImageRegistryScanStatusOneKey', request.serialize)
1479
+ response = JSON.parse(body)
1480
+ if response['Response'].key?('Error') == false
1481
+ model = DescribeAssetImageRegistryScanStatusOneKeyResponse.new
1482
+ model.deserialize(response['Response'])
1483
+ model
1484
+ else
1485
+ code = response['Response']['Error']['Code']
1486
+ message = response['Response']['Error']['Message']
1487
+ reqid = response['Response']['RequestId']
1488
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1489
+ end
1490
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1491
+ raise e
1492
+ rescue StandardError => e
1493
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1494
+ end
1495
+
1496
+ # 镜像仓库查询镜像统计信息
1497
+
1498
+ # @param request: Request instance for DescribeAssetImageRegistrySummary.
1499
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistrySummaryRequest`
1500
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistrySummaryResponse`
1501
+ def DescribeAssetImageRegistrySummary(request)
1502
+ body = send_request('DescribeAssetImageRegistrySummary', request.serialize)
1503
+ response = JSON.parse(body)
1504
+ if response['Response'].key?('Error') == false
1505
+ model = DescribeAssetImageRegistrySummaryResponse.new
1506
+ model.deserialize(response['Response'])
1507
+ model
1508
+ else
1509
+ code = response['Response']['Error']['Code']
1510
+ message = response['Response']['Error']['Message']
1511
+ reqid = response['Response']['RequestId']
1512
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1513
+ end
1514
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1515
+ raise e
1516
+ rescue StandardError => e
1517
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
+ end
1519
+
1520
+ # 镜像仓库查询木马病毒列表
1521
+
1522
+ # @param request: Request instance for DescribeAssetImageRegistryVirusList.
1523
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVirusListRequest`
1524
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVirusListResponse`
1525
+ def DescribeAssetImageRegistryVirusList(request)
1526
+ body = send_request('DescribeAssetImageRegistryVirusList', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = DescribeAssetImageRegistryVirusListResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1544
+ # 镜像仓库木马信息列表导出
1545
+
1546
+ # @param request: Request instance for DescribeAssetImageRegistryVirusListExport.
1547
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVirusListExportRequest`
1548
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVirusListExportResponse`
1549
+ def DescribeAssetImageRegistryVirusListExport(request)
1550
+ body = send_request('DescribeAssetImageRegistryVirusListExport', request.serialize)
1551
+ response = JSON.parse(body)
1552
+ if response['Response'].key?('Error') == false
1553
+ model = DescribeAssetImageRegistryVirusListExportResponse.new
1554
+ model.deserialize(response['Response'])
1555
+ model
1556
+ else
1557
+ code = response['Response']['Error']['Code']
1558
+ message = response['Response']['Error']['Message']
1559
+ reqid = response['Response']['RequestId']
1560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1561
+ end
1562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1563
+ raise e
1564
+ rescue StandardError => e
1565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
+ end
1567
+
1568
+ # 镜像仓库查询镜像漏洞列表
1569
+
1570
+ # @param request: Request instance for DescribeAssetImageRegistryVulList.
1571
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVulListRequest`
1572
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVulListResponse`
1573
+ def DescribeAssetImageRegistryVulList(request)
1574
+ body = send_request('DescribeAssetImageRegistryVulList', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = DescribeAssetImageRegistryVulListResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1592
+ # 镜像仓库漏洞列表导出
1593
+
1594
+ # @param request: Request instance for DescribeAssetImageRegistryVulListExport.
1595
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVulListExportRequest`
1596
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRegistryVulListExportResponse`
1597
+ def DescribeAssetImageRegistryVulListExport(request)
1598
+ body = send_request('DescribeAssetImageRegistryVulListExport', request.serialize)
1599
+ response = JSON.parse(body)
1600
+ if response['Response'].key?('Error') == false
1601
+ model = DescribeAssetImageRegistryVulListExportResponse.new
1602
+ model.deserialize(response['Response'])
1603
+ model
1604
+ else
1605
+ code = response['Response']['Error']['Code']
1606
+ message = response['Response']['Error']['Message']
1607
+ reqid = response['Response']['RequestId']
1608
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1609
+ end
1610
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1611
+ raise e
1612
+ rescue StandardError => e
1613
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1614
+ end
1615
+
1616
+ # 容器安全查询镜像风险列表
1617
+
1618
+ # @param request: Request instance for DescribeAssetImageRiskList.
1619
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRiskListRequest`
1620
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRiskListResponse`
1621
+ def DescribeAssetImageRiskList(request)
1622
+ body = send_request('DescribeAssetImageRiskList', request.serialize)
1623
+ response = JSON.parse(body)
1624
+ if response['Response'].key?('Error') == false
1625
+ model = DescribeAssetImageRiskListResponse.new
1626
+ model.deserialize(response['Response'])
1627
+ model
1628
+ else
1629
+ code = response['Response']['Error']['Code']
1630
+ message = response['Response']['Error']['Message']
1631
+ reqid = response['Response']['RequestId']
1632
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1633
+ end
1634
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1635
+ raise e
1636
+ rescue StandardError => e
1637
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
+ end
1639
+
1640
+ # 容器安全搜索查询镜像风险列表导出
1641
+
1642
+ # @param request: Request instance for DescribeAssetImageRiskListExport.
1643
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRiskListExportRequest`
1644
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageRiskListExportResponse`
1645
+ def DescribeAssetImageRiskListExport(request)
1646
+ body = send_request('DescribeAssetImageRiskListExport', request.serialize)
1647
+ response = JSON.parse(body)
1648
+ if response['Response'].key?('Error') == false
1649
+ model = DescribeAssetImageRiskListExportResponse.new
1650
+ model.deserialize(response['Response'])
1651
+ model
1652
+ else
1653
+ code = response['Response']['Error']['Code']
1654
+ message = response['Response']['Error']['Message']
1655
+ reqid = response['Response']['RequestId']
1656
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1657
+ end
1658
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1659
+ raise e
1660
+ rescue StandardError => e
1661
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
+ end
1663
+
1664
+ # 获取镜像扫描设置信息
1665
+
1666
+ # @param request: Request instance for DescribeAssetImageScanSetting.
1667
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanSettingRequest`
1668
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanSettingResponse`
1669
+ def DescribeAssetImageScanSetting(request)
1670
+ body = send_request('DescribeAssetImageScanSetting', request.serialize)
1671
+ response = JSON.parse(body)
1672
+ if response['Response'].key?('Error') == false
1673
+ model = DescribeAssetImageScanSettingResponse.new
1674
+ model.deserialize(response['Response'])
1675
+ model
1676
+ else
1677
+ code = response['Response']['Error']['Code']
1678
+ message = response['Response']['Error']['Message']
1679
+ reqid = response['Response']['RequestId']
1680
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1681
+ end
1682
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1683
+ raise e
1684
+ rescue StandardError => e
1685
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
+ end
1687
+
1688
+ # 容器安全查询镜像扫描状态
1689
+
1690
+ # @param request: Request instance for DescribeAssetImageScanStatus.
1691
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanStatusRequest`
1692
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanStatusResponse`
1693
+ def DescribeAssetImageScanStatus(request)
1694
+ body = send_request('DescribeAssetImageScanStatus', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = DescribeAssetImageScanStatusResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1712
+ # 查询正在一键扫描的镜像扫描taskid
1713
+
1714
+ # @param request: Request instance for DescribeAssetImageScanTask.
1715
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanTaskRequest`
1716
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageScanTaskResponse`
1717
+ def DescribeAssetImageScanTask(request)
1718
+ body = send_request('DescribeAssetImageScanTask', request.serialize)
1719
+ response = JSON.parse(body)
1720
+ if response['Response'].key?('Error') == false
1721
+ model = DescribeAssetImageScanTaskResponse.new
1722
+ model.deserialize(response['Response'])
1723
+ model
1724
+ else
1725
+ code = response['Response']['Error']['Code']
1726
+ message = response['Response']['Error']['Message']
1727
+ reqid = response['Response']['RequestId']
1728
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1729
+ end
1730
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1731
+ raise e
1732
+ rescue StandardError => e
1733
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1734
+ end
1735
+
1736
+ # 容器安全搜索查询镜像简略信息列表
1737
+
1738
+ # @param request: Request instance for DescribeAssetImageSimpleList.
1739
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageSimpleListRequest`
1740
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageSimpleListResponse`
1741
+ def DescribeAssetImageSimpleList(request)
1742
+ body = send_request('DescribeAssetImageSimpleList', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = DescribeAssetImageSimpleListResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1760
+ # 容器安全查询镜像病毒列表
1761
+
1762
+ # @param request: Request instance for DescribeAssetImageVirusList.
1763
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVirusListRequest`
1764
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVirusListResponse`
1765
+ def DescribeAssetImageVirusList(request)
1766
+ body = send_request('DescribeAssetImageVirusList', request.serialize)
1767
+ response = JSON.parse(body)
1768
+ if response['Response'].key?('Error') == false
1769
+ model = DescribeAssetImageVirusListResponse.new
1770
+ model.deserialize(response['Response'])
1771
+ model
1772
+ else
1773
+ code = response['Response']['Error']['Code']
1774
+ message = response['Response']['Error']['Message']
1775
+ reqid = response['Response']['RequestId']
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1777
+ end
1778
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1779
+ raise e
1780
+ rescue StandardError => e
1781
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
+ end
1783
+
1784
+ # 容器安全搜索查询镜像木马列表导出
1785
+
1786
+ # @param request: Request instance for DescribeAssetImageVirusListExport.
1787
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVirusListExportRequest`
1788
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVirusListExportResponse`
1789
+ def DescribeAssetImageVirusListExport(request)
1790
+ body = send_request('DescribeAssetImageVirusListExport', request.serialize)
1791
+ response = JSON.parse(body)
1792
+ if response['Response'].key?('Error') == false
1793
+ model = DescribeAssetImageVirusListExportResponse.new
1794
+ model.deserialize(response['Response'])
1795
+ model
1796
+ else
1797
+ code = response['Response']['Error']['Code']
1798
+ message = response['Response']['Error']['Message']
1799
+ reqid = response['Response']['RequestId']
1800
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1801
+ end
1802
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1803
+ raise e
1804
+ rescue StandardError => e
1805
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1806
+ end
1807
+
1808
+ # 容器安全查询镜像漏洞列表
1809
+
1810
+ # @param request: Request instance for DescribeAssetImageVulList.
1811
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVulListRequest`
1812
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVulListResponse`
1813
+ def DescribeAssetImageVulList(request)
1814
+ body = send_request('DescribeAssetImageVulList', request.serialize)
1815
+ response = JSON.parse(body)
1816
+ if response['Response'].key?('Error') == false
1817
+ model = DescribeAssetImageVulListResponse.new
1818
+ model.deserialize(response['Response'])
1819
+ model
1820
+ else
1821
+ code = response['Response']['Error']['Code']
1822
+ message = response['Response']['Error']['Message']
1823
+ reqid = response['Response']['RequestId']
1824
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1825
+ end
1826
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1827
+ raise e
1828
+ rescue StandardError => e
1829
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
+ end
1831
+
1832
+ # 容器安全搜索查询镜像漏洞列表导出
1833
+
1834
+ # @param request: Request instance for DescribeAssetImageVulListExport.
1835
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVulListExportRequest`
1836
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetImageVulListExportResponse`
1837
+ def DescribeAssetImageVulListExport(request)
1838
+ body = send_request('DescribeAssetImageVulListExport', request.serialize)
1839
+ response = JSON.parse(body)
1840
+ if response['Response'].key?('Error') == false
1841
+ model = DescribeAssetImageVulListExportResponse.new
1842
+ model.deserialize(response['Response'])
1843
+ model
1844
+ else
1845
+ code = response['Response']['Error']['Code']
1846
+ message = response['Response']['Error']['Message']
1847
+ reqid = response['Response']['RequestId']
1848
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1849
+ end
1850
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1851
+ raise e
1852
+ rescue StandardError => e
1853
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1854
+ end
1855
+
1856
+ # 容器安全搜索查询端口占用列表
1857
+
1858
+ # @param request: Request instance for DescribeAssetPortList.
1859
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetPortListRequest`
1860
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetPortListResponse`
1861
+ def DescribeAssetPortList(request)
1862
+ body = send_request('DescribeAssetPortList', request.serialize)
1863
+ response = JSON.parse(body)
1864
+ if response['Response'].key?('Error') == false
1865
+ model = DescribeAssetPortListResponse.new
1866
+ model.deserialize(response['Response'])
1867
+ model
1868
+ else
1869
+ code = response['Response']['Error']['Code']
1870
+ message = response['Response']['Error']['Message']
1871
+ reqid = response['Response']['RequestId']
1872
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1873
+ end
1874
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1875
+ raise e
1876
+ rescue StandardError => e
1877
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1878
+ end
1879
+
1880
+ # 容器安全搜索查询进程列表
1881
+
1882
+ # @param request: Request instance for DescribeAssetProcessList.
1883
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetProcessListRequest`
1884
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetProcessListResponse`
1885
+ def DescribeAssetProcessList(request)
1886
+ body = send_request('DescribeAssetProcessList', request.serialize)
1887
+ response = JSON.parse(body)
1888
+ if response['Response'].key?('Error') == false
1889
+ model = DescribeAssetProcessListResponse.new
1890
+ model.deserialize(response['Response'])
1891
+ model
1892
+ else
1893
+ code = response['Response']['Error']['Code']
1894
+ message = response['Response']['Error']['Message']
1895
+ reqid = response['Response']['RequestId']
1896
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1897
+ end
1898
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1899
+ raise e
1900
+ rescue StandardError => e
1901
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1902
+ end
1903
+
1904
+ # 查询账户容器、镜像等统计信息
1905
+
1906
+ # @param request: Request instance for DescribeAssetSummary.
1907
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetSummaryRequest`
1908
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetSummaryResponse`
1909
+ def DescribeAssetSummary(request)
1910
+ body = send_request('DescribeAssetSummary', request.serialize)
1911
+ response = JSON.parse(body)
1912
+ if response['Response'].key?('Error') == false
1913
+ model = DescribeAssetSummaryResponse.new
1914
+ model.deserialize(response['Response'])
1915
+ model
1916
+ else
1917
+ code = response['Response']['Error']['Code']
1918
+ message = response['Response']['Error']['Message']
1919
+ reqid = response['Response']['RequestId']
1920
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1921
+ end
1922
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1923
+ raise e
1924
+ rescue StandardError => e
1925
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
+ end
1927
+
1928
+ # 容器安全查询web服务列表
1929
+
1930
+ # @param request: Request instance for DescribeAssetWebServiceList.
1931
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeAssetWebServiceListRequest`
1932
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeAssetWebServiceListResponse`
1933
+ def DescribeAssetWebServiceList(request)
1934
+ body = send_request('DescribeAssetWebServiceList', request.serialize)
1935
+ response = JSON.parse(body)
1936
+ if response['Response'].key?('Error') == false
1937
+ model = DescribeAssetWebServiceListResponse.new
1938
+ model.deserialize(response['Response'])
1939
+ model
1940
+ else
1941
+ code = response['Response']['Error']['Code']
1942
+ message = response['Response']['Error']['Message']
1943
+ reqid = response['Response']['RequestId']
1944
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1945
+ end
1946
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1947
+ raise e
1948
+ rescue StandardError => e
1949
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1950
+ end
1951
+
1952
+ # 查询所有检查项接口,返回总数和检查项列表
1953
+
1954
+ # @param request: Request instance for DescribeCheckItemList.
1955
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeCheckItemListRequest`
1956
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeCheckItemListResponse`
1957
+ def DescribeCheckItemList(request)
1958
+ body = send_request('DescribeCheckItemList', request.serialize)
1959
+ response = JSON.parse(body)
1960
+ if response['Response'].key?('Error') == false
1961
+ model = DescribeCheckItemListResponse.new
1962
+ model.deserialize(response['Response'])
1963
+ model
1964
+ else
1965
+ code = response['Response']['Error']['Code']
1966
+ message = response['Response']['Error']['Message']
1967
+ reqid = response['Response']['RequestId']
1968
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1969
+ end
1970
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1971
+ raise e
1972
+ rescue StandardError => e
1973
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
+ end
1975
+
1976
+ # 查询单个集群的详细信息
1977
+
1978
+ # @param request: Request instance for DescribeClusterDetail.
1979
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeClusterDetailRequest`
1980
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeClusterDetailResponse`
1981
+ def DescribeClusterDetail(request)
1982
+ body = send_request('DescribeClusterDetail', request.serialize)
1983
+ response = JSON.parse(body)
1984
+ if response['Response'].key?('Error') == false
1985
+ model = DescribeClusterDetailResponse.new
1986
+ model.deserialize(response['Response'])
1987
+ model
1988
+ else
1989
+ code = response['Response']['Error']['Code']
1990
+ message = response['Response']['Error']['Message']
1991
+ reqid = response['Response']['RequestId']
1992
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1993
+ end
1994
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1995
+ raise e
1996
+ rescue StandardError => e
1997
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1998
+ end
1999
+
2000
+ # 查询用户集群资产总览
2001
+
2002
+ # @param request: Request instance for DescribeClusterSummary.
2003
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeClusterSummaryRequest`
2004
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeClusterSummaryResponse`
2005
+ def DescribeClusterSummary(request)
2006
+ body = send_request('DescribeClusterSummary', request.serialize)
2007
+ response = JSON.parse(body)
2008
+ if response['Response'].key?('Error') == false
2009
+ model = DescribeClusterSummaryResponse.new
2010
+ model.deserialize(response['Response'])
2011
+ model
2012
+ else
2013
+ code = response['Response']['Error']['Code']
2014
+ message = response['Response']['Error']['Message']
2015
+ reqid = response['Response']['RequestId']
2016
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2017
+ end
2018
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2019
+ raise e
2020
+ rescue StandardError => e
2021
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2022
+ end
2023
+
2024
+ # 查询某个资产的详情
2025
+
2026
+ # @param request: Request instance for DescribeComplianceAssetDetailInfo.
2027
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetDetailInfoRequest`
2028
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetDetailInfoResponse`
2029
+ def DescribeComplianceAssetDetailInfo(request)
2030
+ body = send_request('DescribeComplianceAssetDetailInfo', request.serialize)
2031
+ response = JSON.parse(body)
2032
+ if response['Response'].key?('Error') == false
2033
+ model = DescribeComplianceAssetDetailInfoResponse.new
2034
+ model.deserialize(response['Response'])
2035
+ model
2036
+ else
2037
+ code = response['Response']['Error']['Code']
2038
+ message = response['Response']['Error']['Message']
2039
+ reqid = response['Response']['RequestId']
2040
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2041
+ end
2042
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2043
+ raise e
2044
+ rescue StandardError => e
2045
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2046
+ end
2047
+
2048
+ # 查询某类资产的列表
2049
+
2050
+ # @param request: Request instance for DescribeComplianceAssetList.
2051
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetListRequest`
2052
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetListResponse`
2053
+ def DescribeComplianceAssetList(request)
2054
+ body = send_request('DescribeComplianceAssetList', request.serialize)
2055
+ response = JSON.parse(body)
2056
+ if response['Response'].key?('Error') == false
2057
+ model = DescribeComplianceAssetListResponse.new
2058
+ model.deserialize(response['Response'])
2059
+ model
2060
+ else
2061
+ code = response['Response']['Error']['Code']
2062
+ message = response['Response']['Error']['Message']
2063
+ reqid = response['Response']['RequestId']
2064
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2065
+ end
2066
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2067
+ raise e
2068
+ rescue StandardError => e
2069
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2070
+ end
2071
+
2072
+ # 查询某资产下的检测项列表
2073
+
2074
+ # @param request: Request instance for DescribeComplianceAssetPolicyItemList.
2075
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetPolicyItemListRequest`
2076
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceAssetPolicyItemListResponse`
2077
+ def DescribeComplianceAssetPolicyItemList(request)
2078
+ body = send_request('DescribeComplianceAssetPolicyItemList', request.serialize)
2079
+ response = JSON.parse(body)
2080
+ if response['Response'].key?('Error') == false
2081
+ model = DescribeComplianceAssetPolicyItemListResponse.new
2082
+ model.deserialize(response['Response'])
2083
+ model
2084
+ else
2085
+ code = response['Response']['Error']['Code']
2086
+ message = response['Response']['Error']['Message']
2087
+ reqid = response['Response']['RequestId']
2088
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2089
+ end
2090
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2091
+ raise e
2092
+ rescue StandardError => e
2093
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2094
+ end
2095
+
2096
+ # 查询合规检测的定时任务列表
2097
+
2098
+ # @param request: Request instance for DescribeCompliancePeriodTaskList.
2099
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePeriodTaskListRequest`
2100
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePeriodTaskListResponse`
2101
+ def DescribeCompliancePeriodTaskList(request)
2102
+ body = send_request('DescribeCompliancePeriodTaskList', request.serialize)
2103
+ response = JSON.parse(body)
2104
+ if response['Response'].key?('Error') == false
2105
+ model = DescribeCompliancePeriodTaskListResponse.new
2106
+ model.deserialize(response['Response'])
2107
+ model
2108
+ else
2109
+ code = response['Response']['Error']['Code']
2110
+ message = response['Response']['Error']['Message']
2111
+ reqid = response['Response']['RequestId']
2112
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2113
+ end
2114
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2115
+ raise e
2116
+ rescue StandardError => e
2117
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2118
+ end
2119
+
2120
+ # 按照 检测项 → 资产 的两级层次展开的第二层级:资产层级。
2121
+
2122
+ # @param request: Request instance for DescribeCompliancePolicyItemAffectedAssetList.
2123
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePolicyItemAffectedAssetListRequest`
2124
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePolicyItemAffectedAssetListResponse`
2125
+ def DescribeCompliancePolicyItemAffectedAssetList(request)
2126
+ body = send_request('DescribeCompliancePolicyItemAffectedAssetList', request.serialize)
2127
+ response = JSON.parse(body)
2128
+ if response['Response'].key?('Error') == false
2129
+ model = DescribeCompliancePolicyItemAffectedAssetListResponse.new
2130
+ model.deserialize(response['Response'])
2131
+ model
2132
+ else
2133
+ code = response['Response']['Error']['Code']
2134
+ message = response['Response']['Error']['Message']
2135
+ reqid = response['Response']['RequestId']
2136
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2137
+ end
2138
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2139
+ raise e
2140
+ rescue StandardError => e
2141
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2142
+ end
2143
+
2144
+ # 按照 检测项 → 资产 的两级层次展开的第一层级:检测项层级。
2145
+
2146
+ # @param request: Request instance for DescribeCompliancePolicyItemAffectedSummary.
2147
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePolicyItemAffectedSummaryRequest`
2148
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeCompliancePolicyItemAffectedSummaryResponse`
2149
+ def DescribeCompliancePolicyItemAffectedSummary(request)
2150
+ body = send_request('DescribeCompliancePolicyItemAffectedSummary', request.serialize)
2151
+ response = JSON.parse(body)
2152
+ if response['Response'].key?('Error') == false
2153
+ model = DescribeCompliancePolicyItemAffectedSummaryResponse.new
2154
+ model.deserialize(response['Response'])
2155
+ model
2156
+ else
2157
+ code = response['Response']['Error']['Code']
2158
+ message = response['Response']['Error']['Message']
2159
+ reqid = response['Response']['RequestId']
2160
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2161
+ end
2162
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2163
+ raise e
2164
+ rescue StandardError => e
2165
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2166
+ end
2167
+
2168
+ # 按照 资产 → 检测项 二层结构展示的信息。这里查询第一层 资产的通过率汇总信息。
2169
+
2170
+ # @param request: Request instance for DescribeComplianceScanFailedAssetList.
2171
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceScanFailedAssetListRequest`
2172
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceScanFailedAssetListResponse`
2173
+ def DescribeComplianceScanFailedAssetList(request)
2174
+ body = send_request('DescribeComplianceScanFailedAssetList', request.serialize)
2175
+ response = JSON.parse(body)
2176
+ if response['Response'].key?('Error') == false
2177
+ model = DescribeComplianceScanFailedAssetListResponse.new
2178
+ model.deserialize(response['Response'])
2179
+ model
2180
+ else
2181
+ code = response['Response']['Error']['Code']
2182
+ message = response['Response']['Error']['Message']
2183
+ reqid = response['Response']['RequestId']
2184
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2185
+ end
2186
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2187
+ raise e
2188
+ rescue StandardError => e
2189
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2190
+ end
2191
+
2192
+ # 查询上次任务的资产通过率汇总信息
2193
+
2194
+ # @param request: Request instance for DescribeComplianceTaskAssetSummary.
2195
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceTaskAssetSummaryRequest`
2196
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceTaskAssetSummaryResponse`
2197
+ def DescribeComplianceTaskAssetSummary(request)
2198
+ body = send_request('DescribeComplianceTaskAssetSummary', request.serialize)
2199
+ response = JSON.parse(body)
2200
+ if response['Response'].key?('Error') == false
2201
+ model = DescribeComplianceTaskAssetSummaryResponse.new
2202
+ model.deserialize(response['Response'])
2203
+ model
2204
+ else
2205
+ code = response['Response']['Error']['Code']
2206
+ message = response['Response']['Error']['Message']
2207
+ reqid = response['Response']['RequestId']
2208
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2209
+ end
2210
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2211
+ raise e
2212
+ rescue StandardError => e
2213
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2214
+ end
2215
+
2216
+ # 查询最近一次任务发现的检测项的汇总信息列表,按照 检测项 → 资产 的两级层次展开。
2217
+
2218
+ # @param request: Request instance for DescribeComplianceTaskPolicyItemSummaryList.
2219
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceTaskPolicyItemSummaryListRequest`
2220
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceTaskPolicyItemSummaryListResponse`
2221
+ def DescribeComplianceTaskPolicyItemSummaryList(request)
2222
+ body = send_request('DescribeComplianceTaskPolicyItemSummaryList', request.serialize)
2223
+ response = JSON.parse(body)
2224
+ if response['Response'].key?('Error') == false
2225
+ model = DescribeComplianceTaskPolicyItemSummaryListResponse.new
2226
+ model.deserialize(response['Response'])
2227
+ model
2228
+ else
2229
+ code = response['Response']['Error']['Code']
2230
+ message = response['Response']['Error']['Message']
2231
+ reqid = response['Response']['RequestId']
2232
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2233
+ end
2234
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2235
+ raise e
2236
+ rescue StandardError => e
2237
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2238
+ end
2239
+
2240
+ # 查询白名单列表
2241
+
2242
+ # @param request: Request instance for DescribeComplianceWhitelistItemList.
2243
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceWhitelistItemListRequest`
2244
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeComplianceWhitelistItemListResponse`
2245
+ def DescribeComplianceWhitelistItemList(request)
2246
+ body = send_request('DescribeComplianceWhitelistItemList', request.serialize)
2247
+ response = JSON.parse(body)
2248
+ if response['Response'].key?('Error') == false
2249
+ model = DescribeComplianceWhitelistItemListResponse.new
2250
+ model.deserialize(response['Response'])
2251
+ model
2252
+ else
2253
+ code = response['Response']['Error']['Code']
2254
+ message = response['Response']['Error']['Message']
2255
+ reqid = response['Response']['RequestId']
2256
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2257
+ end
2258
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2259
+ raise e
2260
+ rescue StandardError => e
2261
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2262
+ end
2263
+
2264
+ # 查询容器资产概览信息
2265
+
2266
+ # @param request: Request instance for DescribeContainerAssetSummary.
2267
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeContainerAssetSummaryRequest`
2268
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeContainerAssetSummaryResponse`
2269
+ def DescribeContainerAssetSummary(request)
2270
+ body = send_request('DescribeContainerAssetSummary', request.serialize)
2271
+ response = JSON.parse(body)
2272
+ if response['Response'].key?('Error') == false
2273
+ model = DescribeContainerAssetSummaryResponse.new
2274
+ model.deserialize(response['Response'])
2275
+ model
2276
+ else
2277
+ code = response['Response']['Error']['Code']
2278
+ message = response['Response']['Error']['Message']
2279
+ reqid = response['Response']['RequestId']
2280
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2281
+ end
2282
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2283
+ raise e
2284
+ rescue StandardError => e
2285
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2286
+ end
2287
+
2288
+ # 查询容器安全未处理事件信息
2289
+
2290
+ # @param request: Request instance for DescribeContainerSecEventSummary.
2291
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeContainerSecEventSummaryRequest`
2292
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeContainerSecEventSummaryResponse`
2293
+ def DescribeContainerSecEventSummary(request)
2294
+ body = send_request('DescribeContainerSecEventSummary', request.serialize)
2295
+ response = JSON.parse(body)
2296
+ if response['Response'].key?('Error') == false
2297
+ model = DescribeContainerSecEventSummaryResponse.new
2298
+ model.deserialize(response['Response'])
2299
+ model
2300
+ else
2301
+ code = response['Response']['Error']['Code']
2302
+ message = response['Response']['Error']['Message']
2303
+ reqid = response['Response']['RequestId']
2304
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2305
+ end
2306
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2307
+ raise e
2308
+ rescue StandardError => e
2309
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2310
+ end
2311
+
2312
+ # DescribeEscapeEventDetail 查询容器逃逸事件详情
2313
+
2314
+ # @param request: Request instance for DescribeEscapeEventDetail.
2315
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventDetailRequest`
2316
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventDetailResponse`
2317
+ def DescribeEscapeEventDetail(request)
2318
+ body = send_request('DescribeEscapeEventDetail', request.serialize)
2319
+ response = JSON.parse(body)
2320
+ if response['Response'].key?('Error') == false
2321
+ model = DescribeEscapeEventDetailResponse.new
2322
+ model.deserialize(response['Response'])
2323
+ model
2324
+ else
2325
+ code = response['Response']['Error']['Code']
2326
+ message = response['Response']['Error']['Message']
2327
+ reqid = response['Response']['RequestId']
2328
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2329
+ end
2330
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2331
+ raise e
2332
+ rescue StandardError => e
2333
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2334
+ end
2335
+
2336
+ # DescribeEscapeEventInfo 查询容器逃逸事件列表
2337
+
2338
+ # @param request: Request instance for DescribeEscapeEventInfo.
2339
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventInfoRequest`
2340
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventInfoResponse`
2341
+ def DescribeEscapeEventInfo(request)
2342
+ body = send_request('DescribeEscapeEventInfo', request.serialize)
2343
+ response = JSON.parse(body)
2344
+ if response['Response'].key?('Error') == false
2345
+ model = DescribeEscapeEventInfoResponse.new
2346
+ model.deserialize(response['Response'])
2347
+ model
2348
+ else
2349
+ code = response['Response']['Error']['Code']
2350
+ message = response['Response']['Error']['Message']
2351
+ reqid = response['Response']['RequestId']
2352
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2353
+ end
2354
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2355
+ raise e
2356
+ rescue StandardError => e
2357
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2358
+ end
2359
+
2360
+ # DescribeEscapeEventsExport 查询容器逃逸事件列表导出
2361
+
2362
+ # @param request: Request instance for DescribeEscapeEventsExport.
2363
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventsExportRequest`
2364
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeEventsExportResponse`
2365
+ def DescribeEscapeEventsExport(request)
2366
+ body = send_request('DescribeEscapeEventsExport', request.serialize)
2367
+ response = JSON.parse(body)
2368
+ if response['Response'].key?('Error') == false
2369
+ model = DescribeEscapeEventsExportResponse.new
2370
+ model.deserialize(response['Response'])
2371
+ model
2372
+ else
2373
+ code = response['Response']['Error']['Code']
2374
+ message = response['Response']['Error']['Message']
2375
+ reqid = response['Response']['RequestId']
2376
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2377
+ end
2378
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2379
+ raise e
2380
+ rescue StandardError => e
2381
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2382
+ end
2383
+
2384
+ # DescribeEscapeRuleInfo 查询容器逃逸扫描规则信息
2385
+
2386
+ # @param request: Request instance for DescribeEscapeRuleInfo.
2387
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeRuleInfoRequest`
2388
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeRuleInfoResponse`
2389
+ def DescribeEscapeRuleInfo(request)
2390
+ body = send_request('DescribeEscapeRuleInfo', request.serialize)
2391
+ response = JSON.parse(body)
2392
+ if response['Response'].key?('Error') == false
2393
+ model = DescribeEscapeRuleInfoResponse.new
2394
+ model.deserialize(response['Response'])
2395
+ model
2396
+ else
2397
+ code = response['Response']['Error']['Code']
2398
+ message = response['Response']['Error']['Message']
2399
+ reqid = response['Response']['RequestId']
2400
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2401
+ end
2402
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2403
+ raise e
2404
+ rescue StandardError => e
2405
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2406
+ end
2407
+
2408
+ # DescribeEscapeSafeState 查询容器逃逸安全状态
2409
+
2410
+ # @param request: Request instance for DescribeEscapeSafeState.
2411
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeSafeStateRequest`
2412
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeEscapeSafeStateResponse`
2413
+ def DescribeEscapeSafeState(request)
2414
+ body = send_request('DescribeEscapeSafeState', request.serialize)
2415
+ response = JSON.parse(body)
2416
+ if response['Response'].key?('Error') == false
2417
+ model = DescribeEscapeSafeStateResponse.new
2418
+ model.deserialize(response['Response'])
2419
+ model
2420
+ else
2421
+ code = response['Response']['Error']['Code']
2422
+ message = response['Response']['Error']['Message']
2423
+ reqid = response['Response']['RequestId']
2424
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2425
+ end
2426
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2427
+ raise e
2428
+ rescue StandardError => e
2429
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2430
+ end
2431
+
2432
+ # 查询导出任务的结果
2433
+
2434
+ # @param request: Request instance for DescribeExportJobResult.
2435
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeExportJobResultRequest`
2436
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeExportJobResultResponse`
2437
+ def DescribeExportJobResult(request)
2438
+ body = send_request('DescribeExportJobResult', request.serialize)
2439
+ response = JSON.parse(body)
2440
+ if response['Response'].key?('Error') == false
2441
+ model = DescribeExportJobResultResponse.new
2442
+ model.deserialize(response['Response'])
2443
+ model
2444
+ else
2445
+ code = response['Response']['Error']['Code']
2446
+ message = response['Response']['Error']['Message']
2447
+ reqid = response['Response']['RequestId']
2448
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2449
+ end
2450
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2451
+ raise e
2452
+ rescue StandardError => e
2453
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2454
+ end
2455
+
2456
+ # DescribeImageAuthorizedInfo 查询镜像授权信息
2457
+
2458
+ # @param request: Request instance for DescribeImageAuthorizedInfo.
2459
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageAuthorizedInfoRequest`
2460
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageAuthorizedInfoResponse`
2461
+ def DescribeImageAuthorizedInfo(request)
2462
+ body = send_request('DescribeImageAuthorizedInfo', request.serialize)
2463
+ response = JSON.parse(body)
2464
+ if response['Response'].key?('Error') == false
2465
+ model = DescribeImageAuthorizedInfoResponse.new
2466
+ model.deserialize(response['Response'])
2467
+ model
2468
+ else
2469
+ code = response['Response']['Error']['Code']
2470
+ message = response['Response']['Error']['Message']
2471
+ reqid = response['Response']['RequestId']
2472
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2473
+ end
2474
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2475
+ raise e
2476
+ rescue StandardError => e
2477
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2478
+ end
2479
+
2480
+ # 镜像仓库查看定时任务
2481
+
2482
+ # @param request: Request instance for DescribeImageRegistryTimingScanTask.
2483
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageRegistryTimingScanTaskRequest`
2484
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageRegistryTimingScanTaskResponse`
2485
+ def DescribeImageRegistryTimingScanTask(request)
2486
+ body = send_request('DescribeImageRegistryTimingScanTask', request.serialize)
2487
+ response = JSON.parse(body)
2488
+ if response['Response'].key?('Error') == false
2489
+ model = DescribeImageRegistryTimingScanTaskResponse.new
2490
+ model.deserialize(response['Response'])
2491
+ model
2492
+ else
2493
+ code = response['Response']['Error']['Code']
2494
+ message = response['Response']['Error']['Message']
2495
+ reqid = response['Response']['RequestId']
2496
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2497
+ end
2498
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2499
+ raise e
2500
+ rescue StandardError => e
2501
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2502
+ end
2503
+
2504
+ # 查询本地镜像风险概览
2505
+
2506
+ # @param request: Request instance for DescribeImageRiskSummary.
2507
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageRiskSummaryRequest`
2508
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageRiskSummaryResponse`
2509
+ def DescribeImageRiskSummary(request)
2510
+ body = send_request('DescribeImageRiskSummary', request.serialize)
2511
+ response = JSON.parse(body)
2512
+ if response['Response'].key?('Error') == false
2513
+ model = DescribeImageRiskSummaryResponse.new
2514
+ model.deserialize(response['Response'])
2515
+ model
2516
+ else
2517
+ code = response['Response']['Error']['Code']
2518
+ message = response['Response']['Error']['Message']
2519
+ reqid = response['Response']['RequestId']
2520
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2521
+ end
2522
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2523
+ raise e
2524
+ rescue StandardError => e
2525
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
+ end
2527
+
2528
+ # 查询容器安全本地镜像风险趋势
2529
+
2530
+ # @param request: Request instance for DescribeImageRiskTendency.
2531
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageRiskTendencyRequest`
2532
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageRiskTendencyResponse`
2533
+ def DescribeImageRiskTendency(request)
2534
+ body = send_request('DescribeImageRiskTendency', request.serialize)
2535
+ response = JSON.parse(body)
2536
+ if response['Response'].key?('Error') == false
2537
+ model = DescribeImageRiskTendencyResponse.new
2538
+ model.deserialize(response['Response'])
2539
+ model
2540
+ else
2541
+ code = response['Response']['Error']['Code']
2542
+ message = response['Response']['Error']['Message']
2543
+ reqid = response['Response']['RequestId']
2544
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2545
+ end
2546
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2547
+ raise e
2548
+ rescue StandardError => e
2549
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2550
+ end
2551
+
2552
+ # DescribeImageSimpleList 查询全部镜像列表
2553
+
2554
+ # @param request: Request instance for DescribeImageSimpleList.
2555
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeImageSimpleListRequest`
2556
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeImageSimpleListResponse`
2557
+ def DescribeImageSimpleList(request)
2558
+ body = send_request('DescribeImageSimpleList', request.serialize)
2559
+ response = JSON.parse(body)
2560
+ if response['Response'].key?('Error') == false
2561
+ model = DescribeImageSimpleListResponse.new
2562
+ model.deserialize(response['Response'])
2563
+ model
2564
+ else
2565
+ code = response['Response']['Error']['Code']
2566
+ message = response['Response']['Error']['Message']
2567
+ reqid = response['Response']['RequestId']
2568
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2569
+ end
2570
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2571
+ raise e
2572
+ rescue StandardError => e
2573
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2574
+ end
2575
+
2576
+ # DescribePostPayDetail 查询后付费详情
2577
+
2578
+ # @param request: Request instance for DescribePostPayDetail.
2579
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribePostPayDetailRequest`
2580
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribePostPayDetailResponse`
2581
+ def DescribePostPayDetail(request)
2582
+ body = send_request('DescribePostPayDetail', request.serialize)
2583
+ response = JSON.parse(body)
2584
+ if response['Response'].key?('Error') == false
2585
+ model = DescribePostPayDetailResponse.new
2586
+ model.deserialize(response['Response'])
2587
+ model
2588
+ else
2589
+ code = response['Response']['Error']['Code']
2590
+ message = response['Response']['Error']['Message']
2591
+ reqid = response['Response']['RequestId']
2592
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2593
+ end
2594
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2595
+ raise e
2596
+ rescue StandardError => e
2597
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2598
+ end
2599
+
2600
+ # DescribeProVersionInfo 查询专业版需购买信息
2601
+
2602
+ # @param request: Request instance for DescribeProVersionInfo.
2603
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeProVersionInfoRequest`
2604
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeProVersionInfoResponse`
2605
+ def DescribeProVersionInfo(request)
2606
+ body = send_request('DescribeProVersionInfo', request.serialize)
2607
+ response = JSON.parse(body)
2608
+ if response['Response'].key?('Error') == false
2609
+ model = DescribeProVersionInfoResponse.new
2610
+ model.deserialize(response['Response'])
2611
+ model
2612
+ else
2613
+ code = response['Response']['Error']['Code']
2614
+ message = response['Response']['Error']['Message']
2615
+ reqid = response['Response']['RequestId']
2616
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2617
+ end
2618
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2619
+ raise e
2620
+ rescue StandardError => e
2621
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2622
+ end
2623
+
2624
+ # DescribePurchaseStateInfo 查询容器安全服务已购买信息
2625
+
2626
+ # @param request: Request instance for DescribePurchaseStateInfo.
2627
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribePurchaseStateInfoRequest`
2628
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribePurchaseStateInfoResponse`
2629
+ def DescribePurchaseStateInfo(request)
2630
+ body = send_request('DescribePurchaseStateInfo', request.serialize)
2631
+ response = JSON.parse(body)
2632
+ if response['Response'].key?('Error') == false
2633
+ model = DescribePurchaseStateInfoResponse.new
2634
+ model.deserialize(response['Response'])
2635
+ model
2636
+ else
2637
+ code = response['Response']['Error']['Code']
2638
+ message = response['Response']['Error']['Message']
2639
+ reqid = response['Response']['RequestId']
2640
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2641
+ end
2642
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2643
+ raise e
2644
+ rescue StandardError => e
2645
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2646
+ end
2647
+
2648
+ # 查询刷新任务
2649
+
2650
+ # @param request: Request instance for DescribeRefreshTask.
2651
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRefreshTaskRequest`
2652
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRefreshTaskResponse`
2653
+ def DescribeRefreshTask(request)
2654
+ body = send_request('DescribeRefreshTask', request.serialize)
2655
+ response = JSON.parse(body)
2656
+ if response['Response'].key?('Error') == false
2657
+ model = DescribeRefreshTaskResponse.new
2658
+ model.deserialize(response['Response'])
2659
+ model
2660
+ else
2661
+ code = response['Response']['Error']['Code']
2662
+ message = response['Response']['Error']['Message']
2663
+ reqid = response['Response']['RequestId']
2664
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2665
+ end
2666
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2667
+ raise e
2668
+ rescue StandardError => e
2669
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2670
+ end
2671
+
2672
+ # 查询运行时反弹shell事件详细信息
2673
+
2674
+ # @param request: Request instance for DescribeReverseShellDetail.
2675
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellDetailRequest`
2676
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellDetailResponse`
2677
+ def DescribeReverseShellDetail(request)
2678
+ body = send_request('DescribeReverseShellDetail', request.serialize)
2679
+ response = JSON.parse(body)
2680
+ if response['Response'].key?('Error') == false
2681
+ model = DescribeReverseShellDetailResponse.new
2682
+ model.deserialize(response['Response'])
2683
+ model
2684
+ else
2685
+ code = response['Response']['Error']['Code']
2686
+ message = response['Response']['Error']['Message']
2687
+ reqid = response['Response']['RequestId']
2688
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2689
+ end
2690
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2691
+ raise e
2692
+ rescue StandardError => e
2693
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2694
+ end
2695
+
2696
+ # 查询运行时反弹shell事件列表信息
2697
+
2698
+ # @param request: Request instance for DescribeReverseShellEvents.
2699
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellEventsRequest`
2700
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellEventsResponse`
2701
+ def DescribeReverseShellEvents(request)
2702
+ body = send_request('DescribeReverseShellEvents', request.serialize)
2703
+ response = JSON.parse(body)
2704
+ if response['Response'].key?('Error') == false
2705
+ model = DescribeReverseShellEventsResponse.new
2706
+ model.deserialize(response['Response'])
2707
+ model
2708
+ else
2709
+ code = response['Response']['Error']['Code']
2710
+ message = response['Response']['Error']['Message']
2711
+ reqid = response['Response']['RequestId']
2712
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2713
+ end
2714
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2715
+ raise e
2716
+ rescue StandardError => e
2717
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2718
+ end
2719
+
2720
+ # 查询运行时反弹shell事件列表信息导出
2721
+
2722
+ # @param request: Request instance for DescribeReverseShellEventsExport.
2723
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellEventsExportRequest`
2724
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellEventsExportResponse`
2725
+ def DescribeReverseShellEventsExport(request)
2726
+ body = send_request('DescribeReverseShellEventsExport', request.serialize)
2727
+ response = JSON.parse(body)
2728
+ if response['Response'].key?('Error') == false
2729
+ model = DescribeReverseShellEventsExportResponse.new
2730
+ model.deserialize(response['Response'])
2731
+ model
2732
+ else
2733
+ code = response['Response']['Error']['Code']
2734
+ message = response['Response']['Error']['Message']
2735
+ reqid = response['Response']['RequestId']
2736
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2737
+ end
2738
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2739
+ raise e
2740
+ rescue StandardError => e
2741
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2742
+ end
2743
+
2744
+ # 查询运行时反弹shell白名单详细信息
2745
+
2746
+ # @param request: Request instance for DescribeReverseShellWhiteListDetail.
2747
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellWhiteListDetailRequest`
2748
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellWhiteListDetailResponse`
2749
+ def DescribeReverseShellWhiteListDetail(request)
2750
+ body = send_request('DescribeReverseShellWhiteListDetail', request.serialize)
2751
+ response = JSON.parse(body)
2752
+ if response['Response'].key?('Error') == false
2753
+ model = DescribeReverseShellWhiteListDetailResponse.new
2754
+ model.deserialize(response['Response'])
2755
+ model
2756
+ else
2757
+ code = response['Response']['Error']['Code']
2758
+ message = response['Response']['Error']['Message']
2759
+ reqid = response['Response']['RequestId']
2760
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2761
+ end
2762
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2763
+ raise e
2764
+ rescue StandardError => e
2765
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2766
+ end
2767
+
2768
+ # 查询运行时运行时反弹shell白名单列表信息
2769
+
2770
+ # @param request: Request instance for DescribeReverseShellWhiteLists.
2771
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellWhiteListsRequest`
2772
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeReverseShellWhiteListsResponse`
2773
+ def DescribeReverseShellWhiteLists(request)
2774
+ body = send_request('DescribeReverseShellWhiteLists', request.serialize)
2775
+ response = JSON.parse(body)
2776
+ if response['Response'].key?('Error') == false
2777
+ model = DescribeReverseShellWhiteListsResponse.new
2778
+ model.deserialize(response['Response'])
2779
+ model
2780
+ else
2781
+ code = response['Response']['Error']['Code']
2782
+ message = response['Response']['Error']['Message']
2783
+ reqid = response['Response']['RequestId']
2784
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2785
+ end
2786
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2787
+ raise e
2788
+ rescue StandardError => e
2789
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2790
+ end
2791
+
2792
+ # 查询最近一次任务发现的风险项的信息列表,支持根据特殊字段进行过滤
2793
+
2794
+ # @param request: Request instance for DescribeRiskList.
2795
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskListRequest`
2796
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskListResponse`
2797
+ def DescribeRiskList(request)
2798
+ body = send_request('DescribeRiskList', request.serialize)
2799
+ response = JSON.parse(body)
2800
+ if response['Response'].key?('Error') == false
2801
+ model = DescribeRiskListResponse.new
2802
+ model.deserialize(response['Response'])
2803
+ model
2804
+ else
2805
+ code = response['Response']['Error']['Code']
2806
+ message = response['Response']['Error']['Message']
2807
+ reqid = response['Response']['RequestId']
2808
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2809
+ end
2810
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2811
+ raise e
2812
+ rescue StandardError => e
2813
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2814
+ end
2815
+
2816
+ # 查询高危系统调用事件详细信息
2817
+
2818
+ # @param request: Request instance for DescribeRiskSyscallDetail.
2819
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallDetailRequest`
2820
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallDetailResponse`
2821
+ def DescribeRiskSyscallDetail(request)
2822
+ body = send_request('DescribeRiskSyscallDetail', request.serialize)
2823
+ response = JSON.parse(body)
2824
+ if response['Response'].key?('Error') == false
2825
+ model = DescribeRiskSyscallDetailResponse.new
2826
+ model.deserialize(response['Response'])
2827
+ model
2828
+ else
2829
+ code = response['Response']['Error']['Code']
2830
+ message = response['Response']['Error']['Message']
2831
+ reqid = response['Response']['RequestId']
2832
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2833
+ end
2834
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2835
+ raise e
2836
+ rescue StandardError => e
2837
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2838
+ end
2839
+
2840
+ # 查询运行时运行时高危系统调用列表信息
2841
+
2842
+ # @param request: Request instance for DescribeRiskSyscallEvents.
2843
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallEventsRequest`
2844
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallEventsResponse`
2845
+ def DescribeRiskSyscallEvents(request)
2846
+ body = send_request('DescribeRiskSyscallEvents', request.serialize)
2847
+ response = JSON.parse(body)
2848
+ if response['Response'].key?('Error') == false
2849
+ model = DescribeRiskSyscallEventsResponse.new
2850
+ model.deserialize(response['Response'])
2851
+ model
2852
+ else
2853
+ code = response['Response']['Error']['Code']
2854
+ message = response['Response']['Error']['Message']
2855
+ reqid = response['Response']['RequestId']
2856
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2857
+ end
2858
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2859
+ raise e
2860
+ rescue StandardError => e
2861
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2862
+ end
2863
+
2864
+ # 运行时高危系统调用列表导出
2865
+
2866
+ # @param request: Request instance for DescribeRiskSyscallEventsExport.
2867
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallEventsExportRequest`
2868
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallEventsExportResponse`
2869
+ def DescribeRiskSyscallEventsExport(request)
2870
+ body = send_request('DescribeRiskSyscallEventsExport', request.serialize)
2871
+ response = JSON.parse(body)
2872
+ if response['Response'].key?('Error') == false
2873
+ model = DescribeRiskSyscallEventsExportResponse.new
2874
+ model.deserialize(response['Response'])
2875
+ model
2876
+ else
2877
+ code = response['Response']['Error']['Code']
2878
+ message = response['Response']['Error']['Message']
2879
+ reqid = response['Response']['RequestId']
2880
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2881
+ end
2882
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2883
+ raise e
2884
+ rescue StandardError => e
2885
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2886
+ end
2887
+
2888
+ # 查询运行时高危系统调用系统名称列表
2889
+
2890
+ # @param request: Request instance for DescribeRiskSyscallNames.
2891
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallNamesRequest`
2892
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallNamesResponse`
2893
+ def DescribeRiskSyscallNames(request)
2894
+ body = send_request('DescribeRiskSyscallNames', request.serialize)
2895
+ response = JSON.parse(body)
2896
+ if response['Response'].key?('Error') == false
2897
+ model = DescribeRiskSyscallNamesResponse.new
2898
+ model.deserialize(response['Response'])
2899
+ model
2900
+ else
2901
+ code = response['Response']['Error']['Code']
2902
+ message = response['Response']['Error']['Message']
2903
+ reqid = response['Response']['RequestId']
2904
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2905
+ end
2906
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2907
+ raise e
2908
+ rescue StandardError => e
2909
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2910
+ end
2911
+
2912
+ # 查询运行时高危系统调用白名单详细信息
2913
+
2914
+ # @param request: Request instance for DescribeRiskSyscallWhiteListDetail.
2915
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallWhiteListDetailRequest`
2916
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallWhiteListDetailResponse`
2917
+ def DescribeRiskSyscallWhiteListDetail(request)
2918
+ body = send_request('DescribeRiskSyscallWhiteListDetail', request.serialize)
2919
+ response = JSON.parse(body)
2920
+ if response['Response'].key?('Error') == false
2921
+ model = DescribeRiskSyscallWhiteListDetailResponse.new
2922
+ model.deserialize(response['Response'])
2923
+ model
2924
+ else
2925
+ code = response['Response']['Error']['Code']
2926
+ message = response['Response']['Error']['Message']
2927
+ reqid = response['Response']['RequestId']
2928
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2929
+ end
2930
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2931
+ raise e
2932
+ rescue StandardError => e
2933
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2934
+ end
2935
+
2936
+ # 查询运行时高危系统调用白名单列表信息
2937
+
2938
+ # @param request: Request instance for DescribeRiskSyscallWhiteLists.
2939
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallWhiteListsRequest`
2940
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeRiskSyscallWhiteListsResponse`
2941
+ def DescribeRiskSyscallWhiteLists(request)
2942
+ body = send_request('DescribeRiskSyscallWhiteLists', request.serialize)
2943
+ response = JSON.parse(body)
2944
+ if response['Response'].key?('Error') == false
2945
+ model = DescribeRiskSyscallWhiteListsResponse.new
2946
+ model.deserialize(response['Response'])
2947
+ model
2948
+ else
2949
+ code = response['Response']['Error']['Code']
2950
+ message = response['Response']['Error']['Message']
2951
+ reqid = response['Response']['RequestId']
2952
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2953
+ end
2954
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2955
+ raise e
2956
+ rescue StandardError => e
2957
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2958
+ end
2959
+
2960
+ # 查询容器运行时安全事件趋势
2961
+
2962
+ # @param request: Request instance for DescribeSecEventsTendency.
2963
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeSecEventsTendencyRequest`
2964
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeSecEventsTendencyResponse`
2965
+ def DescribeSecEventsTendency(request)
2966
+ body = send_request('DescribeSecEventsTendency', request.serialize)
2967
+ response = JSON.parse(body)
2968
+ if response['Response'].key?('Error') == false
2969
+ model = DescribeSecEventsTendencyResponse.new
2970
+ model.deserialize(response['Response'])
2971
+ model
2972
+ else
2973
+ code = response['Response']['Error']['Code']
2974
+ message = response['Response']['Error']['Message']
2975
+ reqid = response['Response']['RequestId']
2976
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2977
+ end
2978
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2979
+ raise e
2980
+ rescue StandardError => e
2981
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2982
+ end
2983
+
2984
+ # 查询检查结果总览,返回受影响的节点数量,返回7天的数据,总共7个
2985
+
2986
+ # @param request: Request instance for DescribeTaskResultSummary.
2987
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeTaskResultSummaryRequest`
2988
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeTaskResultSummaryResponse`
2989
+ def DescribeTaskResultSummary(request)
2990
+ body = send_request('DescribeTaskResultSummary', request.serialize)
2991
+ response = JSON.parse(body)
2992
+ if response['Response'].key?('Error') == false
2993
+ model = DescribeTaskResultSummaryResponse.new
2994
+ model.deserialize(response['Response'])
2995
+ model
2996
+ else
2997
+ code = response['Response']['Error']['Code']
2998
+ message = response['Response']['Error']['Message']
2999
+ reqid = response['Response']['RequestId']
3000
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3001
+ end
3002
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3003
+ raise e
3004
+ rescue StandardError => e
3005
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3006
+ end
3007
+
3008
+ # 查询未完成的刷新资产任务信息
3009
+
3010
+ # @param request: Request instance for DescribeUnfinishRefreshTask.
3011
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeUnfinishRefreshTaskRequest`
3012
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeUnfinishRefreshTaskResponse`
3013
+ def DescribeUnfinishRefreshTask(request)
3014
+ body = send_request('DescribeUnfinishRefreshTask', request.serialize)
3015
+ response = JSON.parse(body)
3016
+ if response['Response'].key?('Error') == false
3017
+ model = DescribeUnfinishRefreshTaskResponse.new
3018
+ model.deserialize(response['Response'])
3019
+ model
3020
+ else
3021
+ code = response['Response']['Error']['Code']
3022
+ message = response['Response']['Error']['Message']
3023
+ reqid = response['Response']['RequestId']
3024
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3025
+ end
3026
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3027
+ raise e
3028
+ rescue StandardError => e
3029
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3030
+ end
3031
+
3032
+ # 安全概览和集群安全页进入调用该接口,查询用户集群相关信息。
3033
+
3034
+ # @param request: Request instance for DescribeUserCluster.
3035
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeUserClusterRequest`
3036
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeUserClusterResponse`
3037
+ def DescribeUserCluster(request)
3038
+ body = send_request('DescribeUserCluster', request.serialize)
3039
+ response = JSON.parse(body)
3040
+ if response['Response'].key?('Error') == false
3041
+ model = DescribeUserClusterResponse.new
3042
+ model.deserialize(response['Response'])
3043
+ model
3044
+ else
3045
+ code = response['Response']['Error']['Code']
3046
+ message = response['Response']['Error']['Message']
3047
+ reqid = response['Response']['RequestId']
3048
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3049
+ end
3050
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3051
+ raise e
3052
+ rescue StandardError => e
3053
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3054
+ end
3055
+
3056
+ # DescribeValueAddedSrvInfo查询增值服务需购买信息
3057
+
3058
+ # @param request: Request instance for DescribeValueAddedSrvInfo.
3059
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeValueAddedSrvInfoRequest`
3060
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeValueAddedSrvInfoResponse`
3061
+ def DescribeValueAddedSrvInfo(request)
3062
+ body = send_request('DescribeValueAddedSrvInfo', request.serialize)
3063
+ response = JSON.parse(body)
3064
+ if response['Response'].key?('Error') == false
3065
+ model = DescribeValueAddedSrvInfoResponse.new
3066
+ model.deserialize(response['Response'])
3067
+ model
3068
+ else
3069
+ code = response['Response']['Error']['Code']
3070
+ message = response['Response']['Error']['Message']
3071
+ reqid = response['Response']['RequestId']
3072
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3073
+ end
3074
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3075
+ raise e
3076
+ rescue StandardError => e
3077
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3078
+ end
3079
+
3080
+ # 运行时查询木马文件信息
3081
+
3082
+ # @param request: Request instance for DescribeVirusDetail.
3083
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusDetailRequest`
3084
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusDetailResponse`
3085
+ def DescribeVirusDetail(request)
3086
+ body = send_request('DescribeVirusDetail', request.serialize)
3087
+ response = JSON.parse(body)
3088
+ if response['Response'].key?('Error') == false
3089
+ model = DescribeVirusDetailResponse.new
3090
+ model.deserialize(response['Response'])
3091
+ model
3092
+ else
3093
+ code = response['Response']['Error']['Code']
3094
+ message = response['Response']['Error']['Message']
3095
+ reqid = response['Response']['RequestId']
3096
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3097
+ end
3098
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3099
+ raise e
3100
+ rescue StandardError => e
3101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3102
+ end
3103
+
3104
+ # 运行时文件查杀事件列表
3105
+
3106
+ # @param request: Request instance for DescribeVirusList.
3107
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusListRequest`
3108
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusListResponse`
3109
+ def DescribeVirusList(request)
3110
+ body = send_request('DescribeVirusList', request.serialize)
3111
+ response = JSON.parse(body)
3112
+ if response['Response'].key?('Error') == false
3113
+ model = DescribeVirusListResponse.new
3114
+ model.deserialize(response['Response'])
3115
+ model
3116
+ else
3117
+ code = response['Response']['Error']['Code']
3118
+ message = response['Response']['Error']['Message']
3119
+ reqid = response['Response']['RequestId']
3120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3121
+ end
3122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3123
+ raise e
3124
+ rescue StandardError => e
3125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3126
+ end
3127
+
3128
+ # 运行时查询文件查杀实时监控设置
3129
+
3130
+ # @param request: Request instance for DescribeVirusMonitorSetting.
3131
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusMonitorSettingRequest`
3132
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusMonitorSettingResponse`
3133
+ def DescribeVirusMonitorSetting(request)
3134
+ body = send_request('DescribeVirusMonitorSetting', request.serialize)
3135
+ response = JSON.parse(body)
3136
+ if response['Response'].key?('Error') == false
3137
+ model = DescribeVirusMonitorSettingResponse.new
3138
+ model.deserialize(response['Response'])
3139
+ model
3140
+ else
3141
+ code = response['Response']['Error']['Code']
3142
+ message = response['Response']['Error']['Message']
3143
+ reqid = response['Response']['RequestId']
3144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3145
+ end
3146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3147
+ raise e
3148
+ rescue StandardError => e
3149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3150
+ end
3151
+
3152
+ # 运行时查询文件查杀设置
3153
+
3154
+ # @param request: Request instance for DescribeVirusScanSetting.
3155
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanSettingRequest`
3156
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanSettingResponse`
3157
+ def DescribeVirusScanSetting(request)
3158
+ body = send_request('DescribeVirusScanSetting', request.serialize)
3159
+ response = JSON.parse(body)
3160
+ if response['Response'].key?('Error') == false
3161
+ model = DescribeVirusScanSettingResponse.new
3162
+ model.deserialize(response['Response'])
3163
+ model
3164
+ else
3165
+ code = response['Response']['Error']['Code']
3166
+ message = response['Response']['Error']['Message']
3167
+ reqid = response['Response']['RequestId']
3168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3169
+ end
3170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3171
+ raise e
3172
+ rescue StandardError => e
3173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3174
+ end
3175
+
3176
+ # 运行时查询文件查杀任务状态
3177
+
3178
+ # @param request: Request instance for DescribeVirusScanTaskStatus.
3179
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanTaskStatusRequest`
3180
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanTaskStatusResponse`
3181
+ def DescribeVirusScanTaskStatus(request)
3182
+ body = send_request('DescribeVirusScanTaskStatus', request.serialize)
3183
+ response = JSON.parse(body)
3184
+ if response['Response'].key?('Error') == false
3185
+ model = DescribeVirusScanTaskStatusResponse.new
3186
+ model.deserialize(response['Response'])
3187
+ model
3188
+ else
3189
+ code = response['Response']['Error']['Code']
3190
+ message = response['Response']['Error']['Message']
3191
+ reqid = response['Response']['RequestId']
3192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3193
+ end
3194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3195
+ raise e
3196
+ rescue StandardError => e
3197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3198
+ end
3199
+
3200
+ # 运行时文件扫描超时设置查询
3201
+
3202
+ # @param request: Request instance for DescribeVirusScanTimeoutSetting.
3203
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanTimeoutSettingRequest`
3204
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusScanTimeoutSettingResponse`
3205
+ def DescribeVirusScanTimeoutSetting(request)
3206
+ body = send_request('DescribeVirusScanTimeoutSetting', request.serialize)
3207
+ response = JSON.parse(body)
3208
+ if response['Response'].key?('Error') == false
3209
+ model = DescribeVirusScanTimeoutSettingResponse.new
3210
+ model.deserialize(response['Response'])
3211
+ model
3212
+ else
3213
+ code = response['Response']['Error']['Code']
3214
+ message = response['Response']['Error']['Message']
3215
+ reqid = response['Response']['RequestId']
3216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3217
+ end
3218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3219
+ raise e
3220
+ rescue StandardError => e
3221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3222
+ end
3223
+
3224
+ # 运行时查询木马概览信息
3225
+
3226
+ # @param request: Request instance for DescribeVirusSummary.
3227
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusSummaryRequest`
3228
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusSummaryResponse`
3229
+ def DescribeVirusSummary(request)
3230
+ body = send_request('DescribeVirusSummary', request.serialize)
3231
+ response = JSON.parse(body)
3232
+ if response['Response'].key?('Error') == false
3233
+ model = DescribeVirusSummaryResponse.new
3234
+ model.deserialize(response['Response'])
3235
+ model
3236
+ else
3237
+ code = response['Response']['Error']['Code']
3238
+ message = response['Response']['Error']['Message']
3239
+ reqid = response['Response']['RequestId']
3240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3241
+ end
3242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3243
+ raise e
3244
+ rescue StandardError => e
3245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3246
+ end
3247
+
3248
+ # 运行时查询文件查杀任务列表
3249
+
3250
+ # @param request: Request instance for DescribeVirusTaskList.
3251
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeVirusTaskListRequest`
3252
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeVirusTaskListResponse`
3253
+ def DescribeVirusTaskList(request)
3254
+ body = send_request('DescribeVirusTaskList', request.serialize)
3255
+ response = JSON.parse(body)
3256
+ if response['Response'].key?('Error') == false
3257
+ model = DescribeVirusTaskListResponse.new
3258
+ model.deserialize(response['Response'])
3259
+ model
3260
+ else
3261
+ code = response['Response']['Error']['Code']
3262
+ message = response['Response']['Error']['Message']
3263
+ reqid = response['Response']['RequestId']
3264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3265
+ end
3266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3267
+ raise e
3268
+ rescue StandardError => e
3269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3270
+ end
3271
+
3272
+ # 获取告警策略列表
3273
+
3274
+ # @param request: Request instance for DescribeWarningRules.
3275
+ # @type request: :class:`Tencentcloud::tcss::V20201101::DescribeWarningRulesRequest`
3276
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::DescribeWarningRulesResponse`
3277
+ def DescribeWarningRules(request)
3278
+ body = send_request('DescribeWarningRules', request.serialize)
3279
+ response = JSON.parse(body)
3280
+ if response['Response'].key?('Error') == false
3281
+ model = DescribeWarningRulesResponse.new
3282
+ model.deserialize(response['Response'])
3283
+ model
3284
+ else
3285
+ code = response['Response']['Error']['Code']
3286
+ message = response['Response']['Error']['Message']
3287
+ reqid = response['Response']['RequestId']
3288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3289
+ end
3290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3291
+ raise e
3292
+ rescue StandardError => e
3293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3294
+ end
3295
+
3296
+ # 运行时文件查杀事件列表导出
3297
+
3298
+ # @param request: Request instance for ExportVirusList.
3299
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ExportVirusListRequest`
3300
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ExportVirusListResponse`
3301
+ def ExportVirusList(request)
3302
+ body = send_request('ExportVirusList', request.serialize)
3303
+ response = JSON.parse(body)
3304
+ if response['Response'].key?('Error') == false
3305
+ model = ExportVirusListResponse.new
3306
+ model.deserialize(response['Response'])
3307
+ model
3308
+ else
3309
+ code = response['Response']['Error']['Code']
3310
+ message = response['Response']['Error']['Message']
3311
+ reqid = response['Response']['RequestId']
3312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3313
+ end
3314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3315
+ raise e
3316
+ rescue StandardError => e
3317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3318
+ end
3319
+
3320
+ # 为客户初始化合规基线的使用环境,创建必要的数据和选项。
3321
+
3322
+ # @param request: Request instance for InitializeUserComplianceEnvironment.
3323
+ # @type request: :class:`Tencentcloud::tcss::V20201101::InitializeUserComplianceEnvironmentRequest`
3324
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::InitializeUserComplianceEnvironmentResponse`
3325
+ def InitializeUserComplianceEnvironment(request)
3326
+ body = send_request('InitializeUserComplianceEnvironment', request.serialize)
3327
+ response = JSON.parse(body)
3328
+ if response['Response'].key?('Error') == false
3329
+ model = InitializeUserComplianceEnvironmentResponse.new
3330
+ model.deserialize(response['Response'])
3331
+ model
3332
+ else
3333
+ code = response['Response']['Error']['Code']
3334
+ message = response['Response']['Error']['Message']
3335
+ reqid = response['Response']['RequestId']
3336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3337
+ end
3338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3339
+ raise e
3340
+ rescue StandardError => e
3341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3342
+ end
3343
+
3344
+ # 修改运行时异常进程策略的开启关闭状态
3345
+
3346
+ # @param request: Request instance for ModifyAbnormalProcessRuleStatus.
3347
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAbnormalProcessRuleStatusRequest`
3348
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAbnormalProcessRuleStatusResponse`
3349
+ def ModifyAbnormalProcessRuleStatus(request)
3350
+ body = send_request('ModifyAbnormalProcessRuleStatus', request.serialize)
3351
+ response = JSON.parse(body)
3352
+ if response['Response'].key?('Error') == false
3353
+ model = ModifyAbnormalProcessRuleStatusResponse.new
3354
+ model.deserialize(response['Response'])
3355
+ model
3356
+ else
3357
+ code = response['Response']['Error']['Code']
3358
+ message = response['Response']['Error']['Message']
3359
+ reqid = response['Response']['RequestId']
3360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3361
+ end
3362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3363
+ raise e
3364
+ rescue StandardError => e
3365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3366
+ end
3367
+
3368
+ # 修改异常进程事件的状态信息
3369
+
3370
+ # @param request: Request instance for ModifyAbnormalProcessStatus.
3371
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAbnormalProcessStatusRequest`
3372
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAbnormalProcessStatusResponse`
3373
+ def ModifyAbnormalProcessStatus(request)
3374
+ body = send_request('ModifyAbnormalProcessStatus', request.serialize)
3375
+ response = JSON.parse(body)
3376
+ if response['Response'].key?('Error') == false
3377
+ model = ModifyAbnormalProcessStatusResponse.new
3378
+ model.deserialize(response['Response'])
3379
+ model
3380
+ else
3381
+ code = response['Response']['Error']['Code']
3382
+ message = response['Response']['Error']['Message']
3383
+ reqid = response['Response']['RequestId']
3384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3385
+ end
3386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3387
+ raise e
3388
+ rescue StandardError => e
3389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3390
+ end
3391
+
3392
+ # 修改运行时访问控制策略的状态,启用或者禁用
3393
+
3394
+ # @param request: Request instance for ModifyAccessControlRuleStatus.
3395
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAccessControlRuleStatusRequest`
3396
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAccessControlRuleStatusResponse`
3397
+ def ModifyAccessControlRuleStatus(request)
3398
+ body = send_request('ModifyAccessControlRuleStatus', request.serialize)
3399
+ response = JSON.parse(body)
3400
+ if response['Response'].key?('Error') == false
3401
+ model = ModifyAccessControlRuleStatusResponse.new
3402
+ model.deserialize(response['Response'])
3403
+ model
3404
+ else
3405
+ code = response['Response']['Error']['Code']
3406
+ message = response['Response']['Error']['Message']
3407
+ reqid = response['Response']['RequestId']
3408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3409
+ end
3410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3411
+ raise e
3412
+ rescue StandardError => e
3413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3414
+ end
3415
+
3416
+ # 修改运行时访问控制事件状态信息
3417
+
3418
+ # @param request: Request instance for ModifyAccessControlStatus.
3419
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAccessControlStatusRequest`
3420
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAccessControlStatusResponse`
3421
+ def ModifyAccessControlStatus(request)
3422
+ body = send_request('ModifyAccessControlStatus', request.serialize)
3423
+ response = JSON.parse(body)
3424
+ if response['Response'].key?('Error') == false
3425
+ model = ModifyAccessControlStatusResponse.new
3426
+ model.deserialize(response['Response'])
3427
+ model
3428
+ else
3429
+ code = response['Response']['Error']['Code']
3430
+ message = response['Response']['Error']['Message']
3431
+ reqid = response['Response']['RequestId']
3432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3433
+ end
3434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3435
+ raise e
3436
+ rescue StandardError => e
3437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3438
+ end
3439
+
3440
+ # 容器安全主机资产刷新
3441
+
3442
+ # @param request: Request instance for ModifyAsset.
3443
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAssetRequest`
3444
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAssetResponse`
3445
+ def ModifyAsset(request)
3446
+ body = send_request('ModifyAsset', request.serialize)
3447
+ response = JSON.parse(body)
3448
+ if response['Response'].key?('Error') == false
3449
+ model = ModifyAssetResponse.new
3450
+ model.deserialize(response['Response'])
3451
+ model
3452
+ else
3453
+ code = response['Response']['Error']['Code']
3454
+ message = response['Response']['Error']['Message']
3455
+ reqid = response['Response']['RequestId']
3456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3457
+ end
3458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3459
+ raise e
3460
+ rescue StandardError => e
3461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3462
+ end
3463
+
3464
+ # 镜像仓库停止镜像扫描任务
3465
+
3466
+ # @param request: Request instance for ModifyAssetImageRegistryScanStop.
3467
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageRegistryScanStopRequest`
3468
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageRegistryScanStopResponse`
3469
+ def ModifyAssetImageRegistryScanStop(request)
3470
+ body = send_request('ModifyAssetImageRegistryScanStop', request.serialize)
3471
+ response = JSON.parse(body)
3472
+ if response['Response'].key?('Error') == false
3473
+ model = ModifyAssetImageRegistryScanStopResponse.new
3474
+ model.deserialize(response['Response'])
3475
+ model
3476
+ else
3477
+ code = response['Response']['Error']['Code']
3478
+ message = response['Response']['Error']['Message']
3479
+ reqid = response['Response']['RequestId']
3480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3481
+ end
3482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3483
+ raise e
3484
+ rescue StandardError => e
3485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3486
+ end
3487
+
3488
+ # 镜像仓库停止镜像一键扫描任务
3489
+
3490
+ # @param request: Request instance for ModifyAssetImageRegistryScanStopOneKey.
3491
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageRegistryScanStopOneKeyRequest`
3492
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageRegistryScanStopOneKeyResponse`
3493
+ def ModifyAssetImageRegistryScanStopOneKey(request)
3494
+ body = send_request('ModifyAssetImageRegistryScanStopOneKey', request.serialize)
3495
+ response = JSON.parse(body)
3496
+ if response['Response'].key?('Error') == false
3497
+ model = ModifyAssetImageRegistryScanStopOneKeyResponse.new
3498
+ model.deserialize(response['Response'])
3499
+ model
3500
+ else
3501
+ code = response['Response']['Error']['Code']
3502
+ message = response['Response']['Error']['Message']
3503
+ reqid = response['Response']['RequestId']
3504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3505
+ end
3506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3507
+ raise e
3508
+ rescue StandardError => e
3509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3510
+ end
3511
+
3512
+ # 容器安全停止镜像扫描
3513
+
3514
+ # @param request: Request instance for ModifyAssetImageScanStop.
3515
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageScanStopRequest`
3516
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyAssetImageScanStopResponse`
3517
+ def ModifyAssetImageScanStop(request)
3518
+ body = send_request('ModifyAssetImageScanStop', request.serialize)
3519
+ response = JSON.parse(body)
3520
+ if response['Response'].key?('Error') == false
3521
+ model = ModifyAssetImageScanStopResponse.new
3522
+ model.deserialize(response['Response'])
3523
+ model
3524
+ else
3525
+ code = response['Response']['Error']['Code']
3526
+ message = response['Response']['Error']['Message']
3527
+ reqid = response['Response']['RequestId']
3528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3529
+ end
3530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3531
+ raise e
3532
+ rescue StandardError => e
3533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3534
+ end
3535
+
3536
+ # 修改定时任务的设置,包括检测周期、开启/禁用合规基准。
3537
+
3538
+ # @param request: Request instance for ModifyCompliancePeriodTask.
3539
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyCompliancePeriodTaskRequest`
3540
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyCompliancePeriodTaskResponse`
3541
+ def ModifyCompliancePeriodTask(request)
3542
+ body = send_request('ModifyCompliancePeriodTask', request.serialize)
3543
+ response = JSON.parse(body)
3544
+ if response['Response'].key?('Error') == false
3545
+ model = ModifyCompliancePeriodTaskResponse.new
3546
+ model.deserialize(response['Response'])
3547
+ model
3548
+ else
3549
+ code = response['Response']['Error']['Code']
3550
+ message = response['Response']['Error']['Message']
3551
+ reqid = response['Response']['RequestId']
3552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3553
+ end
3554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3555
+ raise e
3556
+ rescue StandardError => e
3557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3558
+ end
3559
+
3560
+ # ModifyEscapeEventStatus 修改容器逃逸扫描事件状态
3561
+
3562
+ # @param request: Request instance for ModifyEscapeEventStatus.
3563
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyEscapeEventStatusRequest`
3564
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyEscapeEventStatusResponse`
3565
+ def ModifyEscapeEventStatus(request)
3566
+ body = send_request('ModifyEscapeEventStatus', request.serialize)
3567
+ response = JSON.parse(body)
3568
+ if response['Response'].key?('Error') == false
3569
+ model = ModifyEscapeEventStatusResponse.new
3570
+ model.deserialize(response['Response'])
3571
+ model
3572
+ else
3573
+ code = response['Response']['Error']['Code']
3574
+ message = response['Response']['Error']['Message']
3575
+ reqid = response['Response']['RequestId']
3576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3577
+ end
3578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3579
+ raise e
3580
+ rescue StandardError => e
3581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3582
+ end
3583
+
3584
+ # ModifyEscapeRule 修改容器逃逸扫描规则信息
3585
+
3586
+ # @param request: Request instance for ModifyEscapeRule.
3587
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyEscapeRuleRequest`
3588
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyEscapeRuleResponse`
3589
+ def ModifyEscapeRule(request)
3590
+ body = send_request('ModifyEscapeRule', request.serialize)
3591
+ response = JSON.parse(body)
3592
+ if response['Response'].key?('Error') == false
3593
+ model = ModifyEscapeRuleResponse.new
3594
+ model.deserialize(response['Response'])
3595
+ model
3596
+ else
3597
+ code = response['Response']['Error']['Code']
3598
+ message = response['Response']['Error']['Message']
3599
+ reqid = response['Response']['RequestId']
3600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3601
+ end
3602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3603
+ raise e
3604
+ rescue StandardError => e
3605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3606
+ end
3607
+
3608
+ # 修改反弹shell事件的状态信息
3609
+
3610
+ # @param request: Request instance for ModifyReverseShellStatus.
3611
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyReverseShellStatusRequest`
3612
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyReverseShellStatusResponse`
3613
+ def ModifyReverseShellStatus(request)
3614
+ body = send_request('ModifyReverseShellStatus', request.serialize)
3615
+ response = JSON.parse(body)
3616
+ if response['Response'].key?('Error') == false
3617
+ model = ModifyReverseShellStatusResponse.new
3618
+ model.deserialize(response['Response'])
3619
+ model
3620
+ else
3621
+ code = response['Response']['Error']['Code']
3622
+ message = response['Response']['Error']['Message']
3623
+ reqid = response['Response']['RequestId']
3624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3625
+ end
3626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3627
+ raise e
3628
+ rescue StandardError => e
3629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3630
+ end
3631
+
3632
+ # 修改高危系统调用事件的状态信息
3633
+
3634
+ # @param request: Request instance for ModifyRiskSyscallStatus.
3635
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyRiskSyscallStatusRequest`
3636
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyRiskSyscallStatusResponse`
3637
+ def ModifyRiskSyscallStatus(request)
3638
+ body = send_request('ModifyRiskSyscallStatus', request.serialize)
3639
+ response = JSON.parse(body)
3640
+ if response['Response'].key?('Error') == false
3641
+ model = ModifyRiskSyscallStatusResponse.new
3642
+ model.deserialize(response['Response'])
3643
+ model
3644
+ else
3645
+ code = response['Response']['Error']['Code']
3646
+ message = response['Response']['Error']['Message']
3647
+ reqid = response['Response']['RequestId']
3648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3649
+ end
3650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3651
+ raise e
3652
+ rescue StandardError => e
3653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3654
+ end
3655
+
3656
+ # 运行时更新木马文件事件状态
3657
+
3658
+ # @param request: Request instance for ModifyVirusFileStatus.
3659
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyVirusFileStatusRequest`
3660
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyVirusFileStatusResponse`
3661
+ def ModifyVirusFileStatus(request)
3662
+ body = send_request('ModifyVirusFileStatus', request.serialize)
3663
+ response = JSON.parse(body)
3664
+ if response['Response'].key?('Error') == false
3665
+ model = ModifyVirusFileStatusResponse.new
3666
+ model.deserialize(response['Response'])
3667
+ model
3668
+ else
3669
+ code = response['Response']['Error']['Code']
3670
+ message = response['Response']['Error']['Message']
3671
+ reqid = response['Response']['RequestId']
3672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3673
+ end
3674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3675
+ raise e
3676
+ rescue StandardError => e
3677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3678
+ end
3679
+
3680
+ # 运行时更新文件查杀实时监控设置
3681
+
3682
+ # @param request: Request instance for ModifyVirusMonitorSetting.
3683
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyVirusMonitorSettingRequest`
3684
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyVirusMonitorSettingResponse`
3685
+ def ModifyVirusMonitorSetting(request)
3686
+ body = send_request('ModifyVirusMonitorSetting', request.serialize)
3687
+ response = JSON.parse(body)
3688
+ if response['Response'].key?('Error') == false
3689
+ model = ModifyVirusMonitorSettingResponse.new
3690
+ model.deserialize(response['Response'])
3691
+ model
3692
+ else
3693
+ code = response['Response']['Error']['Code']
3694
+ message = response['Response']['Error']['Message']
3695
+ reqid = response['Response']['RequestId']
3696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3697
+ end
3698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3699
+ raise e
3700
+ rescue StandardError => e
3701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3702
+ end
3703
+
3704
+ # 运行时更新文件查杀设置
3705
+
3706
+ # @param request: Request instance for ModifyVirusScanSetting.
3707
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyVirusScanSettingRequest`
3708
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyVirusScanSettingResponse`
3709
+ def ModifyVirusScanSetting(request)
3710
+ body = send_request('ModifyVirusScanSetting', request.serialize)
3711
+ response = JSON.parse(body)
3712
+ if response['Response'].key?('Error') == false
3713
+ model = ModifyVirusScanSettingResponse.new
3714
+ model.deserialize(response['Response'])
3715
+ model
3716
+ else
3717
+ code = response['Response']['Error']['Code']
3718
+ message = response['Response']['Error']['Message']
3719
+ reqid = response['Response']['RequestId']
3720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3721
+ end
3722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3723
+ raise e
3724
+ rescue StandardError => e
3725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3726
+ end
3727
+
3728
+ # 运行时文件扫描超时设置
3729
+
3730
+ # @param request: Request instance for ModifyVirusScanTimeoutSetting.
3731
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ModifyVirusScanTimeoutSettingRequest`
3732
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ModifyVirusScanTimeoutSettingResponse`
3733
+ def ModifyVirusScanTimeoutSetting(request)
3734
+ body = send_request('ModifyVirusScanTimeoutSetting', request.serialize)
3735
+ response = JSON.parse(body)
3736
+ if response['Response'].key?('Error') == false
3737
+ model = ModifyVirusScanTimeoutSettingResponse.new
3738
+ model.deserialize(response['Response'])
3739
+ model
3740
+ else
3741
+ code = response['Response']['Error']['Code']
3742
+ message = response['Response']['Error']['Message']
3743
+ reqid = response['Response']['RequestId']
3744
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3745
+ end
3746
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3747
+ raise e
3748
+ rescue StandardError => e
3749
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3750
+ end
3751
+
3752
+ # 删除单个镜像仓库详细信息
3753
+
3754
+ # @param request: Request instance for RemoveAssetImageRegistryRegistryDetail.
3755
+ # @type request: :class:`Tencentcloud::tcss::V20201101::RemoveAssetImageRegistryRegistryDetailRequest`
3756
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::RemoveAssetImageRegistryRegistryDetailResponse`
3757
+ def RemoveAssetImageRegistryRegistryDetail(request)
3758
+ body = send_request('RemoveAssetImageRegistryRegistryDetail', request.serialize)
3759
+ response = JSON.parse(body)
3760
+ if response['Response'].key?('Error') == false
3761
+ model = RemoveAssetImageRegistryRegistryDetailResponse.new
3762
+ model.deserialize(response['Response'])
3763
+ model
3764
+ else
3765
+ code = response['Response']['Error']['Code']
3766
+ message = response['Response']['Error']['Message']
3767
+ reqid = response['Response']['RequestId']
3768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3769
+ end
3770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3771
+ raise e
3772
+ rescue StandardError => e
3773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3774
+ end
3775
+
3776
+ # RenewImageAuthorizeState 授权镜像扫描
3777
+
3778
+ # @param request: Request instance for RenewImageAuthorizeState.
3779
+ # @type request: :class:`Tencentcloud::tcss::V20201101::RenewImageAuthorizeStateRequest`
3780
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::RenewImageAuthorizeStateResponse`
3781
+ def RenewImageAuthorizeState(request)
3782
+ body = send_request('RenewImageAuthorizeState', request.serialize)
3783
+ response = JSON.parse(body)
3784
+ if response['Response'].key?('Error') == false
3785
+ model = RenewImageAuthorizeStateResponse.new
3786
+ model.deserialize(response['Response'])
3787
+ model
3788
+ else
3789
+ code = response['Response']['Error']['Code']
3790
+ message = response['Response']['Error']['Message']
3791
+ reqid = response['Response']['RequestId']
3792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3793
+ end
3794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3795
+ raise e
3796
+ rescue StandardError => e
3797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3798
+ end
3799
+
3800
+ # 重新检测选定的资产
3801
+
3802
+ # @param request: Request instance for ScanComplianceAssets.
3803
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ScanComplianceAssetsRequest`
3804
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ScanComplianceAssetsResponse`
3805
+ def ScanComplianceAssets(request)
3806
+ body = send_request('ScanComplianceAssets', request.serialize)
3807
+ response = JSON.parse(body)
3808
+ if response['Response'].key?('Error') == false
3809
+ model = ScanComplianceAssetsResponse.new
3810
+ model.deserialize(response['Response'])
3811
+ model
3812
+ else
3813
+ code = response['Response']['Error']['Code']
3814
+ message = response['Response']['Error']['Message']
3815
+ reqid = response['Response']['RequestId']
3816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3817
+ end
3818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3819
+ raise e
3820
+ rescue StandardError => e
3821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3822
+ end
3823
+
3824
+ # 用指定的检测项重新检测选定的资产,返回创建的合规检查任务的ID。
3825
+
3826
+ # @param request: Request instance for ScanComplianceAssetsByPolicyItem.
3827
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ScanComplianceAssetsByPolicyItemRequest`
3828
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ScanComplianceAssetsByPolicyItemResponse`
3829
+ def ScanComplianceAssetsByPolicyItem(request)
3830
+ body = send_request('ScanComplianceAssetsByPolicyItem', request.serialize)
3831
+ response = JSON.parse(body)
3832
+ if response['Response'].key?('Error') == false
3833
+ model = ScanComplianceAssetsByPolicyItemResponse.new
3834
+ model.deserialize(response['Response'])
3835
+ model
3836
+ else
3837
+ code = response['Response']['Error']['Code']
3838
+ message = response['Response']['Error']['Message']
3839
+ reqid = response['Response']['RequestId']
3840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3841
+ end
3842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3843
+ raise e
3844
+ rescue StandardError => e
3845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3846
+ end
3847
+
3848
+ # 重新检测选的检测项下的所有资产,返回创建的合规检查任务的ID。
3849
+
3850
+ # @param request: Request instance for ScanCompliancePolicyItems.
3851
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ScanCompliancePolicyItemsRequest`
3852
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ScanCompliancePolicyItemsResponse`
3853
+ def ScanCompliancePolicyItems(request)
3854
+ body = send_request('ScanCompliancePolicyItems', request.serialize)
3855
+ response = JSON.parse(body)
3856
+ if response['Response'].key?('Error') == false
3857
+ model = ScanCompliancePolicyItemsResponse.new
3858
+ model.deserialize(response['Response'])
3859
+ model
3860
+ else
3861
+ code = response['Response']['Error']['Code']
3862
+ message = response['Response']['Error']['Message']
3863
+ reqid = response['Response']['RequestId']
3864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3865
+ end
3866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3867
+ raise e
3868
+ rescue StandardError => e
3869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3870
+ end
3871
+
3872
+ # 重新检测选定的检测失败的资产下的所有失败的检测项,返回创建的合规检查任务的ID。
3873
+
3874
+ # @param request: Request instance for ScanComplianceScanFailedAssets.
3875
+ # @type request: :class:`Tencentcloud::tcss::V20201101::ScanComplianceScanFailedAssetsRequest`
3876
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::ScanComplianceScanFailedAssetsResponse`
3877
+ def ScanComplianceScanFailedAssets(request)
3878
+ body = send_request('ScanComplianceScanFailedAssets', request.serialize)
3879
+ response = JSON.parse(body)
3880
+ if response['Response'].key?('Error') == false
3881
+ model = ScanComplianceScanFailedAssetsResponse.new
3882
+ model.deserialize(response['Response'])
3883
+ model
3884
+ else
3885
+ code = response['Response']['Error']['Code']
3886
+ message = response['Response']['Error']['Message']
3887
+ reqid = response['Response']['RequestId']
3888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3889
+ end
3890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3891
+ raise e
3892
+ rescue StandardError => e
3893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3894
+ end
3895
+
3896
+ # 设置检测模式和自动检查
3897
+
3898
+ # @param request: Request instance for SetCheckMode.
3899
+ # @type request: :class:`Tencentcloud::tcss::V20201101::SetCheckModeRequest`
3900
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::SetCheckModeResponse`
3901
+ def SetCheckMode(request)
3902
+ body = send_request('SetCheckMode', request.serialize)
3903
+ response = JSON.parse(body)
3904
+ if response['Response'].key?('Error') == false
3905
+ model = SetCheckModeResponse.new
3906
+ model.deserialize(response['Response'])
3907
+ model
3908
+ else
3909
+ code = response['Response']['Error']['Code']
3910
+ message = response['Response']['Error']['Message']
3911
+ reqid = response['Response']['RequestId']
3912
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3913
+ end
3914
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3915
+ raise e
3916
+ rescue StandardError => e
3917
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3918
+ end
3919
+
3920
+ # 运行时停止木马查杀任务
3921
+
3922
+ # @param request: Request instance for StopVirusScanTask.
3923
+ # @type request: :class:`Tencentcloud::tcss::V20201101::StopVirusScanTaskRequest`
3924
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::StopVirusScanTaskResponse`
3925
+ def StopVirusScanTask(request)
3926
+ body = send_request('StopVirusScanTask', request.serialize)
3927
+ response = JSON.parse(body)
3928
+ if response['Response'].key?('Error') == false
3929
+ model = StopVirusScanTaskResponse.new
3930
+ model.deserialize(response['Response'])
3931
+ model
3932
+ else
3933
+ code = response['Response']['Error']['Code']
3934
+ message = response['Response']['Error']['Message']
3935
+ reqid = response['Response']['RequestId']
3936
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3937
+ end
3938
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3939
+ raise e
3940
+ rescue StandardError => e
3941
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3942
+ end
3943
+
3944
+ # 镜像仓库资产刷新
3945
+
3946
+ # @param request: Request instance for SyncAssetImageRegistryAsset.
3947
+ # @type request: :class:`Tencentcloud::tcss::V20201101::SyncAssetImageRegistryAssetRequest`
3948
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::SyncAssetImageRegistryAssetResponse`
3949
+ def SyncAssetImageRegistryAsset(request)
3950
+ body = send_request('SyncAssetImageRegistryAsset', request.serialize)
3951
+ response = JSON.parse(body)
3952
+ if response['Response'].key?('Error') == false
3953
+ model = SyncAssetImageRegistryAssetResponse.new
3954
+ model.deserialize(response['Response'])
3955
+ model
3956
+ else
3957
+ code = response['Response']['Error']['Code']
3958
+ message = response['Response']['Error']['Message']
3959
+ reqid = response['Response']['RequestId']
3960
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3961
+ end
3962
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3963
+ raise e
3964
+ rescue StandardError => e
3965
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3966
+ end
3967
+
3968
+ # 更新单个镜像仓库详细信息
3969
+
3970
+ # @param request: Request instance for UpdateAssetImageRegistryRegistryDetail.
3971
+ # @type request: :class:`Tencentcloud::tcss::V20201101::UpdateAssetImageRegistryRegistryDetailRequest`
3972
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::UpdateAssetImageRegistryRegistryDetailResponse`
3973
+ def UpdateAssetImageRegistryRegistryDetail(request)
3974
+ body = send_request('UpdateAssetImageRegistryRegistryDetail', request.serialize)
3975
+ response = JSON.parse(body)
3976
+ if response['Response'].key?('Error') == false
3977
+ model = UpdateAssetImageRegistryRegistryDetailResponse.new
3978
+ model.deserialize(response['Response'])
3979
+ model
3980
+ else
3981
+ code = response['Response']['Error']['Code']
3982
+ message = response['Response']['Error']['Message']
3983
+ reqid = response['Response']['RequestId']
3984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3985
+ end
3986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3987
+ raise e
3988
+ rescue StandardError => e
3989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3990
+ end
3991
+
3992
+ # 镜像仓库更新定时任务
3993
+
3994
+ # @param request: Request instance for UpdateImageRegistryTimingScanTask.
3995
+ # @type request: :class:`Tencentcloud::tcss::V20201101::UpdateImageRegistryTimingScanTaskRequest`
3996
+ # @rtype: :class:`Tencentcloud::tcss::V20201101::UpdateImageRegistryTimingScanTaskResponse`
3997
+ def UpdateImageRegistryTimingScanTask(request)
3998
+ body = send_request('UpdateImageRegistryTimingScanTask', request.serialize)
3999
+ response = JSON.parse(body)
4000
+ if response['Response'].key?('Error') == false
4001
+ model = UpdateImageRegistryTimingScanTaskResponse.new
4002
+ model.deserialize(response['Response'])
4003
+ model
4004
+ else
4005
+ code = response['Response']['Error']['Code']
4006
+ message = response['Response']['Error']['Message']
4007
+ reqid = response['Response']['RequestId']
4008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4009
+ end
4010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4011
+ raise e
4012
+ rescue StandardError => e
4013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4014
+ end
4015
+
4016
+
4017
+ end
4018
+ end
4019
+ end
4020
+ end