samsara-api 4.2.0__py3-none-any.whl → 4.3.0__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.
- samsara/__init__.py +69 -9
- samsara/addresses/client.py +7 -14
- samsara/addresses/raw_client.py +7 -11
- samsara/alerts/client.py +2 -10
- samsara/alerts/raw_client.py +180 -180
- samsara/assets/__init__.py +3 -3
- samsara/assets/client.py +14 -45
- samsara/assets/raw_client.py +156 -160
- samsara/assets/types/__init__.py +3 -3
- samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
- samsara/attributes/client.py +0 -4
- samsara/beta_ap_is/client.py +137 -187
- samsara/beta_ap_is/raw_client.py +2035 -1702
- samsara/carrier_proposed_assignments/client.py +2 -10
- samsara/client.py +5 -0
- samsara/coaching/client.py +2 -22
- samsara/coaching/raw_client.py +108 -108
- samsara/contacts/client.py +2 -8
- samsara/core/__init__.py +5 -0
- samsara/core/client_wrapper.py +18 -10
- samsara/core/custom_pagination.py +152 -0
- samsara/core/http_client.py +176 -90
- samsara/core/http_sse/__init__.py +42 -0
- samsara/core/http_sse/_api.py +112 -0
- samsara/core/http_sse/_decoders.py +61 -0
- samsara/core/http_sse/_exceptions.py +7 -0
- samsara/core/http_sse/_models.py +17 -0
- samsara/core/pagination.py +14 -14
- samsara/core/pydantic_utilities.py +3 -1
- samsara/documents/client.py +2 -12
- samsara/documents/raw_client.py +180 -180
- samsara/driver_qr_codes/raw_client.py +108 -108
- samsara/driver_vehicle_assignments/client.py +0 -12
- samsara/driver_vehicle_assignments/raw_client.py +144 -144
- samsara/drivers/__init__.py +3 -3
- samsara/drivers/client.py +12 -23
- samsara/drivers/raw_client.py +48 -52
- samsara/drivers/types/__init__.py +3 -3
- samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
- samsara/equipment/client.py +6 -22
- samsara/errors/bad_gateway_error.py +1 -1
- samsara/errors/gateway_timeout_error.py +1 -1
- samsara/errors/internal_server_error.py +1 -1
- samsara/errors/method_not_allowed_error.py +1 -1
- samsara/errors/not_found_error.py +1 -1
- samsara/errors/not_implemented_error.py +1 -1
- samsara/errors/service_unavailable_error.py +1 -1
- samsara/errors/too_many_requests_error.py +1 -1
- samsara/errors/unauthorized_error.py +1 -1
- samsara/forms/__init__.py +9 -3
- samsara/forms/client.py +17 -10
- samsara/forms/raw_client.py +265 -254
- samsara/forms/types/__init__.py +6 -2
- samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
- samsara/fuel_and_energy/client.py +0 -30
- samsara/fuel_and_energy/raw_client.py +180 -180
- samsara/gateways/client.py +2 -6
- samsara/gateways/raw_client.py +108 -108
- samsara/hours_of_service/__init__.py +6 -3
- samsara/hours_of_service/client.py +13 -52
- samsara/hours_of_service/raw_client.py +77 -76
- samsara/hours_of_service/types/__init__.py +4 -2
- samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
- samsara/hubs/client.py +2 -94
- samsara/hubs/raw_client.py +216 -216
- samsara/idling/client.py +0 -18
- samsara/idling/raw_client.py +36 -36
- samsara/ifta/client.py +4 -34
- samsara/ifta/raw_client.py +144 -144
- samsara/industrial/client.py +12 -56
- samsara/industrial/raw_client.py +40 -48
- samsara/issues/client.py +0 -4
- samsara/issues/raw_client.py +108 -108
- samsara/legacy_ap_is/client.py +4 -56
- samsara/legacy_ap_is/raw_client.py +108 -108
- samsara/live_sharing_links/client.py +2 -10
- samsara/live_sharing_links/raw_client.py +144 -144
- samsara/location_and_speed/client.py +2 -20
- samsara/location_and_speed/raw_client.py +36 -36
- samsara/maintenance/__init__.py +3 -3
- samsara/maintenance/client.py +15 -30
- samsara/maintenance/raw_client.py +191 -182
- samsara/maintenance/types/__init__.py +6 -2
- samsara/maintenance/types/create_dvir_request_type.py +5 -0
- samsara/media/client.py +0 -4
- samsara/media/raw_client.py +108 -108
- samsara/messages/client.py +2 -8
- samsara/plans/client.py +0 -21
- samsara/plans/raw_client.py +72 -72
- samsara/preview_ap_is/client.py +0 -140
- samsara/preview_ap_is/raw_client.py +72 -430
- samsara/route_events/client.py +2 -12
- samsara/route_events/raw_client.py +36 -36
- samsara/routes/__init__.py +30 -0
- samsara/routes/client.py +7 -35
- samsara/routes/raw_client.py +257 -256
- samsara/routes/types/__init__.py +34 -0
- samsara/routes/types/get_routes_feed_request_expand.py +5 -0
- samsara/safety/client.py +2 -10
- samsara/safety/raw_client.py +36 -36
- samsara/settings/raw_client.py +180 -180
- samsara/speeding_intervals/raw_client.py +36 -36
- samsara/tachograph_eu_only/client.py +0 -6
- samsara/tags/client.py +2 -8
- samsara/trailer_assignments/client.py +2 -18
- samsara/trailers/client.py +2 -12
- samsara/trailers/raw_client.py +180 -180
- samsara/types/__init__.py +54 -0
- samsara/types/create_routes_stop_request_object_request_body.py +7 -0
- samsara/types/driver_assignment_object_response_body.py +2 -1
- samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/driver_external_ids.py +1 -1
- samsara/types/forms_approval_config_object_response_body.py +2 -1
- samsara/types/forms_approval_config_object_response_body_type.py +5 -0
- samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
- samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
- samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
- samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
- samsara/types/idling_event_object_v_20251023_response_body.py +4 -3
- samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
- samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
- samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
- samsara/types/reading_datapoint_request_body.py +5 -4
- samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
- samsara/types/reading_history_response_body.py +1 -1
- samsara/types/reading_snapshot_response_body.py +1 -1
- samsara/types/resolved_by.py +2 -1
- samsara/types/resolved_by_type.py +5 -0
- samsara/types/route_feed_object_response_body.py +2 -1
- samsara/types/route_feed_object_response_body_type.py +5 -0
- samsara/types/route_settings_request_body.py +8 -0
- samsara/types/route_settings_request_body_sequencing_method.py +7 -0
- samsara/types/route_settings_response_body.py +8 -0
- samsara/types/route_settings_response_body_sequencing_method.py +7 -0
- samsara/types/route_stop_details_object_response_body.py +2 -1
- samsara/types/route_stop_details_object_response_body_type.py +5 -0
- samsara/types/routes_stop_response_object_response_body.py +7 -0
- samsara/types/training_learner_object_response_body.py +2 -1
- samsara/types/training_learner_object_response_body_type.py +5 -0
- samsara/types/update_routes_stop_request_object_request_body.py +7 -0
- samsara/types/vehicle_assignment_object_response_body.py +4 -3
- samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/vehicle_external_ids.py +1 -1
- samsara/types/work_order_money_object_request_body.py +2 -1
- samsara/types/work_order_money_object_request_body_currency.py +5 -0
- samsara/types/work_order_money_object_response_body.py +2 -1
- samsara/types/work_order_money_object_response_body_currency.py +5 -0
- samsara/users/client.py +4 -16
- samsara/vehicle_locations/client.py +4 -16
- samsara/vehicles/client.py +7 -22
- samsara/vehicles/raw_client.py +43 -47
- samsara/webhooks/client.py +2 -10
- samsara/webhooks/raw_client.py +180 -180
- samsara/work_orders/client.py +4 -18
- samsara/work_orders/raw_client.py +216 -216
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/RECORD +159 -132
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
samsara/industrial/client.py
CHANGED
|
@@ -97,10 +97,7 @@ class IndustrialClient:
|
|
|
97
97
|
client = Samsara(
|
|
98
98
|
token="YOUR_TOKEN",
|
|
99
99
|
)
|
|
100
|
-
client.industrial.get_industrial_assets(
|
|
101
|
-
limit=1000000,
|
|
102
|
-
after="after",
|
|
103
|
-
)
|
|
100
|
+
client.industrial.get_industrial_assets()
|
|
104
101
|
"""
|
|
105
102
|
_response = self._raw_client.get_industrial_assets(
|
|
106
103
|
limit=limit,
|
|
@@ -300,11 +297,7 @@ class IndustrialClient:
|
|
|
300
297
|
return _response.data
|
|
301
298
|
|
|
302
299
|
def patch_asset_data_outputs(
|
|
303
|
-
self,
|
|
304
|
-
id: str,
|
|
305
|
-
*,
|
|
306
|
-
values: typing.Dict[str, typing.Optional[typing.Any]],
|
|
307
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
300
|
+
self, id: str, *, values: typing.Dict[str, typing.Any], request_options: typing.Optional[RequestOptions] = None
|
|
308
301
|
) -> AssetDataOutputsPatchAssetDataOutputsResponseBody:
|
|
309
302
|
"""
|
|
310
303
|
Writes values to multiple data outputs on an asset simultaneously. Only the provided data outputs will be updated.
|
|
@@ -321,7 +314,7 @@ class IndustrialClient:
|
|
|
321
314
|
id : str
|
|
322
315
|
Asset ID
|
|
323
316
|
|
|
324
|
-
values : typing.Dict[str, typing.
|
|
317
|
+
values : typing.Dict[str, typing.Any]
|
|
325
318
|
A map of data output IDs to values. All data outputs must belong to the same asset. Only the specified IDs will be written to.
|
|
326
319
|
|
|
327
320
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -396,10 +389,7 @@ class IndustrialClient:
|
|
|
396
389
|
client = Samsara(
|
|
397
390
|
token="YOUR_TOKEN",
|
|
398
391
|
)
|
|
399
|
-
client.industrial.get_data_inputs(
|
|
400
|
-
limit=1000000,
|
|
401
|
-
after="after",
|
|
402
|
-
)
|
|
392
|
+
client.industrial.get_data_inputs()
|
|
403
393
|
"""
|
|
404
394
|
_response = self._raw_client.get_data_inputs(
|
|
405
395
|
limit=limit,
|
|
@@ -460,9 +450,7 @@ class IndustrialClient:
|
|
|
460
450
|
client = Samsara(
|
|
461
451
|
token="YOUR_TOKEN",
|
|
462
452
|
)
|
|
463
|
-
client.industrial.get_data_input_data_snapshot(
|
|
464
|
-
after="after",
|
|
465
|
-
)
|
|
453
|
+
client.industrial.get_data_input_data_snapshot()
|
|
466
454
|
"""
|
|
467
455
|
_response = self._raw_client.get_data_input_data_snapshot(
|
|
468
456
|
after=after,
|
|
@@ -529,9 +517,7 @@ class IndustrialClient:
|
|
|
529
517
|
client = Samsara(
|
|
530
518
|
token="YOUR_TOKEN",
|
|
531
519
|
)
|
|
532
|
-
client.industrial.get_data_input_data_feed(
|
|
533
|
-
after="after",
|
|
534
|
-
)
|
|
520
|
+
client.industrial.get_data_input_data_feed()
|
|
535
521
|
"""
|
|
536
522
|
_response = self._raw_client.get_data_input_data_feed(
|
|
537
523
|
after=after,
|
|
@@ -603,7 +589,6 @@ class IndustrialClient:
|
|
|
603
589
|
client.industrial.get_data_input_data_history(
|
|
604
590
|
start_time="startTime",
|
|
605
591
|
end_time="endTime",
|
|
606
|
-
after="after",
|
|
607
592
|
)
|
|
608
593
|
"""
|
|
609
594
|
_response = self._raw_client.get_data_input_data_history(
|
|
@@ -750,10 +735,6 @@ class IndustrialClient:
|
|
|
750
735
|
)
|
|
751
736
|
client.industrial.v_1_get_vision_latest_run_camera(
|
|
752
737
|
camera_id=1000000,
|
|
753
|
-
program_id=1000000,
|
|
754
|
-
started_at_ms=1000000,
|
|
755
|
-
include="include",
|
|
756
|
-
limit=1000000,
|
|
757
738
|
)
|
|
758
739
|
"""
|
|
759
740
|
_response = self._raw_client.v_1_get_vision_latest_run_camera(
|
|
@@ -812,7 +793,6 @@ class IndustrialClient:
|
|
|
812
793
|
)
|
|
813
794
|
client.industrial.v_1_get_vision_runs(
|
|
814
795
|
duration_ms=1000000,
|
|
815
|
-
end_ms=1000000,
|
|
816
796
|
)
|
|
817
797
|
"""
|
|
818
798
|
_response = self._raw_client.v_1_get_vision_runs(
|
|
@@ -871,7 +851,6 @@ class IndustrialClient:
|
|
|
871
851
|
client.industrial.get_vision_runs_by_camera(
|
|
872
852
|
camera_id=1000000,
|
|
873
853
|
duration_ms=1000000,
|
|
874
|
-
end_ms=1000000,
|
|
875
854
|
)
|
|
876
855
|
"""
|
|
877
856
|
_response = self._raw_client.get_vision_runs_by_camera(
|
|
@@ -935,7 +914,6 @@ class IndustrialClient:
|
|
|
935
914
|
camera_id=1000000,
|
|
936
915
|
program_id=1000000,
|
|
937
916
|
started_at_ms=1000000,
|
|
938
|
-
include="include",
|
|
939
917
|
)
|
|
940
918
|
"""
|
|
941
919
|
_response = self._raw_client.v_1_get_vision_runs_by_camera_and_program(
|
|
@@ -1100,10 +1078,7 @@ class AsyncIndustrialClient:
|
|
|
1100
1078
|
|
|
1101
1079
|
|
|
1102
1080
|
async def main() -> None:
|
|
1103
|
-
await client.industrial.get_industrial_assets(
|
|
1104
|
-
limit=1000000,
|
|
1105
|
-
after="after",
|
|
1106
|
-
)
|
|
1081
|
+
await client.industrial.get_industrial_assets()
|
|
1107
1082
|
|
|
1108
1083
|
|
|
1109
1084
|
asyncio.run(main())
|
|
@@ -1330,11 +1305,7 @@ class AsyncIndustrialClient:
|
|
|
1330
1305
|
return _response.data
|
|
1331
1306
|
|
|
1332
1307
|
async def patch_asset_data_outputs(
|
|
1333
|
-
self,
|
|
1334
|
-
id: str,
|
|
1335
|
-
*,
|
|
1336
|
-
values: typing.Dict[str, typing.Optional[typing.Any]],
|
|
1337
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
1308
|
+
self, id: str, *, values: typing.Dict[str, typing.Any], request_options: typing.Optional[RequestOptions] = None
|
|
1338
1309
|
) -> AssetDataOutputsPatchAssetDataOutputsResponseBody:
|
|
1339
1310
|
"""
|
|
1340
1311
|
Writes values to multiple data outputs on an asset simultaneously. Only the provided data outputs will be updated.
|
|
@@ -1351,7 +1322,7 @@ class AsyncIndustrialClient:
|
|
|
1351
1322
|
id : str
|
|
1352
1323
|
Asset ID
|
|
1353
1324
|
|
|
1354
|
-
values : typing.Dict[str, typing.
|
|
1325
|
+
values : typing.Dict[str, typing.Any]
|
|
1355
1326
|
A map of data output IDs to values. All data outputs must belong to the same asset. Only the specified IDs will be written to.
|
|
1356
1327
|
|
|
1357
1328
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -1439,10 +1410,7 @@ class AsyncIndustrialClient:
|
|
|
1439
1410
|
|
|
1440
1411
|
|
|
1441
1412
|
async def main() -> None:
|
|
1442
|
-
await client.industrial.get_data_inputs(
|
|
1443
|
-
limit=1000000,
|
|
1444
|
-
after="after",
|
|
1445
|
-
)
|
|
1413
|
+
await client.industrial.get_data_inputs()
|
|
1446
1414
|
|
|
1447
1415
|
|
|
1448
1416
|
asyncio.run(main())
|
|
@@ -1511,9 +1479,7 @@ class AsyncIndustrialClient:
|
|
|
1511
1479
|
|
|
1512
1480
|
|
|
1513
1481
|
async def main() -> None:
|
|
1514
|
-
await client.industrial.get_data_input_data_snapshot(
|
|
1515
|
-
after="after",
|
|
1516
|
-
)
|
|
1482
|
+
await client.industrial.get_data_input_data_snapshot()
|
|
1517
1483
|
|
|
1518
1484
|
|
|
1519
1485
|
asyncio.run(main())
|
|
@@ -1588,9 +1554,7 @@ class AsyncIndustrialClient:
|
|
|
1588
1554
|
|
|
1589
1555
|
|
|
1590
1556
|
async def main() -> None:
|
|
1591
|
-
await client.industrial.get_data_input_data_feed(
|
|
1592
|
-
after="after",
|
|
1593
|
-
)
|
|
1557
|
+
await client.industrial.get_data_input_data_feed()
|
|
1594
1558
|
|
|
1595
1559
|
|
|
1596
1560
|
asyncio.run(main())
|
|
@@ -1670,7 +1634,6 @@ class AsyncIndustrialClient:
|
|
|
1670
1634
|
await client.industrial.get_data_input_data_history(
|
|
1671
1635
|
start_time="startTime",
|
|
1672
1636
|
end_time="endTime",
|
|
1673
|
-
after="after",
|
|
1674
1637
|
)
|
|
1675
1638
|
|
|
1676
1639
|
|
|
@@ -1843,10 +1806,6 @@ class AsyncIndustrialClient:
|
|
|
1843
1806
|
async def main() -> None:
|
|
1844
1807
|
await client.industrial.v_1_get_vision_latest_run_camera(
|
|
1845
1808
|
camera_id=1000000,
|
|
1846
|
-
program_id=1000000,
|
|
1847
|
-
started_at_ms=1000000,
|
|
1848
|
-
include="include",
|
|
1849
|
-
limit=1000000,
|
|
1850
1809
|
)
|
|
1851
1810
|
|
|
1852
1811
|
|
|
@@ -1913,7 +1872,6 @@ class AsyncIndustrialClient:
|
|
|
1913
1872
|
async def main() -> None:
|
|
1914
1873
|
await client.industrial.v_1_get_vision_runs(
|
|
1915
1874
|
duration_ms=1000000,
|
|
1916
|
-
end_ms=1000000,
|
|
1917
1875
|
)
|
|
1918
1876
|
|
|
1919
1877
|
|
|
@@ -1980,7 +1938,6 @@ class AsyncIndustrialClient:
|
|
|
1980
1938
|
await client.industrial.get_vision_runs_by_camera(
|
|
1981
1939
|
camera_id=1000000,
|
|
1982
1940
|
duration_ms=1000000,
|
|
1983
|
-
end_ms=1000000,
|
|
1984
1941
|
)
|
|
1985
1942
|
|
|
1986
1943
|
|
|
@@ -2052,7 +2009,6 @@ class AsyncIndustrialClient:
|
|
|
2052
2009
|
camera_id=1000000,
|
|
2053
2010
|
program_id=1000000,
|
|
2054
2011
|
started_at_ms=1000000,
|
|
2055
|
-
include="include",
|
|
2056
2012
|
)
|
|
2057
2013
|
|
|
2058
2014
|
|
samsara/industrial/raw_client.py
CHANGED
|
@@ -337,11 +337,7 @@ class RawIndustrialClient:
|
|
|
337
337
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
338
338
|
|
|
339
339
|
def patch_asset_data_outputs(
|
|
340
|
-
self,
|
|
341
|
-
id: str,
|
|
342
|
-
*,
|
|
343
|
-
values: typing.Dict[str, typing.Optional[typing.Any]],
|
|
344
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
340
|
+
self, id: str, *, values: typing.Dict[str, typing.Any], request_options: typing.Optional[RequestOptions] = None
|
|
345
341
|
) -> HttpResponse[AssetDataOutputsPatchAssetDataOutputsResponseBody]:
|
|
346
342
|
"""
|
|
347
343
|
Writes values to multiple data outputs on an asset simultaneously. Only the provided data outputs will be updated.
|
|
@@ -358,7 +354,7 @@ class RawIndustrialClient:
|
|
|
358
354
|
id : str
|
|
359
355
|
Asset ID
|
|
360
356
|
|
|
361
|
-
values : typing.Dict[str, typing.
|
|
357
|
+
values : typing.Dict[str, typing.Any]
|
|
362
358
|
A map of data output IDs to values. All data outputs must belong to the same asset. Only the specified IDs will be written to.
|
|
363
359
|
|
|
364
360
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -395,9 +391,9 @@ class RawIndustrialClient:
|
|
|
395
391
|
raise UnauthorizedError(
|
|
396
392
|
headers=dict(_response.headers),
|
|
397
393
|
body=typing.cast(
|
|
398
|
-
typing.
|
|
394
|
+
typing.Any,
|
|
399
395
|
parse_obj_as(
|
|
400
|
-
type_=typing.
|
|
396
|
+
type_=typing.Any, # type: ignore
|
|
401
397
|
object_=_response.json(),
|
|
402
398
|
),
|
|
403
399
|
),
|
|
@@ -406,9 +402,9 @@ class RawIndustrialClient:
|
|
|
406
402
|
raise NotFoundError(
|
|
407
403
|
headers=dict(_response.headers),
|
|
408
404
|
body=typing.cast(
|
|
409
|
-
typing.
|
|
405
|
+
typing.Any,
|
|
410
406
|
parse_obj_as(
|
|
411
|
-
type_=typing.
|
|
407
|
+
type_=typing.Any, # type: ignore
|
|
412
408
|
object_=_response.json(),
|
|
413
409
|
),
|
|
414
410
|
),
|
|
@@ -417,9 +413,9 @@ class RawIndustrialClient:
|
|
|
417
413
|
raise MethodNotAllowedError(
|
|
418
414
|
headers=dict(_response.headers),
|
|
419
415
|
body=typing.cast(
|
|
420
|
-
typing.
|
|
416
|
+
typing.Any,
|
|
421
417
|
parse_obj_as(
|
|
422
|
-
type_=typing.
|
|
418
|
+
type_=typing.Any, # type: ignore
|
|
423
419
|
object_=_response.json(),
|
|
424
420
|
),
|
|
425
421
|
),
|
|
@@ -428,9 +424,9 @@ class RawIndustrialClient:
|
|
|
428
424
|
raise TooManyRequestsError(
|
|
429
425
|
headers=dict(_response.headers),
|
|
430
426
|
body=typing.cast(
|
|
431
|
-
typing.
|
|
427
|
+
typing.Any,
|
|
432
428
|
parse_obj_as(
|
|
433
|
-
type_=typing.
|
|
429
|
+
type_=typing.Any, # type: ignore
|
|
434
430
|
object_=_response.json(),
|
|
435
431
|
),
|
|
436
432
|
),
|
|
@@ -439,9 +435,9 @@ class RawIndustrialClient:
|
|
|
439
435
|
raise InternalServerError(
|
|
440
436
|
headers=dict(_response.headers),
|
|
441
437
|
body=typing.cast(
|
|
442
|
-
typing.
|
|
438
|
+
typing.Any,
|
|
443
439
|
parse_obj_as(
|
|
444
|
-
type_=typing.
|
|
440
|
+
type_=typing.Any, # type: ignore
|
|
445
441
|
object_=_response.json(),
|
|
446
442
|
),
|
|
447
443
|
),
|
|
@@ -450,9 +446,9 @@ class RawIndustrialClient:
|
|
|
450
446
|
raise NotImplementedError(
|
|
451
447
|
headers=dict(_response.headers),
|
|
452
448
|
body=typing.cast(
|
|
453
|
-
typing.
|
|
449
|
+
typing.Any,
|
|
454
450
|
parse_obj_as(
|
|
455
|
-
type_=typing.
|
|
451
|
+
type_=typing.Any, # type: ignore
|
|
456
452
|
object_=_response.json(),
|
|
457
453
|
),
|
|
458
454
|
),
|
|
@@ -461,9 +457,9 @@ class RawIndustrialClient:
|
|
|
461
457
|
raise BadGatewayError(
|
|
462
458
|
headers=dict(_response.headers),
|
|
463
459
|
body=typing.cast(
|
|
464
|
-
typing.
|
|
460
|
+
typing.Any,
|
|
465
461
|
parse_obj_as(
|
|
466
|
-
type_=typing.
|
|
462
|
+
type_=typing.Any, # type: ignore
|
|
467
463
|
object_=_response.json(),
|
|
468
464
|
),
|
|
469
465
|
),
|
|
@@ -472,9 +468,9 @@ class RawIndustrialClient:
|
|
|
472
468
|
raise ServiceUnavailableError(
|
|
473
469
|
headers=dict(_response.headers),
|
|
474
470
|
body=typing.cast(
|
|
475
|
-
typing.
|
|
471
|
+
typing.Any,
|
|
476
472
|
parse_obj_as(
|
|
477
|
-
type_=typing.
|
|
473
|
+
type_=typing.Any, # type: ignore
|
|
478
474
|
object_=_response.json(),
|
|
479
475
|
),
|
|
480
476
|
),
|
|
@@ -483,9 +479,9 @@ class RawIndustrialClient:
|
|
|
483
479
|
raise GatewayTimeoutError(
|
|
484
480
|
headers=dict(_response.headers),
|
|
485
481
|
body=typing.cast(
|
|
486
|
-
typing.
|
|
482
|
+
typing.Any,
|
|
487
483
|
parse_obj_as(
|
|
488
|
-
type_=typing.
|
|
484
|
+
type_=typing.Any, # type: ignore
|
|
489
485
|
object_=_response.json(),
|
|
490
486
|
),
|
|
491
487
|
),
|
|
@@ -1545,11 +1541,7 @@ class AsyncRawIndustrialClient:
|
|
|
1545
1541
|
raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
|
|
1546
1542
|
|
|
1547
1543
|
async def patch_asset_data_outputs(
|
|
1548
|
-
self,
|
|
1549
|
-
id: str,
|
|
1550
|
-
*,
|
|
1551
|
-
values: typing.Dict[str, typing.Optional[typing.Any]],
|
|
1552
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
1544
|
+
self, id: str, *, values: typing.Dict[str, typing.Any], request_options: typing.Optional[RequestOptions] = None
|
|
1553
1545
|
) -> AsyncHttpResponse[AssetDataOutputsPatchAssetDataOutputsResponseBody]:
|
|
1554
1546
|
"""
|
|
1555
1547
|
Writes values to multiple data outputs on an asset simultaneously. Only the provided data outputs will be updated.
|
|
@@ -1566,7 +1558,7 @@ class AsyncRawIndustrialClient:
|
|
|
1566
1558
|
id : str
|
|
1567
1559
|
Asset ID
|
|
1568
1560
|
|
|
1569
|
-
values : typing.Dict[str, typing.
|
|
1561
|
+
values : typing.Dict[str, typing.Any]
|
|
1570
1562
|
A map of data output IDs to values. All data outputs must belong to the same asset. Only the specified IDs will be written to.
|
|
1571
1563
|
|
|
1572
1564
|
request_options : typing.Optional[RequestOptions]
|
|
@@ -1603,9 +1595,9 @@ class AsyncRawIndustrialClient:
|
|
|
1603
1595
|
raise UnauthorizedError(
|
|
1604
1596
|
headers=dict(_response.headers),
|
|
1605
1597
|
body=typing.cast(
|
|
1606
|
-
typing.
|
|
1598
|
+
typing.Any,
|
|
1607
1599
|
parse_obj_as(
|
|
1608
|
-
type_=typing.
|
|
1600
|
+
type_=typing.Any, # type: ignore
|
|
1609
1601
|
object_=_response.json(),
|
|
1610
1602
|
),
|
|
1611
1603
|
),
|
|
@@ -1614,9 +1606,9 @@ class AsyncRawIndustrialClient:
|
|
|
1614
1606
|
raise NotFoundError(
|
|
1615
1607
|
headers=dict(_response.headers),
|
|
1616
1608
|
body=typing.cast(
|
|
1617
|
-
typing.
|
|
1609
|
+
typing.Any,
|
|
1618
1610
|
parse_obj_as(
|
|
1619
|
-
type_=typing.
|
|
1611
|
+
type_=typing.Any, # type: ignore
|
|
1620
1612
|
object_=_response.json(),
|
|
1621
1613
|
),
|
|
1622
1614
|
),
|
|
@@ -1625,9 +1617,9 @@ class AsyncRawIndustrialClient:
|
|
|
1625
1617
|
raise MethodNotAllowedError(
|
|
1626
1618
|
headers=dict(_response.headers),
|
|
1627
1619
|
body=typing.cast(
|
|
1628
|
-
typing.
|
|
1620
|
+
typing.Any,
|
|
1629
1621
|
parse_obj_as(
|
|
1630
|
-
type_=typing.
|
|
1622
|
+
type_=typing.Any, # type: ignore
|
|
1631
1623
|
object_=_response.json(),
|
|
1632
1624
|
),
|
|
1633
1625
|
),
|
|
@@ -1636,9 +1628,9 @@ class AsyncRawIndustrialClient:
|
|
|
1636
1628
|
raise TooManyRequestsError(
|
|
1637
1629
|
headers=dict(_response.headers),
|
|
1638
1630
|
body=typing.cast(
|
|
1639
|
-
typing.
|
|
1631
|
+
typing.Any,
|
|
1640
1632
|
parse_obj_as(
|
|
1641
|
-
type_=typing.
|
|
1633
|
+
type_=typing.Any, # type: ignore
|
|
1642
1634
|
object_=_response.json(),
|
|
1643
1635
|
),
|
|
1644
1636
|
),
|
|
@@ -1647,9 +1639,9 @@ class AsyncRawIndustrialClient:
|
|
|
1647
1639
|
raise InternalServerError(
|
|
1648
1640
|
headers=dict(_response.headers),
|
|
1649
1641
|
body=typing.cast(
|
|
1650
|
-
typing.
|
|
1642
|
+
typing.Any,
|
|
1651
1643
|
parse_obj_as(
|
|
1652
|
-
type_=typing.
|
|
1644
|
+
type_=typing.Any, # type: ignore
|
|
1653
1645
|
object_=_response.json(),
|
|
1654
1646
|
),
|
|
1655
1647
|
),
|
|
@@ -1658,9 +1650,9 @@ class AsyncRawIndustrialClient:
|
|
|
1658
1650
|
raise NotImplementedError(
|
|
1659
1651
|
headers=dict(_response.headers),
|
|
1660
1652
|
body=typing.cast(
|
|
1661
|
-
typing.
|
|
1653
|
+
typing.Any,
|
|
1662
1654
|
parse_obj_as(
|
|
1663
|
-
type_=typing.
|
|
1655
|
+
type_=typing.Any, # type: ignore
|
|
1664
1656
|
object_=_response.json(),
|
|
1665
1657
|
),
|
|
1666
1658
|
),
|
|
@@ -1669,9 +1661,9 @@ class AsyncRawIndustrialClient:
|
|
|
1669
1661
|
raise BadGatewayError(
|
|
1670
1662
|
headers=dict(_response.headers),
|
|
1671
1663
|
body=typing.cast(
|
|
1672
|
-
typing.
|
|
1664
|
+
typing.Any,
|
|
1673
1665
|
parse_obj_as(
|
|
1674
|
-
type_=typing.
|
|
1666
|
+
type_=typing.Any, # type: ignore
|
|
1675
1667
|
object_=_response.json(),
|
|
1676
1668
|
),
|
|
1677
1669
|
),
|
|
@@ -1680,9 +1672,9 @@ class AsyncRawIndustrialClient:
|
|
|
1680
1672
|
raise ServiceUnavailableError(
|
|
1681
1673
|
headers=dict(_response.headers),
|
|
1682
1674
|
body=typing.cast(
|
|
1683
|
-
typing.
|
|
1675
|
+
typing.Any,
|
|
1684
1676
|
parse_obj_as(
|
|
1685
|
-
type_=typing.
|
|
1677
|
+
type_=typing.Any, # type: ignore
|
|
1686
1678
|
object_=_response.json(),
|
|
1687
1679
|
),
|
|
1688
1680
|
),
|
|
@@ -1691,9 +1683,9 @@ class AsyncRawIndustrialClient:
|
|
|
1691
1683
|
raise GatewayTimeoutError(
|
|
1692
1684
|
headers=dict(_response.headers),
|
|
1693
1685
|
body=typing.cast(
|
|
1694
|
-
typing.
|
|
1686
|
+
typing.Any,
|
|
1695
1687
|
parse_obj_as(
|
|
1696
|
-
type_=typing.
|
|
1688
|
+
type_=typing.Any, # type: ignore
|
|
1697
1689
|
object_=_response.json(),
|
|
1698
1690
|
),
|
|
1699
1691
|
),
|
samsara/issues/client.py
CHANGED
|
@@ -203,8 +203,6 @@ class IssuesClient:
|
|
|
203
203
|
)
|
|
204
204
|
client.issues.get_issues_stream(
|
|
205
205
|
start_time="startTime",
|
|
206
|
-
end_time="endTime",
|
|
207
|
-
after="after",
|
|
208
206
|
)
|
|
209
207
|
"""
|
|
210
208
|
_response = self._raw_client.get_issues_stream(
|
|
@@ -428,8 +426,6 @@ class AsyncIssuesClient:
|
|
|
428
426
|
async def main() -> None:
|
|
429
427
|
await client.issues.get_issues_stream(
|
|
430
428
|
start_time="startTime",
|
|
431
|
-
end_time="endTime",
|
|
432
|
-
after="after",
|
|
433
429
|
)
|
|
434
430
|
|
|
435
431
|
|