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
samsara/gateways/client.py
CHANGED
|
@@ -67,9 +67,7 @@ class GatewaysClient:
|
|
|
67
67
|
client = Samsara(
|
|
68
68
|
token="YOUR_TOKEN",
|
|
69
69
|
)
|
|
70
|
-
client.gateways.get_gateways(
|
|
71
|
-
after="after",
|
|
72
|
-
)
|
|
70
|
+
client.gateways.get_gateways()
|
|
73
71
|
"""
|
|
74
72
|
_response = self._raw_client.get_gateways(models=models, after=after, request_options=request_options)
|
|
75
73
|
return _response.data
|
|
@@ -212,9 +210,7 @@ class AsyncGatewaysClient:
|
|
|
212
210
|
|
|
213
211
|
|
|
214
212
|
async def main() -> None:
|
|
215
|
-
await client.gateways.get_gateways(
|
|
216
|
-
after="after",
|
|
217
|
-
)
|
|
213
|
+
await client.gateways.get_gateways()
|
|
218
214
|
|
|
219
215
|
|
|
220
216
|
asyncio.run(main())
|
samsara/gateways/raw_client.py
CHANGED
|
@@ -85,9 +85,9 @@ class RawGatewaysClient:
|
|
|
85
85
|
raise UnauthorizedError(
|
|
86
86
|
headers=dict(_response.headers),
|
|
87
87
|
body=typing.cast(
|
|
88
|
-
typing.
|
|
88
|
+
typing.Any,
|
|
89
89
|
parse_obj_as(
|
|
90
|
-
type_=typing.
|
|
90
|
+
type_=typing.Any, # type: ignore
|
|
91
91
|
object_=_response.json(),
|
|
92
92
|
),
|
|
93
93
|
),
|
|
@@ -96,9 +96,9 @@ class RawGatewaysClient:
|
|
|
96
96
|
raise NotFoundError(
|
|
97
97
|
headers=dict(_response.headers),
|
|
98
98
|
body=typing.cast(
|
|
99
|
-
typing.
|
|
99
|
+
typing.Any,
|
|
100
100
|
parse_obj_as(
|
|
101
|
-
type_=typing.
|
|
101
|
+
type_=typing.Any, # type: ignore
|
|
102
102
|
object_=_response.json(),
|
|
103
103
|
),
|
|
104
104
|
),
|
|
@@ -107,9 +107,9 @@ class RawGatewaysClient:
|
|
|
107
107
|
raise MethodNotAllowedError(
|
|
108
108
|
headers=dict(_response.headers),
|
|
109
109
|
body=typing.cast(
|
|
110
|
-
typing.
|
|
110
|
+
typing.Any,
|
|
111
111
|
parse_obj_as(
|
|
112
|
-
type_=typing.
|
|
112
|
+
type_=typing.Any, # type: ignore
|
|
113
113
|
object_=_response.json(),
|
|
114
114
|
),
|
|
115
115
|
),
|
|
@@ -118,9 +118,9 @@ class RawGatewaysClient:
|
|
|
118
118
|
raise TooManyRequestsError(
|
|
119
119
|
headers=dict(_response.headers),
|
|
120
120
|
body=typing.cast(
|
|
121
|
-
typing.
|
|
121
|
+
typing.Any,
|
|
122
122
|
parse_obj_as(
|
|
123
|
-
type_=typing.
|
|
123
|
+
type_=typing.Any, # type: ignore
|
|
124
124
|
object_=_response.json(),
|
|
125
125
|
),
|
|
126
126
|
),
|
|
@@ -129,9 +129,9 @@ class RawGatewaysClient:
|
|
|
129
129
|
raise InternalServerError(
|
|
130
130
|
headers=dict(_response.headers),
|
|
131
131
|
body=typing.cast(
|
|
132
|
-
typing.
|
|
132
|
+
typing.Any,
|
|
133
133
|
parse_obj_as(
|
|
134
|
-
type_=typing.
|
|
134
|
+
type_=typing.Any, # type: ignore
|
|
135
135
|
object_=_response.json(),
|
|
136
136
|
),
|
|
137
137
|
),
|
|
@@ -140,9 +140,9 @@ class RawGatewaysClient:
|
|
|
140
140
|
raise NotImplementedError(
|
|
141
141
|
headers=dict(_response.headers),
|
|
142
142
|
body=typing.cast(
|
|
143
|
-
typing.
|
|
143
|
+
typing.Any,
|
|
144
144
|
parse_obj_as(
|
|
145
|
-
type_=typing.
|
|
145
|
+
type_=typing.Any, # type: ignore
|
|
146
146
|
object_=_response.json(),
|
|
147
147
|
),
|
|
148
148
|
),
|
|
@@ -151,9 +151,9 @@ class RawGatewaysClient:
|
|
|
151
151
|
raise BadGatewayError(
|
|
152
152
|
headers=dict(_response.headers),
|
|
153
153
|
body=typing.cast(
|
|
154
|
-
typing.
|
|
154
|
+
typing.Any,
|
|
155
155
|
parse_obj_as(
|
|
156
|
-
type_=typing.
|
|
156
|
+
type_=typing.Any, # type: ignore
|
|
157
157
|
object_=_response.json(),
|
|
158
158
|
),
|
|
159
159
|
),
|
|
@@ -162,9 +162,9 @@ class RawGatewaysClient:
|
|
|
162
162
|
raise ServiceUnavailableError(
|
|
163
163
|
headers=dict(_response.headers),
|
|
164
164
|
body=typing.cast(
|
|
165
|
-
typing.
|
|
165
|
+
typing.Any,
|
|
166
166
|
parse_obj_as(
|
|
167
|
-
type_=typing.
|
|
167
|
+
type_=typing.Any, # type: ignore
|
|
168
168
|
object_=_response.json(),
|
|
169
169
|
),
|
|
170
170
|
),
|
|
@@ -173,9 +173,9 @@ class RawGatewaysClient:
|
|
|
173
173
|
raise GatewayTimeoutError(
|
|
174
174
|
headers=dict(_response.headers),
|
|
175
175
|
body=typing.cast(
|
|
176
|
-
typing.
|
|
176
|
+
typing.Any,
|
|
177
177
|
parse_obj_as(
|
|
178
|
-
type_=typing.
|
|
178
|
+
type_=typing.Any, # type: ignore
|
|
179
179
|
object_=_response.json(),
|
|
180
180
|
),
|
|
181
181
|
),
|
|
@@ -237,9 +237,9 @@ class RawGatewaysClient:
|
|
|
237
237
|
raise UnauthorizedError(
|
|
238
238
|
headers=dict(_response.headers),
|
|
239
239
|
body=typing.cast(
|
|
240
|
-
typing.
|
|
240
|
+
typing.Any,
|
|
241
241
|
parse_obj_as(
|
|
242
|
-
type_=typing.
|
|
242
|
+
type_=typing.Any, # type: ignore
|
|
243
243
|
object_=_response.json(),
|
|
244
244
|
),
|
|
245
245
|
),
|
|
@@ -248,9 +248,9 @@ class RawGatewaysClient:
|
|
|
248
248
|
raise NotFoundError(
|
|
249
249
|
headers=dict(_response.headers),
|
|
250
250
|
body=typing.cast(
|
|
251
|
-
typing.
|
|
251
|
+
typing.Any,
|
|
252
252
|
parse_obj_as(
|
|
253
|
-
type_=typing.
|
|
253
|
+
type_=typing.Any, # type: ignore
|
|
254
254
|
object_=_response.json(),
|
|
255
255
|
),
|
|
256
256
|
),
|
|
@@ -259,9 +259,9 @@ class RawGatewaysClient:
|
|
|
259
259
|
raise MethodNotAllowedError(
|
|
260
260
|
headers=dict(_response.headers),
|
|
261
261
|
body=typing.cast(
|
|
262
|
-
typing.
|
|
262
|
+
typing.Any,
|
|
263
263
|
parse_obj_as(
|
|
264
|
-
type_=typing.
|
|
264
|
+
type_=typing.Any, # type: ignore
|
|
265
265
|
object_=_response.json(),
|
|
266
266
|
),
|
|
267
267
|
),
|
|
@@ -270,9 +270,9 @@ class RawGatewaysClient:
|
|
|
270
270
|
raise TooManyRequestsError(
|
|
271
271
|
headers=dict(_response.headers),
|
|
272
272
|
body=typing.cast(
|
|
273
|
-
typing.
|
|
273
|
+
typing.Any,
|
|
274
274
|
parse_obj_as(
|
|
275
|
-
type_=typing.
|
|
275
|
+
type_=typing.Any, # type: ignore
|
|
276
276
|
object_=_response.json(),
|
|
277
277
|
),
|
|
278
278
|
),
|
|
@@ -281,9 +281,9 @@ class RawGatewaysClient:
|
|
|
281
281
|
raise InternalServerError(
|
|
282
282
|
headers=dict(_response.headers),
|
|
283
283
|
body=typing.cast(
|
|
284
|
-
typing.
|
|
284
|
+
typing.Any,
|
|
285
285
|
parse_obj_as(
|
|
286
|
-
type_=typing.
|
|
286
|
+
type_=typing.Any, # type: ignore
|
|
287
287
|
object_=_response.json(),
|
|
288
288
|
),
|
|
289
289
|
),
|
|
@@ -292,9 +292,9 @@ class RawGatewaysClient:
|
|
|
292
292
|
raise NotImplementedError(
|
|
293
293
|
headers=dict(_response.headers),
|
|
294
294
|
body=typing.cast(
|
|
295
|
-
typing.
|
|
295
|
+
typing.Any,
|
|
296
296
|
parse_obj_as(
|
|
297
|
-
type_=typing.
|
|
297
|
+
type_=typing.Any, # type: ignore
|
|
298
298
|
object_=_response.json(),
|
|
299
299
|
),
|
|
300
300
|
),
|
|
@@ -303,9 +303,9 @@ class RawGatewaysClient:
|
|
|
303
303
|
raise BadGatewayError(
|
|
304
304
|
headers=dict(_response.headers),
|
|
305
305
|
body=typing.cast(
|
|
306
|
-
typing.
|
|
306
|
+
typing.Any,
|
|
307
307
|
parse_obj_as(
|
|
308
|
-
type_=typing.
|
|
308
|
+
type_=typing.Any, # type: ignore
|
|
309
309
|
object_=_response.json(),
|
|
310
310
|
),
|
|
311
311
|
),
|
|
@@ -314,9 +314,9 @@ class RawGatewaysClient:
|
|
|
314
314
|
raise ServiceUnavailableError(
|
|
315
315
|
headers=dict(_response.headers),
|
|
316
316
|
body=typing.cast(
|
|
317
|
-
typing.
|
|
317
|
+
typing.Any,
|
|
318
318
|
parse_obj_as(
|
|
319
|
-
type_=typing.
|
|
319
|
+
type_=typing.Any, # type: ignore
|
|
320
320
|
object_=_response.json(),
|
|
321
321
|
),
|
|
322
322
|
),
|
|
@@ -325,9 +325,9 @@ class RawGatewaysClient:
|
|
|
325
325
|
raise GatewayTimeoutError(
|
|
326
326
|
headers=dict(_response.headers),
|
|
327
327
|
body=typing.cast(
|
|
328
|
-
typing.
|
|
328
|
+
typing.Any,
|
|
329
329
|
parse_obj_as(
|
|
330
|
-
type_=typing.
|
|
330
|
+
type_=typing.Any, # type: ignore
|
|
331
331
|
object_=_response.json(),
|
|
332
332
|
),
|
|
333
333
|
),
|
|
@@ -372,9 +372,9 @@ class RawGatewaysClient:
|
|
|
372
372
|
raise UnauthorizedError(
|
|
373
373
|
headers=dict(_response.headers),
|
|
374
374
|
body=typing.cast(
|
|
375
|
-
typing.
|
|
375
|
+
typing.Any,
|
|
376
376
|
parse_obj_as(
|
|
377
|
-
type_=typing.
|
|
377
|
+
type_=typing.Any, # type: ignore
|
|
378
378
|
object_=_response.json(),
|
|
379
379
|
),
|
|
380
380
|
),
|
|
@@ -383,9 +383,9 @@ class RawGatewaysClient:
|
|
|
383
383
|
raise NotFoundError(
|
|
384
384
|
headers=dict(_response.headers),
|
|
385
385
|
body=typing.cast(
|
|
386
|
-
typing.
|
|
386
|
+
typing.Any,
|
|
387
387
|
parse_obj_as(
|
|
388
|
-
type_=typing.
|
|
388
|
+
type_=typing.Any, # type: ignore
|
|
389
389
|
object_=_response.json(),
|
|
390
390
|
),
|
|
391
391
|
),
|
|
@@ -394,9 +394,9 @@ class RawGatewaysClient:
|
|
|
394
394
|
raise MethodNotAllowedError(
|
|
395
395
|
headers=dict(_response.headers),
|
|
396
396
|
body=typing.cast(
|
|
397
|
-
typing.
|
|
397
|
+
typing.Any,
|
|
398
398
|
parse_obj_as(
|
|
399
|
-
type_=typing.
|
|
399
|
+
type_=typing.Any, # type: ignore
|
|
400
400
|
object_=_response.json(),
|
|
401
401
|
),
|
|
402
402
|
),
|
|
@@ -405,9 +405,9 @@ class RawGatewaysClient:
|
|
|
405
405
|
raise TooManyRequestsError(
|
|
406
406
|
headers=dict(_response.headers),
|
|
407
407
|
body=typing.cast(
|
|
408
|
-
typing.
|
|
408
|
+
typing.Any,
|
|
409
409
|
parse_obj_as(
|
|
410
|
-
type_=typing.
|
|
410
|
+
type_=typing.Any, # type: ignore
|
|
411
411
|
object_=_response.json(),
|
|
412
412
|
),
|
|
413
413
|
),
|
|
@@ -416,9 +416,9 @@ class RawGatewaysClient:
|
|
|
416
416
|
raise InternalServerError(
|
|
417
417
|
headers=dict(_response.headers),
|
|
418
418
|
body=typing.cast(
|
|
419
|
-
typing.
|
|
419
|
+
typing.Any,
|
|
420
420
|
parse_obj_as(
|
|
421
|
-
type_=typing.
|
|
421
|
+
type_=typing.Any, # type: ignore
|
|
422
422
|
object_=_response.json(),
|
|
423
423
|
),
|
|
424
424
|
),
|
|
@@ -427,9 +427,9 @@ class RawGatewaysClient:
|
|
|
427
427
|
raise NotImplementedError(
|
|
428
428
|
headers=dict(_response.headers),
|
|
429
429
|
body=typing.cast(
|
|
430
|
-
typing.
|
|
430
|
+
typing.Any,
|
|
431
431
|
parse_obj_as(
|
|
432
|
-
type_=typing.
|
|
432
|
+
type_=typing.Any, # type: ignore
|
|
433
433
|
object_=_response.json(),
|
|
434
434
|
),
|
|
435
435
|
),
|
|
@@ -438,9 +438,9 @@ class RawGatewaysClient:
|
|
|
438
438
|
raise BadGatewayError(
|
|
439
439
|
headers=dict(_response.headers),
|
|
440
440
|
body=typing.cast(
|
|
441
|
-
typing.
|
|
441
|
+
typing.Any,
|
|
442
442
|
parse_obj_as(
|
|
443
|
-
type_=typing.
|
|
443
|
+
type_=typing.Any, # type: ignore
|
|
444
444
|
object_=_response.json(),
|
|
445
445
|
),
|
|
446
446
|
),
|
|
@@ -449,9 +449,9 @@ class RawGatewaysClient:
|
|
|
449
449
|
raise ServiceUnavailableError(
|
|
450
450
|
headers=dict(_response.headers),
|
|
451
451
|
body=typing.cast(
|
|
452
|
-
typing.
|
|
452
|
+
typing.Any,
|
|
453
453
|
parse_obj_as(
|
|
454
|
-
type_=typing.
|
|
454
|
+
type_=typing.Any, # type: ignore
|
|
455
455
|
object_=_response.json(),
|
|
456
456
|
),
|
|
457
457
|
),
|
|
@@ -460,9 +460,9 @@ class RawGatewaysClient:
|
|
|
460
460
|
raise GatewayTimeoutError(
|
|
461
461
|
headers=dict(_response.headers),
|
|
462
462
|
body=typing.cast(
|
|
463
|
-
typing.
|
|
463
|
+
typing.Any,
|
|
464
464
|
parse_obj_as(
|
|
465
|
-
type_=typing.
|
|
465
|
+
type_=typing.Any, # type: ignore
|
|
466
466
|
object_=_response.json(),
|
|
467
467
|
),
|
|
468
468
|
),
|
|
@@ -533,9 +533,9 @@ class AsyncRawGatewaysClient:
|
|
|
533
533
|
raise UnauthorizedError(
|
|
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 AsyncRawGatewaysClient:
|
|
|
544
544
|
raise NotFoundError(
|
|
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
|
),
|
|
@@ -555,9 +555,9 @@ class AsyncRawGatewaysClient:
|
|
|
555
555
|
raise MethodNotAllowedError(
|
|
556
556
|
headers=dict(_response.headers),
|
|
557
557
|
body=typing.cast(
|
|
558
|
-
typing.
|
|
558
|
+
typing.Any,
|
|
559
559
|
parse_obj_as(
|
|
560
|
-
type_=typing.
|
|
560
|
+
type_=typing.Any, # type: ignore
|
|
561
561
|
object_=_response.json(),
|
|
562
562
|
),
|
|
563
563
|
),
|
|
@@ -566,9 +566,9 @@ class AsyncRawGatewaysClient:
|
|
|
566
566
|
raise TooManyRequestsError(
|
|
567
567
|
headers=dict(_response.headers),
|
|
568
568
|
body=typing.cast(
|
|
569
|
-
typing.
|
|
569
|
+
typing.Any,
|
|
570
570
|
parse_obj_as(
|
|
571
|
-
type_=typing.
|
|
571
|
+
type_=typing.Any, # type: ignore
|
|
572
572
|
object_=_response.json(),
|
|
573
573
|
),
|
|
574
574
|
),
|
|
@@ -577,9 +577,9 @@ class AsyncRawGatewaysClient:
|
|
|
577
577
|
raise InternalServerError(
|
|
578
578
|
headers=dict(_response.headers),
|
|
579
579
|
body=typing.cast(
|
|
580
|
-
typing.
|
|
580
|
+
typing.Any,
|
|
581
581
|
parse_obj_as(
|
|
582
|
-
type_=typing.
|
|
582
|
+
type_=typing.Any, # type: ignore
|
|
583
583
|
object_=_response.json(),
|
|
584
584
|
),
|
|
585
585
|
),
|
|
@@ -588,9 +588,9 @@ class AsyncRawGatewaysClient:
|
|
|
588
588
|
raise NotImplementedError(
|
|
589
589
|
headers=dict(_response.headers),
|
|
590
590
|
body=typing.cast(
|
|
591
|
-
typing.
|
|
591
|
+
typing.Any,
|
|
592
592
|
parse_obj_as(
|
|
593
|
-
type_=typing.
|
|
593
|
+
type_=typing.Any, # type: ignore
|
|
594
594
|
object_=_response.json(),
|
|
595
595
|
),
|
|
596
596
|
),
|
|
@@ -599,9 +599,9 @@ class AsyncRawGatewaysClient:
|
|
|
599
599
|
raise BadGatewayError(
|
|
600
600
|
headers=dict(_response.headers),
|
|
601
601
|
body=typing.cast(
|
|
602
|
-
typing.
|
|
602
|
+
typing.Any,
|
|
603
603
|
parse_obj_as(
|
|
604
|
-
type_=typing.
|
|
604
|
+
type_=typing.Any, # type: ignore
|
|
605
605
|
object_=_response.json(),
|
|
606
606
|
),
|
|
607
607
|
),
|
|
@@ -610,9 +610,9 @@ class AsyncRawGatewaysClient:
|
|
|
610
610
|
raise ServiceUnavailableError(
|
|
611
611
|
headers=dict(_response.headers),
|
|
612
612
|
body=typing.cast(
|
|
613
|
-
typing.
|
|
613
|
+
typing.Any,
|
|
614
614
|
parse_obj_as(
|
|
615
|
-
type_=typing.
|
|
615
|
+
type_=typing.Any, # type: ignore
|
|
616
616
|
object_=_response.json(),
|
|
617
617
|
),
|
|
618
618
|
),
|
|
@@ -621,9 +621,9 @@ class AsyncRawGatewaysClient:
|
|
|
621
621
|
raise GatewayTimeoutError(
|
|
622
622
|
headers=dict(_response.headers),
|
|
623
623
|
body=typing.cast(
|
|
624
|
-
typing.
|
|
624
|
+
typing.Any,
|
|
625
625
|
parse_obj_as(
|
|
626
|
-
type_=typing.
|
|
626
|
+
type_=typing.Any, # type: ignore
|
|
627
627
|
object_=_response.json(),
|
|
628
628
|
),
|
|
629
629
|
),
|
|
@@ -685,9 +685,9 @@ class AsyncRawGatewaysClient:
|
|
|
685
685
|
raise UnauthorizedError(
|
|
686
686
|
headers=dict(_response.headers),
|
|
687
687
|
body=typing.cast(
|
|
688
|
-
typing.
|
|
688
|
+
typing.Any,
|
|
689
689
|
parse_obj_as(
|
|
690
|
-
type_=typing.
|
|
690
|
+
type_=typing.Any, # type: ignore
|
|
691
691
|
object_=_response.json(),
|
|
692
692
|
),
|
|
693
693
|
),
|
|
@@ -696,9 +696,9 @@ class AsyncRawGatewaysClient:
|
|
|
696
696
|
raise NotFoundError(
|
|
697
697
|
headers=dict(_response.headers),
|
|
698
698
|
body=typing.cast(
|
|
699
|
-
typing.
|
|
699
|
+
typing.Any,
|
|
700
700
|
parse_obj_as(
|
|
701
|
-
type_=typing.
|
|
701
|
+
type_=typing.Any, # type: ignore
|
|
702
702
|
object_=_response.json(),
|
|
703
703
|
),
|
|
704
704
|
),
|
|
@@ -707,9 +707,9 @@ class AsyncRawGatewaysClient:
|
|
|
707
707
|
raise MethodNotAllowedError(
|
|
708
708
|
headers=dict(_response.headers),
|
|
709
709
|
body=typing.cast(
|
|
710
|
-
typing.
|
|
710
|
+
typing.Any,
|
|
711
711
|
parse_obj_as(
|
|
712
|
-
type_=typing.
|
|
712
|
+
type_=typing.Any, # type: ignore
|
|
713
713
|
object_=_response.json(),
|
|
714
714
|
),
|
|
715
715
|
),
|
|
@@ -718,9 +718,9 @@ class AsyncRawGatewaysClient:
|
|
|
718
718
|
raise TooManyRequestsError(
|
|
719
719
|
headers=dict(_response.headers),
|
|
720
720
|
body=typing.cast(
|
|
721
|
-
typing.
|
|
721
|
+
typing.Any,
|
|
722
722
|
parse_obj_as(
|
|
723
|
-
type_=typing.
|
|
723
|
+
type_=typing.Any, # type: ignore
|
|
724
724
|
object_=_response.json(),
|
|
725
725
|
),
|
|
726
726
|
),
|
|
@@ -729,9 +729,9 @@ class AsyncRawGatewaysClient:
|
|
|
729
729
|
raise InternalServerError(
|
|
730
730
|
headers=dict(_response.headers),
|
|
731
731
|
body=typing.cast(
|
|
732
|
-
typing.
|
|
732
|
+
typing.Any,
|
|
733
733
|
parse_obj_as(
|
|
734
|
-
type_=typing.
|
|
734
|
+
type_=typing.Any, # type: ignore
|
|
735
735
|
object_=_response.json(),
|
|
736
736
|
),
|
|
737
737
|
),
|
|
@@ -740,9 +740,9 @@ class AsyncRawGatewaysClient:
|
|
|
740
740
|
raise NotImplementedError(
|
|
741
741
|
headers=dict(_response.headers),
|
|
742
742
|
body=typing.cast(
|
|
743
|
-
typing.
|
|
743
|
+
typing.Any,
|
|
744
744
|
parse_obj_as(
|
|
745
|
-
type_=typing.
|
|
745
|
+
type_=typing.Any, # type: ignore
|
|
746
746
|
object_=_response.json(),
|
|
747
747
|
),
|
|
748
748
|
),
|
|
@@ -751,9 +751,9 @@ class AsyncRawGatewaysClient:
|
|
|
751
751
|
raise BadGatewayError(
|
|
752
752
|
headers=dict(_response.headers),
|
|
753
753
|
body=typing.cast(
|
|
754
|
-
typing.
|
|
754
|
+
typing.Any,
|
|
755
755
|
parse_obj_as(
|
|
756
|
-
type_=typing.
|
|
756
|
+
type_=typing.Any, # type: ignore
|
|
757
757
|
object_=_response.json(),
|
|
758
758
|
),
|
|
759
759
|
),
|
|
@@ -762,9 +762,9 @@ class AsyncRawGatewaysClient:
|
|
|
762
762
|
raise ServiceUnavailableError(
|
|
763
763
|
headers=dict(_response.headers),
|
|
764
764
|
body=typing.cast(
|
|
765
|
-
typing.
|
|
765
|
+
typing.Any,
|
|
766
766
|
parse_obj_as(
|
|
767
|
-
type_=typing.
|
|
767
|
+
type_=typing.Any, # type: ignore
|
|
768
768
|
object_=_response.json(),
|
|
769
769
|
),
|
|
770
770
|
),
|
|
@@ -773,9 +773,9 @@ class AsyncRawGatewaysClient:
|
|
|
773
773
|
raise GatewayTimeoutError(
|
|
774
774
|
headers=dict(_response.headers),
|
|
775
775
|
body=typing.cast(
|
|
776
|
-
typing.
|
|
776
|
+
typing.Any,
|
|
777
777
|
parse_obj_as(
|
|
778
|
-
type_=typing.
|
|
778
|
+
type_=typing.Any, # type: ignore
|
|
779
779
|
object_=_response.json(),
|
|
780
780
|
),
|
|
781
781
|
),
|
|
@@ -822,9 +822,9 @@ class AsyncRawGatewaysClient:
|
|
|
822
822
|
raise UnauthorizedError(
|
|
823
823
|
headers=dict(_response.headers),
|
|
824
824
|
body=typing.cast(
|
|
825
|
-
typing.
|
|
825
|
+
typing.Any,
|
|
826
826
|
parse_obj_as(
|
|
827
|
-
type_=typing.
|
|
827
|
+
type_=typing.Any, # type: ignore
|
|
828
828
|
object_=_response.json(),
|
|
829
829
|
),
|
|
830
830
|
),
|
|
@@ -833,9 +833,9 @@ class AsyncRawGatewaysClient:
|
|
|
833
833
|
raise NotFoundError(
|
|
834
834
|
headers=dict(_response.headers),
|
|
835
835
|
body=typing.cast(
|
|
836
|
-
typing.
|
|
836
|
+
typing.Any,
|
|
837
837
|
parse_obj_as(
|
|
838
|
-
type_=typing.
|
|
838
|
+
type_=typing.Any, # type: ignore
|
|
839
839
|
object_=_response.json(),
|
|
840
840
|
),
|
|
841
841
|
),
|
|
@@ -844,9 +844,9 @@ class AsyncRawGatewaysClient:
|
|
|
844
844
|
raise MethodNotAllowedError(
|
|
845
845
|
headers=dict(_response.headers),
|
|
846
846
|
body=typing.cast(
|
|
847
|
-
typing.
|
|
847
|
+
typing.Any,
|
|
848
848
|
parse_obj_as(
|
|
849
|
-
type_=typing.
|
|
849
|
+
type_=typing.Any, # type: ignore
|
|
850
850
|
object_=_response.json(),
|
|
851
851
|
),
|
|
852
852
|
),
|
|
@@ -855,9 +855,9 @@ class AsyncRawGatewaysClient:
|
|
|
855
855
|
raise TooManyRequestsError(
|
|
856
856
|
headers=dict(_response.headers),
|
|
857
857
|
body=typing.cast(
|
|
858
|
-
typing.
|
|
858
|
+
typing.Any,
|
|
859
859
|
parse_obj_as(
|
|
860
|
-
type_=typing.
|
|
860
|
+
type_=typing.Any, # type: ignore
|
|
861
861
|
object_=_response.json(),
|
|
862
862
|
),
|
|
863
863
|
),
|
|
@@ -866,9 +866,9 @@ class AsyncRawGatewaysClient:
|
|
|
866
866
|
raise InternalServerError(
|
|
867
867
|
headers=dict(_response.headers),
|
|
868
868
|
body=typing.cast(
|
|
869
|
-
typing.
|
|
869
|
+
typing.Any,
|
|
870
870
|
parse_obj_as(
|
|
871
|
-
type_=typing.
|
|
871
|
+
type_=typing.Any, # type: ignore
|
|
872
872
|
object_=_response.json(),
|
|
873
873
|
),
|
|
874
874
|
),
|
|
@@ -877,9 +877,9 @@ class AsyncRawGatewaysClient:
|
|
|
877
877
|
raise NotImplementedError(
|
|
878
878
|
headers=dict(_response.headers),
|
|
879
879
|
body=typing.cast(
|
|
880
|
-
typing.
|
|
880
|
+
typing.Any,
|
|
881
881
|
parse_obj_as(
|
|
882
|
-
type_=typing.
|
|
882
|
+
type_=typing.Any, # type: ignore
|
|
883
883
|
object_=_response.json(),
|
|
884
884
|
),
|
|
885
885
|
),
|
|
@@ -888,9 +888,9 @@ class AsyncRawGatewaysClient:
|
|
|
888
888
|
raise BadGatewayError(
|
|
889
889
|
headers=dict(_response.headers),
|
|
890
890
|
body=typing.cast(
|
|
891
|
-
typing.
|
|
891
|
+
typing.Any,
|
|
892
892
|
parse_obj_as(
|
|
893
|
-
type_=typing.
|
|
893
|
+
type_=typing.Any, # type: ignore
|
|
894
894
|
object_=_response.json(),
|
|
895
895
|
),
|
|
896
896
|
),
|
|
@@ -899,9 +899,9 @@ class AsyncRawGatewaysClient:
|
|
|
899
899
|
raise ServiceUnavailableError(
|
|
900
900
|
headers=dict(_response.headers),
|
|
901
901
|
body=typing.cast(
|
|
902
|
-
typing.
|
|
902
|
+
typing.Any,
|
|
903
903
|
parse_obj_as(
|
|
904
|
-
type_=typing.
|
|
904
|
+
type_=typing.Any, # type: ignore
|
|
905
905
|
object_=_response.json(),
|
|
906
906
|
),
|
|
907
907
|
),
|
|
@@ -910,9 +910,9 @@ class AsyncRawGatewaysClient:
|
|
|
910
910
|
raise GatewayTimeoutError(
|
|
911
911
|
headers=dict(_response.headers),
|
|
912
912
|
body=typing.cast(
|
|
913
|
-
typing.
|
|
913
|
+
typing.Any,
|
|
914
914
|
parse_obj_as(
|
|
915
|
-
type_=typing.
|
|
915
|
+
type_=typing.Any, # type: ignore
|
|
916
916
|
object_=_response.json(),
|
|
917
917
|
),
|
|
918
918
|
),
|
|
@@ -6,8 +6,11 @@ import typing
|
|
|
6
6
|
from importlib import import_module
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
|
-
from .types import GetHosDailyLogsRequestDriverActivationStatus
|
|
10
|
-
_dynamic_imports: typing.Dict[str, str] = {
|
|
9
|
+
from .types import GetHosDailyLogsRequestDriverActivationStatus, GetHosDailyLogsRequestExpand
|
|
10
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
|
+
"GetHosDailyLogsRequestDriverActivationStatus": ".types",
|
|
12
|
+
"GetHosDailyLogsRequestExpand": ".types",
|
|
13
|
+
}
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
def __getattr__(attr_name: str) -> typing.Any:
|
|
@@ -31,4 +34,4 @@ def __dir__():
|
|
|
31
34
|
return sorted(lazy_attrs)
|
|
32
35
|
|
|
33
36
|
|
|
34
|
-
__all__ = ["GetHosDailyLogsRequestDriverActivationStatus"]
|
|
37
|
+
__all__ = ["GetHosDailyLogsRequestDriverActivationStatus", "GetHosDailyLogsRequestExpand"]
|