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
|
@@ -29,6 +29,7 @@ from ..types.dvir_response import DvirResponse
|
|
|
29
29
|
from ..types.inline_response_2004 import InlineResponse2004
|
|
30
30
|
from ..types.resolved_by import ResolvedBy
|
|
31
31
|
from .types.create_dvir_request_safety_status import CreateDvirRequestSafetyStatus
|
|
32
|
+
from .types.create_dvir_request_type import CreateDvirRequestType
|
|
32
33
|
|
|
33
34
|
# this is used as the default value for optional parameters
|
|
34
35
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -99,9 +100,9 @@ class RawMaintenanceClient:
|
|
|
99
100
|
raise UnauthorizedError(
|
|
100
101
|
headers=dict(_response.headers),
|
|
101
102
|
body=typing.cast(
|
|
102
|
-
typing.
|
|
103
|
+
typing.Any,
|
|
103
104
|
parse_obj_as(
|
|
104
|
-
type_=typing.
|
|
105
|
+
type_=typing.Any, # type: ignore
|
|
105
106
|
object_=_response.json(),
|
|
106
107
|
),
|
|
107
108
|
),
|
|
@@ -110,9 +111,9 @@ class RawMaintenanceClient:
|
|
|
110
111
|
raise NotFoundError(
|
|
111
112
|
headers=dict(_response.headers),
|
|
112
113
|
body=typing.cast(
|
|
113
|
-
typing.
|
|
114
|
+
typing.Any,
|
|
114
115
|
parse_obj_as(
|
|
115
|
-
type_=typing.
|
|
116
|
+
type_=typing.Any, # type: ignore
|
|
116
117
|
object_=_response.json(),
|
|
117
118
|
),
|
|
118
119
|
),
|
|
@@ -121,9 +122,9 @@ class RawMaintenanceClient:
|
|
|
121
122
|
raise MethodNotAllowedError(
|
|
122
123
|
headers=dict(_response.headers),
|
|
123
124
|
body=typing.cast(
|
|
124
|
-
typing.
|
|
125
|
+
typing.Any,
|
|
125
126
|
parse_obj_as(
|
|
126
|
-
type_=typing.
|
|
127
|
+
type_=typing.Any, # type: ignore
|
|
127
128
|
object_=_response.json(),
|
|
128
129
|
),
|
|
129
130
|
),
|
|
@@ -132,9 +133,9 @@ class RawMaintenanceClient:
|
|
|
132
133
|
raise TooManyRequestsError(
|
|
133
134
|
headers=dict(_response.headers),
|
|
134
135
|
body=typing.cast(
|
|
135
|
-
typing.
|
|
136
|
+
typing.Any,
|
|
136
137
|
parse_obj_as(
|
|
137
|
-
type_=typing.
|
|
138
|
+
type_=typing.Any, # type: ignore
|
|
138
139
|
object_=_response.json(),
|
|
139
140
|
),
|
|
140
141
|
),
|
|
@@ -143,9 +144,9 @@ class RawMaintenanceClient:
|
|
|
143
144
|
raise InternalServerError(
|
|
144
145
|
headers=dict(_response.headers),
|
|
145
146
|
body=typing.cast(
|
|
146
|
-
typing.
|
|
147
|
+
typing.Any,
|
|
147
148
|
parse_obj_as(
|
|
148
|
-
type_=typing.
|
|
149
|
+
type_=typing.Any, # type: ignore
|
|
149
150
|
object_=_response.json(),
|
|
150
151
|
),
|
|
151
152
|
),
|
|
@@ -154,9 +155,9 @@ class RawMaintenanceClient:
|
|
|
154
155
|
raise NotImplementedError(
|
|
155
156
|
headers=dict(_response.headers),
|
|
156
157
|
body=typing.cast(
|
|
157
|
-
typing.
|
|
158
|
+
typing.Any,
|
|
158
159
|
parse_obj_as(
|
|
159
|
-
type_=typing.
|
|
160
|
+
type_=typing.Any, # type: ignore
|
|
160
161
|
object_=_response.json(),
|
|
161
162
|
),
|
|
162
163
|
),
|
|
@@ -165,9 +166,9 @@ class RawMaintenanceClient:
|
|
|
165
166
|
raise BadGatewayError(
|
|
166
167
|
headers=dict(_response.headers),
|
|
167
168
|
body=typing.cast(
|
|
168
|
-
typing.
|
|
169
|
+
typing.Any,
|
|
169
170
|
parse_obj_as(
|
|
170
|
-
type_=typing.
|
|
171
|
+
type_=typing.Any, # type: ignore
|
|
171
172
|
object_=_response.json(),
|
|
172
173
|
),
|
|
173
174
|
),
|
|
@@ -176,9 +177,9 @@ class RawMaintenanceClient:
|
|
|
176
177
|
raise ServiceUnavailableError(
|
|
177
178
|
headers=dict(_response.headers),
|
|
178
179
|
body=typing.cast(
|
|
179
|
-
typing.
|
|
180
|
+
typing.Any,
|
|
180
181
|
parse_obj_as(
|
|
181
|
-
type_=typing.
|
|
182
|
+
type_=typing.Any, # type: ignore
|
|
182
183
|
object_=_response.json(),
|
|
183
184
|
),
|
|
184
185
|
),
|
|
@@ -187,9 +188,9 @@ class RawMaintenanceClient:
|
|
|
187
188
|
raise GatewayTimeoutError(
|
|
188
189
|
headers=dict(_response.headers),
|
|
189
190
|
body=typing.cast(
|
|
190
|
-
typing.
|
|
191
|
+
typing.Any,
|
|
191
192
|
parse_obj_as(
|
|
192
|
-
type_=typing.
|
|
193
|
+
type_=typing.Any, # type: ignore
|
|
193
194
|
object_=_response.json(),
|
|
194
195
|
),
|
|
195
196
|
),
|
|
@@ -275,9 +276,9 @@ class RawMaintenanceClient:
|
|
|
275
276
|
raise UnauthorizedError(
|
|
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 RawMaintenanceClient:
|
|
|
286
287
|
raise NotFoundError(
|
|
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
|
),
|
|
@@ -297,9 +298,9 @@ class RawMaintenanceClient:
|
|
|
297
298
|
raise MethodNotAllowedError(
|
|
298
299
|
headers=dict(_response.headers),
|
|
299
300
|
body=typing.cast(
|
|
300
|
-
typing.
|
|
301
|
+
typing.Any,
|
|
301
302
|
parse_obj_as(
|
|
302
|
-
type_=typing.
|
|
303
|
+
type_=typing.Any, # type: ignore
|
|
303
304
|
object_=_response.json(),
|
|
304
305
|
),
|
|
305
306
|
),
|
|
@@ -308,9 +309,9 @@ class RawMaintenanceClient:
|
|
|
308
309
|
raise TooManyRequestsError(
|
|
309
310
|
headers=dict(_response.headers),
|
|
310
311
|
body=typing.cast(
|
|
311
|
-
typing.
|
|
312
|
+
typing.Any,
|
|
312
313
|
parse_obj_as(
|
|
313
|
-
type_=typing.
|
|
314
|
+
type_=typing.Any, # type: ignore
|
|
314
315
|
object_=_response.json(),
|
|
315
316
|
),
|
|
316
317
|
),
|
|
@@ -319,9 +320,9 @@ class RawMaintenanceClient:
|
|
|
319
320
|
raise InternalServerError(
|
|
320
321
|
headers=dict(_response.headers),
|
|
321
322
|
body=typing.cast(
|
|
322
|
-
typing.
|
|
323
|
+
typing.Any,
|
|
323
324
|
parse_obj_as(
|
|
324
|
-
type_=typing.
|
|
325
|
+
type_=typing.Any, # type: ignore
|
|
325
326
|
object_=_response.json(),
|
|
326
327
|
),
|
|
327
328
|
),
|
|
@@ -330,9 +331,9 @@ class RawMaintenanceClient:
|
|
|
330
331
|
raise NotImplementedError(
|
|
331
332
|
headers=dict(_response.headers),
|
|
332
333
|
body=typing.cast(
|
|
333
|
-
typing.
|
|
334
|
+
typing.Any,
|
|
334
335
|
parse_obj_as(
|
|
335
|
-
type_=typing.
|
|
336
|
+
type_=typing.Any, # type: ignore
|
|
336
337
|
object_=_response.json(),
|
|
337
338
|
),
|
|
338
339
|
),
|
|
@@ -341,9 +342,9 @@ class RawMaintenanceClient:
|
|
|
341
342
|
raise BadGatewayError(
|
|
342
343
|
headers=dict(_response.headers),
|
|
343
344
|
body=typing.cast(
|
|
344
|
-
typing.
|
|
345
|
+
typing.Any,
|
|
345
346
|
parse_obj_as(
|
|
346
|
-
type_=typing.
|
|
347
|
+
type_=typing.Any, # type: ignore
|
|
347
348
|
object_=_response.json(),
|
|
348
349
|
),
|
|
349
350
|
),
|
|
@@ -352,9 +353,9 @@ class RawMaintenanceClient:
|
|
|
352
353
|
raise ServiceUnavailableError(
|
|
353
354
|
headers=dict(_response.headers),
|
|
354
355
|
body=typing.cast(
|
|
355
|
-
typing.
|
|
356
|
+
typing.Any,
|
|
356
357
|
parse_obj_as(
|
|
357
|
-
type_=typing.
|
|
358
|
+
type_=typing.Any, # type: ignore
|
|
358
359
|
object_=_response.json(),
|
|
359
360
|
),
|
|
360
361
|
),
|
|
@@ -363,9 +364,9 @@ class RawMaintenanceClient:
|
|
|
363
364
|
raise GatewayTimeoutError(
|
|
364
365
|
headers=dict(_response.headers),
|
|
365
366
|
body=typing.cast(
|
|
366
|
-
typing.
|
|
367
|
+
typing.Any,
|
|
367
368
|
parse_obj_as(
|
|
368
|
-
type_=typing.
|
|
369
|
+
type_=typing.Any, # type: ignore
|
|
369
370
|
object_=_response.json(),
|
|
370
371
|
),
|
|
371
372
|
),
|
|
@@ -430,9 +431,9 @@ class RawMaintenanceClient:
|
|
|
430
431
|
raise UnauthorizedError(
|
|
431
432
|
headers=dict(_response.headers),
|
|
432
433
|
body=typing.cast(
|
|
433
|
-
typing.
|
|
434
|
+
typing.Any,
|
|
434
435
|
parse_obj_as(
|
|
435
|
-
type_=typing.
|
|
436
|
+
type_=typing.Any, # type: ignore
|
|
436
437
|
object_=_response.json(),
|
|
437
438
|
),
|
|
438
439
|
),
|
|
@@ -441,9 +442,9 @@ class RawMaintenanceClient:
|
|
|
441
442
|
raise NotFoundError(
|
|
442
443
|
headers=dict(_response.headers),
|
|
443
444
|
body=typing.cast(
|
|
444
|
-
typing.
|
|
445
|
+
typing.Any,
|
|
445
446
|
parse_obj_as(
|
|
446
|
-
type_=typing.
|
|
447
|
+
type_=typing.Any, # type: ignore
|
|
447
448
|
object_=_response.json(),
|
|
448
449
|
),
|
|
449
450
|
),
|
|
@@ -452,9 +453,9 @@ class RawMaintenanceClient:
|
|
|
452
453
|
raise MethodNotAllowedError(
|
|
453
454
|
headers=dict(_response.headers),
|
|
454
455
|
body=typing.cast(
|
|
455
|
-
typing.
|
|
456
|
+
typing.Any,
|
|
456
457
|
parse_obj_as(
|
|
457
|
-
type_=typing.
|
|
458
|
+
type_=typing.Any, # type: ignore
|
|
458
459
|
object_=_response.json(),
|
|
459
460
|
),
|
|
460
461
|
),
|
|
@@ -463,9 +464,9 @@ class RawMaintenanceClient:
|
|
|
463
464
|
raise TooManyRequestsError(
|
|
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 RawMaintenanceClient:
|
|
|
474
475
|
raise InternalServerError(
|
|
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 RawMaintenanceClient:
|
|
|
485
486
|
raise NotImplementedError(
|
|
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 RawMaintenanceClient:
|
|
|
496
497
|
raise BadGatewayError(
|
|
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 RawMaintenanceClient:
|
|
|
507
508
|
raise ServiceUnavailableError(
|
|
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 RawMaintenanceClient:
|
|
|
518
519
|
raise GatewayTimeoutError(
|
|
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
|
),
|
|
@@ -606,9 +607,9 @@ class RawMaintenanceClient:
|
|
|
606
607
|
raise UnauthorizedError(
|
|
607
608
|
headers=dict(_response.headers),
|
|
608
609
|
body=typing.cast(
|
|
609
|
-
typing.
|
|
610
|
+
typing.Any,
|
|
610
611
|
parse_obj_as(
|
|
611
|
-
type_=typing.
|
|
612
|
+
type_=typing.Any, # type: ignore
|
|
612
613
|
object_=_response.json(),
|
|
613
614
|
),
|
|
614
615
|
),
|
|
@@ -617,9 +618,9 @@ class RawMaintenanceClient:
|
|
|
617
618
|
raise NotFoundError(
|
|
618
619
|
headers=dict(_response.headers),
|
|
619
620
|
body=typing.cast(
|
|
620
|
-
typing.
|
|
621
|
+
typing.Any,
|
|
621
622
|
parse_obj_as(
|
|
622
|
-
type_=typing.
|
|
623
|
+
type_=typing.Any, # type: ignore
|
|
623
624
|
object_=_response.json(),
|
|
624
625
|
),
|
|
625
626
|
),
|
|
@@ -628,9 +629,9 @@ class RawMaintenanceClient:
|
|
|
628
629
|
raise MethodNotAllowedError(
|
|
629
630
|
headers=dict(_response.headers),
|
|
630
631
|
body=typing.cast(
|
|
631
|
-
typing.
|
|
632
|
+
typing.Any,
|
|
632
633
|
parse_obj_as(
|
|
633
|
-
type_=typing.
|
|
634
|
+
type_=typing.Any, # type: ignore
|
|
634
635
|
object_=_response.json(),
|
|
635
636
|
),
|
|
636
637
|
),
|
|
@@ -639,9 +640,9 @@ class RawMaintenanceClient:
|
|
|
639
640
|
raise TooManyRequestsError(
|
|
640
641
|
headers=dict(_response.headers),
|
|
641
642
|
body=typing.cast(
|
|
642
|
-
typing.
|
|
643
|
+
typing.Any,
|
|
643
644
|
parse_obj_as(
|
|
644
|
-
type_=typing.
|
|
645
|
+
type_=typing.Any, # type: ignore
|
|
645
646
|
object_=_response.json(),
|
|
646
647
|
),
|
|
647
648
|
),
|
|
@@ -650,9 +651,9 @@ class RawMaintenanceClient:
|
|
|
650
651
|
raise InternalServerError(
|
|
651
652
|
headers=dict(_response.headers),
|
|
652
653
|
body=typing.cast(
|
|
653
|
-
typing.
|
|
654
|
+
typing.Any,
|
|
654
655
|
parse_obj_as(
|
|
655
|
-
type_=typing.
|
|
656
|
+
type_=typing.Any, # type: ignore
|
|
656
657
|
object_=_response.json(),
|
|
657
658
|
),
|
|
658
659
|
),
|
|
@@ -661,9 +662,9 @@ class RawMaintenanceClient:
|
|
|
661
662
|
raise NotImplementedError(
|
|
662
663
|
headers=dict(_response.headers),
|
|
663
664
|
body=typing.cast(
|
|
664
|
-
typing.
|
|
665
|
+
typing.Any,
|
|
665
666
|
parse_obj_as(
|
|
666
|
-
type_=typing.
|
|
667
|
+
type_=typing.Any, # type: ignore
|
|
667
668
|
object_=_response.json(),
|
|
668
669
|
),
|
|
669
670
|
),
|
|
@@ -672,9 +673,9 @@ class RawMaintenanceClient:
|
|
|
672
673
|
raise BadGatewayError(
|
|
673
674
|
headers=dict(_response.headers),
|
|
674
675
|
body=typing.cast(
|
|
675
|
-
typing.
|
|
676
|
+
typing.Any,
|
|
676
677
|
parse_obj_as(
|
|
677
|
-
type_=typing.
|
|
678
|
+
type_=typing.Any, # type: ignore
|
|
678
679
|
object_=_response.json(),
|
|
679
680
|
),
|
|
680
681
|
),
|
|
@@ -683,9 +684,9 @@ class RawMaintenanceClient:
|
|
|
683
684
|
raise ServiceUnavailableError(
|
|
684
685
|
headers=dict(_response.headers),
|
|
685
686
|
body=typing.cast(
|
|
686
|
-
typing.
|
|
687
|
+
typing.Any,
|
|
687
688
|
parse_obj_as(
|
|
688
|
-
type_=typing.
|
|
689
|
+
type_=typing.Any, # type: ignore
|
|
689
690
|
object_=_response.json(),
|
|
690
691
|
),
|
|
691
692
|
),
|
|
@@ -694,9 +695,9 @@ class RawMaintenanceClient:
|
|
|
694
695
|
raise GatewayTimeoutError(
|
|
695
696
|
headers=dict(_response.headers),
|
|
696
697
|
body=typing.cast(
|
|
697
|
-
typing.
|
|
698
|
+
typing.Any,
|
|
698
699
|
parse_obj_as(
|
|
699
|
-
type_=typing.
|
|
700
|
+
type_=typing.Any, # type: ignore
|
|
700
701
|
object_=_response.json(),
|
|
701
702
|
),
|
|
702
703
|
),
|
|
@@ -761,9 +762,9 @@ class RawMaintenanceClient:
|
|
|
761
762
|
raise UnauthorizedError(
|
|
762
763
|
headers=dict(_response.headers),
|
|
763
764
|
body=typing.cast(
|
|
764
|
-
typing.
|
|
765
|
+
typing.Any,
|
|
765
766
|
parse_obj_as(
|
|
766
|
-
type_=typing.
|
|
767
|
+
type_=typing.Any, # type: ignore
|
|
767
768
|
object_=_response.json(),
|
|
768
769
|
),
|
|
769
770
|
),
|
|
@@ -772,9 +773,9 @@ class RawMaintenanceClient:
|
|
|
772
773
|
raise NotFoundError(
|
|
773
774
|
headers=dict(_response.headers),
|
|
774
775
|
body=typing.cast(
|
|
775
|
-
typing.
|
|
776
|
+
typing.Any,
|
|
776
777
|
parse_obj_as(
|
|
777
|
-
type_=typing.
|
|
778
|
+
type_=typing.Any, # type: ignore
|
|
778
779
|
object_=_response.json(),
|
|
779
780
|
),
|
|
780
781
|
),
|
|
@@ -783,9 +784,9 @@ class RawMaintenanceClient:
|
|
|
783
784
|
raise MethodNotAllowedError(
|
|
784
785
|
headers=dict(_response.headers),
|
|
785
786
|
body=typing.cast(
|
|
786
|
-
typing.
|
|
787
|
+
typing.Any,
|
|
787
788
|
parse_obj_as(
|
|
788
|
-
type_=typing.
|
|
789
|
+
type_=typing.Any, # type: ignore
|
|
789
790
|
object_=_response.json(),
|
|
790
791
|
),
|
|
791
792
|
),
|
|
@@ -794,9 +795,9 @@ class RawMaintenanceClient:
|
|
|
794
795
|
raise TooManyRequestsError(
|
|
795
796
|
headers=dict(_response.headers),
|
|
796
797
|
body=typing.cast(
|
|
797
|
-
typing.
|
|
798
|
+
typing.Any,
|
|
798
799
|
parse_obj_as(
|
|
799
|
-
type_=typing.
|
|
800
|
+
type_=typing.Any, # type: ignore
|
|
800
801
|
object_=_response.json(),
|
|
801
802
|
),
|
|
802
803
|
),
|
|
@@ -805,9 +806,9 @@ class RawMaintenanceClient:
|
|
|
805
806
|
raise InternalServerError(
|
|
806
807
|
headers=dict(_response.headers),
|
|
807
808
|
body=typing.cast(
|
|
808
|
-
typing.
|
|
809
|
+
typing.Any,
|
|
809
810
|
parse_obj_as(
|
|
810
|
-
type_=typing.
|
|
811
|
+
type_=typing.Any, # type: ignore
|
|
811
812
|
object_=_response.json(),
|
|
812
813
|
),
|
|
813
814
|
),
|
|
@@ -816,9 +817,9 @@ class RawMaintenanceClient:
|
|
|
816
817
|
raise NotImplementedError(
|
|
817
818
|
headers=dict(_response.headers),
|
|
818
819
|
body=typing.cast(
|
|
819
|
-
typing.
|
|
820
|
+
typing.Any,
|
|
820
821
|
parse_obj_as(
|
|
821
|
-
type_=typing.
|
|
822
|
+
type_=typing.Any, # type: ignore
|
|
822
823
|
object_=_response.json(),
|
|
823
824
|
),
|
|
824
825
|
),
|
|
@@ -827,9 +828,9 @@ class RawMaintenanceClient:
|
|
|
827
828
|
raise BadGatewayError(
|
|
828
829
|
headers=dict(_response.headers),
|
|
829
830
|
body=typing.cast(
|
|
830
|
-
typing.
|
|
831
|
+
typing.Any,
|
|
831
832
|
parse_obj_as(
|
|
832
|
-
type_=typing.
|
|
833
|
+
type_=typing.Any, # type: ignore
|
|
833
834
|
object_=_response.json(),
|
|
834
835
|
),
|
|
835
836
|
),
|
|
@@ -838,9 +839,9 @@ class RawMaintenanceClient:
|
|
|
838
839
|
raise ServiceUnavailableError(
|
|
839
840
|
headers=dict(_response.headers),
|
|
840
841
|
body=typing.cast(
|
|
841
|
-
typing.
|
|
842
|
+
typing.Any,
|
|
842
843
|
parse_obj_as(
|
|
843
|
-
type_=typing.
|
|
844
|
+
type_=typing.Any, # type: ignore
|
|
844
845
|
object_=_response.json(),
|
|
845
846
|
),
|
|
846
847
|
),
|
|
@@ -849,9 +850,9 @@ class RawMaintenanceClient:
|
|
|
849
850
|
raise GatewayTimeoutError(
|
|
850
851
|
headers=dict(_response.headers),
|
|
851
852
|
body=typing.cast(
|
|
852
|
-
typing.
|
|
853
|
+
typing.Any,
|
|
853
854
|
parse_obj_as(
|
|
854
|
-
type_=typing.
|
|
855
|
+
type_=typing.Any, # type: ignore
|
|
855
856
|
object_=_response.json(),
|
|
856
857
|
),
|
|
857
858
|
),
|
|
@@ -939,6 +940,7 @@ class RawMaintenanceClient:
|
|
|
939
940
|
*,
|
|
940
941
|
author_id: str,
|
|
941
942
|
safety_status: CreateDvirRequestSafetyStatus,
|
|
943
|
+
type: CreateDvirRequestType,
|
|
942
944
|
license_plate: typing.Optional[str] = OMIT,
|
|
943
945
|
location: typing.Optional[str] = OMIT,
|
|
944
946
|
mechanic_notes: typing.Optional[str] = OMIT,
|
|
@@ -963,6 +965,9 @@ class RawMaintenanceClient:
|
|
|
963
965
|
safety_status : CreateDvirRequestSafetyStatus
|
|
964
966
|
Whether or not this vehicle or trailer is safe to drive.
|
|
965
967
|
|
|
968
|
+
type : CreateDvirRequestType
|
|
969
|
+
Only type 'mechanic' is currently accepted.
|
|
970
|
+
|
|
966
971
|
license_plate : typing.Optional[str]
|
|
967
972
|
The license plate of this vehicle.
|
|
968
973
|
|
|
@@ -1004,8 +1009,8 @@ class RawMaintenanceClient:
|
|
|
1004
1009
|
"resolvedDefectIds": resolved_defect_ids,
|
|
1005
1010
|
"safetyStatus": safety_status,
|
|
1006
1011
|
"trailerId": trailer_id,
|
|
1012
|
+
"type": type,
|
|
1007
1013
|
"vehicleId": vehicle_id,
|
|
1008
|
-
"type": "mechanic",
|
|
1009
1014
|
},
|
|
1010
1015
|
headers={
|
|
1011
1016
|
"content-type": "application/json",
|
|
@@ -1213,9 +1218,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1213
1218
|
raise UnauthorizedError(
|
|
1214
1219
|
headers=dict(_response.headers),
|
|
1215
1220
|
body=typing.cast(
|
|
1216
|
-
typing.
|
|
1221
|
+
typing.Any,
|
|
1217
1222
|
parse_obj_as(
|
|
1218
|
-
type_=typing.
|
|
1223
|
+
type_=typing.Any, # type: ignore
|
|
1219
1224
|
object_=_response.json(),
|
|
1220
1225
|
),
|
|
1221
1226
|
),
|
|
@@ -1224,9 +1229,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1224
1229
|
raise NotFoundError(
|
|
1225
1230
|
headers=dict(_response.headers),
|
|
1226
1231
|
body=typing.cast(
|
|
1227
|
-
typing.
|
|
1232
|
+
typing.Any,
|
|
1228
1233
|
parse_obj_as(
|
|
1229
|
-
type_=typing.
|
|
1234
|
+
type_=typing.Any, # type: ignore
|
|
1230
1235
|
object_=_response.json(),
|
|
1231
1236
|
),
|
|
1232
1237
|
),
|
|
@@ -1235,9 +1240,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1235
1240
|
raise MethodNotAllowedError(
|
|
1236
1241
|
headers=dict(_response.headers),
|
|
1237
1242
|
body=typing.cast(
|
|
1238
|
-
typing.
|
|
1243
|
+
typing.Any,
|
|
1239
1244
|
parse_obj_as(
|
|
1240
|
-
type_=typing.
|
|
1245
|
+
type_=typing.Any, # type: ignore
|
|
1241
1246
|
object_=_response.json(),
|
|
1242
1247
|
),
|
|
1243
1248
|
),
|
|
@@ -1246,9 +1251,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1246
1251
|
raise TooManyRequestsError(
|
|
1247
1252
|
headers=dict(_response.headers),
|
|
1248
1253
|
body=typing.cast(
|
|
1249
|
-
typing.
|
|
1254
|
+
typing.Any,
|
|
1250
1255
|
parse_obj_as(
|
|
1251
|
-
type_=typing.
|
|
1256
|
+
type_=typing.Any, # type: ignore
|
|
1252
1257
|
object_=_response.json(),
|
|
1253
1258
|
),
|
|
1254
1259
|
),
|
|
@@ -1257,9 +1262,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1257
1262
|
raise InternalServerError(
|
|
1258
1263
|
headers=dict(_response.headers),
|
|
1259
1264
|
body=typing.cast(
|
|
1260
|
-
typing.
|
|
1265
|
+
typing.Any,
|
|
1261
1266
|
parse_obj_as(
|
|
1262
|
-
type_=typing.
|
|
1267
|
+
type_=typing.Any, # type: ignore
|
|
1263
1268
|
object_=_response.json(),
|
|
1264
1269
|
),
|
|
1265
1270
|
),
|
|
@@ -1268,9 +1273,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1268
1273
|
raise NotImplementedError(
|
|
1269
1274
|
headers=dict(_response.headers),
|
|
1270
1275
|
body=typing.cast(
|
|
1271
|
-
typing.
|
|
1276
|
+
typing.Any,
|
|
1272
1277
|
parse_obj_as(
|
|
1273
|
-
type_=typing.
|
|
1278
|
+
type_=typing.Any, # type: ignore
|
|
1274
1279
|
object_=_response.json(),
|
|
1275
1280
|
),
|
|
1276
1281
|
),
|
|
@@ -1279,9 +1284,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1279
1284
|
raise BadGatewayError(
|
|
1280
1285
|
headers=dict(_response.headers),
|
|
1281
1286
|
body=typing.cast(
|
|
1282
|
-
typing.
|
|
1287
|
+
typing.Any,
|
|
1283
1288
|
parse_obj_as(
|
|
1284
|
-
type_=typing.
|
|
1289
|
+
type_=typing.Any, # type: ignore
|
|
1285
1290
|
object_=_response.json(),
|
|
1286
1291
|
),
|
|
1287
1292
|
),
|
|
@@ -1290,9 +1295,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1290
1295
|
raise ServiceUnavailableError(
|
|
1291
1296
|
headers=dict(_response.headers),
|
|
1292
1297
|
body=typing.cast(
|
|
1293
|
-
typing.
|
|
1298
|
+
typing.Any,
|
|
1294
1299
|
parse_obj_as(
|
|
1295
|
-
type_=typing.
|
|
1300
|
+
type_=typing.Any, # type: ignore
|
|
1296
1301
|
object_=_response.json(),
|
|
1297
1302
|
),
|
|
1298
1303
|
),
|
|
@@ -1301,9 +1306,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1301
1306
|
raise GatewayTimeoutError(
|
|
1302
1307
|
headers=dict(_response.headers),
|
|
1303
1308
|
body=typing.cast(
|
|
1304
|
-
typing.
|
|
1309
|
+
typing.Any,
|
|
1305
1310
|
parse_obj_as(
|
|
1306
|
-
type_=typing.
|
|
1311
|
+
type_=typing.Any, # type: ignore
|
|
1307
1312
|
object_=_response.json(),
|
|
1308
1313
|
),
|
|
1309
1314
|
),
|
|
@@ -1389,9 +1394,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1389
1394
|
raise UnauthorizedError(
|
|
1390
1395
|
headers=dict(_response.headers),
|
|
1391
1396
|
body=typing.cast(
|
|
1392
|
-
typing.
|
|
1397
|
+
typing.Any,
|
|
1393
1398
|
parse_obj_as(
|
|
1394
|
-
type_=typing.
|
|
1399
|
+
type_=typing.Any, # type: ignore
|
|
1395
1400
|
object_=_response.json(),
|
|
1396
1401
|
),
|
|
1397
1402
|
),
|
|
@@ -1400,9 +1405,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1400
1405
|
raise NotFoundError(
|
|
1401
1406
|
headers=dict(_response.headers),
|
|
1402
1407
|
body=typing.cast(
|
|
1403
|
-
typing.
|
|
1408
|
+
typing.Any,
|
|
1404
1409
|
parse_obj_as(
|
|
1405
|
-
type_=typing.
|
|
1410
|
+
type_=typing.Any, # type: ignore
|
|
1406
1411
|
object_=_response.json(),
|
|
1407
1412
|
),
|
|
1408
1413
|
),
|
|
@@ -1411,9 +1416,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1411
1416
|
raise MethodNotAllowedError(
|
|
1412
1417
|
headers=dict(_response.headers),
|
|
1413
1418
|
body=typing.cast(
|
|
1414
|
-
typing.
|
|
1419
|
+
typing.Any,
|
|
1415
1420
|
parse_obj_as(
|
|
1416
|
-
type_=typing.
|
|
1421
|
+
type_=typing.Any, # type: ignore
|
|
1417
1422
|
object_=_response.json(),
|
|
1418
1423
|
),
|
|
1419
1424
|
),
|
|
@@ -1422,9 +1427,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1422
1427
|
raise TooManyRequestsError(
|
|
1423
1428
|
headers=dict(_response.headers),
|
|
1424
1429
|
body=typing.cast(
|
|
1425
|
-
typing.
|
|
1430
|
+
typing.Any,
|
|
1426
1431
|
parse_obj_as(
|
|
1427
|
-
type_=typing.
|
|
1432
|
+
type_=typing.Any, # type: ignore
|
|
1428
1433
|
object_=_response.json(),
|
|
1429
1434
|
),
|
|
1430
1435
|
),
|
|
@@ -1433,9 +1438,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1433
1438
|
raise InternalServerError(
|
|
1434
1439
|
headers=dict(_response.headers),
|
|
1435
1440
|
body=typing.cast(
|
|
1436
|
-
typing.
|
|
1441
|
+
typing.Any,
|
|
1437
1442
|
parse_obj_as(
|
|
1438
|
-
type_=typing.
|
|
1443
|
+
type_=typing.Any, # type: ignore
|
|
1439
1444
|
object_=_response.json(),
|
|
1440
1445
|
),
|
|
1441
1446
|
),
|
|
@@ -1444,9 +1449,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1444
1449
|
raise NotImplementedError(
|
|
1445
1450
|
headers=dict(_response.headers),
|
|
1446
1451
|
body=typing.cast(
|
|
1447
|
-
typing.
|
|
1452
|
+
typing.Any,
|
|
1448
1453
|
parse_obj_as(
|
|
1449
|
-
type_=typing.
|
|
1454
|
+
type_=typing.Any, # type: ignore
|
|
1450
1455
|
object_=_response.json(),
|
|
1451
1456
|
),
|
|
1452
1457
|
),
|
|
@@ -1455,9 +1460,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1455
1460
|
raise BadGatewayError(
|
|
1456
1461
|
headers=dict(_response.headers),
|
|
1457
1462
|
body=typing.cast(
|
|
1458
|
-
typing.
|
|
1463
|
+
typing.Any,
|
|
1459
1464
|
parse_obj_as(
|
|
1460
|
-
type_=typing.
|
|
1465
|
+
type_=typing.Any, # type: ignore
|
|
1461
1466
|
object_=_response.json(),
|
|
1462
1467
|
),
|
|
1463
1468
|
),
|
|
@@ -1466,9 +1471,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1466
1471
|
raise ServiceUnavailableError(
|
|
1467
1472
|
headers=dict(_response.headers),
|
|
1468
1473
|
body=typing.cast(
|
|
1469
|
-
typing.
|
|
1474
|
+
typing.Any,
|
|
1470
1475
|
parse_obj_as(
|
|
1471
|
-
type_=typing.
|
|
1476
|
+
type_=typing.Any, # type: ignore
|
|
1472
1477
|
object_=_response.json(),
|
|
1473
1478
|
),
|
|
1474
1479
|
),
|
|
@@ -1477,9 +1482,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1477
1482
|
raise GatewayTimeoutError(
|
|
1478
1483
|
headers=dict(_response.headers),
|
|
1479
1484
|
body=typing.cast(
|
|
1480
|
-
typing.
|
|
1485
|
+
typing.Any,
|
|
1481
1486
|
parse_obj_as(
|
|
1482
|
-
type_=typing.
|
|
1487
|
+
type_=typing.Any, # type: ignore
|
|
1483
1488
|
object_=_response.json(),
|
|
1484
1489
|
),
|
|
1485
1490
|
),
|
|
@@ -1544,9 +1549,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1544
1549
|
raise UnauthorizedError(
|
|
1545
1550
|
headers=dict(_response.headers),
|
|
1546
1551
|
body=typing.cast(
|
|
1547
|
-
typing.
|
|
1552
|
+
typing.Any,
|
|
1548
1553
|
parse_obj_as(
|
|
1549
|
-
type_=typing.
|
|
1554
|
+
type_=typing.Any, # type: ignore
|
|
1550
1555
|
object_=_response.json(),
|
|
1551
1556
|
),
|
|
1552
1557
|
),
|
|
@@ -1555,9 +1560,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1555
1560
|
raise NotFoundError(
|
|
1556
1561
|
headers=dict(_response.headers),
|
|
1557
1562
|
body=typing.cast(
|
|
1558
|
-
typing.
|
|
1563
|
+
typing.Any,
|
|
1559
1564
|
parse_obj_as(
|
|
1560
|
-
type_=typing.
|
|
1565
|
+
type_=typing.Any, # type: ignore
|
|
1561
1566
|
object_=_response.json(),
|
|
1562
1567
|
),
|
|
1563
1568
|
),
|
|
@@ -1566,9 +1571,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1566
1571
|
raise MethodNotAllowedError(
|
|
1567
1572
|
headers=dict(_response.headers),
|
|
1568
1573
|
body=typing.cast(
|
|
1569
|
-
typing.
|
|
1574
|
+
typing.Any,
|
|
1570
1575
|
parse_obj_as(
|
|
1571
|
-
type_=typing.
|
|
1576
|
+
type_=typing.Any, # type: ignore
|
|
1572
1577
|
object_=_response.json(),
|
|
1573
1578
|
),
|
|
1574
1579
|
),
|
|
@@ -1577,9 +1582,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1577
1582
|
raise TooManyRequestsError(
|
|
1578
1583
|
headers=dict(_response.headers),
|
|
1579
1584
|
body=typing.cast(
|
|
1580
|
-
typing.
|
|
1585
|
+
typing.Any,
|
|
1581
1586
|
parse_obj_as(
|
|
1582
|
-
type_=typing.
|
|
1587
|
+
type_=typing.Any, # type: ignore
|
|
1583
1588
|
object_=_response.json(),
|
|
1584
1589
|
),
|
|
1585
1590
|
),
|
|
@@ -1588,9 +1593,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1588
1593
|
raise InternalServerError(
|
|
1589
1594
|
headers=dict(_response.headers),
|
|
1590
1595
|
body=typing.cast(
|
|
1591
|
-
typing.
|
|
1596
|
+
typing.Any,
|
|
1592
1597
|
parse_obj_as(
|
|
1593
|
-
type_=typing.
|
|
1598
|
+
type_=typing.Any, # type: ignore
|
|
1594
1599
|
object_=_response.json(),
|
|
1595
1600
|
),
|
|
1596
1601
|
),
|
|
@@ -1599,9 +1604,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1599
1604
|
raise NotImplementedError(
|
|
1600
1605
|
headers=dict(_response.headers),
|
|
1601
1606
|
body=typing.cast(
|
|
1602
|
-
typing.
|
|
1607
|
+
typing.Any,
|
|
1603
1608
|
parse_obj_as(
|
|
1604
|
-
type_=typing.
|
|
1609
|
+
type_=typing.Any, # type: ignore
|
|
1605
1610
|
object_=_response.json(),
|
|
1606
1611
|
),
|
|
1607
1612
|
),
|
|
@@ -1610,9 +1615,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1610
1615
|
raise BadGatewayError(
|
|
1611
1616
|
headers=dict(_response.headers),
|
|
1612
1617
|
body=typing.cast(
|
|
1613
|
-
typing.
|
|
1618
|
+
typing.Any,
|
|
1614
1619
|
parse_obj_as(
|
|
1615
|
-
type_=typing.
|
|
1620
|
+
type_=typing.Any, # type: ignore
|
|
1616
1621
|
object_=_response.json(),
|
|
1617
1622
|
),
|
|
1618
1623
|
),
|
|
@@ -1621,9 +1626,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1621
1626
|
raise ServiceUnavailableError(
|
|
1622
1627
|
headers=dict(_response.headers),
|
|
1623
1628
|
body=typing.cast(
|
|
1624
|
-
typing.
|
|
1629
|
+
typing.Any,
|
|
1625
1630
|
parse_obj_as(
|
|
1626
|
-
type_=typing.
|
|
1631
|
+
type_=typing.Any, # type: ignore
|
|
1627
1632
|
object_=_response.json(),
|
|
1628
1633
|
),
|
|
1629
1634
|
),
|
|
@@ -1632,9 +1637,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1632
1637
|
raise GatewayTimeoutError(
|
|
1633
1638
|
headers=dict(_response.headers),
|
|
1634
1639
|
body=typing.cast(
|
|
1635
|
-
typing.
|
|
1640
|
+
typing.Any,
|
|
1636
1641
|
parse_obj_as(
|
|
1637
|
-
type_=typing.
|
|
1642
|
+
type_=typing.Any, # type: ignore
|
|
1638
1643
|
object_=_response.json(),
|
|
1639
1644
|
),
|
|
1640
1645
|
),
|
|
@@ -1720,9 +1725,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1720
1725
|
raise UnauthorizedError(
|
|
1721
1726
|
headers=dict(_response.headers),
|
|
1722
1727
|
body=typing.cast(
|
|
1723
|
-
typing.
|
|
1728
|
+
typing.Any,
|
|
1724
1729
|
parse_obj_as(
|
|
1725
|
-
type_=typing.
|
|
1730
|
+
type_=typing.Any, # type: ignore
|
|
1726
1731
|
object_=_response.json(),
|
|
1727
1732
|
),
|
|
1728
1733
|
),
|
|
@@ -1731,9 +1736,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1731
1736
|
raise NotFoundError(
|
|
1732
1737
|
headers=dict(_response.headers),
|
|
1733
1738
|
body=typing.cast(
|
|
1734
|
-
typing.
|
|
1739
|
+
typing.Any,
|
|
1735
1740
|
parse_obj_as(
|
|
1736
|
-
type_=typing.
|
|
1741
|
+
type_=typing.Any, # type: ignore
|
|
1737
1742
|
object_=_response.json(),
|
|
1738
1743
|
),
|
|
1739
1744
|
),
|
|
@@ -1742,9 +1747,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1742
1747
|
raise MethodNotAllowedError(
|
|
1743
1748
|
headers=dict(_response.headers),
|
|
1744
1749
|
body=typing.cast(
|
|
1745
|
-
typing.
|
|
1750
|
+
typing.Any,
|
|
1746
1751
|
parse_obj_as(
|
|
1747
|
-
type_=typing.
|
|
1752
|
+
type_=typing.Any, # type: ignore
|
|
1748
1753
|
object_=_response.json(),
|
|
1749
1754
|
),
|
|
1750
1755
|
),
|
|
@@ -1753,9 +1758,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1753
1758
|
raise TooManyRequestsError(
|
|
1754
1759
|
headers=dict(_response.headers),
|
|
1755
1760
|
body=typing.cast(
|
|
1756
|
-
typing.
|
|
1761
|
+
typing.Any,
|
|
1757
1762
|
parse_obj_as(
|
|
1758
|
-
type_=typing.
|
|
1763
|
+
type_=typing.Any, # type: ignore
|
|
1759
1764
|
object_=_response.json(),
|
|
1760
1765
|
),
|
|
1761
1766
|
),
|
|
@@ -1764,9 +1769,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1764
1769
|
raise InternalServerError(
|
|
1765
1770
|
headers=dict(_response.headers),
|
|
1766
1771
|
body=typing.cast(
|
|
1767
|
-
typing.
|
|
1772
|
+
typing.Any,
|
|
1768
1773
|
parse_obj_as(
|
|
1769
|
-
type_=typing.
|
|
1774
|
+
type_=typing.Any, # type: ignore
|
|
1770
1775
|
object_=_response.json(),
|
|
1771
1776
|
),
|
|
1772
1777
|
),
|
|
@@ -1775,9 +1780,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1775
1780
|
raise NotImplementedError(
|
|
1776
1781
|
headers=dict(_response.headers),
|
|
1777
1782
|
body=typing.cast(
|
|
1778
|
-
typing.
|
|
1783
|
+
typing.Any,
|
|
1779
1784
|
parse_obj_as(
|
|
1780
|
-
type_=typing.
|
|
1785
|
+
type_=typing.Any, # type: ignore
|
|
1781
1786
|
object_=_response.json(),
|
|
1782
1787
|
),
|
|
1783
1788
|
),
|
|
@@ -1786,9 +1791,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1786
1791
|
raise BadGatewayError(
|
|
1787
1792
|
headers=dict(_response.headers),
|
|
1788
1793
|
body=typing.cast(
|
|
1789
|
-
typing.
|
|
1794
|
+
typing.Any,
|
|
1790
1795
|
parse_obj_as(
|
|
1791
|
-
type_=typing.
|
|
1796
|
+
type_=typing.Any, # type: ignore
|
|
1792
1797
|
object_=_response.json(),
|
|
1793
1798
|
),
|
|
1794
1799
|
),
|
|
@@ -1797,9 +1802,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1797
1802
|
raise ServiceUnavailableError(
|
|
1798
1803
|
headers=dict(_response.headers),
|
|
1799
1804
|
body=typing.cast(
|
|
1800
|
-
typing.
|
|
1805
|
+
typing.Any,
|
|
1801
1806
|
parse_obj_as(
|
|
1802
|
-
type_=typing.
|
|
1807
|
+
type_=typing.Any, # type: ignore
|
|
1803
1808
|
object_=_response.json(),
|
|
1804
1809
|
),
|
|
1805
1810
|
),
|
|
@@ -1808,9 +1813,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1808
1813
|
raise GatewayTimeoutError(
|
|
1809
1814
|
headers=dict(_response.headers),
|
|
1810
1815
|
body=typing.cast(
|
|
1811
|
-
typing.
|
|
1816
|
+
typing.Any,
|
|
1812
1817
|
parse_obj_as(
|
|
1813
|
-
type_=typing.
|
|
1818
|
+
type_=typing.Any, # type: ignore
|
|
1814
1819
|
object_=_response.json(),
|
|
1815
1820
|
),
|
|
1816
1821
|
),
|
|
@@ -1875,9 +1880,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1875
1880
|
raise UnauthorizedError(
|
|
1876
1881
|
headers=dict(_response.headers),
|
|
1877
1882
|
body=typing.cast(
|
|
1878
|
-
typing.
|
|
1883
|
+
typing.Any,
|
|
1879
1884
|
parse_obj_as(
|
|
1880
|
-
type_=typing.
|
|
1885
|
+
type_=typing.Any, # type: ignore
|
|
1881
1886
|
object_=_response.json(),
|
|
1882
1887
|
),
|
|
1883
1888
|
),
|
|
@@ -1886,9 +1891,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1886
1891
|
raise NotFoundError(
|
|
1887
1892
|
headers=dict(_response.headers),
|
|
1888
1893
|
body=typing.cast(
|
|
1889
|
-
typing.
|
|
1894
|
+
typing.Any,
|
|
1890
1895
|
parse_obj_as(
|
|
1891
|
-
type_=typing.
|
|
1896
|
+
type_=typing.Any, # type: ignore
|
|
1892
1897
|
object_=_response.json(),
|
|
1893
1898
|
),
|
|
1894
1899
|
),
|
|
@@ -1897,9 +1902,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1897
1902
|
raise MethodNotAllowedError(
|
|
1898
1903
|
headers=dict(_response.headers),
|
|
1899
1904
|
body=typing.cast(
|
|
1900
|
-
typing.
|
|
1905
|
+
typing.Any,
|
|
1901
1906
|
parse_obj_as(
|
|
1902
|
-
type_=typing.
|
|
1907
|
+
type_=typing.Any, # type: ignore
|
|
1903
1908
|
object_=_response.json(),
|
|
1904
1909
|
),
|
|
1905
1910
|
),
|
|
@@ -1908,9 +1913,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1908
1913
|
raise TooManyRequestsError(
|
|
1909
1914
|
headers=dict(_response.headers),
|
|
1910
1915
|
body=typing.cast(
|
|
1911
|
-
typing.
|
|
1916
|
+
typing.Any,
|
|
1912
1917
|
parse_obj_as(
|
|
1913
|
-
type_=typing.
|
|
1918
|
+
type_=typing.Any, # type: ignore
|
|
1914
1919
|
object_=_response.json(),
|
|
1915
1920
|
),
|
|
1916
1921
|
),
|
|
@@ -1919,9 +1924,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1919
1924
|
raise InternalServerError(
|
|
1920
1925
|
headers=dict(_response.headers),
|
|
1921
1926
|
body=typing.cast(
|
|
1922
|
-
typing.
|
|
1927
|
+
typing.Any,
|
|
1923
1928
|
parse_obj_as(
|
|
1924
|
-
type_=typing.
|
|
1929
|
+
type_=typing.Any, # type: ignore
|
|
1925
1930
|
object_=_response.json(),
|
|
1926
1931
|
),
|
|
1927
1932
|
),
|
|
@@ -1930,9 +1935,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1930
1935
|
raise NotImplementedError(
|
|
1931
1936
|
headers=dict(_response.headers),
|
|
1932
1937
|
body=typing.cast(
|
|
1933
|
-
typing.
|
|
1938
|
+
typing.Any,
|
|
1934
1939
|
parse_obj_as(
|
|
1935
|
-
type_=typing.
|
|
1940
|
+
type_=typing.Any, # type: ignore
|
|
1936
1941
|
object_=_response.json(),
|
|
1937
1942
|
),
|
|
1938
1943
|
),
|
|
@@ -1941,9 +1946,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1941
1946
|
raise BadGatewayError(
|
|
1942
1947
|
headers=dict(_response.headers),
|
|
1943
1948
|
body=typing.cast(
|
|
1944
|
-
typing.
|
|
1949
|
+
typing.Any,
|
|
1945
1950
|
parse_obj_as(
|
|
1946
|
-
type_=typing.
|
|
1951
|
+
type_=typing.Any, # type: ignore
|
|
1947
1952
|
object_=_response.json(),
|
|
1948
1953
|
),
|
|
1949
1954
|
),
|
|
@@ -1952,9 +1957,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1952
1957
|
raise ServiceUnavailableError(
|
|
1953
1958
|
headers=dict(_response.headers),
|
|
1954
1959
|
body=typing.cast(
|
|
1955
|
-
typing.
|
|
1960
|
+
typing.Any,
|
|
1956
1961
|
parse_obj_as(
|
|
1957
|
-
type_=typing.
|
|
1962
|
+
type_=typing.Any, # type: ignore
|
|
1958
1963
|
object_=_response.json(),
|
|
1959
1964
|
),
|
|
1960
1965
|
),
|
|
@@ -1963,9 +1968,9 @@ class AsyncRawMaintenanceClient:
|
|
|
1963
1968
|
raise GatewayTimeoutError(
|
|
1964
1969
|
headers=dict(_response.headers),
|
|
1965
1970
|
body=typing.cast(
|
|
1966
|
-
typing.
|
|
1971
|
+
typing.Any,
|
|
1967
1972
|
parse_obj_as(
|
|
1968
|
-
type_=typing.
|
|
1973
|
+
type_=typing.Any, # type: ignore
|
|
1969
1974
|
object_=_response.json(),
|
|
1970
1975
|
),
|
|
1971
1976
|
),
|
|
@@ -2053,6 +2058,7 @@ class AsyncRawMaintenanceClient:
|
|
|
2053
2058
|
*,
|
|
2054
2059
|
author_id: str,
|
|
2055
2060
|
safety_status: CreateDvirRequestSafetyStatus,
|
|
2061
|
+
type: CreateDvirRequestType,
|
|
2056
2062
|
license_plate: typing.Optional[str] = OMIT,
|
|
2057
2063
|
location: typing.Optional[str] = OMIT,
|
|
2058
2064
|
mechanic_notes: typing.Optional[str] = OMIT,
|
|
@@ -2077,6 +2083,9 @@ class AsyncRawMaintenanceClient:
|
|
|
2077
2083
|
safety_status : CreateDvirRequestSafetyStatus
|
|
2078
2084
|
Whether or not this vehicle or trailer is safe to drive.
|
|
2079
2085
|
|
|
2086
|
+
type : CreateDvirRequestType
|
|
2087
|
+
Only type 'mechanic' is currently accepted.
|
|
2088
|
+
|
|
2080
2089
|
license_plate : typing.Optional[str]
|
|
2081
2090
|
The license plate of this vehicle.
|
|
2082
2091
|
|
|
@@ -2118,8 +2127,8 @@ class AsyncRawMaintenanceClient:
|
|
|
2118
2127
|
"resolvedDefectIds": resolved_defect_ids,
|
|
2119
2128
|
"safetyStatus": safety_status,
|
|
2120
2129
|
"trailerId": trailer_id,
|
|
2130
|
+
"type": type,
|
|
2121
2131
|
"vehicleId": vehicle_id,
|
|
2122
|
-
"type": "mechanic",
|
|
2123
2132
|
},
|
|
2124
2133
|
headers={
|
|
2125
2134
|
"content-type": "application/json",
|