antchain-bot 1.10.30__py3-none-any.whl → 1.10.34__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antchain-bot
3
- Version: 1.10.30
3
+ Version: 1.10.34
4
4
  Summary: Ant Chain BOT SDK Library for Python
5
5
  Home-page: https://github.com/alipay/antchain-openapi-prod-sdk
6
6
  Author: Ant Chain SDK
@@ -21,7 +21,7 @@ Classifier: Topic :: Software Development
21
21
  Requires-Python: >=3.6
22
22
  Description-Content-Type: text/markdown
23
23
  Requires-Dist: antchain-alipay-util <2.0.0,>=1.0.1
24
- Requires-Dist: alibabacloud-tea-util <1.0.0,>=0.3.11
24
+ Requires-Dist: alibabacloud-tea-util <1.0.0,>=0.3.12
25
25
  Requires-Dist: alibabacloud-rpc-util <1.0.0,>=0.0.4
26
26
 
27
27
  English | [简体中文](README-CN.md)
@@ -0,0 +1,8 @@
1
+ antchain_sdk_bot/__init__.py,sha256=YvveaJLq9ycXPB-1Wrx9BcM6eWGmGv3IycJV6-1CbWA,23
2
+ antchain_sdk_bot/client.py,sha256=0tHsBmQ6tFE0oIFw4hLN0NP-vc-Y99-NGiw43ZjdTfc,521112
3
+ antchain_sdk_bot/models.py,sha256=0vooQYfvb8BisOZJhgGqoBu3m2_x11On830ndb1QI8k,1340968
4
+ antchain_bot-1.10.34.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ antchain_bot-1.10.34.dist-info/METADATA,sha256=Bupz9L5GBJASDEVXEODGJH-PDeg-WAVLIKBiAauZW7E,1989
6
+ antchain_bot-1.10.34.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
+ antchain_bot-1.10.34.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
+ antchain_bot-1.10.34.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = '1.10.30'
1
+ __version__ = '1.10.34'
@@ -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.30',
138
+ 'sdk_version': '1.10.34',
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.30',
242
+ 'sdk_version': '1.10.34',
243
243
  '_prod_code': 'BOT',
244
244
  '_prod_channel': 'undefined'
245
245
  }
@@ -5517,6 +5517,230 @@ class Client:
5517
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
5518
  )
5519
5519
 
