antchain-bot 1.12.28__tar.gz → 1.12.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/PKG-INFO +1 -1
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.12.31/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_sdk_bot/client.py +58 -2
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_sdk_bot/models.py +104 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/setup.py +1 -1
- antchain_bot-1.12.28/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/LICENSE +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/MANIFEST.in +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/README-CN.md +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/README.md +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.31}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.12.31'
|
|
@@ -135,7 +135,7 @@ class Client:
|
|
|
135
135
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
136
136
|
'access_key': self._access_key_id,
|
|
137
137
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
138
|
-
'sdk_version': '1.12.
|
|
138
|
+
'sdk_version': '1.12.31',
|
|
139
139
|
'_prod_code': 'BOT',
|
|
140
140
|
'_prod_channel': 'undefined'
|
|
141
141
|
}
|
|
@@ -239,7 +239,7 @@ class Client:
|
|
|
239
239
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
240
240
|
'access_key': self._access_key_id,
|
|
241
241
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
242
|
-
'sdk_version': '1.12.
|
|
242
|
+
'sdk_version': '1.12.31',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -14851,6 +14851,62 @@ class Client:
|
|
|
14851
14851
|
await self.do_request_async('1.0', 'blockchain.bot.device.bydeviceid.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
14852
14852
|
)
|
|
14853
14853
|
|
|
14854
|
+
def query_taskscan(
|
|
14855
|
+
self,
|
|
14856
|
+
request: bot_models.QueryTaskscanRequest,
|
|
14857
|
+
) -> bot_models.QueryTaskscanResponse:
|
|
14858
|
+
"""
|
|
14859
|
+
Description: 时序异常检测任务扫描
|
|
14860
|
+
Summary: 任务扫描
|
|
14861
|
+
"""
|
|
14862
|
+
runtime = util_models.RuntimeOptions()
|
|
14863
|
+
headers = {}
|
|
14864
|
+
return self.query_taskscan_ex(request, headers, runtime)
|
|
14865
|
+
|
|
14866
|
+
async def query_taskscan_async(
|
|
14867
|
+
self,
|
|
14868
|
+
request: bot_models.QueryTaskscanRequest,
|
|
14869
|
+
) -> bot_models.QueryTaskscanResponse:
|
|
14870
|
+
"""
|
|
14871
|
+
Description: 时序异常检测任务扫描
|
|
14872
|
+
Summary: 任务扫描
|
|
14873
|
+
"""
|
|
14874
|
+
runtime = util_models.RuntimeOptions()
|
|
14875
|
+
headers = {}
|
|
14876
|
+
return await self.query_taskscan_ex_async(request, headers, runtime)
|
|
14877
|
+
|
|
14878
|
+
def query_taskscan_ex(
|
|
14879
|
+
self,
|
|
14880
|
+
request: bot_models.QueryTaskscanRequest,
|
|
14881
|
+
headers: Dict[str, str],
|
|
14882
|
+
runtime: util_models.RuntimeOptions,
|
|
14883
|
+
) -> bot_models.QueryTaskscanResponse:
|
|
14884
|
+
"""
|
|
14885
|
+
Description: 时序异常检测任务扫描
|
|
14886
|
+
Summary: 任务扫描
|
|
14887
|
+
"""
|
|
14888
|
+
UtilClient.validate_model(request)
|
|
14889
|
+
return TeaCore.from_map(
|
|
14890
|
+
bot_models.QueryTaskscanResponse(),
|
|
14891
|
+
self.do_request('1.0', 'blockchain.bot.taskscan.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
14892
|
+
)
|
|
14893
|
+
|
|
14894
|
+
async def query_taskscan_ex_async(
|
|
14895
|
+
self,
|
|
14896
|
+
request: bot_models.QueryTaskscanRequest,
|
|
14897
|
+
headers: Dict[str, str],
|
|
14898
|
+
runtime: util_models.RuntimeOptions,
|
|
14899
|
+
) -> bot_models.QueryTaskscanResponse:
|
|
14900
|
+
"""
|
|
14901
|
+
Description: 时序异常检测任务扫描
|
|
14902
|
+
Summary: 任务扫描
|
|
14903
|
+
"""
|
|
14904
|
+
UtilClient.validate_model(request)
|
|
14905
|
+
return TeaCore.from_map(
|
|
14906
|
+
bot_models.QueryTaskscanResponse(),
|
|
14907
|
+
await self.do_request_async('1.0', 'blockchain.bot.taskscan.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
14908
|
+
)
|
|
14909
|
+
|
|
14854
14910
|
def exec_thingsdid_oneapi(
|
|
14855
14911
|
self,
|
|
14856
14912
|
request: bot_models.ExecThingsdidOneapiRequest,
|
|
@@ -43989,6 +43989,110 @@ class UpdateDeviceBydeviceidResponse(TeaModel):
|
|
|
43989
43989
|
return self
|
|
43990
43990
|
|
|
43991
43991
|
|
|
43992
|
+
class QueryTaskscanRequest(TeaModel):
|
|
43993
|
+
def __init__(
|
|
43994
|
+
self,
|
|
43995
|
+
auth_token: str = None,
|
|
43996
|
+
product_instance_id: str = None,
|
|
43997
|
+
):
|
|
43998
|
+
# OAuth模式下的授权token
|
|
43999
|
+
self.auth_token = auth_token
|
|
44000
|
+
self.product_instance_id = product_instance_id
|
|
44001
|
+
|
|
44002
|
+
def validate(self):
|
|
44003
|
+
pass
|
|
44004
|
+
|
|
44005
|
+
def to_map(self):
|
|
44006
|
+
_map = super().to_map()
|
|
44007
|
+
if _map is not None:
|
|
44008
|
+
return _map
|
|
44009
|
+
|
|
44010
|
+
result = dict()
|
|
44011
|
+
if self.auth_token is not None:
|
|
44012
|
+
result['auth_token'] = self.auth_token
|
|
44013
|
+
if self.product_instance_id is not None:
|
|
44014
|
+
result['product_instance_id'] = self.product_instance_id
|
|
44015
|
+
return result
|
|
44016
|
+
|
|
44017
|
+
def from_map(self, m: dict = None):
|
|
44018
|
+
m = m or dict()
|
|
44019
|
+
if m.get('auth_token') is not None:
|
|
44020
|
+
self.auth_token = m.get('auth_token')
|
|
44021
|
+
if m.get('product_instance_id') is not None:
|
|
44022
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
44023
|
+
return self
|
|
44024
|
+
|
|
44025
|
+
|
|
44026
|
+
class QueryTaskscanResponse(TeaModel):
|
|
44027
|
+
def __init__(
|
|
44028
|
+
self,
|
|
44029
|
+
req_msg_id: str = None,
|
|
44030
|
+
result_code: str = None,
|
|
44031
|
+
result_msg: str = None,
|
|
44032
|
+
success: bool = None,
|
|
44033
|
+
errormsg: str = None,
|
|
44034
|
+
errorcode: str = None,
|
|
44035
|
+
data: str = None,
|
|
44036
|
+
):
|
|
44037
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
44038
|
+
self.req_msg_id = req_msg_id
|
|
44039
|
+
# 结果码,一般OK表示调用成功
|
|
44040
|
+
self.result_code = result_code
|
|
44041
|
+
# 异常信息的文本描述
|
|
44042
|
+
self.result_msg = result_msg
|
|
44043
|
+
# 是否成功
|
|
44044
|
+
self.success = success
|
|
44045
|
+
# 错误信息
|
|
44046
|
+
self.errormsg = errormsg
|
|
44047
|
+
# 错误码
|
|
44048
|
+
self.errorcode = errorcode
|
|
44049
|
+
# 返回数据
|
|
44050
|
+
self.data = data
|
|
44051
|
+
|
|
44052
|
+
def validate(self):
|
|
44053
|
+
pass
|
|
44054
|
+
|
|
44055
|
+
def to_map(self):
|
|
44056
|
+
_map = super().to_map()
|
|
44057
|
+
if _map is not None:
|
|
44058
|
+
return _map
|
|
44059
|
+
|
|
44060
|
+
result = dict()
|
|
44061
|
+
if self.req_msg_id is not None:
|
|
44062
|
+
result['req_msg_id'] = self.req_msg_id
|
|
44063
|
+
if self.result_code is not None:
|
|
44064
|
+
result['result_code'] = self.result_code
|
|
44065
|
+
if self.result_msg is not None:
|
|
44066
|
+
result['result_msg'] = self.result_msg
|
|
44067
|
+
if self.success is not None:
|
|
44068
|
+
result['success'] = self.success
|
|
44069
|
+
if self.errormsg is not None:
|
|
44070
|
+
result['errormsg'] = self.errormsg
|
|
44071
|
+
if self.errorcode is not None:
|
|
44072
|
+
result['errorcode'] = self.errorcode
|
|
44073
|
+
if self.data is not None:
|
|
44074
|
+
result['data'] = self.data
|
|
44075
|
+
return result
|
|
44076
|
+
|
|
44077
|
+
def from_map(self, m: dict = None):
|
|
44078
|
+
m = m or dict()
|
|
44079
|
+
if m.get('req_msg_id') is not None:
|
|
44080
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
44081
|
+
if m.get('result_code') is not None:
|
|
44082
|
+
self.result_code = m.get('result_code')
|
|
44083
|
+
if m.get('result_msg') is not None:
|
|
44084
|
+
self.result_msg = m.get('result_msg')
|
|
44085
|
+
if m.get('success') is not None:
|
|
44086
|
+
self.success = m.get('success')
|
|
44087
|
+
if m.get('errormsg') is not None:
|
|
44088
|
+
self.errormsg = m.get('errormsg')
|
|
44089
|
+
if m.get('errorcode') is not None:
|
|
44090
|
+
self.errorcode = m.get('errorcode')
|
|
44091
|
+
if m.get('data') is not None:
|
|
44092
|
+
self.data = m.get('data')
|
|
44093
|
+
return self
|
|
44094
|
+
|
|
44095
|
+
|
|
43992
44096
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
43993
44097
|
def __init__(
|
|
43994
44098
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.12.28'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|