第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
# -*- 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'
|
||||
|
||||
# License文件上传失败。
|
||||
FAILEDOPERATION_UPLOADLICENSEFILEFAIL = 'FailedOperation.UploadLicenseFileFail'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR = 'InternalError'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER = 'InvalidParameter'
|
||||
|
||||
# 参数取值错误。
|
||||
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
||||
|
||||
# 超过配额限制。
|
||||
LIMITEXCEEDED = 'LimitExceeded'
|
||||
|
||||
# 缺少参数错误。
|
||||
MISSINGPARAMETER = 'MissingParameter'
|
||||
|
||||
# 操作被拒绝。
|
||||
OPERATIONDENIED = 'OperationDenied'
|
||||
|
||||
# 请求的次数超过了频率限制。
|
||||
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
||||
|
||||
# 资源被占用。
|
||||
RESOURCEINUSE = 'ResourceInUse'
|
||||
|
||||
# 资源不足。
|
||||
RESOURCEINSUFFICIENT = 'ResourceInsufficient'
|
||||
|
||||
# 资源不存在。
|
||||
RESOURCENOTFOUND = 'ResourceNotFound'
|
||||
|
||||
# 资源不可用。
|
||||
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
||||
|
||||
# 资源售罄。
|
||||
RESOURCESSOLDOUT = 'ResourcesSoldOut'
|
||||
|
||||
# 未授权操作。
|
||||
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
||||
|
||||
# 未知参数错误。
|
||||
UNKNOWNPARAMETER = 'UnknownParameter'
|
||||
|
||||
# 操作不支持。
|
||||
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,854 @@
|
||||
# -*- 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.vcube.v20220410 import models
|
||||
|
||||
|
||||
class VcubeClient(AbstractClient):
|
||||
_apiVersion = '2022-04-10'
|
||||
_endpoint = 'vcube.tencentcloudapi.com'
|
||||
_service = 'vcube'
|
||||
|
||||
|
||||
def CreateActivityLicense(self, request):
|
||||
r"""创建活动license
|
||||
|
||||
:param request: Request instance for CreateActivityLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateActivityLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateActivityLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateActivityLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateActivityLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateApplicationAndBindLicense(self, request):
|
||||
r"""创建应用并绑定license或者XMagic
|
||||
|
||||
:param request: Request instance for CreateApplicationAndBindLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndBindLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndBindLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateApplicationAndBindLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateApplicationAndBindLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateApplicationAndVideo(self, request):
|
||||
r"""创建应用和视频播放license 目前只有国际站可以用
|
||||
|
||||
:param request: Request instance for CreateApplicationAndVideo.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndVideoRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndVideoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateApplicationAndVideo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateApplicationAndVideoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateApplicationAndWebPlayerLicense(self, request):
|
||||
r"""创建 web 播放器基础版
|
||||
|
||||
:param request: Request instance for CreateApplicationAndWebPlayerLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndWebPlayerLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateApplicationAndWebPlayerLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateApplicationAndWebPlayerLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateApplicationAndWebPlayerLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateLicense(self, request):
|
||||
r"""绑定license
|
||||
|
||||
:param request: Request instance for CreateLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateTestXMagic(self, request):
|
||||
r"""申请开通测试版腾讯特效
|
||||
|
||||
:param request: Request instance for CreateTestXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateTestXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateTestXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateTestXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateTestXMagicResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateTrialApplicationAndLicense(self, request):
|
||||
r"""创建测试应用并开通测试 license
|
||||
|
||||
:param request: Request instance for CreateTrialApplicationAndLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateTrialApplicationAndLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateTrialApplicationAndLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateTrialApplicationAndLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateTrialApplicationAndLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateTrialLicense(self, request):
|
||||
r"""开通测试license
|
||||
|
||||
:param request: Request instance for CreateTrialLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateTrialLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateTrialLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateTrialLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateTrialLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def CreateXMagic(self, request):
|
||||
r"""x08开通正式版优图美视功能,针对已经有Application的情况
|
||||
|
||||
:param request: Request instance for CreateXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.CreateXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.CreateXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("CreateXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.CreateXMagicResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteApplicationAndVideoLicense(self, request):
|
||||
r"""删除视频播放器 License 和相关应用
|
||||
|
||||
:param request: Request instance for DeleteApplicationAndVideoLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DeleteApplicationAndVideoLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DeleteApplicationAndVideoLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteApplicationAndVideoLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteApplicationAndVideoLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DeleteApplicationAndWebPlayerLicense(self, request):
|
||||
r"""删除web播放器license和应用
|
||||
|
||||
:param request: Request instance for DeleteApplicationAndWebPlayerLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DeleteApplicationAndWebPlayerLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DeleteApplicationAndWebPlayerLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DeleteApplicationAndWebPlayerLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DeleteApplicationAndWebPlayerLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeFeatureList(self, request):
|
||||
r"""查询功能列表
|
||||
|
||||
:param request: Request instance for DescribeFeatureList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeFeatureListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeFeatureListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeFeatureList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeFeatureListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeLicenseList(self, request):
|
||||
r"""总览页查询临期License列表,和统计数据
|
||||
|
||||
:param request: Request instance for DescribeLicenseList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeLicenseListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeLicenseListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeLicenseList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeLicenseListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeNews(self, request):
|
||||
r"""查询产品动态
|
||||
|
||||
:param request: Request instance for DescribeNews.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeNewsRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeNewsResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeNews", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeNewsResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeSTS(self, request):
|
||||
r"""获取临时秘钥,用于图片,特效包上传
|
||||
|
||||
:param request: Request instance for DescribeSTS.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeSTSRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeSTSResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeSTS", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeSTSResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeTrialFeature(self, request):
|
||||
r"""查询测试应用可以开通的功能
|
||||
|
||||
:param request: Request instance for DescribeTrialFeature.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeTrialFeatureRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeTrialFeatureResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeTrialFeature", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeTrialFeatureResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeUserConfig(self, request):
|
||||
r"""查询用户个性配置
|
||||
|
||||
:param request: Request instance for DescribeUserConfig.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeUserConfigRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeUserConfigResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeUserConfig", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeUserConfigResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVcubeApplicationAndLicense(self, request):
|
||||
r"""查询用户license, 按照应用分类
|
||||
|
||||
:param request: Request instance for DescribeVcubeApplicationAndLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVcubeApplicationAndLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVcubeApplicationAndLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVcubeApplicationAndPlayList(self, request):
|
||||
r"""查询用户点播直播等license, 按照应用分类,国际站专用
|
||||
|
||||
:param request: Request instance for DescribeVcubeApplicationAndPlayList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndPlayListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndPlayListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVcubeApplicationAndPlayList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVcubeApplicationAndPlayListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVcubeApplicationAndXMagicList(self, request):
|
||||
r"""查询用户优图license, 按照应用分类
|
||||
|
||||
:param request: Request instance for DescribeVcubeApplicationAndXMagicList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndXMagicListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeApplicationAndXMagicListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVcubeApplicationAndXMagicList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVcubeApplicationAndXMagicListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVcubeResources(self, request):
|
||||
r"""查询视立方 license 资源,所有的资源包
|
||||
|
||||
:param request: Request instance for DescribeVcubeResources.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeResourcesRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeResourcesResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVcubeResources", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVcubeResourcesResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeVcubeResourcesList(self, request):
|
||||
r"""查询视立方 license 资源,包括资源包赠送和直接购买的资源
|
||||
|
||||
:param request: Request instance for DescribeVcubeResourcesList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeResourcesListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeVcubeResourcesListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeVcubeResourcesList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeVcubeResourcesListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeXMagicResource(self, request):
|
||||
r"""用途美视资源包用于开通正式优图美视
|
||||
|
||||
:param request: Request instance for DescribeXMagicResource.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeXMagicResourceRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeXMagicResourceResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeXMagicResource", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeXMagicResourceResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def DescribeXMagicResourceList(self, request):
|
||||
r"""用于优图美视资源列表展示
|
||||
|
||||
:param request: Request instance for DescribeXMagicResourceList.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.DescribeXMagicResourceListRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.DescribeXMagicResourceListResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("DescribeXMagicResourceList", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.DescribeXMagicResourceListResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyApplication(self, request):
|
||||
r"""更改测试包名信息
|
||||
|
||||
:param request: Request instance for ModifyApplication.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyApplicationRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyApplicationResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyApplication", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyApplicationResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyFormalApplication(self, request):
|
||||
r"""修改正式应用的包名称
|
||||
|
||||
:param request: Request instance for ModifyFormalApplication.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyFormalApplicationRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyFormalApplicationResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyFormalApplication", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyFormalApplicationResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyLicense(self, request):
|
||||
r"""正式license 升降配,点播精简版、基础版
|
||||
|
||||
:param request: Request instance for ModifyLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyPresetApplication(self, request):
|
||||
r"""修改内置应用包名
|
||||
|
||||
:param request: Request instance for ModifyPresetApplication.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyPresetApplicationRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyPresetApplicationResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyPresetApplication", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyPresetApplicationResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyTrialLicense(self, request):
|
||||
r"""续期测试license
|
||||
|
||||
:param request: Request instance for ModifyTrialLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyTrialLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyTrialLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyTrialLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyTrialLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def ModifyXMagic(self, request):
|
||||
r"""使用一个腾讯特效资源,更新现在的腾讯特效license,license功能和到期时间会以新的资源为准,老资源会被替换下来
|
||||
|
||||
:param request: Request instance for ModifyXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.ModifyXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.ModifyXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("ModifyXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.ModifyXMagicResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def RenewLicense(self, request):
|
||||
r"""正式license 续期与变更有效期
|
||||
|
||||
:param request: Request instance for RenewLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.RenewLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.RenewLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("RenewLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.RenewLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def RenewTestXMagic(self, request):
|
||||
r"""续期测试版优图美视
|
||||
|
||||
:param request: Request instance for RenewTestXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.RenewTestXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.RenewTestXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("RenewTestXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.RenewTestXMagicResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def RenewVideo(self, request):
|
||||
r"""续期国际站视频播放功能和中国站web基础版
|
||||
|
||||
:param request: Request instance for RenewVideo.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.RenewVideoRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.RenewVideoResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("RenewVideo", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.RenewVideoResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def UpdateTestXMagic(self, request):
|
||||
r"""将测试xmagic升级到正式版
|
||||
|
||||
:param request: Request instance for UpdateTestXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.UpdateTestXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.UpdateTestXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("UpdateTestXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.UpdateTestXMagicResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def UpdateTrialLicense(self, request):
|
||||
r"""测试 license 升级为正式 license
|
||||
|
||||
:param request: Request instance for UpdateTrialLicense.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.UpdateTrialLicenseRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.UpdateTrialLicenseResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("UpdateTrialLicense", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.UpdateTrialLicenseResponse()
|
||||
model._deserialize(response["Response"])
|
||||
return model
|
||||
except Exception as e:
|
||||
if isinstance(e, TencentCloudSDKException):
|
||||
raise
|
||||
else:
|
||||
raise TencentCloudSDKException(type(e).__name__, str(e))
|
||||
|
||||
|
||||
def UpdateXMagic(self, request):
|
||||
r"""更新优图美视的申请信息 Status 为2,3的时候可用
|
||||
|
||||
:param request: Request instance for UpdateXMagic.
|
||||
:type request: :class:`tencentcloud.vcube.v20220410.models.UpdateXMagicRequest`
|
||||
:rtype: :class:`tencentcloud.vcube.v20220410.models.UpdateXMagicResponse`
|
||||
|
||||
"""
|
||||
try:
|
||||
params = request._serialize()
|
||||
headers = request.headers
|
||||
body = self.call("UpdateXMagic", params, headers=headers)
|
||||
response = json.loads(body)
|
||||
model = models.UpdateXMagicResponse()
|
||||
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,674 @@
|
||||
# -*- 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.vcube.v20220410 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class VcubeClient(AbstractClient):
|
||||
_apiVersion = '2022-04-10'
|
||||
_endpoint = 'vcube.tencentcloudapi.com'
|
||||
_service = 'vcube'
|
||||
|
||||
async def CreateActivityLicense(
|
||||
self,
|
||||
request: models.CreateActivityLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateActivityLicenseResponse:
|
||||
"""
|
||||
创建活动license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateActivityLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateActivityLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateApplicationAndBindLicense(
|
||||
self,
|
||||
request: models.CreateApplicationAndBindLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateApplicationAndBindLicenseResponse:
|
||||
"""
|
||||
创建应用并绑定license或者XMagic
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateApplicationAndBindLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateApplicationAndBindLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateApplicationAndVideo(
|
||||
self,
|
||||
request: models.CreateApplicationAndVideoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateApplicationAndVideoResponse:
|
||||
"""
|
||||
创建应用和视频播放license 目前只有国际站可以用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateApplicationAndVideo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateApplicationAndVideoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateApplicationAndWebPlayerLicense(
|
||||
self,
|
||||
request: models.CreateApplicationAndWebPlayerLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateApplicationAndWebPlayerLicenseResponse:
|
||||
"""
|
||||
创建 web 播放器基础版
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateApplicationAndWebPlayerLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateApplicationAndWebPlayerLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateLicense(
|
||||
self,
|
||||
request: models.CreateLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateLicenseResponse:
|
||||
"""
|
||||
绑定license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateTestXMagic(
|
||||
self,
|
||||
request: models.CreateTestXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateTestXMagicResponse:
|
||||
"""
|
||||
申请开通测试版腾讯特效
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateTestXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateTestXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateTrialApplicationAndLicense(
|
||||
self,
|
||||
request: models.CreateTrialApplicationAndLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateTrialApplicationAndLicenseResponse:
|
||||
"""
|
||||
创建测试应用并开通测试 license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateTrialApplicationAndLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateTrialApplicationAndLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateTrialLicense(
|
||||
self,
|
||||
request: models.CreateTrialLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateTrialLicenseResponse:
|
||||
"""
|
||||
开通测试license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateTrialLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateTrialLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateXMagic(
|
||||
self,
|
||||
request: models.CreateXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateXMagicResponse:
|
||||
"""
|
||||
x08开通正式版优图美视功能,针对已经有Application的情况
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteApplicationAndVideoLicense(
|
||||
self,
|
||||
request: models.DeleteApplicationAndVideoLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteApplicationAndVideoLicenseResponse:
|
||||
"""
|
||||
删除视频播放器 License 和相关应用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteApplicationAndVideoLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteApplicationAndVideoLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteApplicationAndWebPlayerLicense(
|
||||
self,
|
||||
request: models.DeleteApplicationAndWebPlayerLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteApplicationAndWebPlayerLicenseResponse:
|
||||
"""
|
||||
删除web播放器license和应用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteApplicationAndWebPlayerLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteApplicationAndWebPlayerLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeFeatureList(
|
||||
self,
|
||||
request: models.DescribeFeatureListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeFeatureListResponse:
|
||||
"""
|
||||
查询功能列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeFeatureList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeFeatureListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeLicenseList(
|
||||
self,
|
||||
request: models.DescribeLicenseListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeLicenseListResponse:
|
||||
"""
|
||||
总览页查询临期License列表,和统计数据
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeLicenseList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeLicenseListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeNews(
|
||||
self,
|
||||
request: models.DescribeNewsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeNewsResponse:
|
||||
"""
|
||||
查询产品动态
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeNews"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeNewsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSTS(
|
||||
self,
|
||||
request: models.DescribeSTSRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSTSResponse:
|
||||
"""
|
||||
获取临时秘钥,用于图片,特效包上传
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSTS"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSTSResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeTrialFeature(
|
||||
self,
|
||||
request: models.DescribeTrialFeatureRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeTrialFeatureResponse:
|
||||
"""
|
||||
查询测试应用可以开通的功能
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeTrialFeature"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeTrialFeatureResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeUserConfig(
|
||||
self,
|
||||
request: models.DescribeUserConfigRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeUserConfigResponse:
|
||||
"""
|
||||
查询用户个性配置
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeUserConfig"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeUserConfigResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVcubeApplicationAndLicense(
|
||||
self,
|
||||
request: models.DescribeVcubeApplicationAndLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVcubeApplicationAndLicenseResponse:
|
||||
"""
|
||||
查询用户license, 按照应用分类
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVcubeApplicationAndLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVcubeApplicationAndLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVcubeApplicationAndPlayList(
|
||||
self,
|
||||
request: models.DescribeVcubeApplicationAndPlayListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVcubeApplicationAndPlayListResponse:
|
||||
"""
|
||||
查询用户点播直播等license, 按照应用分类,国际站专用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVcubeApplicationAndPlayList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVcubeApplicationAndPlayListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVcubeApplicationAndXMagicList(
|
||||
self,
|
||||
request: models.DescribeVcubeApplicationAndXMagicListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVcubeApplicationAndXMagicListResponse:
|
||||
"""
|
||||
查询用户优图license, 按照应用分类
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVcubeApplicationAndXMagicList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVcubeApplicationAndXMagicListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVcubeResources(
|
||||
self,
|
||||
request: models.DescribeVcubeResourcesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVcubeResourcesResponse:
|
||||
"""
|
||||
查询视立方 license 资源,所有的资源包
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVcubeResources"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVcubeResourcesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVcubeResourcesList(
|
||||
self,
|
||||
request: models.DescribeVcubeResourcesListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVcubeResourcesListResponse:
|
||||
"""
|
||||
查询视立方 license 资源,包括资源包赠送和直接购买的资源
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVcubeResourcesList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVcubeResourcesListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeXMagicResource(
|
||||
self,
|
||||
request: models.DescribeXMagicResourceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeXMagicResourceResponse:
|
||||
"""
|
||||
用途美视资源包用于开通正式优图美视
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeXMagicResource"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeXMagicResourceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeXMagicResourceList(
|
||||
self,
|
||||
request: models.DescribeXMagicResourceListRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeXMagicResourceListResponse:
|
||||
"""
|
||||
用于优图美视资源列表展示
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeXMagicResourceList"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeXMagicResourceListResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyApplication(
|
||||
self,
|
||||
request: models.ModifyApplicationRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyApplicationResponse:
|
||||
"""
|
||||
更改测试包名信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyApplication"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyApplicationResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyFormalApplication(
|
||||
self,
|
||||
request: models.ModifyFormalApplicationRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyFormalApplicationResponse:
|
||||
"""
|
||||
修改正式应用的包名称
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyFormalApplication"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyFormalApplicationResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyLicense(
|
||||
self,
|
||||
request: models.ModifyLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyLicenseResponse:
|
||||
"""
|
||||
正式license 升降配,点播精简版、基础版
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyPresetApplication(
|
||||
self,
|
||||
request: models.ModifyPresetApplicationRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyPresetApplicationResponse:
|
||||
"""
|
||||
修改内置应用包名
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyPresetApplication"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyPresetApplicationResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyTrialLicense(
|
||||
self,
|
||||
request: models.ModifyTrialLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyTrialLicenseResponse:
|
||||
"""
|
||||
续期测试license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyTrialLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyTrialLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyXMagic(
|
||||
self,
|
||||
request: models.ModifyXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyXMagicResponse:
|
||||
"""
|
||||
使用一个腾讯特效资源,更新现在的腾讯特效license,license功能和到期时间会以新的资源为准,老资源会被替换下来
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def RenewLicense(
|
||||
self,
|
||||
request: models.RenewLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.RenewLicenseResponse:
|
||||
"""
|
||||
正式license 续期与变更有效期
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "RenewLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.RenewLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def RenewTestXMagic(
|
||||
self,
|
||||
request: models.RenewTestXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.RenewTestXMagicResponse:
|
||||
"""
|
||||
续期测试版优图美视
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "RenewTestXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.RenewTestXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def RenewVideo(
|
||||
self,
|
||||
request: models.RenewVideoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.RenewVideoResponse:
|
||||
"""
|
||||
续期国际站视频播放功能和中国站web基础版
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "RenewVideo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.RenewVideoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def UpdateTestXMagic(
|
||||
self,
|
||||
request: models.UpdateTestXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.UpdateTestXMagicResponse:
|
||||
"""
|
||||
将测试xmagic升级到正式版
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "UpdateTestXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.UpdateTestXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def UpdateTrialLicense(
|
||||
self,
|
||||
request: models.UpdateTrialLicenseRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.UpdateTrialLicenseResponse:
|
||||
"""
|
||||
测试 license 升级为正式 license
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "UpdateTrialLicense"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.UpdateTrialLicenseResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def UpdateXMagic(
|
||||
self,
|
||||
request: models.UpdateXMagicRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.UpdateXMagicResponse:
|
||||
"""
|
||||
更新优图美视的申请信息 Status 为2,3的时候可用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "UpdateXMagic"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.UpdateXMagicResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
Reference in New Issue
Block a user