antchain-bot 1.11.55__tar.gz → 1.11.57__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.11.55 → antchain_bot-1.11.57}/PKG-INFO +1 -1
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.11.57/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_sdk_bot/client.py +58 -2
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_sdk_bot/models.py +135 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/setup.py +1 -1
- antchain_bot-1.11.55/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/LICENSE +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/MANIFEST.in +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/README-CN.md +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/README.md +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.11.55 → antchain_bot-1.11.57}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.11.57'
|
|
@@ -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.11.
|
|
138
|
+
'sdk_version': '1.11.57',
|
|
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.11.
|
|
242
|
+
'sdk_version': '1.11.57',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -7627,6 +7627,62 @@ class Client:
|
|
|
7627
7627
|
await self.do_request_async('1.0', 'blockchain.bot.digitalkey.preauthpay.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7628
7628
|
)
|
|
7629
7629
|
|
|
7630
|
+
def exec_device_customerthingservice(
|
|
7631
|
+
self,
|
|
7632
|
+
request: bot_models.ExecDeviceCustomerthingserviceRequest,
|
|
7633
|
+
) -> bot_models.ExecDeviceCustomerthingserviceResponse:
|
|
7634
|
+
"""
|
|
7635
|
+
Description: iotbasic-客户指定设备调用服务
|
|
7636
|
+
Summary: iotbasic-客户指定设备调用服务
|
|
7637
|
+
"""
|
|
7638
|
+
runtime = util_models.RuntimeOptions()
|
|
7639
|
+
headers = {}
|
|
7640
|
+
return self.exec_device_customerthingservice_ex(request, headers, runtime)
|
|
7641
|
+
|
|
7642
|
+
async def exec_device_customerthingservice_async(
|
|
7643
|
+
self,
|
|
7644
|
+
request: bot_models.ExecDeviceCustomerthingserviceRequest,
|
|
7645
|
+
) -> bot_models.ExecDeviceCustomerthingserviceResponse:
|
|
7646
|
+
"""
|
|
7647
|
+
Description: iotbasic-客户指定设备调用服务
|
|
7648
|
+
Summary: iotbasic-客户指定设备调用服务
|
|
7649
|
+
"""
|
|
7650
|
+
runtime = util_models.RuntimeOptions()
|
|
7651
|
+
headers = {}
|
|
7652
|
+
return await self.exec_device_customerthingservice_ex_async(request, headers, runtime)
|
|
7653
|
+
|
|
7654
|
+
def exec_device_customerthingservice_ex(
|
|
7655
|
+
self,
|
|
7656
|
+
request: bot_models.ExecDeviceCustomerthingserviceRequest,
|
|
7657
|
+
headers: Dict[str, str],
|
|
7658
|
+
runtime: util_models.RuntimeOptions,
|
|
7659
|
+
) -> bot_models.ExecDeviceCustomerthingserviceResponse:
|
|
7660
|
+
"""
|
|
7661
|
+
Description: iotbasic-客户指定设备调用服务
|
|
7662
|
+
Summary: iotbasic-客户指定设备调用服务
|
|
7663
|
+
"""
|
|
7664
|
+
UtilClient.validate_model(request)
|
|
7665
|
+
return TeaCore.from_map(
|
|
7666
|
+
bot_models.ExecDeviceCustomerthingserviceResponse(),
|
|
7667
|
+
self.do_request('1.0', 'blockchain.bot.device.customerthingservice.exec', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7668
|
+
)
|
|
7669
|
+
|
|
7670
|
+
async def exec_device_customerthingservice_ex_async(
|
|
7671
|
+
self,
|
|
7672
|
+
request: bot_models.ExecDeviceCustomerthingserviceRequest,
|
|
7673
|
+
headers: Dict[str, str],
|
|
7674
|
+
runtime: util_models.RuntimeOptions,
|
|
7675
|
+
) -> bot_models.ExecDeviceCustomerthingserviceResponse:
|
|
7676
|
+
"""
|
|
7677
|
+
Description: iotbasic-客户指定设备调用服务
|
|
7678
|
+
Summary: iotbasic-客户指定设备调用服务
|
|
7679
|
+
"""
|
|
7680
|
+
UtilClient.validate_model(request)
|
|
7681
|
+
return TeaCore.from_map(
|
|
7682
|
+
bot_models.ExecDeviceCustomerthingserviceResponse(),
|
|
7683
|
+
await self.do_request_async('1.0', 'blockchain.bot.device.customerthingservice.exec', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7684
|
+
)
|
|
7685
|
+
|
|
7630
7686
|
def query_iotplatform_purchaseorder(
|
|
7631
7687
|
self,
|
|
7632
7688
|
request: bot_models.QueryIotplatformPurchaseorderRequest,
|
|
@@ -27201,6 +27201,141 @@ class QueryDigitalkeyPreauthpayResponse(TeaModel):
|
|
|
27201
27201
|
return self
|
|
27202
27202
|
|
|
27203
27203
|
|
|
27204
|
+
class ExecDeviceCustomerthingserviceRequest(TeaModel):
|
|
27205
|
+
def __init__(
|
|
27206
|
+
self,
|
|
27207
|
+
auth_token: str = None,
|
|
27208
|
+
product_instance_id: str = None,
|
|
27209
|
+
sn: str = None,
|
|
27210
|
+
corp: str = None,
|
|
27211
|
+
user: str = None,
|
|
27212
|
+
service_identifier: str = None,
|
|
27213
|
+
service_args: str = None,
|
|
27214
|
+
):
|
|
27215
|
+
# OAuth模式下的授权token
|
|
27216
|
+
self.auth_token = auth_token
|
|
27217
|
+
self.product_instance_id = product_instance_id
|
|
27218
|
+
# 设备sn
|
|
27219
|
+
self.sn = sn
|
|
27220
|
+
# 设备厂商
|
|
27221
|
+
self.corp = corp
|
|
27222
|
+
# 设备所属用户
|
|
27223
|
+
self.user = user
|
|
27224
|
+
# 服务调用标识符
|
|
27225
|
+
self.service_identifier = service_identifier
|
|
27226
|
+
# 服务调用参数 key-value,json字符串
|
|
27227
|
+
self.service_args = service_args
|
|
27228
|
+
|
|
27229
|
+
def validate(self):
|
|
27230
|
+
self.validate_required(self.sn, 'sn')
|
|
27231
|
+
self.validate_required(self.corp, 'corp')
|
|
27232
|
+
self.validate_required(self.user, 'user')
|
|
27233
|
+
self.validate_required(self.service_identifier, 'service_identifier')
|
|
27234
|
+
|
|
27235
|
+
def to_map(self):
|
|
27236
|
+
_map = super().to_map()
|
|
27237
|
+
if _map is not None:
|
|
27238
|
+
return _map
|
|
27239
|
+
|
|
27240
|
+
result = dict()
|
|
27241
|
+
if self.auth_token is not None:
|
|
27242
|
+
result['auth_token'] = self.auth_token
|
|
27243
|
+
if self.product_instance_id is not None:
|
|
27244
|
+
result['product_instance_id'] = self.product_instance_id
|
|
27245
|
+
if self.sn is not None:
|
|
27246
|
+
result['sn'] = self.sn
|
|
27247
|
+
if self.corp is not None:
|
|
27248
|
+
result['corp'] = self.corp
|
|
27249
|
+
if self.user is not None:
|
|
27250
|
+
result['user'] = self.user
|
|
27251
|
+
if self.service_identifier is not None:
|
|
27252
|
+
result['service_identifier'] = self.service_identifier
|
|
27253
|
+
if self.service_args is not None:
|
|
27254
|
+
result['service_args'] = self.service_args
|
|
27255
|
+
return result
|
|
27256
|
+
|
|
27257
|
+
def from_map(self, m: dict = None):
|
|
27258
|
+
m = m or dict()
|
|
27259
|
+
if m.get('auth_token') is not None:
|
|
27260
|
+
self.auth_token = m.get('auth_token')
|
|
27261
|
+
if m.get('product_instance_id') is not None:
|
|
27262
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
27263
|
+
if m.get('sn') is not None:
|
|
27264
|
+
self.sn = m.get('sn')
|
|
27265
|
+
if m.get('corp') is not None:
|
|
27266
|
+
self.corp = m.get('corp')
|
|
27267
|
+
if m.get('user') is not None:
|
|
27268
|
+
self.user = m.get('user')
|
|
27269
|
+
if m.get('service_identifier') is not None:
|
|
27270
|
+
self.service_identifier = m.get('service_identifier')
|
|
27271
|
+
if m.get('service_args') is not None:
|
|
27272
|
+
self.service_args = m.get('service_args')
|
|
27273
|
+
return self
|
|
27274
|
+
|
|
27275
|
+
|
|
27276
|
+
class ExecDeviceCustomerthingserviceResponse(TeaModel):
|
|
27277
|
+
def __init__(
|
|
27278
|
+
self,
|
|
27279
|
+
req_msg_id: str = None,
|
|
27280
|
+
result_code: str = None,
|
|
27281
|
+
result_msg: str = None,
|
|
27282
|
+
success: bool = None,
|
|
27283
|
+
message_id: str = None,
|
|
27284
|
+
result: str = None,
|
|
27285
|
+
):
|
|
27286
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
27287
|
+
self.req_msg_id = req_msg_id
|
|
27288
|
+
# 结果码,一般OK表示调用成功
|
|
27289
|
+
self.result_code = result_code
|
|
27290
|
+
# 异常信息的文本描述
|
|
27291
|
+
self.result_msg = result_msg
|
|
27292
|
+
# 接口调用结果
|
|
27293
|
+
self.success = success
|
|
27294
|
+
# 云端向设备下发服务调用的消息ID
|
|
27295
|
+
self.message_id = message_id
|
|
27296
|
+
# 调用结果
|
|
27297
|
+
self.result = result
|
|
27298
|
+
|
|
27299
|
+
def validate(self):
|
|
27300
|
+
pass
|
|
27301
|
+
|
|
27302
|
+
def to_map(self):
|
|
27303
|
+
_map = super().to_map()
|
|
27304
|
+
if _map is not None:
|
|
27305
|
+
return _map
|
|
27306
|
+
|
|
27307
|
+
result = dict()
|
|
27308
|
+
if self.req_msg_id is not None:
|
|
27309
|
+
result['req_msg_id'] = self.req_msg_id
|
|
27310
|
+
if self.result_code is not None:
|
|
27311
|
+
result['result_code'] = self.result_code
|
|
27312
|
+
if self.result_msg is not None:
|
|
27313
|
+
result['result_msg'] = self.result_msg
|
|
27314
|
+
if self.success is not None:
|
|
27315
|
+
result['success'] = self.success
|
|
27316
|
+
if self.message_id is not None:
|
|
27317
|
+
result['message_id'] = self.message_id
|
|
27318
|
+
if self.result is not None:
|
|
27319
|
+
result['result'] = self.result
|
|
27320
|
+
return result
|
|
27321
|
+
|
|
27322
|
+
def from_map(self, m: dict = None):
|
|
27323
|
+
m = m or dict()
|
|
27324
|
+
if m.get('req_msg_id') is not None:
|
|
27325
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
27326
|
+
if m.get('result_code') is not None:
|
|
27327
|
+
self.result_code = m.get('result_code')
|
|
27328
|
+
if m.get('result_msg') is not None:
|
|
27329
|
+
self.result_msg = m.get('result_msg')
|
|
27330
|
+
if m.get('success') is not None:
|
|
27331
|
+
self.success = m.get('success')
|
|
27332
|
+
if m.get('message_id') is not None:
|
|
27333
|
+
self.message_id = m.get('message_id')
|
|
27334
|
+
if m.get('result') is not None:
|
|
27335
|
+
self.result = m.get('result')
|
|
27336
|
+
return self
|
|
27337
|
+
|
|
27338
|
+
|
|
27204
27339
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
27205
27340
|
def __init__(
|
|
27206
27341
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.11.55'
|
|
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
|