tencentcloud-sdk-python-intl-en 3.0.1261__py2.py3-none-any.whl → 3.0.1262__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1261'
16
+ __version__ = '3.0.1262'
@@ -65,6 +65,512 @@ class BiClient(AbstractClient):
65
65
  model = models.CreateDatasourceResponse()
66
66
  model._deserialize(response["Response"])
67
67
  return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def CreateDatasourceCloud(self, request):
76
+ """This API is used to create a cloud database.
77
+
78
+ :param request: Request instance for CreateDatasourceCloud.
79
+ :type request: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceCloudRequest`
80
+ :rtype: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceCloudResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("CreateDatasourceCloud", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.CreateDatasourceCloudResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def CreateEmbedToken(self, request):
99
+ """This API is used to create an embedded report with strong authentication.
100
+
101
+ :param request: Request instance for CreateEmbedToken.
102
+ :type request: :class:`tencentcloud.bi.v20220105.models.CreateEmbedTokenRequest`
103
+ :rtype: :class:`tencentcloud.bi.v20220105.models.CreateEmbedTokenResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("CreateEmbedToken", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.CreateEmbedTokenResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
121
+ def CreateProject(self, request):
122
+ """This API is used to create a project.
123
+
124
+ :param request: Request instance for CreateProject.
125
+ :type request: :class:`tencentcloud.bi.v20220105.models.CreateProjectRequest`
126
+ :rtype: :class:`tencentcloud.bi.v20220105.models.CreateProjectResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("CreateProject", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.CreateProjectResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
144
+ def CreateUserRole(self, request):
145
+ """This API is used to create a user role.
146
+
147
+ :param request: Request instance for CreateUserRole.
148
+ :type request: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleRequest`
149
+ :rtype: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("CreateUserRole", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.CreateUserRoleResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
167
+ def CreateUserRoleProject(self, request):
168
+ """This API is used to create a user role in the project.
169
+
170
+ :param request: Request instance for CreateUserRoleProject.
171
+ :type request: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleProjectRequest`
172
+ :rtype: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleProjectResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("CreateUserRoleProject", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.CreateUserRoleProjectResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
190
+ def DeleteDatasource(self, request):
191
+ """This API is used to delete a data source.
192
+
193
+ :param request: Request instance for DeleteDatasource.
194
+ :type request: :class:`tencentcloud.bi.v20220105.models.DeleteDatasourceRequest`
195
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DeleteDatasourceResponse`
196
+
197
+ """
198
+ try:
199
+ params = request._serialize()
200
+ headers = request.headers
201
+ body = self.call("DeleteDatasource", params, headers=headers)
202
+ response = json.loads(body)
203
+ model = models.DeleteDatasourceResponse()
204
+ model._deserialize(response["Response"])
205
+ return model
206
+ except Exception as e:
207
+ if isinstance(e, TencentCloudSDKException):
208
+ raise
209
+ else:
210
+ raise TencentCloudSDKException(type(e).__name__, str(e))
211
+
212
+
213
+ def DeleteProject(self, request):
214
+ """This API is used to delete a project.
215
+
216
+ :param request: Request instance for DeleteProject.
217
+ :type request: :class:`tencentcloud.bi.v20220105.models.DeleteProjectRequest`
218
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DeleteProjectResponse`
219
+
220
+ """
221
+ try:
222
+ params = request._serialize()
223
+ headers = request.headers
224
+ body = self.call("DeleteProject", params, headers=headers)
225
+ response = json.loads(body)
226
+ model = models.DeleteProjectResponse()
227
+ model._deserialize(response["Response"])
228
+ return model
229
+ except Exception as e:
230
+ if isinstance(e, TencentCloudSDKException):
231
+ raise
232
+ else:
233
+ raise TencentCloudSDKException(type(e).__name__, str(e))
234
+
235
+
236
+ def DeleteUserRole(self, request):
237
+ """This API is used to remove a user role, which will result in user deletion.
238
+
239
+ :param request: Request instance for DeleteUserRole.
240
+ :type request: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleRequest`
241
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleResponse`
242
+
243
+ """
244
+ try:
245
+ params = request._serialize()
246
+ headers = request.headers
247
+ body = self.call("DeleteUserRole", params, headers=headers)
248
+ response = json.loads(body)
249
+ model = models.DeleteUserRoleResponse()
250
+ model._deserialize(response["Response"])
251
+ return model
252
+ except Exception as e:
253
+ if isinstance(e, TencentCloudSDKException):
254
+ raise
255
+ else:
256
+ raise TencentCloudSDKException(type(e).__name__, str(e))
257
+
258
+
259
+ def DeleteUserRoleProject(self, request):
260
+ """This API is used to delete a user role in the project.
261
+
262
+ :param request: Request instance for DeleteUserRoleProject.
263
+ :type request: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleProjectRequest`
264
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleProjectResponse`
265
+
266
+ """
267
+ try:
268
+ params = request._serialize()
269
+ headers = request.headers
270
+ body = self.call("DeleteUserRoleProject", params, headers=headers)
271
+ response = json.loads(body)
272
+ model = models.DeleteUserRoleProjectResponse()
273
+ model._deserialize(response["Response"])
274
+ return model
275
+ except Exception as e:
276
+ if isinstance(e, TencentCloudSDKException):
277
+ raise
278
+ else:
279
+ raise TencentCloudSDKException(type(e).__name__, str(e))
280
+
281
+
282
+ def DescribeDatasourceList(self, request):
283
+ """This API is used to query a data source list.
284
+
285
+ :param request: Request instance for DescribeDatasourceList.
286
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeDatasourceListRequest`
287
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeDatasourceListResponse`
288
+
289
+ """
290
+ try:
291
+ params = request._serialize()
292
+ headers = request.headers
293
+ body = self.call("DescribeDatasourceList", params, headers=headers)
294
+ response = json.loads(body)
295
+ model = models.DescribeDatasourceListResponse()
296
+ model._deserialize(response["Response"])
297
+ return model
298
+ except Exception as e:
299
+ if isinstance(e, TencentCloudSDKException):
300
+ raise
301
+ else:
302
+ raise TencentCloudSDKException(type(e).__name__, str(e))
303
+
304
+
305
+ def DescribePageWidgetList(self, request):
306
+ """This API is used to query component information on the page.
307
+
308
+ :param request: Request instance for DescribePageWidgetList.
309
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribePageWidgetListRequest`
310
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribePageWidgetListResponse`
311
+
312
+ """
313
+ try:
314
+ params = request._serialize()
315
+ headers = request.headers
316
+ body = self.call("DescribePageWidgetList", params, headers=headers)
317
+ response = json.loads(body)
318
+ model = models.DescribePageWidgetListResponse()
319
+ model._deserialize(response["Response"])
320
+ return model
321
+ except Exception as e:
322
+ if isinstance(e, TencentCloudSDKException):
323
+ raise
324
+ else:
325
+ raise TencentCloudSDKException(type(e).__name__, str(e))
326
+
327
+
328
+ def DescribeProjectInfo(self, request):
329
+ """This API is used to obtain project details.
330
+
331
+ :param request: Request instance for DescribeProjectInfo.
332
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeProjectInfoRequest`
333
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeProjectInfoResponse`
334
+
335
+ """
336
+ try:
337
+ params = request._serialize()
338
+ headers = request.headers
339
+ body = self.call("DescribeProjectInfo", params, headers=headers)
340
+ response = json.loads(body)
341
+ model = models.DescribeProjectInfoResponse()
342
+ model._deserialize(response["Response"])
343
+ return model
344
+ except Exception as e:
345
+ if isinstance(e, TencentCloudSDKException):
346
+ raise
347
+ else:
348
+ raise TencentCloudSDKException(type(e).__name__, str(e))
349
+
350
+
351
+ def DescribeProjectList(self, request):
352
+ """This API is used to obtain project information.
353
+
354
+ :param request: Request instance for DescribeProjectList.
355
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeProjectListRequest`
356
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeProjectListResponse`
357
+
358
+ """
359
+ try:
360
+ params = request._serialize()
361
+ headers = request.headers
362
+ body = self.call("DescribeProjectList", params, headers=headers)
363
+ response = json.loads(body)
364
+ model = models.DescribeProjectListResponse()
365
+ model._deserialize(response["Response"])
366
+ return model
367
+ except Exception as e:
368
+ if isinstance(e, TencentCloudSDKException):
369
+ raise
370
+ else:
371
+ raise TencentCloudSDKException(type(e).__name__, str(e))
372
+
373
+
374
+ def DescribeUserProjectList(self, request):
375
+ """This API is used to obtain the user interface in the project.
376
+
377
+ :param request: Request instance for DescribeUserProjectList.
378
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserProjectListRequest`
379
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserProjectListResponse`
380
+
381
+ """
382
+ try:
383
+ params = request._serialize()
384
+ headers = request.headers
385
+ body = self.call("DescribeUserProjectList", params, headers=headers)
386
+ response = json.loads(body)
387
+ model = models.DescribeUserProjectListResponse()
388
+ model._deserialize(response["Response"])
389
+ return model
390
+ except Exception as e:
391
+ if isinstance(e, TencentCloudSDKException):
392
+ raise
393
+ else:
394
+ raise TencentCloudSDKException(type(e).__name__, str(e))
395
+
396
+
397
+ def DescribeUserRoleList(self, request):
398
+ """This API is used to obtain the user role list.
399
+
400
+ :param request: Request instance for DescribeUserRoleList.
401
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleListRequest`
402
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleListResponse`
403
+
404
+ """
405
+ try:
406
+ params = request._serialize()
407
+ headers = request.headers
408
+ body = self.call("DescribeUserRoleList", params, headers=headers)
409
+ response = json.loads(body)
410
+ model = models.DescribeUserRoleListResponse()
411
+ model._deserialize(response["Response"])
412
+ return model
413
+ except Exception as e:
414
+ if isinstance(e, TencentCloudSDKException):
415
+ raise
416
+ else:
417
+ raise TencentCloudSDKException(type(e).__name__, str(e))
418
+
419
+
420
+ def DescribeUserRoleProjectList(self, request):
421
+ """This API is used to obtain the user role list in the project.
422
+
423
+ :param request: Request instance for DescribeUserRoleProjectList.
424
+ :type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleProjectListRequest`
425
+ :rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleProjectListResponse`
426
+
427
+ """
428
+ try:
429
+ params = request._serialize()
430
+ headers = request.headers
431
+ body = self.call("DescribeUserRoleProjectList", params, headers=headers)
432
+ response = json.loads(body)
433
+ model = models.DescribeUserRoleProjectListResponse()
434
+ model._deserialize(response["Response"])
435
+ return model
436
+ except Exception as e:
437
+ if isinstance(e, TencentCloudSDKException):
438
+ raise
439
+ else:
440
+ raise TencentCloudSDKException(type(e).__name__, str(e))
441
+
442
+
443
+ def ExportScreenPage(self, request):
444
+ """This API is used to export a screenshot.
445
+
446
+ :param request: Request instance for ExportScreenPage.
447
+ :type request: :class:`tencentcloud.bi.v20220105.models.ExportScreenPageRequest`
448
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ExportScreenPageResponse`
449
+
450
+ """
451
+ try:
452
+ params = request._serialize()
453
+ headers = request.headers
454
+ body = self.call("ExportScreenPage", params, headers=headers)
455
+ response = json.loads(body)
456
+ model = models.ExportScreenPageResponse()
457
+ model._deserialize(response["Response"])
458
+ return model
459
+ except Exception as e:
460
+ if isinstance(e, TencentCloudSDKException):
461
+ raise
462
+ else:
463
+ raise TencentCloudSDKException(type(e).__name__, str(e))
464
+
465
+
466
+ def ModifyDatasource(self, request):
467
+ """This API is used to update a data source.
468
+
469
+ :param request: Request instance for ModifyDatasource.
470
+ :type request: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceRequest`
471
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceResponse`
472
+
473
+ """
474
+ try:
475
+ params = request._serialize()
476
+ headers = request.headers
477
+ body = self.call("ModifyDatasource", params, headers=headers)
478
+ response = json.loads(body)
479
+ model = models.ModifyDatasourceResponse()
480
+ model._deserialize(response["Response"])
481
+ return model
482
+ except Exception as e:
483
+ if isinstance(e, TencentCloudSDKException):
484
+ raise
485
+ else:
486
+ raise TencentCloudSDKException(type(e).__name__, str(e))
487
+
488
+
489
+ def ModifyDatasourceCloud(self, request):
490
+ """This API is used to update a cloud database.
491
+
492
+ :param request: Request instance for ModifyDatasourceCloud.
493
+ :type request: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceCloudRequest`
494
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceCloudResponse`
495
+
496
+ """
497
+ try:
498
+ params = request._serialize()
499
+ headers = request.headers
500
+ body = self.call("ModifyDatasourceCloud", params, headers=headers)
501
+ response = json.loads(body)
502
+ model = models.ModifyDatasourceCloudResponse()
503
+ model._deserialize(response["Response"])
504
+ return model
505
+ except Exception as e:
506
+ if isinstance(e, TencentCloudSDKException):
507
+ raise
508
+ else:
509
+ raise TencentCloudSDKException(type(e).__name__, str(e))
510
+
511
+
512
+ def ModifyProject(self, request):
513
+ """This API is used to modify project information.
514
+
515
+ :param request: Request instance for ModifyProject.
516
+ :type request: :class:`tencentcloud.bi.v20220105.models.ModifyProjectRequest`
517
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ModifyProjectResponse`
518
+
519
+ """
520
+ try:
521
+ params = request._serialize()
522
+ headers = request.headers
523
+ body = self.call("ModifyProject", params, headers=headers)
524
+ response = json.loads(body)
525
+ model = models.ModifyProjectResponse()
526
+ model._deserialize(response["Response"])
527
+ return model
528
+ except Exception as e:
529
+ if isinstance(e, TencentCloudSDKException):
530
+ raise
531
+ else:
532
+ raise TencentCloudSDKException(type(e).__name__, str(e))
533
+
534
+
535
+ def ModifyUserRole(self, request):
536
+ """This API is used to modify user role info.
537
+
538
+ :param request: Request instance for ModifyUserRole.
539
+ :type request: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleRequest`
540
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleResponse`
541
+
542
+ """
543
+ try:
544
+ params = request._serialize()
545
+ headers = request.headers
546
+ body = self.call("ModifyUserRole", params, headers=headers)
547
+ response = json.loads(body)
548
+ model = models.ModifyUserRoleResponse()
549
+ model._deserialize(response["Response"])
550
+ return model
551
+ except Exception as e:
552
+ if isinstance(e, TencentCloudSDKException):
553
+ raise
554
+ else:
555
+ raise TencentCloudSDKException(type(e).__name__, str(e))
556
+
557
+
558
+ def ModifyUserRoleProject(self, request):
559
+ """This API is used to modify the user role info in the project.
560
+
561
+ :param request: Request instance for ModifyUserRoleProject.
562
+ :type request: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleProjectRequest`
563
+ :rtype: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleProjectResponse`
564
+
565
+ """
566
+ try:
567
+ params = request._serialize()
568
+ headers = request.headers
569
+ body = self.call("ModifyUserRoleProject", params, headers=headers)
570
+ response = json.loads(body)
571
+ model = models.ModifyUserRoleProjectResponse()
572
+ model._deserialize(response["Response"])
573
+ return model
68
574
  except Exception as e:
69
575
  if isinstance(e, TencentCloudSDKException):
70
576
  raise
@@ -17,6 +17,9 @@
17
17
  # CAM signature/authentication error.
18
18
  AUTHFAILURE = 'AuthFailure'
19
19
 
20
+ # DryRun operation means the request will be successful, but the DryRun parameter is passed.
21
+ DRYRUNOPERATION = 'DryRunOperation'
22
+
20
23
  # Operation failed.
21
24
  FAILEDOPERATION = 'FailedOperation'
22
25
 
@@ -56,6 +59,12 @@ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
56
59
  # Permission error.
57
60
  UNAUTHORIZEDOPERATION_AUTHORIZE = 'UnauthorizedOperation.Authorize'
58
61
 
62
+ # User is not enabled.
63
+ UNAUTHORIZEDOPERATION_INACTIVE = 'UnauthorizedOperation.Inactive'
64
+
65
+ # The user does not exist.
66
+ UNAUTHORIZEDOPERATION_USERNOTEXIST = 'UnauthorizedOperation.UserNotExist'
67
+
59
68
  # Unknown parameter error.
60
69
  UNKNOWNPARAMETER = 'UnknownParameter'
61
70