antchain-bot 1.12.27__py3-none-any.whl → 1.12.28__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.12.27
3
+ Version: 1.12.28
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=KyELoh4SueQXBcCatszbXlUFi5Q6r4E7yRC4AkPvs7w,23
2
+ antchain_sdk_bot/client.py,sha256=IcSqtWYvTfM3NOxxz4_WoGUWtSKNFhQvz2jWbd7IcOs,637546
3
+ antchain_sdk_bot/models.py,sha256=A2MzZu_LdT9asJZi_eXyFUVZNDqbJjTLgz0zdR66DIA,1646425
4
+ antchain_bot-1.12.28.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ antchain_bot-1.12.28.dist-info/METADATA,sha256=kJTfLrLE0taib2b8U278x9qXUb6JcwvHDJVsDBR-N20,1989
6
+ antchain_bot-1.12.28.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
+ antchain_bot-1.12.28.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
+ antchain_bot-1.12.28.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = '1.12.27'
1
+ __version__ = '1.12.28'
@@ -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.12.27',
138
+ 'sdk_version': '1.12.28',
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.12.27',
242
+ 'sdk_version': '1.12.28',
243
243
  '_prod_code': 'BOT',
244
244
  '_prod_channel': 'undefined'
245
245
  }
@@ -1507,6 +1507,62 @@ class Client:
1507
1507
  await self.do_request_async('1.0', 'blockchain.bot.aiotnextbs.openapi.operate', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
1508
1508
  )
1509
1509
 
