samsara-api 4.1.1__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 +84 -15
- 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 +139 -189
- 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 +10 -16
- samsara/idling/raw_client.py +46 -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 +2 -16
- 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 +71 -6
- samsara/types/advanced_idling_get_idling_events_response_body.py +2 -2
- 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/harsh_event_trigger_details_object_request_body_types_item.py +1 -0
- samsara/types/harsh_event_trigger_details_object_response_body_types_item.py +1 -0
- samsara/types/idling_event_address_object_response_body.py +46 -0
- samsara/types/{idling_event_object_response_body_address_type.py → idling_event_address_object_response_body_address_types_item.py} +1 -1
- samsara/types/idling_event_asset_object_response_body.py +35 -0
- samsara/types/{idling_event_object_response_body.py → idling_event_object_v_20251023_response_body.py} +18 -28
- samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
- samsara/types/idling_event_operator_object_response_body.py +35 -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.1.1.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/RECORD +166 -136
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
- {samsara_api-4.1.1.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
|
@@ -189,9 +189,9 @@ class RawLegacyApIsClient:
|
|
|
189
189
|
raise UnauthorizedError(
|
|
190
190
|
headers=dict(_response.headers),
|
|
191
191
|
body=typing.cast(
|
|
192
|
-
typing.
|
|
192
|
+
typing.Any,
|
|
193
193
|
parse_obj_as(
|
|
194
|
-
type_=typing.
|
|
194
|
+
type_=typing.Any, # type: ignore
|
|
195
195
|
object_=_response.json(),
|
|
196
196
|
),
|
|
197
197
|
),
|
|
@@ -200,9 +200,9 @@ class RawLegacyApIsClient:
|
|
|
200
200
|
raise NotFoundError(
|
|
201
201
|
headers=dict(_response.headers),
|
|
202
202
|
body=typing.cast(
|
|
203
|
-
typing.
|
|
203
|
+
typing.Any,
|
|
204
204
|
parse_obj_as(
|
|
205
|
-
type_=typing.
|
|
205
|
+
type_=typing.Any, # type: ignore
|
|
206
206
|
object_=_response.json(),
|
|
207
207
|
),
|
|
208
208
|
),
|
|
@@ -211,9 +211,9 @@ class RawLegacyApIsClient:
|
|
|
211
211
|
raise MethodNotAllowedError(
|
|
212
212
|
headers=dict(_response.headers),
|
|
213
213
|
body=typing.cast(
|
|
214
|
-
typing.
|
|
214
|
+
typing.Any,
|
|
215
215
|
parse_obj_as(
|
|
216
|
-
type_=typing.
|
|
216
|
+
type_=typing.Any, # type: ignore
|
|
217
217
|
object_=_response.json(),
|
|
218
218
|
),
|
|
219
219
|
),
|
|
@@ -222,9 +222,9 @@ class RawLegacyApIsClient:
|
|
|
222
222
|
raise TooManyRequestsError(
|
|
223
223
|
headers=dict(_response.headers),
|
|
224
224
|
body=typing.cast(
|
|
225
|
-
typing.
|
|
225
|
+
typing.Any,
|
|
226
226
|
parse_obj_as(
|
|
227
|
-
type_=typing.
|
|
227
|
+
type_=typing.Any, # type: ignore
|
|
228
228
|
object_=_response.json(),
|
|
229
229
|
),
|
|
230
230
|
),
|
|
@@ -233,9 +233,9 @@ class RawLegacyApIsClient:
|
|
|
233
233
|
raise InternalServerError(
|
|
234
234
|
headers=dict(_response.headers),
|
|
235
235
|
body=typing.cast(
|
|
236
|
-
typing.
|
|
236
|
+
typing.Any,
|
|
237
237
|
parse_obj_as(
|
|
238
|
-
type_=typing.
|
|
238
|
+
type_=typing.Any, # type: ignore
|
|
239
239
|
object_=_response.json(),
|
|
240
240
|
),
|
|
241
241
|
),
|
|
@@ -244,9 +244,9 @@ class RawLegacyApIsClient:
|
|
|
244
244
|
raise NotImplementedError(
|
|
245
245
|
headers=dict(_response.headers),
|
|
246
246
|
body=typing.cast(
|
|
247
|
-
typing.
|
|
247
|
+
typing.Any,
|
|
248
248
|
parse_obj_as(
|
|
249
|
-
type_=typing.
|
|
249
|
+
type_=typing.Any, # type: ignore
|
|
250
250
|
object_=_response.json(),
|
|
251
251
|
),
|
|
252
252
|
),
|
|
@@ -255,9 +255,9 @@ class RawLegacyApIsClient:
|
|
|
255
255
|
raise BadGatewayError(
|
|
256
256
|
headers=dict(_response.headers),
|
|
257
257
|
body=typing.cast(
|
|
258
|
-
typing.
|
|
258
|
+
typing.Any,
|
|
259
259
|
parse_obj_as(
|
|
260
|
-
type_=typing.
|
|
260
|
+
type_=typing.Any, # type: ignore
|
|
261
261
|
object_=_response.json(),
|
|
262
262
|
),
|
|
263
263
|
),
|
|
@@ -266,9 +266,9 @@ class RawLegacyApIsClient:
|
|
|
266
266
|
raise ServiceUnavailableError(
|
|
267
267
|
headers=dict(_response.headers),
|
|
268
268
|
body=typing.cast(
|
|
269
|
-
typing.
|
|
269
|
+
typing.Any,
|
|
270
270
|
parse_obj_as(
|
|
271
|
-
type_=typing.
|
|
271
|
+
type_=typing.Any, # type: ignore
|
|
272
272
|
object_=_response.json(),
|
|
273
273
|
),
|
|
274
274
|
),
|
|
@@ -277,9 +277,9 @@ class RawLegacyApIsClient:
|
|
|
277
277
|
raise GatewayTimeoutError(
|
|
278
278
|
headers=dict(_response.headers),
|
|
279
279
|
body=typing.cast(
|
|
280
|
-
typing.
|
|
280
|
+
typing.Any,
|
|
281
281
|
parse_obj_as(
|
|
282
|
-
type_=typing.
|
|
282
|
+
type_=typing.Any, # type: ignore
|
|
283
283
|
object_=_response.json(),
|
|
284
284
|
),
|
|
285
285
|
),
|
|
@@ -456,9 +456,9 @@ class RawLegacyApIsClient:
|
|
|
456
456
|
raise UnauthorizedError(
|
|
457
457
|
headers=dict(_response.headers),
|
|
458
458
|
body=typing.cast(
|
|
459
|
-
typing.
|
|
459
|
+
typing.Any,
|
|
460
460
|
parse_obj_as(
|
|
461
|
-
type_=typing.
|
|
461
|
+
type_=typing.Any, # type: ignore
|
|
462
462
|
object_=_response.json(),
|
|
463
463
|
),
|
|
464
464
|
),
|
|
@@ -467,9 +467,9 @@ class RawLegacyApIsClient:
|
|
|
467
467
|
raise NotFoundError(
|
|
468
468
|
headers=dict(_response.headers),
|
|
469
469
|
body=typing.cast(
|
|
470
|
-
typing.
|
|
470
|
+
typing.Any,
|
|
471
471
|
parse_obj_as(
|
|
472
|
-
type_=typing.
|
|
472
|
+
type_=typing.Any, # type: ignore
|
|
473
473
|
object_=_response.json(),
|
|
474
474
|
),
|
|
475
475
|
),
|
|
@@ -478,9 +478,9 @@ class RawLegacyApIsClient:
|
|
|
478
478
|
raise MethodNotAllowedError(
|
|
479
479
|
headers=dict(_response.headers),
|
|
480
480
|
body=typing.cast(
|
|
481
|
-
typing.
|
|
481
|
+
typing.Any,
|
|
482
482
|
parse_obj_as(
|
|
483
|
-
type_=typing.
|
|
483
|
+
type_=typing.Any, # type: ignore
|
|
484
484
|
object_=_response.json(),
|
|
485
485
|
),
|
|
486
486
|
),
|
|
@@ -489,9 +489,9 @@ class RawLegacyApIsClient:
|
|
|
489
489
|
raise TooManyRequestsError(
|
|
490
490
|
headers=dict(_response.headers),
|
|
491
491
|
body=typing.cast(
|
|
492
|
-
typing.
|
|
492
|
+
typing.Any,
|
|
493
493
|
parse_obj_as(
|
|
494
|
-
type_=typing.
|
|
494
|
+
type_=typing.Any, # type: ignore
|
|
495
495
|
object_=_response.json(),
|
|
496
496
|
),
|
|
497
497
|
),
|
|
@@ -500,9 +500,9 @@ class RawLegacyApIsClient:
|
|
|
500
500
|
raise InternalServerError(
|
|
501
501
|
headers=dict(_response.headers),
|
|
502
502
|
body=typing.cast(
|
|
503
|
-
typing.
|
|
503
|
+
typing.Any,
|
|
504
504
|
parse_obj_as(
|
|
505
|
-
type_=typing.
|
|
505
|
+
type_=typing.Any, # type: ignore
|
|
506
506
|
object_=_response.json(),
|
|
507
507
|
),
|
|
508
508
|
),
|
|
@@ -511,9 +511,9 @@ class RawLegacyApIsClient:
|
|
|
511
511
|
raise NotImplementedError(
|
|
512
512
|
headers=dict(_response.headers),
|
|
513
513
|
body=typing.cast(
|
|
514
|
-
typing.
|
|
514
|
+
typing.Any,
|
|
515
515
|
parse_obj_as(
|
|
516
|
-
type_=typing.
|
|
516
|
+
type_=typing.Any, # type: ignore
|
|
517
517
|
object_=_response.json(),
|
|
518
518
|
),
|
|
519
519
|
),
|
|
@@ -522,9 +522,9 @@ class RawLegacyApIsClient:
|
|
|
522
522
|
raise BadGatewayError(
|
|
523
523
|
headers=dict(_response.headers),
|
|
524
524
|
body=typing.cast(
|
|
525
|
-
typing.
|
|
525
|
+
typing.Any,
|
|
526
526
|
parse_obj_as(
|
|
527
|
-
type_=typing.
|
|
527
|
+
type_=typing.Any, # type: ignore
|
|
528
528
|
object_=_response.json(),
|
|
529
529
|
),
|
|
530
530
|
),
|
|
@@ -533,9 +533,9 @@ class RawLegacyApIsClient:
|
|
|
533
533
|
raise ServiceUnavailableError(
|
|
534
534
|
headers=dict(_response.headers),
|
|
535
535
|
body=typing.cast(
|
|
536
|
-
typing.
|
|
536
|
+
typing.Any,
|
|
537
537
|
parse_obj_as(
|
|
538
|
-
type_=typing.
|
|
538
|
+
type_=typing.Any, # type: ignore
|
|
539
539
|
object_=_response.json(),
|
|
540
540
|
),
|
|
541
541
|
),
|
|
@@ -544,9 +544,9 @@ class RawLegacyApIsClient:
|
|
|
544
544
|
raise GatewayTimeoutError(
|
|
545
545
|
headers=dict(_response.headers),
|
|
546
546
|
body=typing.cast(
|
|
547
|
-
typing.
|
|
547
|
+
typing.Any,
|
|
548
548
|
parse_obj_as(
|
|
549
|
-
type_=typing.
|
|
549
|
+
type_=typing.Any, # type: ignore
|
|
550
550
|
object_=_response.json(),
|
|
551
551
|
),
|
|
552
552
|
),
|
|
@@ -632,9 +632,9 @@ class RawLegacyApIsClient:
|
|
|
632
632
|
raise UnauthorizedError(
|
|
633
633
|
headers=dict(_response.headers),
|
|
634
634
|
body=typing.cast(
|
|
635
|
-
typing.
|
|
635
|
+
typing.Any,
|
|
636
636
|
parse_obj_as(
|
|
637
|
-
type_=typing.
|
|
637
|
+
type_=typing.Any, # type: ignore
|
|
638
638
|
object_=_response.json(),
|
|
639
639
|
),
|
|
640
640
|
),
|
|
@@ -643,9 +643,9 @@ class RawLegacyApIsClient:
|
|
|
643
643
|
raise NotFoundError(
|
|
644
644
|
headers=dict(_response.headers),
|
|
645
645
|
body=typing.cast(
|
|
646
|
-
typing.
|
|
646
|
+
typing.Any,
|
|
647
647
|
parse_obj_as(
|
|
648
|
-
type_=typing.
|
|
648
|
+
type_=typing.Any, # type: ignore
|
|
649
649
|
object_=_response.json(),
|
|
650
650
|
),
|
|
651
651
|
),
|
|
@@ -654,9 +654,9 @@ class RawLegacyApIsClient:
|
|
|
654
654
|
raise MethodNotAllowedError(
|
|
655
655
|
headers=dict(_response.headers),
|
|
656
656
|
body=typing.cast(
|
|
657
|
-
typing.
|
|
657
|
+
typing.Any,
|
|
658
658
|
parse_obj_as(
|
|
659
|
-
type_=typing.
|
|
659
|
+
type_=typing.Any, # type: ignore
|
|
660
660
|
object_=_response.json(),
|
|
661
661
|
),
|
|
662
662
|
),
|
|
@@ -665,9 +665,9 @@ class RawLegacyApIsClient:
|
|
|
665
665
|
raise TooManyRequestsError(
|
|
666
666
|
headers=dict(_response.headers),
|
|
667
667
|
body=typing.cast(
|
|
668
|
-
typing.
|
|
668
|
+
typing.Any,
|
|
669
669
|
parse_obj_as(
|
|
670
|
-
type_=typing.
|
|
670
|
+
type_=typing.Any, # type: ignore
|
|
671
671
|
object_=_response.json(),
|
|
672
672
|
),
|
|
673
673
|
),
|
|
@@ -676,9 +676,9 @@ class RawLegacyApIsClient:
|
|
|
676
676
|
raise InternalServerError(
|
|
677
677
|
headers=dict(_response.headers),
|
|
678
678
|
body=typing.cast(
|
|
679
|
-
typing.
|
|
679
|
+
typing.Any,
|
|
680
680
|
parse_obj_as(
|
|
681
|
-
type_=typing.
|
|
681
|
+
type_=typing.Any, # type: ignore
|
|
682
682
|
object_=_response.json(),
|
|
683
683
|
),
|
|
684
684
|
),
|
|
@@ -687,9 +687,9 @@ class RawLegacyApIsClient:
|
|
|
687
687
|
raise NotImplementedError(
|
|
688
688
|
headers=dict(_response.headers),
|
|
689
689
|
body=typing.cast(
|
|
690
|
-
typing.
|
|
690
|
+
typing.Any,
|
|
691
691
|
parse_obj_as(
|
|
692
|
-
type_=typing.
|
|
692
|
+
type_=typing.Any, # type: ignore
|
|
693
693
|
object_=_response.json(),
|
|
694
694
|
),
|
|
695
695
|
),
|
|
@@ -698,9 +698,9 @@ class RawLegacyApIsClient:
|
|
|
698
698
|
raise BadGatewayError(
|
|
699
699
|
headers=dict(_response.headers),
|
|
700
700
|
body=typing.cast(
|
|
701
|
-
typing.
|
|
701
|
+
typing.Any,
|
|
702
702
|
parse_obj_as(
|
|
703
|
-
type_=typing.
|
|
703
|
+
type_=typing.Any, # type: ignore
|
|
704
704
|
object_=_response.json(),
|
|
705
705
|
),
|
|
706
706
|
),
|
|
@@ -709,9 +709,9 @@ class RawLegacyApIsClient:
|
|
|
709
709
|
raise ServiceUnavailableError(
|
|
710
710
|
headers=dict(_response.headers),
|
|
711
711
|
body=typing.cast(
|
|
712
|
-
typing.
|
|
712
|
+
typing.Any,
|
|
713
713
|
parse_obj_as(
|
|
714
|
-
type_=typing.
|
|
714
|
+
type_=typing.Any, # type: ignore
|
|
715
715
|
object_=_response.json(),
|
|
716
716
|
),
|
|
717
717
|
),
|
|
@@ -720,9 +720,9 @@ class RawLegacyApIsClient:
|
|
|
720
720
|
raise GatewayTimeoutError(
|
|
721
721
|
headers=dict(_response.headers),
|
|
722
722
|
body=typing.cast(
|
|
723
|
-
typing.
|
|
723
|
+
typing.Any,
|
|
724
724
|
parse_obj_as(
|
|
725
|
-
type_=typing.
|
|
725
|
+
type_=typing.Any, # type: ignore
|
|
726
726
|
object_=_response.json(),
|
|
727
727
|
),
|
|
728
728
|
),
|
|
@@ -889,9 +889,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
889
889
|
raise UnauthorizedError(
|
|
890
890
|
headers=dict(_response.headers),
|
|
891
891
|
body=typing.cast(
|
|
892
|
-
typing.
|
|
892
|
+
typing.Any,
|
|
893
893
|
parse_obj_as(
|
|
894
|
-
type_=typing.
|
|
894
|
+
type_=typing.Any, # type: ignore
|
|
895
895
|
object_=_response.json(),
|
|
896
896
|
),
|
|
897
897
|
),
|
|
@@ -900,9 +900,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
900
900
|
raise NotFoundError(
|
|
901
901
|
headers=dict(_response.headers),
|
|
902
902
|
body=typing.cast(
|
|
903
|
-
typing.
|
|
903
|
+
typing.Any,
|
|
904
904
|
parse_obj_as(
|
|
905
|
-
type_=typing.
|
|
905
|
+
type_=typing.Any, # type: ignore
|
|
906
906
|
object_=_response.json(),
|
|
907
907
|
),
|
|
908
908
|
),
|
|
@@ -911,9 +911,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
911
911
|
raise MethodNotAllowedError(
|
|
912
912
|
headers=dict(_response.headers),
|
|
913
913
|
body=typing.cast(
|
|
914
|
-
typing.
|
|
914
|
+
typing.Any,
|
|
915
915
|
parse_obj_as(
|
|
916
|
-
type_=typing.
|
|
916
|
+
type_=typing.Any, # type: ignore
|
|
917
917
|
object_=_response.json(),
|
|
918
918
|
),
|
|
919
919
|
),
|
|
@@ -922,9 +922,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
922
922
|
raise TooManyRequestsError(
|
|
923
923
|
headers=dict(_response.headers),
|
|
924
924
|
body=typing.cast(
|
|
925
|
-
typing.
|
|
925
|
+
typing.Any,
|
|
926
926
|
parse_obj_as(
|
|
927
|
-
type_=typing.
|
|
927
|
+
type_=typing.Any, # type: ignore
|
|
928
928
|
object_=_response.json(),
|
|
929
929
|
),
|
|
930
930
|
),
|
|
@@ -933,9 +933,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
933
933
|
raise InternalServerError(
|
|
934
934
|
headers=dict(_response.headers),
|
|
935
935
|
body=typing.cast(
|
|
936
|
-
typing.
|
|
936
|
+
typing.Any,
|
|
937
937
|
parse_obj_as(
|
|
938
|
-
type_=typing.
|
|
938
|
+
type_=typing.Any, # type: ignore
|
|
939
939
|
object_=_response.json(),
|
|
940
940
|
),
|
|
941
941
|
),
|
|
@@ -944,9 +944,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
944
944
|
raise NotImplementedError(
|
|
945
945
|
headers=dict(_response.headers),
|
|
946
946
|
body=typing.cast(
|
|
947
|
-
typing.
|
|
947
|
+
typing.Any,
|
|
948
948
|
parse_obj_as(
|
|
949
|
-
type_=typing.
|
|
949
|
+
type_=typing.Any, # type: ignore
|
|
950
950
|
object_=_response.json(),
|
|
951
951
|
),
|
|
952
952
|
),
|
|
@@ -955,9 +955,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
955
955
|
raise BadGatewayError(
|
|
956
956
|
headers=dict(_response.headers),
|
|
957
957
|
body=typing.cast(
|
|
958
|
-
typing.
|
|
958
|
+
typing.Any,
|
|
959
959
|
parse_obj_as(
|
|
960
|
-
type_=typing.
|
|
960
|
+
type_=typing.Any, # type: ignore
|
|
961
961
|
object_=_response.json(),
|
|
962
962
|
),
|
|
963
963
|
),
|
|
@@ -966,9 +966,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
966
966
|
raise ServiceUnavailableError(
|
|
967
967
|
headers=dict(_response.headers),
|
|
968
968
|
body=typing.cast(
|
|
969
|
-
typing.
|
|
969
|
+
typing.Any,
|
|
970
970
|
parse_obj_as(
|
|
971
|
-
type_=typing.
|
|
971
|
+
type_=typing.Any, # type: ignore
|
|
972
972
|
object_=_response.json(),
|
|
973
973
|
),
|
|
974
974
|
),
|
|
@@ -977,9 +977,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
977
977
|
raise GatewayTimeoutError(
|
|
978
978
|
headers=dict(_response.headers),
|
|
979
979
|
body=typing.cast(
|
|
980
|
-
typing.
|
|
980
|
+
typing.Any,
|
|
981
981
|
parse_obj_as(
|
|
982
|
-
type_=typing.
|
|
982
|
+
type_=typing.Any, # type: ignore
|
|
983
983
|
object_=_response.json(),
|
|
984
984
|
),
|
|
985
985
|
),
|
|
@@ -1156,9 +1156,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1156
1156
|
raise UnauthorizedError(
|
|
1157
1157
|
headers=dict(_response.headers),
|
|
1158
1158
|
body=typing.cast(
|
|
1159
|
-
typing.
|
|
1159
|
+
typing.Any,
|
|
1160
1160
|
parse_obj_as(
|
|
1161
|
-
type_=typing.
|
|
1161
|
+
type_=typing.Any, # type: ignore
|
|
1162
1162
|
object_=_response.json(),
|
|
1163
1163
|
),
|
|
1164
1164
|
),
|
|
@@ -1167,9 +1167,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1167
1167
|
raise NotFoundError(
|
|
1168
1168
|
headers=dict(_response.headers),
|
|
1169
1169
|
body=typing.cast(
|
|
1170
|
-
typing.
|
|
1170
|
+
typing.Any,
|
|
1171
1171
|
parse_obj_as(
|
|
1172
|
-
type_=typing.
|
|
1172
|
+
type_=typing.Any, # type: ignore
|
|
1173
1173
|
object_=_response.json(),
|
|
1174
1174
|
),
|
|
1175
1175
|
),
|
|
@@ -1178,9 +1178,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1178
1178
|
raise MethodNotAllowedError(
|
|
1179
1179
|
headers=dict(_response.headers),
|
|
1180
1180
|
body=typing.cast(
|
|
1181
|
-
typing.
|
|
1181
|
+
typing.Any,
|
|
1182
1182
|
parse_obj_as(
|
|
1183
|
-
type_=typing.
|
|
1183
|
+
type_=typing.Any, # type: ignore
|
|
1184
1184
|
object_=_response.json(),
|
|
1185
1185
|
),
|
|
1186
1186
|
),
|
|
@@ -1189,9 +1189,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1189
1189
|
raise TooManyRequestsError(
|
|
1190
1190
|
headers=dict(_response.headers),
|
|
1191
1191
|
body=typing.cast(
|
|
1192
|
-
typing.
|
|
1192
|
+
typing.Any,
|
|
1193
1193
|
parse_obj_as(
|
|
1194
|
-
type_=typing.
|
|
1194
|
+
type_=typing.Any, # type: ignore
|
|
1195
1195
|
object_=_response.json(),
|
|
1196
1196
|
),
|
|
1197
1197
|
),
|
|
@@ -1200,9 +1200,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1200
1200
|
raise InternalServerError(
|
|
1201
1201
|
headers=dict(_response.headers),
|
|
1202
1202
|
body=typing.cast(
|
|
1203
|
-
typing.
|
|
1203
|
+
typing.Any,
|
|
1204
1204
|
parse_obj_as(
|
|
1205
|
-
type_=typing.
|
|
1205
|
+
type_=typing.Any, # type: ignore
|
|
1206
1206
|
object_=_response.json(),
|
|
1207
1207
|
),
|
|
1208
1208
|
),
|
|
@@ -1211,9 +1211,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1211
1211
|
raise NotImplementedError(
|
|
1212
1212
|
headers=dict(_response.headers),
|
|
1213
1213
|
body=typing.cast(
|
|
1214
|
-
typing.
|
|
1214
|
+
typing.Any,
|
|
1215
1215
|
parse_obj_as(
|
|
1216
|
-
type_=typing.
|
|
1216
|
+
type_=typing.Any, # type: ignore
|
|
1217
1217
|
object_=_response.json(),
|
|
1218
1218
|
),
|
|
1219
1219
|
),
|
|
@@ -1222,9 +1222,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1222
1222
|
raise BadGatewayError(
|
|
1223
1223
|
headers=dict(_response.headers),
|
|
1224
1224
|
body=typing.cast(
|
|
1225
|
-
typing.
|
|
1225
|
+
typing.Any,
|
|
1226
1226
|
parse_obj_as(
|
|
1227
|
-
type_=typing.
|
|
1227
|
+
type_=typing.Any, # type: ignore
|
|
1228
1228
|
object_=_response.json(),
|
|
1229
1229
|
),
|
|
1230
1230
|
),
|
|
@@ -1233,9 +1233,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1233
1233
|
raise ServiceUnavailableError(
|
|
1234
1234
|
headers=dict(_response.headers),
|
|
1235
1235
|
body=typing.cast(
|
|
1236
|
-
typing.
|
|
1236
|
+
typing.Any,
|
|
1237
1237
|
parse_obj_as(
|
|
1238
|
-
type_=typing.
|
|
1238
|
+
type_=typing.Any, # type: ignore
|
|
1239
1239
|
object_=_response.json(),
|
|
1240
1240
|
),
|
|
1241
1241
|
),
|
|
@@ -1244,9 +1244,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1244
1244
|
raise GatewayTimeoutError(
|
|
1245
1245
|
headers=dict(_response.headers),
|
|
1246
1246
|
body=typing.cast(
|
|
1247
|
-
typing.
|
|
1247
|
+
typing.Any,
|
|
1248
1248
|
parse_obj_as(
|
|
1249
|
-
type_=typing.
|
|
1249
|
+
type_=typing.Any, # type: ignore
|
|
1250
1250
|
object_=_response.json(),
|
|
1251
1251
|
),
|
|
1252
1252
|
),
|
|
@@ -1332,9 +1332,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1332
1332
|
raise UnauthorizedError(
|
|
1333
1333
|
headers=dict(_response.headers),
|
|
1334
1334
|
body=typing.cast(
|
|
1335
|
-
typing.
|
|
1335
|
+
typing.Any,
|
|
1336
1336
|
parse_obj_as(
|
|
1337
|
-
type_=typing.
|
|
1337
|
+
type_=typing.Any, # type: ignore
|
|
1338
1338
|
object_=_response.json(),
|
|
1339
1339
|
),
|
|
1340
1340
|
),
|
|
@@ -1343,9 +1343,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1343
1343
|
raise NotFoundError(
|
|
1344
1344
|
headers=dict(_response.headers),
|
|
1345
1345
|
body=typing.cast(
|
|
1346
|
-
typing.
|
|
1346
|
+
typing.Any,
|
|
1347
1347
|
parse_obj_as(
|
|
1348
|
-
type_=typing.
|
|
1348
|
+
type_=typing.Any, # type: ignore
|
|
1349
1349
|
object_=_response.json(),
|
|
1350
1350
|
),
|
|
1351
1351
|
),
|
|
@@ -1354,9 +1354,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1354
1354
|
raise MethodNotAllowedError(
|
|
1355
1355
|
headers=dict(_response.headers),
|
|
1356
1356
|
body=typing.cast(
|
|
1357
|
-
typing.
|
|
1357
|
+
typing.Any,
|
|
1358
1358
|
parse_obj_as(
|
|
1359
|
-
type_=typing.
|
|
1359
|
+
type_=typing.Any, # type: ignore
|
|
1360
1360
|
object_=_response.json(),
|
|
1361
1361
|
),
|
|
1362
1362
|
),
|
|
@@ -1365,9 +1365,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1365
1365
|
raise TooManyRequestsError(
|
|
1366
1366
|
headers=dict(_response.headers),
|
|
1367
1367
|
body=typing.cast(
|
|
1368
|
-
typing.
|
|
1368
|
+
typing.Any,
|
|
1369
1369
|
parse_obj_as(
|
|
1370
|
-
type_=typing.
|
|
1370
|
+
type_=typing.Any, # type: ignore
|
|
1371
1371
|
object_=_response.json(),
|
|
1372
1372
|
),
|
|
1373
1373
|
),
|
|
@@ -1376,9 +1376,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1376
1376
|
raise InternalServerError(
|
|
1377
1377
|
headers=dict(_response.headers),
|
|
1378
1378
|
body=typing.cast(
|
|
1379
|
-
typing.
|
|
1379
|
+
typing.Any,
|
|
1380
1380
|
parse_obj_as(
|
|
1381
|
-
type_=typing.
|
|
1381
|
+
type_=typing.Any, # type: ignore
|
|
1382
1382
|
object_=_response.json(),
|
|
1383
1383
|
),
|
|
1384
1384
|
),
|
|
@@ -1387,9 +1387,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1387
1387
|
raise NotImplementedError(
|
|
1388
1388
|
headers=dict(_response.headers),
|
|
1389
1389
|
body=typing.cast(
|
|
1390
|
-
typing.
|
|
1390
|
+
typing.Any,
|
|
1391
1391
|
parse_obj_as(
|
|
1392
|
-
type_=typing.
|
|
1392
|
+
type_=typing.Any, # type: ignore
|
|
1393
1393
|
object_=_response.json(),
|
|
1394
1394
|
),
|
|
1395
1395
|
),
|
|
@@ -1398,9 +1398,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1398
1398
|
raise BadGatewayError(
|
|
1399
1399
|
headers=dict(_response.headers),
|
|
1400
1400
|
body=typing.cast(
|
|
1401
|
-
typing.
|
|
1401
|
+
typing.Any,
|
|
1402
1402
|
parse_obj_as(
|
|
1403
|
-
type_=typing.
|
|
1403
|
+
type_=typing.Any, # type: ignore
|
|
1404
1404
|
object_=_response.json(),
|
|
1405
1405
|
),
|
|
1406
1406
|
),
|
|
@@ -1409,9 +1409,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1409
1409
|
raise ServiceUnavailableError(
|
|
1410
1410
|
headers=dict(_response.headers),
|
|
1411
1411
|
body=typing.cast(
|
|
1412
|
-
typing.
|
|
1412
|
+
typing.Any,
|
|
1413
1413
|
parse_obj_as(
|
|
1414
|
-
type_=typing.
|
|
1414
|
+
type_=typing.Any, # type: ignore
|
|
1415
1415
|
object_=_response.json(),
|
|
1416
1416
|
),
|
|
1417
1417
|
),
|
|
@@ -1420,9 +1420,9 @@ class AsyncRawLegacyApIsClient:
|
|
|
1420
1420
|
raise GatewayTimeoutError(
|
|
1421
1421
|
headers=dict(_response.headers),
|
|
1422
1422
|
body=typing.cast(
|
|
1423
|
-
typing.
|
|
1423
|
+
typing.Any,
|
|
1424
1424
|
parse_obj_as(
|
|
1425
|
-
type_=typing.
|
|
1425
|
+
type_=typing.Any, # type: ignore
|
|
1426
1426
|
object_=_response.json(),
|
|
1427
1427
|
),
|
|
1428
1428
|
),
|
|
@@ -89,11 +89,7 @@ class LiveSharingLinksClient:
|
|
|
89
89
|
client = Samsara(
|
|
90
90
|
token="YOUR_TOKEN",
|
|
91
91
|
)
|
|
92
|
-
client.live_sharing_links.get_live_sharing_links(
|
|
93
|
-
type="all",
|
|
94
|
-
limit=1,
|
|
95
|
-
after="after",
|
|
96
|
-
)
|
|
92
|
+
client.live_sharing_links.get_live_sharing_links()
|
|
97
93
|
"""
|
|
98
94
|
_response = self._raw_client.get_live_sharing_links(
|
|
99
95
|
ids=ids, type=type, limit=limit, after=after, request_options=request_options
|
|
@@ -338,11 +334,7 @@ class AsyncLiveSharingLinksClient:
|
|
|
338
334
|
|
|
339
335
|
|
|
340
336
|
async def main() -> None:
|
|
341
|
-
await client.live_sharing_links.get_live_sharing_links(
|
|
342
|
-
type="all",
|
|
343
|
-
limit=1,
|
|
344
|
-
after="after",
|
|
345
|
-
)
|
|
337
|
+
await client.live_sharing_links.get_live_sharing_links()
|
|
346
338
|
|
|
347
339
|
|
|
348
340
|
asyncio.run(main())
|