antchain-bot 1.10.30__py3-none-any.whl → 1.10.31__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.31
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
@@ -0,0 +1,8 @@
1
+ antchain_sdk_bot/__init__.py,sha256=BpfN0aMNfa2Z_Uh00zmLq9nsIlqgKdBZOZALuh3FEfo,23
2
+ antchain_sdk_bot/client.py,sha256=MrWB2OBuqP7QnxduPNxwm-rr62-cfdTORis-9N2_uUQ,518748
3
+ antchain_sdk_bot/models.py,sha256=fDczvwRcg4KCPrVHU8aXNS5wI1asac4blIzH7rqLOXs,1336758
4
+ antchain_bot-1.10.31.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ antchain_bot-1.10.31.dist-info/METADATA,sha256=LzlAptHZOnjHZ3foRju3isGe9YXox4ogqav9U9h1SMQ,1989
6
+ antchain_bot-1.10.31.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
+ antchain_bot-1.10.31.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
+ antchain_bot-1.10.31.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = '1.10.30'
1
+ __version__ = '1.10.31'
@@ -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.31',
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.31',
243
243
  '_prod_code': 'BOT',
244
244
  '_prod_channel': 'undefined'
245
245
  }
@@ -5517,6 +5517,174 @@ 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
+
5520
5688
  def query_iotplatform_purchaseorder(
5521
5689
  self,
5522
5690
  request: bot_models.QueryIotplatformPurchaseorderRequest,
@@ -21495,6 +21495,297 @@ class OperateDevicecorpDevicecontrolResponse(TeaModel):
21495
21495
  return self
21496
21496
 
21497
21497
 
21498
+ class CreateDevicecorpThingmodelRequest(TeaModel):
21499
+ def __init__(
21500
+ self,
21501
+ auth_token: str = None,
21502
+ product_instance_id: str = None,
21503
+ thing_model_json: str = None,
21504
+ ):
21505
+ # OAuth模式下的授权token
21506
+ self.auth_token = auth_token
21507
+ self.product_instance_id = product_instance_id
21508
+ # 新增的功能定义详情
21509
+ self.thing_model_json = thing_model_json
21510
+
21511
+ def validate(self):
21512
+ self.validate_required(self.thing_model_json, 'thing_model_json')
21513
+
21514
+ def to_map(self):
21515
+ _map = super().to_map()
21516
+ if _map is not None:
21517
+ return _map
21518
+
21519
+ result = dict()
21520
+ if self.auth_token is not None:
21521
+ result['auth_token'] = self.auth_token
21522
+ if self.product_instance_id is not None:
21523
+ result['product_instance_id'] = self.product_instance_id
21524
+ if self.thing_model_json is not None:
21525
+ result['thing_model_json'] = self.thing_model_json
21526
+ return result
21527
+
21528
+ def from_map(self, m: dict = None):
21529
+ m = m or dict()
21530
+ if m.get('auth_token') is not None:
21531
+ self.auth_token = m.get('auth_token')
21532
+ if m.get('product_instance_id') is not None:
21533
+ self.product_instance_id = m.get('product_instance_id')
21534
+ if m.get('thing_model_json') is not None:
21535
+ self.thing_model_json = m.get('thing_model_json')
21536
+ return self
21537
+
21538
+
21539
+ class CreateDevicecorpThingmodelResponse(TeaModel):
21540
+ def __init__(
21541
+ self,
21542
+ req_msg_id: str = None,
21543
+ result_code: str = None,
21544
+ result_msg: str = None,
21545
+ success: bool = None,
21546
+ ):
21547
+ # 请求唯一ID,用于链路跟踪和问题排查
21548
+ self.req_msg_id = req_msg_id
21549
+ # 结果码,一般OK表示调用成功
21550
+ self.result_code = result_code
21551
+ # 异常信息的文本描述
21552
+ self.result_msg = result_msg
21553
+ # 操作结果
21554
+ self.success = success
21555
+
21556
+ def validate(self):
21557
+ pass
21558
+
21559
+ def to_map(self):
21560
+ _map = super().to_map()
21561
+ if _map is not None:
21562
+ return _map
21563
+
21564
+ result = dict()
21565
+ if self.req_msg_id is not None:
21566
+ result['req_msg_id'] = self.req_msg_id
21567
+ if self.result_code is not None:
21568
+ result['result_code'] = self.result_code
21569
+ if self.result_msg is not None:
21570
+ result['result_msg'] = self.result_msg
21571
+ if self.success is not None:
21572
+ result['success'] = self.success
21573
+ return result
21574
+
21575
+ def from_map(self, m: dict = None):
21576
+ m = m or dict()
21577
+ if m.get('req_msg_id') is not None:
21578
+ self.req_msg_id = m.get('req_msg_id')
21579
+ if m.get('result_code') is not None:
21580
+ self.result_code = m.get('result_code')
21581
+ if m.get('result_msg') is not None:
21582
+ self.result_msg = m.get('result_msg')
21583
+ if m.get('success') is not None:
21584
+ self.success = m.get('success')
21585
+ return self
21586
+
21587
+
21588
+ class UpdateDevicecorpThingmodelRequest(TeaModel):
21589
+ def __init__(
21590
+ self,
21591
+ auth_token: str = None,
21592
+ product_instance_id: str = None,
21593
+ identifier: str = None,
21594
+ thing_model_json: str = None,
21595
+ ):
21596
+ # OAuth模式下的授权token
21597
+ self.auth_token = auth_token
21598
+ self.product_instance_id = product_instance_id
21599
+ # 功能原有的标识符
21600
+ self.identifier = identifier
21601
+ # 新的功能定义详情
21602
+ self.thing_model_json = thing_model_json
21603
+
21604
+ def validate(self):
21605
+ pass
21606
+
21607
+ def to_map(self):
21608
+ _map = super().to_map()
21609
+ if _map is not None:
21610
+ return _map
21611
+
21612
+ result = dict()
21613
+ if self.auth_token is not None:
21614
+ result['auth_token'] = self.auth_token
21615
+ if self.product_instance_id is not None:
21616
+ result['product_instance_id'] = self.product_instance_id
21617
+ if self.identifier is not None:
21618
+ result['identifier'] = self.identifier
21619
+ if self.thing_model_json is not None:
21620
+ result['thing_model_json'] = self.thing_model_json
21621
+ return result
21622
+
21623
+ def from_map(self, m: dict = None):
21624
+ m = m or dict()
21625
+ if m.get('auth_token') is not None:
21626
+ self.auth_token = m.get('auth_token')
21627
+ if m.get('product_instance_id') is not None:
21628
+ self.product_instance_id = m.get('product_instance_id')
21629
+ if m.get('identifier') is not None:
21630
+ self.identifier = m.get('identifier')
21631
+ if m.get('thing_model_json') is not None:
21632
+ self.thing_model_json = m.get('thing_model_json')
21633
+ return self
21634
+
21635
+
21636
+ class UpdateDevicecorpThingmodelResponse(TeaModel):
21637
+ def __init__(
21638
+ self,
21639
+ req_msg_id: str = None,
21640
+ result_code: str = None,
21641
+ result_msg: str = None,
21642
+ success: bool = None,
21643
+ ):
21644
+ # 请求唯一ID,用于链路跟踪和问题排查
21645
+ self.req_msg_id = req_msg_id
21646
+ # 结果码,一般OK表示调用成功
21647
+ self.result_code = result_code
21648
+ # 异常信息的文本描述
21649
+ self.result_msg = result_msg
21650
+ # 操作结果
21651
+ self.success = success
21652
+
21653
+ def validate(self):
21654
+ pass
21655
+
21656
+ def to_map(self):
21657
+ _map = super().to_map()
21658
+ if _map is not None:
21659
+ return _map
21660
+
21661
+ result = dict()
21662
+ if self.req_msg_id is not None:
21663
+ result['req_msg_id'] = self.req_msg_id
21664
+ if self.result_code is not None:
21665
+ result['result_code'] = self.result_code
21666
+ if self.result_msg is not None:
21667
+ result['result_msg'] = self.result_msg
21668
+ if self.success is not None:
21669
+ result['success'] = self.success
21670
+ return result
21671
+
21672
+ def from_map(self, m: dict = None):
21673
+ m = m or dict()
21674
+ if m.get('req_msg_id') is not None:
21675
+ self.req_msg_id = m.get('req_msg_id')
21676
+ if m.get('result_code') is not None:
21677
+ self.result_code = m.get('result_code')
21678
+ if m.get('result_msg') is not None:
21679
+ self.result_msg = m.get('result_msg')
21680
+ if m.get('success') is not None:
21681
+ self.success = m.get('success')
21682
+ return self
21683
+
21684
+
21685
+ class DeleteDevicecorpThingmodelRequest(TeaModel):
21686
+ def __init__(
21687
+ self,
21688
+ auth_token: str = None,
21689
+ product_instance_id: str = None,
21690
+ property_identifier: List[str] = None,
21691
+ service_identifier: List[str] = None,
21692
+ event_identifier: List[str] = None,
21693
+ ):
21694
+ # OAuth模式下的授权token
21695
+ self.auth_token = auth_token
21696
+ self.product_instance_id = product_instance_id
21697
+ # 需要删除的属性标识符列表
21698
+ self.property_identifier = property_identifier
21699
+ # 需要删除的服务标识符列表
21700
+ self.service_identifier = service_identifier
21701
+ # 需要删除的事件标识符列表
21702
+ self.event_identifier = event_identifier
21703
+
21704
+ def validate(self):
21705
+ pass
21706
+
21707
+ def to_map(self):
21708
+ _map = super().to_map()
21709
+ if _map is not None:
21710
+ return _map
21711
+
21712
+ result = dict()
21713
+ if self.auth_token is not None:
21714
+ result['auth_token'] = self.auth_token
21715
+ if self.product_instance_id is not None:
21716
+ result['product_instance_id'] = self.product_instance_id
21717
+ if self.property_identifier is not None:
21718
+ result['property_identifier'] = self.property_identifier
21719
+ if self.service_identifier is not None:
21720
+ result['service_identifier'] = self.service_identifier
21721
+ if self.event_identifier is not None:
21722
+ result['event_identifier'] = self.event_identifier
21723
+ return result
21724
+
21725
+ def from_map(self, m: dict = None):
21726
+ m = m or dict()
21727
+ if m.get('auth_token') is not None:
21728
+ self.auth_token = m.get('auth_token')
21729
+ if m.get('product_instance_id') is not None:
21730
+ self.product_instance_id = m.get('product_instance_id')
21731
+ if m.get('property_identifier') is not None:
21732
+ self.property_identifier = m.get('property_identifier')
21733
+ if m.get('service_identifier') is not None:
21734
+ self.service_identifier = m.get('service_identifier')
21735
+ if m.get('event_identifier') is not None:
21736
+ self.event_identifier = m.get('event_identifier')
21737
+ return self
21738
+
21739
+
21740
+ class DeleteDevicecorpThingmodelResponse(TeaModel):
21741
+ def __init__(
21742
+ self,
21743
+ req_msg_id: str = None,
21744
+ result_code: str = None,
21745
+ result_msg: str = None,
21746
+ success: bool = None,
21747
+ ):
21748
+ # 请求唯一ID,用于链路跟踪和问题排查
21749
+ self.req_msg_id = req_msg_id
21750
+ # 结果码,一般OK表示调用成功
21751
+ self.result_code = result_code
21752
+ # 异常信息的文本描述
21753
+ self.result_msg = result_msg
21754
+ # 操作结果
21755
+ self.success = success
21756
+
21757
+ def validate(self):
21758
+ pass
21759
+
21760
+ def to_map(self):
21761
+ _map = super().to_map()
21762
+ if _map is not None:
21763
+ return _map
21764
+
21765
+ result = dict()
21766
+ if self.req_msg_id is not None:
21767
+ result['req_msg_id'] = self.req_msg_id
21768
+ if self.result_code is not None:
21769
+ result['result_code'] = self.result_code
21770
+ if self.result_msg is not None:
21771
+ result['result_msg'] = self.result_msg
21772
+ if self.success is not None:
21773
+ result['success'] = self.success
21774
+ return result
21775
+
21776
+ def from_map(self, m: dict = None):
21777
+ m = m or dict()
21778
+ if m.get('req_msg_id') is not None:
21779
+ self.req_msg_id = m.get('req_msg_id')
21780
+ if m.get('result_code') is not None:
21781
+ self.result_code = m.get('result_code')
21782
+ if m.get('result_msg') is not None:
21783
+ self.result_msg = m.get('result_msg')
21784
+ if m.get('success') is not None:
21785
+ self.success = m.get('success')
21786
+ return self
21787
+
21788
+
21498
21789
  class QueryIotplatformPurchaseorderRequest(TeaModel):
21499
21790
  def __init__(
21500
21791
  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,,