第一次提交:阿龙电竞 Django 后端最新版本
This commit is contained in:
@@ -0,0 +1,342 @@
|
||||
# -*- 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'
|
||||
|
||||
# 未授权操作。
|
||||
AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOperation'
|
||||
|
||||
# 操作失败。
|
||||
FAILEDOPERATION = 'FailedOperation'
|
||||
|
||||
# 数据库连接失败,请检查参数是否填写正确。
|
||||
FAILEDOPERATION_DATASOURCECONNECTIONFAILED = 'FailedOperation.DataSourceConnectionFailed'
|
||||
|
||||
# 不能删除wedata项目关联的空间
|
||||
FAILEDOPERATION_DELETEWEDATAITEMSPACE = 'FailedOperation.DeleteWedataItemspace'
|
||||
|
||||
# 作业的草稿不允许删除。
|
||||
FAILEDOPERATION_DRAFTCONFIGCANNOTDELETE = 'FailedOperation.DraftConfigCanNotDelete'
|
||||
|
||||
# 重复的作业名。
|
||||
FAILEDOPERATION_DUPLICATEDJOBNAME = 'FailedOperation.DuplicatedJobName'
|
||||
|
||||
# 获取SqlGateway结果失败,异常
|
||||
FAILEDOPERATION_FAILEDOPERATIONCODE_FETCHSQLGATEWAYSTATEMENT = 'FailedOperation.FailedOperationCode_FetchSqlGatewayStatement'
|
||||
|
||||
# 运行SqlGateway失败,异常
|
||||
FAILEDOPERATION_FAILEDOPERATIONCODE_RUNSQLGATEWAY = 'FailedOperation.FailedOperationCode_RunSqlGateway'
|
||||
|
||||
# 查询资源关联标签失败。
|
||||
FAILEDOPERATION_GETRESOURCETAGSBYRESOURCEIDS = 'FailedOperation.GetResourceTagsByResourceIds'
|
||||
|
||||
# 语法检查失败。
|
||||
FAILEDOPERATION_GRAMMARCHECKFAILURE = 'FailedOperation.GrammarCheckFailure'
|
||||
|
||||
# 作业配置在使用中。
|
||||
FAILEDOPERATION_JOBCONFIGONPUBLISH = 'FailedOperation.JobConfigOnPublish'
|
||||
|
||||
# SQL解析失败。
|
||||
FAILEDOPERATION_PARSESQL = 'FailedOperation.ParseSql'
|
||||
|
||||
# 用户未实名验证。
|
||||
FAILEDOPERATION_USERNOTAUTHENTICATED = 'FailedOperation.UserNotAuthenticated'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR = 'InternalError'
|
||||
|
||||
# CLS接口错误。
|
||||
INTERNALERROR_CLS = 'InternalError.CLS'
|
||||
|
||||
# COS 服务访问错误。
|
||||
INTERNALERROR_COSCLIENT = 'InternalError.COSClient'
|
||||
|
||||
# CAM 网关错误。
|
||||
INTERNALERROR_CAMCGWERROR = 'InternalError.CamCgwError'
|
||||
|
||||
# 数据库异常。
|
||||
INTERNALERROR_DB = 'InternalError.DB'
|
||||
|
||||
# 失败的目标资源。
|
||||
INTERNALERROR_FAILEDTOBESCRIBERESOURCES = 'InternalError.FailedToBescribeResources'
|
||||
|
||||
# 无法更新作业错误。
|
||||
INTERNALERROR_FAILEDTOUPDATEJOB = 'InternalError.FailedToUpdateJob'
|
||||
|
||||
# 作业实例没找到。
|
||||
INTERNALERROR_JOBINSTANCENOTFOUND = 'InternalError.JobInstanceNotFound'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR_LOGICERROR = 'InternalError.LogicError'
|
||||
|
||||
# 资源只有一个版本,无法删除。
|
||||
INTERNALERROR_RESOURCECONFIGCANNOTDELETE = 'InternalError.ResourceConfigCanNotDelete'
|
||||
|
||||
# 资源不存在。
|
||||
INTERNALERROR_RESOURCENOTEXIST = 'InternalError.ResourceNotExist'
|
||||
|
||||
# 未找到sqlcode错误。
|
||||
INTERNALERROR_SQLCODENOTFOUND = 'InternalError.SqlCodeNotFound'
|
||||
|
||||
# 内部错误。
|
||||
INTERNALERROR_STSNEWCLIENT = 'InternalError.StsNewClient'
|
||||
|
||||
# 系统错误。
|
||||
INTERNALERROR_SYSTEMERROR = 'InternalError.SystemError'
|
||||
|
||||
# 参数错误。
|
||||
INVALIDPARAMETER = 'InvalidParameter'
|
||||
|
||||
# AppId资源不匹配。
|
||||
INVALIDPARAMETER_APPIDRESOURCENOTMATCH = 'InvalidParameter.AppIdResourceNotMatch'
|
||||
|
||||
# 该变量名称已存在。
|
||||
INVALIDPARAMETER_CREATEVARIABLEEXISTS = 'InvalidParameter.CreateVariableExists'
|
||||
|
||||
# 空间命名重复。
|
||||
INVALIDPARAMETER_DUPLICATEDSPACENAME = 'InvalidParameter.DuplicatedSpaceName'
|
||||
|
||||
# 非法的 MaxParallelism 参数。
|
||||
INVALIDPARAMETER_ILLEGALMAXPARALLELISM = 'InvalidParameter.IllegalMaxParallelism'
|
||||
|
||||
# 非法的搜索字符串。
|
||||
INVALIDPARAMETER_ILLEGALSEARCHKEYWORD = 'InvalidParameter.IllegalSearchKeyword'
|
||||
|
||||
# appid错误。
|
||||
INVALIDPARAMETER_INVALIDAPPID = 'InvalidParameter.InvalidAppId'
|
||||
|
||||
# 无效集群id。
|
||||
INVALIDPARAMETER_INVALIDCLUSTERID = 'InvalidParameter.InvalidClusterId'
|
||||
|
||||
# 空间命名不规范。
|
||||
INVALIDPARAMETER_INVALIDITEMSPACENAME = 'InvalidParameter.InvalidItemSpaceName'
|
||||
|
||||
# 名字不符合规范。
|
||||
INVALIDPARAMETER_INVALIDNAME = 'InvalidParameter.InvalidName'
|
||||
|
||||
# 无效Region。
|
||||
INVALIDPARAMETER_INVALIDREGION = 'InvalidParameter.InvalidRegion'
|
||||
|
||||
# ResourceIds非法。
|
||||
INVALIDPARAMETER_INVALIDRESOURCEIDS = 'InvalidParameter.InvalidResourceIds'
|
||||
|
||||
# 创建作业配置错误。
|
||||
INVALIDPARAMETER_JOBCONFIGLOGCOLLECTPARAMERROR = 'InvalidParameter.JobConfigLogCollectParamError'
|
||||
|
||||
# MaxParallelism 过大。
|
||||
INVALIDPARAMETER_MAXPARALLELISMTOOLARGE = 'InvalidParameter.MaxParallelismTooLarge'
|
||||
|
||||
# MaxParallelism 不允许小于算子默认并行度。
|
||||
INVALIDPARAMETER_MAXPARALLELISMTOOSMALL = 'InvalidParameter.MaxParallelismTooSmall'
|
||||
|
||||
# Uin资源不匹配。
|
||||
INVALIDPARAMETER_UINRESOURCENOTMATCH = 'InvalidParameter.UinResourceNotMatch'
|
||||
|
||||
# Flink参数非法。
|
||||
INVALIDPARAMETER_UNSUPPORTEDFLINKCONF = 'InvalidParameter.UnsupportedFlinkConf'
|
||||
|
||||
# 参数取值错误。
|
||||
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
||||
|
||||
# 集群Id指定错误,为空或者不存在。
|
||||
INVALIDPARAMETERVALUE_CLUSTERID = 'InvalidParameterValue.ClusterId'
|
||||
|
||||
# 群集Id报错。
|
||||
INVALIDPARAMETERVALUE_CLUSTERIDS = 'InvalidParameterValue.ClusterIds'
|
||||
|
||||
# CU内存规格不匹配。
|
||||
INVALIDPARAMETERVALUE_CUMEM = 'InvalidParameterValue.CuMem'
|
||||
|
||||
# 无效限制错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDLIMIT = 'InvalidParameterValue.InvalidLimit'
|
||||
|
||||
# 无效启动模式。
|
||||
INVALIDPARAMETERVALUE_INVALIDSTARTMODE = 'InvalidParameterValue.InvalidStartMode'
|
||||
|
||||
# 无效时间错误。
|
||||
INVALIDPARAMETERVALUE_INVALIDTIME = 'InvalidParameterValue.InvalidTime'
|
||||
|
||||
# 作业id的参数无效。
|
||||
INVALIDPARAMETERVALUE_JOBIDVALUEERROR = 'InvalidParameterValue.JobIdValueError'
|
||||
|
||||
# Illegal JobName。
|
||||
INVALIDPARAMETERVALUE_JOBNAME = 'InvalidParameterValue.JobName'
|
||||
|
||||
# 作业名称已存在。
|
||||
INVALIDPARAMETERVALUE_JOBNAMEEXISTED = 'InvalidParameterValue.JobNameExisted'
|
||||
|
||||
# 集群模式与作业类型不匹配。
|
||||
INVALIDPARAMETERVALUE_JOBTYPECOMBINEWITHCLUSTERTYPE = 'InvalidParameterValue.JobTypeCombineWithClusterType'
|
||||
|
||||
# SQL作业不能指定EntrypointClass,JAR作业则必须指定。
|
||||
INVALIDPARAMETERVALUE_JOBTYPECOMBINEWITHENTRYPOINTCLASS = 'InvalidParameterValue.JobTypeCombineWithEntrypointClass'
|
||||
|
||||
# OrderType值错误。
|
||||
INVALIDPARAMETERVALUE_ORDERTYPE = 'InvalidParameterValue.OrderType'
|
||||
|
||||
# 未找到资源ID。
|
||||
INVALIDPARAMETERVALUE_RESOURCEIDSNOTFOUND = 'InvalidParameterValue.ResourceIdsNotFound'
|
||||
|
||||
# 批量运行作业个数超过上限。
|
||||
INVALIDPARAMETERVALUE_RUNJOBDESCRIPTIONSCOUNT = 'InvalidParameterValue.RunJobDescriptionsCount'
|
||||
|
||||
# RunType错误。
|
||||
INVALIDPARAMETERVALUE_RUNTYPE = 'InvalidParameterValue.RunType'
|
||||
|
||||
# 时间戳范围有误。
|
||||
INVALIDPARAMETERVALUE_TIMESTAMP = 'InvalidParameterValue.Timestamp'
|
||||
|
||||
# 非法的类型字段。
|
||||
INVALIDPARAMETERVALUE_TYPE = 'InvalidParameterValue.Type'
|
||||
|
||||
# 不支持的复合类型。
|
||||
INVALIDPARAMETERVALUE_UNSUPPORTEDCOMPOSITE = 'InvalidParameterValue.UnSupportedComposite'
|
||||
|
||||
# 未知停止类型错误。
|
||||
INVALIDPARAMETERVALUE_UNKNOWNSTOPTYPE = 'InvalidParameterValue.UnknownStopType'
|
||||
|
||||
# 变量参数异常。
|
||||
INVALIDPARAMETERVALUE_VARIABLENAME = 'InvalidParameterValue.VariableName'
|
||||
|
||||
# 超过配额限制。
|
||||
LIMITEXCEEDED = 'LimitExceeded'
|
||||
|
||||
# 项目空间数量超出限制。
|
||||
LIMITEXCEEDED_ITEMSPACELIMITEXCEEDED = 'LimitExceeded.ItemSpaceLimitExceeded'
|
||||
|
||||
# Job个数超过限额。
|
||||
LIMITEXCEEDED_JOB = 'LimitExceeded.Job'
|
||||
|
||||
# 作业配置超出限制。
|
||||
LIMITEXCEEDED_JOBCONFIG = 'LimitExceeded.JobConfig'
|
||||
|
||||
# 变量数超过限制。
|
||||
LIMITEXCEEDED_VARIABLES = 'LimitExceeded.Variables'
|
||||
|
||||
# 工作空间超阈值。
|
||||
LIMITEXCEEDED_WORKSPACELIMITEXCEEDED = 'LimitExceeded.WorkSpaceLimitExceeded'
|
||||
|
||||
# 资源被占用。
|
||||
RESOURCEINUSE = 'ResourceInUse'
|
||||
|
||||
# 集群有其他操作。
|
||||
RESOURCEINUSE_INSTANCEINPROCESS = 'ResourceInUse.InstanceInProcess'
|
||||
|
||||
# Connector重复
|
||||
RESOURCEINUSE_RESOURCECONNECTORDUPLICATENAME = 'ResourceInUse.ResourceConnectorDuplicateName'
|
||||
|
||||
# 资源名称已存在。
|
||||
RESOURCEINUSE_RESOURCENAMEALREADYEXISTS = 'ResourceInUse.ResourceNameAlreadyExists'
|
||||
|
||||
# CU资源不足。
|
||||
RESOURCEINSUFFICIENT_CU = 'ResourceInsufficient.CU'
|
||||
|
||||
# 资源不存在。
|
||||
RESOURCENOTFOUND = 'ResourceNotFound'
|
||||
|
||||
# COS Bucket 未找到或无权限访问。
|
||||
RESOURCENOTFOUND_COSBUCKET = 'ResourceNotFound.COSBucket'
|
||||
|
||||
# 集群不存在。
|
||||
RESOURCENOTFOUND_CLUSTERID = 'ResourceNotFound.ClusterId'
|
||||
|
||||
# 作业不存在。
|
||||
RESOURCENOTFOUND_JOB = 'ResourceNotFound.Job'
|
||||
|
||||
# 作业配置版本不存在。
|
||||
RESOURCENOTFOUND_JOBCONFIG = 'ResourceNotFound.JobConfig'
|
||||
|
||||
# 找不到作业。
|
||||
RESOURCENOTFOUND_JOBID = 'ResourceNotFound.JobId'
|
||||
|
||||
# 找不到日志。
|
||||
RESOURCENOTFOUND_LOGTOPIC = 'ResourceNotFound.LogTopic'
|
||||
|
||||
# 没有集群支持解析connector
|
||||
RESOURCENOTFOUND_PARSECONNECTORCLUSTERNOTFOUND = 'ResourceNotFound.ParseConnectorClusterNotFound'
|
||||
|
||||
# 程序包不存在。
|
||||
RESOURCENOTFOUND_RESOURCE = 'ResourceNotFound.Resource'
|
||||
|
||||
# 程序包版本不存在。
|
||||
RESOURCENOTFOUND_RESOURCECONFIG = 'ResourceNotFound.ResourceConfig'
|
||||
|
||||
# 资源不存在。
|
||||
RESOURCENOTFOUND_RESOURCENOTEXIST = 'ResourceNotFound.ResourceNotExist'
|
||||
|
||||
# 数据库或表不存在。
|
||||
RESOURCENOTFOUND_TABLENOTEXIST = 'ResourceNotFound.TableNotExist'
|
||||
|
||||
# 资源不可用。
|
||||
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
||||
|
||||
# 被某个作业配置使用。
|
||||
RESOURCEUNAVAILABLE_BEUSEBYSOMEJOBCONFIG = 'ResourceUnavailable.BeUseBySomeJobConfig'
|
||||
|
||||
# 检查资源位置是否存在错误。
|
||||
RESOURCEUNAVAILABLE_CHECKRESOURCELOCEXISTS = 'ResourceUnavailable.CheckResourceLocExists'
|
||||
|
||||
# 集群处于非运行状态。
|
||||
RESOURCEUNAVAILABLE_CLUSTER = 'ResourceUnavailable.Cluster'
|
||||
|
||||
# 群集组状态错误。
|
||||
RESOURCEUNAVAILABLE_CLUSTERGROUPSTATUS = 'ResourceUnavailable.ClusterGroupStatus'
|
||||
|
||||
# 失败的目标资源。
|
||||
RESOURCEUNAVAILABLE_FAILEDTOBESCRIBERESOURCES = 'ResourceUnavailable.FailedToBescribeResources'
|
||||
|
||||
# 获取发布的作业配置错误。
|
||||
RESOURCEUNAVAILABLE_GETJOBPUBLISHEDJOBCONFIG = 'ResourceUnavailable.GetJobPublishedJobConfig'
|
||||
|
||||
# 作业资源配置未就绪。
|
||||
RESOURCEUNAVAILABLE_JOBRESOURCECONFIGNOTREADY = 'ResourceUnavailable.JobResourceConfigNotReady'
|
||||
|
||||
# 找不到JobId的正在运行的作业实例。
|
||||
RESOURCEUNAVAILABLE_NORUNNINGJOBINSTANCESFOUNDFORJOBID = 'ResourceUnavailable.NoRunningJobInstancesFoundForJobId'
|
||||
|
||||
# 不允许删除错误。
|
||||
RESOURCEUNAVAILABLE_NOTALLOWEDTOBEDELETED = 'ResourceUnavailable.NotAllowedToBeDeleted'
|
||||
|
||||
# 不允许停止或暂停错误。
|
||||
RESOURCEUNAVAILABLE_NOTALLOWEDTOBESTOPORPAUSE = 'ResourceUnavailable.NotAllowedToBeStopOrPause'
|
||||
|
||||
# 共享群集只允许CuMem=4。
|
||||
RESOURCEUNAVAILABLE_REQCUMEM = 'ResourceUnavailable.ReqCuMem'
|
||||
|
||||
# cos上的程序包不存在。
|
||||
RESOURCEUNAVAILABLE_RESOURCELOCNOTEXISTS = 'ResourceUnavailable.ResourceLocNotExists'
|
||||
|
||||
# 未授权操作。
|
||||
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
||||
|
||||
# 操作不支持。
|
||||
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
||||
|
||||
# 资源未释放,不能做删除作业。
|
||||
UNSUPPORTEDOPERATION_CANNOTDELETE = 'UnsupportedOperation.CanNotDelete'
|
||||
|
||||
# Cls Sql未启用。
|
||||
UNSUPPORTEDOPERATION_CLSSQLNOTENABLED = 'UnsupportedOperation.ClsSqlNotEnabled'
|
||||
|
||||
# Checkpoint 时间间隔,错误。
|
||||
UNSUPPORTEDOPERATION_INVALIDCHECKPOINTINTERVALERROR = 'UnsupportedOperation.InvalidCheckpointIntervalError'
|
||||
|
||||
# 权限拦截,没有进入权限。
|
||||
UNSUPPORTEDOPERATION_NOPERMISSIONACCESS = 'UnsupportedOperation.NoPermissionAccess'
|
||||
|
||||
# 不支持的启动模式。
|
||||
UNSUPPORTEDOPERATION_UNSUPPORTEDSTARTMODE = 'UnsupportedOperation.UnsupportedStartMode'
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,844 @@
|
||||
# -*- 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.oceanus.v20190422 import models
|
||||
from typing import Dict
|
||||
|
||||
|
||||
class OceanusClient(AbstractClient):
|
||||
_apiVersion = '2019-04-22'
|
||||
_endpoint = 'oceanus.tencentcloudapi.com'
|
||||
_service = 'oceanus'
|
||||
|
||||
async def CheckConnectorName(
|
||||
self,
|
||||
request: models.CheckConnectorNameRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CheckConnectorNameResponse:
|
||||
"""
|
||||
查询资源名是否重复
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CheckConnectorName"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CheckConnectorNameResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CheckSavepoint(
|
||||
self,
|
||||
request: models.CheckSavepointRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CheckSavepointResponse:
|
||||
"""
|
||||
检查快照是否可用
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CheckSavepoint"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CheckSavepointResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CopyJobs(
|
||||
self,
|
||||
request: models.CopyJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CopyJobsResponse:
|
||||
"""
|
||||
单条和批量复制作业
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CopyJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CopyJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateConnector(
|
||||
self,
|
||||
request: models.CreateConnectorRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateConnectorResponse:
|
||||
"""
|
||||
创建Connector
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateConnector"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateConnectorResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateFolder(
|
||||
self,
|
||||
request: models.CreateFolderRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateFolderResponse:
|
||||
"""
|
||||
作业列表页面新建文件夹请求
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateFolder"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateFolderResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateJob(
|
||||
self,
|
||||
request: models.CreateJobRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateJobResponse:
|
||||
"""
|
||||
新建作业接口,一个 AppId 最多允许创建1000个作业
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateJob"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateJobResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateJobConfig(
|
||||
self,
|
||||
request: models.CreateJobConfigRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateJobConfigResponse:
|
||||
"""
|
||||
创建作业配置,一个作业最多有100个配置版本
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateJobConfig"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateJobConfigResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateResource(
|
||||
self,
|
||||
request: models.CreateResourceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateResourceResponse:
|
||||
"""
|
||||
创建资源接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateResource"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateResourceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateResourceConfig(
|
||||
self,
|
||||
request: models.CreateResourceConfigRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateResourceConfigResponse:
|
||||
"""
|
||||
创建资源配置接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateResourceConfig"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateResourceConfigResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateVariable(
|
||||
self,
|
||||
request: models.CreateVariableRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateVariableResponse:
|
||||
"""
|
||||
创建变量
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateVariable"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateVariableResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def CreateWorkSpace(
|
||||
self,
|
||||
request: models.CreateWorkSpaceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.CreateWorkSpaceResponse:
|
||||
"""
|
||||
创建工作空间
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "CreateWorkSpace"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.CreateWorkSpaceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteFolders(
|
||||
self,
|
||||
request: models.DeleteFoldersRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteFoldersResponse:
|
||||
"""
|
||||
作业列表删除文件夹
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteFolders"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteFoldersResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteJobConfigs(
|
||||
self,
|
||||
request: models.DeleteJobConfigsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteJobConfigsResponse:
|
||||
"""
|
||||
删除作业配置
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteJobConfigs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteJobConfigsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteJobs(
|
||||
self,
|
||||
request: models.DeleteJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteJobsResponse:
|
||||
"""
|
||||
批量删除作业接口,批量操作数量上限20
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteResourceConfigs(
|
||||
self,
|
||||
request: models.DeleteResourceConfigsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteResourceConfigsResponse:
|
||||
"""
|
||||
删除资源版本
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteResourceConfigs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteResourceConfigsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteResources(
|
||||
self,
|
||||
request: models.DeleteResourcesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteResourcesResponse:
|
||||
"""
|
||||
删除资源接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteResources"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteResourcesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteTableConfig(
|
||||
self,
|
||||
request: models.DeleteTableConfigRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteTableConfigResponse:
|
||||
"""
|
||||
删除作业表配置
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteTableConfig"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteTableConfigResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DeleteWorkSpace(
|
||||
self,
|
||||
request: models.DeleteWorkSpaceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DeleteWorkSpaceResponse:
|
||||
"""
|
||||
删除工作空间
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DeleteWorkSpace"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DeleteWorkSpaceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeClusters(
|
||||
self,
|
||||
request: models.DescribeClustersRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeClustersResponse:
|
||||
"""
|
||||
查询集群
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeClusters"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeClustersResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeFolder(
|
||||
self,
|
||||
request: models.DescribeFolderRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeFolderResponse:
|
||||
"""
|
||||
查询指定文件夹及其相应的子文件夹信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeFolder"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeFolderResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobConfigs(
|
||||
self,
|
||||
request: models.DescribeJobConfigsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobConfigsResponse:
|
||||
"""
|
||||
查询作业配置列表,一次最多查询100个
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobConfigs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobConfigsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobEvents(
|
||||
self,
|
||||
request: models.DescribeJobEventsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobEventsResponse:
|
||||
"""
|
||||
请求参数不包含 "RunningOrderIds"时,接口获取指定作业的事件,包括作业启动停止、运行失败、快照失败、作业异常等各种事件类型;请求参数不包含 "RunningOrderIds"时,接口为查询作业实例ID接口,获取作业实例
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobEvents"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobEventsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobRuntimeInfo(
|
||||
self,
|
||||
request: models.DescribeJobRuntimeInfoRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobRuntimeInfoResponse:
|
||||
"""
|
||||
获取作业运行时的信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobRuntimeInfo"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobRuntimeInfoResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobSavepoint(
|
||||
self,
|
||||
request: models.DescribeJobSavepointRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobSavepointResponse:
|
||||
"""
|
||||
查找Savepoint列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobSavepoint"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobSavepointResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobSubmissionLog(
|
||||
self,
|
||||
request: models.DescribeJobSubmissionLogRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobSubmissionLogResponse:
|
||||
"""
|
||||
查询作业实例启动日志
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobSubmissionLog"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobSubmissionLogResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeJobs(
|
||||
self,
|
||||
request: models.DescribeJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeJobsResponse:
|
||||
"""
|
||||
查询作业
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeResourceConfigs(
|
||||
self,
|
||||
request: models.DescribeResourceConfigsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeResourceConfigsResponse:
|
||||
"""
|
||||
描述资源配置接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeResourceConfigs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeResourceConfigsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeResourceRelatedJobs(
|
||||
self,
|
||||
request: models.DescribeResourceRelatedJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeResourceRelatedJobsResponse:
|
||||
"""
|
||||
获取资源关联作业信息
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeResourceRelatedJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeResourceRelatedJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeResources(
|
||||
self,
|
||||
request: models.DescribeResourcesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeResourcesResponse:
|
||||
"""
|
||||
描述资源接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeResources"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeResourcesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeSystemResources(
|
||||
self,
|
||||
request: models.DescribeSystemResourcesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeSystemResourcesResponse:
|
||||
"""
|
||||
描述系统资源接口
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeSystemResources"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeSystemResourcesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeTreeJobs(
|
||||
self,
|
||||
request: models.DescribeTreeJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeTreeJobsResponse:
|
||||
"""
|
||||
生成树状作业显示结构
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeTreeJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeTreeJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeTreeResources(
|
||||
self,
|
||||
request: models.DescribeTreeResourcesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeTreeResourcesResponse:
|
||||
"""
|
||||
查询树状结构资源列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeTreeResources"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeTreeResourcesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeVariables(
|
||||
self,
|
||||
request: models.DescribeVariablesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeVariablesResponse:
|
||||
"""
|
||||
变量列表展示
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeVariables"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeVariablesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def DescribeWorkSpaces(
|
||||
self,
|
||||
request: models.DescribeWorkSpacesRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.DescribeWorkSpacesResponse:
|
||||
"""
|
||||
授权工作空间列表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "DescribeWorkSpaces"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.DescribeWorkSpacesResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def FetchSqlGatewayStatementResult(
|
||||
self,
|
||||
request: models.FetchSqlGatewayStatementResultRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.FetchSqlGatewayStatementResultResponse:
|
||||
"""
|
||||
查询Sql Gateway的Statement执行结果
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "FetchSqlGatewayStatementResult"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.FetchSqlGatewayStatementResultResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def GetMetaTable(
|
||||
self,
|
||||
request: models.GetMetaTableRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.GetMetaTableResponse:
|
||||
"""
|
||||
查询元数据表
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "GetMetaTable"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.GetMetaTableResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyConnector(
|
||||
self,
|
||||
request: models.ModifyConnectorRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyConnectorResponse:
|
||||
"""
|
||||
修改Connector
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyConnector"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyConnectorResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyFolder(
|
||||
self,
|
||||
request: models.ModifyFolderRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyFolderResponse:
|
||||
"""
|
||||
自定义树状结构页面拖拽文件夹
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyFolder"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyFolderResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyJob(
|
||||
self,
|
||||
request: models.ModifyJobRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyJobResponse:
|
||||
"""
|
||||
更新作业属性,仅允许以下3种操作,不支持组合操作:
|
||||
(1) 更新作业名称
|
||||
(2) 更新作业备注
|
||||
(3) 更新作业最大并行度
|
||||
变更前提:WorkerCuNum<=MaxParallelism
|
||||
如果MaxParallelism变小,不重启作业,待下一次重启生效
|
||||
如果MaxParallelism变大,则要求入参RestartAllowed必须为True
|
||||
假设作业运行状态,则先停止作业,再启动作业,中间状态丢失
|
||||
假设作业暂停状态,则将作业更改为停止状态,中间状态丢失
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyJob"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyJobResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ModifyWorkSpace(
|
||||
self,
|
||||
request: models.ModifyWorkSpaceRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ModifyWorkSpaceResponse:
|
||||
"""
|
||||
修改工作空间
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ModifyWorkSpace"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ModifyWorkSpaceResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def ParseConnector(
|
||||
self,
|
||||
request: models.ParseConnectorRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.ParseConnectorResponse:
|
||||
"""
|
||||
解析用户上传connector
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "ParseConnector"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.ParseConnectorResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def RunJobs(
|
||||
self,
|
||||
request: models.RunJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.RunJobsResponse:
|
||||
"""
|
||||
批量启动或者恢复作业,批量操作数量上限20
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "RunJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.RunJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def RunSqlGatewayStatement(
|
||||
self,
|
||||
request: models.RunSqlGatewayStatementRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.RunSqlGatewayStatementResponse:
|
||||
"""
|
||||
通过Sql gateway执行satement
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "RunSqlGatewayStatement"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.RunSqlGatewayStatementResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def StopJobs(
|
||||
self,
|
||||
request: models.StopJobsRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.StopJobsResponse:
|
||||
"""
|
||||
批量停止作业,批量操作数量上限为20
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "StopJobs"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.StopJobsResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
|
||||
async def TriggerJobSavepoint(
|
||||
self,
|
||||
request: models.TriggerJobSavepointRequest,
|
||||
opts: Dict = None,
|
||||
) -> models.TriggerJobSavepointResponse:
|
||||
"""
|
||||
触发Savepoint
|
||||
"""
|
||||
|
||||
kwargs = {}
|
||||
kwargs["action"] = "TriggerJobSavepoint"
|
||||
kwargs["params"] = request._serialize()
|
||||
kwargs["resp_cls"] = models.TriggerJobSavepointResponse
|
||||
kwargs["headers"] = request.headers
|
||||
kwargs["opts"] = opts or {}
|
||||
|
||||
return await self.call_and_deserialize(**kwargs)
|
||||
Reference in New Issue
Block a user