1510
+ def set_energyproject_lightmode(
1511
+ self,
1512
+ request: bot_models.SetEnergyprojectLightmodeRequest,
1513
+ ) -> bot_models.SetEnergyprojectLightmodeResponse:
1514
+ """
1515
+ Description: aiotnext-节能项目设置照明模式
1516
+ Summary: aiotnext-节能项目设置照明模式
1517
+ """
1518
+ runtime = util_models.RuntimeOptions()
1519
+ headers = {}
1520
+ return self.set_energyproject_lightmode_ex(request, headers, runtime)
1521
+
1522
+ async def set_energyproject_lightmode_async(
1523
+ self,
1524
+ request: bot_models.SetEnergyprojectLightmodeRequest,
1525
+ ) -> bot_models.SetEnergyprojectLightmodeResponse:
1526
+ """
1527
+ Description: aiotnext-节能项目设置照明模式
1528
+ Summary: aiotnext-节能项目设置照明模式
1529
+ """
1530
+ runtime = util_models.RuntimeOptions()
1531
+ headers = {}
1532
+ return await self.set_energyproject_lightmode_ex_async(request, headers, runtime)
1533
+
1534
+ def set_energyproject_lightmode_ex(
1535
+ self,
1536
+ request: bot_models.SetEnergyprojectLightmodeRequest,
1537
+ headers: Dict[str, str],
1538
+ runtime: util_models.RuntimeOptions,
1539
+ ) -> bot_models.SetEnergyprojectLightmodeResponse:
1540
+ """
1541
+ Description: aiotnext-节能项目设置照明模式
1542
+ Summary: aiotnext-节能项目设置照明模式
1543
+ """
1544
+ UtilClient.validate_model(request)
1545
+ return TeaCore.from_map(
1546
+ bot_models.SetEnergyprojectLightmodeResponse(),
1547
+ self.do_request('1.0', 'blockchain.bot.energyproject.lightmode.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
1548
+ )
1549
+
1550
+ async def set_energyproject_lightmode_ex_async(
1551
+ self,
1552
+ request: bot_models.SetEnergyprojectLightmodeRequest,
1553
+ headers: Dict[str, str],
1554
+ runtime: util_models.RuntimeOptions,
1555
+ ) -> bot_models.SetEnergyprojectLightmodeResponse:
1556
+ """
1557
+ Description: aiotnext-节能项目设置照明模式
1558
+ Summary: aiotnext-节能项目设置照明模式
1559
+ """
1560
+ UtilClient.validate_model(request)
1561
+ return TeaCore.from_map(
1562
+ bot_models.SetEnergyprojectLightmodeResponse(),
1563
+ await self.do_request_async('1.0', 'blockchain.bot.energyproject.lightmode.set', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
1564
+ )
1565
+
1510
1566
  def finish_trace_config(
1511
1567
  self,
1512
1568
  request: bot_models.FinishTraceConfigRequest,
@@ -13870,6 +13870,111 @@ class OperateAiotnextbsOpenapiResponse(TeaModel):
13870
13870
  return self
13871
13871
 
13872
13872
 
13873
+ class SetEnergyprojectLightmodeRequest(TeaModel):
13874
+ def __init__(
13875
+ self,
13876
+ auth_token: str = None,
13877
+ product_instance_id: str = None,
13878
+ energy_project_code: str = None,
13879
+ light_project_code: str = None,
13880
+ run_mode: str = None,
13881
+ ):
13882
+ # OAuth模式下的授权token
13883
+ self.auth_token = auth_token
13884
+ self.product_instance_id = product_instance_id
13885
+ # 节能项目编码
13886
+ self.energy_project_code = energy_project_code
13887
+ # 照明项目编码
13888
+ self.light_project_code = light_project_code
13889
+ # 运行模式。workday:工作日模式;holiday:节假日模式
13890
+ self.run_mode = run_mode
13891
+
13892
+ def validate(self):
13893
+ self.validate_required(self.energy_project_code, 'energy_project_code')
13894
+ self.validate_required(self.run_mode, 'run_mode')
13895
+
13896
+ def to_map(self):
13897
+ _map = super().to_map()
13898
+ if _map is not None:
13899
+ return _map
13900
+
13901
+ result = dict()
13902
+ if self.auth_token is not None:
13903
+ result['auth_token'] = self.auth_token
13904
+ if self.product_instance_id is not None:
13905
+ result['product_instance_id'] = self.product_instance_id
13906
+ if self.energy_project_code is not None:
13907
+ result['energy_project_code'] = self.energy_project_code
13908
+ if self.light_project_code is not None:
13909
+ result['light_project_code'] = self.light_project_code
13910
+ if self.run_mode is not None:
13911
+ result['run_mode'] = self.run_mode
13912
+ return result
13913
+
13914
+ def from_map(self, m: dict = None):
13915
+ m = m or dict()
13916
+ if m.get('auth_token') is not None:
13917
+ self.auth_token = m.get('auth_token')
13918
+ if m.get('product_instance_id') is not None:
13919
+ self.product_instance_id = m.get('product_instance_id')
13920
+ if m.get('energy_project_code') is not None:
13921
+ self.energy_project_code = m.get('energy_project_code')
13922
+ if m.get('light_project_code') is not None:
13923
+ self.light_project_code = m.get('light_project_code')
13924
+ if m.get('run_mode') is not None:
13925
+ self.run_mode = m.get('run_mode')
13926
+ return self
13927
+
13928
+
13929
+ class SetEnergyprojectLightmodeResponse(TeaModel):
13930
+ def __init__(
13931
+ self,
13932
+ req_msg_id: str = None,
13933
+ result_code: str = None,
13934
+ result_msg: str = None,
13935
+ success: bool = None,
13936
+ ):
13937
+ # 请求唯一ID,用于链路跟踪和问题排查
13938
+ self.req_msg_id = req_msg_id
13939
+ # 结果码,一般OK表示调用成功
13940
+ self.result_code = result_code
13941
+ # 异常信息的文本描述
13942
+ self.result_msg = result_msg
13943
+ # 操作是否成功
13944
+ self.success = success
13945
+
13946
+ def validate(self):
13947
+ pass
13948
+
13949
+ def to_map(self):
13950
+ _map = super().to_map()
13951
+ if _map is not None:
13952
+ return _map
13953
+
13954
+ result = dict()
13955
+ if self.req_msg_id is not None:
13956
+ result['req_msg_id'] = self.req_msg_id
13957
+ if self.result_code is not None:
13958
+ result['result_code'] = self.result_code
13959
+ if self.result_msg is not None:
13960
+ result['result_msg'] = self.result_msg
13961
+ if self.success is not None:
13962
+ result['success'] = self.success
13963
+ return result
13964
+
13965
+ def from_map(self, m: dict = None):
13966
+ m = m or dict()
13967
+ if m.get('req_msg_id') is not None:
13968
+ self.req_msg_id = m.get('req_msg_id')
13969
+ if m.get('result_code') is not None:
13970
+ self.result_code = m.get('result_code')
13971
+ if m.get('result_msg') is not None:
13972
+ self.result_msg = m.get('result_msg')
13973
+ if m.get('success') is not None:
13974
+ self.success = m.get('success')
13975
+ return self
13976
+
13977
+
13873
13978
  class FinishTraceConfigRequest(TeaModel):
13874
13979
  def __init__(
13875
13980
  self,
@@ -1,8 +0,0 @@
1
- antchain_sdk_bot/__init__.py,sha256=TE0cZ0YffcEk9XmGUHt6p6NpNsbhrDoqOFEhmEd6gqw,23
2
- antchain_sdk_bot/client.py,sha256=OwhjBAqAhqmddQxl9-ZJ2OsoLQCZmFgxHGWeQRoqOXI,635194
3
- antchain_sdk_bot/models.py,sha256=2kiavQT4sbGRWtCRRg1sVNqZtpnNbbzGn5pXFETqB3g,1642723
4
- antchain_bot-1.12.27.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- antchain_bot-1.12.27.dist-info/METADATA,sha256=r4vgD-65HvlgqRqE5YNdDRvQh8NioSmXGynqMPFSvIw,1989
6
- antchain_bot-1.12.27.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
- antchain_bot-1.12.27.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
8
- antchain_bot-1.12.27.dist-info/RECORD,,