antchain-bot 1.12.8__py3-none-any.whl → 1.12.15__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.12.8.dist-info → antchain_bot-1.12.15.dist-info}/METADATA +1 -1
- antchain_bot-1.12.15.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +114 -2
- antchain_sdk_bot/models.py +536 -0
- antchain_bot-1.12.8.dist-info/RECORD +0 -8
- {antchain_bot-1.12.8.dist-info → antchain_bot-1.12.15.dist-info}/LICENSE +0 -0
- {antchain_bot-1.12.8.dist-info → antchain_bot-1.12.15.dist-info}/WHEEL +0 -0
- {antchain_bot-1.12.8.dist-info → antchain_bot-1.12.15.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=H3gFVNqTOQTkpzC800VxkTNUSEVBgbHtNTyupZGO274,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=sRwy6PMVEVPOGgSVDYQl5jpavjHS8lZVddYES7OC7EY,628398
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=xbF8dEUbLNjZd7LMduFIC_IThALuKt4mZimvGNAlxw4,1621589
|
|
4
|
+
antchain_bot-1.12.15.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.12.15.dist-info/METADATA,sha256=AJgpMZcyJnP_HC2hMNql6KXL8e0ZfW92YdMt15aGRmo,1989
|
|
6
|
+
antchain_bot-1.12.15.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.12.15.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.12.15.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.12.
|
|
1
|
+
__version__ = '1.12.15'
|
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.12.
|
|
138
|
+
'sdk_version': '1.12.15',
|
|
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.
|
|
242
|
+
'sdk_version': '1.12.15',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -7851,6 +7851,118 @@ class Client:
|
|
|
7851
7851
|
await self.do_request_async('1.0', 'blockchain.bot.fourwheeler.carevent.sync', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7852
7852
|
)
|
|
7853
7853
|
|
|
7854
|
+
def query_electrocar_realtimedata(
|
|
7855
|
+
self,
|
|
7856
|
+
request: bot_models.QueryElectrocarRealtimedataRequest,
|
|
7857
|
+
) -> bot_models.QueryElectrocarRealtimedataResponse:
|
|
7858
|
+
"""
|
|
7859
|
+
Description: 通过指定字段查询车辆最新的信息
|
|
7860
|
+
Summary: 二轮车车辆状态实时查询
|
|
7861
|
+
"""
|
|
7862
|
+
runtime = util_models.RuntimeOptions()
|
|
7863
|
+
headers = {}
|
|
7864
|
+
return self.query_electrocar_realtimedata_ex(request, headers, runtime)
|
|
7865
|
+
|
|
7866
|
+
async def query_electrocar_realtimedata_async(
|
|
7867
|
+
self,
|
|
7868
|
+
request: bot_models.QueryElectrocarRealtimedataRequest,
|
|
7869
|
+
) -> bot_models.QueryElectrocarRealtimedataResponse:
|
|
7870
|
+
"""
|
|
7871
|
+
Description: 通过指定字段查询车辆最新的信息
|
|
7872
|
+
Summary: 二轮车车辆状态实时查询
|
|
7873
|
+
"""
|
|
7874
|
+
runtime = util_models.RuntimeOptions()
|
|
7875
|
+
headers = {}
|
|
7876
|
+
return await self.query_electrocar_realtimedata_ex_async(request, headers, runtime)
|
|
7877
|
+
|
|
7878
|
+
def query_electrocar_realtimedata_ex(
|
|
7879
|
+
self,
|
|
7880
|
+
request: bot_models.QueryElectrocarRealtimedataRequest,
|
|
7881
|
+
headers: Dict[str, str],
|
|
7882
|
+
runtime: util_models.RuntimeOptions,
|
|
7883
|
+
) -> bot_models.QueryElectrocarRealtimedataResponse:
|
|
7884
|
+
"""
|
|
7885
|
+
Description: 通过指定字段查询车辆最新的信息
|
|
7886
|
+
Summary: 二轮车车辆状态实时查询
|
|
7887
|
+
"""
|
|
7888
|
+
UtilClient.validate_model(request)
|
|
7889
|
+
return TeaCore.from_map(
|
|
7890
|
+
bot_models.QueryElectrocarRealtimedataResponse(),
|
|
7891
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.realtimedata.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7892
|
+
)
|
|
7893
|
+
|
|
7894
|
+
async def query_electrocar_realtimedata_ex_async(
|
|
7895
|
+
self,
|
|
7896
|
+
request: bot_models.QueryElectrocarRealtimedataRequest,
|
|
7897
|
+
headers: Dict[str, str],
|
|
7898
|
+
runtime: util_models.RuntimeOptions,
|
|
7899
|
+
) -> bot_models.QueryElectrocarRealtimedataResponse:
|
|
7900
|
+
"""
|
|
7901
|
+
Description: 通过指定字段查询车辆最新的信息
|
|
7902
|
+
Summary: 二轮车车辆状态实时查询
|
|
7903
|
+
"""
|
|
7904
|
+
UtilClient.validate_model(request)
|
|
7905
|
+
return TeaCore.from_map(
|
|
7906
|
+
bot_models.QueryElectrocarRealtimedataResponse(),
|
|
7907
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.realtimedata.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7908
|
+
)
|
|
7909
|
+
|
|
7910
|
+
def query_electrocar_travel(
|
|
7911
|
+
self,
|
|
7912
|
+
request: bot_models.QueryElectrocarTravelRequest,
|
|
7913
|
+
) -> bot_models.QueryElectrocarTravelResponse:
|
|
7914
|
+
"""
|
|
7915
|
+
Description: 查询一段时间范围的所有行程记录及明细
|
|
7916
|
+
Summary: 二轮车行程记录查询
|
|
7917
|
+
"""
|
|
7918
|
+
runtime = util_models.RuntimeOptions()
|
|
7919
|
+
headers = {}
|
|
7920
|
+
return self.query_electrocar_travel_ex(request, headers, runtime)
|
|
7921
|
+
|
|
7922
|
+
async def query_electrocar_travel_async(
|
|
7923
|
+
self,
|
|
7924
|
+
request: bot_models.QueryElectrocarTravelRequest,
|
|
7925
|
+
) -> bot_models.QueryElectrocarTravelResponse:
|
|
7926
|
+
"""
|
|
7927
|
+
Description: 查询一段时间范围的所有行程记录及明细
|
|
7928
|
+
Summary: 二轮车行程记录查询
|
|
7929
|
+
"""
|
|
7930
|
+
runtime = util_models.RuntimeOptions()
|
|
7931
|
+
headers = {}
|
|
7932
|
+
return await self.query_electrocar_travel_ex_async(request, headers, runtime)
|
|
7933
|
+
|
|
7934
|
+
def query_electrocar_travel_ex(
|
|
7935
|
+
self,
|
|
7936
|
+
request: bot_models.QueryElectrocarTravelRequest,
|
|
7937
|
+
headers: Dict[str, str],
|
|
7938
|
+
runtime: util_models.RuntimeOptions,
|
|
7939
|
+
) -> bot_models.QueryElectrocarTravelResponse:
|
|
7940
|
+
"""
|
|
7941
|
+
Description: 查询一段时间范围的所有行程记录及明细
|
|
7942
|
+
Summary: 二轮车行程记录查询
|
|
7943
|
+
"""
|
|
7944
|
+
UtilClient.validate_model(request)
|
|
7945
|
+
return TeaCore.from_map(
|
|
7946
|
+
bot_models.QueryElectrocarTravelResponse(),
|
|
7947
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.travel.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7948
|
+
)
|
|
7949
|
+
|
|
7950
|
+
async def query_electrocar_travel_ex_async(
|
|
7951
|
+
self,
|
|
7952
|
+
request: bot_models.QueryElectrocarTravelRequest,
|
|
7953
|
+
headers: Dict[str, str],
|
|
7954
|
+
runtime: util_models.RuntimeOptions,
|
|
7955
|
+
) -> bot_models.QueryElectrocarTravelResponse:
|
|
7956
|
+
"""
|
|
7957
|
+
Description: 查询一段时间范围的所有行程记录及明细
|
|
7958
|
+
Summary: 二轮车行程记录查询
|
|
7959
|
+
"""
|
|
7960
|
+
UtilClient.validate_model(request)
|
|
7961
|
+
return TeaCore.from_map(
|
|
7962
|
+
bot_models.QueryElectrocarTravelResponse(),
|
|
7963
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.travel.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
7964
|
+
)
|
|
7965
|
+
|
|
7854
7966
|
def query_iotplatform_purchaseorder(
|
|
7855
7967
|
self,
|
|
7856
7968
|
request: bot_models.QueryIotplatformPurchaseorderRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -5792,6 +5792,60 @@ class JtMedia(TeaModel):
|
|
|
5792
5792
|
return self
|
|
5793
5793
|
|
|
5794
5794
|
|
|
5795
|
+
class TripStatistics(TeaModel):
|
|
5796
|
+
def __init__(
|
|
5797
|
+
self,
|
|
5798
|
+
trip_day: str = None,
|
|
5799
|
+
total_distance: int = None,
|
|
5800
|
+
total_duration: int = None,
|
|
5801
|
+
trip_count: int = None,
|
|
5802
|
+
):
|
|
5803
|
+
# 行驶天数
|
|
5804
|
+
self.trip_day = trip_day
|
|
5805
|
+
# 总里程
|
|
5806
|
+
self.total_distance = total_distance
|
|
5807
|
+
# 总用时
|
|
5808
|
+
self.total_duration = total_duration
|
|
5809
|
+
# 行驶次数
|
|
5810
|
+
self.trip_count = trip_count
|
|
5811
|
+
|
|
5812
|
+
def validate(self):
|
|
5813
|
+
self.validate_required(self.trip_day, 'trip_day')
|
|
5814
|
+
if self.trip_day is not None:
|
|
5815
|
+
self.validate_pattern(self.trip_day, 'trip_day', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
5816
|
+
self.validate_required(self.total_distance, 'total_distance')
|
|
5817
|
+
self.validate_required(self.total_duration, 'total_duration')
|
|
5818
|
+
self.validate_required(self.trip_count, 'trip_count')
|
|
5819
|
+
|
|
5820
|
+
def to_map(self):
|
|
5821
|
+
_map = super().to_map()
|
|
5822
|
+
if _map is not None:
|
|
5823
|
+
return _map
|
|
5824
|
+
|
|
5825
|
+
result = dict()
|
|
5826
|
+
if self.trip_day is not None:
|
|
5827
|
+
result['trip_day'] = self.trip_day
|
|
5828
|
+
if self.total_distance is not None:
|
|
5829
|
+
result['total_distance'] = self.total_distance
|
|
5830
|
+
if self.total_duration is not None:
|
|
5831
|
+
result['total_duration'] = self.total_duration
|
|
5832
|
+
if self.trip_count is not None:
|
|
5833
|
+
result['trip_count'] = self.trip_count
|
|
5834
|
+
return result
|
|
5835
|
+
|
|
5836
|
+
def from_map(self, m: dict = None):
|
|
5837
|
+
m = m or dict()
|
|
5838
|
+
if m.get('trip_day') is not None:
|
|
5839
|
+
self.trip_day = m.get('trip_day')
|
|
5840
|
+
if m.get('total_distance') is not None:
|
|
5841
|
+
self.total_distance = m.get('total_distance')
|
|
5842
|
+
if m.get('total_duration') is not None:
|
|
5843
|
+
self.total_duration = m.get('total_duration')
|
|
5844
|
+
if m.get('trip_count') is not None:
|
|
5845
|
+
self.trip_count = m.get('trip_count')
|
|
5846
|
+
return self
|
|
5847
|
+
|
|
5848
|
+
|
|
5795
5849
|
class BaiGoodsPointCheckRespData(TeaModel):
|
|
5796
5850
|
def __init__(
|
|
5797
5851
|
self,
|
|
@@ -5827,6 +5881,7 @@ class EventSpecs(TeaModel):
|
|
|
5827
5881
|
return_hash: bool = None,
|
|
5828
5882
|
biz_type: str = None,
|
|
5829
5883
|
submit_date: str = None,
|
|
5884
|
+
is_repaired: bool = None,
|
|
5830
5885
|
):
|
|
5831
5886
|
# 物模型事件ID
|
|
5832
5887
|
self.event_model_id = event_model_id
|
|
@@ -5836,6 +5891,8 @@ class EventSpecs(TeaModel):
|
|
|
5836
5891
|
self.biz_type = biz_type
|
|
5837
5892
|
# 提交日期
|
|
5838
5893
|
self.submit_date = submit_date
|
|
5894
|
+
# 是否是补数据内容
|
|
5895
|
+
self.is_repaired = is_repaired
|
|
5839
5896
|
|
|
5840
5897
|
def validate(self):
|
|
5841
5898
|
self.validate_required(self.event_model_id, 'event_model_id')
|
|
@@ -5854,6 +5911,8 @@ class EventSpecs(TeaModel):
|
|
|
5854
5911
|
result['biz_type'] = self.biz_type
|
|
5855
5912
|
if self.submit_date is not None:
|
|
5856
5913
|
result['submit_date'] = self.submit_date
|
|
5914
|
+
if self.is_repaired is not None:
|
|
5915
|
+
result['is_repaired'] = self.is_repaired
|
|
5857
5916
|
return result
|
|
5858
5917
|
|
|
5859
5918
|
def from_map(self, m: dict = None):
|
|
@@ -5866,6 +5925,8 @@ class EventSpecs(TeaModel):
|
|
|
5866
5925
|
self.biz_type = m.get('biz_type')
|
|
5867
5926
|
if m.get('submit_date') is not None:
|
|
5868
5927
|
self.submit_date = m.get('submit_date')
|
|
5928
|
+
if m.get('is_repaired') is not None:
|
|
5929
|
+
self.is_repaired = m.get('is_repaired')
|
|
5869
5930
|
return self
|
|
5870
5931
|
|
|
5871
5932
|
|
|
@@ -6438,6 +6499,136 @@ class EvidenceBaseModel(TeaModel):
|
|
|
6438
6499
|
return self
|
|
6439
6500
|
|
|
6440
6501
|
|
|
6502
|
+
class TripView(TeaModel):
|
|
6503
|
+
def __init__(
|
|
6504
|
+
self,
|
|
6505
|
+
trip_begin_time: str = None,
|
|
6506
|
+
trip_end_time: str = None,
|
|
6507
|
+
trip_total_distance: int = None,
|
|
6508
|
+
trip_time: int = None,
|
|
6509
|
+
):
|
|
6510
|
+
# 开始时间
|
|
6511
|
+
self.trip_begin_time = trip_begin_time
|
|
6512
|
+
# 结束时间
|
|
6513
|
+
self.trip_end_time = trip_end_time
|
|
6514
|
+
# 行驶公里数
|
|
6515
|
+
self.trip_total_distance = trip_total_distance
|
|
6516
|
+
# 用时
|
|
6517
|
+
self.trip_time = trip_time
|
|
6518
|
+
|
|
6519
|
+
def validate(self):
|
|
6520
|
+
self.validate_required(self.trip_begin_time, 'trip_begin_time')
|
|
6521
|
+
if self.trip_begin_time is not None:
|
|
6522
|
+
self.validate_pattern(self.trip_begin_time, 'trip_begin_time', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
6523
|
+
self.validate_required(self.trip_end_time, 'trip_end_time')
|
|
6524
|
+
if self.trip_end_time is not None:
|
|
6525
|
+
self.validate_pattern(self.trip_end_time, 'trip_end_time', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
6526
|
+
self.validate_required(self.trip_total_distance, 'trip_total_distance')
|
|
6527
|
+
self.validate_required(self.trip_time, 'trip_time')
|
|
6528
|
+
|
|
6529
|
+
def to_map(self):
|
|
6530
|
+
_map = super().to_map()
|
|
6531
|
+
if _map is not None:
|
|
6532
|
+
return _map
|
|
6533
|
+
|
|
6534
|
+
result = dict()
|
|
6535
|
+
if self.trip_begin_time is not None:
|
|
6536
|
+
result['trip_begin_time'] = self.trip_begin_time
|
|
6537
|
+
if self.trip_end_time is not None:
|
|
6538
|
+
result['trip_end_time'] = self.trip_end_time
|
|
6539
|
+
if self.trip_total_distance is not None:
|
|
6540
|
+
result['trip_total_distance'] = self.trip_total_distance
|
|
6541
|
+
if self.trip_time is not None:
|
|
6542
|
+
result['trip_time'] = self.trip_time
|
|
6543
|
+
return result
|
|
6544
|
+
|
|
6545
|
+
def from_map(self, m: dict = None):
|
|
6546
|
+
m = m or dict()
|
|
6547
|
+
if m.get('trip_begin_time') is not None:
|
|
6548
|
+
self.trip_begin_time = m.get('trip_begin_time')
|
|
6549
|
+
if m.get('trip_end_time') is not None:
|
|
6550
|
+
self.trip_end_time = m.get('trip_end_time')
|
|
6551
|
+
if m.get('trip_total_distance') is not None:
|
|
6552
|
+
self.trip_total_distance = m.get('trip_total_distance')
|
|
6553
|
+
if m.get('trip_time') is not None:
|
|
6554
|
+
self.trip_time = m.get('trip_time')
|
|
6555
|
+
return self
|
|
6556
|
+
|
|
6557
|
+
|
|
6558
|
+
class TripTraceView(TeaModel):
|
|
6559
|
+
def __init__(
|
|
6560
|
+
self,
|
|
6561
|
+
begin_time: str = None,
|
|
6562
|
+
end_time: str = None,
|
|
6563
|
+
avg_speed: int = None,
|
|
6564
|
+
max_speed: int = None,
|
|
6565
|
+
last_location_time: str = None,
|
|
6566
|
+
last_location: str = None,
|
|
6567
|
+
):
|
|
6568
|
+
# 开始时间
|
|
6569
|
+
self.begin_time = begin_time
|
|
6570
|
+
# 结束时间
|
|
6571
|
+
self.end_time = end_time
|
|
6572
|
+
# 平均速度
|
|
6573
|
+
self.avg_speed = avg_speed
|
|
6574
|
+
# 最大速度
|
|
6575
|
+
self.max_speed = max_speed
|
|
6576
|
+
# 最后定位时间
|
|
6577
|
+
self.last_location_time = last_location_time
|
|
6578
|
+
# 最后定位地址
|
|
6579
|
+
self.last_location = last_location
|
|
6580
|
+
|
|
6581
|
+
def validate(self):
|
|
6582
|
+
self.validate_required(self.begin_time, 'begin_time')
|
|
6583
|
+
if self.begin_time is not None:
|
|
6584
|
+
self.validate_pattern(self.begin_time, 'begin_time', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
6585
|
+
self.validate_required(self.end_time, 'end_time')
|
|
6586
|
+
if self.end_time is not None:
|
|
6587
|
+
self.validate_pattern(self.end_time, 'end_time', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
6588
|
+
self.validate_required(self.avg_speed, 'avg_speed')
|
|
6589
|
+
self.validate_required(self.max_speed, 'max_speed')
|
|
6590
|
+
self.validate_required(self.last_location_time, 'last_location_time')
|
|
6591
|
+
if self.last_location_time is not None:
|
|
6592
|
+
self.validate_pattern(self.last_location_time, 'last_location_time', '\\d{4}[-]\\d{1,2}[-]\\d{1,2}[T]\\d{2}:\\d{2}:\\d{2}([Z]|([\\.]\\d{1,9})?[\\+]\\d{2}[\\:]?\\d{2})')
|
|
6593
|
+
self.validate_required(self.last_location, 'last_location')
|
|
6594
|
+
|
|
6595
|
+
def to_map(self):
|
|
6596
|
+
_map = super().to_map()
|
|
6597
|
+
if _map is not None:
|
|
6598
|
+
return _map
|
|
6599
|
+
|
|
6600
|
+
result = dict()
|
|
6601
|
+
if self.begin_time is not None:
|
|
6602
|
+
result['begin_time'] = self.begin_time
|
|
6603
|
+
if self.end_time is not None:
|
|
6604
|
+
result['end_time'] = self.end_time
|
|
6605
|
+
if self.avg_speed is not None:
|
|
6606
|
+
result['avg_speed'] = self.avg_speed
|
|
6607
|
+
if self.max_speed is not None:
|
|
6608
|
+
result['max_speed'] = self.max_speed
|
|
6609
|
+
if self.last_location_time is not None:
|
|
6610
|
+
result['last_location_time'] = self.last_location_time
|
|
6611
|
+
if self.last_location is not None:
|
|
6612
|
+
result['last_location'] = self.last_location
|
|
6613
|
+
return result
|
|
6614
|
+
|
|
6615
|
+
def from_map(self, m: dict = None):
|
|
6616
|
+
m = m or dict()
|
|
6617
|
+
if m.get('begin_time') is not None:
|
|
6618
|
+
self.begin_time = m.get('begin_time')
|
|
6619
|
+
if m.get('end_time') is not None:
|
|
6620
|
+
self.end_time = m.get('end_time')
|
|
6621
|
+
if m.get('avg_speed') is not None:
|
|
6622
|
+
self.avg_speed = m.get('avg_speed')
|
|
6623
|
+
if m.get('max_speed') is not None:
|
|
6624
|
+
self.max_speed = m.get('max_speed')
|
|
6625
|
+
if m.get('last_location_time') is not None:
|
|
6626
|
+
self.last_location_time = m.get('last_location_time')
|
|
6627
|
+
if m.get('last_location') is not None:
|
|
6628
|
+
self.last_location = m.get('last_location')
|
|
6629
|
+
return self
|
|
6630
|
+
|
|
6631
|
+
|
|
6441
6632
|
class TlsnotaryUploadOssLinks(TeaModel):
|
|
6442
6633
|
def __init__(
|
|
6443
6634
|
self,
|
|
@@ -7463,6 +7654,82 @@ class IotBasicDeviceHardWareModule(TeaModel):
|
|
|
7463
7654
|
return self
|
|
7464
7655
|
|
|
7465
7656
|
|
|
7657
|
+
class TripStatisticsView(TeaModel):
|
|
7658
|
+
def __init__(
|
|
7659
|
+
self,
|
|
7660
|
+
total_distance: str = None,
|
|
7661
|
+
total_duration: str = None,
|
|
7662
|
+
trip_count: str = None,
|
|
7663
|
+
last_trip_distance: str = None,
|
|
7664
|
+
last_trip_avg_speed: str = None,
|
|
7665
|
+
last_trip_max_speed: str = None,
|
|
7666
|
+
last_trip_spend_time: str = None,
|
|
7667
|
+
):
|
|
7668
|
+
# 过去七天内所有行驶记录的总里程 ,单位km
|
|
7669
|
+
self.total_distance = total_distance
|
|
7670
|
+
# 行驶总用时
|
|
7671
|
+
self.total_duration = total_duration
|
|
7672
|
+
# 骑行次数
|
|
7673
|
+
self.trip_count = trip_count
|
|
7674
|
+
# 最近一次行驶的里程
|
|
7675
|
+
self.last_trip_distance = last_trip_distance
|
|
7676
|
+
# 最近一次行驶的平均速度 ,单位 km/h
|
|
7677
|
+
self.last_trip_avg_speed = last_trip_avg_speed
|
|
7678
|
+
# 最近一次行驶的最大速度
|
|
7679
|
+
self.last_trip_max_speed = last_trip_max_speed
|
|
7680
|
+
# 最后一次行驶用时
|
|
7681
|
+
self.last_trip_spend_time = last_trip_spend_time
|
|
7682
|
+
|
|
7683
|
+
def validate(self):
|
|
7684
|
+
self.validate_required(self.total_distance, 'total_distance')
|
|
7685
|
+
self.validate_required(self.total_duration, 'total_duration')
|
|
7686
|
+
self.validate_required(self.trip_count, 'trip_count')
|
|
7687
|
+
self.validate_required(self.last_trip_distance, 'last_trip_distance')
|
|
7688
|
+
self.validate_required(self.last_trip_avg_speed, 'last_trip_avg_speed')
|
|
7689
|
+
self.validate_required(self.last_trip_max_speed, 'last_trip_max_speed')
|
|
7690
|
+
self.validate_required(self.last_trip_spend_time, 'last_trip_spend_time')
|
|
7691
|
+
|
|
7692
|
+
def to_map(self):
|
|
7693
|
+
_map = super().to_map()
|
|
7694
|
+
if _map is not None:
|
|
7695
|
+
return _map
|
|
7696
|
+
|
|
7697
|
+
result = dict()
|
|
7698
|
+
if self.total_distance is not None:
|
|
7699
|
+
result['total_distance'] = self.total_distance
|
|
7700
|
+
if self.total_duration is not None:
|
|
7701
|
+
result['total_duration'] = self.total_duration
|
|
7702
|
+
if self.trip_count is not None:
|
|
7703
|
+
result['trip_count'] = self.trip_count
|
|
7704
|
+
if self.last_trip_distance is not None:
|
|
7705
|
+
result['last_trip_distance'] = self.last_trip_distance
|
|
7706
|
+
if self.last_trip_avg_speed is not None:
|
|
7707
|
+
result['last_trip_avg_speed'] = self.last_trip_avg_speed
|
|
7708
|
+
if self.last_trip_max_speed is not None:
|
|
7709
|
+
result['last_trip_max_speed'] = self.last_trip_max_speed
|
|
7710
|
+
if self.last_trip_spend_time is not None:
|
|
7711
|
+
result['last_trip_spend_time'] = self.last_trip_spend_time
|
|
7712
|
+
return result
|
|
7713
|
+
|
|
7714
|
+
def from_map(self, m: dict = None):
|
|
7715
|
+
m = m or dict()
|
|
7716
|
+
if m.get('total_distance') is not None:
|
|
7717
|
+
self.total_distance = m.get('total_distance')
|
|
7718
|
+
if m.get('total_duration') is not None:
|
|
7719
|
+
self.total_duration = m.get('total_duration')
|
|
7720
|
+
if m.get('trip_count') is not None:
|
|
7721
|
+
self.trip_count = m.get('trip_count')
|
|
7722
|
+
if m.get('last_trip_distance') is not None:
|
|
7723
|
+
self.last_trip_distance = m.get('last_trip_distance')
|
|
7724
|
+
if m.get('last_trip_avg_speed') is not None:
|
|
7725
|
+
self.last_trip_avg_speed = m.get('last_trip_avg_speed')
|
|
7726
|
+
if m.get('last_trip_max_speed') is not None:
|
|
7727
|
+
self.last_trip_max_speed = m.get('last_trip_max_speed')
|
|
7728
|
+
if m.get('last_trip_spend_time') is not None:
|
|
7729
|
+
self.last_trip_spend_time = m.get('last_trip_spend_time')
|
|
7730
|
+
return self
|
|
7731
|
+
|
|
7732
|
+
|
|
7466
7733
|
class DeviceOrderFail(TeaModel):
|
|
7467
7734
|
def __init__(
|
|
7468
7735
|
self,
|
|
@@ -9626,6 +9893,34 @@ class BizContentGroup(TeaModel):
|
|
|
9626
9893
|
return self
|
|
9627
9894
|
|
|
9628
9895
|
|
|
9896
|
+
class TripTrace(TeaModel):
|
|
9897
|
+
def __init__(
|
|
9898
|
+
self,
|
|
9899
|
+
device_location: str = None,
|
|
9900
|
+
):
|
|
9901
|
+
# 定位数据
|
|
9902
|
+
self.device_location = device_location
|
|
9903
|
+
|
|
9904
|
+
def validate(self):
|
|
9905
|
+
self.validate_required(self.device_location, 'device_location')
|
|
9906
|
+
|
|
9907
|
+
def to_map(self):
|
|
9908
|
+
_map = super().to_map()
|
|
9909
|
+
if _map is not None:
|
|
9910
|
+
return _map
|
|
9911
|
+
|
|
9912
|
+
result = dict()
|
|
9913
|
+
if self.device_location is not None:
|
|
9914
|
+
result['device_location'] = self.device_location
|
|
9915
|
+
return result
|
|
9916
|
+
|
|
9917
|
+
def from_map(self, m: dict = None):
|
|
9918
|
+
m = m or dict()
|
|
9919
|
+
if m.get('device_location') is not None:
|
|
9920
|
+
self.device_location = m.get('device_location')
|
|
9921
|
+
return self
|
|
9922
|
+
|
|
9923
|
+
|
|
9629
9924
|
class QueryDeviceTransactionResultData(TeaModel):
|
|
9630
9925
|
def __init__(
|
|
9631
9926
|
self,
|
|
@@ -28082,6 +28377,247 @@ class SyncFourwheelerCareventResponse(TeaModel):
|
|
|
28082
28377
|
return self
|
|
28083
28378
|
|
|
28084
28379
|
|
|
28380
|
+
class QueryElectrocarRealtimedataRequest(TeaModel):
|
|
28381
|
+
def __init__(
|
|
28382
|
+
self,
|
|
28383
|
+
auth_token: str = None,
|
|
28384
|
+
product_instance_id: str = None,
|
|
28385
|
+
tuid: str = None,
|
|
28386
|
+
properties: List[str] = None,
|
|
28387
|
+
):
|
|
28388
|
+
# OAuth模式下的授权token
|
|
28389
|
+
self.auth_token = auth_token
|
|
28390
|
+
self.product_instance_id = product_instance_id
|
|
28391
|
+
# iffaa 硬件唯一ID
|
|
28392
|
+
self.tuid = tuid
|
|
28393
|
+
# 车辆信息集合,
|
|
28394
|
+
# 支持的属性 参见物模型定义
|
|
28395
|
+
self.properties = properties
|
|
28396
|
+
|
|
28397
|
+
def validate(self):
|
|
28398
|
+
self.validate_required(self.tuid, 'tuid')
|
|
28399
|
+
self.validate_required(self.properties, 'properties')
|
|
28400
|
+
|
|
28401
|
+
def to_map(self):
|
|
28402
|
+
_map = super().to_map()
|
|
28403
|
+
if _map is not None:
|
|
28404
|
+
return _map
|
|
28405
|
+
|
|
28406
|
+
result = dict()
|
|
28407
|
+
if self.auth_token is not None:
|
|
28408
|
+
result['auth_token'] = self.auth_token
|
|
28409
|
+
if self.product_instance_id is not None:
|
|
28410
|
+
result['product_instance_id'] = self.product_instance_id
|
|
28411
|
+
if self.tuid is not None:
|
|
28412
|
+
result['tuid'] = self.tuid
|
|
28413
|
+
if self.properties is not None:
|
|
28414
|
+
result['properties'] = self.properties
|
|
28415
|
+
return result
|
|
28416
|
+
|
|
28417
|
+
def from_map(self, m: dict = None):
|
|
28418
|
+
m = m or dict()
|
|
28419
|
+
if m.get('auth_token') is not None:
|
|
28420
|
+
self.auth_token = m.get('auth_token')
|
|
28421
|
+
if m.get('product_instance_id') is not None:
|
|
28422
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
28423
|
+
if m.get('tuid') is not None:
|
|
28424
|
+
self.tuid = m.get('tuid')
|
|
28425
|
+
if m.get('properties') is not None:
|
|
28426
|
+
self.properties = m.get('properties')
|
|
28427
|
+
return self
|
|
28428
|
+
|
|
28429
|
+
|
|
28430
|
+
class QueryElectrocarRealtimedataResponse(TeaModel):
|
|
28431
|
+
def __init__(
|
|
28432
|
+
self,
|
|
28433
|
+
req_msg_id: str = None,
|
|
28434
|
+
result_code: str = None,
|
|
28435
|
+
result_msg: str = None,
|
|
28436
|
+
success: bool = None,
|
|
28437
|
+
data: str = None,
|
|
28438
|
+
):
|
|
28439
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
28440
|
+
self.req_msg_id = req_msg_id
|
|
28441
|
+
# 结果码,一般OK表示调用成功
|
|
28442
|
+
self.result_code = result_code
|
|
28443
|
+
# 异常信息的文本描述
|
|
28444
|
+
self.result_msg = result_msg
|
|
28445
|
+
# 接口调用结果
|
|
28446
|
+
self.success = success
|
|
28447
|
+
# 响应结果
|
|
28448
|
+
self.data = data
|
|
28449
|
+
|
|
28450
|
+
def validate(self):
|
|
28451
|
+
pass
|
|
28452
|
+
|
|
28453
|
+
def to_map(self):
|
|
28454
|
+
_map = super().to_map()
|
|
28455
|
+
if _map is not None:
|
|
28456
|
+
return _map
|
|
28457
|
+
|
|
28458
|
+
result = dict()
|
|
28459
|
+
if self.req_msg_id is not None:
|
|
28460
|
+
result['req_msg_id'] = self.req_msg_id
|
|
28461
|
+
if self.result_code is not None:
|
|
28462
|
+
result['result_code'] = self.result_code
|
|
28463
|
+
if self.result_msg is not None:
|
|
28464
|
+
result['result_msg'] = self.result_msg
|
|
28465
|
+
if self.success is not None:
|
|
28466
|
+
result['success'] = self.success
|
|
28467
|
+
if self.data is not None:
|
|
28468
|
+
result['data'] = self.data
|
|
28469
|
+
return result
|
|
28470
|
+
|
|
28471
|
+
def from_map(self, m: dict = None):
|
|
28472
|
+
m = m or dict()
|
|
28473
|
+
if m.get('req_msg_id') is not None:
|
|
28474
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
28475
|
+
if m.get('result_code') is not None:
|
|
28476
|
+
self.result_code = m.get('result_code')
|
|
28477
|
+
if m.get('result_msg') is not None:
|
|
28478
|
+
self.result_msg = m.get('result_msg')
|
|
28479
|
+
if m.get('success') is not None:
|
|
28480
|
+
self.success = m.get('success')
|
|
28481
|
+
if m.get('data') is not None:
|
|
28482
|
+
self.data = m.get('data')
|
|
28483
|
+
return self
|
|
28484
|
+
|
|
28485
|
+
|
|
28486
|
+
class QueryElectrocarTravelRequest(TeaModel):
|
|
28487
|
+
def __init__(
|
|
28488
|
+
self,
|
|
28489
|
+
auth_token: str = None,
|
|
28490
|
+
product_instance_id: str = None,
|
|
28491
|
+
tuid: str = None,
|
|
28492
|
+
trip_data_model: int = None,
|
|
28493
|
+
trip_id: str = None,
|
|
28494
|
+
time_range: str = None,
|
|
28495
|
+
):
|
|
28496
|
+
# OAuth模式下的授权token
|
|
28497
|
+
self.auth_token = auth_token
|
|
28498
|
+
self.product_instance_id = product_instance_id
|
|
28499
|
+
# iffaa 硬件唯一ID
|
|
28500
|
+
self.tuid = tuid
|
|
28501
|
+
# 行程数据查询模式
|
|
28502
|
+
self.trip_data_model = trip_data_model
|
|
28503
|
+
# 注:trip_data_model = 3 必传
|
|
28504
|
+
self.trip_id = trip_id
|
|
28505
|
+
# 时间范围
|
|
28506
|
+
# 注:trip_data_model = 3 不需要传
|
|
28507
|
+
self.time_range = time_range
|
|
28508
|
+
|
|
28509
|
+
def validate(self):
|
|
28510
|
+
self.validate_required(self.tuid, 'tuid')
|
|
28511
|
+
self.validate_required(self.trip_data_model, 'trip_data_model')
|
|
28512
|
+
|
|
28513
|
+
def to_map(self):
|
|
28514
|
+
_map = super().to_map()
|
|
28515
|
+
if _map is not None:
|
|
28516
|
+
return _map
|
|
28517
|
+
|
|
28518
|
+
result = dict()
|
|
28519
|
+
if self.auth_token is not None:
|
|
28520
|
+
result['auth_token'] = self.auth_token
|
|
28521
|
+
if self.product_instance_id is not None:
|
|
28522
|
+
result['product_instance_id'] = self.product_instance_id
|
|
28523
|
+
if self.tuid is not None:
|
|
28524
|
+
result['tuid'] = self.tuid
|
|
28525
|
+
if self.trip_data_model is not None:
|
|
28526
|
+
result['trip_data_model'] = self.trip_data_model
|
|
28527
|
+
if self.trip_id is not None:
|
|
28528
|
+
result['trip_id'] = self.trip_id
|
|
28529
|
+
if self.time_range is not None:
|
|
28530
|
+
result['time_range'] = self.time_range
|
|
28531
|
+
return result
|
|
28532
|
+
|
|
28533
|
+
def from_map(self, m: dict = None):
|
|
28534
|
+
m = m or dict()
|
|
28535
|
+
if m.get('auth_token') is not None:
|
|
28536
|
+
self.auth_token = m.get('auth_token')
|
|
28537
|
+
if m.get('product_instance_id') is not None:
|
|
28538
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
28539
|
+
if m.get('tuid') is not None:
|
|
28540
|
+
self.tuid = m.get('tuid')
|
|
28541
|
+
if m.get('trip_data_model') is not None:
|
|
28542
|
+
self.trip_data_model = m.get('trip_data_model')
|
|
28543
|
+
if m.get('trip_id') is not None:
|
|
28544
|
+
self.trip_id = m.get('trip_id')
|
|
28545
|
+
if m.get('time_range') is not None:
|
|
28546
|
+
self.time_range = m.get('time_range')
|
|
28547
|
+
return self
|
|
28548
|
+
|
|
28549
|
+
|
|
28550
|
+
class QueryElectrocarTravelResponse(TeaModel):
|
|
28551
|
+
def __init__(
|
|
28552
|
+
self,
|
|
28553
|
+
req_msg_id: str = None,
|
|
28554
|
+
result_code: str = None,
|
|
28555
|
+
result_msg: str = None,
|
|
28556
|
+
success: bool = None,
|
|
28557
|
+
over_view: str = None,
|
|
28558
|
+
detail_list: List[str] = None,
|
|
28559
|
+
):
|
|
28560
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
28561
|
+
self.req_msg_id = req_msg_id
|
|
28562
|
+
# 结果码,一般OK表示调用成功
|
|
28563
|
+
self.result_code = result_code
|
|
28564
|
+
# 异常信息的文本描述
|
|
28565
|
+
self.result_msg = result_msg
|
|
28566
|
+
# 接口调用结果
|
|
28567
|
+
self.success = success
|
|
28568
|
+
# 概览信息,
|
|
28569
|
+
# bean 定义:
|
|
28570
|
+
# 行程统计:TripStatisticsView
|
|
28571
|
+
# 行程列表:-\
|
|
28572
|
+
# 行程详情:TripTraceView
|
|
28573
|
+
self.over_view = over_view
|
|
28574
|
+
# 详情列表
|
|
28575
|
+
# bean 定义:
|
|
28576
|
+
# 行程统计:TripStatistics
|
|
28577
|
+
# 行程列表:TripView
|
|
28578
|
+
# 行程详情:TripTrace
|
|
28579
|
+
self.detail_list = detail_list
|
|
28580
|
+
|
|
28581
|
+
def validate(self):
|
|
28582
|
+
pass
|
|
28583
|
+
|
|
28584
|
+
def to_map(self):
|
|
28585
|
+
_map = super().to_map()
|
|
28586
|
+
if _map is not None:
|
|
28587
|
+
return _map
|
|
28588
|
+
|
|
28589
|
+
result = dict()
|
|
28590
|
+
if self.req_msg_id is not None:
|
|
28591
|
+
result['req_msg_id'] = self.req_msg_id
|
|
28592
|
+
if self.result_code is not None:
|
|
28593
|
+
result['result_code'] = self.result_code
|
|
28594
|
+
if self.result_msg is not None:
|
|
28595
|
+
result['result_msg'] = self.result_msg
|
|
28596
|
+
if self.success is not None:
|
|
28597
|
+
result['success'] = self.success
|
|
28598
|
+
if self.over_view is not None:
|
|
28599
|
+
result['over_view'] = self.over_view
|
|
28600
|
+
if self.detail_list is not None:
|
|
28601
|
+
result['detail_list'] = self.detail_list
|
|
28602
|
+
return result
|
|
28603
|
+
|
|
28604
|
+
def from_map(self, m: dict = None):
|
|
28605
|
+
m = m or dict()
|
|
28606
|
+
if m.get('req_msg_id') is not None:
|
|
28607
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
28608
|
+
if m.get('result_code') is not None:
|
|
28609
|
+
self.result_code = m.get('result_code')
|
|
28610
|
+
if m.get('result_msg') is not None:
|
|
28611
|
+
self.result_msg = m.get('result_msg')
|
|
28612
|
+
if m.get('success') is not None:
|
|
28613
|
+
self.success = m.get('success')
|
|
28614
|
+
if m.get('over_view') is not None:
|
|
28615
|
+
self.over_view = m.get('over_view')
|
|
28616
|
+
if m.get('detail_list') is not None:
|
|
28617
|
+
self.detail_list = m.get('detail_list')
|
|
28618
|
+
return self
|
|
28619
|
+
|
|
28620
|
+
|
|
28085
28621
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
28086
28622
|
def __init__(
|
|
28087
28623
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=GulSo1sR7hOOcFk1K_M3xj-oiUjVfjQ6p5u-EV0IuvI,22
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=HvXdspl3OgbByhzDKTRIP2V2XzRA4-hvbGYZFlJYOG8,623716
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=ubewHwZ8Bgmr2iXvNRwZcqeh_3WOdzm9EnhX6VY_avo,1601814
|
|
4
|
-
antchain_bot-1.12.8.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.12.8.dist-info/METADATA,sha256=ZJkAqMiyiel2gkajwrcMaM-5Do68dq30vck6StX4mGE,1988
|
|
6
|
-
antchain_bot-1.12.8.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.12.8.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.12.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|