antchain-bot 1.12.40__py3-none-any.whl → 1.12.48__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.40.dist-info → antchain_bot-1.12.48.dist-info}/METADATA +1 -1
- antchain_bot-1.12.48.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +282 -2
- antchain_sdk_bot/models.py +829 -29
- antchain_bot-1.12.40.dist-info/RECORD +0 -8
- {antchain_bot-1.12.40.dist-info → antchain_bot-1.12.48.dist-info}/LICENSE +0 -0
- {antchain_bot-1.12.40.dist-info → antchain_bot-1.12.48.dist-info}/WHEEL +0 -0
- {antchain_bot-1.12.40.dist-info → antchain_bot-1.12.48.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
antchain_sdk_bot/__init__.py,sha256=7TASDBBxJDnIKPoEw5_h4p2IU2YRLjrNRAh92XHeiW4,23
|
|
2
|
+
antchain_sdk_bot/client.py,sha256=0H5yuLOT1UKD2nlhgLb59MActaCvjm1fb9i2PeN-HxI,655548
|
|
3
|
+
antchain_sdk_bot/models.py,sha256=JtlMZSPyMGNDEHNd-_Qu-Wa9FbSRCeC_oXHhmwWl06E,1688810
|
|
4
|
+
antchain_bot-1.12.48.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
antchain_bot-1.12.48.dist-info/METADATA,sha256=Y1UlKvvCopwCe39zbpVB7g8KFqAX7Le9vowY87LwxwU,1989
|
|
6
|
+
antchain_bot-1.12.48.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
+
antchain_bot-1.12.48.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
+
antchain_bot-1.12.48.dist-info/RECORD,,
|
antchain_sdk_bot/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.12.
|
|
1
|
+
__version__ = '1.12.48'
|
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.48',
|
|
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.48',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -8187,6 +8187,230 @@ class Client:
|
|
|
8187
8187
|
await self.do_request_async('1.0', 'blockchain.bot.device.audio.push', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8188
8188
|
)
|
|
8189
8189
|
|
|
8190
|
+
def query_electrocar_tripstatistics(
|
|
8191
|
+
self,
|
|
8192
|
+
request: bot_models.QueryElectrocarTripstatisticsRequest,
|
|
8193
|
+
) -> bot_models.QueryElectrocarTripstatisticsResponse:
|
|
8194
|
+
"""
|
|
8195
|
+
Description: iotx二轮车行程统计接口
|
|
8196
|
+
Summary: iotx二轮车行程统计接口
|
|
8197
|
+
"""
|
|
8198
|
+
runtime = util_models.RuntimeOptions()
|
|
8199
|
+
headers = {}
|
|
8200
|
+
return self.query_electrocar_tripstatistics_ex(request, headers, runtime)
|
|
8201
|
+
|
|
8202
|
+
async def query_electrocar_tripstatistics_async(
|
|
8203
|
+
self,
|
|
8204
|
+
request: bot_models.QueryElectrocarTripstatisticsRequest,
|
|
8205
|
+
) -> bot_models.QueryElectrocarTripstatisticsResponse:
|
|
8206
|
+
"""
|
|
8207
|
+
Description: iotx二轮车行程统计接口
|
|
8208
|
+
Summary: iotx二轮车行程统计接口
|
|
8209
|
+
"""
|
|
8210
|
+
runtime = util_models.RuntimeOptions()
|
|
8211
|
+
headers = {}
|
|
8212
|
+
return await self.query_electrocar_tripstatistics_ex_async(request, headers, runtime)
|
|
8213
|
+
|
|
8214
|
+
def query_electrocar_tripstatistics_ex(
|
|
8215
|
+
self,
|
|
8216
|
+
request: bot_models.QueryElectrocarTripstatisticsRequest,
|
|
8217
|
+
headers: Dict[str, str],
|
|
8218
|
+
runtime: util_models.RuntimeOptions,
|
|
8219
|
+
) -> bot_models.QueryElectrocarTripstatisticsResponse:
|
|
8220
|
+
"""
|
|
8221
|
+
Description: iotx二轮车行程统计接口
|
|
8222
|
+
Summary: iotx二轮车行程统计接口
|
|
8223
|
+
"""
|
|
8224
|
+
UtilClient.validate_model(request)
|
|
8225
|
+
return TeaCore.from_map(
|
|
8226
|
+
bot_models.QueryElectrocarTripstatisticsResponse(),
|
|
8227
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.tripstatistics.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8228
|
+
)
|
|
8229
|
+
|
|
8230
|
+
async def query_electrocar_tripstatistics_ex_async(
|
|
8231
|
+
self,
|
|
8232
|
+
request: bot_models.QueryElectrocarTripstatisticsRequest,
|
|
8233
|
+
headers: Dict[str, str],
|
|
8234
|
+
runtime: util_models.RuntimeOptions,
|
|
8235
|
+
) -> bot_models.QueryElectrocarTripstatisticsResponse:
|
|
8236
|
+
"""
|
|
8237
|
+
Description: iotx二轮车行程统计接口
|
|
8238
|
+
Summary: iotx二轮车行程统计接口
|
|
8239
|
+
"""
|
|
8240
|
+
UtilClient.validate_model(request)
|
|
8241
|
+
return TeaCore.from_map(
|
|
8242
|
+
bot_models.QueryElectrocarTripstatisticsResponse(),
|
|
8243
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.tripstatistics.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8244
|
+
)
|
|
8245
|
+
|
|
8246
|
+
def query_electrocar_triplist(
|
|
8247
|
+
self,
|
|
8248
|
+
request: bot_models.QueryElectrocarTriplistRequest,
|
|
8249
|
+
) -> bot_models.QueryElectrocarTriplistResponse:
|
|
8250
|
+
"""
|
|
8251
|
+
Description: iotx二轮车行程列表接口
|
|
8252
|
+
Summary: iotx二轮车行程列表接口
|
|
8253
|
+
"""
|
|
8254
|
+
runtime = util_models.RuntimeOptions()
|
|
8255
|
+
headers = {}
|
|
8256
|
+
return self.query_electrocar_triplist_ex(request, headers, runtime)
|
|
8257
|
+
|
|
8258
|
+
async def query_electrocar_triplist_async(
|
|
8259
|
+
self,
|
|
8260
|
+
request: bot_models.QueryElectrocarTriplistRequest,
|
|
8261
|
+
) -> bot_models.QueryElectrocarTriplistResponse:
|
|
8262
|
+
"""
|
|
8263
|
+
Description: iotx二轮车行程列表接口
|
|
8264
|
+
Summary: iotx二轮车行程列表接口
|
|
8265
|
+
"""
|
|
8266
|
+
runtime = util_models.RuntimeOptions()
|
|
8267
|
+
headers = {}
|
|
8268
|
+
return await self.query_electrocar_triplist_ex_async(request, headers, runtime)
|
|
8269
|
+
|
|
8270
|
+
def query_electrocar_triplist_ex(
|
|
8271
|
+
self,
|
|
8272
|
+
request: bot_models.QueryElectrocarTriplistRequest,
|
|
8273
|
+
headers: Dict[str, str],
|
|
8274
|
+
runtime: util_models.RuntimeOptions,
|
|
8275
|
+
) -> bot_models.QueryElectrocarTriplistResponse:
|
|
8276
|
+
"""
|
|
8277
|
+
Description: iotx二轮车行程列表接口
|
|
8278
|
+
Summary: iotx二轮车行程列表接口
|
|
8279
|
+
"""
|
|
8280
|
+
UtilClient.validate_model(request)
|
|
8281
|
+
return TeaCore.from_map(
|
|
8282
|
+
bot_models.QueryElectrocarTriplistResponse(),
|
|
8283
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.triplist.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8284
|
+
)
|
|
8285
|
+
|
|
8286
|
+
async def query_electrocar_triplist_ex_async(
|
|
8287
|
+
self,
|
|
8288
|
+
request: bot_models.QueryElectrocarTriplistRequest,
|
|
8289
|
+
headers: Dict[str, str],
|
|
8290
|
+
runtime: util_models.RuntimeOptions,
|
|
8291
|
+
) -> bot_models.QueryElectrocarTriplistResponse:
|
|
8292
|
+
"""
|
|
8293
|
+
Description: iotx二轮车行程列表接口
|
|
8294
|
+
Summary: iotx二轮车行程列表接口
|
|
8295
|
+
"""
|
|
8296
|
+
UtilClient.validate_model(request)
|
|
8297
|
+
return TeaCore.from_map(
|
|
8298
|
+
bot_models.QueryElectrocarTriplistResponse(),
|
|
8299
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.triplist.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8300
|
+
)
|
|
8301
|
+
|
|
8302
|
+
def query_electrocar_trippoints(
|
|
8303
|
+
self,
|
|
8304
|
+
request: bot_models.QueryElectrocarTrippointsRequest,
|
|
8305
|
+
) -> bot_models.QueryElectrocarTrippointsResponse:
|
|
8306
|
+
"""
|
|
8307
|
+
Description: iotx二轮车行程定位
|
|
8308
|
+
Summary: iotx二轮车行程定位
|
|
8309
|
+
"""
|
|
8310
|
+
runtime = util_models.RuntimeOptions()
|
|
8311
|
+
headers = {}
|
|
8312
|
+
return self.query_electrocar_trippoints_ex(request, headers, runtime)
|
|
8313
|
+
|
|
8314
|
+
async def query_electrocar_trippoints_async(
|
|
8315
|
+
self,
|
|
8316
|
+
request: bot_models.QueryElectrocarTrippointsRequest,
|
|
8317
|
+
) -> bot_models.QueryElectrocarTrippointsResponse:
|
|
8318
|
+
"""
|
|
8319
|
+
Description: iotx二轮车行程定位
|
|
8320
|
+
Summary: iotx二轮车行程定位
|
|
8321
|
+
"""
|
|
8322
|
+
runtime = util_models.RuntimeOptions()
|
|
8323
|
+
headers = {}
|
|
8324
|
+
return await self.query_electrocar_trippoints_ex_async(request, headers, runtime)
|
|
8325
|
+
|
|
8326
|
+
def query_electrocar_trippoints_ex(
|
|
8327
|
+
self,
|
|
8328
|
+
request: bot_models.QueryElectrocarTrippointsRequest,
|
|
8329
|
+
headers: Dict[str, str],
|
|
8330
|
+
runtime: util_models.RuntimeOptions,
|
|
8331
|
+
) -> bot_models.QueryElectrocarTrippointsResponse:
|
|
8332
|
+
"""
|
|
8333
|
+
Description: iotx二轮车行程定位
|
|
8334
|
+
Summary: iotx二轮车行程定位
|
|
8335
|
+
"""
|
|
8336
|
+
UtilClient.validate_model(request)
|
|
8337
|
+
return TeaCore.from_map(
|
|
8338
|
+
bot_models.QueryElectrocarTrippointsResponse(),
|
|
8339
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.trippoints.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8340
|
+
)
|
|
8341
|
+
|
|
8342
|
+
async def query_electrocar_trippoints_ex_async(
|
|
8343
|
+
self,
|
|
8344
|
+
request: bot_models.QueryElectrocarTrippointsRequest,
|
|
8345
|
+
headers: Dict[str, str],
|
|
8346
|
+
runtime: util_models.RuntimeOptions,
|
|
8347
|
+
) -> bot_models.QueryElectrocarTrippointsResponse:
|
|
8348
|
+
"""
|
|
8349
|
+
Description: iotx二轮车行程定位
|
|
8350
|
+
Summary: iotx二轮车行程定位
|
|
8351
|
+
"""
|
|
8352
|
+
UtilClient.validate_model(request)
|
|
8353
|
+
return TeaCore.from_map(
|
|
8354
|
+
bot_models.QueryElectrocarTrippointsResponse(),
|
|
8355
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.trippoints.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8356
|
+
)
|
|
8357
|
+
|
|
8358
|
+
def query_electrocar_triplast(
|
|
8359
|
+
self,
|
|
8360
|
+
request: bot_models.QueryElectrocarTriplastRequest,
|
|
8361
|
+
) -> bot_models.QueryElectrocarTriplastResponse:
|
|
8362
|
+
"""
|
|
8363
|
+
Description: iotx二轮车最近一段行程查询接口
|
|
8364
|
+
Summary: iotx二轮车最近一段行程查询接口
|
|
8365
|
+
"""
|
|
8366
|
+
runtime = util_models.RuntimeOptions()
|
|
8367
|
+
headers = {}
|
|
8368
|
+
return self.query_electrocar_triplast_ex(request, headers, runtime)
|
|
8369
|
+
|
|
8370
|
+
async def query_electrocar_triplast_async(
|
|
8371
|
+
self,
|
|
8372
|
+
request: bot_models.QueryElectrocarTriplastRequest,
|
|
8373
|
+
) -> bot_models.QueryElectrocarTriplastResponse:
|
|
8374
|
+
"""
|
|
8375
|
+
Description: iotx二轮车最近一段行程查询接口
|
|
8376
|
+
Summary: iotx二轮车最近一段行程查询接口
|
|
8377
|
+
"""
|
|
8378
|
+
runtime = util_models.RuntimeOptions()
|
|
8379
|
+
headers = {}
|
|
8380
|
+
return await self.query_electrocar_triplast_ex_async(request, headers, runtime)
|
|
8381
|
+
|
|
8382
|
+
def query_electrocar_triplast_ex(
|
|
8383
|
+
self,
|
|
8384
|
+
request: bot_models.QueryElectrocarTriplastRequest,
|
|
8385
|
+
headers: Dict[str, str],
|
|
8386
|
+
runtime: util_models.RuntimeOptions,
|
|
8387
|
+
) -> bot_models.QueryElectrocarTriplastResponse:
|
|
8388
|
+
"""
|
|
8389
|
+
Description: iotx二轮车最近一段行程查询接口
|
|
8390
|
+
Summary: iotx二轮车最近一段行程查询接口
|
|
8391
|
+
"""
|
|
8392
|
+
UtilClient.validate_model(request)
|
|
8393
|
+
return TeaCore.from_map(
|
|
8394
|
+
bot_models.QueryElectrocarTriplastResponse(),
|
|
8395
|
+
self.do_request('1.0', 'blockchain.bot.electrocar.triplast.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8396
|
+
)
|
|
8397
|
+
|
|
8398
|
+
async def query_electrocar_triplast_ex_async(
|
|
8399
|
+
self,
|
|
8400
|
+
request: bot_models.QueryElectrocarTriplastRequest,
|
|
8401
|
+
headers: Dict[str, str],
|
|
8402
|
+
runtime: util_models.RuntimeOptions,
|
|
8403
|
+
) -> bot_models.QueryElectrocarTriplastResponse:
|
|
8404
|
+
"""
|
|
8405
|
+
Description: iotx二轮车最近一段行程查询接口
|
|
8406
|
+
Summary: iotx二轮车最近一段行程查询接口
|
|
8407
|
+
"""
|
|
8408
|
+
UtilClient.validate_model(request)
|
|
8409
|
+
return TeaCore.from_map(
|
|
8410
|
+
bot_models.QueryElectrocarTriplastResponse(),
|
|
8411
|
+
await self.do_request_async('1.0', 'blockchain.bot.electrocar.triplast.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
8412
|
+
)
|
|
8413
|
+
|
|
8190
8414
|
def query_iotplatform_purchaseorder(
|
|
8191
8415
|
self,
|
|
8192
8416
|
request: bot_models.QueryIotplatformPurchaseorderRequest,
|
|
@@ -15019,6 +15243,62 @@ class Client:
|
|
|
15019
15243
|
await self.do_request_async('1.0', 'blockchain.bot.taskalarm.send', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15020
15244
|
)
|
|
15021
15245
|
|
|
15246
|
+
def apply_techintegration_skushipemptymodelbyuid(
|
|
15247
|
+
self,
|
|
15248
|
+
request: bot_models.ApplyTechintegrationSkushipemptymodelbyuidRequest,
|
|
15249
|
+
) -> bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse:
|
|
15250
|
+
"""
|
|
15251
|
+
Description: 支付芯非SE方案空发接口
|
|
15252
|
+
Summary: 支付芯非SE方案空发接口
|
|
15253
|
+
"""
|
|
15254
|
+
runtime = util_models.RuntimeOptions()
|
|
15255
|
+
headers = {}
|
|
15256
|
+
return self.apply_techintegration_skushipemptymodelbyuid_ex(request, headers, runtime)
|
|
15257
|
+
|
|
15258
|
+
async def apply_techintegration_skushipemptymodelbyuid_async(
|
|
15259
|
+
self,
|
|
15260
|
+
request: bot_models.ApplyTechintegrationSkushipemptymodelbyuidRequest,
|
|
15261
|
+
) -> bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse:
|
|
15262
|
+
"""
|
|
15263
|
+
Description: 支付芯非SE方案空发接口
|
|
15264
|
+
Summary: 支付芯非SE方案空发接口
|
|
15265
|
+
"""
|
|
15266
|
+
runtime = util_models.RuntimeOptions()
|
|
15267
|
+
headers = {}
|
|
15268
|
+
return await self.apply_techintegration_skushipemptymodelbyuid_ex_async(request, headers, runtime)
|
|
15269
|
+
|
|
15270
|
+
def apply_techintegration_skushipemptymodelbyuid_ex(
|
|
15271
|
+
self,
|
|
15272
|
+
request: bot_models.ApplyTechintegrationSkushipemptymodelbyuidRequest,
|
|
15273
|
+
headers: Dict[str, str],
|
|
15274
|
+
runtime: util_models.RuntimeOptions,
|
|
15275
|
+
) -> bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse:
|
|
15276
|
+
"""
|
|
15277
|
+
Description: 支付芯非SE方案空发接口
|
|
15278
|
+
Summary: 支付芯非SE方案空发接口
|
|
15279
|
+
"""
|
|
15280
|
+
UtilClient.validate_model(request)
|
|
15281
|
+
return TeaCore.from_map(
|
|
15282
|
+
bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse(),
|
|
15283
|
+
self.do_request('1.0', 'blockchain.bot.techintegration.skushipemptymodelbyuid.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15284
|
+
)
|
|
15285
|
+
|
|
15286
|
+
async def apply_techintegration_skushipemptymodelbyuid_ex_async(
|
|
15287
|
+
self,
|
|
15288
|
+
request: bot_models.ApplyTechintegrationSkushipemptymodelbyuidRequest,
|
|
15289
|
+
headers: Dict[str, str],
|
|
15290
|
+
runtime: util_models.RuntimeOptions,
|
|
15291
|
+
) -> bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse:
|
|
15292
|
+
"""
|
|
15293
|
+
Description: 支付芯非SE方案空发接口
|
|
15294
|
+
Summary: 支付芯非SE方案空发接口
|
|
15295
|
+
"""
|
|
15296
|
+
UtilClient.validate_model(request)
|
|
15297
|
+
return TeaCore.from_map(
|
|
15298
|
+
bot_models.ApplyTechintegrationSkushipemptymodelbyuidResponse(),
|
|
15299
|
+
await self.do_request_async('1.0', 'blockchain.bot.techintegration.skushipemptymodelbyuid.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
15300
|
+
)
|
|
15301
|
+
|
|
15022
15302
|
def exec_thingsdid_oneapi(
|
|
15023
15303
|
self,
|
|
15024
15304
|
request: bot_models.ExecThingsdidOneapiRequest,
|
antchain_sdk_bot/models.py
CHANGED
|
@@ -696,6 +696,42 @@ class DataVerifyFailureData(TeaModel):
|
|
|
696
696
|
return self
|
|
697
697
|
|
|
698
698
|
|
|
699
|
+
class TripDuration(TeaModel):
|
|
700
|
+
def __init__(
|
|
701
|
+
self,
|
|
702
|
+
value: str = None,
|
|
703
|
+
unit: str = None,
|
|
704
|
+
):
|
|
705
|
+
# 时间
|
|
706
|
+
self.value = value
|
|
707
|
+
# 时间单位
|
|
708
|
+
self.unit = unit
|
|
709
|
+
|
|
710
|
+
def validate(self):
|
|
711
|
+
self.validate_required(self.value, 'value')
|
|
712
|
+
self.validate_required(self.unit, 'unit')
|
|
713
|
+
|
|
714
|
+
def to_map(self):
|
|
715
|
+
_map = super().to_map()
|
|
716
|
+
if _map is not None:
|
|
717
|
+
return _map
|
|
718
|
+
|
|
719
|
+
result = dict()
|
|
720
|
+
if self.value is not None:
|
|
721
|
+
result['value'] = self.value
|
|
722
|
+
if self.unit is not None:
|
|
723
|
+
result['unit'] = self.unit
|
|
724
|
+
return result
|
|
725
|
+
|
|
726
|
+
def from_map(self, m: dict = None):
|
|
727
|
+
m = m or dict()
|
|
728
|
+
if m.get('value') is not None:
|
|
729
|
+
self.value = m.get('value')
|
|
730
|
+
if m.get('unit') is not None:
|
|
731
|
+
self.unit = m.get('unit')
|
|
732
|
+
return self
|
|
733
|
+
|
|
734
|
+
|
|
699
735
|
class PermissionedTenantModel(TeaModel):
|
|
700
736
|
def __init__(
|
|
701
737
|
self,
|
|
@@ -5307,6 +5343,117 @@ class IotbasicDeviceModelFixedAttributeInfo(TeaModel):
|
|
|
5307
5343
|
return self
|
|
5308
5344
|
|
|
5309
5345
|
|
|
5346
|
+
class TripDetail(TeaModel):
|
|
5347
|
+
def __init__(
|
|
5348
|
+
self,
|
|
5349
|
+
trip_id: str = None,
|
|
5350
|
+
start_time: int = None,
|
|
5351
|
+
end_time: int = None,
|
|
5352
|
+
mileage: str = None,
|
|
5353
|
+
duration: TripDuration = None,
|
|
5354
|
+
max_speed: str = None,
|
|
5355
|
+
avg_speed: str = None,
|
|
5356
|
+
first_address: str = None,
|
|
5357
|
+
last_address: str = None,
|
|
5358
|
+
first_location_time: int = None,
|
|
5359
|
+
last_location_time: int = None,
|
|
5360
|
+
):
|
|
5361
|
+
# 行程id
|
|
5362
|
+
self.trip_id = trip_id
|
|
5363
|
+
# 开始时间
|
|
5364
|
+
self.start_time = start_time
|
|
5365
|
+
# 结束时间
|
|
5366
|
+
self.end_time = end_time
|
|
5367
|
+
# 行驶里程
|
|
5368
|
+
self.mileage = mileage
|
|
5369
|
+
# 单次用时
|
|
5370
|
+
self.duration = duration
|
|
5371
|
+
# 最高速度
|
|
5372
|
+
self.max_speed = max_speed
|
|
5373
|
+
# 平均速度
|
|
5374
|
+
self.avg_speed = avg_speed
|
|
5375
|
+
# 开始地址
|
|
5376
|
+
self.first_address = first_address
|
|
5377
|
+
# 结束地址
|
|
5378
|
+
self.last_address = last_address
|
|
5379
|
+
# 最开始定位时间
|
|
5380
|
+
self.first_location_time = first_location_time
|
|
5381
|
+
# 最后结束定位时间
|
|
5382
|
+
self.last_location_time = last_location_time
|
|
5383
|
+
|
|
5384
|
+
def validate(self):
|
|
5385
|
+
self.validate_required(self.trip_id, 'trip_id')
|
|
5386
|
+
self.validate_required(self.start_time, 'start_time')
|
|
5387
|
+
self.validate_required(self.end_time, 'end_time')
|
|
5388
|
+
self.validate_required(self.mileage, 'mileage')
|
|
5389
|
+
self.validate_required(self.duration, 'duration')
|
|
5390
|
+
if self.duration:
|
|
5391
|
+
self.duration.validate()
|
|
5392
|
+
self.validate_required(self.max_speed, 'max_speed')
|
|
5393
|
+
self.validate_required(self.avg_speed, 'avg_speed')
|
|
5394
|
+
self.validate_required(self.first_address, 'first_address')
|
|
5395
|
+
self.validate_required(self.last_address, 'last_address')
|
|
5396
|
+
self.validate_required(self.first_location_time, 'first_location_time')
|
|
5397
|
+
self.validate_required(self.last_location_time, 'last_location_time')
|
|
5398
|
+
|
|
5399
|
+
def to_map(self):
|
|
5400
|
+
_map = super().to_map()
|
|
5401
|
+
if _map is not None:
|
|
5402
|
+
return _map
|
|
5403
|
+
|
|
5404
|
+
result = dict()
|
|
5405
|
+
if self.trip_id is not None:
|
|
5406
|
+
result['trip_id'] = self.trip_id
|
|
5407
|
+
if self.start_time is not None:
|
|
5408
|
+
result['start_time'] = self.start_time
|
|
5409
|
+
if self.end_time is not None:
|
|
5410
|
+
result['end_time'] = self.end_time
|
|
5411
|
+
if self.mileage is not None:
|
|
5412
|
+
result['mileage'] = self.mileage
|
|
5413
|
+
if self.duration is not None:
|
|
5414
|
+
result['duration'] = self.duration.to_map()
|
|
5415
|
+
if self.max_speed is not None:
|
|
5416
|
+
result['max_speed'] = self.max_speed
|
|
5417
|
+
if self.avg_speed is not None:
|
|
5418
|
+
result['avg_speed'] = self.avg_speed
|
|
5419
|
+
if self.first_address is not None:
|
|
5420
|
+
result['first_address'] = self.first_address
|
|
5421
|
+
if self.last_address is not None:
|
|
5422
|
+
result['last_address'] = self.last_address
|
|
5423
|
+
if self.first_location_time is not None:
|
|
5424
|
+
result['first_location_time'] = self.first_location_time
|
|
5425
|
+
if self.last_location_time is not None:
|
|
5426
|
+
result['last_location_time'] = self.last_location_time
|
|
5427
|
+
return result
|
|
5428
|
+
|
|
5429
|
+
def from_map(self, m: dict = None):
|
|
5430
|
+
m = m or dict()
|
|
5431
|
+
if m.get('trip_id') is not None:
|
|
5432
|
+
self.trip_id = m.get('trip_id')
|
|
5433
|
+
if m.get('start_time') is not None:
|
|
5434
|
+
self.start_time = m.get('start_time')
|
|
5435
|
+
if m.get('end_time') is not None:
|
|
5436
|
+
self.end_time = m.get('end_time')
|
|
5437
|
+
if m.get('mileage') is not None:
|
|
5438
|
+
self.mileage = m.get('mileage')
|
|
5439
|
+
if m.get('duration') is not None:
|
|
5440
|
+
temp_model = TripDuration()
|
|
5441
|
+
self.duration = temp_model.from_map(m['duration'])
|
|
5442
|
+
if m.get('max_speed') is not None:
|
|
5443
|
+
self.max_speed = m.get('max_speed')
|
|
5444
|
+
if m.get('avg_speed') is not None:
|
|
5445
|
+
self.avg_speed = m.get('avg_speed')
|
|
5446
|
+
if m.get('first_address') is not None:
|
|
5447
|
+
self.first_address = m.get('first_address')
|
|
5448
|
+
if m.get('last_address') is not None:
|
|
5449
|
+
self.last_address = m.get('last_address')
|
|
5450
|
+
if m.get('first_location_time') is not None:
|
|
5451
|
+
self.first_location_time = m.get('first_location_time')
|
|
5452
|
+
if m.get('last_location_time') is not None:
|
|
5453
|
+
self.last_location_time = m.get('last_location_time')
|
|
5454
|
+
return self
|
|
5455
|
+
|
|
5456
|
+
|
|
5310
5457
|
class XrTicketPoolFailList(TeaModel):
|
|
5311
5458
|
def __init__(
|
|
5312
5459
|
self,
|
|
@@ -5855,27 +6002,27 @@ class JtMedia(TeaModel):
|
|
|
5855
6002
|
class TripStatistics(TeaModel):
|
|
5856
6003
|
def __init__(
|
|
5857
6004
|
self,
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
6005
|
+
total_mileage: str = None,
|
|
6006
|
+
total_duration: TripDuration = None,
|
|
6007
|
+
total_count: int = None,
|
|
6008
|
+
period_code: int = None,
|
|
5862
6009
|
):
|
|
5863
|
-
# 行驶天数
|
|
5864
|
-
self.trip_day = trip_day
|
|
5865
6010
|
# 总里程
|
|
5866
|
-
self.
|
|
5867
|
-
#
|
|
6011
|
+
self.total_mileage = total_mileage
|
|
6012
|
+
# 时间体
|
|
5868
6013
|
self.total_duration = total_duration
|
|
5869
|
-
#
|
|
5870
|
-
self.
|
|
6014
|
+
# 总次数
|
|
6015
|
+
self.total_count = total_count
|
|
6016
|
+
# 时期码
|
|
6017
|
+
self.period_code = period_code
|
|
5871
6018
|
|
|
5872
6019
|
def validate(self):
|
|
5873
|
-
self.validate_required(self.
|
|
5874
|
-
if self.trip_day is not None:
|
|
5875
|
-
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})')
|
|
5876
|
-
self.validate_required(self.total_distance, 'total_distance')
|
|
6020
|
+
self.validate_required(self.total_mileage, 'total_mileage')
|
|
5877
6021
|
self.validate_required(self.total_duration, 'total_duration')
|
|
5878
|
-
self.
|
|
6022
|
+
if self.total_duration:
|
|
6023
|
+
self.total_duration.validate()
|
|
6024
|
+
self.validate_required(self.total_count, 'total_count')
|
|
6025
|
+
self.validate_required(self.period_code, 'period_code')
|
|
5879
6026
|
|
|
5880
6027
|
def to_map(self):
|
|
5881
6028
|
_map = super().to_map()
|
|
@@ -5883,26 +6030,27 @@ class TripStatistics(TeaModel):
|
|
|
5883
6030
|
return _map
|
|
5884
6031
|
|
|
5885
6032
|
result = dict()
|
|
5886
|
-
if self.
|
|
5887
|
-
result['
|
|
5888
|
-
if self.total_distance is not None:
|
|
5889
|
-
result['total_distance'] = self.total_distance
|
|
6033
|
+
if self.total_mileage is not None:
|
|
6034
|
+
result['total_mileage'] = self.total_mileage
|
|
5890
6035
|
if self.total_duration is not None:
|
|
5891
|
-
result['total_duration'] = self.total_duration
|
|
5892
|
-
if self.
|
|
5893
|
-
result['
|
|
6036
|
+
result['total_duration'] = self.total_duration.to_map()
|
|
6037
|
+
if self.total_count is not None:
|
|
6038
|
+
result['total_count'] = self.total_count
|
|
6039
|
+
if self.period_code is not None:
|
|
6040
|
+
result['period_code'] = self.period_code
|
|
5894
6041
|
return result
|
|
5895
6042
|
|
|
5896
6043
|
def from_map(self, m: dict = None):
|
|
5897
6044
|
m = m or dict()
|
|
5898
|
-
if m.get('
|
|
5899
|
-
self.
|
|
5900
|
-
if m.get('total_distance') is not None:
|
|
5901
|
-
self.total_distance = m.get('total_distance')
|
|
6045
|
+
if m.get('total_mileage') is not None:
|
|
6046
|
+
self.total_mileage = m.get('total_mileage')
|
|
5902
6047
|
if m.get('total_duration') is not None:
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
6048
|
+
temp_model = TripDuration()
|
|
6049
|
+
self.total_duration = temp_model.from_map(m['total_duration'])
|
|
6050
|
+
if m.get('total_count') is not None:
|
|
6051
|
+
self.total_count = m.get('total_count')
|
|
6052
|
+
if m.get('period_code') is not None:
|
|
6053
|
+
self.period_code = m.get('period_code')
|
|
5906
6054
|
return self
|
|
5907
6055
|
|
|
5908
6056
|
|
|
@@ -29285,6 +29433,524 @@ class PushDeviceAudioResponse(TeaModel):
|
|
|
29285
29433
|
return self
|
|
29286
29434
|
|
|
29287
29435
|
|
|
29436
|
+
class QueryElectrocarTripstatisticsRequest(TeaModel):
|
|
29437
|
+
def __init__(
|
|
29438
|
+
self,
|
|
29439
|
+
auth_token: str = None,
|
|
29440
|
+
product_instance_id: str = None,
|
|
29441
|
+
tuid: str = None,
|
|
29442
|
+
time_dimension: str = None,
|
|
29443
|
+
time_value: int = None,
|
|
29444
|
+
past_days: int = None,
|
|
29445
|
+
):
|
|
29446
|
+
# OAuth模式下的授权token
|
|
29447
|
+
self.auth_token = auth_token
|
|
29448
|
+
self.product_instance_id = product_instance_id
|
|
29449
|
+
# tuid
|
|
29450
|
+
self.tuid = tuid
|
|
29451
|
+
# String MONTH(月)
|
|
29452
|
+
# WEEK(周)
|
|
29453
|
+
# DAY(日)
|
|
29454
|
+
self.time_dimension = time_dimension
|
|
29455
|
+
# 时间戳(每月的第一天00:00, 每周的第一天00:00, 每日的00:00)
|
|
29456
|
+
self.time_value = time_value
|
|
29457
|
+
# 前 n 月/周/日, 包含当前月/周/日(默认9)
|
|
29458
|
+
self.past_days = past_days
|
|
29459
|
+
|
|
29460
|
+
def validate(self):
|
|
29461
|
+
self.validate_required(self.tuid, 'tuid')
|
|
29462
|
+
self.validate_required(self.time_dimension, 'time_dimension')
|
|
29463
|
+
self.validate_required(self.time_value, 'time_value')
|
|
29464
|
+
self.validate_required(self.past_days, 'past_days')
|
|
29465
|
+
|
|
29466
|
+
def to_map(self):
|
|
29467
|
+
_map = super().to_map()
|
|
29468
|
+
if _map is not None:
|
|
29469
|
+
return _map
|
|
29470
|
+
|
|
29471
|
+
result = dict()
|
|
29472
|
+
if self.auth_token is not None:
|
|
29473
|
+
result['auth_token'] = self.auth_token
|
|
29474
|
+
if self.product_instance_id is not None:
|
|
29475
|
+
result['product_instance_id'] = self.product_instance_id
|
|
29476
|
+
if self.tuid is not None:
|
|
29477
|
+
result['tuid'] = self.tuid
|
|
29478
|
+
if self.time_dimension is not None:
|
|
29479
|
+
result['time_dimension'] = self.time_dimension
|
|
29480
|
+
if self.time_value is not None:
|
|
29481
|
+
result['time_value'] = self.time_value
|
|
29482
|
+
if self.past_days is not None:
|
|
29483
|
+
result['past_days'] = self.past_days
|
|
29484
|
+
return result
|
|
29485
|
+
|
|
29486
|
+
def from_map(self, m: dict = None):
|
|
29487
|
+
m = m or dict()
|
|
29488
|
+
if m.get('auth_token') is not None:
|
|
29489
|
+
self.auth_token = m.get('auth_token')
|
|
29490
|
+
if m.get('product_instance_id') is not None:
|
|
29491
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
29492
|
+
if m.get('tuid') is not None:
|
|
29493
|
+
self.tuid = m.get('tuid')
|
|
29494
|
+
if m.get('time_dimension') is not None:
|
|
29495
|
+
self.time_dimension = m.get('time_dimension')
|
|
29496
|
+
if m.get('time_value') is not None:
|
|
29497
|
+
self.time_value = m.get('time_value')
|
|
29498
|
+
if m.get('past_days') is not None:
|
|
29499
|
+
self.past_days = m.get('past_days')
|
|
29500
|
+
return self
|
|
29501
|
+
|
|
29502
|
+
|
|
29503
|
+
class QueryElectrocarTripstatisticsResponse(TeaModel):
|
|
29504
|
+
def __init__(
|
|
29505
|
+
self,
|
|
29506
|
+
req_msg_id: str = None,
|
|
29507
|
+
result_code: str = None,
|
|
29508
|
+
result_msg: str = None,
|
|
29509
|
+
success: bool = None,
|
|
29510
|
+
trip_statistics: List[TripStatistics] = None,
|
|
29511
|
+
):
|
|
29512
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
29513
|
+
self.req_msg_id = req_msg_id
|
|
29514
|
+
# 结果码,一般OK表示调用成功
|
|
29515
|
+
self.result_code = result_code
|
|
29516
|
+
# 异常信息的文本描述
|
|
29517
|
+
self.result_msg = result_msg
|
|
29518
|
+
# 状态
|
|
29519
|
+
self.success = success
|
|
29520
|
+
# [{总里程、总用时、总次数、 时期码},{总里程、总用时、总次数、 时期码},......]
|
|
29521
|
+
# 备注:返回前八个加上当前共九个的统计数据(按时间正排)
|
|
29522
|
+
# 时期码说明:
|
|
29523
|
+
# 月维度:
|
|
29524
|
+
# eg1: 12,11,10,9...
|
|
29525
|
+
# eg2: 3, 2, 1, 12(去年12月), 11...
|
|
29526
|
+
# 周维度:
|
|
29527
|
+
# eg1: 52,51,50,49...
|
|
29528
|
+
# eg2: 3,2,1,52(去年最后一周), 51...
|
|
29529
|
+
# 日维度:
|
|
29530
|
+
# eg1: 30,29,28,27...
|
|
29531
|
+
# eg2: 3,2,1,30(上个月最后一天),29...
|
|
29532
|
+
self.trip_statistics = trip_statistics
|
|
29533
|
+
|
|
29534
|
+
def validate(self):
|
|
29535
|
+
if self.trip_statistics:
|
|
29536
|
+
for k in self.trip_statistics:
|
|
29537
|
+
if k:
|
|
29538
|
+
k.validate()
|
|
29539
|
+
|
|
29540
|
+
def to_map(self):
|
|
29541
|
+
_map = super().to_map()
|
|
29542
|
+
if _map is not None:
|
|
29543
|
+
return _map
|
|
29544
|
+
|
|
29545
|
+
result = dict()
|
|
29546
|
+
if self.req_msg_id is not None:
|
|
29547
|
+
result['req_msg_id'] = self.req_msg_id
|
|
29548
|
+
if self.result_code is not None:
|
|
29549
|
+
result['result_code'] = self.result_code
|
|
29550
|
+
if self.result_msg is not None:
|
|
29551
|
+
result['result_msg'] = self.result_msg
|
|
29552
|
+
if self.success is not None:
|
|
29553
|
+
result['success'] = self.success
|
|
29554
|
+
result['trip_statistics'] = []
|
|
29555
|
+
if self.trip_statistics is not None:
|
|
29556
|
+
for k in self.trip_statistics:
|
|
29557
|
+
result['trip_statistics'].append(k.to_map() if k else None)
|
|
29558
|
+
return result
|
|
29559
|
+
|
|
29560
|
+
def from_map(self, m: dict = None):
|
|
29561
|
+
m = m or dict()
|
|
29562
|
+
if m.get('req_msg_id') is not None:
|
|
29563
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
29564
|
+
if m.get('result_code') is not None:
|
|
29565
|
+
self.result_code = m.get('result_code')
|
|
29566
|
+
if m.get('result_msg') is not None:
|
|
29567
|
+
self.result_msg = m.get('result_msg')
|
|
29568
|
+
if m.get('success') is not None:
|
|
29569
|
+
self.success = m.get('success')
|
|
29570
|
+
self.trip_statistics = []
|
|
29571
|
+
if m.get('trip_statistics') is not None:
|
|
29572
|
+
for k in m.get('trip_statistics'):
|
|
29573
|
+
temp_model = TripStatistics()
|
|
29574
|
+
self.trip_statistics.append(temp_model.from_map(k))
|
|
29575
|
+
return self
|
|
29576
|
+
|
|
29577
|
+
|
|
29578
|
+
class QueryElectrocarTriplistRequest(TeaModel):
|
|
29579
|
+
def __init__(
|
|
29580
|
+
self,
|
|
29581
|
+
auth_token: str = None,
|
|
29582
|
+
product_instance_id: str = None,
|
|
29583
|
+
tuid: str = None,
|
|
29584
|
+
time_dimension: str = None,
|
|
29585
|
+
time_value: int = None,
|
|
29586
|
+
page_num: int = None,
|
|
29587
|
+
page_size: int = None,
|
|
29588
|
+
):
|
|
29589
|
+
# OAuth模式下的授权token
|
|
29590
|
+
self.auth_token = auth_token
|
|
29591
|
+
self.product_instance_id = product_instance_id
|
|
29592
|
+
# tuid
|
|
29593
|
+
self.tuid = tuid
|
|
29594
|
+
# MONTH(月)
|
|
29595
|
+
# WEEK(周)
|
|
29596
|
+
# DAY(日)
|
|
29597
|
+
self.time_dimension = time_dimension
|
|
29598
|
+
# Long 时间戳(每月的第一天00:00, 每周的第一天00:00, 每日的00:00)
|
|
29599
|
+
self.time_value = time_value
|
|
29600
|
+
# 分页
|
|
29601
|
+
self.page_num = page_num
|
|
29602
|
+
# 分页
|
|
29603
|
+
self.page_size = page_size
|
|
29604
|
+
|
|
29605
|
+
def validate(self):
|
|
29606
|
+
self.validate_required(self.tuid, 'tuid')
|
|
29607
|
+
self.validate_required(self.time_dimension, 'time_dimension')
|
|
29608
|
+
self.validate_required(self.time_value, 'time_value')
|
|
29609
|
+
self.validate_required(self.page_num, 'page_num')
|
|
29610
|
+
self.validate_required(self.page_size, 'page_size')
|
|
29611
|
+
|
|
29612
|
+
def to_map(self):
|
|
29613
|
+
_map = super().to_map()
|
|
29614
|
+
if _map is not None:
|
|
29615
|
+
return _map
|
|
29616
|
+
|
|
29617
|
+
result = dict()
|
|
29618
|
+
if self.auth_token is not None:
|
|
29619
|
+
result['auth_token'] = self.auth_token
|
|
29620
|
+
if self.product_instance_id is not None:
|
|
29621
|
+
result['product_instance_id'] = self.product_instance_id
|
|
29622
|
+
if self.tuid is not None:
|
|
29623
|
+
result['tuid'] = self.tuid
|
|
29624
|
+
if self.time_dimension is not None:
|
|
29625
|
+
result['time_dimension'] = self.time_dimension
|
|
29626
|
+
if self.time_value is not None:
|
|
29627
|
+
result['time_value'] = self.time_value
|
|
29628
|
+
if self.page_num is not None:
|
|
29629
|
+
result['page_num'] = self.page_num
|
|
29630
|
+
if self.page_size is not None:
|
|
29631
|
+
result['page_size'] = self.page_size
|
|
29632
|
+
return result
|
|
29633
|
+
|
|
29634
|
+
def from_map(self, m: dict = None):
|
|
29635
|
+
m = m or dict()
|
|
29636
|
+
if m.get('auth_token') is not None:
|
|
29637
|
+
self.auth_token = m.get('auth_token')
|
|
29638
|
+
if m.get('product_instance_id') is not None:
|
|
29639
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
29640
|
+
if m.get('tuid') is not None:
|
|
29641
|
+
self.tuid = m.get('tuid')
|
|
29642
|
+
if m.get('time_dimension') is not None:
|
|
29643
|
+
self.time_dimension = m.get('time_dimension')
|
|
29644
|
+
if m.get('time_value') is not None:
|
|
29645
|
+
self.time_value = m.get('time_value')
|
|
29646
|
+
if m.get('page_num') is not None:
|
|
29647
|
+
self.page_num = m.get('page_num')
|
|
29648
|
+
if m.get('page_size') is not None:
|
|
29649
|
+
self.page_size = m.get('page_size')
|
|
29650
|
+
return self
|
|
29651
|
+
|
|
29652
|
+
|
|
29653
|
+
class QueryElectrocarTriplistResponse(TeaModel):
|
|
29654
|
+
def __init__(
|
|
29655
|
+
self,
|
|
29656
|
+
req_msg_id: str = None,
|
|
29657
|
+
result_code: str = None,
|
|
29658
|
+
result_msg: str = None,
|
|
29659
|
+
success: bool = None,
|
|
29660
|
+
trip_detail_list: List[TripDetail] = None,
|
|
29661
|
+
):
|
|
29662
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
29663
|
+
self.req_msg_id = req_msg_id
|
|
29664
|
+
# 结果码,一般OK表示调用成功
|
|
29665
|
+
self.result_code = result_code
|
|
29666
|
+
# 异常信息的文本描述
|
|
29667
|
+
self.result_msg = result_msg
|
|
29668
|
+
# 状态
|
|
29669
|
+
self.success = success
|
|
29670
|
+
# 行程列表
|
|
29671
|
+
self.trip_detail_list = trip_detail_list
|
|
29672
|
+
|
|
29673
|
+
def validate(self):
|
|
29674
|
+
if self.trip_detail_list:
|
|
29675
|
+
for k in self.trip_detail_list:
|
|
29676
|
+
if k:
|
|
29677
|
+
k.validate()
|
|
29678
|
+
|
|
29679
|
+
def to_map(self):
|
|
29680
|
+
_map = super().to_map()
|
|
29681
|
+
if _map is not None:
|
|
29682
|
+
return _map
|
|
29683
|
+
|
|
29684
|
+
result = dict()
|
|
29685
|
+
if self.req_msg_id is not None:
|
|
29686
|
+
result['req_msg_id'] = self.req_msg_id
|
|
29687
|
+
if self.result_code is not None:
|
|
29688
|
+
result['result_code'] = self.result_code
|
|
29689
|
+
if self.result_msg is not None:
|
|
29690
|
+
result['result_msg'] = self.result_msg
|
|
29691
|
+
if self.success is not None:
|
|
29692
|
+
result['success'] = self.success
|
|
29693
|
+
result['trip_detail_list'] = []
|
|
29694
|
+
if self.trip_detail_list is not None:
|
|
29695
|
+
for k in self.trip_detail_list:
|
|
29696
|
+
result['trip_detail_list'].append(k.to_map() if k else None)
|
|
29697
|
+
return result
|
|
29698
|
+
|
|
29699
|
+
def from_map(self, m: dict = None):
|
|
29700
|
+
m = m or dict()
|
|
29701
|
+
if m.get('req_msg_id') is not None:
|
|
29702
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
29703
|
+
if m.get('result_code') is not None:
|
|
29704
|
+
self.result_code = m.get('result_code')
|
|
29705
|
+
if m.get('result_msg') is not None:
|
|
29706
|
+
self.result_msg = m.get('result_msg')
|
|
29707
|
+
if m.get('success') is not None:
|
|
29708
|
+
self.success = m.get('success')
|
|
29709
|
+
self.trip_detail_list = []
|
|
29710
|
+
if m.get('trip_detail_list') is not None:
|
|
29711
|
+
for k in m.get('trip_detail_list'):
|
|
29712
|
+
temp_model = TripDetail()
|
|
29713
|
+
self.trip_detail_list.append(temp_model.from_map(k))
|
|
29714
|
+
return self
|
|
29715
|
+
|
|
29716
|
+
|
|
29717
|
+
class QueryElectrocarTrippointsRequest(TeaModel):
|
|
29718
|
+
def __init__(
|
|
29719
|
+
self,
|
|
29720
|
+
auth_token: str = None,
|
|
29721
|
+
product_instance_id: str = None,
|
|
29722
|
+
tuid: str = None,
|
|
29723
|
+
trip_id: str = None,
|
|
29724
|
+
):
|
|
29725
|
+
# OAuth模式下的授权token
|
|
29726
|
+
self.auth_token = auth_token
|
|
29727
|
+
self.product_instance_id = product_instance_id
|
|
29728
|
+
# tuid
|
|
29729
|
+
self.tuid = tuid
|
|
29730
|
+
# 行程id
|
|
29731
|
+
self.trip_id = trip_id
|
|
29732
|
+
|
|
29733
|
+
def validate(self):
|
|
29734
|
+
self.validate_required(self.tuid, 'tuid')
|
|
29735
|
+
self.validate_required(self.trip_id, 'trip_id')
|
|
29736
|
+
|
|
29737
|
+
def to_map(self):
|
|
29738
|
+
_map = super().to_map()
|
|
29739
|
+
if _map is not None:
|
|
29740
|
+
return _map
|
|
29741
|
+
|
|
29742
|
+
result = dict()
|
|
29743
|
+
if self.auth_token is not None:
|
|
29744
|
+
result['auth_token'] = self.auth_token
|
|
29745
|
+
if self.product_instance_id is not None:
|
|
29746
|
+
result['product_instance_id'] = self.product_instance_id
|
|
29747
|
+
if self.tuid is not None:
|
|
29748
|
+
result['tuid'] = self.tuid
|
|
29749
|
+
if self.trip_id is not None:
|
|
29750
|
+
result['trip_id'] = self.trip_id
|
|
29751
|
+
return result
|
|
29752
|
+
|
|
29753
|
+
def from_map(self, m: dict = None):
|
|
29754
|
+
m = m or dict()
|
|
29755
|
+
if m.get('auth_token') is not None:
|
|
29756
|
+
self.auth_token = m.get('auth_token')
|
|
29757
|
+
if m.get('product_instance_id') is not None:
|
|
29758
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
29759
|
+
if m.get('tuid') is not None:
|
|
29760
|
+
self.tuid = m.get('tuid')
|
|
29761
|
+
if m.get('trip_id') is not None:
|
|
29762
|
+
self.trip_id = m.get('trip_id')
|
|
29763
|
+
return self
|
|
29764
|
+
|
|
29765
|
+
|
|
29766
|
+
class QueryElectrocarTrippointsResponse(TeaModel):
|
|
29767
|
+
def __init__(
|
|
29768
|
+
self,
|
|
29769
|
+
req_msg_id: str = None,
|
|
29770
|
+
result_code: str = None,
|
|
29771
|
+
result_msg: str = None,
|
|
29772
|
+
success: bool = None,
|
|
29773
|
+
trip_points: List[str] = None,
|
|
29774
|
+
):
|
|
29775
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
29776
|
+
self.req_msg_id = req_msg_id
|
|
29777
|
+
# 结果码,一般OK表示调用成功
|
|
29778
|
+
self.result_code = result_code
|
|
29779
|
+
# 异常信息的文本描述
|
|
29780
|
+
self.result_msg = result_msg
|
|
29781
|
+
# 状态
|
|
29782
|
+
self.success = success
|
|
29783
|
+
# List<String> ["123.1223456_12.123456", "123.1223456_12.123456"]
|
|
29784
|
+
self.trip_points = trip_points
|
|
29785
|
+
|
|
29786
|
+
def validate(self):
|
|
29787
|
+
pass
|
|
29788
|
+
|
|
29789
|
+
def to_map(self):
|
|
29790
|
+
_map = super().to_map()
|
|
29791
|
+
if _map is not None:
|
|
29792
|
+
return _map
|
|
29793
|
+
|
|
29794
|
+
result = dict()
|
|
29795
|
+
if self.req_msg_id is not None:
|
|
29796
|
+
result['req_msg_id'] = self.req_msg_id
|
|
29797
|
+
if self.result_code is not None:
|
|
29798
|
+
result['result_code'] = self.result_code
|
|
29799
|
+
if self.result_msg is not None:
|
|
29800
|
+
result['result_msg'] = self.result_msg
|
|
29801
|
+
if self.success is not None:
|
|
29802
|
+
result['success'] = self.success
|
|
29803
|
+
if self.trip_points is not None:
|
|
29804
|
+
result['trip_points'] = self.trip_points
|
|
29805
|
+
return result
|
|
29806
|
+
|
|
29807
|
+
def from_map(self, m: dict = None):
|
|
29808
|
+
m = m or dict()
|
|
29809
|
+
if m.get('req_msg_id') is not None:
|
|
29810
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
29811
|
+
if m.get('result_code') is not None:
|
|
29812
|
+
self.result_code = m.get('result_code')
|
|
29813
|
+
if m.get('result_msg') is not None:
|
|
29814
|
+
self.result_msg = m.get('result_msg')
|
|
29815
|
+
if m.get('success') is not None:
|
|
29816
|
+
self.success = m.get('success')
|
|
29817
|
+
if m.get('trip_points') is not None:
|
|
29818
|
+
self.trip_points = m.get('trip_points')
|
|
29819
|
+
return self
|
|
29820
|
+
|
|
29821
|
+
|
|
29822
|
+
class QueryElectrocarTriplastRequest(TeaModel):
|
|
29823
|
+
def __init__(
|
|
29824
|
+
self,
|
|
29825
|
+
auth_token: str = None,
|
|
29826
|
+
product_instance_id: str = None,
|
|
29827
|
+
tuid: str = None,
|
|
29828
|
+
time_dimension: str = None,
|
|
29829
|
+
time_value: int = None,
|
|
29830
|
+
):
|
|
29831
|
+
# OAuth模式下的授权token
|
|
29832
|
+
self.auth_token = auth_token
|
|
29833
|
+
self.product_instance_id = product_instance_id
|
|
29834
|
+
# tuid
|
|
29835
|
+
self.tuid = tuid
|
|
29836
|
+
# MONTH(月)
|
|
29837
|
+
# WEEK(周)
|
|
29838
|
+
# DAY(日)
|
|
29839
|
+
self.time_dimension = time_dimension
|
|
29840
|
+
# 时间戳
|
|
29841
|
+
self.time_value = time_value
|
|
29842
|
+
|
|
29843
|
+
def validate(self):
|
|
29844
|
+
self.validate_required(self.tuid, 'tuid')
|
|
29845
|
+
self.validate_required(self.time_dimension, 'time_dimension')
|
|
29846
|
+
self.validate_required(self.time_value, 'time_value')
|
|
29847
|
+
|
|
29848
|
+
def to_map(self):
|
|
29849
|
+
_map = super().to_map()
|
|
29850
|
+
if _map is not None:
|
|
29851
|
+
return _map
|
|
29852
|
+
|
|
29853
|
+
result = dict()
|
|
29854
|
+
if self.auth_token is not None:
|
|
29855
|
+
result['auth_token'] = self.auth_token
|
|
29856
|
+
if self.product_instance_id is not None:
|
|
29857
|
+
result['product_instance_id'] = self.product_instance_id
|
|
29858
|
+
if self.tuid is not None:
|
|
29859
|
+
result['tuid'] = self.tuid
|
|
29860
|
+
if self.time_dimension is not None:
|
|
29861
|
+
result['time_dimension'] = self.time_dimension
|
|
29862
|
+
if self.time_value is not None:
|
|
29863
|
+
result['time_value'] = self.time_value
|
|
29864
|
+
return result
|
|
29865
|
+
|
|
29866
|
+
def from_map(self, m: dict = None):
|
|
29867
|
+
m = m or dict()
|
|
29868
|
+
if m.get('auth_token') is not None:
|
|
29869
|
+
self.auth_token = m.get('auth_token')
|
|
29870
|
+
if m.get('product_instance_id') is not None:
|
|
29871
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
29872
|
+
if m.get('tuid') is not None:
|
|
29873
|
+
self.tuid = m.get('tuid')
|
|
29874
|
+
if m.get('time_dimension') is not None:
|
|
29875
|
+
self.time_dimension = m.get('time_dimension')
|
|
29876
|
+
if m.get('time_value') is not None:
|
|
29877
|
+
self.time_value = m.get('time_value')
|
|
29878
|
+
return self
|
|
29879
|
+
|
|
29880
|
+
|
|
29881
|
+
class QueryElectrocarTriplastResponse(TeaModel):
|
|
29882
|
+
def __init__(
|
|
29883
|
+
self,
|
|
29884
|
+
req_msg_id: str = None,
|
|
29885
|
+
result_code: str = None,
|
|
29886
|
+
result_msg: str = None,
|
|
29887
|
+
success: bool = None,
|
|
29888
|
+
last_trip_detail: TripDetail = None,
|
|
29889
|
+
):
|
|
29890
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
29891
|
+
self.req_msg_id = req_msg_id
|
|
29892
|
+
# 结果码,一般OK表示调用成功
|
|
29893
|
+
self.result_code = result_code
|
|
29894
|
+
# 异常信息的文本描述
|
|
29895
|
+
self.result_msg = result_msg
|
|
29896
|
+
# 状态
|
|
29897
|
+
self.success = success
|
|
29898
|
+
# {
|
|
29899
|
+
# "startTime":1733841600000,
|
|
29900
|
+
# "tripId":"T20251210140000001",
|
|
29901
|
+
# "endTime":1733845200000,
|
|
29902
|
+
# "mileage":36.8,
|
|
29903
|
+
# "duration":{
|
|
29904
|
+
# "value":"79",
|
|
29905
|
+
# "unit":"h"
|
|
29906
|
+
# },
|
|
29907
|
+
# "maxSpeed":85.5,
|
|
29908
|
+
# "avgSpeed":36.8,
|
|
29909
|
+
# "firstAddress":"上海市浦东新区张江高科技园区博云路",
|
|
29910
|
+
# "lastAddress":"上海市徐汇区漕河泾开发区桂平路",
|
|
29911
|
+
# "firstLocationTime":1733841605000,
|
|
29912
|
+
# "lastLocationTime":1733845195000
|
|
29913
|
+
# }
|
|
29914
|
+
self.last_trip_detail = last_trip_detail
|
|
29915
|
+
|
|
29916
|
+
def validate(self):
|
|
29917
|
+
if self.last_trip_detail:
|
|
29918
|
+
self.last_trip_detail.validate()
|
|
29919
|
+
|
|
29920
|
+
def to_map(self):
|
|
29921
|
+
_map = super().to_map()
|
|
29922
|
+
if _map is not None:
|
|
29923
|
+
return _map
|
|
29924
|
+
|
|
29925
|
+
result = dict()
|
|
29926
|
+
if self.req_msg_id is not None:
|
|
29927
|
+
result['req_msg_id'] = self.req_msg_id
|
|
29928
|
+
if self.result_code is not None:
|
|
29929
|
+
result['result_code'] = self.result_code
|
|
29930
|
+
if self.result_msg is not None:
|
|
29931
|
+
result['result_msg'] = self.result_msg
|
|
29932
|
+
if self.success is not None:
|
|
29933
|
+
result['success'] = self.success
|
|
29934
|
+
if self.last_trip_detail is not None:
|
|
29935
|
+
result['last_trip_detail'] = self.last_trip_detail.to_map()
|
|
29936
|
+
return result
|
|
29937
|
+
|
|
29938
|
+
def from_map(self, m: dict = None):
|
|
29939
|
+
m = m or dict()
|
|
29940
|
+
if m.get('req_msg_id') is not None:
|
|
29941
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
29942
|
+
if m.get('result_code') is not None:
|
|
29943
|
+
self.result_code = m.get('result_code')
|
|
29944
|
+
if m.get('result_msg') is not None:
|
|
29945
|
+
self.result_msg = m.get('result_msg')
|
|
29946
|
+
if m.get('success') is not None:
|
|
29947
|
+
self.success = m.get('success')
|
|
29948
|
+
if m.get('last_trip_detail') is not None:
|
|
29949
|
+
temp_model = TripDetail()
|
|
29950
|
+
self.last_trip_detail = temp_model.from_map(m['last_trip_detail'])
|
|
29951
|
+
return self
|
|
29952
|
+
|
|
29953
|
+
|
|
29288
29954
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
29289
29955
|
def __init__(
|
|
29290
29956
|
self,
|
|
@@ -44389,6 +45055,140 @@ class SendTaskalarmResponse(TeaModel):
|
|
|
44389
45055
|
return self
|
|
44390
45056
|
|
|
44391
45057
|
|
|
45058
|
+
class ApplyTechintegrationSkushipemptymodelbyuidRequest(TeaModel):
|
|
45059
|
+
def __init__(
|
|
45060
|
+
self,
|
|
45061
|
+
auth_token: str = None,
|
|
45062
|
+
product_instance_id: str = None,
|
|
45063
|
+
vendor_id: str = None,
|
|
45064
|
+
product_id: str = None,
|
|
45065
|
+
device_id: str = None,
|
|
45066
|
+
product_type: int = None,
|
|
45067
|
+
cert_type: int = None,
|
|
45068
|
+
id_2: str = None,
|
|
45069
|
+
):
|
|
45070
|
+
# OAuth模式下的授权token
|
|
45071
|
+
self.auth_token = auth_token
|
|
45072
|
+
self.product_instance_id = product_instance_id
|
|
45073
|
+
# 场景码
|
|
45074
|
+
self.vendor_id = vendor_id
|
|
45075
|
+
# 设备型号
|
|
45076
|
+
self.product_id = product_id
|
|
45077
|
+
# 设备SN号
|
|
45078
|
+
self.device_id = device_id
|
|
45079
|
+
# 产品类型
|
|
45080
|
+
self.product_type = product_type
|
|
45081
|
+
# 凭证种类,高八位表示是否下发凭证,低八位表示安全方案
|
|
45082
|
+
self.cert_type = cert_type
|
|
45083
|
+
# id2 authCode
|
|
45084
|
+
self.id_2 = id_2
|
|
45085
|
+
|
|
45086
|
+
def validate(self):
|
|
45087
|
+
self.validate_required(self.vendor_id, 'vendor_id')
|
|
45088
|
+
self.validate_required(self.product_id, 'product_id')
|
|
45089
|
+
self.validate_required(self.device_id, 'device_id')
|
|
45090
|
+
|
|
45091
|
+
def to_map(self):
|
|
45092
|
+
_map = super().to_map()
|
|
45093
|
+
if _map is not None:
|
|
45094
|
+
return _map
|
|
45095
|
+
|
|
45096
|
+
result = dict()
|
|
45097
|
+
if self.auth_token is not None:
|
|
45098
|
+
result['auth_token'] = self.auth_token
|
|
45099
|
+
if self.product_instance_id is not None:
|
|
45100
|
+
result['product_instance_id'] = self.product_instance_id
|
|
45101
|
+
if self.vendor_id is not None:
|
|
45102
|
+
result['vendor_id'] = self.vendor_id
|
|
45103
|
+
if self.product_id is not None:
|
|
45104
|
+
result['product_id'] = self.product_id
|
|
45105
|
+
if self.device_id is not None:
|
|
45106
|
+
result['device_id'] = self.device_id
|
|
45107
|
+
if self.product_type is not None:
|
|
45108
|
+
result['product_type'] = self.product_type
|
|
45109
|
+
if self.cert_type is not None:
|
|
45110
|
+
result['cert_type'] = self.cert_type
|
|
45111
|
+
if self.id_2 is not None:
|
|
45112
|
+
result['id2'] = self.id_2
|
|
45113
|
+
return result
|
|
45114
|
+
|
|
45115
|
+
def from_map(self, m: dict = None):
|
|
45116
|
+
m = m or dict()
|
|
45117
|
+
if m.get('auth_token') is not None:
|
|
45118
|
+
self.auth_token = m.get('auth_token')
|
|
45119
|
+
if m.get('product_instance_id') is not None:
|
|
45120
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
45121
|
+
if m.get('vendor_id') is not None:
|
|
45122
|
+
self.vendor_id = m.get('vendor_id')
|
|
45123
|
+
if m.get('product_id') is not None:
|
|
45124
|
+
self.product_id = m.get('product_id')
|
|
45125
|
+
if m.get('device_id') is not None:
|
|
45126
|
+
self.device_id = m.get('device_id')
|
|
45127
|
+
if m.get('product_type') is not None:
|
|
45128
|
+
self.product_type = m.get('product_type')
|
|
45129
|
+
if m.get('cert_type') is not None:
|
|
45130
|
+
self.cert_type = m.get('cert_type')
|
|
45131
|
+
if m.get('id2') is not None:
|
|
45132
|
+
self.id_2 = m.get('id2')
|
|
45133
|
+
return self
|
|
45134
|
+
|
|
45135
|
+
|
|
45136
|
+
class ApplyTechintegrationSkushipemptymodelbyuidResponse(TeaModel):
|
|
45137
|
+
def __init__(
|
|
45138
|
+
self,
|
|
45139
|
+
req_msg_id: str = None,
|
|
45140
|
+
result_code: str = None,
|
|
45141
|
+
result_msg: str = None,
|
|
45142
|
+
cert: str = None,
|
|
45143
|
+
id_2: str = None,
|
|
45144
|
+
):
|
|
45145
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
45146
|
+
self.req_msg_id = req_msg_id
|
|
45147
|
+
# 结果码,一般OK表示调用成功
|
|
45148
|
+
self.result_code = result_code
|
|
45149
|
+
# 异常信息的文本描述
|
|
45150
|
+
self.result_msg = result_msg
|
|
45151
|
+
# 证书信息
|
|
45152
|
+
self.cert = cert
|
|
45153
|
+
# Id2信息
|
|
45154
|
+
self.id_2 = id_2
|
|
45155
|
+
|
|
45156
|
+
def validate(self):
|
|
45157
|
+
pass
|
|
45158
|
+
|
|
45159
|
+
def to_map(self):
|
|
45160
|
+
_map = super().to_map()
|
|
45161
|
+
if _map is not None:
|
|
45162
|
+
return _map
|
|
45163
|
+
|
|
45164
|
+
result = dict()
|
|
45165
|
+
if self.req_msg_id is not None:
|
|
45166
|
+
result['req_msg_id'] = self.req_msg_id
|
|
45167
|
+
if self.result_code is not None:
|
|
45168
|
+
result['result_code'] = self.result_code
|
|
45169
|
+
if self.result_msg is not None:
|
|
45170
|
+
result['result_msg'] = self.result_msg
|
|
45171
|
+
if self.cert is not None:
|
|
45172
|
+
result['cert'] = self.cert
|
|
45173
|
+
if self.id_2 is not None:
|
|
45174
|
+
result['id2'] = self.id_2
|
|
45175
|
+
return result
|
|
45176
|
+
|
|
45177
|
+
def from_map(self, m: dict = None):
|
|
45178
|
+
m = m or dict()
|
|
45179
|
+
if m.get('req_msg_id') is not None:
|
|
45180
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
45181
|
+
if m.get('result_code') is not None:
|
|
45182
|
+
self.result_code = m.get('result_code')
|
|
45183
|
+
if m.get('result_msg') is not None:
|
|
45184
|
+
self.result_msg = m.get('result_msg')
|
|
45185
|
+
if m.get('cert') is not None:
|
|
45186
|
+
self.cert = m.get('cert')
|
|
45187
|
+
if m.get('id2') is not None:
|
|
45188
|
+
self.id_2 = m.get('id2')
|
|
45189
|
+
return self
|
|
45190
|
+
|
|
45191
|
+
|
|
44392
45192
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
44393
45193
|
def __init__(
|
|
44394
45194
|
self,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
antchain_sdk_bot/__init__.py,sha256=YuFU_eplaB60zA8ZfOVtuC13N1T_Iyr4TcK7yr1gpdk,23
|
|
2
|
-
antchain_sdk_bot/client.py,sha256=S0ZOR86ikSZDL5JCnTtV4fLNhRzYPDU-kTcm8xaRvWA,643746
|
|
3
|
-
antchain_sdk_bot/models.py,sha256=0P0tcFZeP2vn42qw-_B2i73JxGFulc37A-kT8hO6FL8,1660842
|
|
4
|
-
antchain_bot-1.12.40.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
antchain_bot-1.12.40.dist-info/METADATA,sha256=vpOEk_dRW3a9yIrEpZCh7xzaQzXxQPhcqk5ra1l4a64,1989
|
|
6
|
-
antchain_bot-1.12.40.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
antchain_bot-1.12.40.dist-info/top_level.txt,sha256=gpn1OPRhS8ydjW8IxqApJiA6jx285ves96g9kcJN9iA,17
|
|
8
|
-
antchain_bot-1.12.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|