5520
+ def create_devicecorp_thingmodel(
5521
+ self,
5522
+ request: bot_models.CreateDevicecorpThingmodelRequest,
5523
+ ) -> bot_models.CreateDevicecorpThingmodelResponse:
5524
+ """
5525
+ Description: iotbasic-设备厂商创建物模型
5526
+ Summary: iotbasic-设备厂商创建物模型
5527
+ """
5528
+ runtime = util_models.RuntimeOptions()
5529
+ headers = {}
5530
+ return self.create_devicecorp_thingmodel_ex(request, headers, runtime)
5531
+
5532
+ async def create_devicecorp_thingmodel_async(
5533
+ self,
5534
+ request: bot_models.CreateDevicecorpThingmodelRequest,
5535
+ ) -> bot_models.CreateDevicecorpThingmodelResponse:
5536
+ """
5537
+ Description: iotbasic-设备厂商创建物模型
5538
+ Summary: iotbasic-设备厂商创建物模型
5539
+ """
5540
+ runtime = util_models.RuntimeOptions()
5541
+ headers = {}
5542
+ return await self.create_devicecorp_thingmodel_ex_async(request, headers, runtime)
5543
+
5544
+ def create_devicecorp_thingmodel_ex(
5545
+ self,
5546
+ request: bot_models.CreateDevicecorpThingmodelRequest,
5547
+ headers: Dict[str, str],
5548
+ runtime: util_models.RuntimeOptions,
5549
+ ) -> bot_models.CreateDevicecorpThingmodelResponse:
5550
+ """
5551
+ Description: iotbasic-设备厂商创建物模型
5552
+ Summary: iotbasic-设备厂商创建物模型
5553
+ """
5554
+ UtilClient.validate_model(request)
5555
+ return TeaCore.from_map(
5556
+ bot_models.CreateDevicecorpThingmodelResponse(),
5557
+ self.do_request('1.0', 'blockchain.bot.devicecorp.thingmodel.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5558
+ )
5559
+
5560
+ async def create_devicecorp_thingmodel_ex_async(
5561
+ self,
5562
+ request: bot_models.CreateDevicecorpThingmodelRequest,
5563
+ headers: Dict[str, str],
5564
+ runtime: util_models.RuntimeOptions,
5565
+ ) -> bot_models.CreateDevicecorpThingmodelResponse:
5566
+ """
5567
+ Description: iotbasic-设备厂商创建物模型
5568
+ Summary: iotbasic-设备厂商创建物模型
5569
+ """
5570
+ UtilClient.validate_model(request)
5571
+ return TeaCore.from_map(
5572
+ bot_models.CreateDevicecorpThingmodelResponse(),
5573
+ await self.do_request_async('1.0', 'blockchain.bot.devicecorp.thingmodel.create', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5574
+ )
5575
+
5576
+ def update_devicecorp_thingmodel(
5577
+ self,
5578
+ request: bot_models.UpdateDevicecorpThingmodelRequest,
5579
+ ) -> bot_models.UpdateDevicecorpThingmodelResponse:
5580
+ """
5581
+ Description: iotbasic-设备厂商修改物模型
5582
+ Summary: iotbasic-设备厂商修改物模型
5583
+ """
5584
+ runtime = util_models.RuntimeOptions()
5585
+ headers = {}
5586
+ return self.update_devicecorp_thingmodel_ex(request, headers, runtime)
5587
+
5588
+ async def update_devicecorp_thingmodel_async(
5589
+ self,
5590
+ request: bot_models.UpdateDevicecorpThingmodelRequest,
5591
+ ) -> bot_models.UpdateDevicecorpThingmodelResponse:
5592
+ """
5593
+ Description: iotbasic-设备厂商修改物模型
5594
+ Summary: iotbasic-设备厂商修改物模型
5595
+ """
5596
+ runtime = util_models.RuntimeOptions()
5597
+ headers = {}
5598
+ return await self.update_devicecorp_thingmodel_ex_async(request, headers, runtime)
5599
+
5600
+ def update_devicecorp_thingmodel_ex(
5601
+ self,
5602
+ request: bot_models.UpdateDevicecorpThingmodelRequest,
5603
+ headers: Dict[str, str],
5604
+ runtime: util_models.RuntimeOptions,
5605
+ ) -> bot_models.UpdateDevicecorpThingmodelResponse:
5606
+ """
5607
+ Description: iotbasic-设备厂商修改物模型
5608
+ Summary: iotbasic-设备厂商修改物模型
5609
+ """
5610
+ UtilClient.validate_model(request)
5611
+ return TeaCore.from_map(
5612
+ bot_models.UpdateDevicecorpThingmodelResponse(),
5613
+ self.do_request('1.0', 'blockchain.bot.devicecorp.thingmodel.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5614
+ )
5615
+
5616
+ async def update_devicecorp_thingmodel_ex_async(
5617
+ self,
5618
+ request: bot_models.UpdateDevicecorpThingmodelRequest,
5619
+ headers: Dict[str, str],
5620
+ runtime: util_models.RuntimeOptions,
5621
+ ) -> bot_models.UpdateDevicecorpThingmodelResponse:
5622
+ """
5623
+ Description: iotbasic-设备厂商修改物模型
5624
+ Summary: iotbasic-设备厂商修改物模型
5625
+ """
5626
+ UtilClient.validate_model(request)
5627
+ return TeaCore.from_map(
5628
+ bot_models.UpdateDevicecorpThingmodelResponse(),
5629
+ await self.do_request_async('1.0', 'blockchain.bot.devicecorp.thingmodel.update', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5630
+ )
5631
+
5632
+ def delete_devicecorp_thingmodel(
5633
+ self,
5634
+ request: bot_models.DeleteDevicecorpThingmodelRequest,
5635
+ ) -> bot_models.DeleteDevicecorpThingmodelResponse:
5636
+ """
5637
+ Description: iotbasic-设备厂商删除物模型
5638
+ Summary: iotbasic-设备厂商删除物模型
5639
+ """
5640
+ runtime = util_models.RuntimeOptions()
5641
+ headers = {}
5642
+ return self.delete_devicecorp_thingmodel_ex(request, headers, runtime)
5643
+
5644
+ async def delete_devicecorp_thingmodel_async(
5645
+ self,
5646
+ request: bot_models.DeleteDevicecorpThingmodelRequest,
5647
+ ) -> bot_models.DeleteDevicecorpThingmodelResponse:
5648
+ """
5649
+ Description: iotbasic-设备厂商删除物模型
5650
+ Summary: iotbasic-设备厂商删除物模型
5651
+ """
5652
+ runtime = util_models.RuntimeOptions()
5653
+ headers = {}
5654
+ return await self.delete_devicecorp_thingmodel_ex_async(request, headers, runtime)
5655
+
5656
+ def delete_devicecorp_thingmodel_ex(
5657
+ self,
5658
+ request: bot_models.DeleteDevicecorpThingmodelRequest,
5659
+ headers: Dict[str, str],
5660
+ runtime: util_models.RuntimeOptions,
5661
+ ) -> bot_models.DeleteDevicecorpThingmodelResponse:
5662
+ """
5663
+ Description: iotbasic-设备厂商删除物模型
5664
+ Summary: iotbasic-设备厂商删除物模型
5665
+ """
5666
+ UtilClient.validate_model(request)
5667
+ return TeaCore.from_map(
5668
+ bot_models.DeleteDevicecorpThingmodelResponse(),
5669
+ self.do_request('1.0', 'blockchain.bot.devicecorp.thingmodel.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5670
+ )
5671
+
5672
+ async def delete_devicecorp_thingmodel_ex_async(
5673
+ self,
5674
+ request: bot_models.DeleteDevicecorpThingmodelRequest,
5675
+ headers: Dict[str, str],
5676
+ runtime: util_models.RuntimeOptions,
5677
+ ) -> bot_models.DeleteDevicecorpThingmodelResponse:
5678
+ """
5679
+ Description: iotbasic-设备厂商删除物模型
5680
+ Summary: iotbasic-设备厂商删除物模型
5681
+ """
5682
+ UtilClient.validate_model(request)
5683
+ return TeaCore.from_map(
5684
+ bot_models.DeleteDevicecorpThingmodelResponse(),
5685
+ await self.do_request_async('1.0', 'blockchain.bot.devicecorp.thingmodel.delete', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5686
+ )
5687
+
5688
+ def publish_devicecorp_thingmodel(
5689
+ self,
5690
+ request: bot_models.PublishDevicecorpThingmodelRequest,
5691
+ ) -> bot_models.PublishDevicecorpThingmodelResponse:
5692
+ """
5693
+ Description: iotbasic-设备厂商发布物模型
5694
+ Summary: iotbasic-设备厂商发布物模型
5695
+ """
5696
+ runtime = util_models.RuntimeOptions()
5697
+ headers = {}
5698
+ return self.publish_devicecorp_thingmodel_ex(request, headers, runtime)
5699
+
5700
+ async def publish_devicecorp_thingmodel_async(
5701
+ self,
5702
+ request: bot_models.PublishDevicecorpThingmodelRequest,
5703
+ ) -> bot_models.PublishDevicecorpThingmodelResponse:
5704
+ """
5705
+ Description: iotbasic-设备厂商发布物模型
5706
+ Summary: iotbasic-设备厂商发布物模型
5707
+ """
5708
+ runtime = util_models.RuntimeOptions()
5709
+ headers = {}
5710
+ return await self.publish_devicecorp_thingmodel_ex_async(request, headers, runtime)
5711
+
5712
+ def publish_devicecorp_thingmodel_ex(
5713
+ self,
5714
+ request: bot_models.PublishDevicecorpThingmodelRequest,
5715
+ headers: Dict[str, str],
5716
+ runtime: util_models.RuntimeOptions,
5717
+ ) -> bot_models.PublishDevicecorpThingmodelResponse:
5718
+ """
5719
+ Description: iotbasic-设备厂商发布物模型
5720
+ Summary: iotbasic-设备厂商发布物模型
5721
+ """
5722
+ UtilClient.validate_model(request)
5723
+ return TeaCore.from_map(
5724
+ bot_models.PublishDevicecorpThingmodelResponse(),
5725
+ self.do_request('1.0', 'blockchain.bot.devicecorp.thingmodel.publish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5726
+ )
5727
+
5728
+ async def publish_devicecorp_thingmodel_ex_async(
5729
+ self,
5730
+ request: bot_models.PublishDevicecorpThingmodelRequest,
5731
+ headers: Dict[str, str],
5732
+ runtime: util_models.RuntimeOptions,
5733
+ ) -> bot_models.PublishDevicecorpThingmodelResponse:
5734
+ """
5735
+ Description: iotbasic-设备厂商发布物模型
5736
+ Summary: iotbasic-设备厂商发布物模型
5737
+ """
5738
+ UtilClient.validate_model(request)
5739
+ return TeaCore.from_map(
5740
+ bot_models.PublishDevicecorpThingmodelResponse(),
5741
+ await self.do_request_async('1.0', 'blockchain.bot.devicecorp.thingmodel.publish', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
5742
+ )
5743
+
5520
5744
  def query_iotplatform_purchaseorder(
5521
5745
  self,
5522
5746
  request: bot_models.QueryIotplatformPurchaseorderRequest,
@@ -6859,6 +6859,7 @@ class ChainModelResult(TeaModel):
6859
6859
  tenant_id: str = None,
6860
6860
  tx_time: str = None,
6861
6861
  business_id: str = None,
6862
+ antchain_id: str = None,
6862
6863
  ):
6863
6864
  # 所属业务
6864
6865
  self.biz_scene = biz_scene
@@ -6874,6 +6875,8 @@ class ChainModelResult(TeaModel):
6874
6875
  self.tx_time = tx_time
6875
6876
  # 业务ID
6876
6877
  self.business_id = business_id
6878
+ # 上链id
6879
+ self.antchain_id = antchain_id
6877
6880
 
6878
6881
  def validate(self):
6879
6882
  self.validate_required(self.biz_scene, 'biz_scene')
@@ -6883,6 +6886,7 @@ class ChainModelResult(TeaModel):
6883
6886
  self.validate_required(self.tenant_id, 'tenant_id')
6884
6887
  self.validate_required(self.tx_time, 'tx_time')
6885
6888
  self.validate_required(self.business_id, 'business_id')
6889
+ self.validate_required(self.antchain_id, 'antchain_id')
6886
6890
 
6887
6891
  def to_map(self):
6888
6892
  _map = super().to_map()
@@ -6904,6 +6908,8 @@ class ChainModelResult(TeaModel):
6904
6908
  result['tx_time'] = self.tx_time
6905
6909
  if self.business_id is not None:
6906
6910
  result['business_id'] = self.business_id
6911
+ if self.antchain_id is not None:
6912
+ result['antchain_id'] = self.antchain_id
6907
6913
  return result
6908
6914
 
6909
6915
  def from_map(self, m: dict = None):
@@ -6922,6 +6928,8 @@ class ChainModelResult(TeaModel):
6922
6928
  self.tx_time = m.get('tx_time')
6923
6929
  if m.get('business_id') is not None:
6924
6930
  self.business_id = m.get('business_id')
6931
+ if m.get('antchain_id') is not None:
6932
+ self.antchain_id = m.get('antchain_id')
6925
6933
  return self
6926
6934
 
6927
6935
 
@@ -16439,7 +16447,6 @@ class OperateIotbasicDevicecollectRequest(TeaModel):
16439
16447
  self.asset_data = asset_data
16440
16448
 
16441
16449
  def validate(self):
16442
- self.validate_required(self.tenant_id, 'tenant_id')
16443
16450
  self.validate_required(self.data_scene, 'data_scene')
16444
16451
  self.validate_required(self.biz_scene, 'biz_scene')
16445
16452
  self.validate_required(self.asset_data, 'asset_data')
@@ -17512,7 +17519,6 @@ class OperateIotbasicBatchcollectRequest(TeaModel):
17512
17519
 
17513
17520
  def validate(self):
17514
17521
  self.validate_required(self.biz_scene, 'biz_scene')
17515
- self.validate_required(self.tenant_id, 'tenant_id')
17516
17522
  self.validate_required(self.collect_info_list, 'collect_info_list')
17517
17523
  if self.collect_info_list:
17518
17524
  for k in self.collect_info_list:
@@ -18612,8 +18618,8 @@ class QueryIotbasicDevicecollectRequest(TeaModel):
18612
18618
  self.start_time = start_time
18613
18619
 
18614
18620
  def validate(self):
18621
+ self.validate_required(self.data_scene, 'data_scene')
18615
18622
  self.validate_required(self.biz_scene, 'biz_scene')
18616
- self.validate_required(self.tenant_id, 'tenant_id')
18617
18623
  self.validate_required(self.page_size, 'page_size')
18618
18624
  if self.page_size is not None:
18619
18625
  self.validate_maximum(self.page_size, 'page_size', 100)
@@ -21495,6 +21501,409 @@ class OperateDevicecorpDevicecontrolResponse(TeaModel):
21495
21501
  return self
21496
21502
 
21497
21503
 
21504
+ class CreateDevicecorpThingmodelRequest(TeaModel):
21505
+ def __init__(
21506
+ self,
21507
+ auth_token: str = None,
21508
+ product_instance_id: str = None,
21509
+ thing_model_json: str = None,
21510
+ category_code: str = None,
21511
+ ):
21512
+ # OAuth模式下的授权token
21513
+ self.auth_token = auth_token
21514
+ self.product_instance_id = product_instance_id
21515
+ # 新增的功能定义详情
21516
+ self.thing_model_json = thing_model_json
21517
+ # 品类code
21518
+ self.category_code = category_code
21519
+
21520
+ def validate(self):
21521
+ self.validate_required(self.thing_model_json, 'thing_model_json')
21522
+ self.validate_required(self.category_code, 'category_code')
21523
+
21524
+ def to_map(self):
21525
+ _map = super().to_map()
21526
+ if _map is not None:
21527
+ return _map
21528
+
21529
+ result = dict()
21530
+ if self.auth_token is not None:
21531
+ result['auth_token'] = self.auth_token
21532
+ if self.product_instance_id is not None:
21533
+ result['product_instance_id'] = self.product_instance_id
21534
+ if self.thing_model_json is not None:
21535
+ result['thing_model_json'] = self.thing_model_json
21536
+ if self.category_code is not None:
21537
+ result['category_code'] = self.category_code
21538
+ return result
21539
+
21540
+ def from_map(self, m: dict = None):
21541
+ m = m or dict()
21542
+ if m.get('auth_token') is not None:
21543
+ self.auth_token = m.get('auth_token')
21544
+ if m.get('product_instance_id') is not None:
21545
+ self.product_instance_id = m.get('product_instance_id')
21546
+ if m.get('thing_model_json') is not None:
21547
+ self.thing_model_json = m.get('thing_model_json')
21548
+ if m.get('category_code') is not None:
21549
+ self.category_code = m.get('category_code')
21550
+ return self
21551
+
21552
+
21553
+ class CreateDevicecorpThingmodelResponse(TeaModel):
21554
+ def __init__(
21555
+ self,
21556
+ req_msg_id: str = None,
21557
+ result_code: str = None,
21558
+ result_msg: str = None,
21559
+ success: bool = None,
21560
+ ):
21561
+ # 请求唯一ID,用于链路跟踪和问题排查
21562
+ self.req_msg_id = req_msg_id
21563
+ # 结果码,一般OK表示调用成功
21564
+ self.result_code = result_code
21565
+ # 异常信息的文本描述
21566
+ self.result_msg = result_msg
21567
+ # 操作结果
21568
+ self.success = success
21569
+
21570
+ def validate(self):
21571
+ pass
21572
+
21573
+ def to_map(self):
21574
+ _map = super().to_map()
21575
+ if _map is not None:
21576
+ return _map
21577
+
21578
+ result = dict()
21579
+ if self.req_msg_id is not None:
21580
+ result['req_msg_id'] = self.req_msg_id
21581
+ if self.result_code is not None:
21582
+ result['result_code'] = self.result_code
21583
+ if self.result_msg is not None:
21584
+ result['result_msg'] = self.result_msg
21585
+ if self.success is not None:
21586
+ result['success'] = self.success
21587
+ return result
21588
+
21589
+ def from_map(self, m: dict = None):
21590
+ m = m or dict()
21591
+ if m.get('req_msg_id') is not None:
21592
+ self.req_msg_id = m.get('req_msg_id')
21593
+ if m.get('result_code') is not None:
21594
+ self.result_code = m.get('result_code')
21595
+ if m.get('result_msg') is not None:
21596
+ self.result_msg = m.get('result_msg')
21597
+ if m.get('success') is not None:
21598
+ self.success = m.get('success')
21599
+ return self
21600
+
21601
+
21602
+ class UpdateDevicecorpThingmodelRequest(TeaModel):
21603
+ def __init__(
21604
+ self,
21605
+ auth_token: str = None,
21606
+ product_instance_id: str = None,
21607
+ identifier: str = None,
21608
+ thing_model_json: str = None,
21609
+ category_code: str = None,
21610
+ ):
21611
+ # OAuth模式下的授权token
21612
+ self.auth_token = auth_token
21613
+ self.product_instance_id = product_instance_id
21614
+ # 功能原有的标识符
21615
+ self.identifier = identifier
21616
+ # 新的功能定义详情
21617
+ self.thing_model_json = thing_model_json
21618
+ # 品类code
21619
+ self.category_code = category_code
21620
+
21621
+ def validate(self):
21622
+ self.validate_required(self.category_code, 'category_code')
21623
+
21624
+ def to_map(self):
21625
+ _map = super().to_map()
21626
+ if _map is not None:
21627
+ return _map
21628
+
21629
+ result = dict()
21630
+ if self.auth_token is not None:
21631
+ result['auth_token'] = self.auth_token
21632
+ if self.product_instance_id is not None:
21633
+ result['product_instance_id'] = self.product_instance_id
21634
+ if self.identifier is not None:
21635
+ result['identifier'] = self.identifier
21636
+ if self.thing_model_json is not None:
21637
+ result['thing_model_json'] = self.thing_model_json
21638
+ if self.category_code is not None:
21639
+ result['category_code'] = self.category_code
21640
+ return result
21641
+
21642
+ def from_map(self, m: dict = None):
21643
+ m = m or dict()
21644
+ if m.get('auth_token') is not None:
21645
+ self.auth_token = m.get('auth_token')
21646
+ if m.get('product_instance_id') is not None:
21647
+ self.product_instance_id = m.get('product_instance_id')
21648
+ if m.get('identifier') is not None:
21649
+ self.identifier = m.get('identifier')
21650
+ if m.get('thing_model_json') is not None:
21651
+ self.thing_model_json = m.get('thing_model_json')
21652
+ if m.get('category_code') is not None:
21653
+ self.category_code = m.get('category_code')
21654
+ return self
21655
+
21656
+
21657
+ class UpdateDevicecorpThingmodelResponse(TeaModel):
21658
+ def __init__(
21659
+ self,
21660
+ req_msg_id: str = None,
21661
+ result_code: str = None,
21662
+ result_msg: str = None,
21663
+ success: bool = None,
21664
+ ):
21665
+ # 请求唯一ID,用于链路跟踪和问题排查
21666
+ self.req_msg_id = req_msg_id
21667
+ # 结果码,一般OK表示调用成功
21668
+ self.result_code = result_code
21669
+ # 异常信息的文本描述
21670
+ self.result_msg = result_msg
21671
+ # 操作结果
21672
+ self.success = success
21673
+
21674
+ def validate(self):
21675
+ pass
21676
+
21677
+ def to_map(self):
21678
+ _map = super().to_map()
21679
+ if _map is not None:
21680
+ return _map
21681
+
21682
+ result = dict()
21683
+ if self.req_msg_id is not None:
21684
+ result['req_msg_id'] = self.req_msg_id
21685
+ if self.result_code is not None:
21686
+ result['result_code'] = self.result_code
21687
+ if self.result_msg is not None:
21688
+ result['result_msg'] = self.result_msg
21689
+ if self.success is not None:
21690
+ result['success'] = self.success
21691
+ return result
21692
+
21693
+ def from_map(self, m: dict = None):
21694
+ m = m or dict()
21695
+ if m.get('req_msg_id') is not None:
21696
+ self.req_msg_id = m.get('req_msg_id')
21697
+ if m.get('result_code') is not None:
21698
+ self.result_code = m.get('result_code')
21699
+ if m.get('result_msg') is not None:
21700
+ self.result_msg = m.get('result_msg')
21701
+ if m.get('success') is not None:
21702
+ self.success = m.get('success')
21703
+ return self
21704
+
21705
+
21706
+ class DeleteDevicecorpThingmodelRequest(TeaModel):
21707
+ def __init__(
21708
+ self,
21709
+ auth_token: str = None,
21710
+ product_instance_id: str = None,
21711
+ property_identifier: List[str] = None,
21712
+ service_identifier: List[str] = None,
21713
+ event_identifier: List[str] = None,
21714
+ category_code: str = None,
21715
+ ):
21716
+ # OAuth模式下的授权token
21717
+ self.auth_token = auth_token
21718
+ self.product_instance_id = product_instance_id
21719
+ # 需要删除的属性标识符列表
21720
+ self.property_identifier = property_identifier
21721
+ # 需要删除的服务标识符列表
21722
+ self.service_identifier = service_identifier
21723
+ # 需要删除的事件标识符列表
21724
+ self.event_identifier = event_identifier
21725
+ # 品类code
21726
+ self.category_code = category_code
21727
+
21728
+ def validate(self):
21729
+ self.validate_required(self.category_code, 'category_code')
21730
+
21731
+ def to_map(self):
21732
+ _map = super().to_map()
21733
+ if _map is not None:
21734
+ return _map
21735
+
21736
+ result = dict()
21737
+ if self.auth_token is not None:
21738
+ result['auth_token'] = self.auth_token
21739
+ if self.product_instance_id is not None:
21740
+ result['product_instance_id'] = self.product_instance_id
21741
+ if self.property_identifier is not None:
21742
+ result['property_identifier'] = self.property_identifier
21743
+ if self.service_identifier is not None:
21744
+ result['service_identifier'] = self.service_identifier
21745
+ if self.event_identifier is not None:
21746
+ result['event_identifier'] = self.event_identifier
21747
+ if self.category_code is not None:
21748
+ result['category_code'] = self.category_code
21749
+ return result
21750
+
21751
+ def from_map(self, m: dict = None):
21752
+ m = m or dict()
21753
+ if m.get('auth_token') is not None:
21754
+ self.auth_token = m.get('auth_token')
21755
+ if m.get('product_instance_id') is not None:
21756
+ self.product_instance_id = m.get('product_instance_id')
21757
+ if m.get('property_identifier') is not None:
21758
+ self.property_identifier = m.get('property_identifier')
21759
+ if m.get('service_identifier') is not None:
21760
+ self.service_identifier = m.get('service_identifier')
21761
+ if m.get('event_identifier') is not None:
21762
+ self.event_identifier = m.get('event_identifier')
21763
+ if m.get('category_code') is not None:
21764
+ self.category_code = m.get('category_code')
21765
+ return self
21766
+
21767
+
21768
+ class DeleteDevicecorpThingmodelResponse(TeaModel):
21769
+ def __init__(
21770
+ self,
21771
+ req_msg_id: str = None,
21772
+ result_code: str = None,
21773
+ result_msg: str = None,
21774
+ success: bool = None,
21775
+ ):
21776
+ # 请求唯一ID,用于链路跟踪和问题排查
21777
+ self.req_msg_id = req_msg_id
21778
+ # 结果码,一般OK表示调用成功
21779
+ self.result_code = result_code
21780
+ # 异常信息的文本描述
21781
+ self.result_msg = result_msg
21782
+ # 操作结果
21783
+ self.success = success
21784
+
21785
+ def validate(self):
21786
+ pass
21787
+
21788
+ def to_map(self):
21789
+ _map = super().to_map()
21790
+ if _map is not None:
21791
+ return _map
21792
+
21793
+ result = dict()
21794
+ if self.req_msg_id is not None:
21795
+ result['req_msg_id'] = self.req_msg_id
21796
+ if self.result_code is not None:
21797
+ result['result_code'] = self.result_code
21798
+ if self.result_msg is not None:
21799
+ result['result_msg'] = self.result_msg
21800
+ if self.success is not None:
21801
+ result['success'] = self.success
21802
+ return result
21803
+
21804
+ def from_map(self, m: dict = None):
21805
+ m = m or dict()
21806
+ if m.get('req_msg_id') is not None:
21807
+ self.req_msg_id = m.get('req_msg_id')
21808
+ if m.get('result_code') is not None:
21809
+ self.result_code = m.get('result_code')
21810
+ if m.get('result_msg') is not None:
21811
+ self.result_msg = m.get('result_msg')
21812
+ if m.get('success') is not None:
21813
+ self.success = m.get('success')
21814
+ return self
21815
+
21816
+
21817
+ class PublishDevicecorpThingmodelRequest(TeaModel):
21818
+ def __init__(
21819
+ self,
21820
+ auth_token: str = None,
21821
+ product_instance_id: str = None,
21822
+ category_code: str = None,
21823
+ ):
21824
+ # OAuth模式下的授权token
21825
+ self.auth_token = auth_token
21826
+ self.product_instance_id = product_instance_id
21827
+ # 品类code
21828
+ self.category_code = category_code
21829
+
21830
+ def validate(self):
21831
+ self.validate_required(self.category_code, 'category_code')
21832
+
21833
+ def to_map(self):
21834
+ _map = super().to_map()
21835
+ if _map is not None:
21836
+ return _map
21837
+
21838
+ result = dict()
21839
+ if self.auth_token is not None:
21840
+ result['auth_token'] = self.auth_token
21841
+ if self.product_instance_id is not None:
21842
+ result['product_instance_id'] = self.product_instance_id
21843
+ if self.category_code is not None:
21844
+ result['category_code'] = self.category_code
21845
+ return result
21846
+
21847
+ def from_map(self, m: dict = None):
21848
+ m = m or dict()
21849
+ if m.get('auth_token') is not None:
21850
+ self.auth_token = m.get('auth_token')
21851
+ if m.get('product_instance_id') is not None:
21852
+ self.product_instance_id = m.get('product_instance_id')
21853
+ if m.get('category_code') is not None:
21854
+ self.category_code = m.get('category_code')
21855
+ return self
21856
+
21857
+
21858
+ class PublishDevicecorpThingmodelResponse(TeaModel):
21859
+ def __init__(
21860
+ self,
21861
+ req_msg_id: str = None,
21862
+ result_code: str = None,
21863
+ result_msg: str = None,
21864
+ success: bool = None,
21865
+ ):
21866
+ # 请求唯一ID,用于链路跟踪和问题排查
21867
+ self.req_msg_id = req_msg_id
21868
+ # 结果码,一般OK表示调用成功
21869
+ self.result_code = result_code
21870
+ # 异常信息的文本描述
21871
+ self.result_msg = result_msg
21872
+ # 操作结果
21873
+ self.success = success
21874
+
21875
+ def validate(self):
21876
+ pass
21877
+
21878
+ def to_map(self):
21879
+ _map = super().to_map()
21880
+ if _map is not None:
21881
+ return _map
21882
+
21883
+ result = dict()
21884
+ if self.req_msg_id is not None:
21885
+ result['req_msg_id'] = self.req_msg_id
21886
+ if self.result_code is not None:
21887
+ result['result_code'] = self.result_code
21888
+ if self.result_msg is not None:
21889
+ result['result_msg'] = self.result_msg
21890
+ if self.success is not None:
21891
+ result['success'] = self.success
21892
+ return result
21893
+
21894
+ def from_map(self, m: dict = None):
21895
+ m = m or dict()
21896
+ if m.get('req_msg_id') is not None:
21897
+ self.req_msg_id = m.get('req_msg_id')
21898
+ if m.get('result_code') is not None:
21899
+ self.result_code = m.get('result_code')
21900
+ if m.get('result_msg') is not None:
21901
+ self.result_msg = m.get('result_msg')
21902
+ if m.get('success') is not None:
21903
+ self.success = m.get('success')
21904
+ return self
21905
+
21906
+
21498
21907
  class QueryIotplatformPurchaseorderRequest(TeaModel):
21499
21908
  def __init__(
21500
21909
  self,
@@ -1,8 +0,0 @@
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,,