samsara-api 4.2.0__py3-none-any.whl → 4.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- samsara/__init__.py +69 -9
- samsara/addresses/client.py +7 -14
- samsara/addresses/raw_client.py +7 -11
- samsara/alerts/client.py +2 -10
- samsara/alerts/raw_client.py +180 -180
- samsara/assets/__init__.py +3 -3
- samsara/assets/client.py +14 -45
- samsara/assets/raw_client.py +156 -160
- samsara/assets/types/__init__.py +3 -3
- samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
- samsara/attributes/client.py +0 -4
- samsara/beta_ap_is/client.py +137 -187
- samsara/beta_ap_is/raw_client.py +2035 -1702
- samsara/carrier_proposed_assignments/client.py +2 -10
- samsara/client.py +5 -0
- samsara/coaching/client.py +2 -22
- samsara/coaching/raw_client.py +108 -108
- samsara/contacts/client.py +2 -8
- samsara/core/__init__.py +5 -0
- samsara/core/client_wrapper.py +18 -10
- samsara/core/custom_pagination.py +152 -0
- samsara/core/http_client.py +176 -90
- samsara/core/http_sse/__init__.py +42 -0
- samsara/core/http_sse/_api.py +112 -0
- samsara/core/http_sse/_decoders.py +61 -0
- samsara/core/http_sse/_exceptions.py +7 -0
- samsara/core/http_sse/_models.py +17 -0
- samsara/core/pagination.py +14 -14
- samsara/core/pydantic_utilities.py +3 -1
- samsara/documents/client.py +2 -12
- samsara/documents/raw_client.py +180 -180
- samsara/driver_qr_codes/raw_client.py +108 -108
- samsara/driver_vehicle_assignments/client.py +0 -12
- samsara/driver_vehicle_assignments/raw_client.py +144 -144
- samsara/drivers/__init__.py +3 -3
- samsara/drivers/client.py +12 -23
- samsara/drivers/raw_client.py +48 -52
- samsara/drivers/types/__init__.py +3 -3
- samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
- samsara/equipment/client.py +6 -22
- samsara/errors/bad_gateway_error.py +1 -1
- samsara/errors/gateway_timeout_error.py +1 -1
- samsara/errors/internal_server_error.py +1 -1
- samsara/errors/method_not_allowed_error.py +1 -1
- samsara/errors/not_found_error.py +1 -1
- samsara/errors/not_implemented_error.py +1 -1
- samsara/errors/service_unavailable_error.py +1 -1
- samsara/errors/too_many_requests_error.py +1 -1
- samsara/errors/unauthorized_error.py +1 -1
- samsara/forms/__init__.py +9 -3
- samsara/forms/client.py +17 -10
- samsara/forms/raw_client.py +265 -254
- samsara/forms/types/__init__.py +6 -2
- samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
- samsara/fuel_and_energy/client.py +0 -30
- samsara/fuel_and_energy/raw_client.py +180 -180
- samsara/gateways/client.py +2 -6
- samsara/gateways/raw_client.py +108 -108
- samsara/hours_of_service/__init__.py +6 -3
- samsara/hours_of_service/client.py +13 -52
- samsara/hours_of_service/raw_client.py +77 -76
- samsara/hours_of_service/types/__init__.py +4 -2
- samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
- samsara/hubs/client.py +2 -94
- samsara/hubs/raw_client.py +216 -216
- samsara/idling/client.py +0 -18
- samsara/idling/raw_client.py +36 -36
- samsara/ifta/client.py +4 -34
- samsara/ifta/raw_client.py +144 -144
- samsara/industrial/client.py +12 -56
- samsara/industrial/raw_client.py +40 -48
- samsara/issues/client.py +0 -4
- samsara/issues/raw_client.py +108 -108
- samsara/legacy_ap_is/client.py +4 -56
- samsara/legacy_ap_is/raw_client.py +108 -108
- samsara/live_sharing_links/client.py +2 -10
- samsara/live_sharing_links/raw_client.py +144 -144
- samsara/location_and_speed/client.py +2 -20
- samsara/location_and_speed/raw_client.py +36 -36
- samsara/maintenance/__init__.py +3 -3
- samsara/maintenance/client.py +15 -30
- samsara/maintenance/raw_client.py +191 -182
- samsara/maintenance/types/__init__.py +6 -2
- samsara/maintenance/types/create_dvir_request_type.py +5 -0
- samsara/media/client.py +0 -4
- samsara/media/raw_client.py +108 -108
- samsara/messages/client.py +2 -8
- samsara/plans/client.py +0 -21
- samsara/plans/raw_client.py +72 -72
- samsara/preview_ap_is/client.py +0 -140
- samsara/preview_ap_is/raw_client.py +72 -430
- samsara/route_events/client.py +2 -12
- samsara/route_events/raw_client.py +36 -36
- samsara/routes/__init__.py +30 -0
- samsara/routes/client.py +7 -35
- samsara/routes/raw_client.py +257 -256
- samsara/routes/types/__init__.py +34 -0
- samsara/routes/types/get_routes_feed_request_expand.py +5 -0
- samsara/safety/client.py +2 -10
- samsara/safety/raw_client.py +36 -36
- samsara/settings/raw_client.py +180 -180
- samsara/speeding_intervals/raw_client.py +36 -36
- samsara/tachograph_eu_only/client.py +0 -6
- samsara/tags/client.py +2 -8
- samsara/trailer_assignments/client.py +2 -18
- samsara/trailers/client.py +2 -12
- samsara/trailers/raw_client.py +180 -180
- samsara/types/__init__.py +54 -0
- samsara/types/create_routes_stop_request_object_request_body.py +7 -0
- samsara/types/driver_assignment_object_response_body.py +2 -1
- samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/driver_external_ids.py +1 -1
- samsara/types/forms_approval_config_object_response_body.py +2 -1
- samsara/types/forms_approval_config_object_response_body_type.py +5 -0
- samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
- samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
- samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
- samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
- samsara/types/idling_event_object_v_20251023_response_body.py +4 -3
- samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
- samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
- samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
- samsara/types/reading_datapoint_request_body.py +5 -4
- samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
- samsara/types/reading_history_response_body.py +1 -1
- samsara/types/reading_snapshot_response_body.py +1 -1
- samsara/types/resolved_by.py +2 -1
- samsara/types/resolved_by_type.py +5 -0
- samsara/types/route_feed_object_response_body.py +2 -1
- samsara/types/route_feed_object_response_body_type.py +5 -0
- samsara/types/route_settings_request_body.py +8 -0
- samsara/types/route_settings_request_body_sequencing_method.py +7 -0
- samsara/types/route_settings_response_body.py +8 -0
- samsara/types/route_settings_response_body_sequencing_method.py +7 -0
- samsara/types/route_stop_details_object_response_body.py +2 -1
- samsara/types/route_stop_details_object_response_body_type.py +5 -0
- samsara/types/routes_stop_response_object_response_body.py +7 -0
- samsara/types/training_learner_object_response_body.py +2 -1
- samsara/types/training_learner_object_response_body_type.py +5 -0
- samsara/types/update_routes_stop_request_object_request_body.py +7 -0
- samsara/types/vehicle_assignment_object_response_body.py +4 -3
- samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
- samsara/types/vehicle_external_ids.py +1 -1
- samsara/types/work_order_money_object_request_body.py +2 -1
- samsara/types/work_order_money_object_request_body_currency.py +5 -0
- samsara/types/work_order_money_object_response_body.py +2 -1
- samsara/types/work_order_money_object_response_body_currency.py +5 -0
- samsara/users/client.py +4 -16
- samsara/vehicle_locations/client.py +4 -16
- samsara/vehicles/client.py +7 -22
- samsara/vehicles/raw_client.py +43 -47
- samsara/webhooks/client.py +2 -10
- samsara/webhooks/raw_client.py +180 -180
- samsara/work_orders/client.py +4 -18
- samsara/work_orders/raw_client.py +216 -216
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/RECORD +159 -132
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
- {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
|
@@ -7,7 +7,11 @@ from importlib import import_module
|
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
9
|
from .create_dvir_request_safety_status import CreateDvirRequestSafetyStatus
|
|
10
|
-
|
|
10
|
+
from .create_dvir_request_type import CreateDvirRequestType
|
|
11
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
12
|
+
"CreateDvirRequestSafetyStatus": ".create_dvir_request_safety_status",
|
|
13
|
+
"CreateDvirRequestType": ".create_dvir_request_type",
|
|
14
|
+
}
|
|
11
15
|
|
|
12
16
|
|
|
13
17
|
def __getattr__(attr_name: str) -> typing.Any:
|
|
@@ -31,4 +35,4 @@ def __dir__():
|
|
|
31
35
|
return sorted(lazy_attrs)
|
|
32
36
|
|
|
33
37
|
|
|
34
|
-
__all__ = ["CreateDvirRequestSafetyStatus"]
|
|
38
|
+
__all__ = ["CreateDvirRequestSafetyStatus", "CreateDvirRequestType"]
|
samsara/media/client.py
CHANGED
|
@@ -115,8 +115,6 @@ class MediaClient:
|
|
|
115
115
|
vehicle_ids="vehicleIds",
|
|
116
116
|
start_time="startTime",
|
|
117
117
|
end_time="endTime",
|
|
118
|
-
available_after_time="availableAfterTime",
|
|
119
|
-
after="after",
|
|
120
118
|
)
|
|
121
119
|
"""
|
|
122
120
|
_response = self._raw_client.list_uploaded_media(
|
|
@@ -341,8 +339,6 @@ class AsyncMediaClient:
|
|
|
341
339
|
vehicle_ids="vehicleIds",
|
|
342
340
|
start_time="startTime",
|
|
343
341
|
end_time="endTime",
|
|
344
|
-
available_after_time="availableAfterTime",
|
|
345
|
-
after="after",
|
|
346
342
|
)
|
|
347
343
|
|
|
348
344
|
|
samsara/media/raw_client.py
CHANGED
|
@@ -134,9 +134,9 @@ class RawMediaClient:
|
|
|
134
134
|
raise UnauthorizedError(
|
|
135
135
|
headers=dict(_response.headers),
|
|
136
136
|
body=typing.cast(
|
|
137
|
-
typing.
|
|
137
|
+
typing.Any,
|
|
138
138
|
parse_obj_as(
|
|
139
|
-
type_=typing.
|
|
139
|
+
type_=typing.Any, # type: ignore
|
|
140
140
|
object_=_response.json(),
|
|
141
141
|
),
|
|
142
142
|
),
|
|
@@ -145,9 +145,9 @@ class RawMediaClient:
|
|
|
145
145
|
raise NotFoundError(
|
|
146
146
|
headers=dict(_response.headers),
|
|
147
147
|
body=typing.cast(
|
|
148
|
-
typing.
|
|
148
|
+
typing.Any,
|
|
149
149
|
parse_obj_as(
|
|
150
|
-
type_=typing.
|
|
150
|
+
type_=typing.Any, # type: ignore
|
|
151
151
|
object_=_response.json(),
|
|
152
152
|
),
|
|
153
153
|
),
|
|
@@ -156,9 +156,9 @@ class RawMediaClient:
|
|
|
156
156
|
raise MethodNotAllowedError(
|
|
157
157
|
headers=dict(_response.headers),
|
|
158
158
|
body=typing.cast(
|
|
159
|
-
typing.
|
|
159
|
+
typing.Any,
|
|
160
160
|
parse_obj_as(
|
|
161
|
-
type_=typing.
|
|
161
|
+
type_=typing.Any, # type: ignore
|
|
162
162
|
object_=_response.json(),
|
|
163
163
|
),
|
|
164
164
|
),
|
|
@@ -167,9 +167,9 @@ class RawMediaClient:
|
|
|
167
167
|
raise TooManyRequestsError(
|
|
168
168
|
headers=dict(_response.headers),
|
|
169
169
|
body=typing.cast(
|
|
170
|
-
typing.
|
|
170
|
+
typing.Any,
|
|
171
171
|
parse_obj_as(
|
|
172
|
-
type_=typing.
|
|
172
|
+
type_=typing.Any, # type: ignore
|
|
173
173
|
object_=_response.json(),
|
|
174
174
|
),
|
|
175
175
|
),
|
|
@@ -178,9 +178,9 @@ class RawMediaClient:
|
|
|
178
178
|
raise InternalServerError(
|
|
179
179
|
headers=dict(_response.headers),
|
|
180
180
|
body=typing.cast(
|
|
181
|
-
typing.
|
|
181
|
+
typing.Any,
|
|
182
182
|
parse_obj_as(
|
|
183
|
-
type_=typing.
|
|
183
|
+
type_=typing.Any, # type: ignore
|
|
184
184
|
object_=_response.json(),
|
|
185
185
|
),
|
|
186
186
|
),
|
|
@@ -189,9 +189,9 @@ class RawMediaClient:
|
|
|
189
189
|
raise NotImplementedError(
|
|
190
190
|
headers=dict(_response.headers),
|
|
191
191
|
body=typing.cast(
|
|
192
|
-
typing.
|
|
192
|
+
typing.Any,
|
|
193
193
|
parse_obj_as(
|
|
194
|
-
type_=typing.
|
|
194
|
+
type_=typing.Any, # type: ignore
|
|
195
195
|
object_=_response.json(),
|
|
196
196
|
),
|
|
197
197
|
),
|
|
@@ -200,9 +200,9 @@ class RawMediaClient:
|
|
|
200
200
|
raise BadGatewayError(
|
|
201
201
|
headers=dict(_response.headers),
|
|
202
202
|
body=typing.cast(
|
|
203
|
-
typing.
|
|
203
|
+
typing.Any,
|
|
204
204
|
parse_obj_as(
|
|
205
|
-
type_=typing.
|
|
205
|
+
type_=typing.Any, # type: ignore
|
|
206
206
|
object_=_response.json(),
|
|
207
207
|
),
|
|
208
208
|
),
|
|
@@ -211,9 +211,9 @@ class RawMediaClient:
|
|
|
211
211
|
raise ServiceUnavailableError(
|
|
212
212
|
headers=dict(_response.headers),
|
|
213
213
|
body=typing.cast(
|
|
214
|
-
typing.
|
|
214
|
+
typing.Any,
|
|
215
215
|
parse_obj_as(
|
|
216
|
-
type_=typing.
|
|
216
|
+
type_=typing.Any, # type: ignore
|
|
217
217
|
object_=_response.json(),
|
|
218
218
|
),
|
|
219
219
|
),
|
|
@@ -222,9 +222,9 @@ class RawMediaClient:
|
|
|
222
222
|
raise GatewayTimeoutError(
|
|
223
223
|
headers=dict(_response.headers),
|
|
224
224
|
body=typing.cast(
|
|
225
|
-
typing.
|
|
225
|
+
typing.Any,
|
|
226
226
|
parse_obj_as(
|
|
227
|
-
type_=typing.
|
|
227
|
+
type_=typing.Any, # type: ignore
|
|
228
228
|
object_=_response.json(),
|
|
229
229
|
),
|
|
230
230
|
),
|
|
@@ -282,9 +282,9 @@ class RawMediaClient:
|
|
|
282
282
|
raise UnauthorizedError(
|
|
283
283
|
headers=dict(_response.headers),
|
|
284
284
|
body=typing.cast(
|
|
285
|
-
typing.
|
|
285
|
+
typing.Any,
|
|
286
286
|
parse_obj_as(
|
|
287
|
-
type_=typing.
|
|
287
|
+
type_=typing.Any, # type: ignore
|
|
288
288
|
object_=_response.json(),
|
|
289
289
|
),
|
|
290
290
|
),
|
|
@@ -293,9 +293,9 @@ class RawMediaClient:
|
|
|
293
293
|
raise NotFoundError(
|
|
294
294
|
headers=dict(_response.headers),
|
|
295
295
|
body=typing.cast(
|
|
296
|
-
typing.
|
|
296
|
+
typing.Any,
|
|
297
297
|
parse_obj_as(
|
|
298
|
-
type_=typing.
|
|
298
|
+
type_=typing.Any, # type: ignore
|
|
299
299
|
object_=_response.json(),
|
|
300
300
|
),
|
|
301
301
|
),
|
|
@@ -304,9 +304,9 @@ class RawMediaClient:
|
|
|
304
304
|
raise MethodNotAllowedError(
|
|
305
305
|
headers=dict(_response.headers),
|
|
306
306
|
body=typing.cast(
|
|
307
|
-
typing.
|
|
307
|
+
typing.Any,
|
|
308
308
|
parse_obj_as(
|
|
309
|
-
type_=typing.
|
|
309
|
+
type_=typing.Any, # type: ignore
|
|
310
310
|
object_=_response.json(),
|
|
311
311
|
),
|
|
312
312
|
),
|
|
@@ -315,9 +315,9 @@ class RawMediaClient:
|
|
|
315
315
|
raise TooManyRequestsError(
|
|
316
316
|
headers=dict(_response.headers),
|
|
317
317
|
body=typing.cast(
|
|
318
|
-
typing.
|
|
318
|
+
typing.Any,
|
|
319
319
|
parse_obj_as(
|
|
320
|
-
type_=typing.
|
|
320
|
+
type_=typing.Any, # type: ignore
|
|
321
321
|
object_=_response.json(),
|
|
322
322
|
),
|
|
323
323
|
),
|
|
@@ -326,9 +326,9 @@ class RawMediaClient:
|
|
|
326
326
|
raise InternalServerError(
|
|
327
327
|
headers=dict(_response.headers),
|
|
328
328
|
body=typing.cast(
|
|
329
|
-
typing.
|
|
329
|
+
typing.Any,
|
|
330
330
|
parse_obj_as(
|
|
331
|
-
type_=typing.
|
|
331
|
+
type_=typing.Any, # type: ignore
|
|
332
332
|
object_=_response.json(),
|
|
333
333
|
),
|
|
334
334
|
),
|
|
@@ -337,9 +337,9 @@ class RawMediaClient:
|
|
|
337
337
|
raise NotImplementedError(
|
|
338
338
|
headers=dict(_response.headers),
|
|
339
339
|
body=typing.cast(
|
|
340
|
-
typing.
|
|
340
|
+
typing.Any,
|
|
341
341
|
parse_obj_as(
|
|
342
|
-
type_=typing.
|
|
342
|
+
type_=typing.Any, # type: ignore
|
|
343
343
|
object_=_response.json(),
|
|
344
344
|
),
|
|
345
345
|
),
|
|
@@ -348,9 +348,9 @@ class RawMediaClient:
|
|
|
348
348
|
raise BadGatewayError(
|
|
349
349
|
headers=dict(_response.headers),
|
|
350
350
|
body=typing.cast(
|
|
351
|
-
typing.
|
|
351
|
+
typing.Any,
|
|
352
352
|
parse_obj_as(
|
|
353
|
-
type_=typing.
|
|
353
|
+
type_=typing.Any, # type: ignore
|
|
354
354
|
object_=_response.json(),
|
|
355
355
|
),
|
|
356
356
|
),
|
|
@@ -359,9 +359,9 @@ class RawMediaClient:
|
|
|
359
359
|
raise ServiceUnavailableError(
|
|
360
360
|
headers=dict(_response.headers),
|
|
361
361
|
body=typing.cast(
|
|
362
|
-
typing.
|
|
362
|
+
typing.Any,
|
|
363
363
|
parse_obj_as(
|
|
364
|
-
type_=typing.
|
|
364
|
+
type_=typing.Any, # type: ignore
|
|
365
365
|
object_=_response.json(),
|
|
366
366
|
),
|
|
367
367
|
),
|
|
@@ -370,9 +370,9 @@ class RawMediaClient:
|
|
|
370
370
|
raise GatewayTimeoutError(
|
|
371
371
|
headers=dict(_response.headers),
|
|
372
372
|
body=typing.cast(
|
|
373
|
-
typing.
|
|
373
|
+
typing.Any,
|
|
374
374
|
parse_obj_as(
|
|
375
|
-
type_=typing.
|
|
375
|
+
type_=typing.Any, # type: ignore
|
|
376
376
|
object_=_response.json(),
|
|
377
377
|
),
|
|
378
378
|
),
|
|
@@ -457,9 +457,9 @@ class RawMediaClient:
|
|
|
457
457
|
raise UnauthorizedError(
|
|
458
458
|
headers=dict(_response.headers),
|
|
459
459
|
body=typing.cast(
|
|
460
|
-
typing.
|
|
460
|
+
typing.Any,
|
|
461
461
|
parse_obj_as(
|
|
462
|
-
type_=typing.
|
|
462
|
+
type_=typing.Any, # type: ignore
|
|
463
463
|
object_=_response.json(),
|
|
464
464
|
),
|
|
465
465
|
),
|
|
@@ -468,9 +468,9 @@ class RawMediaClient:
|
|
|
468
468
|
raise NotFoundError(
|
|
469
469
|
headers=dict(_response.headers),
|
|
470
470
|
body=typing.cast(
|
|
471
|
-
typing.
|
|
471
|
+
typing.Any,
|
|
472
472
|
parse_obj_as(
|
|
473
|
-
type_=typing.
|
|
473
|
+
type_=typing.Any, # type: ignore
|
|
474
474
|
object_=_response.json(),
|
|
475
475
|
),
|
|
476
476
|
),
|
|
@@ -479,9 +479,9 @@ class RawMediaClient:
|
|
|
479
479
|
raise MethodNotAllowedError(
|
|
480
480
|
headers=dict(_response.headers),
|
|
481
481
|
body=typing.cast(
|
|
482
|
-
typing.
|
|
482
|
+
typing.Any,
|
|
483
483
|
parse_obj_as(
|
|
484
|
-
type_=typing.
|
|
484
|
+
type_=typing.Any, # type: ignore
|
|
485
485
|
object_=_response.json(),
|
|
486
486
|
),
|
|
487
487
|
),
|
|
@@ -490,9 +490,9 @@ class RawMediaClient:
|
|
|
490
490
|
raise TooManyRequestsError(
|
|
491
491
|
headers=dict(_response.headers),
|
|
492
492
|
body=typing.cast(
|
|
493
|
-
typing.
|
|
493
|
+
typing.Any,
|
|
494
494
|
parse_obj_as(
|
|
495
|
-
type_=typing.
|
|
495
|
+
type_=typing.Any, # type: ignore
|
|
496
496
|
object_=_response.json(),
|
|
497
497
|
),
|
|
498
498
|
),
|
|
@@ -501,9 +501,9 @@ class RawMediaClient:
|
|
|
501
501
|
raise InternalServerError(
|
|
502
502
|
headers=dict(_response.headers),
|
|
503
503
|
body=typing.cast(
|
|
504
|
-
typing.
|
|
504
|
+
typing.Any,
|
|
505
505
|
parse_obj_as(
|
|
506
|
-
type_=typing.
|
|
506
|
+
type_=typing.Any, # type: ignore
|
|
507
507
|
object_=_response.json(),
|
|
508
508
|
),
|
|
509
509
|
),
|
|
@@ -512,9 +512,9 @@ class RawMediaClient:
|
|
|
512
512
|
raise NotImplementedError(
|
|
513
513
|
headers=dict(_response.headers),
|
|
514
514
|
body=typing.cast(
|
|
515
|
-
typing.
|
|
515
|
+
typing.Any,
|
|
516
516
|
parse_obj_as(
|
|
517
|
-
type_=typing.
|
|
517
|
+
type_=typing.Any, # type: ignore
|
|
518
518
|
object_=_response.json(),
|
|
519
519
|
),
|
|
520
520
|
),
|
|
@@ -523,9 +523,9 @@ class RawMediaClient:
|
|
|
523
523
|
raise BadGatewayError(
|
|
524
524
|
headers=dict(_response.headers),
|
|
525
525
|
body=typing.cast(
|
|
526
|
-
typing.
|
|
526
|
+
typing.Any,
|
|
527
527
|
parse_obj_as(
|
|
528
|
-
type_=typing.
|
|
528
|
+
type_=typing.Any, # type: ignore
|
|
529
529
|
object_=_response.json(),
|
|
530
530
|
),
|
|
531
531
|
),
|
|
@@ -534,9 +534,9 @@ class RawMediaClient:
|
|
|
534
534
|
raise ServiceUnavailableError(
|
|
535
535
|
headers=dict(_response.headers),
|
|
536
536
|
body=typing.cast(
|
|
537
|
-
typing.
|
|
537
|
+
typing.Any,
|
|
538
538
|
parse_obj_as(
|
|
539
|
-
type_=typing.
|
|
539
|
+
type_=typing.Any, # type: ignore
|
|
540
540
|
object_=_response.json(),
|
|
541
541
|
),
|
|
542
542
|
),
|
|
@@ -545,9 +545,9 @@ class RawMediaClient:
|
|
|
545
545
|
raise GatewayTimeoutError(
|
|
546
546
|
headers=dict(_response.headers),
|
|
547
547
|
body=typing.cast(
|
|
548
|
-
typing.
|
|
548
|
+
typing.Any,
|
|
549
549
|
parse_obj_as(
|
|
550
|
-
type_=typing.
|
|
550
|
+
type_=typing.Any, # type: ignore
|
|
551
551
|
object_=_response.json(),
|
|
552
552
|
),
|
|
553
553
|
),
|
|
@@ -658,9 +658,9 @@ class AsyncRawMediaClient:
|
|
|
658
658
|
raise UnauthorizedError(
|
|
659
659
|
headers=dict(_response.headers),
|
|
660
660
|
body=typing.cast(
|
|
661
|
-
typing.
|
|
661
|
+
typing.Any,
|
|
662
662
|
parse_obj_as(
|
|
663
|
-
type_=typing.
|
|
663
|
+
type_=typing.Any, # type: ignore
|
|
664
664
|
object_=_response.json(),
|
|
665
665
|
),
|
|
666
666
|
),
|
|
@@ -669,9 +669,9 @@ class AsyncRawMediaClient:
|
|
|
669
669
|
raise NotFoundError(
|
|
670
670
|
headers=dict(_response.headers),
|
|
671
671
|
body=typing.cast(
|
|
672
|
-
typing.
|
|
672
|
+
typing.Any,
|
|
673
673
|
parse_obj_as(
|
|
674
|
-
type_=typing.
|
|
674
|
+
type_=typing.Any, # type: ignore
|
|
675
675
|
object_=_response.json(),
|
|
676
676
|
),
|
|
677
677
|
),
|
|
@@ -680,9 +680,9 @@ class AsyncRawMediaClient:
|
|
|
680
680
|
raise MethodNotAllowedError(
|
|
681
681
|
headers=dict(_response.headers),
|
|
682
682
|
body=typing.cast(
|
|
683
|
-
typing.
|
|
683
|
+
typing.Any,
|
|
684
684
|
parse_obj_as(
|
|
685
|
-
type_=typing.
|
|
685
|
+
type_=typing.Any, # type: ignore
|
|
686
686
|
object_=_response.json(),
|
|
687
687
|
),
|
|
688
688
|
),
|
|
@@ -691,9 +691,9 @@ class AsyncRawMediaClient:
|
|
|
691
691
|
raise TooManyRequestsError(
|
|
692
692
|
headers=dict(_response.headers),
|
|
693
693
|
body=typing.cast(
|
|
694
|
-
typing.
|
|
694
|
+
typing.Any,
|
|
695
695
|
parse_obj_as(
|
|
696
|
-
type_=typing.
|
|
696
|
+
type_=typing.Any, # type: ignore
|
|
697
697
|
object_=_response.json(),
|
|
698
698
|
),
|
|
699
699
|
),
|
|
@@ -702,9 +702,9 @@ class AsyncRawMediaClient:
|
|
|
702
702
|
raise InternalServerError(
|
|
703
703
|
headers=dict(_response.headers),
|
|
704
704
|
body=typing.cast(
|
|
705
|
-
typing.
|
|
705
|
+
typing.Any,
|
|
706
706
|
parse_obj_as(
|
|
707
|
-
type_=typing.
|
|
707
|
+
type_=typing.Any, # type: ignore
|
|
708
708
|
object_=_response.json(),
|
|
709
709
|
),
|
|
710
710
|
),
|
|
@@ -713,9 +713,9 @@ class AsyncRawMediaClient:
|
|
|
713
713
|
raise NotImplementedError(
|
|
714
714
|
headers=dict(_response.headers),
|
|
715
715
|
body=typing.cast(
|
|
716
|
-
typing.
|
|
716
|
+
typing.Any,
|
|
717
717
|
parse_obj_as(
|
|
718
|
-
type_=typing.
|
|
718
|
+
type_=typing.Any, # type: ignore
|
|
719
719
|
object_=_response.json(),
|
|
720
720
|
),
|
|
721
721
|
),
|
|
@@ -724,9 +724,9 @@ class AsyncRawMediaClient:
|
|
|
724
724
|
raise BadGatewayError(
|
|
725
725
|
headers=dict(_response.headers),
|
|
726
726
|
body=typing.cast(
|
|
727
|
-
typing.
|
|
727
|
+
typing.Any,
|
|
728
728
|
parse_obj_as(
|
|
729
|
-
type_=typing.
|
|
729
|
+
type_=typing.Any, # type: ignore
|
|
730
730
|
object_=_response.json(),
|
|
731
731
|
),
|
|
732
732
|
),
|
|
@@ -735,9 +735,9 @@ class AsyncRawMediaClient:
|
|
|
735
735
|
raise ServiceUnavailableError(
|
|
736
736
|
headers=dict(_response.headers),
|
|
737
737
|
body=typing.cast(
|
|
738
|
-
typing.
|
|
738
|
+
typing.Any,
|
|
739
739
|
parse_obj_as(
|
|
740
|
-
type_=typing.
|
|
740
|
+
type_=typing.Any, # type: ignore
|
|
741
741
|
object_=_response.json(),
|
|
742
742
|
),
|
|
743
743
|
),
|
|
@@ -746,9 +746,9 @@ class AsyncRawMediaClient:
|
|
|
746
746
|
raise GatewayTimeoutError(
|
|
747
747
|
headers=dict(_response.headers),
|
|
748
748
|
body=typing.cast(
|
|
749
|
-
typing.
|
|
749
|
+
typing.Any,
|
|
750
750
|
parse_obj_as(
|
|
751
|
-
type_=typing.
|
|
751
|
+
type_=typing.Any, # type: ignore
|
|
752
752
|
object_=_response.json(),
|
|
753
753
|
),
|
|
754
754
|
),
|
|
@@ -806,9 +806,9 @@ class AsyncRawMediaClient:
|
|
|
806
806
|
raise UnauthorizedError(
|
|
807
807
|
headers=dict(_response.headers),
|
|
808
808
|
body=typing.cast(
|
|
809
|
-
typing.
|
|
809
|
+
typing.Any,
|
|
810
810
|
parse_obj_as(
|
|
811
|
-
type_=typing.
|
|
811
|
+
type_=typing.Any, # type: ignore
|
|
812
812
|
object_=_response.json(),
|
|
813
813
|
),
|
|
814
814
|
),
|
|
@@ -817,9 +817,9 @@ class AsyncRawMediaClient:
|
|
|
817
817
|
raise NotFoundError(
|
|
818
818
|
headers=dict(_response.headers),
|
|
819
819
|
body=typing.cast(
|
|
820
|
-
typing.
|
|
820
|
+
typing.Any,
|
|
821
821
|
parse_obj_as(
|
|
822
|
-
type_=typing.
|
|
822
|
+
type_=typing.Any, # type: ignore
|
|
823
823
|
object_=_response.json(),
|
|
824
824
|
),
|
|
825
825
|
),
|
|
@@ -828,9 +828,9 @@ class AsyncRawMediaClient:
|
|
|
828
828
|
raise MethodNotAllowedError(
|
|
829
829
|
headers=dict(_response.headers),
|
|
830
830
|
body=typing.cast(
|
|
831
|
-
typing.
|
|
831
|
+
typing.Any,
|
|
832
832
|
parse_obj_as(
|
|
833
|
-
type_=typing.
|
|
833
|
+
type_=typing.Any, # type: ignore
|
|
834
834
|
object_=_response.json(),
|
|
835
835
|
),
|
|
836
836
|
),
|
|
@@ -839,9 +839,9 @@ class AsyncRawMediaClient:
|
|
|
839
839
|
raise TooManyRequestsError(
|
|
840
840
|
headers=dict(_response.headers),
|
|
841
841
|
body=typing.cast(
|
|
842
|
-
typing.
|
|
842
|
+
typing.Any,
|
|
843
843
|
parse_obj_as(
|
|
844
|
-
type_=typing.
|
|
844
|
+
type_=typing.Any, # type: ignore
|
|
845
845
|
object_=_response.json(),
|
|
846
846
|
),
|
|
847
847
|
),
|
|
@@ -850,9 +850,9 @@ class AsyncRawMediaClient:
|
|
|
850
850
|
raise InternalServerError(
|
|
851
851
|
headers=dict(_response.headers),
|
|
852
852
|
body=typing.cast(
|
|
853
|
-
typing.
|
|
853
|
+
typing.Any,
|
|
854
854
|
parse_obj_as(
|
|
855
|
-
type_=typing.
|
|
855
|
+
type_=typing.Any, # type: ignore
|
|
856
856
|
object_=_response.json(),
|
|
857
857
|
),
|
|
858
858
|
),
|
|
@@ -861,9 +861,9 @@ class AsyncRawMediaClient:
|
|
|
861
861
|
raise NotImplementedError(
|
|
862
862
|
headers=dict(_response.headers),
|
|
863
863
|
body=typing.cast(
|
|
864
|
-
typing.
|
|
864
|
+
typing.Any,
|
|
865
865
|
parse_obj_as(
|
|
866
|
-
type_=typing.
|
|
866
|
+
type_=typing.Any, # type: ignore
|
|
867
867
|
object_=_response.json(),
|
|
868
868
|
),
|
|
869
869
|
),
|
|
@@ -872,9 +872,9 @@ class AsyncRawMediaClient:
|
|
|
872
872
|
raise BadGatewayError(
|
|
873
873
|
headers=dict(_response.headers),
|
|
874
874
|
body=typing.cast(
|
|
875
|
-
typing.
|
|
875
|
+
typing.Any,
|
|
876
876
|
parse_obj_as(
|
|
877
|
-
type_=typing.
|
|
877
|
+
type_=typing.Any, # type: ignore
|
|
878
878
|
object_=_response.json(),
|
|
879
879
|
),
|
|
880
880
|
),
|
|
@@ -883,9 +883,9 @@ class AsyncRawMediaClient:
|
|
|
883
883
|
raise ServiceUnavailableError(
|
|
884
884
|
headers=dict(_response.headers),
|
|
885
885
|
body=typing.cast(
|
|
886
|
-
typing.
|
|
886
|
+
typing.Any,
|
|
887
887
|
parse_obj_as(
|
|
888
|
-
type_=typing.
|
|
888
|
+
type_=typing.Any, # type: ignore
|
|
889
889
|
object_=_response.json(),
|
|
890
890
|
),
|
|
891
891
|
),
|
|
@@ -894,9 +894,9 @@ class AsyncRawMediaClient:
|
|
|
894
894
|
raise GatewayTimeoutError(
|
|
895
895
|
headers=dict(_response.headers),
|
|
896
896
|
body=typing.cast(
|
|
897
|
-
typing.
|
|
897
|
+
typing.Any,
|
|
898
898
|
parse_obj_as(
|
|
899
|
-
type_=typing.
|
|
899
|
+
type_=typing.Any, # type: ignore
|
|
900
900
|
object_=_response.json(),
|
|
901
901
|
),
|
|
902
902
|
),
|
|
@@ -981,9 +981,9 @@ class AsyncRawMediaClient:
|
|
|
981
981
|
raise UnauthorizedError(
|
|
982
982
|
headers=dict(_response.headers),
|
|
983
983
|
body=typing.cast(
|
|
984
|
-
typing.
|
|
984
|
+
typing.Any,
|
|
985
985
|
parse_obj_as(
|
|
986
|
-
type_=typing.
|
|
986
|
+
type_=typing.Any, # type: ignore
|
|
987
987
|
object_=_response.json(),
|
|
988
988
|
),
|
|
989
989
|
),
|
|
@@ -992,9 +992,9 @@ class AsyncRawMediaClient:
|
|
|
992
992
|
raise NotFoundError(
|
|
993
993
|
headers=dict(_response.headers),
|
|
994
994
|
body=typing.cast(
|
|
995
|
-
typing.
|
|
995
|
+
typing.Any,
|
|
996
996
|
parse_obj_as(
|
|
997
|
-
type_=typing.
|
|
997
|
+
type_=typing.Any, # type: ignore
|
|
998
998
|
object_=_response.json(),
|
|
999
999
|
),
|
|
1000
1000
|
),
|
|
@@ -1003,9 +1003,9 @@ class AsyncRawMediaClient:
|
|
|
1003
1003
|
raise MethodNotAllowedError(
|
|
1004
1004
|
headers=dict(_response.headers),
|
|
1005
1005
|
body=typing.cast(
|
|
1006
|
-
typing.
|
|
1006
|
+
typing.Any,
|
|
1007
1007
|
parse_obj_as(
|
|
1008
|
-
type_=typing.
|
|
1008
|
+
type_=typing.Any, # type: ignore
|
|
1009
1009
|
object_=_response.json(),
|
|
1010
1010
|
),
|
|
1011
1011
|
),
|
|
@@ -1014,9 +1014,9 @@ class AsyncRawMediaClient:
|
|
|
1014
1014
|
raise TooManyRequestsError(
|
|
1015
1015
|
headers=dict(_response.headers),
|
|
1016
1016
|
body=typing.cast(
|
|
1017
|
-
typing.
|
|
1017
|
+
typing.Any,
|
|
1018
1018
|
parse_obj_as(
|
|
1019
|
-
type_=typing.
|
|
1019
|
+
type_=typing.Any, # type: ignore
|
|
1020
1020
|
object_=_response.json(),
|
|
1021
1021
|
),
|
|
1022
1022
|
),
|
|
@@ -1025,9 +1025,9 @@ class AsyncRawMediaClient:
|
|
|
1025
1025
|
raise InternalServerError(
|
|
1026
1026
|
headers=dict(_response.headers),
|
|
1027
1027
|
body=typing.cast(
|
|
1028
|
-
typing.
|
|
1028
|
+
typing.Any,
|
|
1029
1029
|
parse_obj_as(
|
|
1030
|
-
type_=typing.
|
|
1030
|
+
type_=typing.Any, # type: ignore
|
|
1031
1031
|
object_=_response.json(),
|
|
1032
1032
|
),
|
|
1033
1033
|
),
|
|
@@ -1036,9 +1036,9 @@ class AsyncRawMediaClient:
|
|
|
1036
1036
|
raise NotImplementedError(
|
|
1037
1037
|
headers=dict(_response.headers),
|
|
1038
1038
|
body=typing.cast(
|
|
1039
|
-
typing.
|
|
1039
|
+
typing.Any,
|
|
1040
1040
|
parse_obj_as(
|
|
1041
|
-
type_=typing.
|
|
1041
|
+
type_=typing.Any, # type: ignore
|
|
1042
1042
|
object_=_response.json(),
|
|
1043
1043
|
),
|
|
1044
1044
|
),
|
|
@@ -1047,9 +1047,9 @@ class AsyncRawMediaClient:
|
|
|
1047
1047
|
raise BadGatewayError(
|
|
1048
1048
|
headers=dict(_response.headers),
|
|
1049
1049
|
body=typing.cast(
|
|
1050
|
-
typing.
|
|
1050
|
+
typing.Any,
|
|
1051
1051
|
parse_obj_as(
|
|
1052
|
-
type_=typing.
|
|
1052
|
+
type_=typing.Any, # type: ignore
|
|
1053
1053
|
object_=_response.json(),
|
|
1054
1054
|
),
|
|
1055
1055
|
),
|
|
@@ -1058,9 +1058,9 @@ class AsyncRawMediaClient:
|
|
|
1058
1058
|
raise ServiceUnavailableError(
|
|
1059
1059
|
headers=dict(_response.headers),
|
|
1060
1060
|
body=typing.cast(
|
|
1061
|
-
typing.
|
|
1061
|
+
typing.Any,
|
|
1062
1062
|
parse_obj_as(
|
|
1063
|
-
type_=typing.
|
|
1063
|
+
type_=typing.Any, # type: ignore
|
|
1064
1064
|
object_=_response.json(),
|
|
1065
1065
|
),
|
|
1066
1066
|
),
|
|
@@ -1069,9 +1069,9 @@ class AsyncRawMediaClient:
|
|
|
1069
1069
|
raise GatewayTimeoutError(
|
|
1070
1070
|
headers=dict(_response.headers),
|
|
1071
1071
|
body=typing.cast(
|
|
1072
|
-
typing.
|
|
1072
|
+
typing.Any,
|
|
1073
1073
|
parse_obj_as(
|
|
1074
|
-
type_=typing.
|
|
1074
|
+
type_=typing.Any, # type: ignore
|
|
1075
1075
|
object_=_response.json(),
|
|
1076
1076
|
),
|
|
1077
1077
|
),
|