antchain-bot 1.11.12__tar.gz → 1.11.13__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.12 → antchain_bot-1.11.13}/PKG-INFO +1 -1
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.11.13/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_sdk_bot/client.py +156 -10
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_sdk_bot/models.py +384 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/setup.py +1 -1
- antchain_bot-1.11.12/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/LICENSE +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/MANIFEST.in +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/README-CN.md +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/README.md +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.11.12 → antchain_bot-1.11.13}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.11.13'
|
|
@@ -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.13',
|
|
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.13',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -4850,8 +4850,8 @@ class Client:
|
|
|
4850
4850
|
request: bot_models.QueryIotbasicCategorylistRequest,
|
|
4851
4851
|
) -> bot_models.QueryIotbasicCategorylistResponse:
|
|
4852
4852
|
"""
|
|
4853
|
-
Description: iotbasic
|
|
4854
|
-
Summary: iotbasic
|
|
4853
|
+
Description: iotbasic-分页查询品类列表
|
|
4854
|
+
Summary: iotbasic-分页查询品类列表
|
|
4855
4855
|
"""
|
|
4856
4856
|
runtime = util_models.RuntimeOptions()
|
|
4857
4857
|
headers = {}
|
|
@@ -4862,8 +4862,8 @@ class Client:
|
|
|
4862
4862
|
request: bot_models.QueryIotbasicCategorylistRequest,
|
|
4863
4863
|
) -> bot_models.QueryIotbasicCategorylistResponse:
|
|
4864
4864
|
"""
|
|
4865
|
-
Description: iotbasic
|
|
4866
|
-
Summary: iotbasic
|
|
4865
|
+
Description: iotbasic-分页查询品类列表
|
|
4866
|
+
Summary: iotbasic-分页查询品类列表
|
|
4867
4867
|
"""
|
|
4868
4868
|
runtime = util_models.RuntimeOptions()
|
|
4869
4869
|
headers = {}
|
|
@@ -4876,8 +4876,8 @@ class Client:
|
|
|
4876
4876
|
runtime: util_models.RuntimeOptions,
|
|
4877
4877
|
) -> bot_models.QueryIotbasicCategorylistResponse:
|
|
4878
4878
|
"""
|
|
4879
|
-
Description: iotbasic
|
|
4880
|
-
Summary: iotbasic
|
|
4879
|
+
Description: iotbasic-分页查询品类列表
|
|
4880
|
+
Summary: iotbasic-分页查询品类列表
|
|
4881
4881
|
"""
|
|
4882
4882
|
UtilClient.validate_model(request)
|
|
4883
4883
|
return TeaCore.from_map(
|
|
@@ -4892,8 +4892,8 @@ class Client:
|
|
|
4892
4892
|
runtime: util_models.RuntimeOptions,
|
|
4893
4893
|
) -> bot_models.QueryIotbasicCategorylistResponse:
|
|
4894
4894
|
"""
|
|
4895
|
-
Description: iotbasic
|
|
4896
|
-
Summary: iotbasic
|
|
4895
|
+
Description: iotbasic-分页查询品类列表
|
|
4896
|
+
Summary: iotbasic-分页查询品类列表
|
|
4897
4897
|
"""
|
|
4898
4898
|
UtilClient.validate_model(request)
|
|
4899
4899
|
return TeaCore.from_map(
|
|
@@ -6469,6 +6469,152 @@ class Client:
|
|
|
6469
6469
|
await self.do_request_async('1.0', 'blockchain.bot.digitalkey.tradepay.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
6470
6470
|
)
|
|
6471
6471
|
|
|
6472
|
+
def get_digitalkey_deviceinfo(
|
|
6473
|
+
self,
|
|
6474
|
+
request: bot_models.GetDigitalkeyDeviceinfoRequest,
|
|
6475
|
+
) -> bot_models.GetDigitalkeyDeviceinfoResponse:
|
|
6476
|
+
"""
|
|
6477
|
+
Description: iotbasic-查询数控设备信息
|
|
6478
|
+
Summary: iotbasic-查询数控设备信息
|
|
6479
|
+
"""
|
|
6480
|
+
runtime = util_models.RuntimeOptions()
|
|
6481
|
+
headers = {}
|
|
6482
|
+
return self.get_digitalkey_deviceinfo_ex(request, headers, runtime)
|
|
6483
|
+
|
|
6484
|
+
async def get_digitalkey_deviceinfo_async(
|
|
6485
|
+
self,
|
|
6486
|
+
request: bot_models.GetDigitalkeyDeviceinfoRequest,
|
|
6487
|
+
) -> bot_models.GetDigitalkeyDeviceinfoResponse:
|
|
6488
|
+
"""
|
|
6489
|
+
Description: iotbasic-查询数控设备信息
|
|
6490
|
+
Summary: iotbasic-查询数控设备信息
|
|
6491
|
+
"""
|
|
6492
|
+
runtime = util_models.RuntimeOptions()
|
|
6493
|
+
headers = {}
|
|
6494
|
+
return await self.get_digitalkey_deviceinfo_ex_async(request, headers, runtime)
|
|
6495
|
+
|
|
6496
|
+
def get_digitalkey_deviceinfo_ex(
|
|
6497
|
+
self,
|
|
6498
|
+
request: bot_models.GetDigitalkeyDeviceinfoRequest,
|
|
6499
|
+
headers: Dict[str, str],
|
|
6500
|
+
runtime: util_models.RuntimeOptions,
|
|
6501
|
+
) -> bot_models.GetDigitalkeyDeviceinfoResponse:
|
|
6502
|
+
"""
|
|
6503
|
+
Description: iotbasic-查询数控设备信息
|
|
6504
|
+
Summary: iotbasic-查询数控设备信息
|
|
6505
|
+
"""
|
|
6506
|
+
UtilClient.validate_model(request)
|
|
6507
|
+
return TeaCore.from_map(
|
|
6508
|
+
bot_models.GetDigitalkeyDeviceinfoResponse(),
|
|
6509
|
+
self.do_request('1.0', 'blockchain.bot.digitalkey.deviceinfo.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
6510
|
+
)
|
|
6511
|
+
|
|
6512
|
+
async def get_digitalkey_deviceinfo_ex_async(
|
|
6513
|
+
self,
|
|
6514
|
+
request: bot_models.GetDigitalkeyDeviceinfoRequest,
|
|
6515
|
+
headers: Dict[str, str],
|
|
6516
|
+
runtime: util_models.RuntimeOptions,
|
|
6517
|
+
) -> bot_models.GetDigitalkeyDeviceinfoResponse:
|
|
6518
|
+
"""
|
|
6519
|
+
Description: iotbasic-查询数控设备信息
|
|
6520
|
+
Summary: iotbasic-查询数控设备信息
|
|
6521
|
+
"""
|
|
6522
|
+
UtilClient.validate_model(request)
|
|
6523
|
+
return TeaCore.from_map(
|
|
6524
|
+
bot_models.GetDigitalkeyDeviceinfoResponse(),
|
|
6525
|
+
await self.do_request_async('1.0', 'blockchain.bot.digitalkey.deviceinfo.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
6526
|
+
)
|
|
6527
|
+
|
|
6528
|
+
def upload_iotbasic_appmanagerfile(
|
|
6529
|
+
self,
|
|
6530
|
+
request: bot_models.UploadIotbasicAppmanagerfileRequest,
|
|
6531
|
+
) -> bot_models.UploadIotbasicAppmanagerfileResponse:
|
|
6532
|
+
"""
|
|
6533
|
+
Description: iotbasic-上传apk文件
|
|
6534
|
+
Summary: iotbasic-上传apk文件
|
|
6535
|
+
"""
|
|
6536
|
+
runtime = util_models.RuntimeOptions()
|
|
6537
|
+
headers = {}
|
|
6538
|
+
return self.upload_iotbasic_appmanagerfile_ex(request, headers, runtime)
|
|
6539
|
+
|
|
6540
|
+
async def upload_iotbasic_appmanagerfile_async(
|
|
6541
|
+
self,
|
|
6542
|
+
request: bot_models.UploadIotbasicAppmanagerfileRequest,
|
|
6543
|
+
) -> bot_models.UploadIotbasicAppmanagerfileResponse:
|
|
6544
|
+
"""
|
|
6545
|
+
Description: iotbasic-上传apk文件
|
|
6546
|
+
Summary: iotbasic-上传apk文件
|
|
6547
|
+
"""
|
|
6548
|
+
runtime = util_models.RuntimeOptions()
|
|
6549
|
+
headers = {}
|
|
6550
|
+
return await self.upload_iotbasic_appmanagerfile_ex_async(request, headers, runtime)
|
|
6551
|
+
|
|
6552
|
+
def upload_iotbasic_appmanagerfile_ex(
|
|
6553
|
+
self,
|
|
6554
|
+
request: bot_models.UploadIotbasicAppmanagerfileRequest,
|
|
6555
|
+
headers: Dict[str, str],
|
|
6556
|
+
runtime: util_models.RuntimeOptions,
|
|
6557
|
+
) -> bot_models.UploadIotbasicAppmanagerfileResponse:
|
|
6558
|
+
"""
|
|
6559
|
+
Description: iotbasic-上传apk文件
|
|
6560
|
+
Summary: iotbasic-上传apk文件
|
|
6561
|
+
"""
|
|
6562
|
+
if not UtilClient.is_unset(request.file_object):
|
|
6563
|
+
upload_req = bot_models.CreateAntcloudGatewayxFileUploadRequest(
|
|
6564
|
+
auth_token=request.auth_token,
|
|
6565
|
+
api_code='blockchain.bot.iotbasic.appmanagerfile.upload',
|
|
6566
|
+
file_name=request.file_object_name
|
|
6567
|
+
)
|
|
6568
|
+
upload_resp = self.create_antcloud_gatewayx_file_upload_ex(upload_req, headers, runtime)
|
|
6569
|
+
if not AntchainUtils.is_success(upload_resp.result_code, 'ok'):
|
|
6570
|
+
upload_iotbasic_appmanagerfile_response = bot_models.UploadIotbasicAppmanagerfileResponse(
|
|
6571
|
+
req_msg_id=upload_resp.req_msg_id,
|
|
6572
|
+
result_code=upload_resp.result_code,
|
|
6573
|
+
result_msg=upload_resp.result_msg
|
|
6574
|
+
)
|
|
6575
|
+
return upload_iotbasic_appmanagerfile_response
|
|
6576
|
+
upload_headers = AntchainUtils.parse_upload_headers(upload_resp.upload_headers)
|
|
6577
|
+
AntchainUtils.put_object(request.file_object, upload_headers, upload_resp.upload_url)
|
|
6578
|
+
request.file_id = upload_resp.file_id
|
|
6579
|
+
UtilClient.validate_model(request)
|
|
6580
|
+
return TeaCore.from_map(
|
|
6581
|
+
bot_models.UploadIotbasicAppmanagerfileResponse(),
|
|
6582
|
+
self.do_request('1.0', 'blockchain.bot.iotbasic.appmanagerfile.upload', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
6583
|
+
)
|
|
6584
|
+
|
|
6585
|
+
async def upload_iotbasic_appmanagerfile_ex_async(
|
|
6586
|
+
self,
|
|
6587
|
+
request: bot_models.UploadIotbasicAppmanagerfileRequest,
|
|
6588
|
+
headers: Dict[str, str],
|
|
6589
|
+
runtime: util_models.RuntimeOptions,
|
|
6590
|
+
) -> bot_models.UploadIotbasicAppmanagerfileResponse:
|
|
6591
|
+
"""
|
|
6592
|
+
Description: iotbasic-上传apk文件
|
|
6593
|
+
Summary: iotbasic-上传apk文件
|
|
6594
|
+
"""
|
|
6595
|
+
if not UtilClient.is_unset(request.file_object):
|
|
6596
|
+
upload_req = bot_models.CreateAntcloudGatewayxFileUploadRequest(
|
|
6597
|
+
auth_token=request.auth_token,
|
|
6598
|
+
api_code='blockchain.bot.iotbasic.appmanagerfile.upload',
|
|
6599
|
+
file_name=request.file_object_name
|
|
6600
|
+
)
|
|
6601
|
+
upload_resp = await self.create_antcloud_gatewayx_file_upload_ex_async(upload_req, headers, runtime)
|
|
6602
|
+
if not AntchainUtils.is_success(upload_resp.result_code, 'ok'):
|
|
6603
|
+
upload_iotbasic_appmanagerfile_response = bot_models.UploadIotbasicAppmanagerfileResponse(
|
|
6604
|
+
req_msg_id=upload_resp.req_msg_id,
|
|
6605
|
+
result_code=upload_resp.result_code,
|
|
6606
|
+
result_msg=upload_resp.result_msg
|
|
6607
|
+
)
|
|
6608
|
+
return upload_iotbasic_appmanagerfile_response
|
|
6609
|
+
upload_headers = AntchainUtils.parse_upload_headers(upload_resp.upload_headers)
|
|
6610
|
+
await AntchainUtils.put_object_async(request.file_object, upload_headers, upload_resp.upload_url)
|
|
6611
|
+
request.file_id = upload_resp.file_id
|
|
6612
|
+
UtilClient.validate_model(request)
|
|
6613
|
+
return TeaCore.from_map(
|
|
6614
|
+
bot_models.UploadIotbasicAppmanagerfileResponse(),
|
|
6615
|
+
await self.do_request_async('1.0', 'blockchain.bot.iotbasic.appmanagerfile.upload', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
6616
|
+
)
|
|
6617
|
+
|
|
6472
6618
|
def query_iotplatform_purchaseorder(
|
|
6473
6619
|
self,
|
|
6474
6620
|
request: bot_models.QueryIotplatformPurchaseorderRequest,
|
|
@@ -6168,6 +6168,74 @@ class LabelChainResult(TeaModel):
|
|
|
6168
6168
|
return self
|
|
6169
6169
|
|
|
6170
6170
|
|
|
6171
|
+
class IotbasicDigitalKeyDeviceInfo(TeaModel):
|
|
6172
|
+
def __init__(
|
|
6173
|
+
self,
|
|
6174
|
+
devid: str = None,
|
|
6175
|
+
dev_name: str = None,
|
|
6176
|
+
sn: str = None,
|
|
6177
|
+
ccid: str = None,
|
|
6178
|
+
msisdn: str = None,
|
|
6179
|
+
ver: str = None,
|
|
6180
|
+
):
|
|
6181
|
+
# 设备id
|
|
6182
|
+
self.devid = devid
|
|
6183
|
+
# 设备名称
|
|
6184
|
+
self.dev_name = dev_name
|
|
6185
|
+
# 设备sn
|
|
6186
|
+
self.sn = sn
|
|
6187
|
+
# Ccid
|
|
6188
|
+
self.ccid = ccid
|
|
6189
|
+
# Msisdn
|
|
6190
|
+
self.msisdn = msisdn
|
|
6191
|
+
# tbox固件版本号(16进制)
|
|
6192
|
+
self.ver = ver
|
|
6193
|
+
|
|
6194
|
+
def validate(self):
|
|
6195
|
+
self.validate_required(self.devid, 'devid')
|
|
6196
|
+
self.validate_required(self.dev_name, 'dev_name')
|
|
6197
|
+
self.validate_required(self.sn, 'sn')
|
|
6198
|
+
self.validate_required(self.ccid, 'ccid')
|
|
6199
|
+
self.validate_required(self.msisdn, 'msisdn')
|
|
6200
|
+
self.validate_required(self.ver, 'ver')
|
|
6201
|
+
|
|
6202
|
+
def to_map(self):
|
|
6203
|
+
_map = super().to_map()
|
|
6204
|
+
if _map is not None:
|
|
6205
|
+
return _map
|
|
6206
|
+
|
|
6207
|
+
result = dict()
|
|
6208
|
+
if self.devid is not None:
|
|
6209
|
+
result['devid'] = self.devid
|
|
6210
|
+
if self.dev_name is not None:
|
|
6211
|
+
result['dev_name'] = self.dev_name
|
|
6212
|
+
if self.sn is not None:
|
|
6213
|
+
result['sn'] = self.sn
|
|
6214
|
+
if self.ccid is not None:
|
|
6215
|
+
result['ccid'] = self.ccid
|
|
6216
|
+
if self.msisdn is not None:
|
|
6217
|
+
result['msisdn'] = self.msisdn
|
|
6218
|
+
if self.ver is not None:
|
|
6219
|
+
result['ver'] = self.ver
|
|
6220
|
+
return result
|
|
6221
|
+
|
|
6222
|
+
def from_map(self, m: dict = None):
|
|
6223
|
+
m = m or dict()
|
|
6224
|
+
if m.get('devid') is not None:
|
|
6225
|
+
self.devid = m.get('devid')
|
|
6226
|
+
if m.get('dev_name') is not None:
|
|
6227
|
+
self.dev_name = m.get('dev_name')
|
|
6228
|
+
if m.get('sn') is not None:
|
|
6229
|
+
self.sn = m.get('sn')
|
|
6230
|
+
if m.get('ccid') is not None:
|
|
6231
|
+
self.ccid = m.get('ccid')
|
|
6232
|
+
if m.get('msisdn') is not None:
|
|
6233
|
+
self.msisdn = m.get('msisdn')
|
|
6234
|
+
if m.get('ver') is not None:
|
|
6235
|
+
self.ver = m.get('ver')
|
|
6236
|
+
return self
|
|
6237
|
+
|
|
6238
|
+
|
|
6171
6239
|
class BaiQrcodeParseReqData(TeaModel):
|
|
6172
6240
|
def __init__(
|
|
6173
6241
|
self,
|
|
@@ -8992,6 +9060,82 @@ class CollectLabelRawContent(TeaModel):
|
|
|
8992
9060
|
return self
|
|
8993
9061
|
|
|
8994
9062
|
|
|
9063
|
+
class IotbasicDigitalKeyDeviceNoShipInfo(TeaModel):
|
|
9064
|
+
def __init__(
|
|
9065
|
+
self,
|
|
9066
|
+
devid: str = None,
|
|
9067
|
+
sn: str = None,
|
|
9068
|
+
ccid: str = None,
|
|
9069
|
+
imei: str = None,
|
|
9070
|
+
ver: str = None,
|
|
9071
|
+
peps_ver: str = None,
|
|
9072
|
+
ble_ver: str = None,
|
|
9073
|
+
):
|
|
9074
|
+
# 设备id
|
|
9075
|
+
self.devid = devid
|
|
9076
|
+
# 设备sn
|
|
9077
|
+
self.sn = sn
|
|
9078
|
+
# ccid
|
|
9079
|
+
self.ccid = ccid
|
|
9080
|
+
# imei
|
|
9081
|
+
self.imei = imei
|
|
9082
|
+
# tbox固件版本号(16进制)
|
|
9083
|
+
self.ver = ver
|
|
9084
|
+
# PEPS系统固件版本号(16进制)
|
|
9085
|
+
self.peps_ver = peps_ver
|
|
9086
|
+
# 蓝牙固件版本号(16进制)
|
|
9087
|
+
self.ble_ver = ble_ver
|
|
9088
|
+
|
|
9089
|
+
def validate(self):
|
|
9090
|
+
self.validate_required(self.devid, 'devid')
|
|
9091
|
+
self.validate_required(self.sn, 'sn')
|
|
9092
|
+
self.validate_required(self.ccid, 'ccid')
|
|
9093
|
+
self.validate_required(self.imei, 'imei')
|
|
9094
|
+
self.validate_required(self.ver, 'ver')
|
|
9095
|
+
self.validate_required(self.peps_ver, 'peps_ver')
|
|
9096
|
+
self.validate_required(self.ble_ver, 'ble_ver')
|
|
9097
|
+
|
|
9098
|
+
def to_map(self):
|
|
9099
|
+
_map = super().to_map()
|
|
9100
|
+
if _map is not None:
|
|
9101
|
+
return _map
|
|
9102
|
+
|
|
9103
|
+
result = dict()
|
|
9104
|
+
if self.devid is not None:
|
|
9105
|
+
result['devid'] = self.devid
|
|
9106
|
+
if self.sn is not None:
|
|
9107
|
+
result['sn'] = self.sn
|
|
9108
|
+
if self.ccid is not None:
|
|
9109
|
+
result['ccid'] = self.ccid
|
|
9110
|
+
if self.imei is not None:
|
|
9111
|
+
result['imei'] = self.imei
|
|
9112
|
+
if self.ver is not None:
|
|
9113
|
+
result['ver'] = self.ver
|
|
9114
|
+
if self.peps_ver is not None:
|
|
9115
|
+
result['peps_ver'] = self.peps_ver
|
|
9116
|
+
if self.ble_ver is not None:
|
|
9117
|
+
result['ble_ver'] = self.ble_ver
|
|
9118
|
+
return result
|
|
9119
|
+
|
|
9120
|
+
def from_map(self, m: dict = None):
|
|
9121
|
+
m = m or dict()
|
|
9122
|
+
if m.get('devid') is not None:
|
|
9123
|
+
self.devid = m.get('devid')
|
|
9124
|
+
if m.get('sn') is not None:
|
|
9125
|
+
self.sn = m.get('sn')
|
|
9126
|
+
if m.get('ccid') is not None:
|
|
9127
|
+
self.ccid = m.get('ccid')
|
|
9128
|
+
if m.get('imei') is not None:
|
|
9129
|
+
self.imei = m.get('imei')
|
|
9130
|
+
if m.get('ver') is not None:
|
|
9131
|
+
self.ver = m.get('ver')
|
|
9132
|
+
if m.get('peps_ver') is not None:
|
|
9133
|
+
self.peps_ver = m.get('peps_ver')
|
|
9134
|
+
if m.get('ble_ver') is not None:
|
|
9135
|
+
self.ble_ver = m.get('ble_ver')
|
|
9136
|
+
return self
|
|
9137
|
+
|
|
9138
|
+
|
|
8995
9139
|
class DistributeDevice(TeaModel):
|
|
8996
9140
|
def __init__(
|
|
8997
9141
|
self,
|
|
@@ -20442,10 +20586,16 @@ class QueryIotbasicCategorylistRequest(TeaModel):
|
|
|
20442
20586
|
self,
|
|
20443
20587
|
auth_token: str = None,
|
|
20444
20588
|
product_instance_id: str = None,
|
|
20589
|
+
industry: str = None,
|
|
20590
|
+
scene: str = None,
|
|
20445
20591
|
):
|
|
20446
20592
|
# OAuth模式下的授权token
|
|
20447
20593
|
self.auth_token = auth_token
|
|
20448
20594
|
self.product_instance_id = product_instance_id
|
|
20595
|
+
# 行业
|
|
20596
|
+
self.industry = industry
|
|
20597
|
+
# 场景
|
|
20598
|
+
self.scene = scene
|
|
20449
20599
|
|
|
20450
20600
|
def validate(self):
|
|
20451
20601
|
pass
|
|
@@ -20460,6 +20610,10 @@ class QueryIotbasicCategorylistRequest(TeaModel):
|
|
|
20460
20610
|
result['auth_token'] = self.auth_token
|
|
20461
20611
|
if self.product_instance_id is not None:
|
|
20462
20612
|
result['product_instance_id'] = self.product_instance_id
|
|
20613
|
+
if self.industry is not None:
|
|
20614
|
+
result['industry'] = self.industry
|
|
20615
|
+
if self.scene is not None:
|
|
20616
|
+
result['scene'] = self.scene
|
|
20463
20617
|
return result
|
|
20464
20618
|
|
|
20465
20619
|
def from_map(self, m: dict = None):
|
|
@@ -20468,6 +20622,10 @@ class QueryIotbasicCategorylistRequest(TeaModel):
|
|
|
20468
20622
|
self.auth_token = m.get('auth_token')
|
|
20469
20623
|
if m.get('product_instance_id') is not None:
|
|
20470
20624
|
self.product_instance_id = m.get('product_instance_id')
|
|
20625
|
+
if m.get('industry') is not None:
|
|
20626
|
+
self.industry = m.get('industry')
|
|
20627
|
+
if m.get('scene') is not None:
|
|
20628
|
+
self.scene = m.get('scene')
|
|
20471
20629
|
return self
|
|
20472
20630
|
|
|
20473
20631
|
|
|
@@ -24014,6 +24172,232 @@ class QueryDigitalkeyTradepayResponse(TeaModel):
|
|
|
24014
24172
|
return self
|
|
24015
24173
|
|
|
24016
24174
|
|
|
24175
|
+
class GetDigitalkeyDeviceinfoRequest(TeaModel):
|
|
24176
|
+
def __init__(
|
|
24177
|
+
self,
|
|
24178
|
+
auth_token: str = None,
|
|
24179
|
+
product_instance_id: str = None,
|
|
24180
|
+
device_did: str = None,
|
|
24181
|
+
signature: str = None,
|
|
24182
|
+
):
|
|
24183
|
+
# OAuth模式下的授权token
|
|
24184
|
+
self.auth_token = auth_token
|
|
24185
|
+
self.product_instance_id = product_instance_id
|
|
24186
|
+
# 设备DID,注册蚂蚁链返回的设备唯一ID
|
|
24187
|
+
self.device_did = device_did
|
|
24188
|
+
# 使用deviceSecret对deviceDid进行加签
|
|
24189
|
+
self.signature = signature
|
|
24190
|
+
|
|
24191
|
+
def validate(self):
|
|
24192
|
+
self.validate_required(self.device_did, 'device_did')
|
|
24193
|
+
self.validate_required(self.signature, 'signature')
|
|
24194
|
+
|
|
24195
|
+
def to_map(self):
|
|
24196
|
+
_map = super().to_map()
|
|
24197
|
+
if _map is not None:
|
|
24198
|
+
return _map
|
|
24199
|
+
|
|
24200
|
+
result = dict()
|
|
24201
|
+
if self.auth_token is not None:
|
|
24202
|
+
result['auth_token'] = self.auth_token
|
|
24203
|
+
if self.product_instance_id is not None:
|
|
24204
|
+
result['product_instance_id'] = self.product_instance_id
|
|
24205
|
+
if self.device_did is not None:
|
|
24206
|
+
result['device_did'] = self.device_did
|
|
24207
|
+
if self.signature is not None:
|
|
24208
|
+
result['signature'] = self.signature
|
|
24209
|
+
return result
|
|
24210
|
+
|
|
24211
|
+
def from_map(self, m: dict = None):
|
|
24212
|
+
m = m or dict()
|
|
24213
|
+
if m.get('auth_token') is not None:
|
|
24214
|
+
self.auth_token = m.get('auth_token')
|
|
24215
|
+
if m.get('product_instance_id') is not None:
|
|
24216
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
24217
|
+
if m.get('device_did') is not None:
|
|
24218
|
+
self.device_did = m.get('device_did')
|
|
24219
|
+
if m.get('signature') is not None:
|
|
24220
|
+
self.signature = m.get('signature')
|
|
24221
|
+
return self
|
|
24222
|
+
|
|
24223
|
+
|
|
24224
|
+
class GetDigitalkeyDeviceinfoResponse(TeaModel):
|
|
24225
|
+
def __init__(
|
|
24226
|
+
self,
|
|
24227
|
+
req_msg_id: str = None,
|
|
24228
|
+
result_code: str = None,
|
|
24229
|
+
result_msg: str = None,
|
|
24230
|
+
success: bool = None,
|
|
24231
|
+
data: IotbasicDigitalKeyDeviceInfo = None,
|
|
24232
|
+
):
|
|
24233
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
24234
|
+
self.req_msg_id = req_msg_id
|
|
24235
|
+
# 结果码,一般OK表示调用成功
|
|
24236
|
+
self.result_code = result_code
|
|
24237
|
+
# 异常信息的文本描述
|
|
24238
|
+
self.result_msg = result_msg
|
|
24239
|
+
# 操作结果
|
|
24240
|
+
self.success = success
|
|
24241
|
+
# iotbasic数控设备信息
|
|
24242
|
+
self.data = data
|
|
24243
|
+
|
|
24244
|
+
def validate(self):
|
|
24245
|
+
if self.data:
|
|
24246
|
+
self.data.validate()
|
|
24247
|
+
|
|
24248
|
+
def to_map(self):
|
|
24249
|
+
_map = super().to_map()
|
|
24250
|
+
if _map is not None:
|
|
24251
|
+
return _map
|
|
24252
|
+
|
|
24253
|
+
result = dict()
|
|
24254
|
+
if self.req_msg_id is not None:
|
|
24255
|
+
result['req_msg_id'] = self.req_msg_id
|
|
24256
|
+
if self.result_code is not None:
|
|
24257
|
+
result['result_code'] = self.result_code
|
|
24258
|
+
if self.result_msg is not None:
|
|
24259
|
+
result['result_msg'] = self.result_msg
|
|
24260
|
+
if self.success is not None:
|
|
24261
|
+
result['success'] = self.success
|
|
24262
|
+
if self.data is not None:
|
|
24263
|
+
result['data'] = self.data.to_map()
|
|
24264
|
+
return result
|
|
24265
|
+
|
|
24266
|
+
def from_map(self, m: dict = None):
|
|
24267
|
+
m = m or dict()
|
|
24268
|
+
if m.get('req_msg_id') is not None:
|
|
24269
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
24270
|
+
if m.get('result_code') is not None:
|
|
24271
|
+
self.result_code = m.get('result_code')
|
|
24272
|
+
if m.get('result_msg') is not None:
|
|
24273
|
+
self.result_msg = m.get('result_msg')
|
|
24274
|
+
if m.get('success') is not None:
|
|
24275
|
+
self.success = m.get('success')
|
|
24276
|
+
if m.get('data') is not None:
|
|
24277
|
+
temp_model = IotbasicDigitalKeyDeviceInfo()
|
|
24278
|
+
self.data = temp_model.from_map(m['data'])
|
|
24279
|
+
return self
|
|
24280
|
+
|
|
24281
|
+
|
|
24282
|
+
class UploadIotbasicAppmanagerfileRequest(TeaModel):
|
|
24283
|
+
def __init__(
|
|
24284
|
+
self,
|
|
24285
|
+
auth_token: str = None,
|
|
24286
|
+
product_instance_id: str = None,
|
|
24287
|
+
file_object: BinaryIO = None,
|
|
24288
|
+
file_object_name: str = None,
|
|
24289
|
+
file_id: str = None,
|
|
24290
|
+
biz_type: str = None,
|
|
24291
|
+
):
|
|
24292
|
+
# OAuth模式下的授权token
|
|
24293
|
+
self.auth_token = auth_token
|
|
24294
|
+
self.product_instance_id = product_instance_id
|
|
24295
|
+
# 应用文件
|
|
24296
|
+
# 待上传文件
|
|
24297
|
+
self.file_object = file_object
|
|
24298
|
+
# 待上传文件名
|
|
24299
|
+
self.file_object_name = file_object_name
|
|
24300
|
+
self.file_id = file_id
|
|
24301
|
+
# 应用模块名称,由查询应用类型列表获取
|
|
24302
|
+
self.biz_type = biz_type
|
|
24303
|
+
|
|
24304
|
+
def validate(self):
|
|
24305
|
+
self.validate_required(self.file_id, 'file_id')
|
|
24306
|
+
self.validate_required(self.biz_type, 'biz_type')
|
|
24307
|
+
|
|
24308
|
+
def to_map(self):
|
|
24309
|
+
_map = super().to_map()
|
|
24310
|
+
if _map is not None:
|
|
24311
|
+
return _map
|
|
24312
|
+
|
|
24313
|
+
result = dict()
|
|
24314
|
+
if self.auth_token is not None:
|
|
24315
|
+
result['auth_token'] = self.auth_token
|
|
24316
|
+
if self.product_instance_id is not None:
|
|
24317
|
+
result['product_instance_id'] = self.product_instance_id
|
|
24318
|
+
if self.file_object is not None:
|
|
24319
|
+
result['fileObject'] = self.file_object
|
|
24320
|
+
if self.file_object_name is not None:
|
|
24321
|
+
result['fileObjectName'] = self.file_object_name
|
|
24322
|
+
if self.file_id is not None:
|
|
24323
|
+
result['file_id'] = self.file_id
|
|
24324
|
+
if self.biz_type is not None:
|
|
24325
|
+
result['biz_type'] = self.biz_type
|
|
24326
|
+
return result
|
|
24327
|
+
|
|
24328
|
+
def from_map(self, m: dict = None):
|
|
24329
|
+
m = m or dict()
|
|
24330
|
+
if m.get('auth_token') is not None:
|
|
24331
|
+
self.auth_token = m.get('auth_token')
|
|
24332
|
+
if m.get('product_instance_id') is not None:
|
|
24333
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
24334
|
+
if m.get('fileObject') is not None:
|
|
24335
|
+
self.file_object = m.get('fileObject')
|
|
24336
|
+
if m.get('fileObjectName') is not None:
|
|
24337
|
+
self.file_object_name = m.get('fileObjectName')
|
|
24338
|
+
if m.get('file_id') is not None:
|
|
24339
|
+
self.file_id = m.get('file_id')
|
|
24340
|
+
if m.get('biz_type') is not None:
|
|
24341
|
+
self.biz_type = m.get('biz_type')
|
|
24342
|
+
return self
|
|
24343
|
+
|
|
24344
|
+
|
|
24345
|
+
class UploadIotbasicAppmanagerfileResponse(TeaModel):
|
|
24346
|
+
def __init__(
|
|
24347
|
+
self,
|
|
24348
|
+
req_msg_id: str = None,
|
|
24349
|
+
result_code: str = None,
|
|
24350
|
+
result_msg: str = None,
|
|
24351
|
+
success: bool = None,
|
|
24352
|
+
data: str = None,
|
|
24353
|
+
):
|
|
24354
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
24355
|
+
self.req_msg_id = req_msg_id
|
|
24356
|
+
# 结果码,一般OK表示调用成功
|
|
24357
|
+
self.result_code = result_code
|
|
24358
|
+
# 异常信息的文本描述
|
|
24359
|
+
self.result_msg = result_msg
|
|
24360
|
+
# 接口调用结果
|
|
24361
|
+
self.success = success
|
|
24362
|
+
# 上传应用文件解析结果,json字符串
|
|
24363
|
+
self.data = data
|
|
24364
|
+
|
|
24365
|
+
def validate(self):
|
|
24366
|
+
pass
|
|
24367
|
+
|
|
24368
|
+
def to_map(self):
|
|
24369
|
+
_map = super().to_map()
|
|
24370
|
+
if _map is not None:
|
|
24371
|
+
return _map
|
|
24372
|
+
|
|
24373
|
+
result = dict()
|
|
24374
|
+
if self.req_msg_id is not None:
|
|
24375
|
+
result['req_msg_id'] = self.req_msg_id
|
|
24376
|
+
if self.result_code is not None:
|
|
24377
|
+
result['result_code'] = self.result_code
|
|
24378
|
+
if self.result_msg is not None:
|
|
24379
|
+
result['result_msg'] = self.result_msg
|
|
24380
|
+
if self.success is not None:
|
|
24381
|
+
result['success'] = self.success
|
|
24382
|
+
if self.data is not None:
|
|
24383
|
+
result['data'] = self.data
|
|
24384
|
+
return result
|
|
24385
|
+
|
|
24386
|
+
def from_map(self, m: dict = None):
|
|
24387
|
+
m = m or dict()
|
|
24388
|
+
if m.get('req_msg_id') is not None:
|
|
24389
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
24390
|
+
if m.get('result_code') is not None:
|
|
24391
|
+
self.result_code = m.get('result_code')
|
|
24392
|
+
if m.get('result_msg') is not None:
|
|
24393
|
+
self.result_msg = m.get('result_msg')
|
|
24394
|
+
if m.get('success') is not None:
|
|
24395
|
+
self.success = m.get('success')
|
|
24396
|
+
if m.get('data') is not None:
|
|
24397
|
+
self.data = m.get('data')
|
|
24398
|
+
return self
|
|
24399
|
+
|
|
24400
|
+
|
|
24017
24401
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
24018
24402
|
def __init__(
|
|
24019
24403
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.11.12'
|
|
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
|