tencentcloud-sdk-bi 3.0.666 → 3.0.667
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220105/client.rb +432 -0
- data/lib/v20220105/models.rb +2392 -60
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 002744f11bb3759a7a91749e62730babb8b4ab72
|
4
|
+
data.tar.gz: f03becc2f52b9d070eca98c27c8505c7859afa70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e9388d0843262fc9b8108665ac80e4684858f368003b2511b26627ca7088b1e88014923ae2e06eb0595bff2151344b987dd550c4f012ff280ba06b8c76102d4
|
7
|
+
data.tar.gz: 01ef5e1b5faf15f29dc0f38dac7c48b68b5c7a4cb6578c71ba1dc33df7bd188b99051237052cd59375ba7e6a624ea1904a178906c665f3e617bb432885435703
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.667
|
data/lib/v20220105/client.rb
CHANGED
@@ -53,6 +53,54 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 创建数据源
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateDatasource.
|
59
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::CreateDatasourceRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::CreateDatasourceResponse`
|
61
|
+
def CreateDatasource(request)
|
62
|
+
body = send_request('CreateDatasource', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateDatasourceResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
# 创建云数据库
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateDatasourceCloud.
|
83
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::CreateDatasourceCloudRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::CreateDatasourceCloudResponse`
|
85
|
+
def CreateDatasourceCloud(request)
|
86
|
+
body = send_request('CreateDatasourceCloud', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateDatasourceCloudResponse.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
|
+
|
56
104
|
# 创建嵌出报表-强鉴权
|
57
105
|
|
58
106
|
# @param request: Request instance for CreateEmbedToken.
|
@@ -77,6 +125,390 @@ module TencentCloud
|
|
77
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
126
|
end
|
79
127
|
|
128
|
+
# 创建项目
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateProject.
|
131
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::CreateProjectRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::CreateProjectResponse`
|
133
|
+
def CreateProject(request)
|
134
|
+
body = send_request('CreateProject', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateProjectResponse.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 CreateUserRole.
|
155
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::CreateUserRoleRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::CreateUserRoleResponse`
|
157
|
+
def CreateUserRole(request)
|
158
|
+
body = send_request('CreateUserRole', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CreateUserRoleResponse.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 CreateUserRoleProject.
|
179
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::CreateUserRoleProjectRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::CreateUserRoleProjectResponse`
|
181
|
+
def CreateUserRoleProject(request)
|
182
|
+
body = send_request('CreateUserRoleProject', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateUserRoleProjectResponse.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 DeleteDatasource.
|
203
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DeleteDatasourceRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DeleteDatasourceResponse`
|
205
|
+
def DeleteDatasource(request)
|
206
|
+
body = send_request('DeleteDatasource', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DeleteDatasourceResponse.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 DeleteProject.
|
227
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DeleteProjectRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DeleteProjectResponse`
|
229
|
+
def DeleteProject(request)
|
230
|
+
body = send_request('DeleteProject', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteProjectResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 删除用户角色,会删除用户
|
249
|
+
|
250
|
+
# @param request: Request instance for DeleteUserRole.
|
251
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DeleteUserRoleRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DeleteUserRoleResponse`
|
253
|
+
def DeleteUserRole(request)
|
254
|
+
body = send_request('DeleteUserRole', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DeleteUserRoleResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 项目内-删除用户角色
|
273
|
+
|
274
|
+
# @param request: Request instance for DeleteUserRoleProject.
|
275
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DeleteUserRoleProjectRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DeleteUserRoleProjectResponse`
|
277
|
+
def DeleteUserRoleProject(request)
|
278
|
+
body = send_request('DeleteUserRoleProject', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DeleteUserRoleProjectResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
296
|
+
# 查询数据源列表
|
297
|
+
|
298
|
+
# @param request: Request instance for DescribeDatasourceList.
|
299
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DescribeDatasourceListRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DescribeDatasourceListResponse`
|
301
|
+
def DescribeDatasourceList(request)
|
302
|
+
body = send_request('DescribeDatasourceList', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DescribeDatasourceListResponse.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 DescribeProjectInfo.
|
323
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DescribeProjectInfoRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DescribeProjectInfoResponse`
|
325
|
+
def DescribeProjectInfo(request)
|
326
|
+
body = send_request('DescribeProjectInfo', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeProjectInfoResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
344
|
+
# 项目信息
|
345
|
+
|
346
|
+
# @param request: Request instance for DescribeProjectList.
|
347
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DescribeProjectListRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DescribeProjectListResponse`
|
349
|
+
def DescribeProjectList(request)
|
350
|
+
body = send_request('DescribeProjectList', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DescribeProjectListResponse.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 DescribeUserProjectList.
|
371
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DescribeUserProjectListRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DescribeUserProjectListResponse`
|
373
|
+
def DescribeUserProjectList(request)
|
374
|
+
body = send_request('DescribeUserProjectList', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DescribeUserProjectListResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 用户角色列表
|
393
|
+
|
394
|
+
# @param request: Request instance for DescribeUserRoleList.
|
395
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::DescribeUserRoleListRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::DescribeUserRoleListResponse`
|
397
|
+
def DescribeUserRoleList(request)
|
398
|
+
body = send_request('DescribeUserRoleList', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DescribeUserRoleListResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 更新数据源
|
417
|
+
|
418
|
+
# @param request: Request instance for ModifyDatasource.
|
419
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::ModifyDatasourceRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::ModifyDatasourceResponse`
|
421
|
+
def ModifyDatasource(request)
|
422
|
+
body = send_request('ModifyDatasource', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = ModifyDatasourceResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
440
|
+
# 更新云数据库
|
441
|
+
|
442
|
+
# @param request: Request instance for ModifyDatasourceCloud.
|
443
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::ModifyDatasourceCloudRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::ModifyDatasourceCloudResponse`
|
445
|
+
def ModifyDatasourceCloud(request)
|
446
|
+
body = send_request('ModifyDatasourceCloud', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = ModifyDatasourceCloudResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
464
|
+
# 修改项目信息
|
465
|
+
|
466
|
+
# @param request: Request instance for ModifyProject.
|
467
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::ModifyProjectRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::ModifyProjectResponse`
|
469
|
+
def ModifyProject(request)
|
470
|
+
body = send_request('ModifyProject', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = ModifyProjectResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
488
|
+
# 项目-修改用户角色信息
|
489
|
+
|
490
|
+
# @param request: Request instance for ModifyUserRoleProject.
|
491
|
+
# @type request: :class:`Tencentcloud::bi::V20220105::ModifyUserRoleProjectRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::bi::V20220105::ModifyUserRoleProjectResponse`
|
493
|
+
def ModifyUserRoleProject(request)
|
494
|
+
body = send_request('ModifyUserRoleProject', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = ModifyUserRoleProjectResponse.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
|
+
|
80
512
|
|
81
513
|
end
|
82
514
|
end
|