tencentcloud-sdk-dsgc 3.0.643 → 3.0.645
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190723/client.rb +3521 -6
- data/lib/v20190723/models.rb +12659 -67
- metadata +2 -2
data/lib/v20190723/client.rb
CHANGED
@@ -29,16 +29,3531 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 授权用户云资源
|
33
|
+
|
34
|
+
# @param request: Request instance for AuthorizeDSPAMetaResources.
|
35
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::AuthorizeDSPAMetaResourcesRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::AuthorizeDSPAMetaResourcesResponse`
|
37
|
+
def AuthorizeDSPAMetaResources(request)
|
38
|
+
body = send_request('AuthorizeDSPAMetaResources', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AuthorizeDSPAMetaResourcesResponse.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
|
+
# 绑定或解绑COS桶
|
57
|
+
|
58
|
+
# @param request: Request instance for BindDSPAResourceCosBuckets.
|
59
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::BindDSPAResourceCosBucketsRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::BindDSPAResourceCosBucketsResponse`
|
61
|
+
def BindDSPAResourceCosBuckets(request)
|
62
|
+
body = send_request('BindDSPAResourceCosBuckets', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = BindDSPAResourceCosBucketsResponse.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
|
+
# 绑定或解绑数据库实例DB
|
81
|
+
|
82
|
+
# @param request: Request instance for BindDSPAResourceDatabases.
|
83
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::BindDSPAResourceDatabasesRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::BindDSPAResourceDatabasesResponse`
|
85
|
+
def BindDSPAResourceDatabases(request)
|
86
|
+
body = send_request('BindDSPAResourceDatabases', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = BindDSPAResourceDatabasesResponse.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 CopyDSPATemplate.
|
107
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CopyDSPATemplateRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CopyDSPATemplateResponse`
|
109
|
+
def CopyDSPATemplate(request)
|
110
|
+
body = send_request('CopyDSPATemplate', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CopyDSPATemplateResponse.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
|
+
# 创建资产梳理报表导出重试任务
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateAssetSortingReportRetryTask.
|
131
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateAssetSortingReportRetryTaskRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateAssetSortingReportRetryTaskResponse`
|
133
|
+
def CreateAssetSortingReportRetryTask(request)
|
134
|
+
body = send_request('CreateAssetSortingReportRetryTask', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateAssetSortingReportRetryTaskResponse.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 CreateAssetSortingReportTask.
|
155
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateAssetSortingReportTaskRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateAssetSortingReportTaskResponse`
|
157
|
+
def CreateAssetSortingReportTask(request)
|
158
|
+
body = send_request('CreateAssetSortingReportTask', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateAssetSortingReportTaskResponse.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 CreateClassificationRule.
|
179
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateClassificationRuleRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateClassificationRuleResponse`
|
181
|
+
def CreateClassificationRule(request)
|
182
|
+
body = send_request('CreateClassificationRule', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateClassificationRuleResponse.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 CreateDSPAAssessmentRiskLevel.
|
203
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentRiskLevelRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentRiskLevelResponse`
|
205
|
+
def CreateDSPAAssessmentRiskLevel(request)
|
206
|
+
body = send_request('CreateDSPAAssessmentRiskLevel', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateDSPAAssessmentRiskLevelResponse.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 CreateDSPAAssessmentRiskTemplate.
|
227
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentRiskTemplateRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentRiskTemplateResponse`
|
229
|
+
def CreateDSPAAssessmentRiskTemplate(request)
|
230
|
+
body = send_request('CreateDSPAAssessmentRiskTemplate', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CreateDSPAAssessmentRiskTemplateResponse.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
|
+
# 新建DSPA风险评估任务
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateDSPAAssessmentTask.
|
251
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentTaskRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAAssessmentTaskResponse`
|
253
|
+
def CreateDSPAAssessmentTask(request)
|
254
|
+
body = send_request('CreateDSPAAssessmentTask', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateDSPAAssessmentTaskResponse.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
|
+
# 新增COS分类分级扫描任务,单个用户最多允许创建100个任务。
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateDSPACOSDiscoveryTask.
|
275
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACOSDiscoveryTaskRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACOSDiscoveryTaskResponse`
|
277
|
+
def CreateDSPACOSDiscoveryTask(request)
|
278
|
+
body = send_request('CreateDSPACOSDiscoveryTask', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateDSPACOSDiscoveryTaskResponse.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
|
+
# 新增分类,单个用户最多允许创建100个数据分类。
|
297
|
+
|
298
|
+
# @param request: Request instance for CreateDSPACategory.
|
299
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACategoryRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACategoryResponse`
|
301
|
+
def CreateDSPACategory(request)
|
302
|
+
body = send_request('CreateDSPACategory', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = CreateDSPACategoryResponse.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 CreateDSPACategoryRelation.
|
323
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACategoryRelationRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACategoryRelationResponse`
|
325
|
+
def CreateDSPACategoryRelation(request)
|
326
|
+
body = send_request('CreateDSPACategoryRelation', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreateDSPACategoryRelationResponse.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
|
+
# 新增分类分级模板,单个用户最多允许创建100个合规组。
|
345
|
+
|
346
|
+
# @param request: Request instance for CreateDSPAComplianceGroup.
|
347
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAComplianceGroupRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAComplianceGroupResponse`
|
349
|
+
def CreateDSPAComplianceGroup(request)
|
350
|
+
body = send_request('CreateDSPAComplianceGroup', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreateDSPAComplianceGroupResponse.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 CreateDSPAComplianceRules.
|
371
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAComplianceRulesRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAComplianceRulesResponse`
|
373
|
+
def CreateDSPAComplianceRules(request)
|
374
|
+
body = send_request('CreateDSPAComplianceRules', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreateDSPAComplianceRulesResponse.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
|
+
# 添加COS元数据
|
393
|
+
|
394
|
+
# @param request: Request instance for CreateDSPACosMetaResources.
|
395
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACosMetaResourcesRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPACosMetaResourcesResponse`
|
397
|
+
def CreateDSPACosMetaResources(request)
|
398
|
+
body = send_request('CreateDSPACosMetaResources', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = CreateDSPACosMetaResourcesResponse.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
|
+
|
32
416
|
# 添加用户云上数据库类型资源
|
33
417
|
|
34
|
-
# @param request: Request instance for CreateDSPADbMetaResources.
|
35
|
-
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesRequest`
|
36
|
-
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesResponse`
|
37
|
-
def CreateDSPADbMetaResources(request)
|
38
|
-
body = send_request('CreateDSPADbMetaResources', request.serialize)
|
418
|
+
# @param request: Request instance for CreateDSPADbMetaResources.
|
419
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADbMetaResourcesResponse`
|
421
|
+
def CreateDSPADbMetaResources(request)
|
422
|
+
body = send_request('CreateDSPADbMetaResources', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateDSPADbMetaResourcesResponse.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
|
+
# 新增分类分级规则,单个用户最多允许创建200个规则。
|
441
|
+
|
442
|
+
# @param request: Request instance for CreateDSPADiscoveryRule.
|
443
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADiscoveryRuleRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADiscoveryRuleResponse`
|
445
|
+
def CreateDSPADiscoveryRule(request)
|
446
|
+
body = send_request('CreateDSPADiscoveryRule', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = CreateDSPADiscoveryRuleResponse.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
|
+
# 新增分类分级任务,单个用户最多允许创建100个任务。
|
465
|
+
|
466
|
+
# @param request: Request instance for CreateDSPADiscoveryTask.
|
467
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADiscoveryTaskRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPADiscoveryTaskResponse`
|
469
|
+
def CreateDSPADiscoveryTask(request)
|
470
|
+
body = send_request('CreateDSPADiscoveryTask', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = CreateDSPADiscoveryTaskResponse.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
|
+
# 新增分级,单个Casb实例最多允许创建100个数据分级
|
489
|
+
|
490
|
+
# @param request: Request instance for CreateDSPALevelGroup.
|
491
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPALevelGroupRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPALevelGroupResponse`
|
493
|
+
def CreateDSPALevelGroup(request)
|
494
|
+
body = send_request('CreateDSPALevelGroup', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = CreateDSPALevelGroupResponse.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 CreateDSPAMetaResources.
|
515
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAMetaResourcesRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPAMetaResourcesResponse`
|
517
|
+
def CreateDSPAMetaResources(request)
|
518
|
+
body = send_request('CreateDSPAMetaResources', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = CreateDSPAMetaResourcesResponse.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 CreateDSPASelfBuildMetaResource.
|
539
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateDSPASelfBuildMetaResourceRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateDSPASelfBuildMetaResourceResponse`
|
541
|
+
def CreateDSPASelfBuildMetaResource(request)
|
542
|
+
body = send_request('CreateDSPASelfBuildMetaResource', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = CreateDSPASelfBuildMetaResourceResponse.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 CreateIdentifyRuleAnotherName.
|
563
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateIdentifyRuleAnotherNameRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateIdentifyRuleAnotherNameResponse`
|
565
|
+
def CreateIdentifyRuleAnotherName(request)
|
566
|
+
body = send_request('CreateIdentifyRuleAnotherName', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = CreateIdentifyRuleAnotherNameResponse.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
|
+
# 创建新分类
|
585
|
+
|
586
|
+
# @param request: Request instance for CreateNewClassification.
|
587
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateNewClassificationRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateNewClassificationResponse`
|
589
|
+
def CreateNewClassification(request)
|
590
|
+
body = send_request('CreateNewClassification', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = CreateNewClassificationResponse.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 CreateOrCopyStandard.
|
611
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::CreateOrCopyStandardRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::CreateOrCopyStandardResponse`
|
613
|
+
def CreateOrCopyStandard(request)
|
614
|
+
body = send_request('CreateOrCopyStandard', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = CreateOrCopyStandardResponse.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 DecribeSuggestRiskLevelMatrix.
|
635
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DecribeSuggestRiskLevelMatrixRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DecribeSuggestRiskLevelMatrixResponse`
|
637
|
+
def DecribeSuggestRiskLevelMatrix(request)
|
638
|
+
body = send_request('DecribeSuggestRiskLevelMatrix', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DecribeSuggestRiskLevelMatrixResponse.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
|
+
# 本接口(DeleteCOSMetaData)用于删除COS元数据信息。
|
657
|
+
|
658
|
+
# @param request: Request instance for DeleteCosMetaResource.
|
659
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteCosMetaResourceRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteCosMetaResourceResponse`
|
661
|
+
def DeleteCosMetaResource(request)
|
662
|
+
body = send_request('DeleteCosMetaResource', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DeleteCosMetaResourceResponse.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
|
+
# 删除DSPA风险评估任务
|
681
|
+
|
682
|
+
# @param request: Request instance for DeleteDSPAAssessmentTask.
|
683
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPAAssessmentTaskRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPAAssessmentTaskResponse`
|
685
|
+
def DeleteDSPAAssessmentTask(request)
|
686
|
+
body = send_request('DeleteDSPAAssessmentTask', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DeleteDSPAAssessmentTaskResponse.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
|
+
# 删除COS分类分级任务,该接口只有在任务状态为以下几个状态值时才支持正确删除:
|
705
|
+
# 0 待扫描,
|
706
|
+
# 2 扫描终止,
|
707
|
+
# 3 扫描成功,
|
708
|
+
# 4 扫描失败
|
709
|
+
|
710
|
+
# @param request: Request instance for DeleteDSPACOSDiscoveryTask.
|
711
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPACOSDiscoveryTaskRequest`
|
712
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPACOSDiscoveryTaskResponse`
|
713
|
+
def DeleteDSPACOSDiscoveryTask(request)
|
714
|
+
body = send_request('DeleteDSPACOSDiscoveryTask', request.serialize)
|
715
|
+
response = JSON.parse(body)
|
716
|
+
if response['Response'].key?('Error') == false
|
717
|
+
model = DeleteDSPACOSDiscoveryTaskResponse.new
|
718
|
+
model.deserialize(response['Response'])
|
719
|
+
model
|
720
|
+
else
|
721
|
+
code = response['Response']['Error']['Code']
|
722
|
+
message = response['Response']['Error']['Message']
|
723
|
+
reqid = response['Response']['RequestId']
|
724
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
725
|
+
end
|
726
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
727
|
+
raise e
|
728
|
+
rescue StandardError => e
|
729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
730
|
+
end
|
731
|
+
|
732
|
+
# 删除COS分类分级任务结果
|
733
|
+
|
734
|
+
# @param request: Request instance for DeleteDSPACOSDiscoveryTaskResult.
|
735
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPACOSDiscoveryTaskResultRequest`
|
736
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPACOSDiscoveryTaskResultResponse`
|
737
|
+
def DeleteDSPACOSDiscoveryTaskResult(request)
|
738
|
+
body = send_request('DeleteDSPACOSDiscoveryTaskResult', request.serialize)
|
739
|
+
response = JSON.parse(body)
|
740
|
+
if response['Response'].key?('Error') == false
|
741
|
+
model = DeleteDSPACOSDiscoveryTaskResultResponse.new
|
742
|
+
model.deserialize(response['Response'])
|
743
|
+
model
|
744
|
+
else
|
745
|
+
code = response['Response']['Error']['Code']
|
746
|
+
message = response['Response']['Error']['Message']
|
747
|
+
reqid = response['Response']['RequestId']
|
748
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
749
|
+
end
|
750
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
751
|
+
raise e
|
752
|
+
rescue StandardError => e
|
753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
754
|
+
end
|
755
|
+
|
756
|
+
# 删除分类分级识别任务,该接口只有在任务状态为以下几个状态值时才支持正确删除:
|
757
|
+
# 0 待扫描,
|
758
|
+
# 2 扫描终止,
|
759
|
+
# 3 扫描成功,
|
760
|
+
# 4 扫描失败
|
761
|
+
|
762
|
+
# @param request: Request instance for DeleteDSPADiscoveryTask.
|
763
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPADiscoveryTaskRequest`
|
764
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPADiscoveryTaskResponse`
|
765
|
+
def DeleteDSPADiscoveryTask(request)
|
766
|
+
body = send_request('DeleteDSPADiscoveryTask', request.serialize)
|
767
|
+
response = JSON.parse(body)
|
768
|
+
if response['Response'].key?('Error') == false
|
769
|
+
model = DeleteDSPADiscoveryTaskResponse.new
|
770
|
+
model.deserialize(response['Response'])
|
771
|
+
model
|
772
|
+
else
|
773
|
+
code = response['Response']['Error']['Code']
|
774
|
+
message = response['Response']['Error']['Message']
|
775
|
+
reqid = response['Response']['RequestId']
|
776
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
777
|
+
end
|
778
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
779
|
+
raise e
|
780
|
+
rescue StandardError => e
|
781
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
782
|
+
end
|
783
|
+
|
784
|
+
# 删除分类分级识别任务结果
|
785
|
+
|
786
|
+
# @param request: Request instance for DeleteDSPADiscoveryTaskResult.
|
787
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPADiscoveryTaskResultRequest`
|
788
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPADiscoveryTaskResultResponse`
|
789
|
+
def DeleteDSPADiscoveryTaskResult(request)
|
790
|
+
body = send_request('DeleteDSPADiscoveryTaskResult', request.serialize)
|
791
|
+
response = JSON.parse(body)
|
792
|
+
if response['Response'].key?('Error') == false
|
793
|
+
model = DeleteDSPADiscoveryTaskResultResponse.new
|
794
|
+
model.deserialize(response['Response'])
|
795
|
+
model
|
796
|
+
else
|
797
|
+
code = response['Response']['Error']['Code']
|
798
|
+
message = response['Response']['Error']['Message']
|
799
|
+
reqid = response['Response']['RequestId']
|
800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
801
|
+
end
|
802
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
803
|
+
raise e
|
804
|
+
rescue StandardError => e
|
805
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
806
|
+
end
|
807
|
+
|
808
|
+
# 删除用户云资源
|
809
|
+
|
810
|
+
# @param request: Request instance for DeleteDSPAMetaResource.
|
811
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPAMetaResourceRequest`
|
812
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DeleteDSPAMetaResourceResponse`
|
813
|
+
def DeleteDSPAMetaResource(request)
|
814
|
+
body = send_request('DeleteDSPAMetaResource', request.serialize)
|
815
|
+
response = JSON.parse(body)
|
816
|
+
if response['Response'].key?('Error') == false
|
817
|
+
model = DeleteDSPAMetaResourceResponse.new
|
818
|
+
model.deserialize(response['Response'])
|
819
|
+
model
|
820
|
+
else
|
821
|
+
code = response['Response']['Error']['Code']
|
822
|
+
message = response['Response']['Error']['Message']
|
823
|
+
reqid = response['Response']['RequestId']
|
824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
825
|
+
end
|
826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
827
|
+
raise e
|
828
|
+
rescue StandardError => e
|
829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
830
|
+
end
|
831
|
+
|
832
|
+
# 查询敏感数据导出结果URL
|
833
|
+
|
834
|
+
# @param request: Request instance for DescribeAssetDetailDataExportResult.
|
835
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeAssetDetailDataExportResultRequest`
|
836
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeAssetDetailDataExportResultResponse`
|
837
|
+
def DescribeAssetDetailDataExportResult(request)
|
838
|
+
body = send_request('DescribeAssetDetailDataExportResult', request.serialize)
|
839
|
+
response = JSON.parse(body)
|
840
|
+
if response['Response'].key?('Error') == false
|
841
|
+
model = DescribeAssetDetailDataExportResultResponse.new
|
842
|
+
model.deserialize(response['Response'])
|
843
|
+
model
|
844
|
+
else
|
845
|
+
code = response['Response']['Error']['Code']
|
846
|
+
message = response['Response']['Error']['Message']
|
847
|
+
reqid = response['Response']['RequestId']
|
848
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
849
|
+
end
|
850
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
851
|
+
raise e
|
852
|
+
rescue StandardError => e
|
853
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
854
|
+
end
|
855
|
+
|
856
|
+
# 数据资产报告页面-查询数据资产概览接口(包括数据库资产详情和存储资产详情)
|
857
|
+
|
858
|
+
# @param request: Request instance for DescribeAssetOverview.
|
859
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeAssetOverviewRequest`
|
860
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeAssetOverviewResponse`
|
861
|
+
def DescribeAssetOverview(request)
|
862
|
+
body = send_request('DescribeAssetOverview', request.serialize)
|
863
|
+
response = JSON.parse(body)
|
864
|
+
if response['Response'].key?('Error') == false
|
865
|
+
model = DescribeAssetOverviewResponse.new
|
866
|
+
model.deserialize(response['Response'])
|
867
|
+
model
|
868
|
+
else
|
869
|
+
code = response['Response']['Error']['Code']
|
870
|
+
message = response['Response']['Error']['Message']
|
871
|
+
reqid = response['Response']['RequestId']
|
872
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
873
|
+
end
|
874
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
875
|
+
raise e
|
876
|
+
rescue StandardError => e
|
877
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
878
|
+
end
|
879
|
+
|
880
|
+
# 查询DB绑定的列表
|
881
|
+
|
882
|
+
# @param request: Request instance for DescribeBindDBList.
|
883
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeBindDBListRequest`
|
884
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeBindDBListResponse`
|
885
|
+
def DescribeBindDBList(request)
|
886
|
+
body = send_request('DescribeBindDBList', request.serialize)
|
887
|
+
response = JSON.parse(body)
|
888
|
+
if response['Response'].key?('Error') == false
|
889
|
+
model = DescribeBindDBListResponse.new
|
890
|
+
model.deserialize(response['Response'])
|
891
|
+
model
|
892
|
+
else
|
893
|
+
code = response['Response']['Error']['Code']
|
894
|
+
message = response['Response']['Error']['Message']
|
895
|
+
reqid = response['Response']['RequestId']
|
896
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
897
|
+
end
|
898
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
899
|
+
raise e
|
900
|
+
rescue StandardError => e
|
901
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
902
|
+
end
|
903
|
+
|
904
|
+
# 数据资产报告-查询cos的资产分布详情接口
|
905
|
+
|
906
|
+
# @param request: Request instance for DescribeCOSAssetSensitiveDistribution.
|
907
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeCOSAssetSensitiveDistributionRequest`
|
908
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeCOSAssetSensitiveDistributionResponse`
|
909
|
+
def DescribeCOSAssetSensitiveDistribution(request)
|
910
|
+
body = send_request('DescribeCOSAssetSensitiveDistribution', request.serialize)
|
911
|
+
response = JSON.parse(body)
|
912
|
+
if response['Response'].key?('Error') == false
|
913
|
+
model = DescribeCOSAssetSensitiveDistributionResponse.new
|
914
|
+
model.deserialize(response['Response'])
|
915
|
+
model
|
916
|
+
else
|
917
|
+
code = response['Response']['Error']['Code']
|
918
|
+
message = response['Response']['Error']['Message']
|
919
|
+
reqid = response['Response']['RequestId']
|
920
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
921
|
+
end
|
922
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
923
|
+
raise e
|
924
|
+
rescue StandardError => e
|
925
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
926
|
+
end
|
927
|
+
|
928
|
+
# 查询分类信息
|
929
|
+
|
930
|
+
# @param request: Request instance for DescribeClassificationInfo.
|
931
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeClassificationInfoRequest`
|
932
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeClassificationInfoResponse`
|
933
|
+
def DescribeClassificationInfo(request)
|
934
|
+
body = send_request('DescribeClassificationInfo', request.serialize)
|
935
|
+
response = JSON.parse(body)
|
936
|
+
if response['Response'].key?('Error') == false
|
937
|
+
model = DescribeClassificationInfoResponse.new
|
938
|
+
model.deserialize(response['Response'])
|
939
|
+
model
|
940
|
+
else
|
941
|
+
code = response['Response']['Error']['Code']
|
942
|
+
message = response['Response']['Error']['Message']
|
943
|
+
reqid = response['Response']['RequestId']
|
944
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
945
|
+
end
|
946
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
947
|
+
raise e
|
948
|
+
rescue StandardError => e
|
949
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
950
|
+
end
|
951
|
+
|
952
|
+
# 查询标准下所有分类的识别规则数量(不算子分类下的识别规则)
|
953
|
+
|
954
|
+
# @param request: Request instance for DescribeClassificationRuleCount.
|
955
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeClassificationRuleCountRequest`
|
956
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeClassificationRuleCountResponse`
|
957
|
+
def DescribeClassificationRuleCount(request)
|
958
|
+
body = send_request('DescribeClassificationRuleCount', request.serialize)
|
959
|
+
response = JSON.parse(body)
|
960
|
+
if response['Response'].key?('Error') == false
|
961
|
+
model = DescribeClassificationRuleCountResponse.new
|
962
|
+
model.deserialize(response['Response'])
|
963
|
+
model
|
964
|
+
else
|
965
|
+
code = response['Response']['Error']['Code']
|
966
|
+
message = response['Response']['Error']['Message']
|
967
|
+
reqid = response['Response']['RequestId']
|
968
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
969
|
+
end
|
970
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
971
|
+
raise e
|
972
|
+
rescue StandardError => e
|
973
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
974
|
+
end
|
975
|
+
|
976
|
+
# 查询高风险资产的top10
|
977
|
+
|
978
|
+
# @param request: Request instance for DescribeDSPAAssessmentHighRiskTop10Overview.
|
979
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentHighRiskTop10OverviewRequest`
|
980
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentHighRiskTop10OverviewResponse`
|
981
|
+
def DescribeDSPAAssessmentHighRiskTop10Overview(request)
|
982
|
+
body = send_request('DescribeDSPAAssessmentHighRiskTop10Overview', request.serialize)
|
983
|
+
response = JSON.parse(body)
|
984
|
+
if response['Response'].key?('Error') == false
|
985
|
+
model = DescribeDSPAAssessmentHighRiskTop10OverviewResponse.new
|
986
|
+
model.deserialize(response['Response'])
|
987
|
+
model
|
988
|
+
else
|
989
|
+
code = response['Response']['Error']['Code']
|
990
|
+
message = response['Response']['Error']['Message']
|
991
|
+
reqid = response['Response']['RequestId']
|
992
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
993
|
+
end
|
994
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
995
|
+
raise e
|
996
|
+
rescue StandardError => e
|
997
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
998
|
+
end
|
999
|
+
|
1000
|
+
# 查询最新风险项详情数据
|
1001
|
+
|
1002
|
+
# @param request: Request instance for DescribeDSPAAssessmentLatestRiskDetailInfo.
|
1003
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentLatestRiskDetailInfoRequest`
|
1004
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentLatestRiskDetailInfoResponse`
|
1005
|
+
def DescribeDSPAAssessmentLatestRiskDetailInfo(request)
|
1006
|
+
body = send_request('DescribeDSPAAssessmentLatestRiskDetailInfo', request.serialize)
|
1007
|
+
response = JSON.parse(body)
|
1008
|
+
if response['Response'].key?('Error') == false
|
1009
|
+
model = DescribeDSPAAssessmentLatestRiskDetailInfoResponse.new
|
1010
|
+
model.deserialize(response['Response'])
|
1011
|
+
model
|
1012
|
+
else
|
1013
|
+
code = response['Response']['Error']['Code']
|
1014
|
+
message = response['Response']['Error']['Message']
|
1015
|
+
reqid = response['Response']['RequestId']
|
1016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1017
|
+
end
|
1018
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1019
|
+
raise e
|
1020
|
+
rescue StandardError => e
|
1021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# 查询最新的风险详情列表数据
|
1025
|
+
|
1026
|
+
# @param request: Request instance for DescribeDSPAAssessmentLatestRiskList.
|
1027
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentLatestRiskListRequest`
|
1028
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentLatestRiskListResponse`
|
1029
|
+
def DescribeDSPAAssessmentLatestRiskList(request)
|
1030
|
+
body = send_request('DescribeDSPAAssessmentLatestRiskList', request.serialize)
|
1031
|
+
response = JSON.parse(body)
|
1032
|
+
if response['Response'].key?('Error') == false
|
1033
|
+
model = DescribeDSPAAssessmentLatestRiskListResponse.new
|
1034
|
+
model.deserialize(response['Response'])
|
1035
|
+
model
|
1036
|
+
else
|
1037
|
+
code = response['Response']['Error']['Code']
|
1038
|
+
message = response['Response']['Error']['Message']
|
1039
|
+
reqid = response['Response']['RequestId']
|
1040
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1041
|
+
end
|
1042
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1043
|
+
raise e
|
1044
|
+
rescue StandardError => e
|
1045
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# 风险概览-查询新发现风险统计数
|
1049
|
+
|
1050
|
+
# @param request: Request instance for DescribeDSPAAssessmentNewDiscoveredRiskOverview.
|
1051
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentNewDiscoveredRiskOverviewRequest`
|
1052
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentNewDiscoveredRiskOverviewResponse`
|
1053
|
+
def DescribeDSPAAssessmentNewDiscoveredRiskOverview(request)
|
1054
|
+
body = send_request('DescribeDSPAAssessmentNewDiscoveredRiskOverview', request.serialize)
|
1055
|
+
response = JSON.parse(body)
|
1056
|
+
if response['Response'].key?('Error') == false
|
1057
|
+
model = DescribeDSPAAssessmentNewDiscoveredRiskOverviewResponse.new
|
1058
|
+
model.deserialize(response['Response'])
|
1059
|
+
model
|
1060
|
+
else
|
1061
|
+
code = response['Response']['Error']['Code']
|
1062
|
+
message = response['Response']['Error']['Message']
|
1063
|
+
reqid = response['Response']['RequestId']
|
1064
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1065
|
+
end
|
1066
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1067
|
+
raise e
|
1068
|
+
rescue StandardError => e
|
1069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# 风险概览-查询待处理风险统计数
|
1073
|
+
|
1074
|
+
# @param request: Request instance for DescribeDSPAAssessmentPendingRiskOverview.
|
1075
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentPendingRiskOverviewRequest`
|
1076
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentPendingRiskOverviewResponse`
|
1077
|
+
def DescribeDSPAAssessmentPendingRiskOverview(request)
|
1078
|
+
body = send_request('DescribeDSPAAssessmentPendingRiskOverview', request.serialize)
|
1079
|
+
response = JSON.parse(body)
|
1080
|
+
if response['Response'].key?('Error') == false
|
1081
|
+
model = DescribeDSPAAssessmentPendingRiskOverviewResponse.new
|
1082
|
+
model.deserialize(response['Response'])
|
1083
|
+
model
|
1084
|
+
else
|
1085
|
+
code = response['Response']['Error']['Code']
|
1086
|
+
message = response['Response']['Error']['Message']
|
1087
|
+
reqid = response['Response']['RequestId']
|
1088
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1089
|
+
end
|
1090
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1091
|
+
raise e
|
1092
|
+
rescue StandardError => e
|
1093
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
# 风险概览-查询处理中风险统计数
|
1097
|
+
|
1098
|
+
# @param request: Request instance for DescribeDSPAAssessmentProcessingRiskOverview.
|
1099
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentProcessingRiskOverviewRequest`
|
1100
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentProcessingRiskOverviewResponse`
|
1101
|
+
def DescribeDSPAAssessmentProcessingRiskOverview(request)
|
1102
|
+
body = send_request('DescribeDSPAAssessmentProcessingRiskOverview', request.serialize)
|
1103
|
+
response = JSON.parse(body)
|
1104
|
+
if response['Response'].key?('Error') == false
|
1105
|
+
model = DescribeDSPAAssessmentProcessingRiskOverviewResponse.new
|
1106
|
+
model.deserialize(response['Response'])
|
1107
|
+
model
|
1108
|
+
else
|
1109
|
+
code = response['Response']['Error']['Code']
|
1110
|
+
message = response['Response']['Error']['Message']
|
1111
|
+
reqid = response['Response']['RequestId']
|
1112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1113
|
+
end
|
1114
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1115
|
+
raise e
|
1116
|
+
rescue StandardError => e
|
1117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# 风险概览页风险数量和受影响资产数概览统计
|
1121
|
+
|
1122
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskAmountOverview.
|
1123
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskAmountOverviewRequest`
|
1124
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskAmountOverviewResponse`
|
1125
|
+
def DescribeDSPAAssessmentRiskAmountOverview(request)
|
1126
|
+
body = send_request('DescribeDSPAAssessmentRiskAmountOverview', request.serialize)
|
1127
|
+
response = JSON.parse(body)
|
1128
|
+
if response['Response'].key?('Error') == false
|
1129
|
+
model = DescribeDSPAAssessmentRiskAmountOverviewResponse.new
|
1130
|
+
model.deserialize(response['Response'])
|
1131
|
+
model
|
1132
|
+
else
|
1133
|
+
code = response['Response']['Error']['Code']
|
1134
|
+
message = response['Response']['Error']['Message']
|
1135
|
+
reqid = response['Response']['RequestId']
|
1136
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1137
|
+
end
|
1138
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1139
|
+
raise e
|
1140
|
+
rescue StandardError => e
|
1141
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
# 受影响资产TOP5统计
|
1145
|
+
|
1146
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskDatasourceTop5.
|
1147
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDatasourceTop5Request`
|
1148
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDatasourceTop5Response`
|
1149
|
+
def DescribeDSPAAssessmentRiskDatasourceTop5(request)
|
1150
|
+
body = send_request('DescribeDSPAAssessmentRiskDatasourceTop5', request.serialize)
|
1151
|
+
response = JSON.parse(body)
|
1152
|
+
if response['Response'].key?('Error') == false
|
1153
|
+
model = DescribeDSPAAssessmentRiskDatasourceTop5Response.new
|
1154
|
+
model.deserialize(response['Response'])
|
1155
|
+
model
|
1156
|
+
else
|
1157
|
+
code = response['Response']['Error']['Code']
|
1158
|
+
message = response['Response']['Error']['Message']
|
1159
|
+
reqid = response['Response']['RequestId']
|
1160
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1161
|
+
end
|
1162
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1163
|
+
raise e
|
1164
|
+
rescue StandardError => e
|
1165
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
# 遗留待处理&昨日完成风险处置概览统计
|
1169
|
+
|
1170
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskDealedOverview.
|
1171
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDealedOverviewRequest`
|
1172
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDealedOverviewResponse`
|
1173
|
+
def DescribeDSPAAssessmentRiskDealedOverview(request)
|
1174
|
+
body = send_request('DescribeDSPAAssessmentRiskDealedOverview', request.serialize)
|
1175
|
+
response = JSON.parse(body)
|
1176
|
+
if response['Response'].key?('Error') == false
|
1177
|
+
model = DescribeDSPAAssessmentRiskDealedOverviewResponse.new
|
1178
|
+
model.deserialize(response['Response'])
|
1179
|
+
model
|
1180
|
+
else
|
1181
|
+
code = response['Response']['Error']['Code']
|
1182
|
+
message = response['Response']['Error']['Message']
|
1183
|
+
reqid = response['Response']['RequestId']
|
1184
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1185
|
+
end
|
1186
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1187
|
+
raise e
|
1188
|
+
rescue StandardError => e
|
1189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# 风险项处理趋势统计
|
1193
|
+
|
1194
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskDealedTrend.
|
1195
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDealedTrendRequest`
|
1196
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDealedTrendResponse`
|
1197
|
+
def DescribeDSPAAssessmentRiskDealedTrend(request)
|
1198
|
+
body = send_request('DescribeDSPAAssessmentRiskDealedTrend', request.serialize)
|
1199
|
+
response = JSON.parse(body)
|
1200
|
+
if response['Response'].key?('Error') == false
|
1201
|
+
model = DescribeDSPAAssessmentRiskDealedTrendResponse.new
|
1202
|
+
model.deserialize(response['Response'])
|
1203
|
+
model
|
1204
|
+
else
|
1205
|
+
code = response['Response']['Error']['Code']
|
1206
|
+
message = response['Response']['Error']['Message']
|
1207
|
+
reqid = response['Response']['RequestId']
|
1208
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1209
|
+
end
|
1210
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1211
|
+
raise e
|
1212
|
+
rescue StandardError => e
|
1213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
# 查询风险分布数据,包含风险类型分布,风险详情分布,风险资产的分布
|
1217
|
+
|
1218
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskDistributionOverview.
|
1219
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDistributionOverviewRequest`
|
1220
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskDistributionOverviewResponse`
|
1221
|
+
def DescribeDSPAAssessmentRiskDistributionOverview(request)
|
1222
|
+
body = send_request('DescribeDSPAAssessmentRiskDistributionOverview', request.serialize)
|
1223
|
+
response = JSON.parse(body)
|
1224
|
+
if response['Response'].key?('Error') == false
|
1225
|
+
model = DescribeDSPAAssessmentRiskDistributionOverviewResponse.new
|
1226
|
+
model.deserialize(response['Response'])
|
1227
|
+
model
|
1228
|
+
else
|
1229
|
+
code = response['Response']['Error']['Code']
|
1230
|
+
message = response['Response']['Error']['Message']
|
1231
|
+
reqid = response['Response']['RequestId']
|
1232
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1233
|
+
end
|
1234
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1235
|
+
raise e
|
1236
|
+
rescue StandardError => e
|
1237
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# 风险分类TOP5统计
|
1241
|
+
|
1242
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskItemTop5.
|
1243
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskItemTop5Request`
|
1244
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskItemTop5Response`
|
1245
|
+
def DescribeDSPAAssessmentRiskItemTop5(request)
|
1246
|
+
body = send_request('DescribeDSPAAssessmentRiskItemTop5', request.serialize)
|
1247
|
+
response = JSON.parse(body)
|
1248
|
+
if response['Response'].key?('Error') == false
|
1249
|
+
model = DescribeDSPAAssessmentRiskItemTop5Response.new
|
1250
|
+
model.deserialize(response['Response'])
|
1251
|
+
model
|
1252
|
+
else
|
1253
|
+
code = response['Response']['Error']['Code']
|
1254
|
+
message = response['Response']['Error']['Message']
|
1255
|
+
reqid = response['Response']['RequestId']
|
1256
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1257
|
+
end
|
1258
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1259
|
+
raise e
|
1260
|
+
rescue StandardError => e
|
1261
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# 风险项页面----查询风险等级的详情数据
|
1265
|
+
|
1266
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskLevelDetail.
|
1267
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelDetailRequest`
|
1268
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelDetailResponse`
|
1269
|
+
def DescribeDSPAAssessmentRiskLevelDetail(request)
|
1270
|
+
body = send_request('DescribeDSPAAssessmentRiskLevelDetail', request.serialize)
|
1271
|
+
response = JSON.parse(body)
|
1272
|
+
if response['Response'].key?('Error') == false
|
1273
|
+
model = DescribeDSPAAssessmentRiskLevelDetailResponse.new
|
1274
|
+
model.deserialize(response['Response'])
|
1275
|
+
model
|
1276
|
+
else
|
1277
|
+
code = response['Response']['Error']['Code']
|
1278
|
+
message = response['Response']['Error']['Message']
|
1279
|
+
reqid = response['Response']['RequestId']
|
1280
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1281
|
+
end
|
1282
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1283
|
+
raise e
|
1284
|
+
rescue StandardError => e
|
1285
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
# 风险项页面----查询风险等级的列表
|
1289
|
+
|
1290
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskLevelList.
|
1291
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelListRequest`
|
1292
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelListResponse`
|
1293
|
+
def DescribeDSPAAssessmentRiskLevelList(request)
|
1294
|
+
body = send_request('DescribeDSPAAssessmentRiskLevelList', request.serialize)
|
1295
|
+
response = JSON.parse(body)
|
1296
|
+
if response['Response'].key?('Error') == false
|
1297
|
+
model = DescribeDSPAAssessmentRiskLevelListResponse.new
|
1298
|
+
model.deserialize(response['Response'])
|
1299
|
+
model
|
1300
|
+
else
|
1301
|
+
code = response['Response']['Error']['Code']
|
1302
|
+
message = response['Response']['Error']['Message']
|
1303
|
+
reqid = response['Response']['RequestId']
|
1304
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1305
|
+
end
|
1306
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1307
|
+
raise e
|
1308
|
+
rescue StandardError => e
|
1309
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
# 风险级别趋势统计
|
1313
|
+
|
1314
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskLevelTrend.
|
1315
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelTrendRequest`
|
1316
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskLevelTrendResponse`
|
1317
|
+
def DescribeDSPAAssessmentRiskLevelTrend(request)
|
1318
|
+
body = send_request('DescribeDSPAAssessmentRiskLevelTrend', request.serialize)
|
1319
|
+
response = JSON.parse(body)
|
1320
|
+
if response['Response'].key?('Error') == false
|
1321
|
+
model = DescribeDSPAAssessmentRiskLevelTrendResponse.new
|
1322
|
+
model.deserialize(response['Response'])
|
1323
|
+
model
|
1324
|
+
else
|
1325
|
+
code = response['Response']['Error']['Code']
|
1326
|
+
message = response['Response']['Error']['Message']
|
1327
|
+
reqid = response['Response']['RequestId']
|
1328
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1329
|
+
end
|
1330
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1331
|
+
raise e
|
1332
|
+
rescue StandardError => e
|
1333
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# 风险数量概览统计
|
1337
|
+
|
1338
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskOverview.
|
1339
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskOverviewRequest`
|
1340
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskOverviewResponse`
|
1341
|
+
def DescribeDSPAAssessmentRiskOverview(request)
|
1342
|
+
body = send_request('DescribeDSPAAssessmentRiskOverview', request.serialize)
|
1343
|
+
response = JSON.parse(body)
|
1344
|
+
if response['Response'].key?('Error') == false
|
1345
|
+
model = DescribeDSPAAssessmentRiskOverviewResponse.new
|
1346
|
+
model.deserialize(response['Response'])
|
1347
|
+
model
|
1348
|
+
else
|
1349
|
+
code = response['Response']['Error']['Code']
|
1350
|
+
message = response['Response']['Error']['Message']
|
1351
|
+
reqid = response['Response']['RequestId']
|
1352
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1353
|
+
end
|
1354
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1355
|
+
raise e
|
1356
|
+
rescue StandardError => e
|
1357
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
# 修改最新评估风险项状态
|
1361
|
+
|
1362
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskProcessHistory.
|
1363
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskProcessHistoryRequest`
|
1364
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskProcessHistoryResponse`
|
1365
|
+
def DescribeDSPAAssessmentRiskProcessHistory(request)
|
1366
|
+
body = send_request('DescribeDSPAAssessmentRiskProcessHistory', request.serialize)
|
1367
|
+
response = JSON.parse(body)
|
1368
|
+
if response['Response'].key?('Error') == false
|
1369
|
+
model = DescribeDSPAAssessmentRiskProcessHistoryResponse.new
|
1370
|
+
model.deserialize(response['Response'])
|
1371
|
+
model
|
1372
|
+
else
|
1373
|
+
code = response['Response']['Error']['Code']
|
1374
|
+
message = response['Response']['Error']['Message']
|
1375
|
+
reqid = response['Response']['RequestId']
|
1376
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1377
|
+
end
|
1378
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1379
|
+
raise e
|
1380
|
+
rescue StandardError => e
|
1381
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# 风险项页面--查看评估模版详情
|
1385
|
+
|
1386
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskTemplateDetail.
|
1387
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskTemplateDetailRequest`
|
1388
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskTemplateDetailResponse`
|
1389
|
+
def DescribeDSPAAssessmentRiskTemplateDetail(request)
|
1390
|
+
body = send_request('DescribeDSPAAssessmentRiskTemplateDetail', request.serialize)
|
1391
|
+
response = JSON.parse(body)
|
1392
|
+
if response['Response'].key?('Error') == false
|
1393
|
+
model = DescribeDSPAAssessmentRiskTemplateDetailResponse.new
|
1394
|
+
model.deserialize(response['Response'])
|
1395
|
+
model
|
1396
|
+
else
|
1397
|
+
code = response['Response']['Error']['Code']
|
1398
|
+
message = response['Response']['Error']['Message']
|
1399
|
+
reqid = response['Response']['RequestId']
|
1400
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1401
|
+
end
|
1402
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1403
|
+
raise e
|
1404
|
+
rescue StandardError => e
|
1405
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# 风险模版页面--查询风险模版中的脆弱项配置
|
1409
|
+
|
1410
|
+
# @param request: Request instance for DescribeDSPAAssessmentRiskTemplateVulnerableList.
|
1411
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskTemplateVulnerableListRequest`
|
1412
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRiskTemplateVulnerableListResponse`
|
1413
|
+
def DescribeDSPAAssessmentRiskTemplateVulnerableList(request)
|
1414
|
+
body = send_request('DescribeDSPAAssessmentRiskTemplateVulnerableList', request.serialize)
|
1415
|
+
response = JSON.parse(body)
|
1416
|
+
if response['Response'].key?('Error') == false
|
1417
|
+
model = DescribeDSPAAssessmentRiskTemplateVulnerableListResponse.new
|
1418
|
+
model.deserialize(response['Response'])
|
1419
|
+
model
|
1420
|
+
else
|
1421
|
+
code = response['Response']['Error']['Code']
|
1422
|
+
message = response['Response']['Error']['Message']
|
1423
|
+
reqid = response['Response']['RequestId']
|
1424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1425
|
+
end
|
1426
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1427
|
+
raise e
|
1428
|
+
rescue StandardError => e
|
1429
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
# 获取DSPA评估风险项列表
|
1433
|
+
|
1434
|
+
# @param request: Request instance for DescribeDSPAAssessmentRisks.
|
1435
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRisksRequest`
|
1436
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentRisksResponse`
|
1437
|
+
def DescribeDSPAAssessmentRisks(request)
|
1438
|
+
body = send_request('DescribeDSPAAssessmentRisks', request.serialize)
|
1439
|
+
response = JSON.parse(body)
|
1440
|
+
if response['Response'].key?('Error') == false
|
1441
|
+
model = DescribeDSPAAssessmentRisksResponse.new
|
1442
|
+
model.deserialize(response['Response'])
|
1443
|
+
model
|
1444
|
+
else
|
1445
|
+
code = response['Response']['Error']['Code']
|
1446
|
+
message = response['Response']['Error']['Message']
|
1447
|
+
reqid = response['Response']['RequestId']
|
1448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1449
|
+
end
|
1450
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1451
|
+
raise e
|
1452
|
+
rescue StandardError => e
|
1453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
# 获取DSPA评估任务列表
|
1457
|
+
|
1458
|
+
# @param request: Request instance for DescribeDSPAAssessmentTasks.
|
1459
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTasksRequest`
|
1460
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTasksResponse`
|
1461
|
+
def DescribeDSPAAssessmentTasks(request)
|
1462
|
+
body = send_request('DescribeDSPAAssessmentTasks', request.serialize)
|
1463
|
+
response = JSON.parse(body)
|
1464
|
+
if response['Response'].key?('Error') == false
|
1465
|
+
model = DescribeDSPAAssessmentTasksResponse.new
|
1466
|
+
model.deserialize(response['Response'])
|
1467
|
+
model
|
1468
|
+
else
|
1469
|
+
code = response['Response']['Error']['Code']
|
1470
|
+
message = response['Response']['Error']['Message']
|
1471
|
+
reqid = response['Response']['RequestId']
|
1472
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1473
|
+
end
|
1474
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1475
|
+
raise e
|
1476
|
+
rescue StandardError => e
|
1477
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# 获取DSPA评估模版关联的评估控制项列表
|
1481
|
+
|
1482
|
+
# @param request: Request instance for DescribeDSPAAssessmentTemplateControlItems.
|
1483
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTemplateControlItemsRequest`
|
1484
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTemplateControlItemsResponse`
|
1485
|
+
def DescribeDSPAAssessmentTemplateControlItems(request)
|
1486
|
+
body = send_request('DescribeDSPAAssessmentTemplateControlItems', request.serialize)
|
1487
|
+
response = JSON.parse(body)
|
1488
|
+
if response['Response'].key?('Error') == false
|
1489
|
+
model = DescribeDSPAAssessmentTemplateControlItemsResponse.new
|
1490
|
+
model.deserialize(response['Response'])
|
1491
|
+
model
|
1492
|
+
else
|
1493
|
+
code = response['Response']['Error']['Code']
|
1494
|
+
message = response['Response']['Error']['Message']
|
1495
|
+
reqid = response['Response']['RequestId']
|
1496
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1497
|
+
end
|
1498
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1499
|
+
raise e
|
1500
|
+
rescue StandardError => e
|
1501
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
# 获取DSPA评估模板列表
|
1505
|
+
|
1506
|
+
# @param request: Request instance for DescribeDSPAAssessmentTemplates.
|
1507
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTemplatesRequest`
|
1508
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAAssessmentTemplatesResponse`
|
1509
|
+
def DescribeDSPAAssessmentTemplates(request)
|
1510
|
+
body = send_request('DescribeDSPAAssessmentTemplates', request.serialize)
|
1511
|
+
response = JSON.parse(body)
|
1512
|
+
if response['Response'].key?('Error') == false
|
1513
|
+
model = DescribeDSPAAssessmentTemplatesResponse.new
|
1514
|
+
model.deserialize(response['Response'])
|
1515
|
+
model
|
1516
|
+
else
|
1517
|
+
code = response['Response']['Error']['Code']
|
1518
|
+
message = response['Response']['Error']['Message']
|
1519
|
+
reqid = response['Response']['RequestId']
|
1520
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1521
|
+
end
|
1522
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1523
|
+
raise e
|
1524
|
+
rescue StandardError => e
|
1525
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
# 获取COS敏感数据资产桶列表
|
1529
|
+
|
1530
|
+
# @param request: Request instance for DescribeDSPACOSDataAssetBuckets.
|
1531
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetBucketsRequest`
|
1532
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetBucketsResponse`
|
1533
|
+
def DescribeDSPACOSDataAssetBuckets(request)
|
1534
|
+
body = send_request('DescribeDSPACOSDataAssetBuckets', request.serialize)
|
1535
|
+
response = JSON.parse(body)
|
1536
|
+
if response['Response'].key?('Error') == false
|
1537
|
+
model = DescribeDSPACOSDataAssetBucketsResponse.new
|
1538
|
+
model.deserialize(response['Response'])
|
1539
|
+
model
|
1540
|
+
else
|
1541
|
+
code = response['Response']['Error']['Code']
|
1542
|
+
message = response['Response']['Error']['Message']
|
1543
|
+
reqid = response['Response']['RequestId']
|
1544
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1545
|
+
end
|
1546
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1547
|
+
raise e
|
1548
|
+
rescue StandardError => e
|
1549
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1550
|
+
end
|
1551
|
+
|
1552
|
+
# 获取COS单个模板下的敏感数据资产
|
1553
|
+
|
1554
|
+
# @param request: Request instance for DescribeDSPACOSDataAssetByComplianceId.
|
1555
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetByComplianceIdRequest`
|
1556
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetByComplianceIdResponse`
|
1557
|
+
def DescribeDSPACOSDataAssetByComplianceId(request)
|
1558
|
+
body = send_request('DescribeDSPACOSDataAssetByComplianceId', request.serialize)
|
1559
|
+
response = JSON.parse(body)
|
1560
|
+
if response['Response'].key?('Error') == false
|
1561
|
+
model = DescribeDSPACOSDataAssetByComplianceIdResponse.new
|
1562
|
+
model.deserialize(response['Response'])
|
1563
|
+
model
|
1564
|
+
else
|
1565
|
+
code = response['Response']['Error']['Code']
|
1566
|
+
message = response['Response']['Error']['Message']
|
1567
|
+
reqid = response['Response']['RequestId']
|
1568
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1569
|
+
end
|
1570
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1571
|
+
raise e
|
1572
|
+
rescue StandardError => e
|
1573
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
# 获取COS分类分级数据资产详情
|
1577
|
+
|
1578
|
+
# @param request: Request instance for DescribeDSPACOSDataAssetDetail.
|
1579
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetDetailRequest`
|
1580
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDataAssetDetailResponse`
|
1581
|
+
def DescribeDSPACOSDataAssetDetail(request)
|
1582
|
+
body = send_request('DescribeDSPACOSDataAssetDetail', request.serialize)
|
1583
|
+
response = JSON.parse(body)
|
1584
|
+
if response['Response'].key?('Error') == false
|
1585
|
+
model = DescribeDSPACOSDataAssetDetailResponse.new
|
1586
|
+
model.deserialize(response['Response'])
|
1587
|
+
model
|
1588
|
+
else
|
1589
|
+
code = response['Response']['Error']['Code']
|
1590
|
+
message = response['Response']['Error']['Message']
|
1591
|
+
reqid = response['Response']['RequestId']
|
1592
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1593
|
+
end
|
1594
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1595
|
+
raise e
|
1596
|
+
rescue StandardError => e
|
1597
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
# 获取COS分类分级任务详情
|
1601
|
+
|
1602
|
+
# @param request: Request instance for DescribeDSPACOSDiscoveryTaskDetail.
|
1603
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskDetailRequest`
|
1604
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskDetailResponse`
|
1605
|
+
def DescribeDSPACOSDiscoveryTaskDetail(request)
|
1606
|
+
body = send_request('DescribeDSPACOSDiscoveryTaskDetail', request.serialize)
|
1607
|
+
response = JSON.parse(body)
|
1608
|
+
if response['Response'].key?('Error') == false
|
1609
|
+
model = DescribeDSPACOSDiscoveryTaskDetailResponse.new
|
1610
|
+
model.deserialize(response['Response'])
|
1611
|
+
model
|
1612
|
+
else
|
1613
|
+
code = response['Response']['Error']['Code']
|
1614
|
+
message = response['Response']['Error']['Message']
|
1615
|
+
reqid = response['Response']['RequestId']
|
1616
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1617
|
+
end
|
1618
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1619
|
+
raise e
|
1620
|
+
rescue StandardError => e
|
1621
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# 获取COS分类分级任务结果详情文件列表
|
1625
|
+
|
1626
|
+
# @param request: Request instance for DescribeDSPACOSDiscoveryTaskFiles.
|
1627
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskFilesRequest`
|
1628
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskFilesResponse`
|
1629
|
+
def DescribeDSPACOSDiscoveryTaskFiles(request)
|
1630
|
+
body = send_request('DescribeDSPACOSDiscoveryTaskFiles', request.serialize)
|
1631
|
+
response = JSON.parse(body)
|
1632
|
+
if response['Response'].key?('Error') == false
|
1633
|
+
model = DescribeDSPACOSDiscoveryTaskFilesResponse.new
|
1634
|
+
model.deserialize(response['Response'])
|
1635
|
+
model
|
1636
|
+
else
|
1637
|
+
code = response['Response']['Error']['Code']
|
1638
|
+
message = response['Response']['Error']['Message']
|
1639
|
+
reqid = response['Response']['RequestId']
|
1640
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1641
|
+
end
|
1642
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1643
|
+
raise e
|
1644
|
+
rescue StandardError => e
|
1645
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
# 获取COS分类分级任务结果,该接口只有在任务状态为以下状态时才支持结果正常查询:
|
1649
|
+
# 3 扫描成功,
|
1650
|
+
# 4 扫描失败
|
1651
|
+
|
1652
|
+
# @param request: Request instance for DescribeDSPACOSDiscoveryTaskResult.
|
1653
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskResultRequest`
|
1654
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTaskResultResponse`
|
1655
|
+
def DescribeDSPACOSDiscoveryTaskResult(request)
|
1656
|
+
body = send_request('DescribeDSPACOSDiscoveryTaskResult', request.serialize)
|
1657
|
+
response = JSON.parse(body)
|
1658
|
+
if response['Response'].key?('Error') == false
|
1659
|
+
model = DescribeDSPACOSDiscoveryTaskResultResponse.new
|
1660
|
+
model.deserialize(response['Response'])
|
1661
|
+
model
|
1662
|
+
else
|
1663
|
+
code = response['Response']['Error']['Code']
|
1664
|
+
message = response['Response']['Error']['Message']
|
1665
|
+
reqid = response['Response']['RequestId']
|
1666
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1667
|
+
end
|
1668
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1669
|
+
raise e
|
1670
|
+
rescue StandardError => e
|
1671
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# 获取COS分类分级任务列表
|
1675
|
+
|
1676
|
+
# @param request: Request instance for DescribeDSPACOSDiscoveryTasks.
|
1677
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTasksRequest`
|
1678
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSDiscoveryTasksResponse`
|
1679
|
+
def DescribeDSPACOSDiscoveryTasks(request)
|
1680
|
+
body = send_request('DescribeDSPACOSDiscoveryTasks', request.serialize)
|
1681
|
+
response = JSON.parse(body)
|
1682
|
+
if response['Response'].key?('Error') == false
|
1683
|
+
model = DescribeDSPACOSDiscoveryTasksResponse.new
|
1684
|
+
model.deserialize(response['Response'])
|
1685
|
+
model
|
1686
|
+
else
|
1687
|
+
code = response['Response']['Error']['Code']
|
1688
|
+
message = response['Response']['Error']['Message']
|
1689
|
+
reqid = response['Response']['RequestId']
|
1690
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1691
|
+
end
|
1692
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1693
|
+
raise e
|
1694
|
+
rescue StandardError => e
|
1695
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
# 获取COS分类分级任务结果详情,该接口只有在任务状态为时才支持结果正确查询:
|
1699
|
+
# 3 扫描成功
|
1700
|
+
|
1701
|
+
# @param request: Request instance for DescribeDSPACOSTaskResultDetail.
|
1702
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSTaskResultDetailRequest`
|
1703
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACOSTaskResultDetailResponse`
|
1704
|
+
def DescribeDSPACOSTaskResultDetail(request)
|
1705
|
+
body = send_request('DescribeDSPACOSTaskResultDetail', request.serialize)
|
1706
|
+
response = JSON.parse(body)
|
1707
|
+
if response['Response'].key?('Error') == false
|
1708
|
+
model = DescribeDSPACOSTaskResultDetailResponse.new
|
1709
|
+
model.deserialize(response['Response'])
|
1710
|
+
model
|
1711
|
+
else
|
1712
|
+
code = response['Response']['Error']['Code']
|
1713
|
+
message = response['Response']['Error']['Message']
|
1714
|
+
reqid = response['Response']['RequestId']
|
1715
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1716
|
+
end
|
1717
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1718
|
+
raise e
|
1719
|
+
rescue StandardError => e
|
1720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
# 获取敏感数据分类列表
|
1724
|
+
|
1725
|
+
# @param request: Request instance for DescribeDSPACategories.
|
1726
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoriesRequest`
|
1727
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoriesResponse`
|
1728
|
+
def DescribeDSPACategories(request)
|
1729
|
+
body = send_request('DescribeDSPACategories', request.serialize)
|
1730
|
+
response = JSON.parse(body)
|
1731
|
+
if response['Response'].key?('Error') == false
|
1732
|
+
model = DescribeDSPACategoriesResponse.new
|
1733
|
+
model.deserialize(response['Response'])
|
1734
|
+
model
|
1735
|
+
else
|
1736
|
+
code = response['Response']['Error']['Code']
|
1737
|
+
message = response['Response']['Error']['Message']
|
1738
|
+
reqid = response['Response']['RequestId']
|
1739
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1740
|
+
end
|
1741
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1742
|
+
raise e
|
1743
|
+
rescue StandardError => e
|
1744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1745
|
+
end
|
1746
|
+
|
1747
|
+
# 获取分类规则统计信息
|
1748
|
+
|
1749
|
+
# @param request: Request instance for DescribeDSPACategoryRuleStatistic.
|
1750
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryRuleStatisticRequest`
|
1751
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryRuleStatisticResponse`
|
1752
|
+
def DescribeDSPACategoryRuleStatistic(request)
|
1753
|
+
body = send_request('DescribeDSPACategoryRuleStatistic', request.serialize)
|
1754
|
+
response = JSON.parse(body)
|
1755
|
+
if response['Response'].key?('Error') == false
|
1756
|
+
model = DescribeDSPACategoryRuleStatisticResponse.new
|
1757
|
+
model.deserialize(response['Response'])
|
1758
|
+
model
|
1759
|
+
else
|
1760
|
+
code = response['Response']['Error']['Code']
|
1761
|
+
message = response['Response']['Error']['Message']
|
1762
|
+
reqid = response['Response']['RequestId']
|
1763
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1764
|
+
end
|
1765
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1766
|
+
raise e
|
1767
|
+
rescue StandardError => e
|
1768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# 获取合规组分类规则信息
|
1772
|
+
|
1773
|
+
# @param request: Request instance for DescribeDSPACategoryRules.
|
1774
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryRulesRequest`
|
1775
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryRulesResponse`
|
1776
|
+
def DescribeDSPACategoryRules(request)
|
1777
|
+
body = send_request('DescribeDSPACategoryRules', request.serialize)
|
1778
|
+
response = JSON.parse(body)
|
1779
|
+
if response['Response'].key?('Error') == false
|
1780
|
+
model = DescribeDSPACategoryRulesResponse.new
|
1781
|
+
model.deserialize(response['Response'])
|
1782
|
+
model
|
1783
|
+
else
|
1784
|
+
code = response['Response']['Error']['Code']
|
1785
|
+
message = response['Response']['Error']['Message']
|
1786
|
+
reqid = response['Response']['RequestId']
|
1787
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1788
|
+
end
|
1789
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1790
|
+
raise e
|
1791
|
+
rescue StandardError => e
|
1792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
# 获取分类树信息
|
1796
|
+
|
1797
|
+
# @param request: Request instance for DescribeDSPACategoryTree.
|
1798
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryTreeRequest`
|
1799
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryTreeResponse`
|
1800
|
+
def DescribeDSPACategoryTree(request)
|
1801
|
+
body = send_request('DescribeDSPACategoryTree', request.serialize)
|
1802
|
+
response = JSON.parse(body)
|
1803
|
+
if response['Response'].key?('Error') == false
|
1804
|
+
model = DescribeDSPACategoryTreeResponse.new
|
1805
|
+
model.deserialize(response['Response'])
|
1806
|
+
model
|
1807
|
+
else
|
1808
|
+
code = response['Response']['Error']['Code']
|
1809
|
+
message = response['Response']['Error']['Message']
|
1810
|
+
reqid = response['Response']['RequestId']
|
1811
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1812
|
+
end
|
1813
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1814
|
+
raise e
|
1815
|
+
rescue StandardError => e
|
1816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
# 获取分类规则树信息
|
1820
|
+
|
1821
|
+
# @param request: Request instance for DescribeDSPACategoryTreeWithRules.
|
1822
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryTreeWithRulesRequest`
|
1823
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPACategoryTreeWithRulesResponse`
|
1824
|
+
def DescribeDSPACategoryTreeWithRules(request)
|
1825
|
+
body = send_request('DescribeDSPACategoryTreeWithRules', request.serialize)
|
1826
|
+
response = JSON.parse(body)
|
1827
|
+
if response['Response'].key?('Error') == false
|
1828
|
+
model = DescribeDSPACategoryTreeWithRulesResponse.new
|
1829
|
+
model.deserialize(response['Response'])
|
1830
|
+
model
|
1831
|
+
else
|
1832
|
+
code = response['Response']['Error']['Code']
|
1833
|
+
message = response['Response']['Error']['Message']
|
1834
|
+
reqid = response['Response']['RequestId']
|
1835
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1836
|
+
end
|
1837
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1838
|
+
raise e
|
1839
|
+
rescue StandardError => e
|
1840
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
# 获取模板详情信息
|
1844
|
+
|
1845
|
+
# @param request: Request instance for DescribeDSPAComplianceGroupDetail.
|
1846
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceGroupDetailRequest`
|
1847
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceGroupDetailResponse`
|
1848
|
+
def DescribeDSPAComplianceGroupDetail(request)
|
1849
|
+
body = send_request('DescribeDSPAComplianceGroupDetail', request.serialize)
|
1850
|
+
response = JSON.parse(body)
|
1851
|
+
if response['Response'].key?('Error') == false
|
1852
|
+
model = DescribeDSPAComplianceGroupDetailResponse.new
|
1853
|
+
model.deserialize(response['Response'])
|
1854
|
+
model
|
1855
|
+
else
|
1856
|
+
code = response['Response']['Error']['Code']
|
1857
|
+
message = response['Response']['Error']['Message']
|
1858
|
+
reqid = response['Response']['RequestId']
|
1859
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1860
|
+
end
|
1861
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1862
|
+
raise e
|
1863
|
+
rescue StandardError => e
|
1864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
# 获取分类分级模板列表
|
1868
|
+
|
1869
|
+
# @param request: Request instance for DescribeDSPAComplianceGroups.
|
1870
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceGroupsRequest`
|
1871
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceGroupsResponse`
|
1872
|
+
def DescribeDSPAComplianceGroups(request)
|
1873
|
+
body = send_request('DescribeDSPAComplianceGroups', request.serialize)
|
1874
|
+
response = JSON.parse(body)
|
1875
|
+
if response['Response'].key?('Error') == false
|
1876
|
+
model = DescribeDSPAComplianceGroupsResponse.new
|
1877
|
+
model.deserialize(response['Response'])
|
1878
|
+
model
|
1879
|
+
else
|
1880
|
+
code = response['Response']['Error']['Code']
|
1881
|
+
message = response['Response']['Error']['Message']
|
1882
|
+
reqid = response['Response']['RequestId']
|
1883
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1884
|
+
end
|
1885
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1886
|
+
raise e
|
1887
|
+
rescue StandardError => e
|
1888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
# 获取模板更新提示信息
|
1892
|
+
|
1893
|
+
# @param request: Request instance for DescribeDSPAComplianceUpdateNotification.
|
1894
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceUpdateNotificationRequest`
|
1895
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAComplianceUpdateNotificationResponse`
|
1896
|
+
def DescribeDSPAComplianceUpdateNotification(request)
|
1897
|
+
body = send_request('DescribeDSPAComplianceUpdateNotification', request.serialize)
|
1898
|
+
response = JSON.parse(body)
|
1899
|
+
if response['Response'].key?('Error') == false
|
1900
|
+
model = DescribeDSPAComplianceUpdateNotificationResponse.new
|
1901
|
+
model.deserialize(response['Response'])
|
1902
|
+
model
|
1903
|
+
else
|
1904
|
+
code = response['Response']['Error']['Code']
|
1905
|
+
message = response['Response']['Error']['Message']
|
1906
|
+
reqid = response['Response']['RequestId']
|
1907
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1908
|
+
end
|
1909
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1910
|
+
raise e
|
1911
|
+
rescue StandardError => e
|
1912
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1913
|
+
end
|
1914
|
+
|
1915
|
+
# 获取数据源的数据库信息
|
1916
|
+
|
1917
|
+
# @param request: Request instance for DescribeDSPADataSourceDbInfo.
|
1918
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADataSourceDbInfoRequest`
|
1919
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADataSourceDbInfoResponse`
|
1920
|
+
def DescribeDSPADataSourceDbInfo(request)
|
1921
|
+
body = send_request('DescribeDSPADataSourceDbInfo', request.serialize)
|
1922
|
+
response = JSON.parse(body)
|
1923
|
+
if response['Response'].key?('Error') == false
|
1924
|
+
model = DescribeDSPADataSourceDbInfoResponse.new
|
1925
|
+
model.deserialize(response['Response'])
|
1926
|
+
model
|
1927
|
+
else
|
1928
|
+
code = response['Response']['Error']['Code']
|
1929
|
+
message = response['Response']['Error']['Message']
|
1930
|
+
reqid = response['Response']['RequestId']
|
1931
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1932
|
+
end
|
1933
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1934
|
+
raise e
|
1935
|
+
rescue StandardError => e
|
1936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1937
|
+
end
|
1938
|
+
|
1939
|
+
# 获取分类分级规则列表
|
1940
|
+
|
1941
|
+
# @param request: Request instance for DescribeDSPADiscoveryRules.
|
1942
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryRulesRequest`
|
1943
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryRulesResponse`
|
1944
|
+
def DescribeDSPADiscoveryRules(request)
|
1945
|
+
body = send_request('DescribeDSPADiscoveryRules', request.serialize)
|
1946
|
+
response = JSON.parse(body)
|
1947
|
+
if response['Response'].key?('Error') == false
|
1948
|
+
model = DescribeDSPADiscoveryRulesResponse.new
|
1949
|
+
model.deserialize(response['Response'])
|
1950
|
+
model
|
1951
|
+
else
|
1952
|
+
code = response['Response']['Error']['Code']
|
1953
|
+
message = response['Response']['Error']['Message']
|
1954
|
+
reqid = response['Response']['RequestId']
|
1955
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1956
|
+
end
|
1957
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1958
|
+
raise e
|
1959
|
+
rescue StandardError => e
|
1960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
# 用于查询该用户是否已开通分类分级服务
|
1964
|
+
|
1965
|
+
# @param request: Request instance for DescribeDSPADiscoveryServiceStatus.
|
1966
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryServiceStatusRequest`
|
1967
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryServiceStatusResponse`
|
1968
|
+
def DescribeDSPADiscoveryServiceStatus(request)
|
1969
|
+
body = send_request('DescribeDSPADiscoveryServiceStatus', request.serialize)
|
1970
|
+
response = JSON.parse(body)
|
1971
|
+
if response['Response'].key?('Error') == false
|
1972
|
+
model = DescribeDSPADiscoveryServiceStatusResponse.new
|
1973
|
+
model.deserialize(response['Response'])
|
1974
|
+
model
|
1975
|
+
else
|
1976
|
+
code = response['Response']['Error']['Code']
|
1977
|
+
message = response['Response']['Error']['Message']
|
1978
|
+
reqid = response['Response']['RequestId']
|
1979
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1980
|
+
end
|
1981
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1982
|
+
raise e
|
1983
|
+
rescue StandardError => e
|
1984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1985
|
+
end
|
1986
|
+
|
1987
|
+
# 获取分类分级任务详情
|
1988
|
+
|
1989
|
+
# @param request: Request instance for DescribeDSPADiscoveryTaskDetail.
|
1990
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskDetailRequest`
|
1991
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskDetailResponse`
|
1992
|
+
def DescribeDSPADiscoveryTaskDetail(request)
|
1993
|
+
body = send_request('DescribeDSPADiscoveryTaskDetail', request.serialize)
|
1994
|
+
response = JSON.parse(body)
|
1995
|
+
if response['Response'].key?('Error') == false
|
1996
|
+
model = DescribeDSPADiscoveryTaskDetailResponse.new
|
1997
|
+
model.deserialize(response['Response'])
|
1998
|
+
model
|
1999
|
+
else
|
2000
|
+
code = response['Response']['Error']['Code']
|
2001
|
+
message = response['Response']['Error']['Message']
|
2002
|
+
reqid = response['Response']['RequestId']
|
2003
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2004
|
+
end
|
2005
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2006
|
+
raise e
|
2007
|
+
rescue StandardError => e
|
2008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
# 获取分类分级任务结果,该接口只有在任务状态为以下状态时才支持结果正常查询:
|
2012
|
+
# 3 扫描成功,
|
2013
|
+
# 4 扫描失败
|
2014
|
+
|
2015
|
+
# @param request: Request instance for DescribeDSPADiscoveryTaskResult.
|
2016
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskResultRequest`
|
2017
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskResultResponse`
|
2018
|
+
def DescribeDSPADiscoveryTaskResult(request)
|
2019
|
+
body = send_request('DescribeDSPADiscoveryTaskResult', request.serialize)
|
2020
|
+
response = JSON.parse(body)
|
2021
|
+
if response['Response'].key?('Error') == false
|
2022
|
+
model = DescribeDSPADiscoveryTaskResultResponse.new
|
2023
|
+
model.deserialize(response['Response'])
|
2024
|
+
model
|
2025
|
+
else
|
2026
|
+
code = response['Response']['Error']['Code']
|
2027
|
+
message = response['Response']['Error']['Message']
|
2028
|
+
reqid = response['Response']['RequestId']
|
2029
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2030
|
+
end
|
2031
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2032
|
+
raise e
|
2033
|
+
rescue StandardError => e
|
2034
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
# 获取分类分级任务结果详情,该接口只有在任务状态为时才支持结果正确查询:
|
2038
|
+
# 3 扫描成功
|
2039
|
+
|
2040
|
+
# @param request: Request instance for DescribeDSPADiscoveryTaskResultDetail.
|
2041
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskResultDetailRequest`
|
2042
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskResultDetailResponse`
|
2043
|
+
def DescribeDSPADiscoveryTaskResultDetail(request)
|
2044
|
+
body = send_request('DescribeDSPADiscoveryTaskResultDetail', request.serialize)
|
2045
|
+
response = JSON.parse(body)
|
2046
|
+
if response['Response'].key?('Error') == false
|
2047
|
+
model = DescribeDSPADiscoveryTaskResultDetailResponse.new
|
2048
|
+
model.deserialize(response['Response'])
|
2049
|
+
model
|
2050
|
+
else
|
2051
|
+
code = response['Response']['Error']['Code']
|
2052
|
+
message = response['Response']['Error']['Message']
|
2053
|
+
reqid = response['Response']['RequestId']
|
2054
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2055
|
+
end
|
2056
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2057
|
+
raise e
|
2058
|
+
rescue StandardError => e
|
2059
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
# 获取分级分级扫描的表集合
|
2063
|
+
|
2064
|
+
# @param request: Request instance for DescribeDSPADiscoveryTaskTables.
|
2065
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskTablesRequest`
|
2066
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPADiscoveryTaskTablesResponse`
|
2067
|
+
def DescribeDSPADiscoveryTaskTables(request)
|
2068
|
+
body = send_request('DescribeDSPADiscoveryTaskTables', request.serialize)
|
2069
|
+
response = JSON.parse(body)
|
2070
|
+
if response['Response'].key?('Error') == false
|
2071
|
+
model = DescribeDSPADiscoveryTaskTablesResponse.new
|
2072
|
+
model.deserialize(response['Response'])
|
2073
|
+
model
|
2074
|
+
else
|
2075
|
+
code = response['Response']['Error']['Code']
|
2076
|
+
message = response['Response']['Error']['Message']
|
2077
|
+
reqid = response['Response']['RequestId']
|
2078
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2079
|
+
end
|
2080
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2081
|
+
raise e
|
2082
|
+
rescue StandardError => e
|
2083
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2084
|
+
end
|
2085
|
+
|
2086
|
+
# 根据合规组id,去查询ES的概览页统计数据
|
2087
|
+
|
2088
|
+
# @param request: Request instance for DescribeDSPAESDataAssetByComplianceId.
|
2089
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataAssetByComplianceIdRequest`
|
2090
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataAssetByComplianceIdResponse`
|
2091
|
+
def DescribeDSPAESDataAssetByComplianceId(request)
|
2092
|
+
body = send_request('DescribeDSPAESDataAssetByComplianceId', request.serialize)
|
2093
|
+
response = JSON.parse(body)
|
2094
|
+
if response['Response'].key?('Error') == false
|
2095
|
+
model = DescribeDSPAESDataAssetByComplianceIdResponse.new
|
2096
|
+
model.deserialize(response['Response'])
|
2097
|
+
model
|
2098
|
+
else
|
2099
|
+
code = response['Response']['Error']['Code']
|
2100
|
+
message = response['Response']['Error']['Message']
|
2101
|
+
reqid = response['Response']['RequestId']
|
2102
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2103
|
+
end
|
2104
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2105
|
+
raise e
|
2106
|
+
rescue StandardError => e
|
2107
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2108
|
+
end
|
2109
|
+
|
2110
|
+
# 根据合规组id,去查询ES的概览页下的统计列表数据
|
2111
|
+
|
2112
|
+
# @param request: Request instance for DescribeDSPAESDataAssetDetail.
|
2113
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataAssetDetailRequest`
|
2114
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataAssetDetailResponse`
|
2115
|
+
def DescribeDSPAESDataAssetDetail(request)
|
2116
|
+
body = send_request('DescribeDSPAESDataAssetDetail', request.serialize)
|
2117
|
+
response = JSON.parse(body)
|
2118
|
+
if response['Response'].key?('Error') == false
|
2119
|
+
model = DescribeDSPAESDataAssetDetailResponse.new
|
2120
|
+
model.deserialize(response['Response'])
|
2121
|
+
model
|
2122
|
+
else
|
2123
|
+
code = response['Response']['Error']['Code']
|
2124
|
+
message = response['Response']['Error']['Message']
|
2125
|
+
reqid = response['Response']['RequestId']
|
2126
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2127
|
+
end
|
2128
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2129
|
+
raise e
|
2130
|
+
rescue StandardError => e
|
2131
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2132
|
+
end
|
2133
|
+
|
2134
|
+
# 获取ES扫描结果数据样本
|
2135
|
+
|
2136
|
+
# @param request: Request instance for DescribeDSPAESDataSample.
|
2137
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataSampleRequest`
|
2138
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDataSampleResponse`
|
2139
|
+
def DescribeDSPAESDataSample(request)
|
2140
|
+
body = send_request('DescribeDSPAESDataSample', request.serialize)
|
2141
|
+
response = JSON.parse(body)
|
2142
|
+
if response['Response'].key?('Error') == false
|
2143
|
+
model = DescribeDSPAESDataSampleResponse.new
|
2144
|
+
model.deserialize(response['Response'])
|
2145
|
+
model
|
2146
|
+
else
|
2147
|
+
code = response['Response']['Error']['Code']
|
2148
|
+
message = response['Response']['Error']['Message']
|
2149
|
+
reqid = response['Response']['RequestId']
|
2150
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2151
|
+
end
|
2152
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2153
|
+
raise e
|
2154
|
+
rescue StandardError => e
|
2155
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2156
|
+
end
|
2157
|
+
|
2158
|
+
# 获取ES的分类分级任务结果详情,该接口只有在任务状态为时才支持结果正确查询:
|
2159
|
+
# 3 扫描成功
|
2160
|
+
|
2161
|
+
# @param request: Request instance for DescribeDSPAESDiscoveryTaskResultDetail.
|
2162
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDiscoveryTaskResultDetailRequest`
|
2163
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPAESDiscoveryTaskResultDetailResponse`
|
2164
|
+
def DescribeDSPAESDiscoveryTaskResultDetail(request)
|
2165
|
+
body = send_request('DescribeDSPAESDiscoveryTaskResultDetail', request.serialize)
|
2166
|
+
response = JSON.parse(body)
|
2167
|
+
if response['Response'].key?('Error') == false
|
2168
|
+
model = DescribeDSPAESDiscoveryTaskResultDetailResponse.new
|
2169
|
+
model.deserialize(response['Response'])
|
2170
|
+
model
|
2171
|
+
else
|
2172
|
+
code = response['Response']['Error']['Code']
|
2173
|
+
message = response['Response']['Error']['Message']
|
2174
|
+
reqid = response['Response']['RequestId']
|
2175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2176
|
+
end
|
2177
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2178
|
+
raise e
|
2179
|
+
rescue StandardError => e
|
2180
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2181
|
+
end
|
2182
|
+
|
2183
|
+
# 获取分级详情
|
2184
|
+
|
2185
|
+
# @param request: Request instance for DescribeDSPALevelDetail.
|
2186
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPALevelDetailRequest`
|
2187
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPALevelDetailResponse`
|
2188
|
+
def DescribeDSPALevelDetail(request)
|
2189
|
+
body = send_request('DescribeDSPALevelDetail', request.serialize)
|
2190
|
+
response = JSON.parse(body)
|
2191
|
+
if response['Response'].key?('Error') == false
|
2192
|
+
model = DescribeDSPALevelDetailResponse.new
|
2193
|
+
model.deserialize(response['Response'])
|
2194
|
+
model
|
2195
|
+
else
|
2196
|
+
code = response['Response']['Error']['Code']
|
2197
|
+
message = response['Response']['Error']['Message']
|
2198
|
+
reqid = response['Response']['RequestId']
|
2199
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2200
|
+
end
|
2201
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2202
|
+
raise e
|
2203
|
+
rescue StandardError => e
|
2204
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2205
|
+
end
|
2206
|
+
|
2207
|
+
# 获取分级列表,限制100个 不分页返回
|
2208
|
+
|
2209
|
+
# @param request: Request instance for DescribeDSPALevelGroups.
|
2210
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPALevelGroupsRequest`
|
2211
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPALevelGroupsResponse`
|
2212
|
+
def DescribeDSPALevelGroups(request)
|
2213
|
+
body = send_request('DescribeDSPALevelGroups', request.serialize)
|
2214
|
+
response = JSON.parse(body)
|
2215
|
+
if response['Response'].key?('Error') == false
|
2216
|
+
model = DescribeDSPALevelGroupsResponse.new
|
2217
|
+
model.deserialize(response['Response'])
|
2218
|
+
model
|
2219
|
+
else
|
2220
|
+
code = response['Response']['Error']['Code']
|
2221
|
+
message = response['Response']['Error']['Message']
|
2222
|
+
reqid = response['Response']['RequestId']
|
2223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2224
|
+
end
|
2225
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2226
|
+
raise e
|
2227
|
+
rescue StandardError => e
|
2228
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2229
|
+
end
|
2230
|
+
|
2231
|
+
# 获取单个合规组下的RDB关系数据库分类分级数据资产
|
2232
|
+
|
2233
|
+
# @param request: Request instance for DescribeDSPARDBDataAssetByComplianceId.
|
2234
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPARDBDataAssetByComplianceIdRequest`
|
2235
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPARDBDataAssetByComplianceIdResponse`
|
2236
|
+
def DescribeDSPARDBDataAssetByComplianceId(request)
|
2237
|
+
body = send_request('DescribeDSPARDBDataAssetByComplianceId', request.serialize)
|
2238
|
+
response = JSON.parse(body)
|
2239
|
+
if response['Response'].key?('Error') == false
|
2240
|
+
model = DescribeDSPARDBDataAssetByComplianceIdResponse.new
|
2241
|
+
model.deserialize(response['Response'])
|
2242
|
+
model
|
2243
|
+
else
|
2244
|
+
code = response['Response']['Error']['Code']
|
2245
|
+
message = response['Response']['Error']['Message']
|
2246
|
+
reqid = response['Response']['RequestId']
|
2247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2248
|
+
end
|
2249
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2250
|
+
raise e
|
2251
|
+
rescue StandardError => e
|
2252
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
# 获取RDB关系数据库分类分级资产详情
|
2256
|
+
|
2257
|
+
# @param request: Request instance for DescribeDSPARDBDataAssetDetail.
|
2258
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPARDBDataAssetDetailRequest`
|
2259
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPARDBDataAssetDetailResponse`
|
2260
|
+
def DescribeDSPARDBDataAssetDetail(request)
|
2261
|
+
body = send_request('DescribeDSPARDBDataAssetDetail', request.serialize)
|
2262
|
+
response = JSON.parse(body)
|
2263
|
+
if response['Response'].key?('Error') == false
|
2264
|
+
model = DescribeDSPARDBDataAssetDetailResponse.new
|
2265
|
+
model.deserialize(response['Response'])
|
2266
|
+
model
|
2267
|
+
else
|
2268
|
+
code = response['Response']['Error']['Code']
|
2269
|
+
message = response['Response']['Error']['Message']
|
2270
|
+
reqid = response['Response']['RequestId']
|
2271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2272
|
+
end
|
2273
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2274
|
+
raise e
|
2275
|
+
rescue StandardError => e
|
2276
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2277
|
+
end
|
2278
|
+
|
2279
|
+
# 拉取DSPA支持的Meta元数据类型,返回包括:元数据类型,支持的元数据地域信息
|
2280
|
+
|
2281
|
+
# @param request: Request instance for DescribeDSPASupportedMetas.
|
2282
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPASupportedMetasRequest`
|
2283
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPASupportedMetasResponse`
|
2284
|
+
def DescribeDSPASupportedMetas(request)
|
2285
|
+
body = send_request('DescribeDSPASupportedMetas', request.serialize)
|
2286
|
+
response = JSON.parse(body)
|
2287
|
+
if response['Response'].key?('Error') == false
|
2288
|
+
model = DescribeDSPASupportedMetasResponse.new
|
2289
|
+
model.deserialize(response['Response'])
|
2290
|
+
model
|
2291
|
+
else
|
2292
|
+
code = response['Response']['Error']['Code']
|
2293
|
+
message = response['Response']['Error']['Message']
|
2294
|
+
reqid = response['Response']['RequestId']
|
2295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2296
|
+
end
|
2297
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2298
|
+
raise e
|
2299
|
+
rescue StandardError => e
|
2300
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2301
|
+
end
|
2302
|
+
|
2303
|
+
# 获取扫描结果数据样本
|
2304
|
+
|
2305
|
+
# @param request: Request instance for DescribeDSPATaskResultDataSample.
|
2306
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPATaskResultDataSampleRequest`
|
2307
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeDSPATaskResultDataSampleResponse`
|
2308
|
+
def DescribeDSPATaskResultDataSample(request)
|
2309
|
+
body = send_request('DescribeDSPATaskResultDataSample', request.serialize)
|
2310
|
+
response = JSON.parse(body)
|
2311
|
+
if response['Response'].key?('Error') == false
|
2312
|
+
model = DescribeDSPATaskResultDataSampleResponse.new
|
2313
|
+
model.deserialize(response['Response'])
|
2314
|
+
model
|
2315
|
+
else
|
2316
|
+
code = response['Response']['Error']['Code']
|
2317
|
+
message = response['Response']['Error']['Message']
|
2318
|
+
reqid = response['Response']['RequestId']
|
2319
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2320
|
+
end
|
2321
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2322
|
+
raise e
|
2323
|
+
rescue StandardError => e
|
2324
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2325
|
+
end
|
2326
|
+
|
2327
|
+
# 数据资产报告-查询es的敏感资产报告,包含(数据库资产,设敏级别数据库top10,资产详情)
|
2328
|
+
|
2329
|
+
# @param request: Request instance for DescribeESAssetSensitiveDistribution.
|
2330
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeESAssetSensitiveDistributionRequest`
|
2331
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeESAssetSensitiveDistributionResponse`
|
2332
|
+
def DescribeESAssetSensitiveDistribution(request)
|
2333
|
+
body = send_request('DescribeESAssetSensitiveDistribution', request.serialize)
|
2334
|
+
response = JSON.parse(body)
|
2335
|
+
if response['Response'].key?('Error') == false
|
2336
|
+
model = DescribeESAssetSensitiveDistributionResponse.new
|
2337
|
+
model.deserialize(response['Response'])
|
2338
|
+
model
|
2339
|
+
else
|
2340
|
+
code = response['Response']['Error']['Code']
|
2341
|
+
message = response['Response']['Error']['Message']
|
2342
|
+
reqid = response['Response']['RequestId']
|
2343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2344
|
+
end
|
2345
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2346
|
+
raise e
|
2347
|
+
rescue StandardError => e
|
2348
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
# 获取导出任务结果
|
2352
|
+
|
2353
|
+
# @param request: Request instance for DescribeExportTaskResult.
|
2354
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeExportTaskResultRequest`
|
2355
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeExportTaskResultResponse`
|
2356
|
+
def DescribeExportTaskResult(request)
|
2357
|
+
body = send_request('DescribeExportTaskResult', request.serialize)
|
2358
|
+
response = JSON.parse(body)
|
2359
|
+
if response['Response'].key?('Error') == false
|
2360
|
+
model = DescribeExportTaskResultResponse.new
|
2361
|
+
model.deserialize(response['Response'])
|
2362
|
+
model
|
2363
|
+
else
|
2364
|
+
code = response['Response']['Error']['Code']
|
2365
|
+
message = response['Response']['Error']['Message']
|
2366
|
+
reqid = response['Response']['RequestId']
|
2367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2368
|
+
end
|
2369
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2370
|
+
raise e
|
2371
|
+
rescue StandardError => e
|
2372
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2373
|
+
end
|
2374
|
+
|
2375
|
+
# 查询标准下所有叶子节点分类
|
2376
|
+
|
2377
|
+
# @param request: Request instance for DescribeLeafClassification.
|
2378
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeLeafClassificationRequest`
|
2379
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeLeafClassificationResponse`
|
2380
|
+
def DescribeLeafClassification(request)
|
2381
|
+
body = send_request('DescribeLeafClassification', request.serialize)
|
2382
|
+
response = JSON.parse(body)
|
2383
|
+
if response['Response'].key?('Error') == false
|
2384
|
+
model = DescribeLeafClassificationResponse.new
|
2385
|
+
model.deserialize(response['Response'])
|
2386
|
+
model
|
2387
|
+
else
|
2388
|
+
code = response['Response']['Error']['Code']
|
2389
|
+
message = response['Response']['Error']['Message']
|
2390
|
+
reqid = response['Response']['RequestId']
|
2391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2392
|
+
end
|
2393
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2394
|
+
raise e
|
2395
|
+
rescue StandardError => e
|
2396
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2397
|
+
end
|
2398
|
+
|
2399
|
+
# 数据资产报告-查询mongo 的敏感资产报告,包含(数据库资产,设敏级别数据库top10,资产详情)
|
2400
|
+
|
2401
|
+
# @param request: Request instance for DescribeMongoAssetSensitiveDistribution.
|
2402
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeMongoAssetSensitiveDistributionRequest`
|
2403
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeMongoAssetSensitiveDistributionResponse`
|
2404
|
+
def DescribeMongoAssetSensitiveDistribution(request)
|
2405
|
+
body = send_request('DescribeMongoAssetSensitiveDistribution', request.serialize)
|
2406
|
+
response = JSON.parse(body)
|
2407
|
+
if response['Response'].key?('Error') == false
|
2408
|
+
model = DescribeMongoAssetSensitiveDistributionResponse.new
|
2409
|
+
model.deserialize(response['Response'])
|
2410
|
+
model
|
2411
|
+
else
|
2412
|
+
code = response['Response']['Error']['Code']
|
2413
|
+
message = response['Response']['Error']['Message']
|
2414
|
+
reqid = response['Response']['RequestId']
|
2415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2416
|
+
end
|
2417
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2418
|
+
raise e
|
2419
|
+
rescue StandardError => e
|
2420
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2421
|
+
end
|
2422
|
+
|
2423
|
+
# 数据资产报告-查询rbd 的敏感资产报告,包含(数据库资产,设敏级别数据库top10,资产详情)
|
2424
|
+
|
2425
|
+
# @param request: Request instance for DescribeRDBAssetSensitiveDistribution.
|
2426
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeRDBAssetSensitiveDistributionRequest`
|
2427
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeRDBAssetSensitiveDistributionResponse`
|
2428
|
+
def DescribeRDBAssetSensitiveDistribution(request)
|
2429
|
+
body = send_request('DescribeRDBAssetSensitiveDistribution', request.serialize)
|
2430
|
+
response = JSON.parse(body)
|
2431
|
+
if response['Response'].key?('Error') == false
|
2432
|
+
model = DescribeRDBAssetSensitiveDistributionResponse.new
|
2433
|
+
model.deserialize(response['Response'])
|
2434
|
+
model
|
2435
|
+
else
|
2436
|
+
code = response['Response']['Error']['Code']
|
2437
|
+
message = response['Response']['Error']['Message']
|
2438
|
+
reqid = response['Response']['RequestId']
|
2439
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2440
|
+
end
|
2441
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2442
|
+
raise e
|
2443
|
+
rescue StandardError => e
|
2444
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2445
|
+
end
|
2446
|
+
|
2447
|
+
# 获取报表下载链接
|
2448
|
+
|
2449
|
+
# @param request: Request instance for DescribeReportTaskDownloadUrl.
|
2450
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeReportTaskDownloadUrlRequest`
|
2451
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeReportTaskDownloadUrlResponse`
|
2452
|
+
def DescribeReportTaskDownloadUrl(request)
|
2453
|
+
body = send_request('DescribeReportTaskDownloadUrl', request.serialize)
|
2454
|
+
response = JSON.parse(body)
|
2455
|
+
if response['Response'].key?('Error') == false
|
2456
|
+
model = DescribeReportTaskDownloadUrlResponse.new
|
2457
|
+
model.deserialize(response['Response'])
|
2458
|
+
model
|
2459
|
+
else
|
2460
|
+
code = response['Response']['Error']['Code']
|
2461
|
+
message = response['Response']['Error']['Message']
|
2462
|
+
reqid = response['Response']['RequestId']
|
2463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2464
|
+
end
|
2465
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2466
|
+
raise e
|
2467
|
+
rescue StandardError => e
|
2468
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2469
|
+
end
|
2470
|
+
|
2471
|
+
# 获取资产报表任务列表
|
2472
|
+
|
2473
|
+
# @param request: Request instance for DescribeReportTasks.
|
2474
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeReportTasksRequest`
|
2475
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeReportTasksResponse`
|
2476
|
+
def DescribeReportTasks(request)
|
2477
|
+
body = send_request('DescribeReportTasks', request.serialize)
|
2478
|
+
response = JSON.parse(body)
|
2479
|
+
if response['Response'].key?('Error') == false
|
2480
|
+
model = DescribeReportTasksResponse.new
|
2481
|
+
model.deserialize(response['Response'])
|
2482
|
+
model
|
2483
|
+
else
|
2484
|
+
code = response['Response']['Error']['Code']
|
2485
|
+
message = response['Response']['Error']['Message']
|
2486
|
+
reqid = response['Response']['RequestId']
|
2487
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2488
|
+
end
|
2489
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2490
|
+
raise e
|
2491
|
+
rescue StandardError => e
|
2492
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2493
|
+
end
|
2494
|
+
|
2495
|
+
# 查询分类规则详情
|
2496
|
+
|
2497
|
+
# @param request: Request instance for DescribeRuleDetail.
|
2498
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeRuleDetailRequest`
|
2499
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeRuleDetailResponse`
|
2500
|
+
def DescribeRuleDetail(request)
|
2501
|
+
body = send_request('DescribeRuleDetail', request.serialize)
|
2502
|
+
response = JSON.parse(body)
|
2503
|
+
if response['Response'].key?('Error') == false
|
2504
|
+
model = DescribeRuleDetailResponse.new
|
2505
|
+
model.deserialize(response['Response'])
|
2506
|
+
model
|
2507
|
+
else
|
2508
|
+
code = response['Response']['Error']['Code']
|
2509
|
+
message = response['Response']['Error']['Message']
|
2510
|
+
reqid = response['Response']['RequestId']
|
2511
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2512
|
+
end
|
2513
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2514
|
+
raise e
|
2515
|
+
rescue StandardError => e
|
2516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
# 查询分类下规则列表
|
2520
|
+
|
2521
|
+
# @param request: Request instance for DescribeRuleList.
|
2522
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeRuleListRequest`
|
2523
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeRuleListResponse`
|
2524
|
+
def DescribeRuleList(request)
|
2525
|
+
body = send_request('DescribeRuleList', request.serialize)
|
2526
|
+
response = JSON.parse(body)
|
2527
|
+
if response['Response'].key?('Error') == false
|
2528
|
+
model = DescribeRuleListResponse.new
|
2529
|
+
model.deserialize(response['Response'])
|
2530
|
+
model
|
2531
|
+
else
|
2532
|
+
code = response['Response']['Error']['Code']
|
2533
|
+
message = response['Response']['Error']['Message']
|
2534
|
+
reqid = response['Response']['RequestId']
|
2535
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2536
|
+
end
|
2537
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2538
|
+
raise e
|
2539
|
+
rescue StandardError => e
|
2540
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2541
|
+
end
|
2542
|
+
|
2543
|
+
# 数据资产报告-查询cos的敏感数据分布(分级分布 分类分布 敏感规则分布详情列表)
|
2544
|
+
|
2545
|
+
# @param request: Request instance for DescribeSensitiveCOSDataDistribution.
|
2546
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeSensitiveCOSDataDistributionRequest`
|
2547
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeSensitiveCOSDataDistributionResponse`
|
2548
|
+
def DescribeSensitiveCOSDataDistribution(request)
|
2549
|
+
body = send_request('DescribeSensitiveCOSDataDistribution', request.serialize)
|
2550
|
+
response = JSON.parse(body)
|
2551
|
+
if response['Response'].key?('Error') == false
|
2552
|
+
model = DescribeSensitiveCOSDataDistributionResponse.new
|
2553
|
+
model.deserialize(response['Response'])
|
2554
|
+
model
|
2555
|
+
else
|
2556
|
+
code = response['Response']['Error']['Code']
|
2557
|
+
message = response['Response']['Error']['Message']
|
2558
|
+
reqid = response['Response']['RequestId']
|
2559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2560
|
+
end
|
2561
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2562
|
+
raise e
|
2563
|
+
rescue StandardError => e
|
2564
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# 数据资产报告-查询rdb的敏感数据分布-敏感规则字段分布-敏感分布详情
|
2568
|
+
|
2569
|
+
# @param request: Request instance for DescribeSensitiveRDBDataDistribution.
|
2570
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DescribeSensitiveRDBDataDistributionRequest`
|
2571
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DescribeSensitiveRDBDataDistributionResponse`
|
2572
|
+
def DescribeSensitiveRDBDataDistribution(request)
|
2573
|
+
body = send_request('DescribeSensitiveRDBDataDistribution', request.serialize)
|
2574
|
+
response = JSON.parse(body)
|
2575
|
+
if response['Response'].key?('Error') == false
|
2576
|
+
model = DescribeSensitiveRDBDataDistributionResponse.new
|
2577
|
+
model.deserialize(response['Response'])
|
2578
|
+
model
|
2579
|
+
else
|
2580
|
+
code = response['Response']['Error']['Code']
|
2581
|
+
message = response['Response']['Error']['Message']
|
2582
|
+
reqid = response['Response']['RequestId']
|
2583
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2584
|
+
end
|
2585
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2586
|
+
raise e
|
2587
|
+
rescue StandardError => e
|
2588
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
# 取消用户云资源授权
|
2592
|
+
|
2593
|
+
# @param request: Request instance for DisableDSPAMetaResourceAuth.
|
2594
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::DisableDSPAMetaResourceAuthRequest`
|
2595
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::DisableDSPAMetaResourceAuthResponse`
|
2596
|
+
def DisableDSPAMetaResourceAuth(request)
|
2597
|
+
body = send_request('DisableDSPAMetaResourceAuth', request.serialize)
|
2598
|
+
response = JSON.parse(body)
|
2599
|
+
if response['Response'].key?('Error') == false
|
2600
|
+
model = DisableDSPAMetaResourceAuthResponse.new
|
2601
|
+
model.deserialize(response['Response'])
|
2602
|
+
model
|
2603
|
+
else
|
2604
|
+
code = response['Response']['Error']['Code']
|
2605
|
+
message = response['Response']['Error']['Message']
|
2606
|
+
reqid = response['Response']['RequestId']
|
2607
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2608
|
+
end
|
2609
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2610
|
+
raise e
|
2611
|
+
rescue StandardError => e
|
2612
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2613
|
+
end
|
2614
|
+
|
2615
|
+
# 打开或者关闭分类分级规则
|
2616
|
+
# 注:此API同时对该规则下的RDB跟COS规则操作。
|
2617
|
+
|
2618
|
+
|
2619
|
+
# @param request: Request instance for EnableDSPADiscoveryRule.
|
2620
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::EnableDSPADiscoveryRuleRequest`
|
2621
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::EnableDSPADiscoveryRuleResponse`
|
2622
|
+
def EnableDSPADiscoveryRule(request)
|
2623
|
+
body = send_request('EnableDSPADiscoveryRule', request.serialize)
|
2624
|
+
response = JSON.parse(body)
|
2625
|
+
if response['Response'].key?('Error') == false
|
2626
|
+
model = EnableDSPADiscoveryRuleResponse.new
|
2627
|
+
model.deserialize(response['Response'])
|
2628
|
+
model
|
2629
|
+
else
|
2630
|
+
code = response['Response']['Error']['Code']
|
2631
|
+
message = response['Response']['Error']['Message']
|
2632
|
+
reqid = response['Response']['RequestId']
|
2633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2634
|
+
end
|
2635
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2636
|
+
raise e
|
2637
|
+
rescue StandardError => e
|
2638
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2639
|
+
end
|
2640
|
+
|
2641
|
+
# 启用版本体验
|
2642
|
+
|
2643
|
+
# @param request: Request instance for EnableTrialVersion.
|
2644
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::EnableTrialVersionRequest`
|
2645
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::EnableTrialVersionResponse`
|
2646
|
+
def EnableTrialVersion(request)
|
2647
|
+
body = send_request('EnableTrialVersion', request.serialize)
|
2648
|
+
response = JSON.parse(body)
|
2649
|
+
if response['Response'].key?('Error') == false
|
2650
|
+
model = EnableTrialVersionResponse.new
|
2651
|
+
model.deserialize(response['Response'])
|
2652
|
+
model
|
2653
|
+
else
|
2654
|
+
code = response['Response']['Error']['Code']
|
2655
|
+
message = response['Response']['Error']['Message']
|
2656
|
+
reqid = response['Response']['RequestId']
|
2657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2658
|
+
end
|
2659
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2660
|
+
raise e
|
2661
|
+
rescue StandardError => e
|
2662
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2663
|
+
end
|
2664
|
+
|
2665
|
+
# 创建敏感数据导出任务
|
2666
|
+
|
2667
|
+
# @param request: Request instance for ExportAssetDetailData.
|
2668
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ExportAssetDetailDataRequest`
|
2669
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ExportAssetDetailDataResponse`
|
2670
|
+
def ExportAssetDetailData(request)
|
2671
|
+
body = send_request('ExportAssetDetailData', request.serialize)
|
2672
|
+
response = JSON.parse(body)
|
2673
|
+
if response['Response'].key?('Error') == false
|
2674
|
+
model = ExportAssetDetailDataResponse.new
|
2675
|
+
model.deserialize(response['Response'])
|
2676
|
+
model
|
2677
|
+
else
|
2678
|
+
code = response['Response']['Error']['Code']
|
2679
|
+
message = response['Response']['Error']['Message']
|
2680
|
+
reqid = response['Response']['RequestId']
|
2681
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2682
|
+
end
|
2683
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2684
|
+
raise e
|
2685
|
+
rescue StandardError => e
|
2686
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2687
|
+
end
|
2688
|
+
|
2689
|
+
# 获取授权资源的连接状态
|
2690
|
+
|
2691
|
+
# @param request: Request instance for GetResourceConnectionStatus.
|
2692
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::GetResourceConnectionStatusRequest`
|
2693
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::GetResourceConnectionStatusResponse`
|
2694
|
+
def GetResourceConnectionStatus(request)
|
2695
|
+
body = send_request('GetResourceConnectionStatus', request.serialize)
|
2696
|
+
response = JSON.parse(body)
|
2697
|
+
if response['Response'].key?('Error') == false
|
2698
|
+
model = GetResourceConnectionStatusResponse.new
|
2699
|
+
model.deserialize(response['Response'])
|
2700
|
+
model
|
2701
|
+
else
|
2702
|
+
code = response['Response']['Error']['Code']
|
2703
|
+
message = response['Response']['Error']['Message']
|
2704
|
+
reqid = response['Response']['RequestId']
|
2705
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2706
|
+
end
|
2707
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2708
|
+
raise e
|
2709
|
+
rescue StandardError => e
|
2710
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2711
|
+
end
|
2712
|
+
|
2713
|
+
# 获取体验版本信息
|
2714
|
+
|
2715
|
+
# @param request: Request instance for GetTrialVersion.
|
2716
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::GetTrialVersionRequest`
|
2717
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::GetTrialVersionResponse`
|
2718
|
+
def GetTrialVersion(request)
|
2719
|
+
body = send_request('GetTrialVersion', request.serialize)
|
2720
|
+
response = JSON.parse(body)
|
2721
|
+
if response['Response'].key?('Error') == false
|
2722
|
+
model = GetTrialVersionResponse.new
|
2723
|
+
model.deserialize(response['Response'])
|
2724
|
+
model
|
2725
|
+
else
|
2726
|
+
code = response['Response']['Error']['Code']
|
2727
|
+
message = response['Response']['Error']['Message']
|
2728
|
+
reqid = response['Response']['RequestId']
|
2729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2730
|
+
end
|
2731
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2732
|
+
raise e
|
2733
|
+
rescue StandardError => e
|
2734
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2735
|
+
end
|
2736
|
+
|
2737
|
+
# 获取用户购买配额信息
|
2738
|
+
|
2739
|
+
# @param request: Request instance for GetUserQuotaInfo.
|
2740
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::GetUserQuotaInfoRequest`
|
2741
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::GetUserQuotaInfoResponse`
|
2742
|
+
def GetUserQuotaInfo(request)
|
2743
|
+
body = send_request('GetUserQuotaInfo', request.serialize)
|
2744
|
+
response = JSON.parse(body)
|
2745
|
+
if response['Response'].key?('Error') == false
|
2746
|
+
model = GetUserQuotaInfoResponse.new
|
2747
|
+
model.deserialize(response['Response'])
|
2748
|
+
model
|
2749
|
+
else
|
2750
|
+
code = response['Response']['Error']['Code']
|
2751
|
+
message = response['Response']['Error']['Message']
|
2752
|
+
reqid = response['Response']['RequestId']
|
2753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2754
|
+
end
|
2755
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2756
|
+
raise e
|
2757
|
+
rescue StandardError => e
|
2758
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2759
|
+
end
|
2760
|
+
|
2761
|
+
# 拉取DSPA集群列表
|
2762
|
+
|
2763
|
+
# @param request: Request instance for ListDSPAClusters.
|
2764
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ListDSPAClustersRequest`
|
2765
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ListDSPAClustersResponse`
|
2766
|
+
def ListDSPAClusters(request)
|
2767
|
+
body = send_request('ListDSPAClusters', request.serialize)
|
2768
|
+
response = JSON.parse(body)
|
2769
|
+
if response['Response'].key?('Error') == false
|
2770
|
+
model = ListDSPAClustersResponse.new
|
2771
|
+
model.deserialize(response['Response'])
|
2772
|
+
model
|
2773
|
+
else
|
2774
|
+
code = response['Response']['Error']['Code']
|
2775
|
+
message = response['Response']['Error']['Message']
|
2776
|
+
reqid = response['Response']['RequestId']
|
2777
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2778
|
+
end
|
2779
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2780
|
+
raise e
|
2781
|
+
rescue StandardError => e
|
2782
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2783
|
+
end
|
2784
|
+
|
2785
|
+
# 本接口用于获取COS元数据信息,返回COS元数据信息列表。
|
2786
|
+
|
2787
|
+
# @param request: Request instance for ListDSPACosMetaResources.
|
2788
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ListDSPACosMetaResourcesRequest`
|
2789
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ListDSPACosMetaResourcesResponse`
|
2790
|
+
def ListDSPACosMetaResources(request)
|
2791
|
+
body = send_request('ListDSPACosMetaResources', request.serialize)
|
2792
|
+
response = JSON.parse(body)
|
2793
|
+
if response['Response'].key?('Error') == false
|
2794
|
+
model = ListDSPACosMetaResourcesResponse.new
|
2795
|
+
model.deserialize(response['Response'])
|
2796
|
+
model
|
2797
|
+
else
|
2798
|
+
code = response['Response']['Error']['Code']
|
2799
|
+
message = response['Response']['Error']['Message']
|
2800
|
+
reqid = response['Response']['RequestId']
|
2801
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2802
|
+
end
|
2803
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2804
|
+
raise e
|
2805
|
+
rescue StandardError => e
|
2806
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2807
|
+
end
|
2808
|
+
|
2809
|
+
# 拉取用户云资源
|
2810
|
+
|
2811
|
+
# @param request: Request instance for ListDSPAMetaResources.
|
2812
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ListDSPAMetaResourcesRequest`
|
2813
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ListDSPAMetaResourcesResponse`
|
2814
|
+
def ListDSPAMetaResources(request)
|
2815
|
+
body = send_request('ListDSPAMetaResources', request.serialize)
|
2816
|
+
response = JSON.parse(body)
|
2817
|
+
if response['Response'].key?('Error') == false
|
2818
|
+
model = ListDSPAMetaResourcesResponse.new
|
2819
|
+
model.deserialize(response['Response'])
|
2820
|
+
model
|
2821
|
+
else
|
2822
|
+
code = response['Response']['Error']['Code']
|
2823
|
+
message = response['Response']['Error']['Message']
|
2824
|
+
reqid = response['Response']['RequestId']
|
2825
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2826
|
+
end
|
2827
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2828
|
+
raise e
|
2829
|
+
rescue StandardError => e
|
2830
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2831
|
+
end
|
2832
|
+
|
2833
|
+
# 编辑识别规则
|
2834
|
+
|
2835
|
+
# @param request: Request instance for ModifyClassificationRule.
|
2836
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyClassificationRuleRequest`
|
2837
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyClassificationRuleResponse`
|
2838
|
+
def ModifyClassificationRule(request)
|
2839
|
+
body = send_request('ModifyClassificationRule', request.serialize)
|
2840
|
+
response = JSON.parse(body)
|
2841
|
+
if response['Response'].key?('Error') == false
|
2842
|
+
model = ModifyClassificationRuleResponse.new
|
2843
|
+
model.deserialize(response['Response'])
|
2844
|
+
model
|
2845
|
+
else
|
2846
|
+
code = response['Response']['Error']['Code']
|
2847
|
+
message = response['Response']['Error']['Message']
|
2848
|
+
reqid = response['Response']['RequestId']
|
2849
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2850
|
+
end
|
2851
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2852
|
+
raise e
|
2853
|
+
rescue StandardError => e
|
2854
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2855
|
+
end
|
2856
|
+
|
2857
|
+
# 修改识别规则状态
|
2858
|
+
|
2859
|
+
# @param request: Request instance for ModifyClassificationRuleState.
|
2860
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyClassificationRuleStateRequest`
|
2861
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyClassificationRuleStateResponse`
|
2862
|
+
def ModifyClassificationRuleState(request)
|
2863
|
+
body = send_request('ModifyClassificationRuleState', request.serialize)
|
2864
|
+
response = JSON.parse(body)
|
2865
|
+
if response['Response'].key?('Error') == false
|
2866
|
+
model = ModifyClassificationRuleStateResponse.new
|
2867
|
+
model.deserialize(response['Response'])
|
2868
|
+
model
|
2869
|
+
else
|
2870
|
+
code = response['Response']['Error']['Code']
|
2871
|
+
message = response['Response']['Error']['Message']
|
2872
|
+
reqid = response['Response']['RequestId']
|
2873
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2874
|
+
end
|
2875
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2876
|
+
raise e
|
2877
|
+
rescue StandardError => e
|
2878
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2879
|
+
end
|
2880
|
+
|
2881
|
+
# 修改DSPA评估风险项,支持修改Status
|
2882
|
+
|
2883
|
+
# @param request: Request instance for ModifyDSPAAssessmentRisk.
|
2884
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskRequest`
|
2885
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskResponse`
|
2886
|
+
def ModifyDSPAAssessmentRisk(request)
|
2887
|
+
body = send_request('ModifyDSPAAssessmentRisk', request.serialize)
|
2888
|
+
response = JSON.parse(body)
|
2889
|
+
if response['Response'].key?('Error') == false
|
2890
|
+
model = ModifyDSPAAssessmentRiskResponse.new
|
2891
|
+
model.deserialize(response['Response'])
|
2892
|
+
model
|
2893
|
+
else
|
2894
|
+
code = response['Response']['Error']['Code']
|
2895
|
+
message = response['Response']['Error']['Message']
|
2896
|
+
reqid = response['Response']['RequestId']
|
2897
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2898
|
+
end
|
2899
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2900
|
+
raise e
|
2901
|
+
rescue StandardError => e
|
2902
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2903
|
+
end
|
2904
|
+
|
2905
|
+
# 修改最新评估风险项状态
|
2906
|
+
|
2907
|
+
# @param request: Request instance for ModifyDSPAAssessmentRiskLatest.
|
2908
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskLatestRequest`
|
2909
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskLatestResponse`
|
2910
|
+
def ModifyDSPAAssessmentRiskLatest(request)
|
2911
|
+
body = send_request('ModifyDSPAAssessmentRiskLatest', request.serialize)
|
2912
|
+
response = JSON.parse(body)
|
2913
|
+
if response['Response'].key?('Error') == false
|
2914
|
+
model = ModifyDSPAAssessmentRiskLatestResponse.new
|
2915
|
+
model.deserialize(response['Response'])
|
2916
|
+
model
|
2917
|
+
else
|
2918
|
+
code = response['Response']['Error']['Code']
|
2919
|
+
message = response['Response']['Error']['Message']
|
2920
|
+
reqid = response['Response']['RequestId']
|
2921
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2922
|
+
end
|
2923
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2924
|
+
raise e
|
2925
|
+
rescue StandardError => e
|
2926
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
# 风险项页面----修改风险等级的详情数据
|
2930
|
+
|
2931
|
+
# @param request: Request instance for ModifyDSPAAssessmentRiskLevel.
|
2932
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskLevelRequest`
|
2933
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskLevelResponse`
|
2934
|
+
def ModifyDSPAAssessmentRiskLevel(request)
|
2935
|
+
body = send_request('ModifyDSPAAssessmentRiskLevel', request.serialize)
|
2936
|
+
response = JSON.parse(body)
|
2937
|
+
if response['Response'].key?('Error') == false
|
2938
|
+
model = ModifyDSPAAssessmentRiskLevelResponse.new
|
2939
|
+
model.deserialize(response['Response'])
|
2940
|
+
model
|
2941
|
+
else
|
2942
|
+
code = response['Response']['Error']['Code']
|
2943
|
+
message = response['Response']['Error']['Message']
|
2944
|
+
reqid = response['Response']['RequestId']
|
2945
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2946
|
+
end
|
2947
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2948
|
+
raise e
|
2949
|
+
rescue StandardError => e
|
2950
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2951
|
+
end
|
2952
|
+
|
2953
|
+
# 风险模版---修改风险模版
|
2954
|
+
|
2955
|
+
# @param request: Request instance for ModifyDSPAAssessmentRiskTemplate.
|
2956
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskTemplateRequest`
|
2957
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAAssessmentRiskTemplateResponse`
|
2958
|
+
def ModifyDSPAAssessmentRiskTemplate(request)
|
2959
|
+
body = send_request('ModifyDSPAAssessmentRiskTemplate', request.serialize)
|
2960
|
+
response = JSON.parse(body)
|
2961
|
+
if response['Response'].key?('Error') == false
|
2962
|
+
model = ModifyDSPAAssessmentRiskTemplateResponse.new
|
2963
|
+
model.deserialize(response['Response'])
|
2964
|
+
model
|
2965
|
+
else
|
2966
|
+
code = response['Response']['Error']['Code']
|
2967
|
+
message = response['Response']['Error']['Message']
|
2968
|
+
reqid = response['Response']['RequestId']
|
2969
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2970
|
+
end
|
2971
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2972
|
+
raise e
|
2973
|
+
rescue StandardError => e
|
2974
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2975
|
+
end
|
2976
|
+
|
2977
|
+
# 修改COS分类分级任务,该接口只有在任务状态为以下状态时才支持正确修改:
|
2978
|
+
# 0 待扫描,
|
2979
|
+
# 2 扫描终止,
|
2980
|
+
# 3 扫描成功,
|
2981
|
+
# 4 扫描失败
|
2982
|
+
|
2983
|
+
# @param request: Request instance for ModifyDSPACOSDiscoveryTask.
|
2984
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACOSDiscoveryTaskRequest`
|
2985
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACOSDiscoveryTaskResponse`
|
2986
|
+
def ModifyDSPACOSDiscoveryTask(request)
|
2987
|
+
body = send_request('ModifyDSPACOSDiscoveryTask', request.serialize)
|
2988
|
+
response = JSON.parse(body)
|
2989
|
+
if response['Response'].key?('Error') == false
|
2990
|
+
model = ModifyDSPACOSDiscoveryTaskResponse.new
|
2991
|
+
model.deserialize(response['Response'])
|
2992
|
+
model
|
2993
|
+
else
|
2994
|
+
code = response['Response']['Error']['Code']
|
2995
|
+
message = response['Response']['Error']['Message']
|
2996
|
+
reqid = response['Response']['RequestId']
|
2997
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2998
|
+
end
|
2999
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3000
|
+
raise e
|
3001
|
+
rescue StandardError => e
|
3002
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3003
|
+
end
|
3004
|
+
|
3005
|
+
# 调整COS任务扫描结果
|
3006
|
+
|
3007
|
+
# @param request: Request instance for ModifyDSPACOSTaskResult.
|
3008
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACOSTaskResultRequest`
|
3009
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACOSTaskResultResponse`
|
3010
|
+
def ModifyDSPACOSTaskResult(request)
|
3011
|
+
body = send_request('ModifyDSPACOSTaskResult', request.serialize)
|
3012
|
+
response = JSON.parse(body)
|
3013
|
+
if response['Response'].key?('Error') == false
|
3014
|
+
model = ModifyDSPACOSTaskResultResponse.new
|
3015
|
+
model.deserialize(response['Response'])
|
3016
|
+
model
|
3017
|
+
else
|
3018
|
+
code = response['Response']['Error']['Code']
|
3019
|
+
message = response['Response']['Error']['Message']
|
3020
|
+
reqid = response['Response']['RequestId']
|
3021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3022
|
+
end
|
3023
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3024
|
+
raise e
|
3025
|
+
rescue StandardError => e
|
3026
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3027
|
+
end
|
3028
|
+
|
3029
|
+
# 修改分类,内置分类不支持修改。
|
3030
|
+
|
3031
|
+
# @param request: Request instance for ModifyDSPACategory.
|
3032
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACategoryRequest`
|
3033
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACategoryResponse`
|
3034
|
+
def ModifyDSPACategory(request)
|
3035
|
+
body = send_request('ModifyDSPACategory', request.serialize)
|
3036
|
+
response = JSON.parse(body)
|
3037
|
+
if response['Response'].key?('Error') == false
|
3038
|
+
model = ModifyDSPACategoryResponse.new
|
3039
|
+
model.deserialize(response['Response'])
|
3040
|
+
model
|
3041
|
+
else
|
3042
|
+
code = response['Response']['Error']['Code']
|
3043
|
+
message = response['Response']['Error']['Message']
|
3044
|
+
reqid = response['Response']['RequestId']
|
3045
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3046
|
+
end
|
3047
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3048
|
+
raise e
|
3049
|
+
rescue StandardError => e
|
3050
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3051
|
+
end
|
3052
|
+
|
3053
|
+
# 修改分类分级关系
|
3054
|
+
|
3055
|
+
# @param request: Request instance for ModifyDSPACategoryRelation.
|
3056
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACategoryRelationRequest`
|
3057
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPACategoryRelationResponse`
|
3058
|
+
def ModifyDSPACategoryRelation(request)
|
3059
|
+
body = send_request('ModifyDSPACategoryRelation', request.serialize)
|
3060
|
+
response = JSON.parse(body)
|
3061
|
+
if response['Response'].key?('Error') == false
|
3062
|
+
model = ModifyDSPACategoryRelationResponse.new
|
3063
|
+
model.deserialize(response['Response'])
|
3064
|
+
model
|
3065
|
+
else
|
3066
|
+
code = response['Response']['Error']['Code']
|
3067
|
+
message = response['Response']['Error']['Message']
|
3068
|
+
reqid = response['Response']['RequestId']
|
3069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3070
|
+
end
|
3071
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3072
|
+
raise e
|
3073
|
+
rescue StandardError => e
|
3074
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3075
|
+
end
|
3076
|
+
|
3077
|
+
# 修改DSPA集群信息
|
3078
|
+
|
3079
|
+
# @param request: Request instance for ModifyDSPAClusterInfo.
|
3080
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAClusterInfoRequest`
|
3081
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAClusterInfoResponse`
|
3082
|
+
def ModifyDSPAClusterInfo(request)
|
3083
|
+
body = send_request('ModifyDSPAClusterInfo', request.serialize)
|
3084
|
+
response = JSON.parse(body)
|
3085
|
+
if response['Response'].key?('Error') == false
|
3086
|
+
model = ModifyDSPAClusterInfoResponse.new
|
3087
|
+
model.deserialize(response['Response'])
|
3088
|
+
model
|
3089
|
+
else
|
3090
|
+
code = response['Response']['Error']['Code']
|
3091
|
+
message = response['Response']['Error']['Message']
|
3092
|
+
reqid = response['Response']['RequestId']
|
3093
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3094
|
+
end
|
3095
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3096
|
+
raise e
|
3097
|
+
rescue StandardError => e
|
3098
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3099
|
+
end
|
3100
|
+
|
3101
|
+
# 修改分类分级模板,内置模板不支持修改。
|
3102
|
+
|
3103
|
+
# @param request: Request instance for ModifyDSPAComplianceGroup.
|
3104
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAComplianceGroupRequest`
|
3105
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAComplianceGroupResponse`
|
3106
|
+
def ModifyDSPAComplianceGroup(request)
|
3107
|
+
body = send_request('ModifyDSPAComplianceGroup', request.serialize)
|
3108
|
+
response = JSON.parse(body)
|
3109
|
+
if response['Response'].key?('Error') == false
|
3110
|
+
model = ModifyDSPAComplianceGroupResponse.new
|
3111
|
+
model.deserialize(response['Response'])
|
3112
|
+
model
|
3113
|
+
else
|
3114
|
+
code = response['Response']['Error']['Code']
|
3115
|
+
message = response['Response']['Error']['Message']
|
3116
|
+
reqid = response['Response']['RequestId']
|
3117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3118
|
+
end
|
3119
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3120
|
+
raise e
|
3121
|
+
rescue StandardError => e
|
3122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3123
|
+
end
|
3124
|
+
|
3125
|
+
# 修改分类分级规则,单个用户最多允许创建200个规则。
|
3126
|
+
# 注:此API同时适用RDB跟COS类型数据。
|
3127
|
+
|
3128
|
+
# @param request: Request instance for ModifyDSPADiscoveryRule.
|
3129
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPADiscoveryRuleRequest`
|
3130
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPADiscoveryRuleResponse`
|
3131
|
+
def ModifyDSPADiscoveryRule(request)
|
3132
|
+
body = send_request('ModifyDSPADiscoveryRule', request.serialize)
|
3133
|
+
response = JSON.parse(body)
|
3134
|
+
if response['Response'].key?('Error') == false
|
3135
|
+
model = ModifyDSPADiscoveryRuleResponse.new
|
3136
|
+
model.deserialize(response['Response'])
|
3137
|
+
model
|
3138
|
+
else
|
3139
|
+
code = response['Response']['Error']['Code']
|
3140
|
+
message = response['Response']['Error']['Message']
|
3141
|
+
reqid = response['Response']['RequestId']
|
3142
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3143
|
+
end
|
3144
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3145
|
+
raise e
|
3146
|
+
rescue StandardError => e
|
3147
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3148
|
+
end
|
3149
|
+
|
3150
|
+
# 修改分类分级任务,该接口只有在任务状态为以下状态时才支持正确修改:
|
3151
|
+
# 0 待扫描,
|
3152
|
+
# 2 扫描终止,
|
3153
|
+
# 3 扫描成功,
|
3154
|
+
# 4 扫描失败
|
3155
|
+
|
3156
|
+
# @param request: Request instance for ModifyDSPADiscoveryTask.
|
3157
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPADiscoveryTaskRequest`
|
3158
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPADiscoveryTaskResponse`
|
3159
|
+
def ModifyDSPADiscoveryTask(request)
|
3160
|
+
body = send_request('ModifyDSPADiscoveryTask', request.serialize)
|
3161
|
+
response = JSON.parse(body)
|
3162
|
+
if response['Response'].key?('Error') == false
|
3163
|
+
model = ModifyDSPADiscoveryTaskResponse.new
|
3164
|
+
model.deserialize(response['Response'])
|
3165
|
+
model
|
3166
|
+
else
|
3167
|
+
code = response['Response']['Error']['Code']
|
3168
|
+
message = response['Response']['Error']['Message']
|
3169
|
+
reqid = response['Response']['RequestId']
|
3170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3171
|
+
end
|
3172
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3173
|
+
raise e
|
3174
|
+
rescue StandardError => e
|
3175
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3176
|
+
end
|
3177
|
+
|
3178
|
+
# 调整ES任务扫描结果
|
3179
|
+
|
3180
|
+
# @param request: Request instance for ModifyDSPAESTaskResult.
|
3181
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAESTaskResultRequest`
|
3182
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPAESTaskResultResponse`
|
3183
|
+
def ModifyDSPAESTaskResult(request)
|
3184
|
+
body = send_request('ModifyDSPAESTaskResult', request.serialize)
|
3185
|
+
response = JSON.parse(body)
|
3186
|
+
if response['Response'].key?('Error') == false
|
3187
|
+
model = ModifyDSPAESTaskResultResponse.new
|
3188
|
+
model.deserialize(response['Response'])
|
3189
|
+
model
|
3190
|
+
else
|
3191
|
+
code = response['Response']['Error']['Code']
|
3192
|
+
message = response['Response']['Error']['Message']
|
3193
|
+
reqid = response['Response']['RequestId']
|
3194
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3195
|
+
end
|
3196
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3197
|
+
raise e
|
3198
|
+
rescue StandardError => e
|
3199
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3200
|
+
end
|
3201
|
+
|
3202
|
+
# 调整任务扫描结果
|
3203
|
+
|
3204
|
+
# @param request: Request instance for ModifyDSPATaskResult.
|
3205
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPATaskResultRequest`
|
3206
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyDSPATaskResultResponse`
|
3207
|
+
def ModifyDSPATaskResult(request)
|
3208
|
+
body = send_request('ModifyDSPATaskResult', request.serialize)
|
39
3209
|
response = JSON.parse(body)
|
40
3210
|
if response['Response'].key?('Error') == false
|
41
|
-
model =
|
3211
|
+
model = ModifyDSPATaskResultResponse.new
|
3212
|
+
model.deserialize(response['Response'])
|
3213
|
+
model
|
3214
|
+
else
|
3215
|
+
code = response['Response']['Error']['Code']
|
3216
|
+
message = response['Response']['Error']['Message']
|
3217
|
+
reqid = response['Response']['RequestId']
|
3218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3219
|
+
end
|
3220
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3221
|
+
raise e
|
3222
|
+
rescue StandardError => e
|
3223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3224
|
+
end
|
3225
|
+
|
3226
|
+
# 修改敏感级别信息
|
3227
|
+
|
3228
|
+
# @param request: Request instance for ModifyLevelInfo.
|
3229
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelInfoRequest`
|
3230
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelInfoResponse`
|
3231
|
+
def ModifyLevelInfo(request)
|
3232
|
+
body = send_request('ModifyLevelInfo', request.serialize)
|
3233
|
+
response = JSON.parse(body)
|
3234
|
+
if response['Response'].key?('Error') == false
|
3235
|
+
model = ModifyLevelInfoResponse.new
|
3236
|
+
model.deserialize(response['Response'])
|
3237
|
+
model
|
3238
|
+
else
|
3239
|
+
code = response['Response']['Error']['Code']
|
3240
|
+
message = response['Response']['Error']['Message']
|
3241
|
+
reqid = response['Response']['RequestId']
|
3242
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3243
|
+
end
|
3244
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3245
|
+
raise e
|
3246
|
+
rescue StandardError => e
|
3247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3248
|
+
end
|
3249
|
+
|
3250
|
+
# 修改级别名称
|
3251
|
+
|
3252
|
+
# @param request: Request instance for ModifyLevelName.
|
3253
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelNameRequest`
|
3254
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelNameResponse`
|
3255
|
+
def ModifyLevelName(request)
|
3256
|
+
body = send_request('ModifyLevelName', request.serialize)
|
3257
|
+
response = JSON.parse(body)
|
3258
|
+
if response['Response'].key?('Error') == false
|
3259
|
+
model = ModifyLevelNameResponse.new
|
3260
|
+
model.deserialize(response['Response'])
|
3261
|
+
model
|
3262
|
+
else
|
3263
|
+
code = response['Response']['Error']['Code']
|
3264
|
+
message = response['Response']['Error']['Message']
|
3265
|
+
reqid = response['Response']['RequestId']
|
3266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3267
|
+
end
|
3268
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3269
|
+
raise e
|
3270
|
+
rescue StandardError => e
|
3271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3272
|
+
end
|
3273
|
+
|
3274
|
+
# 开启级别或关闭级别
|
3275
|
+
|
3276
|
+
# @param request: Request instance for ModifyLevelState.
|
3277
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelStateRequest`
|
3278
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyLevelStateResponse`
|
3279
|
+
def ModifyLevelState(request)
|
3280
|
+
body = send_request('ModifyLevelState', request.serialize)
|
3281
|
+
response = JSON.parse(body)
|
3282
|
+
if response['Response'].key?('Error') == false
|
3283
|
+
model = ModifyLevelStateResponse.new
|
3284
|
+
model.deserialize(response['Response'])
|
3285
|
+
model
|
3286
|
+
else
|
3287
|
+
code = response['Response']['Error']['Code']
|
3288
|
+
message = response['Response']['Error']['Message']
|
3289
|
+
reqid = response['Response']['RequestId']
|
3290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3291
|
+
end
|
3292
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3293
|
+
raise e
|
3294
|
+
rescue StandardError => e
|
3295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3296
|
+
end
|
3297
|
+
|
3298
|
+
# 一个分类合并到另一个分类中(分类拖拽功能)
|
3299
|
+
|
3300
|
+
# @param request: Request instance for ModifyMergeClassification.
|
3301
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyMergeClassificationRequest`
|
3302
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyMergeClassificationResponse`
|
3303
|
+
def ModifyMergeClassification(request)
|
3304
|
+
body = send_request('ModifyMergeClassification', request.serialize)
|
3305
|
+
response = JSON.parse(body)
|
3306
|
+
if response['Response'].key?('Error') == false
|
3307
|
+
model = ModifyMergeClassificationResponse.new
|
3308
|
+
model.deserialize(response['Response'])
|
3309
|
+
model
|
3310
|
+
else
|
3311
|
+
code = response['Response']['Error']['Code']
|
3312
|
+
message = response['Response']['Error']['Message']
|
3313
|
+
reqid = response['Response']['RequestId']
|
3314
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3315
|
+
end
|
3316
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3317
|
+
raise e
|
3318
|
+
rescue StandardError => e
|
3319
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3320
|
+
end
|
3321
|
+
|
3322
|
+
# 修改分类信息
|
3323
|
+
|
3324
|
+
# @param request: Request instance for ModifyNewClassification.
|
3325
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyNewClassificationRequest`
|
3326
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyNewClassificationResponse`
|
3327
|
+
def ModifyNewClassification(request)
|
3328
|
+
body = send_request('ModifyNewClassification', request.serialize)
|
3329
|
+
response = JSON.parse(body)
|
3330
|
+
if response['Response'].key?('Error') == false
|
3331
|
+
model = ModifyNewClassificationResponse.new
|
3332
|
+
model.deserialize(response['Response'])
|
3333
|
+
model
|
3334
|
+
else
|
3335
|
+
code = response['Response']['Error']['Code']
|
3336
|
+
message = response['Response']['Error']['Message']
|
3337
|
+
reqid = response['Response']['RequestId']
|
3338
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3339
|
+
end
|
3340
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3341
|
+
raise e
|
3342
|
+
rescue StandardError => e
|
3343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3344
|
+
end
|
3345
|
+
|
3346
|
+
# 修改分级分类模板信息
|
3347
|
+
|
3348
|
+
# @param request: Request instance for ModifyStandardInfo.
|
3349
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::ModifyStandardInfoRequest`
|
3350
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::ModifyStandardInfoResponse`
|
3351
|
+
def ModifyStandardInfo(request)
|
3352
|
+
body = send_request('ModifyStandardInfo', request.serialize)
|
3353
|
+
response = JSON.parse(body)
|
3354
|
+
if response['Response'].key?('Error') == false
|
3355
|
+
model = ModifyStandardInfoResponse.new
|
3356
|
+
model.deserialize(response['Response'])
|
3357
|
+
model
|
3358
|
+
else
|
3359
|
+
code = response['Response']['Error']['Code']
|
3360
|
+
message = response['Response']['Error']['Message']
|
3361
|
+
reqid = response['Response']['RequestId']
|
3362
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3363
|
+
end
|
3364
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3365
|
+
raise e
|
3366
|
+
rescue StandardError => e
|
3367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3368
|
+
end
|
3369
|
+
|
3370
|
+
# 查询DSPA实例的db列表
|
3371
|
+
|
3372
|
+
# @param request: Request instance for QueryDSPAMetaResourceDbList.
|
3373
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::QueryDSPAMetaResourceDbListRequest`
|
3374
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::QueryDSPAMetaResourceDbListResponse`
|
3375
|
+
def QueryDSPAMetaResourceDbList(request)
|
3376
|
+
body = send_request('QueryDSPAMetaResourceDbList', request.serialize)
|
3377
|
+
response = JSON.parse(body)
|
3378
|
+
if response['Response'].key?('Error') == false
|
3379
|
+
model = QueryDSPAMetaResourceDbListResponse.new
|
3380
|
+
model.deserialize(response['Response'])
|
3381
|
+
model
|
3382
|
+
else
|
3383
|
+
code = response['Response']['Error']['Code']
|
3384
|
+
message = response['Response']['Error']['Message']
|
3385
|
+
reqid = response['Response']['RequestId']
|
3386
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3387
|
+
end
|
3388
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3389
|
+
raise e
|
3390
|
+
rescue StandardError => e
|
3391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3392
|
+
end
|
3393
|
+
|
3394
|
+
# 获取资源绑定DB状态
|
3395
|
+
|
3396
|
+
# @param request: Request instance for QueryResourceDbBindStatus.
|
3397
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::QueryResourceDbBindStatusRequest`
|
3398
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::QueryResourceDbBindStatusResponse`
|
3399
|
+
def QueryResourceDbBindStatus(request)
|
3400
|
+
body = send_request('QueryResourceDbBindStatus', request.serialize)
|
3401
|
+
response = JSON.parse(body)
|
3402
|
+
if response['Response'].key?('Error') == false
|
3403
|
+
model = QueryResourceDbBindStatusResponse.new
|
3404
|
+
model.deserialize(response['Response'])
|
3405
|
+
model
|
3406
|
+
else
|
3407
|
+
code = response['Response']['Error']['Code']
|
3408
|
+
message = response['Response']['Error']['Message']
|
3409
|
+
reqid = response['Response']['RequestId']
|
3410
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3411
|
+
end
|
3412
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3413
|
+
raise e
|
3414
|
+
rescue StandardError => e
|
3415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3416
|
+
end
|
3417
|
+
|
3418
|
+
# 重新启动DSPA风险评估任务
|
3419
|
+
|
3420
|
+
# @param request: Request instance for RestartDSPAAssessmentTask.
|
3421
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::RestartDSPAAssessmentTaskRequest`
|
3422
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::RestartDSPAAssessmentTaskResponse`
|
3423
|
+
def RestartDSPAAssessmentTask(request)
|
3424
|
+
body = send_request('RestartDSPAAssessmentTask', request.serialize)
|
3425
|
+
response = JSON.parse(body)
|
3426
|
+
if response['Response'].key?('Error') == false
|
3427
|
+
model = RestartDSPAAssessmentTaskResponse.new
|
3428
|
+
model.deserialize(response['Response'])
|
3429
|
+
model
|
3430
|
+
else
|
3431
|
+
code = response['Response']['Error']['Code']
|
3432
|
+
message = response['Response']['Error']['Message']
|
3433
|
+
reqid = response['Response']['RequestId']
|
3434
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3435
|
+
end
|
3436
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3437
|
+
raise e
|
3438
|
+
rescue StandardError => e
|
3439
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3440
|
+
end
|
3441
|
+
|
3442
|
+
# 立即启动分类分级任务,该接口只有在任务状态为以下状态时才支持正确执行立即扫描:
|
3443
|
+
# 0 待扫描,
|
3444
|
+
# 2 扫描终止,
|
3445
|
+
# 3 扫描成功,
|
3446
|
+
# 4 扫描失败
|
3447
|
+
|
3448
|
+
# @param request: Request instance for StartDSPADiscoveryTask.
|
3449
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::StartDSPADiscoveryTaskRequest`
|
3450
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::StartDSPADiscoveryTaskResponse`
|
3451
|
+
def StartDSPADiscoveryTask(request)
|
3452
|
+
body = send_request('StartDSPADiscoveryTask', request.serialize)
|
3453
|
+
response = JSON.parse(body)
|
3454
|
+
if response['Response'].key?('Error') == false
|
3455
|
+
model = StartDSPADiscoveryTaskResponse.new
|
3456
|
+
model.deserialize(response['Response'])
|
3457
|
+
model
|
3458
|
+
else
|
3459
|
+
code = response['Response']['Error']['Code']
|
3460
|
+
message = response['Response']['Error']['Message']
|
3461
|
+
reqid = response['Response']['RequestId']
|
3462
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3463
|
+
end
|
3464
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3465
|
+
raise e
|
3466
|
+
rescue StandardError => e
|
3467
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3468
|
+
end
|
3469
|
+
|
3470
|
+
# 停止分类分级任务,该接口只有在任务状态为以下状态时才支持正确执行停止扫描:
|
3471
|
+
# 1 扫描中
|
3472
|
+
|
3473
|
+
# @param request: Request instance for StopDSPADiscoveryTask.
|
3474
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::StopDSPADiscoveryTaskRequest`
|
3475
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::StopDSPADiscoveryTaskResponse`
|
3476
|
+
def StopDSPADiscoveryTask(request)
|
3477
|
+
body = send_request('StopDSPADiscoveryTask', request.serialize)
|
3478
|
+
response = JSON.parse(body)
|
3479
|
+
if response['Response'].key?('Error') == false
|
3480
|
+
model = StopDSPADiscoveryTaskResponse.new
|
3481
|
+
model.deserialize(response['Response'])
|
3482
|
+
model
|
3483
|
+
else
|
3484
|
+
code = response['Response']['Error']['Code']
|
3485
|
+
message = response['Response']['Error']['Message']
|
3486
|
+
reqid = response['Response']['RequestId']
|
3487
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3488
|
+
end
|
3489
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3490
|
+
raise e
|
3491
|
+
rescue StandardError => e
|
3492
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3493
|
+
end
|
3494
|
+
|
3495
|
+
# 更新自建资源基础信息,包括:端口、账户名、密码。
|
3496
|
+
# 请注意:
|
3497
|
+
# 如果资源自身的VPC、VIP信息发生变化,后台会自动更新。
|
3498
|
+
# 如果监听的端口发生变化,请显式输入端口。
|
3499
|
+
# 如果账户名密码任意一个发生变化,请务必同时显式输入账户名密码。
|
3500
|
+
|
3501
|
+
# @param request: Request instance for UpdateDSPASelfBuildResource.
|
3502
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::UpdateDSPASelfBuildResourceRequest`
|
3503
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::UpdateDSPASelfBuildResourceResponse`
|
3504
|
+
def UpdateDSPASelfBuildResource(request)
|
3505
|
+
body = send_request('UpdateDSPASelfBuildResource', request.serialize)
|
3506
|
+
response = JSON.parse(body)
|
3507
|
+
if response['Response'].key?('Error') == false
|
3508
|
+
model = UpdateDSPASelfBuildResourceResponse.new
|
3509
|
+
model.deserialize(response['Response'])
|
3510
|
+
model
|
3511
|
+
else
|
3512
|
+
code = response['Response']['Error']['Code']
|
3513
|
+
message = response['Response']['Error']['Message']
|
3514
|
+
reqid = response['Response']['RequestId']
|
3515
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3516
|
+
end
|
3517
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3518
|
+
raise e
|
3519
|
+
rescue StandardError => e
|
3520
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3521
|
+
end
|
3522
|
+
|
3523
|
+
# 验证COS分类分级规则
|
3524
|
+
|
3525
|
+
# @param request: Request instance for VerifyDSPACOSRule.
|
3526
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::VerifyDSPACOSRuleRequest`
|
3527
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::VerifyDSPACOSRuleResponse`
|
3528
|
+
def VerifyDSPACOSRule(request)
|
3529
|
+
body = send_request('VerifyDSPACOSRule', request.serialize)
|
3530
|
+
response = JSON.parse(body)
|
3531
|
+
if response['Response'].key?('Error') == false
|
3532
|
+
model = VerifyDSPACOSRuleResponse.new
|
3533
|
+
model.deserialize(response['Response'])
|
3534
|
+
model
|
3535
|
+
else
|
3536
|
+
code = response['Response']['Error']['Code']
|
3537
|
+
message = response['Response']['Error']['Message']
|
3538
|
+
reqid = response['Response']['RequestId']
|
3539
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3540
|
+
end
|
3541
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3542
|
+
raise e
|
3543
|
+
rescue StandardError => e
|
3544
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3545
|
+
end
|
3546
|
+
|
3547
|
+
# 验证分类分级规则
|
3548
|
+
|
3549
|
+
# @param request: Request instance for VerifyDSPADiscoveryRule.
|
3550
|
+
# @type request: :class:`Tencentcloud::dsgc::V20190723::VerifyDSPADiscoveryRuleRequest`
|
3551
|
+
# @rtype: :class:`Tencentcloud::dsgc::V20190723::VerifyDSPADiscoveryRuleResponse`
|
3552
|
+
def VerifyDSPADiscoveryRule(request)
|
3553
|
+
body = send_request('VerifyDSPADiscoveryRule', request.serialize)
|
3554
|
+
response = JSON.parse(body)
|
3555
|
+
if response['Response'].key?('Error') == false
|
3556
|
+
model = VerifyDSPADiscoveryRuleResponse.new
|
42
3557
|
model.deserialize(response['Response'])
|
43
3558
|
model
|
44
3559
|
else
|