antchain-bot 1.10.31__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.31
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.31'
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.31',
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.31',
242
+ 'sdk_version': '1.10.34',
243
243
  '_prod_code': 'BOT',
244
244
  '_prod_channel': 'undefined'
245
245
  }
@@ -5685,6 +5685,62 @@ class Client:
5685
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
5686
  )
5687
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
+
5688
5744
  def query_iotplatform_purchaseorder(
5689
5745
  self,
5690
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)
@@ -21501,15 +21507,19 @@ class CreateDevicecorpThingmodelRequest(TeaModel):
21501
21507
  auth_token: str = None,
21502
21508
  product_instance_id: str = None,
21503
21509
  thing_model_json: str = None,
21510
+ category_code: str = None,
21504
21511
  ):
21505
21512
  # OAuth模式下的授权token
21506
21513
  self.auth_token = auth_token
21507
21514
  self.product_instance_id = product_instance_id
21508
21515
  # 新增的功能定义详情
21509
21516
  self.thing_model_json = thing_model_json
21517
+ # 品类code
21518
+ self.category_code = category_code
21510
21519
 
21511
21520
  def validate(self):
21512
21521
  self.validate_required(self.thing_model_json, 'thing_model_json')
21522
+ self.validate_required(self.category_code, 'category_code')
21513
21523
 
21514
21524
  def to_map(self):
21515
21525
  _map = super().to_map()
@@ -21523,6 +21533,8 @@ class CreateDevicecorpThingmodelRequest(TeaModel):
21523
21533
  result['product_instance_id'] = self.product_instance_id
21524
21534
  if self.thing_model_json is not None:
21525
21535
  result['thing_model_json'] = self.thing_model_json
21536
+ if self.category_code is not None:
21537
+ result['category_code'] = self.category_code
21526
21538
  return result
21527
21539
 
21528
21540
  def from_map(self, m: dict = None):
@@ -21533,6 +21545,8 @@ class CreateDevicecorpThingmodelRequest(TeaModel):
21533
21545
  self.product_instance_id = m.get('product_instance_id')
21534
21546
  if m.get('thing_model_json') is not None:
21535
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')
21536
21550
  return self
21537
21551
 
21538
21552
 
@@ -21592,6 +21606,7 @@ class UpdateDevicecorpThingmodelRequest(TeaModel):
21592
21606
  product_instance_id: str = None,
21593
21607
  identifier: str = None,
21594
21608
  thing_model_json: str = None,
21609
+ category_code: str = None,
21595
21610
  ):
21596
21611
  # OAuth模式下的授权token
21597
21612
  self.auth_token = auth_token
@@ -21600,9 +21615,11 @@ class UpdateDevicecorpThingmodelRequest(TeaModel):
21600
21615
  self.identifier = identifier
21601
21616
  # 新的功能定义详情
21602
21617
  self.thing_model_json = thing_model_json
21618
+ # 品类code
21619
+ self.category_code = category_code
21603
21620
 
21604
21621
  def validate(self):
21605
- pass
21622
+ self.validate_required(self.category_code, 'category_code')
21606
21623
 
21607
21624
  def to_map(self):
21608
21625
  _map = super().to_map()
@@ -21618,6 +21635,8 @@ class UpdateDevicecorpThingmodelRequest(TeaModel):
21618
21635
  result['identifier'] = self.identifier
21619
21636
  if self.thing_model_json is not None:
21620
21637
  result['thing_model_json'] = self.thing_model_json
21638
+ if self.category_code is not None:
21639
+ result['category_code'] = self.category_code
21621
21640
  return result
21622
21641
 
21623
21642
  def from_map(self, m: dict = None):
@@ -21630,6 +21649,8 @@ class UpdateDevicecorpThingmodelRequest(TeaModel):
21630
21649
  self.identifier = m.get('identifier')
21631
21650
  if m.get('thing_model_json') is not None:
21632
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')
21633
21654
  return self
21634
21655
 
21635
21656
 
@@ -21690,6 +21711,7 @@ class DeleteDevicecorpThingmodelRequest(TeaModel):
21690
21711
  property_identifier: List[str] = None,
21691
21712
  service_identifier: List[str] = None,
21692
21713
  event_identifier: List[str] = None,
21714
+ category_code: str = None,
21693
21715
  ):
21694
21716
  # OAuth模式下的授权token
21695
21717
  self.auth_token = auth_token
@@ -21700,9 +21722,11 @@ class DeleteDevicecorpThingmodelRequest(TeaModel):
21700
21722
  self.service_identifier = service_identifier
21701
21723
  # 需要删除的事件标识符列表
21702
21724
  self.event_identifier = event_identifier
21725
+ # 品类code
21726
+ self.category_code = category_code
21703
21727
 
21704
21728
  def validate(self):
21705
- pass
21729
+ self.validate_required(self.category_code, 'category_code')
21706
21730
 
21707
21731
  def to_map(self):
21708
21732
  _map = super().to_map()
@@ -21720,6 +21744,8 @@ class DeleteDevicecorpThingmodelRequest(TeaModel):
21720
21744
  result['service_identifier'] = self.service_identifier
21721
21745
  if self.event_identifier is not None:
21722
21746
  result['event_identifier'] = self.event_identifier
21747
+ if self.category_code is not None:
21748
+ result['category_code'] = self.category_code
21723
21749
  return result
21724
21750
 
21725
21751
  def from_map(self, m: dict = None):
@@ -21734,6 +21760,8 @@ class DeleteDevicecorpThingmodelRequest(TeaModel):
21734
21760
  self.service_identifier = m.get('service_identifier')
21735
21761
  if m.get('event_identifier') is not None:
21736
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')
21737
21765
  return self
21738
21766
 
21739
21767
 
@@ -21786,6 +21814,96 @@ class DeleteDevicecorpThingmodelResponse(TeaModel):
21786
21814
  return self
21787
21815
 
21788
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
+
21789
21907
  class QueryIotplatformPurchaseorderRequest(TeaModel):
21790
21908
  def __init__(
21791
21909
  self,
@@ -1,8 +0,0 @@
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,,