第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,693 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import json
|
||||
|
||||
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
||||
from tencentcloud.common.abstract_client import AbstractClient
|
||||
from tencentcloud.bi.v20220105 import models
|
||||
|
||||
|
||||
class BiClient(AbstractClient):
|
||||
_apiVersion = '2022-01-05'
|
||||
_endpoint = 'bi.tencentcloudapi.com'
|
||||
_service = 'bi'
|
||||
|
||||
|
||||
def ApplyEmbedInterval(self, request):
|
||||
r"""申请延长Token可用时间接口-强鉴权
|
||||
|
||||
:param request: Request instance for ApplyEmbedInterval.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ApplyEmbedIntervalRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ApplyEmbedIntervalResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ApplyEmbedInterval", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ApplyEmbedIntervalResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ClearEmbedToken(self, request):
|
||||
r"""强鉴权token 清理,只有企业管理员才能调用该接口
|
||||
|
||||
:param request: Request instance for ClearEmbedToken.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ClearEmbedTokenRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ClearEmbedTokenResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ClearEmbedToken", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ClearEmbedTokenResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateDatasource(self, request):
|
||||
r"""创建数据源
|
||||
|
||||
:param request: Request instance for CreateDatasource.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateDatasource", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateDatasourceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateDatasourceCloud(self, request):
|
||||
r"""创建云数据库
|
||||
|
||||
:param request: Request instance for CreateDatasourceCloud.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceCloudRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateDatasourceCloudResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateDatasourceCloud", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateDatasourceCloudResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateEmbedToken(self, request):
|
||||
r"""创建嵌出报表-强鉴权
|
||||
|
||||
:param request: Request instance for CreateEmbedToken.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateEmbedTokenRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateEmbedTokenResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateEmbedToken", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateEmbedTokenResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreatePermissionRanks(self, request):
|
||||
r"""创建行列权限
|
||||
|
||||
:param request: Request instance for CreatePermissionRanks.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreatePermissionRanksRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreatePermissionRanksResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreatePermissionRanks", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreatePermissionRanksResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateProject(self, request):
|
||||
r"""创建项目
|
||||
|
||||
:param request: Request instance for CreateProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateUserRole(self, request):
|
||||
r"""创建用户角色
|
||||
|
||||
:param request: Request instance for CreateUserRole.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateUserRole", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateUserRoleResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateUserRoleProject(self, request):
|
||||
r"""项目内-创建用户角色
|
||||
|
||||
:param request: Request instance for CreateUserRoleProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.CreateUserRoleProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateUserRoleProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateUserRoleProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteDatasource(self, request):
|
||||
r"""删除数据源
|
||||
|
||||
:param request: Request instance for DeleteDatasource.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DeleteDatasourceRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DeleteDatasourceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteDatasource", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteDatasourceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteProject(self, request):
|
||||
r"""删除项目
|
||||
|
||||
:param request: Request instance for DeleteProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DeleteProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DeleteProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteUserRole(self, request):
|
||||
r"""删除用户角色,会删除用户
|
||||
|
||||
:param request: Request instance for DeleteUserRole.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteUserRole", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteUserRoleResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteUserRoleProject(self, request):
|
||||
r"""项目内-删除用户角色
|
||||
|
||||
:param request: Request instance for DeleteUserRoleProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DeleteUserRoleProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteUserRoleProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteUserRoleProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeDatasourceList(self, request):
|
||||
r"""查询数据源列表
|
||||
|
||||
:param request: Request instance for DescribeDatasourceList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeDatasourceListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeDatasourceListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeDatasourceList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeDatasourceListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribePageWidgetList(self, request):
|
||||
r"""查询页面组件信息
|
||||
|
||||
:param request: Request instance for DescribePageWidgetList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribePageWidgetListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribePageWidgetListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribePageWidgetList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribePageWidgetListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribePermissionRanksInfo(self, request):
|
||||
r"""根据角色或标签查询行列权限配置
|
||||
|
||||
:param request: Request instance for DescribePermissionRanksInfo.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribePermissionRanksInfoRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribePermissionRanksInfoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribePermissionRanksInfo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribePermissionRanksInfoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribePermissionRoleInfo(self, request):
|
||||
r"""行列权限项目内角色列表接口1
|
||||
|
||||
:param request: Request instance for DescribePermissionRoleInfo.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribePermissionRoleInfoRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribePermissionRoleInfoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribePermissionRoleInfo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribePermissionRoleInfoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribePermissionStatusInfo(self, request):
|
||||
r"""查询行列权限初始状态1
|
||||
|
||||
:param request: Request instance for DescribePermissionStatusInfo.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribePermissionStatusInfoRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribePermissionStatusInfoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribePermissionStatusInfo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribePermissionStatusInfoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeProjectInfo(self, request):
|
||||
r"""项目详情接口
|
||||
|
||||
:param request: Request instance for DescribeProjectInfo.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeProjectInfoRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeProjectInfoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeProjectInfo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeProjectInfoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeProjectList(self, request):
|
||||
r"""项目信息
|
||||
|
||||
:param request: Request instance for DescribeProjectList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeProjectListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeProjectListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeProjectList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeProjectListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeUserProjectList(self, request):
|
||||
r"""项目内-用户接口
|
||||
|
||||
:param request: Request instance for DescribeUserProjectList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserProjectListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserProjectListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeUserProjectList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeUserProjectListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeUserRoleList(self, request):
|
||||
r"""用户角色列表
|
||||
|
||||
:param request: Request instance for DescribeUserRoleList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeUserRoleList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeUserRoleListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeUserRoleProjectList(self, request):
|
||||
r"""项目内-用户角色列表
|
||||
|
||||
:param request: Request instance for DescribeUserRoleProjectList.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleProjectListRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.DescribeUserRoleProjectListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeUserRoleProjectList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeUserRoleProjectListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ExportScreenPage(self, request):
|
||||
r"""页面截图导出
|
||||
|
||||
:param request: Request instance for ExportScreenPage.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ExportScreenPageRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ExportScreenPageResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ExportScreenPage", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ExportScreenPageResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyDatasource(self, request):
|
||||
r"""更新数据源
|
||||
|
||||
:param request: Request instance for ModifyDatasource.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyDatasource", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyDatasourceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyDatasourceCloud(self, request):
|
||||
r"""更新云数据库
|
||||
|
||||
:param request: Request instance for ModifyDatasourceCloud.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceCloudRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ModifyDatasourceCloudResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyDatasourceCloud", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyDatasourceCloudResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyProject(self, request):
|
||||
r"""修改项目信息
|
||||
|
||||
:param request: Request instance for ModifyProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ModifyProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ModifyProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyUserRole(self, request):
|
||||
r"""修改用户角色信息
|
||||
|
||||
:param request: Request instance for ModifyUserRole.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyUserRole", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyUserRoleResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyUserRoleProject(self, request):
|
||||
r"""项目-修改用户角色信息
|
||||
|
||||
:param request: Request instance for ModifyUserRoleProject.
|
||||
:type request: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleProjectRequest`
|
||||
:rtype: :class:`tencentcloud.bi.v20220105.models.ModifyUserRoleProjectResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyUserRoleProject", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyUserRoleProjectResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
@@ -0,0 +1,548 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
|
||||
from tencentcloud.common.abstract_client_async import AbstractClient
|
||||
from tencentcloud.bi.v20220105 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class BiClient(AbstractClient):
|
||||
_apiVersion = '2022-01-05'
|
||||
_endpoint = 'bi.tencentcloudapi.com'
|
||||
_service = 'bi'
|
||||
|
||||
async def ApplyEmbedInterval(
|
||||
self,
|
||||
request: models.ApplyEmbedIntervalRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ApplyEmbedIntervalResponse:
|
||||
"""
|
||||
申请延长Token可用时间接口-强鉴权
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ApplyEmbedInterval"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ApplyEmbedIntervalResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ClearEmbedToken(
|
||||
self,
|
||||
request: models.ClearEmbedTokenRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ClearEmbedTokenResponse:
|
||||
"""
|
||||
强鉴权token 清理,只有企业管理员才能调用该接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ClearEmbedToken"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ClearEmbedTokenResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateDatasource(
|
||||
self,
|
||||
request: models.CreateDatasourceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateDatasourceResponse:
|
||||
"""
|
||||
创建数据源
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateDatasource"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateDatasourceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateDatasourceCloud(
|
||||
self,
|
||||
request: models.CreateDatasourceCloudRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateDatasourceCloudResponse:
|
||||
"""
|
||||
创建云数据库
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateDatasourceCloud"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateDatasourceCloudResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateEmbedToken(
|
||||
self,
|
||||
request: models.CreateEmbedTokenRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateEmbedTokenResponse:
|
||||
"""
|
||||
创建嵌出报表-强鉴权
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateEmbedToken"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateEmbedTokenResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreatePermissionRanks(
|
||||
self,
|
||||
request: models.CreatePermissionRanksRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreatePermissionRanksResponse:
|
||||
"""
|
||||
创建行列权限
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreatePermissionRanks"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreatePermissionRanksResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateProject(
|
||||
self,
|
||||
request: models.CreateProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateProjectResponse:
|
||||
"""
|
||||
创建项目
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateUserRole(
|
||||
self,
|
||||
request: models.CreateUserRoleRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateUserRoleResponse:
|
||||
"""
|
||||
创建用户角色
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateUserRole"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateUserRoleResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateUserRoleProject(
|
||||
self,
|
||||
request: models.CreateUserRoleProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateUserRoleProjectResponse:
|
||||
"""
|
||||
项目内-创建用户角色
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateUserRoleProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateUserRoleProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteDatasource(
|
||||
self,
|
||||
request: models.DeleteDatasourceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteDatasourceResponse:
|
||||
"""
|
||||
删除数据源
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteDatasource"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteDatasourceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteProject(
|
||||
self,
|
||||
request: models.DeleteProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteProjectResponse:
|
||||
"""
|
||||
删除项目
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteUserRole(
|
||||
self,
|
||||
request: models.DeleteUserRoleRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteUserRoleResponse:
|
||||
"""
|
||||
删除用户角色,会删除用户
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteUserRole"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteUserRoleResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteUserRoleProject(
|
||||
self,
|
||||
request: models.DeleteUserRoleProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteUserRoleProjectResponse:
|
||||
"""
|
||||
项目内-删除用户角色
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteUserRoleProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteUserRoleProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeDatasourceList(
|
||||
self,
|
||||
request: models.DescribeDatasourceListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeDatasourceListResponse:
|
||||
"""
|
||||
查询数据源列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeDatasourceList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeDatasourceListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribePageWidgetList(
|
||||
self,
|
||||
request: models.DescribePageWidgetListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribePageWidgetListResponse:
|
||||
"""
|
||||
查询页面组件信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribePageWidgetList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribePageWidgetListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribePermissionRanksInfo(
|
||||
self,
|
||||
request: models.DescribePermissionRanksInfoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribePermissionRanksInfoResponse:
|
||||
"""
|
||||
根据角色或标签查询行列权限配置
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribePermissionRanksInfo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribePermissionRanksInfoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribePermissionRoleInfo(
|
||||
self,
|
||||
request: models.DescribePermissionRoleInfoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribePermissionRoleInfoResponse:
|
||||
"""
|
||||
行列权限项目内角色列表接口1
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribePermissionRoleInfo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribePermissionRoleInfoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribePermissionStatusInfo(
|
||||
self,
|
||||
request: models.DescribePermissionStatusInfoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribePermissionStatusInfoResponse:
|
||||
"""
|
||||
查询行列权限初始状态1
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribePermissionStatusInfo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribePermissionStatusInfoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeProjectInfo(
|
||||
self,
|
||||
request: models.DescribeProjectInfoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeProjectInfoResponse:
|
||||
"""
|
||||
项目详情接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeProjectInfo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeProjectInfoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeProjectList(
|
||||
self,
|
||||
request: models.DescribeProjectListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeProjectListResponse:
|
||||
"""
|
||||
项目信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeProjectList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeProjectListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeUserProjectList(
|
||||
self,
|
||||
request: models.DescribeUserProjectListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeUserProjectListResponse:
|
||||
"""
|
||||
项目内-用户接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeUserProjectList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeUserProjectListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeUserRoleList(
|
||||
self,
|
||||
request: models.DescribeUserRoleListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeUserRoleListResponse:
|
||||
"""
|
||||
用户角色列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeUserRoleList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeUserRoleListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeUserRoleProjectList(
|
||||
self,
|
||||
request: models.DescribeUserRoleProjectListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeUserRoleProjectListResponse:
|
||||
"""
|
||||
项目内-用户角色列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeUserRoleProjectList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeUserRoleProjectListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ExportScreenPage(
|
||||
self,
|
||||
request: models.ExportScreenPageRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ExportScreenPageResponse:
|
||||
"""
|
||||
页面截图导出
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ExportScreenPage"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ExportScreenPageResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyDatasource(
|
||||
self,
|
||||
request: models.ModifyDatasourceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyDatasourceResponse:
|
||||
"""
|
||||
更新数据源
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyDatasource"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyDatasourceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyDatasourceCloud(
|
||||
self,
|
||||
request: models.ModifyDatasourceCloudRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyDatasourceCloudResponse:
|
||||
"""
|
||||
更新云数据库
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyDatasourceCloud"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyDatasourceCloudResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyProject(
|
||||
self,
|
||||
request: models.ModifyProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyProjectResponse:
|
||||
"""
|
||||
修改项目信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyUserRole(
|
||||
self,
|
||||
request: models.ModifyUserRoleRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyUserRoleResponse:
|
||||
"""
|
||||
修改用户角色信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyUserRole"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyUserRoleResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyUserRoleProject(
|
||||
self,
|
||||
request: models.ModifyUserRoleProjectRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyUserRoleProjectResponse:
|
||||
"""
|
||||
项目-修改用户角色信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyUserRoleProject"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyUserRoleProjectResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
@@ -0,0 +1,75 @@
|
||||
# -*- coding: utf8 -*-
|
||||
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
# CAM签名/鉴权错误。
|
||||
AUTHFAILURE = 'AuthFailure'
|
||||
|
||||
# DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。
|
||||
DRYRUNOPERATION = 'DryRunOperation'
|
||||
|
||||
# 操作失败。
|
||||
FAILEDOPERATION = 'FailedOperation'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR = 'InternalError'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR_INTERNAL = 'InternalError.Internal'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER = 'InvalidParameter'
|
||||
|
||||
# 报表嵌出类错误。
|
||||
INVALIDPARAMETER_EMBED = 'InvalidParameter.Embed'
|
||||
|
||||
# 参数取值错误。
|
||||
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
||||
|
||||
# 超过配额限制。
|
||||
LIMITEXCEEDED = 'LimitExceeded'
|
||||
|
||||
# 缺少参数错误。
|
||||
MISSINGPARAMETER = 'MissingParameter'
|
||||
|
||||
# 必填参数缺失。
|
||||
MISSINGPARAMETER_MISSINGPARAM = 'MissingParameter.MissingParam'
|
||||
|
||||
# 操作被拒绝。
|
||||
OPERATIONDENIED = 'OperationDenied'
|
||||
|
||||
# 请求的次数超过了频率限制。
|
||||
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
||||
|
||||
# 未授权操作。
|
||||
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
||||
|
||||
# 权限错误。
|
||||
UNAUTHORIZEDOPERATION_AUTHORIZE = 'UnauthorizedOperation.Authorize'
|
||||
|
||||
# 用户未启用。
|
||||
UNAUTHORIZEDOPERATION_INACTIVE = 'UnauthorizedOperation.Inactive'
|
||||
|
||||
# 用户不存在。
|
||||
UNAUTHORIZEDOPERATION_USERNOTEXIST = 'UnauthorizedOperation.UserNotExist'
|
||||
|
||||
# 未知参数错误。
|
||||
UNKNOWNPARAMETER = 'UnknownParameter'
|
||||
|
||||
# 操作不支持。
|
||||
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
||||
|
||||
# 默认业务异常。
|
||||
UNSUPPORTEDOPERATION_BIERROR = 'UnsupportedOperation.BIError'
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user