antchain-bot 1.10.23__py3-none-any.whl → 1.10.26__py3-none-any.whl
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.10.23.dist-info → antchain_bot-1.10.26.dist-info}/METADATA +1 -1
- antchain_bot-1.10.26.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +58 -2
- antchain_sdk_bot/models.py +120 -3
- antchain_bot-1.10.23.dist-info/RECORD +0 -8
- {antchain_bot-1.10.23.dist-info → antchain_bot-1.10.26.dist-info}/LICENSE +0 -0
- {antchain_bot-1.10.23.dist-info → antchain_bot-1.10.26.dist-info}/WHEEL +0 -0
- {antchain_bot-1.10.23.dist-info → antchain_bot-1.10.26.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=mNi2CpVr7zvPflT4OgO2klonQdOO44rfroefkE813ww,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=HjdscQWtfPBdWDz5iZsoJDsqBLGpKajCEmu3_n-uYT4,501540
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=4rlzjIELLvdg0wb1XF7n6b9SSm_VnBFYe3QNSxHjxI0,1309846
|
|
4
|
+
antchain_bot-1.10.26.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.10.26.dist-info/METADATA,sha256=8Lp5T2DjPB2DzflvwLWde_Vmry3hZQJInvsh4vc42rM,1989
|
|
6
|
+
antchain_bot-1.10.26.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.10.26.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.10.26.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.10.
|
|
1
|
+
__version__ = '1.10.26'
|
antchain_sdk_bot/client.py
CHANGED
|
@@ -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.10.
|
|
138
|
+
'sdk_version': '1.10.26',
|
|
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.10.
|
|
242
|
+
'sdk_version': '1.10.26',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -11509,6 +11509,62 @@ class Client:
|
|
|
11509
11509
|
await self.do_request_async('1.0', 'blockchain.bot.onlinepressuretest.data.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
11510
11510
|
)
|
|
11511
11511
|
|
|
11512
|
+
def exec_thing_service(
|
|
11513
|
+
self,
|
|
11514
|
+
request: bot_models.ExecThingServiceRequest,
|
|
11515
|
+
) -> bot_models.ExecThingServiceResponse:
|
|
11516
|
+
"""
|
|
11517
|
+
Description: 物模型服务调用
|
|
11518
|
+
Summary: 物模型服务调用
|
|
11519
|
+
"""
|
|
11520
|
+
runtime = util_models.RuntimeOptions()
|
|
11521
|
+
headers = {}
|
|
11522
|
+
return self.exec_thing_service_ex(request, headers, runtime)
|
|
11523
|
+
|
|
11524
|
+
async def exec_thing_service_async(
|
|
11525
|
+
self,
|
|
11526
|
+
request: bot_models.ExecThingServiceRequest,
|
|
11527
|
+
) -> bot_models.ExecThingServiceResponse:
|
|
11528
|
+
"""
|
|
11529
|
+
Description: 物模型服务调用
|
|
11530
|
+
Summary: 物模型服务调用
|
|
11531
|
+
"""
|
|
11532
|
+
runtime = util_models.RuntimeOptions()
|
|
11533
|
+
headers = {}
|
|
11534
|
+
return await self.exec_thing_service_ex_async(request, headers, runtime)
|
|
11535
|
+
|
|
11536
|
+
def exec_thing_service_ex(
|
|
11537
|
+
self,
|
|
11538
|
+
request: bot_models.ExecThingServiceRequest,
|
|
11539
|
+
headers: Dict[str, str],
|
|
11540
|
+
runtime: util_models.RuntimeOptions,
|
|
11541
|
+
) -> bot_models.ExecThingServiceResponse:
|
|
11542
|
+
"""
|
|
11543
|
+
Description: 物模型服务调用
|
|
11544
|
+
Summary: 物模型服务调用
|
|
11545
|
+
"""
|
|
11546
|
+
UtilClient.validate_model(request)
|
|
11547
|
+
return TeaCore.from_map(
|
|
11548
|
+
bot_models.ExecThingServiceResponse(),
|
|
11549
|
+
self.do_request('1.0', 'blockchain.bot.thing.service.exec', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
11550
|
+
)
|
|
11551
|
+
|
|
11552
|
+
async def exec_thing_service_ex_async(
|
|
11553
|
+
self,
|
|
11554
|
+
request: bot_models.ExecThingServiceRequest,
|
|
11555
|
+
headers: Dict[str, str],
|
|
11556
|
+
runtime: util_models.RuntimeOptions,
|
|
11557
|
+
) -> bot_models.ExecThingServiceResponse:
|
|
11558
|
+
"""
|
|
11559
|
+
Description: 物模型服务调用
|
|
11560
|
+
Summary: 物模型服务调用
|
|
11561
|
+
"""
|
|
11562
|
+
UtilClient.validate_model(request)
|
|
11563
|
+
return TeaCore.from_map(
|
|
11564
|
+
bot_models.ExecThingServiceResponse(),
|
|
11565
|
+
await self.do_request_async('1.0', 'blockchain.bot.thing.service.exec', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
11566
|
+
)
|
|
11567
|
+
|
|
11512
11568
|
def exec_thingsdid_oneapi(
|
|
11513
11569
|
self,
|
|
11514
11570
|
request: bot_models.ExecThingsdidOneapiRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -22482,7 +22482,6 @@ class ImportDeviceRequest(TeaModel):
|
|
|
22482
22482
|
|
|
22483
22483
|
def validate(self):
|
|
22484
22484
|
self.validate_required(self.device_id, 'device_id')
|
|
22485
|
-
self.validate_required(self.device_data_model_id, 'device_data_model_id')
|
|
22486
22485
|
self.validate_required(self.scene, 'scene')
|
|
22487
22486
|
self.validate_required(self.device_imei, 'device_imei')
|
|
22488
22487
|
self.validate_required(self.device_feature, 'device_feature')
|
|
@@ -23187,7 +23186,6 @@ class CreateDistributedeviceBydeviceidRequest(TeaModel):
|
|
|
23187
23186
|
self.owner_name = owner_name
|
|
23188
23187
|
|
|
23189
23188
|
def validate(self):
|
|
23190
|
-
self.validate_required(self.device_data_model_id, 'device_data_model_id')
|
|
23191
23189
|
self.validate_required(self.device_id, 'device_id')
|
|
23192
23190
|
self.validate_required(self.scene, 'scene')
|
|
23193
23191
|
if self.factory_time is not None:
|
|
@@ -25624,7 +25622,6 @@ class CreateDistributedeviceBydeviceRequest(TeaModel):
|
|
|
25624
25622
|
|
|
25625
25623
|
def validate(self):
|
|
25626
25624
|
self.validate_required(self.device_id, 'device_id')
|
|
25627
|
-
self.validate_required(self.data_model_id, 'data_model_id')
|
|
25628
25625
|
self.validate_required(self.scene, 'scene')
|
|
25629
25626
|
self.validate_required(self.content, 'content')
|
|
25630
25627
|
self.validate_required(self.signature, 'signature')
|
|
@@ -34622,6 +34619,126 @@ class QueryOnlinepressuretestDataResponse(TeaModel):
|
|
|
34622
34619
|
return self
|
|
34623
34620
|
|
|
34624
34621
|
|
|
34622
|
+
class ExecThingServiceRequest(TeaModel):
|
|
34623
|
+
def __init__(
|
|
34624
|
+
self,
|
|
34625
|
+
auth_token: str = None,
|
|
34626
|
+
product_instance_id: str = None,
|
|
34627
|
+
scene: str = None,
|
|
34628
|
+
identifier: str = None,
|
|
34629
|
+
trustiot_entity_id: int = None,
|
|
34630
|
+
device_id: str = None,
|
|
34631
|
+
input_data: str = None,
|
|
34632
|
+
):
|
|
34633
|
+
# OAuth模式下的授权token
|
|
34634
|
+
self.auth_token = auth_token
|
|
34635
|
+
self.product_instance_id = product_instance_id
|
|
34636
|
+
# 场景码
|
|
34637
|
+
self.scene = scene
|
|
34638
|
+
# 服务标识
|
|
34639
|
+
self.identifier = identifier
|
|
34640
|
+
# 可信设备唯一ID
|
|
34641
|
+
self.trustiot_entity_id = trustiot_entity_id
|
|
34642
|
+
# 设备编号/资产ID
|
|
34643
|
+
self.device_id = device_id
|
|
34644
|
+
# 物模型服务入参
|
|
34645
|
+
self.input_data = input_data
|
|
34646
|
+
|
|
34647
|
+
def validate(self):
|
|
34648
|
+
self.validate_required(self.scene, 'scene')
|
|
34649
|
+
self.validate_required(self.identifier, 'identifier')
|
|
34650
|
+
self.validate_required(self.input_data, 'input_data')
|
|
34651
|
+
|
|
34652
|
+
def to_map(self):
|
|
34653
|
+
_map = super().to_map()
|
|
34654
|
+
if _map is not None:
|
|
34655
|
+
return _map
|
|
34656
|
+
|
|
34657
|
+
result = dict()
|
|
34658
|
+
if self.auth_token is not None:
|
|
34659
|
+
result['auth_token'] = self.auth_token
|
|
34660
|
+
if self.product_instance_id is not None:
|
|
34661
|
+
result['product_instance_id'] = self.product_instance_id
|
|
34662
|
+
if self.scene is not None:
|
|
34663
|
+
result['scene'] = self.scene
|
|
34664
|
+
if self.identifier is not None:
|
|
34665
|
+
result['identifier'] = self.identifier
|
|
34666
|
+
if self.trustiot_entity_id is not None:
|
|
34667
|
+
result['trustiot_entity_id'] = self.trustiot_entity_id
|
|
34668
|
+
if self.device_id is not None:
|
|
34669
|
+
result['device_id'] = self.device_id
|
|
34670
|
+
if self.input_data is not None:
|
|
34671
|
+
result['input_data'] = self.input_data
|
|
34672
|
+
return result
|
|
34673
|
+
|
|
34674
|
+
def from_map(self, m: dict = None):
|
|
34675
|
+
m = m or dict()
|
|
34676
|
+
if m.get('auth_token') is not None:
|
|
34677
|
+
self.auth_token = m.get('auth_token')
|
|
34678
|
+
if m.get('product_instance_id') is not None:
|
|
34679
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
34680
|
+
if m.get('scene') is not None:
|
|
34681
|
+
self.scene = m.get('scene')
|
|
34682
|
+
if m.get('identifier') is not None:
|
|
34683
|
+
self.identifier = m.get('identifier')
|
|
34684
|
+
if m.get('trustiot_entity_id') is not None:
|
|
34685
|
+
self.trustiot_entity_id = m.get('trustiot_entity_id')
|
|
34686
|
+
if m.get('device_id') is not None:
|
|
34687
|
+
self.device_id = m.get('device_id')
|
|
34688
|
+
if m.get('input_data') is not None:
|
|
34689
|
+
self.input_data = m.get('input_data')
|
|
34690
|
+
return self
|
|
34691
|
+
|
|
34692
|
+
|
|
34693
|
+
class ExecThingServiceResponse(TeaModel):
|
|
34694
|
+
def __init__(
|
|
34695
|
+
self,
|
|
34696
|
+
req_msg_id: str = None,
|
|
34697
|
+
result_code: str = None,
|
|
34698
|
+
result_msg: str = None,
|
|
34699
|
+
outputdata: str = None,
|
|
34700
|
+
):
|
|
34701
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
34702
|
+
self.req_msg_id = req_msg_id
|
|
34703
|
+
# 结果码,一般OK表示调用成功
|
|
34704
|
+
self.result_code = result_code
|
|
34705
|
+
# 异常信息的文本描述
|
|
34706
|
+
self.result_msg = result_msg
|
|
34707
|
+
# 设备返回的数据
|
|
34708
|
+
self.outputdata = outputdata
|
|
34709
|
+
|
|
34710
|
+
def validate(self):
|
|
34711
|
+
pass
|
|
34712
|
+
|
|
34713
|
+
def to_map(self):
|
|
34714
|
+
_map = super().to_map()
|
|
34715
|
+
if _map is not None:
|
|
34716
|
+
return _map
|
|
34717
|
+
|
|
34718
|
+
result = dict()
|
|
34719
|
+
if self.req_msg_id is not None:
|
|
34720
|
+
result['req_msg_id'] = self.req_msg_id
|
|
34721
|
+
if self.result_code is not None:
|
|
34722
|
+
result['result_code'] = self.result_code
|
|
34723
|
+
if self.result_msg is not None:
|
|
34724
|
+
result['result_msg'] = self.result_msg
|
|
34725
|
+
if self.outputdata is not None:
|
|
34726
|
+
result['outputdata'] = self.outputdata
|
|
34727
|
+
return result
|
|
34728
|
+
|
|
34729
|
+
def from_map(self, m: dict = None):
|
|
34730
|
+
m = m or dict()
|
|
34731
|
+
if m.get('req_msg_id') is not None:
|
|
34732
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
34733
|
+
if m.get('result_code') is not None:
|
|
34734
|
+
self.result_code = m.get('result_code')
|
|
34735
|
+
if m.get('result_msg') is not None:
|
|
34736
|
+
self.result_msg = m.get('result_msg')
|
|
34737
|
+
if m.get('outputdata') is not None:
|
|
34738
|
+
self.outputdata = m.get('outputdata')
|
|
34739
|
+
return self
|
|
34740
|
+
|
|
34741
|
+
|
|
34625
34742
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
34626
34743
|
def __init__(
|
|
34627
34744
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=kwygNZqZFULRLUYR3GgHCjc09LRgwUvjHr3hgaXI1DA,23
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=VzpkA8e1Nnzmhwv-dvCzSG9_N0nDBamUB6jy2qt9GX4,499494
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=g8fUh-b_4A93bGPJagFGQ9FQY12wMljs5nHNQV46lBo,1305935
|
|
4
|
-
antchain_bot-1.10.23.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.10.23.dist-info/METADATA,sha256=r4XekK9G6wswn8ulMZLPDbzay_hlqkmEkx44mc3PbiA,1989
|
|
6
|
-
antchain_bot-1.10.23.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.10.23.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.10.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|