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
|
@@ -11,6 +11,7 @@ from ..types.hos_violations_get_hos_violations_response_body import HosViolation
|
|
|
11
11
|
from ..types.v_1_hos_authentication_logs_response import V1HosAuthenticationLogsResponse
|
|
12
12
|
from .raw_client import AsyncRawHoursOfServiceClient, RawHoursOfServiceClient
|
|
13
13
|
from .types.get_hos_daily_logs_request_driver_activation_status import GetHosDailyLogsRequestDriverActivationStatus
|
|
14
|
+
from .types.get_hos_daily_logs_request_expand import GetHosDailyLogsRequestExpand
|
|
14
15
|
|
|
15
16
|
# this is used as the default value for optional parameters
|
|
16
17
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -80,10 +81,7 @@ class HoursOfServiceClient:
|
|
|
80
81
|
client = Samsara(
|
|
81
82
|
token="YOUR_TOKEN",
|
|
82
83
|
)
|
|
83
|
-
client.hours_of_service.get_hos_clocks(
|
|
84
|
-
after="after",
|
|
85
|
-
limit=1000000,
|
|
86
|
-
)
|
|
84
|
+
client.hours_of_service.get_hos_clocks()
|
|
87
85
|
"""
|
|
88
86
|
_response = self._raw_client.get_hos_clocks(
|
|
89
87
|
tag_ids=tag_ids,
|
|
@@ -105,7 +103,7 @@ class HoursOfServiceClient:
|
|
|
105
103
|
parent_tag_ids: typing.Optional[str] = None,
|
|
106
104
|
driver_activation_status: typing.Optional[GetHosDailyLogsRequestDriverActivationStatus] = None,
|
|
107
105
|
after: typing.Optional[str] = None,
|
|
108
|
-
expand: typing.Optional[
|
|
106
|
+
expand: typing.Optional[GetHosDailyLogsRequestExpand] = None,
|
|
109
107
|
request_options: typing.Optional[RequestOptions] = None,
|
|
110
108
|
) -> HosDailyLogsGetHosDailyLogsResponseBody:
|
|
111
109
|
"""
|
|
@@ -149,7 +147,7 @@ class HoursOfServiceClient:
|
|
|
149
147
|
after : typing.Optional[str]
|
|
150
148
|
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
|
|
151
149
|
|
|
152
|
-
expand : typing.Optional[
|
|
150
|
+
expand : typing.Optional[GetHosDailyLogsRequestExpand]
|
|
153
151
|
Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.
|
|
154
152
|
|
|
155
153
|
Valid value: `vehicle` Valid values: `vehicle`
|
|
@@ -169,14 +167,7 @@ class HoursOfServiceClient:
|
|
|
169
167
|
client = Samsara(
|
|
170
168
|
token="YOUR_TOKEN",
|
|
171
169
|
)
|
|
172
|
-
client.hours_of_service.get_hos_daily_logs(
|
|
173
|
-
start_date="startDate",
|
|
174
|
-
end_date="endDate",
|
|
175
|
-
tag_ids="tagIds",
|
|
176
|
-
parent_tag_ids="parentTagIds",
|
|
177
|
-
driver_activation_status="active",
|
|
178
|
-
after="after",
|
|
179
|
-
)
|
|
170
|
+
client.hours_of_service.get_hos_daily_logs()
|
|
180
171
|
"""
|
|
181
172
|
_response = self._raw_client.get_hos_daily_logs(
|
|
182
173
|
driver_ids=driver_ids,
|
|
@@ -248,11 +239,7 @@ class HoursOfServiceClient:
|
|
|
248
239
|
client = Samsara(
|
|
249
240
|
token="YOUR_TOKEN",
|
|
250
241
|
)
|
|
251
|
-
client.hours_of_service.get_hos_logs(
|
|
252
|
-
start_time="startTime",
|
|
253
|
-
end_time="endTime",
|
|
254
|
-
after="after",
|
|
255
|
-
)
|
|
242
|
+
client.hours_of_service.get_hos_logs()
|
|
256
243
|
"""
|
|
257
244
|
_response = self._raw_client.get_hos_logs(
|
|
258
245
|
tag_ids=tag_ids,
|
|
@@ -331,13 +318,7 @@ class HoursOfServiceClient:
|
|
|
331
318
|
client = Samsara(
|
|
332
319
|
token="YOUR_TOKEN",
|
|
333
320
|
)
|
|
334
|
-
client.hours_of_service.get_hos_violations(
|
|
335
|
-
start_time="startTime",
|
|
336
|
-
end_time="endTime",
|
|
337
|
-
tag_ids="tagIds",
|
|
338
|
-
parent_tag_ids="parentTagIds",
|
|
339
|
-
after="after",
|
|
340
|
-
)
|
|
321
|
+
client.hours_of_service.get_hos_violations()
|
|
341
322
|
"""
|
|
342
323
|
_response = self._raw_client.get_hos_violations(
|
|
343
324
|
driver_ids=driver_ids,
|
|
@@ -554,10 +535,7 @@ class AsyncHoursOfServiceClient:
|
|
|
554
535
|
|
|
555
536
|
|
|
556
537
|
async def main() -> None:
|
|
557
|
-
await client.hours_of_service.get_hos_clocks(
|
|
558
|
-
after="after",
|
|
559
|
-
limit=1000000,
|
|
560
|
-
)
|
|
538
|
+
await client.hours_of_service.get_hos_clocks()
|
|
561
539
|
|
|
562
540
|
|
|
563
541
|
asyncio.run(main())
|
|
@@ -582,7 +560,7 @@ class AsyncHoursOfServiceClient:
|
|
|
582
560
|
parent_tag_ids: typing.Optional[str] = None,
|
|
583
561
|
driver_activation_status: typing.Optional[GetHosDailyLogsRequestDriverActivationStatus] = None,
|
|
584
562
|
after: typing.Optional[str] = None,
|
|
585
|
-
expand: typing.Optional[
|
|
563
|
+
expand: typing.Optional[GetHosDailyLogsRequestExpand] = None,
|
|
586
564
|
request_options: typing.Optional[RequestOptions] = None,
|
|
587
565
|
) -> HosDailyLogsGetHosDailyLogsResponseBody:
|
|
588
566
|
"""
|
|
@@ -626,7 +604,7 @@ class AsyncHoursOfServiceClient:
|
|
|
626
604
|
after : typing.Optional[str]
|
|
627
605
|
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
|
|
628
606
|
|
|
629
|
-
expand : typing.Optional[
|
|
607
|
+
expand : typing.Optional[GetHosDailyLogsRequestExpand]
|
|
630
608
|
Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.
|
|
631
609
|
|
|
632
610
|
Valid value: `vehicle` Valid values: `vehicle`
|
|
@@ -651,14 +629,7 @@ class AsyncHoursOfServiceClient:
|
|
|
651
629
|
|
|
652
630
|
|
|
653
631
|
async def main() -> None:
|
|
654
|
-
await client.hours_of_service.get_hos_daily_logs(
|
|
655
|
-
start_date="startDate",
|
|
656
|
-
end_date="endDate",
|
|
657
|
-
tag_ids="tagIds",
|
|
658
|
-
parent_tag_ids="parentTagIds",
|
|
659
|
-
driver_activation_status="active",
|
|
660
|
-
after="after",
|
|
661
|
-
)
|
|
632
|
+
await client.hours_of_service.get_hos_daily_logs()
|
|
662
633
|
|
|
663
634
|
|
|
664
635
|
asyncio.run(main())
|
|
@@ -738,11 +709,7 @@ class AsyncHoursOfServiceClient:
|
|
|
738
709
|
|
|
739
710
|
|
|
740
711
|
async def main() -> None:
|
|
741
|
-
await client.hours_of_service.get_hos_logs(
|
|
742
|
-
start_time="startTime",
|
|
743
|
-
end_time="endTime",
|
|
744
|
-
after="after",
|
|
745
|
-
)
|
|
712
|
+
await client.hours_of_service.get_hos_logs()
|
|
746
713
|
|
|
747
714
|
|
|
748
715
|
asyncio.run(main())
|
|
@@ -829,13 +796,7 @@ class AsyncHoursOfServiceClient:
|
|
|
829
796
|
|
|
830
797
|
|
|
831
798
|
async def main() -> None:
|
|
832
|
-
await client.hours_of_service.get_hos_violations(
|
|
833
|
-
start_time="startTime",
|
|
834
|
-
end_time="endTime",
|
|
835
|
-
tag_ids="tagIds",
|
|
836
|
-
parent_tag_ids="parentTagIds",
|
|
837
|
-
after="after",
|
|
838
|
-
)
|
|
799
|
+
await client.hours_of_service.get_hos_violations()
|
|
839
800
|
|
|
840
801
|
|
|
841
802
|
asyncio.run(main())
|
|
@@ -24,6 +24,7 @@ from ..types.hos_logs_response import HosLogsResponse
|
|
|
24
24
|
from ..types.hos_violations_get_hos_violations_response_body import HosViolationsGetHosViolationsResponseBody
|
|
25
25
|
from ..types.v_1_hos_authentication_logs_response import V1HosAuthenticationLogsResponse
|
|
26
26
|
from .types.get_hos_daily_logs_request_driver_activation_status import GetHosDailyLogsRequestDriverActivationStatus
|
|
27
|
+
from .types.get_hos_daily_logs_request_expand import GetHosDailyLogsRequestExpand
|
|
27
28
|
|
|
28
29
|
# this is used as the default value for optional parameters
|
|
29
30
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -112,7 +113,7 @@ class RawHoursOfServiceClient:
|
|
|
112
113
|
parent_tag_ids: typing.Optional[str] = None,
|
|
113
114
|
driver_activation_status: typing.Optional[GetHosDailyLogsRequestDriverActivationStatus] = None,
|
|
114
115
|
after: typing.Optional[str] = None,
|
|
115
|
-
expand: typing.Optional[
|
|
116
|
+
expand: typing.Optional[GetHosDailyLogsRequestExpand] = None,
|
|
116
117
|
request_options: typing.Optional[RequestOptions] = None,
|
|
117
118
|
) -> HttpResponse[HosDailyLogsGetHosDailyLogsResponseBody]:
|
|
118
119
|
"""
|
|
@@ -156,7 +157,7 @@ class RawHoursOfServiceClient:
|
|
|
156
157
|
after : typing.Optional[str]
|
|
157
158
|
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
|
|
158
159
|
|
|
159
|
-
expand : typing.Optional[
|
|
160
|
+
expand : typing.Optional[GetHosDailyLogsRequestExpand]
|
|
160
161
|
Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.
|
|
161
162
|
|
|
162
163
|
Valid value: `vehicle` Valid values: `vehicle`
|
|
@@ -198,9 +199,9 @@ class RawHoursOfServiceClient:
|
|
|
198
199
|
raise UnauthorizedError(
|
|
199
200
|
headers=dict(_response.headers),
|
|
200
201
|
body=typing.cast(
|
|
201
|
-
typing.
|
|
202
|
+
typing.Any,
|
|
202
203
|
parse_obj_as(
|
|
203
|
-
type_=typing.
|
|
204
|
+
type_=typing.Any, # type: ignore
|
|
204
205
|
object_=_response.json(),
|
|
205
206
|
),
|
|
206
207
|
),
|
|
@@ -209,9 +210,9 @@ class RawHoursOfServiceClient:
|
|
|
209
210
|
raise NotFoundError(
|
|
210
211
|
headers=dict(_response.headers),
|
|
211
212
|
body=typing.cast(
|
|
212
|
-
typing.
|
|
213
|
+
typing.Any,
|
|
213
214
|
parse_obj_as(
|
|
214
|
-
type_=typing.
|
|
215
|
+
type_=typing.Any, # type: ignore
|
|
215
216
|
object_=_response.json(),
|
|
216
217
|
),
|
|
217
218
|
),
|
|
@@ -220,9 +221,9 @@ class RawHoursOfServiceClient:
|
|
|
220
221
|
raise MethodNotAllowedError(
|
|
221
222
|
headers=dict(_response.headers),
|
|
222
223
|
body=typing.cast(
|
|
223
|
-
typing.
|
|
224
|
+
typing.Any,
|
|
224
225
|
parse_obj_as(
|
|
225
|
-
type_=typing.
|
|
226
|
+
type_=typing.Any, # type: ignore
|
|
226
227
|
object_=_response.json(),
|
|
227
228
|
),
|
|
228
229
|
),
|
|
@@ -231,9 +232,9 @@ class RawHoursOfServiceClient:
|
|
|
231
232
|
raise TooManyRequestsError(
|
|
232
233
|
headers=dict(_response.headers),
|
|
233
234
|
body=typing.cast(
|
|
234
|
-
typing.
|
|
235
|
+
typing.Any,
|
|
235
236
|
parse_obj_as(
|
|
236
|
-
type_=typing.
|
|
237
|
+
type_=typing.Any, # type: ignore
|
|
237
238
|
object_=_response.json(),
|
|
238
239
|
),
|
|
239
240
|
),
|
|
@@ -242,9 +243,9 @@ class RawHoursOfServiceClient:
|
|
|
242
243
|
raise InternalServerError(
|
|
243
244
|
headers=dict(_response.headers),
|
|
244
245
|
body=typing.cast(
|
|
245
|
-
typing.
|
|
246
|
+
typing.Any,
|
|
246
247
|
parse_obj_as(
|
|
247
|
-
type_=typing.
|
|
248
|
+
type_=typing.Any, # type: ignore
|
|
248
249
|
object_=_response.json(),
|
|
249
250
|
),
|
|
250
251
|
),
|
|
@@ -253,9 +254,9 @@ class RawHoursOfServiceClient:
|
|
|
253
254
|
raise NotImplementedError(
|
|
254
255
|
headers=dict(_response.headers),
|
|
255
256
|
body=typing.cast(
|
|
256
|
-
typing.
|
|
257
|
+
typing.Any,
|
|
257
258
|
parse_obj_as(
|
|
258
|
-
type_=typing.
|
|
259
|
+
type_=typing.Any, # type: ignore
|
|
259
260
|
object_=_response.json(),
|
|
260
261
|
),
|
|
261
262
|
),
|
|
@@ -264,9 +265,9 @@ class RawHoursOfServiceClient:
|
|
|
264
265
|
raise BadGatewayError(
|
|
265
266
|
headers=dict(_response.headers),
|
|
266
267
|
body=typing.cast(
|
|
267
|
-
typing.
|
|
268
|
+
typing.Any,
|
|
268
269
|
parse_obj_as(
|
|
269
|
-
type_=typing.
|
|
270
|
+
type_=typing.Any, # type: ignore
|
|
270
271
|
object_=_response.json(),
|
|
271
272
|
),
|
|
272
273
|
),
|
|
@@ -275,9 +276,9 @@ class RawHoursOfServiceClient:
|
|
|
275
276
|
raise ServiceUnavailableError(
|
|
276
277
|
headers=dict(_response.headers),
|
|
277
278
|
body=typing.cast(
|
|
278
|
-
typing.
|
|
279
|
+
typing.Any,
|
|
279
280
|
parse_obj_as(
|
|
280
|
-
type_=typing.
|
|
281
|
+
type_=typing.Any, # type: ignore
|
|
281
282
|
object_=_response.json(),
|
|
282
283
|
),
|
|
283
284
|
),
|
|
@@ -286,9 +287,9 @@ class RawHoursOfServiceClient:
|
|
|
286
287
|
raise GatewayTimeoutError(
|
|
287
288
|
headers=dict(_response.headers),
|
|
288
289
|
body=typing.cast(
|
|
289
|
-
typing.
|
|
290
|
+
typing.Any,
|
|
290
291
|
parse_obj_as(
|
|
291
|
-
type_=typing.
|
|
292
|
+
type_=typing.Any, # type: ignore
|
|
292
293
|
object_=_response.json(),
|
|
293
294
|
),
|
|
294
295
|
),
|
|
@@ -463,9 +464,9 @@ class RawHoursOfServiceClient:
|
|
|
463
464
|
raise UnauthorizedError(
|
|
464
465
|
headers=dict(_response.headers),
|
|
465
466
|
body=typing.cast(
|
|
466
|
-
typing.
|
|
467
|
+
typing.Any,
|
|
467
468
|
parse_obj_as(
|
|
468
|
-
type_=typing.
|
|
469
|
+
type_=typing.Any, # type: ignore
|
|
469
470
|
object_=_response.json(),
|
|
470
471
|
),
|
|
471
472
|
),
|
|
@@ -474,9 +475,9 @@ class RawHoursOfServiceClient:
|
|
|
474
475
|
raise NotFoundError(
|
|
475
476
|
headers=dict(_response.headers),
|
|
476
477
|
body=typing.cast(
|
|
477
|
-
typing.
|
|
478
|
+
typing.Any,
|
|
478
479
|
parse_obj_as(
|
|
479
|
-
type_=typing.
|
|
480
|
+
type_=typing.Any, # type: ignore
|
|
480
481
|
object_=_response.json(),
|
|
481
482
|
),
|
|
482
483
|
),
|
|
@@ -485,9 +486,9 @@ class RawHoursOfServiceClient:
|
|
|
485
486
|
raise MethodNotAllowedError(
|
|
486
487
|
headers=dict(_response.headers),
|
|
487
488
|
body=typing.cast(
|
|
488
|
-
typing.
|
|
489
|
+
typing.Any,
|
|
489
490
|
parse_obj_as(
|
|
490
|
-
type_=typing.
|
|
491
|
+
type_=typing.Any, # type: ignore
|
|
491
492
|
object_=_response.json(),
|
|
492
493
|
),
|
|
493
494
|
),
|
|
@@ -496,9 +497,9 @@ class RawHoursOfServiceClient:
|
|
|
496
497
|
raise TooManyRequestsError(
|
|
497
498
|
headers=dict(_response.headers),
|
|
498
499
|
body=typing.cast(
|
|
499
|
-
typing.
|
|
500
|
+
typing.Any,
|
|
500
501
|
parse_obj_as(
|
|
501
|
-
type_=typing.
|
|
502
|
+
type_=typing.Any, # type: ignore
|
|
502
503
|
object_=_response.json(),
|
|
503
504
|
),
|
|
504
505
|
),
|
|
@@ -507,9 +508,9 @@ class RawHoursOfServiceClient:
|
|
|
507
508
|
raise InternalServerError(
|
|
508
509
|
headers=dict(_response.headers),
|
|
509
510
|
body=typing.cast(
|
|
510
|
-
typing.
|
|
511
|
+
typing.Any,
|
|
511
512
|
parse_obj_as(
|
|
512
|
-
type_=typing.
|
|
513
|
+
type_=typing.Any, # type: ignore
|
|
513
514
|
object_=_response.json(),
|
|
514
515
|
),
|
|
515
516
|
),
|
|
@@ -518,9 +519,9 @@ class RawHoursOfServiceClient:
|
|
|
518
519
|
raise NotImplementedError(
|
|
519
520
|
headers=dict(_response.headers),
|
|
520
521
|
body=typing.cast(
|
|
521
|
-
typing.
|
|
522
|
+
typing.Any,
|
|
522
523
|
parse_obj_as(
|
|
523
|
-
type_=typing.
|
|
524
|
+
type_=typing.Any, # type: ignore
|
|
524
525
|
object_=_response.json(),
|
|
525
526
|
),
|
|
526
527
|
),
|
|
@@ -529,9 +530,9 @@ class RawHoursOfServiceClient:
|
|
|
529
530
|
raise BadGatewayError(
|
|
530
531
|
headers=dict(_response.headers),
|
|
531
532
|
body=typing.cast(
|
|
532
|
-
typing.
|
|
533
|
+
typing.Any,
|
|
533
534
|
parse_obj_as(
|
|
534
|
-
type_=typing.
|
|
535
|
+
type_=typing.Any, # type: ignore
|
|
535
536
|
object_=_response.json(),
|
|
536
537
|
),
|
|
537
538
|
),
|
|
@@ -540,9 +541,9 @@ class RawHoursOfServiceClient:
|
|
|
540
541
|
raise ServiceUnavailableError(
|
|
541
542
|
headers=dict(_response.headers),
|
|
542
543
|
body=typing.cast(
|
|
543
|
-
typing.
|
|
544
|
+
typing.Any,
|
|
544
545
|
parse_obj_as(
|
|
545
|
-
type_=typing.
|
|
546
|
+
type_=typing.Any, # type: ignore
|
|
546
547
|
object_=_response.json(),
|
|
547
548
|
),
|
|
548
549
|
),
|
|
@@ -551,9 +552,9 @@ class RawHoursOfServiceClient:
|
|
|
551
552
|
raise GatewayTimeoutError(
|
|
552
553
|
headers=dict(_response.headers),
|
|
553
554
|
body=typing.cast(
|
|
554
|
-
typing.
|
|
555
|
+
typing.Any,
|
|
555
556
|
parse_obj_as(
|
|
556
|
-
type_=typing.
|
|
557
|
+
type_=typing.Any, # type: ignore
|
|
557
558
|
object_=_response.json(),
|
|
558
559
|
),
|
|
559
560
|
),
|
|
@@ -788,7 +789,7 @@ class AsyncRawHoursOfServiceClient:
|
|
|
788
789
|
parent_tag_ids: typing.Optional[str] = None,
|
|
789
790
|
driver_activation_status: typing.Optional[GetHosDailyLogsRequestDriverActivationStatus] = None,
|
|
790
791
|
after: typing.Optional[str] = None,
|
|
791
|
-
expand: typing.Optional[
|
|
792
|
+
expand: typing.Optional[GetHosDailyLogsRequestExpand] = None,
|
|
792
793
|
request_options: typing.Optional[RequestOptions] = None,
|
|
793
794
|
) -> AsyncHttpResponse[HosDailyLogsGetHosDailyLogsResponseBody]:
|
|
794
795
|
"""
|
|
@@ -832,7 +833,7 @@ class AsyncRawHoursOfServiceClient:
|
|
|
832
833
|
after : typing.Optional[str]
|
|
833
834
|
If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.
|
|
834
835
|
|
|
835
|
-
expand : typing.Optional[
|
|
836
|
+
expand : typing.Optional[GetHosDailyLogsRequestExpand]
|
|
836
837
|
Expands the specified value(s) in the response object. Expansion populates additional fields in an object, if supported. Unsupported fields are ignored. To expand multiple fields, input a comma-separated list.
|
|
837
838
|
|
|
838
839
|
Valid value: `vehicle` Valid values: `vehicle`
|
|
@@ -874,9 +875,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
874
875
|
raise UnauthorizedError(
|
|
875
876
|
headers=dict(_response.headers),
|
|
876
877
|
body=typing.cast(
|
|
877
|
-
typing.
|
|
878
|
+
typing.Any,
|
|
878
879
|
parse_obj_as(
|
|
879
|
-
type_=typing.
|
|
880
|
+
type_=typing.Any, # type: ignore
|
|
880
881
|
object_=_response.json(),
|
|
881
882
|
),
|
|
882
883
|
),
|
|
@@ -885,9 +886,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
885
886
|
raise NotFoundError(
|
|
886
887
|
headers=dict(_response.headers),
|
|
887
888
|
body=typing.cast(
|
|
888
|
-
typing.
|
|
889
|
+
typing.Any,
|
|
889
890
|
parse_obj_as(
|
|
890
|
-
type_=typing.
|
|
891
|
+
type_=typing.Any, # type: ignore
|
|
891
892
|
object_=_response.json(),
|
|
892
893
|
),
|
|
893
894
|
),
|
|
@@ -896,9 +897,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
896
897
|
raise MethodNotAllowedError(
|
|
897
898
|
headers=dict(_response.headers),
|
|
898
899
|
body=typing.cast(
|
|
899
|
-
typing.
|
|
900
|
+
typing.Any,
|
|
900
901
|
parse_obj_as(
|
|
901
|
-
type_=typing.
|
|
902
|
+
type_=typing.Any, # type: ignore
|
|
902
903
|
object_=_response.json(),
|
|
903
904
|
),
|
|
904
905
|
),
|
|
@@ -907,9 +908,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
907
908
|
raise TooManyRequestsError(
|
|
908
909
|
headers=dict(_response.headers),
|
|
909
910
|
body=typing.cast(
|
|
910
|
-
typing.
|
|
911
|
+
typing.Any,
|
|
911
912
|
parse_obj_as(
|
|
912
|
-
type_=typing.
|
|
913
|
+
type_=typing.Any, # type: ignore
|
|
913
914
|
object_=_response.json(),
|
|
914
915
|
),
|
|
915
916
|
),
|
|
@@ -918,9 +919,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
918
919
|
raise InternalServerError(
|
|
919
920
|
headers=dict(_response.headers),
|
|
920
921
|
body=typing.cast(
|
|
921
|
-
typing.
|
|
922
|
+
typing.Any,
|
|
922
923
|
parse_obj_as(
|
|
923
|
-
type_=typing.
|
|
924
|
+
type_=typing.Any, # type: ignore
|
|
924
925
|
object_=_response.json(),
|
|
925
926
|
),
|
|
926
927
|
),
|
|
@@ -929,9 +930,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
929
930
|
raise NotImplementedError(
|
|
930
931
|
headers=dict(_response.headers),
|
|
931
932
|
body=typing.cast(
|
|
932
|
-
typing.
|
|
933
|
+
typing.Any,
|
|
933
934
|
parse_obj_as(
|
|
934
|
-
type_=typing.
|
|
935
|
+
type_=typing.Any, # type: ignore
|
|
935
936
|
object_=_response.json(),
|
|
936
937
|
),
|
|
937
938
|
),
|
|
@@ -940,9 +941,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
940
941
|
raise BadGatewayError(
|
|
941
942
|
headers=dict(_response.headers),
|
|
942
943
|
body=typing.cast(
|
|
943
|
-
typing.
|
|
944
|
+
typing.Any,
|
|
944
945
|
parse_obj_as(
|
|
945
|
-
type_=typing.
|
|
946
|
+
type_=typing.Any, # type: ignore
|
|
946
947
|
object_=_response.json(),
|
|
947
948
|
),
|
|
948
949
|
),
|
|
@@ -951,9 +952,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
951
952
|
raise ServiceUnavailableError(
|
|
952
953
|
headers=dict(_response.headers),
|
|
953
954
|
body=typing.cast(
|
|
954
|
-
typing.
|
|
955
|
+
typing.Any,
|
|
955
956
|
parse_obj_as(
|
|
956
|
-
type_=typing.
|
|
957
|
+
type_=typing.Any, # type: ignore
|
|
957
958
|
object_=_response.json(),
|
|
958
959
|
),
|
|
959
960
|
),
|
|
@@ -962,9 +963,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
962
963
|
raise GatewayTimeoutError(
|
|
963
964
|
headers=dict(_response.headers),
|
|
964
965
|
body=typing.cast(
|
|
965
|
-
typing.
|
|
966
|
+
typing.Any,
|
|
966
967
|
parse_obj_as(
|
|
967
|
-
type_=typing.
|
|
968
|
+
type_=typing.Any, # type: ignore
|
|
968
969
|
object_=_response.json(),
|
|
969
970
|
),
|
|
970
971
|
),
|
|
@@ -1139,9 +1140,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1139
1140
|
raise UnauthorizedError(
|
|
1140
1141
|
headers=dict(_response.headers),
|
|
1141
1142
|
body=typing.cast(
|
|
1142
|
-
typing.
|
|
1143
|
+
typing.Any,
|
|
1143
1144
|
parse_obj_as(
|
|
1144
|
-
type_=typing.
|
|
1145
|
+
type_=typing.Any, # type: ignore
|
|
1145
1146
|
object_=_response.json(),
|
|
1146
1147
|
),
|
|
1147
1148
|
),
|
|
@@ -1150,9 +1151,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1150
1151
|
raise NotFoundError(
|
|
1151
1152
|
headers=dict(_response.headers),
|
|
1152
1153
|
body=typing.cast(
|
|
1153
|
-
typing.
|
|
1154
|
+
typing.Any,
|
|
1154
1155
|
parse_obj_as(
|
|
1155
|
-
type_=typing.
|
|
1156
|
+
type_=typing.Any, # type: ignore
|
|
1156
1157
|
object_=_response.json(),
|
|
1157
1158
|
),
|
|
1158
1159
|
),
|
|
@@ -1161,9 +1162,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1161
1162
|
raise MethodNotAllowedError(
|
|
1162
1163
|
headers=dict(_response.headers),
|
|
1163
1164
|
body=typing.cast(
|
|
1164
|
-
typing.
|
|
1165
|
+
typing.Any,
|
|
1165
1166
|
parse_obj_as(
|
|
1166
|
-
type_=typing.
|
|
1167
|
+
type_=typing.Any, # type: ignore
|
|
1167
1168
|
object_=_response.json(),
|
|
1168
1169
|
),
|
|
1169
1170
|
),
|
|
@@ -1172,9 +1173,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1172
1173
|
raise TooManyRequestsError(
|
|
1173
1174
|
headers=dict(_response.headers),
|
|
1174
1175
|
body=typing.cast(
|
|
1175
|
-
typing.
|
|
1176
|
+
typing.Any,
|
|
1176
1177
|
parse_obj_as(
|
|
1177
|
-
type_=typing.
|
|
1178
|
+
type_=typing.Any, # type: ignore
|
|
1178
1179
|
object_=_response.json(),
|
|
1179
1180
|
),
|
|
1180
1181
|
),
|
|
@@ -1183,9 +1184,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1183
1184
|
raise InternalServerError(
|
|
1184
1185
|
headers=dict(_response.headers),
|
|
1185
1186
|
body=typing.cast(
|
|
1186
|
-
typing.
|
|
1187
|
+
typing.Any,
|
|
1187
1188
|
parse_obj_as(
|
|
1188
|
-
type_=typing.
|
|
1189
|
+
type_=typing.Any, # type: ignore
|
|
1189
1190
|
object_=_response.json(),
|
|
1190
1191
|
),
|
|
1191
1192
|
),
|
|
@@ -1194,9 +1195,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1194
1195
|
raise NotImplementedError(
|
|
1195
1196
|
headers=dict(_response.headers),
|
|
1196
1197
|
body=typing.cast(
|
|
1197
|
-
typing.
|
|
1198
|
+
typing.Any,
|
|
1198
1199
|
parse_obj_as(
|
|
1199
|
-
type_=typing.
|
|
1200
|
+
type_=typing.Any, # type: ignore
|
|
1200
1201
|
object_=_response.json(),
|
|
1201
1202
|
),
|
|
1202
1203
|
),
|
|
@@ -1205,9 +1206,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1205
1206
|
raise BadGatewayError(
|
|
1206
1207
|
headers=dict(_response.headers),
|
|
1207
1208
|
body=typing.cast(
|
|
1208
|
-
typing.
|
|
1209
|
+
typing.Any,
|
|
1209
1210
|
parse_obj_as(
|
|
1210
|
-
type_=typing.
|
|
1211
|
+
type_=typing.Any, # type: ignore
|
|
1211
1212
|
object_=_response.json(),
|
|
1212
1213
|
),
|
|
1213
1214
|
),
|
|
@@ -1216,9 +1217,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1216
1217
|
raise ServiceUnavailableError(
|
|
1217
1218
|
headers=dict(_response.headers),
|
|
1218
1219
|
body=typing.cast(
|
|
1219
|
-
typing.
|
|
1220
|
+
typing.Any,
|
|
1220
1221
|
parse_obj_as(
|
|
1221
|
-
type_=typing.
|
|
1222
|
+
type_=typing.Any, # type: ignore
|
|
1222
1223
|
object_=_response.json(),
|
|
1223
1224
|
),
|
|
1224
1225
|
),
|
|
@@ -1227,9 +1228,9 @@ class AsyncRawHoursOfServiceClient:
|
|
|
1227
1228
|
raise GatewayTimeoutError(
|
|
1228
1229
|
headers=dict(_response.headers),
|
|
1229
1230
|
body=typing.cast(
|
|
1230
|
-
typing.
|
|
1231
|
+
typing.Any,
|
|
1231
1232
|
parse_obj_as(
|
|
1232
|
-
type_=typing.
|
|
1233
|
+
type_=typing.Any, # type: ignore
|
|
1233
1234
|
object_=_response.json(),
|
|
1234
1235
|
),
|
|
1235
1236
|
),
|
|
@@ -7,8 +7,10 @@ from importlib import import_module
|
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
9
|
from .get_hos_daily_logs_request_driver_activation_status import GetHosDailyLogsRequestDriverActivationStatus
|
|
10
|
+
from .get_hos_daily_logs_request_expand import GetHosDailyLogsRequestExpand
|
|
10
11
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
-
"GetHosDailyLogsRequestDriverActivationStatus": ".get_hos_daily_logs_request_driver_activation_status"
|
|
12
|
+
"GetHosDailyLogsRequestDriverActivationStatus": ".get_hos_daily_logs_request_driver_activation_status",
|
|
13
|
+
"GetHosDailyLogsRequestExpand": ".get_hos_daily_logs_request_expand",
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
|
|
@@ -33,4 +35,4 @@ def __dir__():
|
|
|
33
35
|
return sorted(lazy_attrs)
|
|
34
36
|
|
|
35
37
|
|
|
36
|
-
__all__ = ["GetHosDailyLogsRequestDriverActivationStatus"]
|
|
38
|
+
__all__ = ["GetHosDailyLogsRequestDriverActivationStatus", "GetHosDailyLogsRequestExpand"]
|