antchain-bot 1.12.28__tar.gz → 1.12.32__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.32}/PKG-INFO +1 -1
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.12.32/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_sdk_bot/client.py +58 -2
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_sdk_bot/models.py +111 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/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.32}/LICENSE +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/MANIFEST.in +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/README-CN.md +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/README.md +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.12.28 → antchain_bot-1.12.32}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.12.32'
|
|
@@ -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.32',
|
|
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.32',
|
|
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,
|
|
@@ -28921,6 +28921,7 @@ class CreateElectrocarApplycarkeycertificateRequest(TeaModel):
|
|
|
28921
28921
|
ble_name: str = None,
|
|
28922
28922
|
device_sn: str = None,
|
|
28923
28923
|
access_scene: str = None,
|
|
28924
|
+
aliyun_iot_enabled: bool = None,
|
|
28924
28925
|
):
|
|
28925
28926
|
# OAuth模式下的授权token
|
|
28926
28927
|
self.auth_token = auth_token
|
|
@@ -28959,6 +28960,8 @@ class CreateElectrocarApplycarkeycertificateRequest(TeaModel):
|
|
|
28959
28960
|
self.device_sn = device_sn
|
|
28960
28961
|
# 接入场景码
|
|
28961
28962
|
self.access_scene = access_scene
|
|
28963
|
+
# 标识是否启用了阿里云物联网平台
|
|
28964
|
+
self.aliyun_iot_enabled = aliyun_iot_enabled
|
|
28962
28965
|
|
|
28963
28966
|
def validate(self):
|
|
28964
28967
|
self.validate_required(self.request_id, 'request_id')
|
|
@@ -29003,6 +29006,8 @@ class CreateElectrocarApplycarkeycertificateRequest(TeaModel):
|
|
|
29003
29006
|
result['device_sn'] = self.device_sn
|
|
29004
29007
|
if self.access_scene is not None:
|
|
29005
29008
|
result['access_scene'] = self.access_scene
|
|
29009
|
+
if self.aliyun_iot_enabled is not None:
|
|
29010
|
+
result['aliyun_iot_enabled'] = self.aliyun_iot_enabled
|
|
29006
29011
|
return result
|
|
29007
29012
|
|
|
29008
29013
|
def from_map(self, m: dict = None):
|
|
@@ -29035,6 +29040,8 @@ class CreateElectrocarApplycarkeycertificateRequest(TeaModel):
|
|
|
29035
29040
|
self.device_sn = m.get('device_sn')
|
|
29036
29041
|
if m.get('access_scene') is not None:
|
|
29037
29042
|
self.access_scene = m.get('access_scene')
|
|
29043
|
+
if m.get('aliyun_iot_enabled') is not None:
|
|
29044
|
+
self.aliyun_iot_enabled = m.get('aliyun_iot_enabled')
|
|
29038
29045
|
return self
|
|
29039
29046
|
|
|
29040
29047
|
|
|
@@ -43989,6 +43996,110 @@ class UpdateDeviceBydeviceidResponse(TeaModel):
|
|
|
43989
43996
|
return self
|
|
43990
43997
|
|
|
43991
43998
|
|
|
43999
|
+
class QueryTaskscanRequest(TeaModel):
|
|
44000
|
+
def __init__(
|
|
44001
|
+
self,
|
|
44002
|
+
auth_token: str = None,
|
|
44003
|
+
product_instance_id: str = None,
|
|
44004
|
+
):
|
|
44005
|
+
# OAuth模式下的授权token
|
|
44006
|
+
self.auth_token = auth_token
|
|
44007
|
+
self.product_instance_id = product_instance_id
|
|
44008
|
+
|
|
44009
|
+
def validate(self):
|
|
44010
|
+
pass
|
|
44011
|
+
|
|
44012
|
+
def to_map(self):
|
|
44013
|
+
_map = super().to_map()
|
|
44014
|
+
if _map is not None:
|
|
44015
|
+
return _map
|
|
44016
|
+
|
|
44017
|
+
result = dict()
|
|
44018
|
+
if self.auth_token is not None:
|
|
44019
|
+
result['auth_token'] = self.auth_token
|
|
44020
|
+
if self.product_instance_id is not None:
|
|
44021
|
+
result['product_instance_id'] = self.product_instance_id
|
|
44022
|
+
return result
|
|
44023
|
+
|
|
44024
|
+
def from_map(self, m: dict = None):
|
|
44025
|
+
m = m or dict()
|
|
44026
|
+
if m.get('auth_token') is not None:
|
|
44027
|
+
self.auth_token = m.get('auth_token')
|
|
44028
|
+
if m.get('product_instance_id') is not None:
|
|
44029
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
44030
|
+
return self
|
|
44031
|
+
|
|
44032
|
+
|
|
44033
|
+
class QueryTaskscanResponse(TeaModel):
|
|
44034
|
+
def __init__(
|
|
44035
|
+
self,
|
|
44036
|
+
req_msg_id: str = None,
|
|
44037
|
+
result_code: str = None,
|
|
44038
|
+
result_msg: str = None,
|
|
44039
|
+
success: bool = None,
|
|
44040
|
+
errormsg: str = None,
|
|
44041
|
+
errorcode: str = None,
|
|
44042
|
+
data: str = None,
|
|
44043
|
+
):
|
|
44044
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
44045
|
+
self.req_msg_id = req_msg_id
|
|
44046
|
+
# 结果码,一般OK表示调用成功
|
|
44047
|
+
self.result_code = result_code
|
|
44048
|
+
# 异常信息的文本描述
|
|
44049
|
+
self.result_msg = result_msg
|
|
44050
|
+
# 是否成功
|
|
44051
|
+
self.success = success
|
|
44052
|
+
# 错误信息
|
|
44053
|
+
self.errormsg = errormsg
|
|
44054
|
+
# 错误码
|
|
44055
|
+
self.errorcode = errorcode
|
|
44056
|
+
# 返回数据
|
|
44057
|
+
self.data = data
|
|
44058
|
+
|
|
44059
|
+
def validate(self):
|
|
44060
|
+
pass
|
|
44061
|
+
|
|
44062
|
+
def to_map(self):
|
|
44063
|
+
_map = super().to_map()
|
|
44064
|
+
if _map is not None:
|
|
44065
|
+
return _map
|
|
44066
|
+
|
|
44067
|
+
result = dict()
|
|
44068
|
+
if self.req_msg_id is not None:
|
|
44069
|
+
result['req_msg_id'] = self.req_msg_id
|
|
44070
|
+
if self.result_code is not None:
|
|
44071
|
+
result['result_code'] = self.result_code
|
|
44072
|
+
if self.result_msg is not None:
|
|
44073
|
+
result['result_msg'] = self.result_msg
|
|
44074
|
+
if self.success is not None:
|
|
44075
|
+
result['success'] = self.success
|
|
44076
|
+
if self.errormsg is not None:
|
|
44077
|
+
result['errormsg'] = self.errormsg
|
|
44078
|
+
if self.errorcode is not None:
|
|
44079
|
+
result['errorcode'] = self.errorcode
|
|
44080
|
+
if self.data is not None:
|
|
44081
|
+
result['data'] = self.data
|
|
44082
|
+
return result
|
|
44083
|
+
|
|
44084
|
+
def from_map(self, m: dict = None):
|
|
44085
|
+
m = m or dict()
|
|
44086
|
+
if m.get('req_msg_id') is not None:
|
|
44087
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
44088
|
+
if m.get('result_code') is not None:
|
|
44089
|
+
self.result_code = m.get('result_code')
|
|
44090
|
+
if m.get('result_msg') is not None:
|
|
44091
|
+
self.result_msg = m.get('result_msg')
|
|
44092
|
+
if m.get('success') is not None:
|
|
44093
|
+
self.success = m.get('success')
|
|
44094
|
+
if m.get('errormsg') is not None:
|
|
44095
|
+
self.errormsg = m.get('errormsg')
|
|
44096
|
+
if m.get('errorcode') is not None:
|
|
44097
|
+
self.errorcode = m.get('errorcode')
|
|
44098
|
+
if m.get('data') is not None:
|
|
44099
|
+
self.data = m.get('data')
|
|
44100
|
+
return self
|
|
44101
|
+
|
|
44102
|
+
|
|
43992
44103
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
43993
44104
|
def __init__(
|
|
43994
44105
|
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
|