antchain-bot 1.10.26__py3-none-any.whl → 1.10.30__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.26.dist-info → antchain_bot-1.10.30.dist-info}/METADATA +1 -1
- antchain_bot-1.10.30.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +304 -80
- antchain_sdk_bot/models.py +523 -34
- antchain_bot-1.10.26.dist-info/RECORD +0 -8
- {antchain_bot-1.10.26.dist-info → antchain_bot-1.10.30.dist-info}/LICENSE +0 -0
- {antchain_bot-1.10.26.dist-info → antchain_bot-1.10.30.dist-info}/WHEEL +0 -0
- {antchain_bot-1.10.26.dist-info → antchain_bot-1.10.30.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=hL7Iv0nC9O2zJ6Q2cDbm9pNLY1a31wKdAQptE76meuY,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=MqyM38jfS3mKrJEc0So_8HoiflZaxMn-AyVYeQLhlfk,511710
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=cdxiw5SbujynKpldpGlKm4nqYLtwLzA5PPi2zAWZ4NY,1326974
|
|
4
|
+
antchain_bot-1.10.30.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.10.30.dist-info/METADATA,sha256=sY9YHDs_xoLTdxPQaM1GgBBpiRSgFcN9npRWXwt5bRc,1989
|
|
6
|
+
antchain_bot-1.10.30.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.10.30.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.10.30.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.10.
|
|
1
|
+
__version__ = '1.10.30'
|
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.30',
|
|
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.30',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -4957,172 +4957,172 @@ class Client:
|
|
|
4957
4957
|
await self.do_request_async('1.0', 'blockchain.bot.iotbasic.projectspacelist.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
4958
4958
|
)
|
|
4959
4959
|
|
|
4960
|
-
def
|
|
4960
|
+
def register_devicecorp_customer(
|
|
4961
4961
|
self,
|
|
4962
|
-
request: bot_models.
|
|
4963
|
-
) -> bot_models.
|
|
4962
|
+
request: bot_models.RegisterDevicecorpCustomerRequest,
|
|
4963
|
+
) -> bot_models.RegisterDevicecorpCustomerResponse:
|
|
4964
4964
|
"""
|
|
4965
|
-
Description: iotbasic
|
|
4966
|
-
Summary: iotbasic
|
|
4965
|
+
Description: iotbasic-设备厂商企业注册
|
|
4966
|
+
Summary: iotbasic-设备厂商企业注册
|
|
4967
4967
|
"""
|
|
4968
4968
|
runtime = util_models.RuntimeOptions()
|
|
4969
4969
|
headers = {}
|
|
4970
|
-
return self.
|
|
4970
|
+
return self.register_devicecorp_customer_ex(request, headers, runtime)
|
|
4971
4971
|
|
|
4972
|
-
async def
|
|
4972
|
+
async def register_devicecorp_customer_async(
|
|
4973
4973
|
self,
|
|
4974
|
-
request: bot_models.
|
|
4975
|
-
) -> bot_models.
|
|
4974
|
+
request: bot_models.RegisterDevicecorpCustomerRequest,
|
|
4975
|
+
) -> bot_models.RegisterDevicecorpCustomerResponse:
|
|
4976
4976
|
"""
|
|
4977
|
-
Description: iotbasic
|
|
4978
|
-
Summary: iotbasic
|
|
4977
|
+
Description: iotbasic-设备厂商企业注册
|
|
4978
|
+
Summary: iotbasic-设备厂商企业注册
|
|
4979
4979
|
"""
|
|
4980
4980
|
runtime = util_models.RuntimeOptions()
|
|
4981
4981
|
headers = {}
|
|
4982
|
-
return await self.
|
|
4982
|
+
return await self.register_devicecorp_customer_ex_async(request, headers, runtime)
|
|
4983
4983
|
|
|
4984
|
-
def
|
|
4984
|
+
def register_devicecorp_customer_ex(
|
|
4985
4985
|
self,
|
|
4986
|
-
request: bot_models.
|
|
4986
|
+
request: bot_models.RegisterDevicecorpCustomerRequest,
|
|
4987
4987
|
headers: Dict[str, str],
|
|
4988
4988
|
runtime: util_models.RuntimeOptions,
|
|
4989
|
-
) -> bot_models.
|
|
4989
|
+
) -> bot_models.RegisterDevicecorpCustomerResponse:
|
|
4990
4990
|
"""
|
|
4991
|
-
Description: iotbasic
|
|
4992
|
-
Summary: iotbasic
|
|
4991
|
+
Description: iotbasic-设备厂商企业注册
|
|
4992
|
+
Summary: iotbasic-设备厂商企业注册
|
|
4993
4993
|
"""
|
|
4994
4994
|
UtilClient.validate_model(request)
|
|
4995
4995
|
return TeaCore.from_map(
|
|
4996
|
-
bot_models.
|
|
4997
|
-
self.do_request('1.0', 'blockchain.bot.
|
|
4996
|
+
bot_models.RegisterDevicecorpCustomerResponse(),
|
|
4997
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.customer.register', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
4998
4998
|
)
|
|
4999
4999
|
|
|
5000
|
-
async def
|
|
5000
|
+
async def register_devicecorp_customer_ex_async(
|
|
5001
5001
|
self,
|
|
5002
|
-
request: bot_models.
|
|
5002
|
+
request: bot_models.RegisterDevicecorpCustomerRequest,
|
|
5003
5003
|
headers: Dict[str, str],
|
|
5004
5004
|
runtime: util_models.RuntimeOptions,
|
|
5005
|
-
) -> bot_models.
|
|
5005
|
+
) -> bot_models.RegisterDevicecorpCustomerResponse:
|
|
5006
5006
|
"""
|
|
5007
|
-
Description: iotbasic
|
|
5008
|
-
Summary: iotbasic
|
|
5007
|
+
Description: iotbasic-设备厂商企业注册
|
|
5008
|
+
Summary: iotbasic-设备厂商企业注册
|
|
5009
5009
|
"""
|
|
5010
5010
|
UtilClient.validate_model(request)
|
|
5011
5011
|
return TeaCore.from_map(
|
|
5012
|
-
bot_models.
|
|
5013
|
-
await self.do_request_async('1.0', 'blockchain.bot.
|
|
5012
|
+
bot_models.RegisterDevicecorpCustomerResponse(),
|
|
5013
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.customer.register', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5014
5014
|
)
|
|
5015
5015
|
|
|
5016
|
-
def
|
|
5016
|
+
def get_devicecorp_productinfo(
|
|
5017
5017
|
self,
|
|
5018
|
-
request: bot_models.
|
|
5019
|
-
) -> bot_models.
|
|
5018
|
+
request: bot_models.GetDevicecorpProductinfoRequest,
|
|
5019
|
+
) -> bot_models.GetDevicecorpProductinfoResponse:
|
|
5020
5020
|
"""
|
|
5021
|
-
Description: iotbasic
|
|
5022
|
-
Summary: iotbasic
|
|
5021
|
+
Description: iotbasic-设备厂商产品查询
|
|
5022
|
+
Summary: iotbasic-设备厂商产品查询
|
|
5023
5023
|
"""
|
|
5024
5024
|
runtime = util_models.RuntimeOptions()
|
|
5025
5025
|
headers = {}
|
|
5026
|
-
return self.
|
|
5026
|
+
return self.get_devicecorp_productinfo_ex(request, headers, runtime)
|
|
5027
5027
|
|
|
5028
|
-
async def
|
|
5028
|
+
async def get_devicecorp_productinfo_async(
|
|
5029
5029
|
self,
|
|
5030
|
-
request: bot_models.
|
|
5031
|
-
) -> bot_models.
|
|
5030
|
+
request: bot_models.GetDevicecorpProductinfoRequest,
|
|
5031
|
+
) -> bot_models.GetDevicecorpProductinfoResponse:
|
|
5032
5032
|
"""
|
|
5033
|
-
Description: iotbasic
|
|
5034
|
-
Summary: iotbasic
|
|
5033
|
+
Description: iotbasic-设备厂商产品查询
|
|
5034
|
+
Summary: iotbasic-设备厂商产品查询
|
|
5035
5035
|
"""
|
|
5036
5036
|
runtime = util_models.RuntimeOptions()
|
|
5037
5037
|
headers = {}
|
|
5038
|
-
return await self.
|
|
5038
|
+
return await self.get_devicecorp_productinfo_ex_async(request, headers, runtime)
|
|
5039
5039
|
|
|
5040
|
-
def
|
|
5040
|
+
def get_devicecorp_productinfo_ex(
|
|
5041
5041
|
self,
|
|
5042
|
-
request: bot_models.
|
|
5042
|
+
request: bot_models.GetDevicecorpProductinfoRequest,
|
|
5043
5043
|
headers: Dict[str, str],
|
|
5044
5044
|
runtime: util_models.RuntimeOptions,
|
|
5045
|
-
) -> bot_models.
|
|
5045
|
+
) -> bot_models.GetDevicecorpProductinfoResponse:
|
|
5046
5046
|
"""
|
|
5047
|
-
Description: iotbasic
|
|
5048
|
-
Summary: iotbasic
|
|
5047
|
+
Description: iotbasic-设备厂商产品查询
|
|
5048
|
+
Summary: iotbasic-设备厂商产品查询
|
|
5049
5049
|
"""
|
|
5050
5050
|
UtilClient.validate_model(request)
|
|
5051
5051
|
return TeaCore.from_map(
|
|
5052
|
-
bot_models.
|
|
5053
|
-
self.do_request('1.0', 'blockchain.bot.
|
|
5052
|
+
bot_models.GetDevicecorpProductinfoResponse(),
|
|
5053
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.productinfo.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5054
5054
|
)
|
|
5055
5055
|
|
|
5056
|
-
async def
|
|
5056
|
+
async def get_devicecorp_productinfo_ex_async(
|
|
5057
5057
|
self,
|
|
5058
|
-
request: bot_models.
|
|
5058
|
+
request: bot_models.GetDevicecorpProductinfoRequest,
|
|
5059
5059
|
headers: Dict[str, str],
|
|
5060
5060
|
runtime: util_models.RuntimeOptions,
|
|
5061
|
-
) -> bot_models.
|
|
5061
|
+
) -> bot_models.GetDevicecorpProductinfoResponse:
|
|
5062
5062
|
"""
|
|
5063
|
-
Description: iotbasic
|
|
5064
|
-
Summary: iotbasic
|
|
5063
|
+
Description: iotbasic-设备厂商产品查询
|
|
5064
|
+
Summary: iotbasic-设备厂商产品查询
|
|
5065
5065
|
"""
|
|
5066
5066
|
UtilClient.validate_model(request)
|
|
5067
5067
|
return TeaCore.from_map(
|
|
5068
|
-
bot_models.
|
|
5069
|
-
await self.do_request_async('1.0', 'blockchain.bot.
|
|
5068
|
+
bot_models.GetDevicecorpProductinfoResponse(),
|
|
5069
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.productinfo.get', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5070
5070
|
)
|
|
5071
5071
|
|
|
5072
|
-
def
|
|
5072
|
+
def add_devicecorp_deviceattributes(
|
|
5073
5073
|
self,
|
|
5074
|
-
request: bot_models.
|
|
5075
|
-
) -> bot_models.
|
|
5074
|
+
request: bot_models.AddDevicecorpDeviceattributesRequest,
|
|
5075
|
+
) -> bot_models.AddDevicecorpDeviceattributesResponse:
|
|
5076
5076
|
"""
|
|
5077
|
-
Description: iotbasic
|
|
5078
|
-
Summary: iotbasic
|
|
5077
|
+
Description: iotbasic-添加设备厂商设备属性
|
|
5078
|
+
Summary: iotbasic-添加设备厂商设备属性
|
|
5079
5079
|
"""
|
|
5080
5080
|
runtime = util_models.RuntimeOptions()
|
|
5081
5081
|
headers = {}
|
|
5082
|
-
return self.
|
|
5082
|
+
return self.add_devicecorp_deviceattributes_ex(request, headers, runtime)
|
|
5083
5083
|
|
|
5084
|
-
async def
|
|
5084
|
+
async def add_devicecorp_deviceattributes_async(
|
|
5085
5085
|
self,
|
|
5086
|
-
request: bot_models.
|
|
5087
|
-
) -> bot_models.
|
|
5086
|
+
request: bot_models.AddDevicecorpDeviceattributesRequest,
|
|
5087
|
+
) -> bot_models.AddDevicecorpDeviceattributesResponse:
|
|
5088
5088
|
"""
|
|
5089
|
-
Description: iotbasic
|
|
5090
|
-
Summary: iotbasic
|
|
5089
|
+
Description: iotbasic-添加设备厂商设备属性
|
|
5090
|
+
Summary: iotbasic-添加设备厂商设备属性
|
|
5091
5091
|
"""
|
|
5092
5092
|
runtime = util_models.RuntimeOptions()
|
|
5093
5093
|
headers = {}
|
|
5094
|
-
return await self.
|
|
5094
|
+
return await self.add_devicecorp_deviceattributes_ex_async(request, headers, runtime)
|
|
5095
5095
|
|
|
5096
|
-
def
|
|
5096
|
+
def add_devicecorp_deviceattributes_ex(
|
|
5097
5097
|
self,
|
|
5098
|
-
request: bot_models.
|
|
5098
|
+
request: bot_models.AddDevicecorpDeviceattributesRequest,
|
|
5099
5099
|
headers: Dict[str, str],
|
|
5100
5100
|
runtime: util_models.RuntimeOptions,
|
|
5101
|
-
) -> bot_models.
|
|
5101
|
+
) -> bot_models.AddDevicecorpDeviceattributesResponse:
|
|
5102
5102
|
"""
|
|
5103
|
-
Description: iotbasic
|
|
5104
|
-
Summary: iotbasic
|
|
5103
|
+
Description: iotbasic-添加设备厂商设备属性
|
|
5104
|
+
Summary: iotbasic-添加设备厂商设备属性
|
|
5105
5105
|
"""
|
|
5106
5106
|
UtilClient.validate_model(request)
|
|
5107
5107
|
return TeaCore.from_map(
|
|
5108
|
-
bot_models.
|
|
5109
|
-
self.do_request('1.0', 'blockchain.bot.
|
|
5108
|
+
bot_models.AddDevicecorpDeviceattributesResponse(),
|
|
5109
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.deviceattributes.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5110
5110
|
)
|
|
5111
5111
|
|
|
5112
|
-
async def
|
|
5112
|
+
async def add_devicecorp_deviceattributes_ex_async(
|
|
5113
5113
|
self,
|
|
5114
|
-
request: bot_models.
|
|
5114
|
+
request: bot_models.AddDevicecorpDeviceattributesRequest,
|
|
5115
5115
|
headers: Dict[str, str],
|
|
5116
5116
|
runtime: util_models.RuntimeOptions,
|
|
5117
|
-
) -> bot_models.
|
|
5117
|
+
) -> bot_models.AddDevicecorpDeviceattributesResponse:
|
|
5118
5118
|
"""
|
|
5119
|
-
Description: iotbasic
|
|
5120
|
-
Summary: iotbasic
|
|
5119
|
+
Description: iotbasic-添加设备厂商设备属性
|
|
5120
|
+
Summary: iotbasic-添加设备厂商设备属性
|
|
5121
5121
|
"""
|
|
5122
5122
|
UtilClient.validate_model(request)
|
|
5123
5123
|
return TeaCore.from_map(
|
|
5124
|
-
bot_models.
|
|
5125
|
-
await self.do_request_async('1.0', 'blockchain.bot.
|
|
5124
|
+
bot_models.AddDevicecorpDeviceattributesResponse(),
|
|
5125
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.deviceattributes.add', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5126
5126
|
)
|
|
5127
5127
|
|
|
5128
5128
|
def exec_device_thingservice(
|
|
@@ -5293,6 +5293,230 @@ class Client:
|
|
|
5293
5293
|
await self.do_request_async('1.0', 'blockchain.bot.device.modeldata.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5294
5294
|
)
|
|
5295
5295
|
|
|
5296
|
+
def create_devicecorp_device(
|
|
5297
|
+
self,
|
|
5298
|
+
request: bot_models.CreateDevicecorpDeviceRequest,
|
|
5299
|
+
) -> bot_models.CreateDevicecorpDeviceResponse:
|
|
5300
|
+
"""
|
|
5301
|
+
Description: iotbasic-设备厂商注册设备
|
|
5302
|
+
Summary: iotbasic-设备厂商注册设备
|
|
5303
|
+
"""
|
|
5304
|
+
runtime = util_models.RuntimeOptions()
|
|
5305
|
+
headers = {}
|
|
5306
|
+
return self.create_devicecorp_device_ex(request, headers, runtime)
|
|
5307
|
+
|
|
5308
|
+
async def create_devicecorp_device_async(
|
|
5309
|
+
self,
|
|
5310
|
+
request: bot_models.CreateDevicecorpDeviceRequest,
|
|
5311
|
+
) -> bot_models.CreateDevicecorpDeviceResponse:
|
|
5312
|
+
"""
|
|
5313
|
+
Description: iotbasic-设备厂商注册设备
|
|
5314
|
+
Summary: iotbasic-设备厂商注册设备
|
|
5315
|
+
"""
|
|
5316
|
+
runtime = util_models.RuntimeOptions()
|
|
5317
|
+
headers = {}
|
|
5318
|
+
return await self.create_devicecorp_device_ex_async(request, headers, runtime)
|
|
5319
|
+
|
|
5320
|
+
def create_devicecorp_device_ex(
|
|
5321
|
+
self,
|
|
5322
|
+
request: bot_models.CreateDevicecorpDeviceRequest,
|
|
5323
|
+
headers: Dict[str, str],
|
|
5324
|
+
runtime: util_models.RuntimeOptions,
|
|
5325
|
+
) -> bot_models.CreateDevicecorpDeviceResponse:
|
|
5326
|
+
"""
|
|
5327
|
+
Description: iotbasic-设备厂商注册设备
|
|
5328
|
+
Summary: iotbasic-设备厂商注册设备
|
|
5329
|
+
"""
|
|
5330
|
+
UtilClient.validate_model(request)
|
|
5331
|
+
return TeaCore.from_map(
|
|
5332
|
+
bot_models.CreateDevicecorpDeviceResponse(),
|
|
5333
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.device.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5334
|
+
)
|
|
5335
|
+
|
|
5336
|
+
async def create_devicecorp_device_ex_async(
|
|
5337
|
+
self,
|
|
5338
|
+
request: bot_models.CreateDevicecorpDeviceRequest,
|
|
5339
|
+
headers: Dict[str, str],
|
|
5340
|
+
runtime: util_models.RuntimeOptions,
|
|
5341
|
+
) -> bot_models.CreateDevicecorpDeviceResponse:
|
|
5342
|
+
"""
|
|
5343
|
+
Description: iotbasic-设备厂商注册设备
|
|
5344
|
+
Summary: iotbasic-设备厂商注册设备
|
|
5345
|
+
"""
|
|
5346
|
+
UtilClient.validate_model(request)
|
|
5347
|
+
return TeaCore.from_map(
|
|
5348
|
+
bot_models.CreateDevicecorpDeviceResponse(),
|
|
5349
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.device.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5350
|
+
)
|
|
5351
|
+
|
|
5352
|
+
def batchcreate_devicecorp_device(
|
|
5353
|
+
self,
|
|
5354
|
+
request: bot_models.BatchcreateDevicecorpDeviceRequest,
|
|
5355
|
+
) -> bot_models.BatchcreateDevicecorpDeviceResponse:
|
|
5356
|
+
"""
|
|
5357
|
+
Description: iotbasic-设备厂商批量注册设备
|
|
5358
|
+
Summary: iotbasic-设备厂商批量注册设备
|
|
5359
|
+
"""
|
|
5360
|
+
runtime = util_models.RuntimeOptions()
|
|
5361
|
+
headers = {}
|
|
5362
|
+
return self.batchcreate_devicecorp_device_ex(request, headers, runtime)
|
|
5363
|
+
|
|
5364
|
+
async def batchcreate_devicecorp_device_async(
|
|
5365
|
+
self,
|
|
5366
|
+
request: bot_models.BatchcreateDevicecorpDeviceRequest,
|
|
5367
|
+
) -> bot_models.BatchcreateDevicecorpDeviceResponse:
|
|
5368
|
+
"""
|
|
5369
|
+
Description: iotbasic-设备厂商批量注册设备
|
|
5370
|
+
Summary: iotbasic-设备厂商批量注册设备
|
|
5371
|
+
"""
|
|
5372
|
+
runtime = util_models.RuntimeOptions()
|
|
5373
|
+
headers = {}
|
|
5374
|
+
return await self.batchcreate_devicecorp_device_ex_async(request, headers, runtime)
|
|
5375
|
+
|
|
5376
|
+
def batchcreate_devicecorp_device_ex(
|
|
5377
|
+
self,
|
|
5378
|
+
request: bot_models.BatchcreateDevicecorpDeviceRequest,
|
|
5379
|
+
headers: Dict[str, str],
|
|
5380
|
+
runtime: util_models.RuntimeOptions,
|
|
5381
|
+
) -> bot_models.BatchcreateDevicecorpDeviceResponse:
|
|
5382
|
+
"""
|
|
5383
|
+
Description: iotbasic-设备厂商批量注册设备
|
|
5384
|
+
Summary: iotbasic-设备厂商批量注册设备
|
|
5385
|
+
"""
|
|
5386
|
+
UtilClient.validate_model(request)
|
|
5387
|
+
return TeaCore.from_map(
|
|
5388
|
+
bot_models.BatchcreateDevicecorpDeviceResponse(),
|
|
5389
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.device.batchcreate', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5390
|
+
)
|
|
5391
|
+
|
|
5392
|
+
async def batchcreate_devicecorp_device_ex_async(
|
|
5393
|
+
self,
|
|
5394
|
+
request: bot_models.BatchcreateDevicecorpDeviceRequest,
|
|
5395
|
+
headers: Dict[str, str],
|
|
5396
|
+
runtime: util_models.RuntimeOptions,
|
|
5397
|
+
) -> bot_models.BatchcreateDevicecorpDeviceResponse:
|
|
5398
|
+
"""
|
|
5399
|
+
Description: iotbasic-设备厂商批量注册设备
|
|
5400
|
+
Summary: iotbasic-设备厂商批量注册设备
|
|
5401
|
+
"""
|
|
5402
|
+
UtilClient.validate_model(request)
|
|
5403
|
+
return TeaCore.from_map(
|
|
5404
|
+
bot_models.BatchcreateDevicecorpDeviceResponse(),
|
|
5405
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.device.batchcreate', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5406
|
+
)
|
|
5407
|
+
|
|
5408
|
+
def query_devicecorp_customerregisterresult(
|
|
5409
|
+
self,
|
|
5410
|
+
request: bot_models.QueryDevicecorpCustomerregisterresultRequest,
|
|
5411
|
+
) -> bot_models.QueryDevicecorpCustomerregisterresultResponse:
|
|
5412
|
+
"""
|
|
5413
|
+
Description: iotbasic-查询设备厂商企业注册结果
|
|
5414
|
+
Summary: 查询设备厂商企业注册结果
|
|
5415
|
+
"""
|
|
5416
|
+
runtime = util_models.RuntimeOptions()
|
|
5417
|
+
headers = {}
|
|
5418
|
+
return self.query_devicecorp_customerregisterresult_ex(request, headers, runtime)
|
|
5419
|
+
|
|
5420
|
+
async def query_devicecorp_customerregisterresult_async(
|
|
5421
|
+
self,
|
|
5422
|
+
request: bot_models.QueryDevicecorpCustomerregisterresultRequest,
|
|
5423
|
+
) -> bot_models.QueryDevicecorpCustomerregisterresultResponse:
|
|
5424
|
+
"""
|
|
5425
|
+
Description: iotbasic-查询设备厂商企业注册结果
|
|
5426
|
+
Summary: 查询设备厂商企业注册结果
|
|
5427
|
+
"""
|
|
5428
|
+
runtime = util_models.RuntimeOptions()
|
|
5429
|
+
headers = {}
|
|
5430
|
+
return await self.query_devicecorp_customerregisterresult_ex_async(request, headers, runtime)
|
|
5431
|
+
|
|
5432
|
+
def query_devicecorp_customerregisterresult_ex(
|
|
5433
|
+
self,
|
|
5434
|
+
request: bot_models.QueryDevicecorpCustomerregisterresultRequest,
|
|
5435
|
+
headers: Dict[str, str],
|
|
5436
|
+
runtime: util_models.RuntimeOptions,
|
|
5437
|
+
) -> bot_models.QueryDevicecorpCustomerregisterresultResponse:
|
|
5438
|
+
"""
|
|
5439
|
+
Description: iotbasic-查询设备厂商企业注册结果
|
|
5440
|
+
Summary: 查询设备厂商企业注册结果
|
|
5441
|
+
"""
|
|
5442
|
+
UtilClient.validate_model(request)
|
|
5443
|
+
return TeaCore.from_map(
|
|
5444
|
+
bot_models.QueryDevicecorpCustomerregisterresultResponse(),
|
|
5445
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.customerregisterresult.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5446
|
+
)
|
|
5447
|
+
|
|
5448
|
+
async def query_devicecorp_customerregisterresult_ex_async(
|
|
5449
|
+
self,
|
|
5450
|
+
request: bot_models.QueryDevicecorpCustomerregisterresultRequest,
|
|
5451
|
+
headers: Dict[str, str],
|
|
5452
|
+
runtime: util_models.RuntimeOptions,
|
|
5453
|
+
) -> bot_models.QueryDevicecorpCustomerregisterresultResponse:
|
|
5454
|
+
"""
|
|
5455
|
+
Description: iotbasic-查询设备厂商企业注册结果
|
|
5456
|
+
Summary: 查询设备厂商企业注册结果
|
|
5457
|
+
"""
|
|
5458
|
+
UtilClient.validate_model(request)
|
|
5459
|
+
return TeaCore.from_map(
|
|
5460
|
+
bot_models.QueryDevicecorpCustomerregisterresultResponse(),
|
|
5461
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.customerregisterresult.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5462
|
+
)
|
|
5463
|
+
|
|
5464
|
+
def operate_devicecorp_devicecontrol(
|
|
5465
|
+
self,
|
|
5466
|
+
request: bot_models.OperateDevicecorpDevicecontrolRequest,
|
|
5467
|
+
) -> bot_models.OperateDevicecorpDevicecontrolResponse:
|
|
5468
|
+
"""
|
|
5469
|
+
Description: iotbasic-管控设备厂商设备
|
|
5470
|
+
Summary: iotbasic-管控设备厂商设备
|
|
5471
|
+
"""
|
|
5472
|
+
runtime = util_models.RuntimeOptions()
|
|
5473
|
+
headers = {}
|
|
5474
|
+
return self.operate_devicecorp_devicecontrol_ex(request, headers, runtime)
|
|
5475
|
+
|
|
5476
|
+
async def operate_devicecorp_devicecontrol_async(
|
|
5477
|
+
self,
|
|
5478
|
+
request: bot_models.OperateDevicecorpDevicecontrolRequest,
|
|
5479
|
+
) -> bot_models.OperateDevicecorpDevicecontrolResponse:
|
|
5480
|
+
"""
|
|
5481
|
+
Description: iotbasic-管控设备厂商设备
|
|
5482
|
+
Summary: iotbasic-管控设备厂商设备
|
|
5483
|
+
"""
|
|
5484
|
+
runtime = util_models.RuntimeOptions()
|
|
5485
|
+
headers = {}
|
|
5486
|
+
return await self.operate_devicecorp_devicecontrol_ex_async(request, headers, runtime)
|
|
5487
|
+
|
|
5488
|
+
def operate_devicecorp_devicecontrol_ex(
|
|
5489
|
+
self,
|
|
5490
|
+
request: bot_models.OperateDevicecorpDevicecontrolRequest,
|
|
5491
|
+
headers: Dict[str, str],
|
|
5492
|
+
runtime: util_models.RuntimeOptions,
|
|
5493
|
+
) -> bot_models.OperateDevicecorpDevicecontrolResponse:
|
|
5494
|
+
"""
|
|
5495
|
+
Description: iotbasic-管控设备厂商设备
|
|
5496
|
+
Summary: iotbasic-管控设备厂商设备
|
|
5497
|
+
"""
|
|
5498
|
+
UtilClient.validate_model(request)
|
|
5499
|
+
return TeaCore.from_map(
|
|
5500
|
+
bot_models.OperateDevicecorpDevicecontrolResponse(),
|
|
5501
|
+
self.do_request('1.0', 'blockchain.bot.devicecorp.devicecontrol.operate', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5502
|
+
)
|
|
5503
|
+
|
|
5504
|
+
async def operate_devicecorp_devicecontrol_ex_async(
|
|
5505
|
+
self,
|
|
5506
|
+
request: bot_models.OperateDevicecorpDevicecontrolRequest,
|
|
5507
|
+
headers: Dict[str, str],
|
|
5508
|
+
runtime: util_models.RuntimeOptions,
|
|
5509
|
+
) -> bot_models.OperateDevicecorpDevicecontrolResponse:
|
|
5510
|
+
"""
|
|
5511
|
+
Description: iotbasic-管控设备厂商设备
|
|
5512
|
+
Summary: iotbasic-管控设备厂商设备
|
|
5513
|
+
"""
|
|
5514
|
+
UtilClient.validate_model(request)
|
|
5515
|
+
return TeaCore.from_map(
|
|
5516
|
+
bot_models.OperateDevicecorpDevicecontrolResponse(),
|
|
5517
|
+
await self.do_request_async('1.0', 'blockchain.bot.devicecorp.devicecontrol.operate', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
5518
|
+
)
|
|
5519
|
+
|
|
5296
5520
|
def query_iotplatform_purchaseorder(
|
|
5297
5521
|
self,
|
|
5298
5522
|
request: bot_models.QueryIotplatformPurchaseorderRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -3096,32 +3096,20 @@ class EvidenceStorageReq(TeaModel):
|
|
|
3096
3096
|
class CategoryInfo(TeaModel):
|
|
3097
3097
|
def __init__(
|
|
3098
3098
|
self,
|
|
3099
|
-
industry: str = None,
|
|
3100
|
-
scene: str = None,
|
|
3101
3099
|
category_name: str = None,
|
|
3102
3100
|
category_code: str = None,
|
|
3103
|
-
category_type: str = None,
|
|
3104
3101
|
remark: str = None,
|
|
3105
3102
|
):
|
|
3106
|
-
# 行业
|
|
3107
|
-
self.industry = industry
|
|
3108
|
-
# 场景
|
|
3109
|
-
self.scene = scene
|
|
3110
3103
|
# 品类名称
|
|
3111
3104
|
self.category_name = category_name
|
|
3112
3105
|
# 品类编码
|
|
3113
3106
|
self.category_code = category_code
|
|
3114
|
-
# 品类类型
|
|
3115
|
-
self.category_type = category_type
|
|
3116
3107
|
# 描述内容
|
|
3117
3108
|
self.remark = remark
|
|
3118
3109
|
|
|
3119
3110
|
def validate(self):
|
|
3120
|
-
self.validate_required(self.industry, 'industry')
|
|
3121
|
-
self.validate_required(self.scene, 'scene')
|
|
3122
3111
|
self.validate_required(self.category_name, 'category_name')
|
|
3123
3112
|
self.validate_required(self.category_code, 'category_code')
|
|
3124
|
-
self.validate_required(self.category_type, 'category_type')
|
|
3125
3113
|
|
|
3126
3114
|
def to_map(self):
|
|
3127
3115
|
_map = super().to_map()
|
|
@@ -3129,32 +3117,20 @@ class CategoryInfo(TeaModel):
|
|
|
3129
3117
|
return _map
|
|
3130
3118
|
|
|
3131
3119
|
result = dict()
|
|
3132
|
-
if self.industry is not None:
|
|
3133
|
-
result['industry'] = self.industry
|
|
3134
|
-
if self.scene is not None:
|
|
3135
|
-
result['scene'] = self.scene
|
|
3136
3120
|
if self.category_name is not None:
|
|
3137
3121
|
result['category_name'] = self.category_name
|
|
3138
3122
|
if self.category_code is not None:
|
|
3139
3123
|
result['category_code'] = self.category_code
|
|
3140
|
-
if self.category_type is not None:
|
|
3141
|
-
result['category_type'] = self.category_type
|
|
3142
3124
|
if self.remark is not None:
|
|
3143
3125
|
result['remark'] = self.remark
|
|
3144
3126
|
return result
|
|
3145
3127
|
|
|
3146
3128
|
def from_map(self, m: dict = None):
|
|
3147
3129
|
m = m or dict()
|
|
3148
|
-
if m.get('industry') is not None:
|
|
3149
|
-
self.industry = m.get('industry')
|
|
3150
|
-
if m.get('scene') is not None:
|
|
3151
|
-
self.scene = m.get('scene')
|
|
3152
3130
|
if m.get('category_name') is not None:
|
|
3153
3131
|
self.category_name = m.get('category_name')
|
|
3154
3132
|
if m.get('category_code') is not None:
|
|
3155
3133
|
self.category_code = m.get('category_code')
|
|
3156
|
-
if m.get('category_type') is not None:
|
|
3157
|
-
self.category_type = m.get('category_type')
|
|
3158
3134
|
if m.get('remark') is not None:
|
|
3159
3135
|
self.remark = m.get('remark')
|
|
3160
3136
|
return self
|
|
@@ -15824,7 +15800,6 @@ class CreateIotbasicDeviceRequest(TeaModel):
|
|
|
15824
15800
|
self.validate_required(self.device_sn, 'device_sn')
|
|
15825
15801
|
self.validate_required(self.device_specs, 'device_specs')
|
|
15826
15802
|
self.validate_required(self.biz_scene, 'biz_scene')
|
|
15827
|
-
self.validate_required(self.tenant_id, 'tenant_id')
|
|
15828
15803
|
|
|
15829
15804
|
def to_map(self):
|
|
15830
15805
|
_map = super().to_map()
|
|
@@ -15980,7 +15955,6 @@ class BatchcreateIotbasicDeviceRequest(TeaModel):
|
|
|
15980
15955
|
self.validate_required(self.corp_name, 'corp_name')
|
|
15981
15956
|
self.validate_required(self.device_category_code, 'device_category_code')
|
|
15982
15957
|
self.validate_required(self.biz_scene, 'biz_scene')
|
|
15983
|
-
self.validate_required(self.tenant_id, 'tenant_id')
|
|
15984
15958
|
self.validate_required(self.device_list, 'device_list')
|
|
15985
15959
|
if self.device_list:
|
|
15986
15960
|
for k in self.device_list:
|
|
@@ -17967,7 +17941,6 @@ class DeleteIotbasicDeviceRequest(TeaModel):
|
|
|
17967
17941
|
|
|
17968
17942
|
def validate(self):
|
|
17969
17943
|
self.validate_required(self.device_did, 'device_did')
|
|
17970
|
-
self.validate_required(self.user_id, 'user_id')
|
|
17971
17944
|
self.validate_required(self.signature, 'signature')
|
|
17972
17945
|
|
|
17973
17946
|
def to_map(self):
|
|
@@ -18217,7 +18190,7 @@ class QueryDeviceRegisterresultRequest(TeaModel):
|
|
|
18217
18190
|
self.tenant_id = tenant_id
|
|
18218
18191
|
|
|
18219
18192
|
def validate(self):
|
|
18220
|
-
|
|
18193
|
+
pass
|
|
18221
18194
|
|
|
18222
18195
|
def to_map(self):
|
|
18223
18196
|
_map = super().to_map()
|
|
@@ -20256,7 +20229,7 @@ class QueryIotbasicProjectspacelistResponse(TeaModel):
|
|
|
20256
20229
|
return self
|
|
20257
20230
|
|
|
20258
20231
|
|
|
20259
|
-
class
|
|
20232
|
+
class RegisterDevicecorpCustomerRequest(TeaModel):
|
|
20260
20233
|
def __init__(
|
|
20261
20234
|
self,
|
|
20262
20235
|
auth_token: str = None,
|
|
@@ -20329,7 +20302,7 @@ class RegisterIotbasicCustomerRequest(TeaModel):
|
|
|
20329
20302
|
return self
|
|
20330
20303
|
|
|
20331
20304
|
|
|
20332
|
-
class
|
|
20305
|
+
class RegisterDevicecorpCustomerResponse(TeaModel):
|
|
20333
20306
|
def __init__(
|
|
20334
20307
|
self,
|
|
20335
20308
|
req_msg_id: str = None,
|
|
@@ -20378,7 +20351,7 @@ class RegisterIotbasicCustomerResponse(TeaModel):
|
|
|
20378
20351
|
return self
|
|
20379
20352
|
|
|
20380
20353
|
|
|
20381
|
-
class
|
|
20354
|
+
class GetDevicecorpProductinfoRequest(TeaModel):
|
|
20382
20355
|
def __init__(
|
|
20383
20356
|
self,
|
|
20384
20357
|
auth_token: str = None,
|
|
@@ -20419,7 +20392,7 @@ class GetIotbasicProductinfoRequest(TeaModel):
|
|
|
20419
20392
|
return self
|
|
20420
20393
|
|
|
20421
20394
|
|
|
20422
|
-
class
|
|
20395
|
+
class GetDevicecorpProductinfoResponse(TeaModel):
|
|
20423
20396
|
def __init__(
|
|
20424
20397
|
self,
|
|
20425
20398
|
req_msg_id: str = None,
|
|
@@ -20481,7 +20454,7 @@ class GetIotbasicProductinfoResponse(TeaModel):
|
|
|
20481
20454
|
return self
|
|
20482
20455
|
|
|
20483
20456
|
|
|
20484
|
-
class
|
|
20457
|
+
class AddDevicecorpDeviceattributesRequest(TeaModel):
|
|
20485
20458
|
def __init__(
|
|
20486
20459
|
self,
|
|
20487
20460
|
auth_token: str = None,
|
|
@@ -20546,7 +20519,7 @@ class AddDeviceAttributeRequest(TeaModel):
|
|
|
20546
20519
|
return self
|
|
20547
20520
|
|
|
20548
20521
|
|
|
20549
|
-
class
|
|
20522
|
+
class AddDevicecorpDeviceattributesResponse(TeaModel):
|
|
20550
20523
|
def __init__(
|
|
20551
20524
|
self,
|
|
20552
20525
|
req_msg_id: str = None,
|
|
@@ -21006,6 +20979,522 @@ class QueryDeviceModeldataResponse(TeaModel):
|
|
|
21006
20979
|
return self
|
|
21007
20980
|
|
|
21008
20981
|
|
|
20982
|
+
class CreateDevicecorpDeviceRequest(TeaModel):
|
|
20983
|
+
def __init__(
|
|
20984
|
+
self,
|
|
20985
|
+
auth_token: str = None,
|
|
20986
|
+
product_instance_id: str = None,
|
|
20987
|
+
project_code: str = None,
|
|
20988
|
+
category_code: str = None,
|
|
20989
|
+
device_model: str = None,
|
|
20990
|
+
device_specs: str = None,
|
|
20991
|
+
device_name: str = None,
|
|
20992
|
+
device_sn: str = None,
|
|
20993
|
+
nick_name: str = None,
|
|
20994
|
+
):
|
|
20995
|
+
# OAuth模式下的授权token
|
|
20996
|
+
self.auth_token = auth_token
|
|
20997
|
+
self.product_instance_id = product_instance_id
|
|
20998
|
+
# 项目编码
|
|
20999
|
+
self.project_code = project_code
|
|
21000
|
+
# 品类code
|
|
21001
|
+
self.category_code = category_code
|
|
21002
|
+
# 设备型号值
|
|
21003
|
+
self.device_model = device_model
|
|
21004
|
+
# 设备规格值
|
|
21005
|
+
self.device_specs = device_specs
|
|
21006
|
+
# 设备名称
|
|
21007
|
+
self.device_name = device_name
|
|
21008
|
+
# 设备sn
|
|
21009
|
+
self.device_sn = device_sn
|
|
21010
|
+
# 设备标签
|
|
21011
|
+
self.nick_name = nick_name
|
|
21012
|
+
|
|
21013
|
+
def validate(self):
|
|
21014
|
+
self.validate_required(self.project_code, 'project_code')
|
|
21015
|
+
self.validate_required(self.category_code, 'category_code')
|
|
21016
|
+
self.validate_required(self.device_model, 'device_model')
|
|
21017
|
+
self.validate_required(self.device_specs, 'device_specs')
|
|
21018
|
+
self.validate_required(self.device_name, 'device_name')
|
|
21019
|
+
self.validate_required(self.device_sn, 'device_sn')
|
|
21020
|
+
|
|
21021
|
+
def to_map(self):
|
|
21022
|
+
_map = super().to_map()
|
|
21023
|
+
if _map is not None:
|
|
21024
|
+
return _map
|
|
21025
|
+
|
|
21026
|
+
result = dict()
|
|
21027
|
+
if self.auth_token is not None:
|
|
21028
|
+
result['auth_token'] = self.auth_token
|
|
21029
|
+
if self.product_instance_id is not None:
|
|
21030
|
+
result['product_instance_id'] = self.product_instance_id
|
|
21031
|
+
if self.project_code is not None:
|
|
21032
|
+
result['project_code'] = self.project_code
|
|
21033
|
+
if self.category_code is not None:
|
|
21034
|
+
result['category_code'] = self.category_code
|
|
21035
|
+
if self.device_model is not None:
|
|
21036
|
+
result['device_model'] = self.device_model
|
|
21037
|
+
if self.device_specs is not None:
|
|
21038
|
+
result['device_specs'] = self.device_specs
|
|
21039
|
+
if self.device_name is not None:
|
|
21040
|
+
result['device_name'] = self.device_name
|
|
21041
|
+
if self.device_sn is not None:
|
|
21042
|
+
result['device_sn'] = self.device_sn
|
|
21043
|
+
if self.nick_name is not None:
|
|
21044
|
+
result['nick_name'] = self.nick_name
|
|
21045
|
+
return result
|
|
21046
|
+
|
|
21047
|
+
def from_map(self, m: dict = None):
|
|
21048
|
+
m = m or dict()
|
|
21049
|
+
if m.get('auth_token') is not None:
|
|
21050
|
+
self.auth_token = m.get('auth_token')
|
|
21051
|
+
if m.get('product_instance_id') is not None:
|
|
21052
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
21053
|
+
if m.get('project_code') is not None:
|
|
21054
|
+
self.project_code = m.get('project_code')
|
|
21055
|
+
if m.get('category_code') is not None:
|
|
21056
|
+
self.category_code = m.get('category_code')
|
|
21057
|
+
if m.get('device_model') is not None:
|
|
21058
|
+
self.device_model = m.get('device_model')
|
|
21059
|
+
if m.get('device_specs') is not None:
|
|
21060
|
+
self.device_specs = m.get('device_specs')
|
|
21061
|
+
if m.get('device_name') is not None:
|
|
21062
|
+
self.device_name = m.get('device_name')
|
|
21063
|
+
if m.get('device_sn') is not None:
|
|
21064
|
+
self.device_sn = m.get('device_sn')
|
|
21065
|
+
if m.get('nick_name') is not None:
|
|
21066
|
+
self.nick_name = m.get('nick_name')
|
|
21067
|
+
return self
|
|
21068
|
+
|
|
21069
|
+
|
|
21070
|
+
class CreateDevicecorpDeviceResponse(TeaModel):
|
|
21071
|
+
def __init__(
|
|
21072
|
+
self,
|
|
21073
|
+
req_msg_id: str = None,
|
|
21074
|
+
result_code: str = None,
|
|
21075
|
+
result_msg: str = None,
|
|
21076
|
+
device_did: str = None,
|
|
21077
|
+
private_key: str = None,
|
|
21078
|
+
success: bool = None,
|
|
21079
|
+
):
|
|
21080
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
21081
|
+
self.req_msg_id = req_msg_id
|
|
21082
|
+
# 结果码,一般OK表示调用成功
|
|
21083
|
+
self.result_code = result_code
|
|
21084
|
+
# 异常信息的文本描述
|
|
21085
|
+
self.result_msg = result_msg
|
|
21086
|
+
# did
|
|
21087
|
+
self.device_did = device_did
|
|
21088
|
+
# 设备私钥
|
|
21089
|
+
self.private_key = private_key
|
|
21090
|
+
# 操作结果
|
|
21091
|
+
self.success = success
|
|
21092
|
+
|
|
21093
|
+
def validate(self):
|
|
21094
|
+
pass
|
|
21095
|
+
|
|
21096
|
+
def to_map(self):
|
|
21097
|
+
_map = super().to_map()
|
|
21098
|
+
if _map is not None:
|
|
21099
|
+
return _map
|
|
21100
|
+
|
|
21101
|
+
result = dict()
|
|
21102
|
+
if self.req_msg_id is not None:
|
|
21103
|
+
result['req_msg_id'] = self.req_msg_id
|
|
21104
|
+
if self.result_code is not None:
|
|
21105
|
+
result['result_code'] = self.result_code
|
|
21106
|
+
if self.result_msg is not None:
|
|
21107
|
+
result['result_msg'] = self.result_msg
|
|
21108
|
+
if self.device_did is not None:
|
|
21109
|
+
result['device_did'] = self.device_did
|
|
21110
|
+
if self.private_key is not None:
|
|
21111
|
+
result['private_key'] = self.private_key
|
|
21112
|
+
if self.success is not None:
|
|
21113
|
+
result['success'] = self.success
|
|
21114
|
+
return result
|
|
21115
|
+
|
|
21116
|
+
def from_map(self, m: dict = None):
|
|
21117
|
+
m = m or dict()
|
|
21118
|
+
if m.get('req_msg_id') is not None:
|
|
21119
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
21120
|
+
if m.get('result_code') is not None:
|
|
21121
|
+
self.result_code = m.get('result_code')
|
|
21122
|
+
if m.get('result_msg') is not None:
|
|
21123
|
+
self.result_msg = m.get('result_msg')
|
|
21124
|
+
if m.get('device_did') is not None:
|
|
21125
|
+
self.device_did = m.get('device_did')
|
|
21126
|
+
if m.get('private_key') is not None:
|
|
21127
|
+
self.private_key = m.get('private_key')
|
|
21128
|
+
if m.get('success') is not None:
|
|
21129
|
+
self.success = m.get('success')
|
|
21130
|
+
return self
|
|
21131
|
+
|
|
21132
|
+
|
|
21133
|
+
class BatchcreateDevicecorpDeviceRequest(TeaModel):
|
|
21134
|
+
def __init__(
|
|
21135
|
+
self,
|
|
21136
|
+
auth_token: str = None,
|
|
21137
|
+
product_instance_id: str = None,
|
|
21138
|
+
project_code: str = None,
|
|
21139
|
+
category_code: str = None,
|
|
21140
|
+
device_list: List[IotBasicDeviceRegisterInfo] = None,
|
|
21141
|
+
):
|
|
21142
|
+
# OAuth模式下的授权token
|
|
21143
|
+
self.auth_token = auth_token
|
|
21144
|
+
self.product_instance_id = product_instance_id
|
|
21145
|
+
# 项目编码
|
|
21146
|
+
self.project_code = project_code
|
|
21147
|
+
# 品类code
|
|
21148
|
+
self.category_code = category_code
|
|
21149
|
+
# 注册设备集合
|
|
21150
|
+
self.device_list = device_list
|
|
21151
|
+
|
|
21152
|
+
def validate(self):
|
|
21153
|
+
self.validate_required(self.project_code, 'project_code')
|
|
21154
|
+
self.validate_required(self.category_code, 'category_code')
|
|
21155
|
+
self.validate_required(self.device_list, 'device_list')
|
|
21156
|
+
if self.device_list:
|
|
21157
|
+
for k in self.device_list:
|
|
21158
|
+
if k:
|
|
21159
|
+
k.validate()
|
|
21160
|
+
|
|
21161
|
+
def to_map(self):
|
|
21162
|
+
_map = super().to_map()
|
|
21163
|
+
if _map is not None:
|
|
21164
|
+
return _map
|
|
21165
|
+
|
|
21166
|
+
result = dict()
|
|
21167
|
+
if self.auth_token is not None:
|
|
21168
|
+
result['auth_token'] = self.auth_token
|
|
21169
|
+
if self.product_instance_id is not None:
|
|
21170
|
+
result['product_instance_id'] = self.product_instance_id
|
|
21171
|
+
if self.project_code is not None:
|
|
21172
|
+
result['project_code'] = self.project_code
|
|
21173
|
+
if self.category_code is not None:
|
|
21174
|
+
result['category_code'] = self.category_code
|
|
21175
|
+
result['device_list'] = []
|
|
21176
|
+
if self.device_list is not None:
|
|
21177
|
+
for k in self.device_list:
|
|
21178
|
+
result['device_list'].append(k.to_map() if k else None)
|
|
21179
|
+
return result
|
|
21180
|
+
|
|
21181
|
+
def from_map(self, m: dict = None):
|
|
21182
|
+
m = m or dict()
|
|
21183
|
+
if m.get('auth_token') is not None:
|
|
21184
|
+
self.auth_token = m.get('auth_token')
|
|
21185
|
+
if m.get('product_instance_id') is not None:
|
|
21186
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
21187
|
+
if m.get('project_code') is not None:
|
|
21188
|
+
self.project_code = m.get('project_code')
|
|
21189
|
+
if m.get('category_code') is not None:
|
|
21190
|
+
self.category_code = m.get('category_code')
|
|
21191
|
+
self.device_list = []
|
|
21192
|
+
if m.get('device_list') is not None:
|
|
21193
|
+
for k in m.get('device_list'):
|
|
21194
|
+
temp_model = IotBasicDeviceRegisterInfo()
|
|
21195
|
+
self.device_list.append(temp_model.from_map(k))
|
|
21196
|
+
return self
|
|
21197
|
+
|
|
21198
|
+
|
|
21199
|
+
class BatchcreateDevicecorpDeviceResponse(TeaModel):
|
|
21200
|
+
def __init__(
|
|
21201
|
+
self,
|
|
21202
|
+
req_msg_id: str = None,
|
|
21203
|
+
result_code: str = None,
|
|
21204
|
+
result_msg: str = None,
|
|
21205
|
+
success: bool = None,
|
|
21206
|
+
success_list: List[IotBasicDeviceRegisterResult] = None,
|
|
21207
|
+
fail_list: List[IotBasicDeviceRegisterFail] = None,
|
|
21208
|
+
):
|
|
21209
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
21210
|
+
self.req_msg_id = req_msg_id
|
|
21211
|
+
# 结果码,一般OK表示调用成功
|
|
21212
|
+
self.result_code = result_code
|
|
21213
|
+
# 异常信息的文本描述
|
|
21214
|
+
self.result_msg = result_msg
|
|
21215
|
+
# 操作结果
|
|
21216
|
+
self.success = success
|
|
21217
|
+
# 注册成功集合
|
|
21218
|
+
self.success_list = success_list
|
|
21219
|
+
# 注册失败集合
|
|
21220
|
+
self.fail_list = fail_list
|
|
21221
|
+
|
|
21222
|
+
def validate(self):
|
|
21223
|
+
if self.success_list:
|
|
21224
|
+
for k in self.success_list:
|
|
21225
|
+
if k:
|
|
21226
|
+
k.validate()
|
|
21227
|
+
if self.fail_list:
|
|
21228
|
+
for k in self.fail_list:
|
|
21229
|
+
if k:
|
|
21230
|
+
k.validate()
|
|
21231
|
+
|
|
21232
|
+
def to_map(self):
|
|
21233
|
+
_map = super().to_map()
|
|
21234
|
+
if _map is not None:
|
|
21235
|
+
return _map
|
|
21236
|
+
|
|
21237
|
+
result = dict()
|
|
21238
|
+
if self.req_msg_id is not None:
|
|
21239
|
+
result['req_msg_id'] = self.req_msg_id
|
|
21240
|
+
if self.result_code is not None:
|
|
21241
|
+
result['result_code'] = self.result_code
|
|
21242
|
+
if self.result_msg is not None:
|
|
21243
|
+
result['result_msg'] = self.result_msg
|
|
21244
|
+
if self.success is not None:
|
|
21245
|
+
result['success'] = self.success
|
|
21246
|
+
result['success_list'] = []
|
|
21247
|
+
if self.success_list is not None:
|
|
21248
|
+
for k in self.success_list:
|
|
21249
|
+
result['success_list'].append(k.to_map() if k else None)
|
|
21250
|
+
result['fail_list'] = []
|
|
21251
|
+
if self.fail_list is not None:
|
|
21252
|
+
for k in self.fail_list:
|
|
21253
|
+
result['fail_list'].append(k.to_map() if k else None)
|
|
21254
|
+
return result
|
|
21255
|
+
|
|
21256
|
+
def from_map(self, m: dict = None):
|
|
21257
|
+
m = m or dict()
|
|
21258
|
+
if m.get('req_msg_id') is not None:
|
|
21259
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
21260
|
+
if m.get('result_code') is not None:
|
|
21261
|
+
self.result_code = m.get('result_code')
|
|
21262
|
+
if m.get('result_msg') is not None:
|
|
21263
|
+
self.result_msg = m.get('result_msg')
|
|
21264
|
+
if m.get('success') is not None:
|
|
21265
|
+
self.success = m.get('success')
|
|
21266
|
+
self.success_list = []
|
|
21267
|
+
if m.get('success_list') is not None:
|
|
21268
|
+
for k in m.get('success_list'):
|
|
21269
|
+
temp_model = IotBasicDeviceRegisterResult()
|
|
21270
|
+
self.success_list.append(temp_model.from_map(k))
|
|
21271
|
+
self.fail_list = []
|
|
21272
|
+
if m.get('fail_list') is not None:
|
|
21273
|
+
for k in m.get('fail_list'):
|
|
21274
|
+
temp_model = IotBasicDeviceRegisterFail()
|
|
21275
|
+
self.fail_list.append(temp_model.from_map(k))
|
|
21276
|
+
return self
|
|
21277
|
+
|
|
21278
|
+
|
|
21279
|
+
class QueryDevicecorpCustomerregisterresultRequest(TeaModel):
|
|
21280
|
+
def __init__(
|
|
21281
|
+
self,
|
|
21282
|
+
auth_token: str = None,
|
|
21283
|
+
product_instance_id: str = None,
|
|
21284
|
+
):
|
|
21285
|
+
# OAuth模式下的授权token
|
|
21286
|
+
self.auth_token = auth_token
|
|
21287
|
+
self.product_instance_id = product_instance_id
|
|
21288
|
+
|
|
21289
|
+
def validate(self):
|
|
21290
|
+
pass
|
|
21291
|
+
|
|
21292
|
+
def to_map(self):
|
|
21293
|
+
_map = super().to_map()
|
|
21294
|
+
if _map is not None:
|
|
21295
|
+
return _map
|
|
21296
|
+
|
|
21297
|
+
result = dict()
|
|
21298
|
+
if self.auth_token is not None:
|
|
21299
|
+
result['auth_token'] = self.auth_token
|
|
21300
|
+
if self.product_instance_id is not None:
|
|
21301
|
+
result['product_instance_id'] = self.product_instance_id
|
|
21302
|
+
return result
|
|
21303
|
+
|
|
21304
|
+
def from_map(self, m: dict = None):
|
|
21305
|
+
m = m or dict()
|
|
21306
|
+
if m.get('auth_token') is not None:
|
|
21307
|
+
self.auth_token = m.get('auth_token')
|
|
21308
|
+
if m.get('product_instance_id') is not None:
|
|
21309
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
21310
|
+
return self
|
|
21311
|
+
|
|
21312
|
+
|
|
21313
|
+
class QueryDevicecorpCustomerregisterresultResponse(TeaModel):
|
|
21314
|
+
def __init__(
|
|
21315
|
+
self,
|
|
21316
|
+
req_msg_id: str = None,
|
|
21317
|
+
result_code: str = None,
|
|
21318
|
+
result_msg: str = None,
|
|
21319
|
+
success: bool = None,
|
|
21320
|
+
data: str = None,
|
|
21321
|
+
):
|
|
21322
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
21323
|
+
self.req_msg_id = req_msg_id
|
|
21324
|
+
# 结果码,一般OK表示调用成功
|
|
21325
|
+
self.result_code = result_code
|
|
21326
|
+
# 异常信息的文本描述
|
|
21327
|
+
self.result_msg = result_msg
|
|
21328
|
+
# 操作结果
|
|
21329
|
+
self.success = success
|
|
21330
|
+
# 结果
|
|
21331
|
+
self.data = data
|
|
21332
|
+
|
|
21333
|
+
def validate(self):
|
|
21334
|
+
pass
|
|
21335
|
+
|
|
21336
|
+
def to_map(self):
|
|
21337
|
+
_map = super().to_map()
|
|
21338
|
+
if _map is not None:
|
|
21339
|
+
return _map
|
|
21340
|
+
|
|
21341
|
+
result = dict()
|
|
21342
|
+
if self.req_msg_id is not None:
|
|
21343
|
+
result['req_msg_id'] = self.req_msg_id
|
|
21344
|
+
if self.result_code is not None:
|
|
21345
|
+
result['result_code'] = self.result_code
|
|
21346
|
+
if self.result_msg is not None:
|
|
21347
|
+
result['result_msg'] = self.result_msg
|
|
21348
|
+
if self.success is not None:
|
|
21349
|
+
result['success'] = self.success
|
|
21350
|
+
if self.data is not None:
|
|
21351
|
+
result['data'] = self.data
|
|
21352
|
+
return result
|
|
21353
|
+
|
|
21354
|
+
def from_map(self, m: dict = None):
|
|
21355
|
+
m = m or dict()
|
|
21356
|
+
if m.get('req_msg_id') is not None:
|
|
21357
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
21358
|
+
if m.get('result_code') is not None:
|
|
21359
|
+
self.result_code = m.get('result_code')
|
|
21360
|
+
if m.get('result_msg') is not None:
|
|
21361
|
+
self.result_msg = m.get('result_msg')
|
|
21362
|
+
if m.get('success') is not None:
|
|
21363
|
+
self.success = m.get('success')
|
|
21364
|
+
if m.get('data') is not None:
|
|
21365
|
+
self.data = m.get('data')
|
|
21366
|
+
return self
|
|
21367
|
+
|
|
21368
|
+
|
|
21369
|
+
class OperateDevicecorpDevicecontrolRequest(TeaModel):
|
|
21370
|
+
def __init__(
|
|
21371
|
+
self,
|
|
21372
|
+
auth_token: str = None,
|
|
21373
|
+
product_instance_id: str = None,
|
|
21374
|
+
device_infos: List[DeviceOperateInfo] = None,
|
|
21375
|
+
device_operation: str = None,
|
|
21376
|
+
):
|
|
21377
|
+
# OAuth模式下的授权token
|
|
21378
|
+
self.auth_token = auth_token
|
|
21379
|
+
self.product_instance_id = product_instance_id
|
|
21380
|
+
# 设备列表
|
|
21381
|
+
self.device_infos = device_infos
|
|
21382
|
+
# 设备管控操作;OPEN:设备开启;CLOSE:设备关闭;RESET:设备重置。
|
|
21383
|
+
self.device_operation = device_operation
|
|
21384
|
+
|
|
21385
|
+
def validate(self):
|
|
21386
|
+
self.validate_required(self.device_infos, 'device_infos')
|
|
21387
|
+
if self.device_infos:
|
|
21388
|
+
for k in self.device_infos:
|
|
21389
|
+
if k:
|
|
21390
|
+
k.validate()
|
|
21391
|
+
self.validate_required(self.device_operation, 'device_operation')
|
|
21392
|
+
|
|
21393
|
+
def to_map(self):
|
|
21394
|
+
_map = super().to_map()
|
|
21395
|
+
if _map is not None:
|
|
21396
|
+
return _map
|
|
21397
|
+
|
|
21398
|
+
result = dict()
|
|
21399
|
+
if self.auth_token is not None:
|
|
21400
|
+
result['auth_token'] = self.auth_token
|
|
21401
|
+
if self.product_instance_id is not None:
|
|
21402
|
+
result['product_instance_id'] = self.product_instance_id
|
|
21403
|
+
result['device_infos'] = []
|
|
21404
|
+
if self.device_infos is not None:
|
|
21405
|
+
for k in self.device_infos:
|
|
21406
|
+
result['device_infos'].append(k.to_map() if k else None)
|
|
21407
|
+
if self.device_operation is not None:
|
|
21408
|
+
result['device_operation'] = self.device_operation
|
|
21409
|
+
return result
|
|
21410
|
+
|
|
21411
|
+
def from_map(self, m: dict = None):
|
|
21412
|
+
m = m or dict()
|
|
21413
|
+
if m.get('auth_token') is not None:
|
|
21414
|
+
self.auth_token = m.get('auth_token')
|
|
21415
|
+
if m.get('product_instance_id') is not None:
|
|
21416
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
21417
|
+
self.device_infos = []
|
|
21418
|
+
if m.get('device_infos') is not None:
|
|
21419
|
+
for k in m.get('device_infos'):
|
|
21420
|
+
temp_model = DeviceOperateInfo()
|
|
21421
|
+
self.device_infos.append(temp_model.from_map(k))
|
|
21422
|
+
if m.get('device_operation') is not None:
|
|
21423
|
+
self.device_operation = m.get('device_operation')
|
|
21424
|
+
return self
|
|
21425
|
+
|
|
21426
|
+
|
|
21427
|
+
class OperateDevicecorpDevicecontrolResponse(TeaModel):
|
|
21428
|
+
def __init__(
|
|
21429
|
+
self,
|
|
21430
|
+
req_msg_id: str = None,
|
|
21431
|
+
result_code: str = None,
|
|
21432
|
+
result_msg: str = None,
|
|
21433
|
+
success: bool = None,
|
|
21434
|
+
success_list: List[str] = None,
|
|
21435
|
+
fail_list: List[DeviceControlFail] = None,
|
|
21436
|
+
):
|
|
21437
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
21438
|
+
self.req_msg_id = req_msg_id
|
|
21439
|
+
# 结果码,一般OK表示调用成功
|
|
21440
|
+
self.result_code = result_code
|
|
21441
|
+
# 异常信息的文本描述
|
|
21442
|
+
self.result_msg = result_msg
|
|
21443
|
+
# 操作结果
|
|
21444
|
+
self.success = success
|
|
21445
|
+
# 操作成功设备did列表
|
|
21446
|
+
self.success_list = success_list
|
|
21447
|
+
# 操作失败列表
|
|
21448
|
+
self.fail_list = fail_list
|
|
21449
|
+
|
|
21450
|
+
def validate(self):
|
|
21451
|
+
if self.fail_list:
|
|
21452
|
+
for k in self.fail_list:
|
|
21453
|
+
if k:
|
|
21454
|
+
k.validate()
|
|
21455
|
+
|
|
21456
|
+
def to_map(self):
|
|
21457
|
+
_map = super().to_map()
|
|
21458
|
+
if _map is not None:
|
|
21459
|
+
return _map
|
|
21460
|
+
|
|
21461
|
+
result = dict()
|
|
21462
|
+
if self.req_msg_id is not None:
|
|
21463
|
+
result['req_msg_id'] = self.req_msg_id
|
|
21464
|
+
if self.result_code is not None:
|
|
21465
|
+
result['result_code'] = self.result_code
|
|
21466
|
+
if self.result_msg is not None:
|
|
21467
|
+
result['result_msg'] = self.result_msg
|
|
21468
|
+
if self.success is not None:
|
|
21469
|
+
result['success'] = self.success
|
|
21470
|
+
if self.success_list is not None:
|
|
21471
|
+
result['success_list'] = self.success_list
|
|
21472
|
+
result['fail_list'] = []
|
|
21473
|
+
if self.fail_list is not None:
|
|
21474
|
+
for k in self.fail_list:
|
|
21475
|
+
result['fail_list'].append(k.to_map() if k else None)
|
|
21476
|
+
return result
|
|
21477
|
+
|
|
21478
|
+
def from_map(self, m: dict = None):
|
|
21479
|
+
m = m or dict()
|
|
21480
|
+
if m.get('req_msg_id') is not None:
|
|
21481
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
21482
|
+
if m.get('result_code') is not None:
|
|
21483
|
+
self.result_code = m.get('result_code')
|
|
21484
|
+
if m.get('result_msg') is not None:
|
|
21485
|
+
self.result_msg = m.get('result_msg')
|
|
21486
|
+
if m.get('success') is not None:
|
|
21487
|
+
self.success = m.get('success')
|
|
21488
|
+
if m.get('success_list') is not None:
|
|
21489
|
+
self.success_list = m.get('success_list')
|
|
21490
|
+
self.fail_list = []
|
|
21491
|
+
if m.get('fail_list') is not None:
|
|
21492
|
+
for k in m.get('fail_list'):
|
|
21493
|
+
temp_model = DeviceControlFail()
|
|
21494
|
+
self.fail_list.append(temp_model.from_map(k))
|
|
21495
|
+
return self
|
|
21496
|
+
|
|
21497
|
+
|
|
21009
21498
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
21010
21499
|
def __init__(
|
|
21011
21500
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|