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.
Files changed (159) hide show
  1. samsara/__init__.py +69 -9
  2. samsara/addresses/client.py +7 -14
  3. samsara/addresses/raw_client.py +7 -11
  4. samsara/alerts/client.py +2 -10
  5. samsara/alerts/raw_client.py +180 -180
  6. samsara/assets/__init__.py +3 -3
  7. samsara/assets/client.py +14 -45
  8. samsara/assets/raw_client.py +156 -160
  9. samsara/assets/types/__init__.py +3 -3
  10. samsara/assets/types/{assets_list_request_type.py → list_assets_request_type.py} +1 -1
  11. samsara/attributes/client.py +0 -4
  12. samsara/beta_ap_is/client.py +137 -187
  13. samsara/beta_ap_is/raw_client.py +2035 -1702
  14. samsara/carrier_proposed_assignments/client.py +2 -10
  15. samsara/client.py +5 -0
  16. samsara/coaching/client.py +2 -22
  17. samsara/coaching/raw_client.py +108 -108
  18. samsara/contacts/client.py +2 -8
  19. samsara/core/__init__.py +5 -0
  20. samsara/core/client_wrapper.py +18 -10
  21. samsara/core/custom_pagination.py +152 -0
  22. samsara/core/http_client.py +176 -90
  23. samsara/core/http_sse/__init__.py +42 -0
  24. samsara/core/http_sse/_api.py +112 -0
  25. samsara/core/http_sse/_decoders.py +61 -0
  26. samsara/core/http_sse/_exceptions.py +7 -0
  27. samsara/core/http_sse/_models.py +17 -0
  28. samsara/core/pagination.py +14 -14
  29. samsara/core/pydantic_utilities.py +3 -1
  30. samsara/documents/client.py +2 -12
  31. samsara/documents/raw_client.py +180 -180
  32. samsara/driver_qr_codes/raw_client.py +108 -108
  33. samsara/driver_vehicle_assignments/client.py +0 -12
  34. samsara/driver_vehicle_assignments/raw_client.py +144 -144
  35. samsara/drivers/__init__.py +3 -3
  36. samsara/drivers/client.py +12 -23
  37. samsara/drivers/raw_client.py +48 -52
  38. samsara/drivers/types/__init__.py +3 -3
  39. samsara/drivers/types/{drivers_list_request_driver_activation_status.py → list_drivers_request_driver_activation_status.py} +1 -1
  40. samsara/equipment/client.py +6 -22
  41. samsara/errors/bad_gateway_error.py +1 -1
  42. samsara/errors/gateway_timeout_error.py +1 -1
  43. samsara/errors/internal_server_error.py +1 -1
  44. samsara/errors/method_not_allowed_error.py +1 -1
  45. samsara/errors/not_found_error.py +1 -1
  46. samsara/errors/not_implemented_error.py +1 -1
  47. samsara/errors/service_unavailable_error.py +1 -1
  48. samsara/errors/too_many_requests_error.py +1 -1
  49. samsara/errors/unauthorized_error.py +1 -1
  50. samsara/forms/__init__.py +9 -3
  51. samsara/forms/client.py +17 -10
  52. samsara/forms/raw_client.py +265 -254
  53. samsara/forms/types/__init__.py +6 -2
  54. samsara/forms/types/form_submissions_post_form_submission_request_body_status.py +5 -0
  55. samsara/fuel_and_energy/client.py +0 -30
  56. samsara/fuel_and_energy/raw_client.py +180 -180
  57. samsara/gateways/client.py +2 -6
  58. samsara/gateways/raw_client.py +108 -108
  59. samsara/hours_of_service/__init__.py +6 -3
  60. samsara/hours_of_service/client.py +13 -52
  61. samsara/hours_of_service/raw_client.py +77 -76
  62. samsara/hours_of_service/types/__init__.py +4 -2
  63. samsara/hours_of_service/types/get_hos_daily_logs_request_expand.py +5 -0
  64. samsara/hubs/client.py +2 -94
  65. samsara/hubs/raw_client.py +216 -216
  66. samsara/idling/client.py +0 -18
  67. samsara/idling/raw_client.py +36 -36
  68. samsara/ifta/client.py +4 -34
  69. samsara/ifta/raw_client.py +144 -144
  70. samsara/industrial/client.py +12 -56
  71. samsara/industrial/raw_client.py +40 -48
  72. samsara/issues/client.py +0 -4
  73. samsara/issues/raw_client.py +108 -108
  74. samsara/legacy_ap_is/client.py +4 -56
  75. samsara/legacy_ap_is/raw_client.py +108 -108
  76. samsara/live_sharing_links/client.py +2 -10
  77. samsara/live_sharing_links/raw_client.py +144 -144
  78. samsara/location_and_speed/client.py +2 -20
  79. samsara/location_and_speed/raw_client.py +36 -36
  80. samsara/maintenance/__init__.py +3 -3
  81. samsara/maintenance/client.py +15 -30
  82. samsara/maintenance/raw_client.py +191 -182
  83. samsara/maintenance/types/__init__.py +6 -2
  84. samsara/maintenance/types/create_dvir_request_type.py +5 -0
  85. samsara/media/client.py +0 -4
  86. samsara/media/raw_client.py +108 -108
  87. samsara/messages/client.py +2 -8
  88. samsara/plans/client.py +0 -21
  89. samsara/plans/raw_client.py +72 -72
  90. samsara/preview_ap_is/client.py +0 -140
  91. samsara/preview_ap_is/raw_client.py +72 -430
  92. samsara/route_events/client.py +2 -12
  93. samsara/route_events/raw_client.py +36 -36
  94. samsara/routes/__init__.py +30 -0
  95. samsara/routes/client.py +7 -35
  96. samsara/routes/raw_client.py +257 -256
  97. samsara/routes/types/__init__.py +34 -0
  98. samsara/routes/types/get_routes_feed_request_expand.py +5 -0
  99. samsara/safety/client.py +2 -10
  100. samsara/safety/raw_client.py +36 -36
  101. samsara/settings/raw_client.py +180 -180
  102. samsara/speeding_intervals/raw_client.py +36 -36
  103. samsara/tachograph_eu_only/client.py +0 -6
  104. samsara/tags/client.py +2 -8
  105. samsara/trailer_assignments/client.py +2 -18
  106. samsara/trailers/client.py +2 -12
  107. samsara/trailers/raw_client.py +180 -180
  108. samsara/types/__init__.py +54 -0
  109. samsara/types/create_routes_stop_request_object_request_body.py +7 -0
  110. samsara/types/driver_assignment_object_response_body.py +2 -1
  111. samsara/types/driver_assignment_object_response_body_assignment_type.py +5 -0
  112. samsara/types/driver_external_ids.py +1 -1
  113. samsara/types/forms_approval_config_object_response_body.py +2 -1
  114. samsara/types/forms_approval_config_object_response_body_type.py +5 -0
  115. samsara/types/fuel_level_trigger_details_object_request_body.py +2 -1
  116. samsara/types/fuel_level_trigger_details_object_request_body_operation.py +5 -0
  117. samsara/types/fuel_level_trigger_details_object_response_body.py +4 -1
  118. samsara/types/fuel_level_trigger_details_object_response_body_operation.py +5 -0
  119. samsara/types/idling_event_object_v_20251023_response_body.py +4 -3
  120. samsara/types/idling_event_object_v_20251023_response_body_pto_state.py +5 -0
  121. samsara/types/patch_issue_request_body_assigned_to_request_body.py +2 -1
  122. samsara/types/patch_issue_request_body_assigned_to_request_body_type.py +5 -0
  123. samsara/types/reading_datapoint_request_body.py +5 -4
  124. samsara/types/reading_datapoint_request_body_entity_type.py +5 -0
  125. samsara/types/reading_history_response_body.py +1 -1
  126. samsara/types/reading_snapshot_response_body.py +1 -1
  127. samsara/types/resolved_by.py +2 -1
  128. samsara/types/resolved_by_type.py +5 -0
  129. samsara/types/route_feed_object_response_body.py +2 -1
  130. samsara/types/route_feed_object_response_body_type.py +5 -0
  131. samsara/types/route_settings_request_body.py +8 -0
  132. samsara/types/route_settings_request_body_sequencing_method.py +7 -0
  133. samsara/types/route_settings_response_body.py +8 -0
  134. samsara/types/route_settings_response_body_sequencing_method.py +7 -0
  135. samsara/types/route_stop_details_object_response_body.py +2 -1
  136. samsara/types/route_stop_details_object_response_body_type.py +5 -0
  137. samsara/types/routes_stop_response_object_response_body.py +7 -0
  138. samsara/types/training_learner_object_response_body.py +2 -1
  139. samsara/types/training_learner_object_response_body_type.py +5 -0
  140. samsara/types/update_routes_stop_request_object_request_body.py +7 -0
  141. samsara/types/vehicle_assignment_object_response_body.py +4 -3
  142. samsara/types/vehicle_assignment_object_response_body_assignment_type.py +5 -0
  143. samsara/types/vehicle_external_ids.py +1 -1
  144. samsara/types/work_order_money_object_request_body.py +2 -1
  145. samsara/types/work_order_money_object_request_body_currency.py +5 -0
  146. samsara/types/work_order_money_object_response_body.py +2 -1
  147. samsara/types/work_order_money_object_response_body_currency.py +5 -0
  148. samsara/users/client.py +4 -16
  149. samsara/vehicle_locations/client.py +4 -16
  150. samsara/vehicles/client.py +7 -22
  151. samsara/vehicles/raw_client.py +43 -47
  152. samsara/webhooks/client.py +2 -10
  153. samsara/webhooks/raw_client.py +180 -180
  154. samsara/work_orders/client.py +4 -18
  155. samsara/work_orders/raw_client.py +216 -216
  156. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/METADATA +2 -1
  157. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/RECORD +159 -132
  158. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/LICENSE +0 -0
  159. {samsara_api-4.2.0.dist-info → samsara_api-4.3.0.dist-info}/WHEEL +0 -0
@@ -105,9 +105,9 @@ class RawWorkOrdersClient:
105
105
  raise UnauthorizedError(
106
106
  headers=dict(_response.headers),
107
107
  body=typing.cast(
108
- typing.Optional[typing.Any],
108
+ typing.Any,
109
109
  parse_obj_as(
110
- type_=typing.Optional[typing.Any], # type: ignore
110
+ type_=typing.Any, # type: ignore
111
111
  object_=_response.json(),
112
112
  ),
113
113
  ),
@@ -116,9 +116,9 @@ class RawWorkOrdersClient:
116
116
  raise NotFoundError(
117
117
  headers=dict(_response.headers),
118
118
  body=typing.cast(
119
- typing.Optional[typing.Any],
119
+ typing.Any,
120
120
  parse_obj_as(
121
- type_=typing.Optional[typing.Any], # type: ignore
121
+ type_=typing.Any, # type: ignore
122
122
  object_=_response.json(),
123
123
  ),
124
124
  ),
@@ -127,9 +127,9 @@ class RawWorkOrdersClient:
127
127
  raise MethodNotAllowedError(
128
128
  headers=dict(_response.headers),
129
129
  body=typing.cast(
130
- typing.Optional[typing.Any],
130
+ typing.Any,
131
131
  parse_obj_as(
132
- type_=typing.Optional[typing.Any], # type: ignore
132
+ type_=typing.Any, # type: ignore
133
133
  object_=_response.json(),
134
134
  ),
135
135
  ),
@@ -138,9 +138,9 @@ class RawWorkOrdersClient:
138
138
  raise TooManyRequestsError(
139
139
  headers=dict(_response.headers),
140
140
  body=typing.cast(
141
- typing.Optional[typing.Any],
141
+ typing.Any,
142
142
  parse_obj_as(
143
- type_=typing.Optional[typing.Any], # type: ignore
143
+ type_=typing.Any, # type: ignore
144
144
  object_=_response.json(),
145
145
  ),
146
146
  ),
@@ -149,9 +149,9 @@ class RawWorkOrdersClient:
149
149
  raise InternalServerError(
150
150
  headers=dict(_response.headers),
151
151
  body=typing.cast(
152
- typing.Optional[typing.Any],
152
+ typing.Any,
153
153
  parse_obj_as(
154
- type_=typing.Optional[typing.Any], # type: ignore
154
+ type_=typing.Any, # type: ignore
155
155
  object_=_response.json(),
156
156
  ),
157
157
  ),
@@ -160,9 +160,9 @@ class RawWorkOrdersClient:
160
160
  raise NotImplementedError(
161
161
  headers=dict(_response.headers),
162
162
  body=typing.cast(
163
- typing.Optional[typing.Any],
163
+ typing.Any,
164
164
  parse_obj_as(
165
- type_=typing.Optional[typing.Any], # type: ignore
165
+ type_=typing.Any, # type: ignore
166
166
  object_=_response.json(),
167
167
  ),
168
168
  ),
@@ -171,9 +171,9 @@ class RawWorkOrdersClient:
171
171
  raise BadGatewayError(
172
172
  headers=dict(_response.headers),
173
173
  body=typing.cast(
174
- typing.Optional[typing.Any],
174
+ typing.Any,
175
175
  parse_obj_as(
176
- type_=typing.Optional[typing.Any], # type: ignore
176
+ type_=typing.Any, # type: ignore
177
177
  object_=_response.json(),
178
178
  ),
179
179
  ),
@@ -182,9 +182,9 @@ class RawWorkOrdersClient:
182
182
  raise ServiceUnavailableError(
183
183
  headers=dict(_response.headers),
184
184
  body=typing.cast(
185
- typing.Optional[typing.Any],
185
+ typing.Any,
186
186
  parse_obj_as(
187
- type_=typing.Optional[typing.Any], # type: ignore
187
+ type_=typing.Any, # type: ignore
188
188
  object_=_response.json(),
189
189
  ),
190
190
  ),
@@ -193,9 +193,9 @@ class RawWorkOrdersClient:
193
193
  raise GatewayTimeoutError(
194
194
  headers=dict(_response.headers),
195
195
  body=typing.cast(
196
- typing.Optional[typing.Any],
196
+ typing.Any,
197
197
  parse_obj_as(
198
- type_=typing.Optional[typing.Any], # type: ignore
198
+ type_=typing.Any, # type: ignore
199
199
  object_=_response.json(),
200
200
  ),
201
201
  ),
@@ -261,9 +261,9 @@ class RawWorkOrdersClient:
261
261
  raise UnauthorizedError(
262
262
  headers=dict(_response.headers),
263
263
  body=typing.cast(
264
- typing.Optional[typing.Any],
264
+ typing.Any,
265
265
  parse_obj_as(
266
- type_=typing.Optional[typing.Any], # type: ignore
266
+ type_=typing.Any, # type: ignore
267
267
  object_=_response.json(),
268
268
  ),
269
269
  ),
@@ -272,9 +272,9 @@ class RawWorkOrdersClient:
272
272
  raise NotFoundError(
273
273
  headers=dict(_response.headers),
274
274
  body=typing.cast(
275
- typing.Optional[typing.Any],
275
+ typing.Any,
276
276
  parse_obj_as(
277
- type_=typing.Optional[typing.Any], # type: ignore
277
+ type_=typing.Any, # type: ignore
278
278
  object_=_response.json(),
279
279
  ),
280
280
  ),
@@ -283,9 +283,9 @@ class RawWorkOrdersClient:
283
283
  raise MethodNotAllowedError(
284
284
  headers=dict(_response.headers),
285
285
  body=typing.cast(
286
- typing.Optional[typing.Any],
286
+ typing.Any,
287
287
  parse_obj_as(
288
- type_=typing.Optional[typing.Any], # type: ignore
288
+ type_=typing.Any, # type: ignore
289
289
  object_=_response.json(),
290
290
  ),
291
291
  ),
@@ -294,9 +294,9 @@ class RawWorkOrdersClient:
294
294
  raise TooManyRequestsError(
295
295
  headers=dict(_response.headers),
296
296
  body=typing.cast(
297
- typing.Optional[typing.Any],
297
+ typing.Any,
298
298
  parse_obj_as(
299
- type_=typing.Optional[typing.Any], # type: ignore
299
+ type_=typing.Any, # type: ignore
300
300
  object_=_response.json(),
301
301
  ),
302
302
  ),
@@ -305,9 +305,9 @@ class RawWorkOrdersClient:
305
305
  raise InternalServerError(
306
306
  headers=dict(_response.headers),
307
307
  body=typing.cast(
308
- typing.Optional[typing.Any],
308
+ typing.Any,
309
309
  parse_obj_as(
310
- type_=typing.Optional[typing.Any], # type: ignore
310
+ type_=typing.Any, # type: ignore
311
311
  object_=_response.json(),
312
312
  ),
313
313
  ),
@@ -316,9 +316,9 @@ class RawWorkOrdersClient:
316
316
  raise NotImplementedError(
317
317
  headers=dict(_response.headers),
318
318
  body=typing.cast(
319
- typing.Optional[typing.Any],
319
+ typing.Any,
320
320
  parse_obj_as(
321
- type_=typing.Optional[typing.Any], # type: ignore
321
+ type_=typing.Any, # type: ignore
322
322
  object_=_response.json(),
323
323
  ),
324
324
  ),
@@ -327,9 +327,9 @@ class RawWorkOrdersClient:
327
327
  raise BadGatewayError(
328
328
  headers=dict(_response.headers),
329
329
  body=typing.cast(
330
- typing.Optional[typing.Any],
330
+ typing.Any,
331
331
  parse_obj_as(
332
- type_=typing.Optional[typing.Any], # type: ignore
332
+ type_=typing.Any, # type: ignore
333
333
  object_=_response.json(),
334
334
  ),
335
335
  ),
@@ -338,9 +338,9 @@ class RawWorkOrdersClient:
338
338
  raise ServiceUnavailableError(
339
339
  headers=dict(_response.headers),
340
340
  body=typing.cast(
341
- typing.Optional[typing.Any],
341
+ typing.Any,
342
342
  parse_obj_as(
343
- type_=typing.Optional[typing.Any], # type: ignore
343
+ type_=typing.Any, # type: ignore
344
344
  object_=_response.json(),
345
345
  ),
346
346
  ),
@@ -349,9 +349,9 @@ class RawWorkOrdersClient:
349
349
  raise GatewayTimeoutError(
350
350
  headers=dict(_response.headers),
351
351
  body=typing.cast(
352
- typing.Optional[typing.Any],
352
+ typing.Any,
353
353
  parse_obj_as(
354
- type_=typing.Optional[typing.Any], # type: ignore
354
+ type_=typing.Any, # type: ignore
355
355
  object_=_response.json(),
356
356
  ),
357
357
  ),
@@ -494,9 +494,9 @@ class RawWorkOrdersClient:
494
494
  raise UnauthorizedError(
495
495
  headers=dict(_response.headers),
496
496
  body=typing.cast(
497
- typing.Optional[typing.Any],
497
+ typing.Any,
498
498
  parse_obj_as(
499
- type_=typing.Optional[typing.Any], # type: ignore
499
+ type_=typing.Any, # type: ignore
500
500
  object_=_response.json(),
501
501
  ),
502
502
  ),
@@ -505,9 +505,9 @@ class RawWorkOrdersClient:
505
505
  raise NotFoundError(
506
506
  headers=dict(_response.headers),
507
507
  body=typing.cast(
508
- typing.Optional[typing.Any],
508
+ typing.Any,
509
509
  parse_obj_as(
510
- type_=typing.Optional[typing.Any], # type: ignore
510
+ type_=typing.Any, # type: ignore
511
511
  object_=_response.json(),
512
512
  ),
513
513
  ),
@@ -516,9 +516,9 @@ class RawWorkOrdersClient:
516
516
  raise MethodNotAllowedError(
517
517
  headers=dict(_response.headers),
518
518
  body=typing.cast(
519
- typing.Optional[typing.Any],
519
+ typing.Any,
520
520
  parse_obj_as(
521
- type_=typing.Optional[typing.Any], # type: ignore
521
+ type_=typing.Any, # type: ignore
522
522
  object_=_response.json(),
523
523
  ),
524
524
  ),
@@ -527,9 +527,9 @@ class RawWorkOrdersClient:
527
527
  raise TooManyRequestsError(
528
528
  headers=dict(_response.headers),
529
529
  body=typing.cast(
530
- typing.Optional[typing.Any],
530
+ typing.Any,
531
531
  parse_obj_as(
532
- type_=typing.Optional[typing.Any], # type: ignore
532
+ type_=typing.Any, # type: ignore
533
533
  object_=_response.json(),
534
534
  ),
535
535
  ),
@@ -538,9 +538,9 @@ class RawWorkOrdersClient:
538
538
  raise InternalServerError(
539
539
  headers=dict(_response.headers),
540
540
  body=typing.cast(
541
- typing.Optional[typing.Any],
541
+ typing.Any,
542
542
  parse_obj_as(
543
- type_=typing.Optional[typing.Any], # type: ignore
543
+ type_=typing.Any, # type: ignore
544
544
  object_=_response.json(),
545
545
  ),
546
546
  ),
@@ -549,9 +549,9 @@ class RawWorkOrdersClient:
549
549
  raise NotImplementedError(
550
550
  headers=dict(_response.headers),
551
551
  body=typing.cast(
552
- typing.Optional[typing.Any],
552
+ typing.Any,
553
553
  parse_obj_as(
554
- type_=typing.Optional[typing.Any], # type: ignore
554
+ type_=typing.Any, # type: ignore
555
555
  object_=_response.json(),
556
556
  ),
557
557
  ),
@@ -560,9 +560,9 @@ class RawWorkOrdersClient:
560
560
  raise BadGatewayError(
561
561
  headers=dict(_response.headers),
562
562
  body=typing.cast(
563
- typing.Optional[typing.Any],
563
+ typing.Any,
564
564
  parse_obj_as(
565
- type_=typing.Optional[typing.Any], # type: ignore
565
+ type_=typing.Any, # type: ignore
566
566
  object_=_response.json(),
567
567
  ),
568
568
  ),
@@ -571,9 +571,9 @@ class RawWorkOrdersClient:
571
571
  raise ServiceUnavailableError(
572
572
  headers=dict(_response.headers),
573
573
  body=typing.cast(
574
- typing.Optional[typing.Any],
574
+ typing.Any,
575
575
  parse_obj_as(
576
- type_=typing.Optional[typing.Any], # type: ignore
576
+ type_=typing.Any, # type: ignore
577
577
  object_=_response.json(),
578
578
  ),
579
579
  ),
@@ -582,9 +582,9 @@ class RawWorkOrdersClient:
582
582
  raise GatewayTimeoutError(
583
583
  headers=dict(_response.headers),
584
584
  body=typing.cast(
585
- typing.Optional[typing.Any],
585
+ typing.Any,
586
586
  parse_obj_as(
587
- type_=typing.Optional[typing.Any], # type: ignore
587
+ type_=typing.Any, # type: ignore
588
588
  object_=_response.json(),
589
589
  ),
590
590
  ),
@@ -634,9 +634,9 @@ class RawWorkOrdersClient:
634
634
  raise UnauthorizedError(
635
635
  headers=dict(_response.headers),
636
636
  body=typing.cast(
637
- typing.Optional[typing.Any],
637
+ typing.Any,
638
638
  parse_obj_as(
639
- type_=typing.Optional[typing.Any], # type: ignore
639
+ type_=typing.Any, # type: ignore
640
640
  object_=_response.json(),
641
641
  ),
642
642
  ),
@@ -645,9 +645,9 @@ class RawWorkOrdersClient:
645
645
  raise NotFoundError(
646
646
  headers=dict(_response.headers),
647
647
  body=typing.cast(
648
- typing.Optional[typing.Any],
648
+ typing.Any,
649
649
  parse_obj_as(
650
- type_=typing.Optional[typing.Any], # type: ignore
650
+ type_=typing.Any, # type: ignore
651
651
  object_=_response.json(),
652
652
  ),
653
653
  ),
@@ -656,9 +656,9 @@ class RawWorkOrdersClient:
656
656
  raise MethodNotAllowedError(
657
657
  headers=dict(_response.headers),
658
658
  body=typing.cast(
659
- typing.Optional[typing.Any],
659
+ typing.Any,
660
660
  parse_obj_as(
661
- type_=typing.Optional[typing.Any], # type: ignore
661
+ type_=typing.Any, # type: ignore
662
662
  object_=_response.json(),
663
663
  ),
664
664
  ),
@@ -667,9 +667,9 @@ class RawWorkOrdersClient:
667
667
  raise TooManyRequestsError(
668
668
  headers=dict(_response.headers),
669
669
  body=typing.cast(
670
- typing.Optional[typing.Any],
670
+ typing.Any,
671
671
  parse_obj_as(
672
- type_=typing.Optional[typing.Any], # type: ignore
672
+ type_=typing.Any, # type: ignore
673
673
  object_=_response.json(),
674
674
  ),
675
675
  ),
@@ -678,9 +678,9 @@ class RawWorkOrdersClient:
678
678
  raise InternalServerError(
679
679
  headers=dict(_response.headers),
680
680
  body=typing.cast(
681
- typing.Optional[typing.Any],
681
+ typing.Any,
682
682
  parse_obj_as(
683
- type_=typing.Optional[typing.Any], # type: ignore
683
+ type_=typing.Any, # type: ignore
684
684
  object_=_response.json(),
685
685
  ),
686
686
  ),
@@ -689,9 +689,9 @@ class RawWorkOrdersClient:
689
689
  raise NotImplementedError(
690
690
  headers=dict(_response.headers),
691
691
  body=typing.cast(
692
- typing.Optional[typing.Any],
692
+ typing.Any,
693
693
  parse_obj_as(
694
- type_=typing.Optional[typing.Any], # type: ignore
694
+ type_=typing.Any, # type: ignore
695
695
  object_=_response.json(),
696
696
  ),
697
697
  ),
@@ -700,9 +700,9 @@ class RawWorkOrdersClient:
700
700
  raise BadGatewayError(
701
701
  headers=dict(_response.headers),
702
702
  body=typing.cast(
703
- typing.Optional[typing.Any],
703
+ typing.Any,
704
704
  parse_obj_as(
705
- type_=typing.Optional[typing.Any], # type: ignore
705
+ type_=typing.Any, # type: ignore
706
706
  object_=_response.json(),
707
707
  ),
708
708
  ),
@@ -711,9 +711,9 @@ class RawWorkOrdersClient:
711
711
  raise ServiceUnavailableError(
712
712
  headers=dict(_response.headers),
713
713
  body=typing.cast(
714
- typing.Optional[typing.Any],
714
+ typing.Any,
715
715
  parse_obj_as(
716
- type_=typing.Optional[typing.Any], # type: ignore
716
+ type_=typing.Any, # type: ignore
717
717
  object_=_response.json(),
718
718
  ),
719
719
  ),
@@ -722,9 +722,9 @@ class RawWorkOrdersClient:
722
722
  raise GatewayTimeoutError(
723
723
  headers=dict(_response.headers),
724
724
  body=typing.cast(
725
- typing.Optional[typing.Any],
725
+ typing.Any,
726
726
  parse_obj_as(
727
- type_=typing.Optional[typing.Any], # type: ignore
727
+ type_=typing.Any, # type: ignore
728
728
  object_=_response.json(),
729
729
  ),
730
730
  ),
@@ -882,9 +882,9 @@ class RawWorkOrdersClient:
882
882
  raise UnauthorizedError(
883
883
  headers=dict(_response.headers),
884
884
  body=typing.cast(
885
- typing.Optional[typing.Any],
885
+ typing.Any,
886
886
  parse_obj_as(
887
- type_=typing.Optional[typing.Any], # type: ignore
887
+ type_=typing.Any, # type: ignore
888
888
  object_=_response.json(),
889
889
  ),
890
890
  ),
@@ -893,9 +893,9 @@ class RawWorkOrdersClient:
893
893
  raise NotFoundError(
894
894
  headers=dict(_response.headers),
895
895
  body=typing.cast(
896
- typing.Optional[typing.Any],
896
+ typing.Any,
897
897
  parse_obj_as(
898
- type_=typing.Optional[typing.Any], # type: ignore
898
+ type_=typing.Any, # type: ignore
899
899
  object_=_response.json(),
900
900
  ),
901
901
  ),
@@ -904,9 +904,9 @@ class RawWorkOrdersClient:
904
904
  raise MethodNotAllowedError(
905
905
  headers=dict(_response.headers),
906
906
  body=typing.cast(
907
- typing.Optional[typing.Any],
907
+ typing.Any,
908
908
  parse_obj_as(
909
- type_=typing.Optional[typing.Any], # type: ignore
909
+ type_=typing.Any, # type: ignore
910
910
  object_=_response.json(),
911
911
  ),
912
912
  ),
@@ -915,9 +915,9 @@ class RawWorkOrdersClient:
915
915
  raise TooManyRequestsError(
916
916
  headers=dict(_response.headers),
917
917
  body=typing.cast(
918
- typing.Optional[typing.Any],
918
+ typing.Any,
919
919
  parse_obj_as(
920
- type_=typing.Optional[typing.Any], # type: ignore
920
+ type_=typing.Any, # type: ignore
921
921
  object_=_response.json(),
922
922
  ),
923
923
  ),
@@ -926,9 +926,9 @@ class RawWorkOrdersClient:
926
926
  raise InternalServerError(
927
927
  headers=dict(_response.headers),
928
928
  body=typing.cast(
929
- typing.Optional[typing.Any],
929
+ typing.Any,
930
930
  parse_obj_as(
931
- type_=typing.Optional[typing.Any], # type: ignore
931
+ type_=typing.Any, # type: ignore
932
932
  object_=_response.json(),
933
933
  ),
934
934
  ),
@@ -937,9 +937,9 @@ class RawWorkOrdersClient:
937
937
  raise NotImplementedError(
938
938
  headers=dict(_response.headers),
939
939
  body=typing.cast(
940
- typing.Optional[typing.Any],
940
+ typing.Any,
941
941
  parse_obj_as(
942
- type_=typing.Optional[typing.Any], # type: ignore
942
+ type_=typing.Any, # type: ignore
943
943
  object_=_response.json(),
944
944
  ),
945
945
  ),
@@ -948,9 +948,9 @@ class RawWorkOrdersClient:
948
948
  raise BadGatewayError(
949
949
  headers=dict(_response.headers),
950
950
  body=typing.cast(
951
- typing.Optional[typing.Any],
951
+ typing.Any,
952
952
  parse_obj_as(
953
- type_=typing.Optional[typing.Any], # type: ignore
953
+ type_=typing.Any, # type: ignore
954
954
  object_=_response.json(),
955
955
  ),
956
956
  ),
@@ -959,9 +959,9 @@ class RawWorkOrdersClient:
959
959
  raise ServiceUnavailableError(
960
960
  headers=dict(_response.headers),
961
961
  body=typing.cast(
962
- typing.Optional[typing.Any],
962
+ typing.Any,
963
963
  parse_obj_as(
964
- type_=typing.Optional[typing.Any], # type: ignore
964
+ type_=typing.Any, # type: ignore
965
965
  object_=_response.json(),
966
966
  ),
967
967
  ),
@@ -970,9 +970,9 @@ class RawWorkOrdersClient:
970
970
  raise GatewayTimeoutError(
971
971
  headers=dict(_response.headers),
972
972
  body=typing.cast(
973
- typing.Optional[typing.Any],
973
+ typing.Any,
974
974
  parse_obj_as(
975
- type_=typing.Optional[typing.Any], # type: ignore
975
+ type_=typing.Any, # type: ignore
976
976
  object_=_response.json(),
977
977
  ),
978
978
  ),
@@ -1063,9 +1063,9 @@ class RawWorkOrdersClient:
1063
1063
  raise UnauthorizedError(
1064
1064
  headers=dict(_response.headers),
1065
1065
  body=typing.cast(
1066
- typing.Optional[typing.Any],
1066
+ typing.Any,
1067
1067
  parse_obj_as(
1068
- type_=typing.Optional[typing.Any], # type: ignore
1068
+ type_=typing.Any, # type: ignore
1069
1069
  object_=_response.json(),
1070
1070
  ),
1071
1071
  ),
@@ -1074,9 +1074,9 @@ class RawWorkOrdersClient:
1074
1074
  raise NotFoundError(
1075
1075
  headers=dict(_response.headers),
1076
1076
  body=typing.cast(
1077
- typing.Optional[typing.Any],
1077
+ typing.Any,
1078
1078
  parse_obj_as(
1079
- type_=typing.Optional[typing.Any], # type: ignore
1079
+ type_=typing.Any, # type: ignore
1080
1080
  object_=_response.json(),
1081
1081
  ),
1082
1082
  ),
@@ -1085,9 +1085,9 @@ class RawWorkOrdersClient:
1085
1085
  raise MethodNotAllowedError(
1086
1086
  headers=dict(_response.headers),
1087
1087
  body=typing.cast(
1088
- typing.Optional[typing.Any],
1088
+ typing.Any,
1089
1089
  parse_obj_as(
1090
- type_=typing.Optional[typing.Any], # type: ignore
1090
+ type_=typing.Any, # type: ignore
1091
1091
  object_=_response.json(),
1092
1092
  ),
1093
1093
  ),
@@ -1096,9 +1096,9 @@ class RawWorkOrdersClient:
1096
1096
  raise TooManyRequestsError(
1097
1097
  headers=dict(_response.headers),
1098
1098
  body=typing.cast(
1099
- typing.Optional[typing.Any],
1099
+ typing.Any,
1100
1100
  parse_obj_as(
1101
- type_=typing.Optional[typing.Any], # type: ignore
1101
+ type_=typing.Any, # type: ignore
1102
1102
  object_=_response.json(),
1103
1103
  ),
1104
1104
  ),
@@ -1107,9 +1107,9 @@ class RawWorkOrdersClient:
1107
1107
  raise InternalServerError(
1108
1108
  headers=dict(_response.headers),
1109
1109
  body=typing.cast(
1110
- typing.Optional[typing.Any],
1110
+ typing.Any,
1111
1111
  parse_obj_as(
1112
- type_=typing.Optional[typing.Any], # type: ignore
1112
+ type_=typing.Any, # type: ignore
1113
1113
  object_=_response.json(),
1114
1114
  ),
1115
1115
  ),
@@ -1118,9 +1118,9 @@ class RawWorkOrdersClient:
1118
1118
  raise NotImplementedError(
1119
1119
  headers=dict(_response.headers),
1120
1120
  body=typing.cast(
1121
- typing.Optional[typing.Any],
1121
+ typing.Any,
1122
1122
  parse_obj_as(
1123
- type_=typing.Optional[typing.Any], # type: ignore
1123
+ type_=typing.Any, # type: ignore
1124
1124
  object_=_response.json(),
1125
1125
  ),
1126
1126
  ),
@@ -1129,9 +1129,9 @@ class RawWorkOrdersClient:
1129
1129
  raise BadGatewayError(
1130
1130
  headers=dict(_response.headers),
1131
1131
  body=typing.cast(
1132
- typing.Optional[typing.Any],
1132
+ typing.Any,
1133
1133
  parse_obj_as(
1134
- type_=typing.Optional[typing.Any], # type: ignore
1134
+ type_=typing.Any, # type: ignore
1135
1135
  object_=_response.json(),
1136
1136
  ),
1137
1137
  ),
@@ -1140,9 +1140,9 @@ class RawWorkOrdersClient:
1140
1140
  raise ServiceUnavailableError(
1141
1141
  headers=dict(_response.headers),
1142
1142
  body=typing.cast(
1143
- typing.Optional[typing.Any],
1143
+ typing.Any,
1144
1144
  parse_obj_as(
1145
- type_=typing.Optional[typing.Any], # type: ignore
1145
+ type_=typing.Any, # type: ignore
1146
1146
  object_=_response.json(),
1147
1147
  ),
1148
1148
  ),
@@ -1151,9 +1151,9 @@ class RawWorkOrdersClient:
1151
1151
  raise GatewayTimeoutError(
1152
1152
  headers=dict(_response.headers),
1153
1153
  body=typing.cast(
1154
- typing.Optional[typing.Any],
1154
+ typing.Any,
1155
1155
  parse_obj_as(
1156
- type_=typing.Optional[typing.Any], # type: ignore
1156
+ type_=typing.Any, # type: ignore
1157
1157
  object_=_response.json(),
1158
1158
  ),
1159
1159
  ),
@@ -1229,9 +1229,9 @@ class AsyncRawWorkOrdersClient:
1229
1229
  raise UnauthorizedError(
1230
1230
  headers=dict(_response.headers),
1231
1231
  body=typing.cast(
1232
- typing.Optional[typing.Any],
1232
+ typing.Any,
1233
1233
  parse_obj_as(
1234
- type_=typing.Optional[typing.Any], # type: ignore
1234
+ type_=typing.Any, # type: ignore
1235
1235
  object_=_response.json(),
1236
1236
  ),
1237
1237
  ),
@@ -1240,9 +1240,9 @@ class AsyncRawWorkOrdersClient:
1240
1240
  raise NotFoundError(
1241
1241
  headers=dict(_response.headers),
1242
1242
  body=typing.cast(
1243
- typing.Optional[typing.Any],
1243
+ typing.Any,
1244
1244
  parse_obj_as(
1245
- type_=typing.Optional[typing.Any], # type: ignore
1245
+ type_=typing.Any, # type: ignore
1246
1246
  object_=_response.json(),
1247
1247
  ),
1248
1248
  ),
@@ -1251,9 +1251,9 @@ class AsyncRawWorkOrdersClient:
1251
1251
  raise MethodNotAllowedError(
1252
1252
  headers=dict(_response.headers),
1253
1253
  body=typing.cast(
1254
- typing.Optional[typing.Any],
1254
+ typing.Any,
1255
1255
  parse_obj_as(
1256
- type_=typing.Optional[typing.Any], # type: ignore
1256
+ type_=typing.Any, # type: ignore
1257
1257
  object_=_response.json(),
1258
1258
  ),
1259
1259
  ),
@@ -1262,9 +1262,9 @@ class AsyncRawWorkOrdersClient:
1262
1262
  raise TooManyRequestsError(
1263
1263
  headers=dict(_response.headers),
1264
1264
  body=typing.cast(
1265
- typing.Optional[typing.Any],
1265
+ typing.Any,
1266
1266
  parse_obj_as(
1267
- type_=typing.Optional[typing.Any], # type: ignore
1267
+ type_=typing.Any, # type: ignore
1268
1268
  object_=_response.json(),
1269
1269
  ),
1270
1270
  ),
@@ -1273,9 +1273,9 @@ class AsyncRawWorkOrdersClient:
1273
1273
  raise InternalServerError(
1274
1274
  headers=dict(_response.headers),
1275
1275
  body=typing.cast(
1276
- typing.Optional[typing.Any],
1276
+ typing.Any,
1277
1277
  parse_obj_as(
1278
- type_=typing.Optional[typing.Any], # type: ignore
1278
+ type_=typing.Any, # type: ignore
1279
1279
  object_=_response.json(),
1280
1280
  ),
1281
1281
  ),
@@ -1284,9 +1284,9 @@ class AsyncRawWorkOrdersClient:
1284
1284
  raise NotImplementedError(
1285
1285
  headers=dict(_response.headers),
1286
1286
  body=typing.cast(
1287
- typing.Optional[typing.Any],
1287
+ typing.Any,
1288
1288
  parse_obj_as(
1289
- type_=typing.Optional[typing.Any], # type: ignore
1289
+ type_=typing.Any, # type: ignore
1290
1290
  object_=_response.json(),
1291
1291
  ),
1292
1292
  ),
@@ -1295,9 +1295,9 @@ class AsyncRawWorkOrdersClient:
1295
1295
  raise BadGatewayError(
1296
1296
  headers=dict(_response.headers),
1297
1297
  body=typing.cast(
1298
- typing.Optional[typing.Any],
1298
+ typing.Any,
1299
1299
  parse_obj_as(
1300
- type_=typing.Optional[typing.Any], # type: ignore
1300
+ type_=typing.Any, # type: ignore
1301
1301
  object_=_response.json(),
1302
1302
  ),
1303
1303
  ),
@@ -1306,9 +1306,9 @@ class AsyncRawWorkOrdersClient:
1306
1306
  raise ServiceUnavailableError(
1307
1307
  headers=dict(_response.headers),
1308
1308
  body=typing.cast(
1309
- typing.Optional[typing.Any],
1309
+ typing.Any,
1310
1310
  parse_obj_as(
1311
- type_=typing.Optional[typing.Any], # type: ignore
1311
+ type_=typing.Any, # type: ignore
1312
1312
  object_=_response.json(),
1313
1313
  ),
1314
1314
  ),
@@ -1317,9 +1317,9 @@ class AsyncRawWorkOrdersClient:
1317
1317
  raise GatewayTimeoutError(
1318
1318
  headers=dict(_response.headers),
1319
1319
  body=typing.cast(
1320
- typing.Optional[typing.Any],
1320
+ typing.Any,
1321
1321
  parse_obj_as(
1322
- type_=typing.Optional[typing.Any], # type: ignore
1322
+ type_=typing.Any, # type: ignore
1323
1323
  object_=_response.json(),
1324
1324
  ),
1325
1325
  ),
@@ -1385,9 +1385,9 @@ class AsyncRawWorkOrdersClient:
1385
1385
  raise UnauthorizedError(
1386
1386
  headers=dict(_response.headers),
1387
1387
  body=typing.cast(
1388
- typing.Optional[typing.Any],
1388
+ typing.Any,
1389
1389
  parse_obj_as(
1390
- type_=typing.Optional[typing.Any], # type: ignore
1390
+ type_=typing.Any, # type: ignore
1391
1391
  object_=_response.json(),
1392
1392
  ),
1393
1393
  ),
@@ -1396,9 +1396,9 @@ class AsyncRawWorkOrdersClient:
1396
1396
  raise NotFoundError(
1397
1397
  headers=dict(_response.headers),
1398
1398
  body=typing.cast(
1399
- typing.Optional[typing.Any],
1399
+ typing.Any,
1400
1400
  parse_obj_as(
1401
- type_=typing.Optional[typing.Any], # type: ignore
1401
+ type_=typing.Any, # type: ignore
1402
1402
  object_=_response.json(),
1403
1403
  ),
1404
1404
  ),
@@ -1407,9 +1407,9 @@ class AsyncRawWorkOrdersClient:
1407
1407
  raise MethodNotAllowedError(
1408
1408
  headers=dict(_response.headers),
1409
1409
  body=typing.cast(
1410
- typing.Optional[typing.Any],
1410
+ typing.Any,
1411
1411
  parse_obj_as(
1412
- type_=typing.Optional[typing.Any], # type: ignore
1412
+ type_=typing.Any, # type: ignore
1413
1413
  object_=_response.json(),
1414
1414
  ),
1415
1415
  ),
@@ -1418,9 +1418,9 @@ class AsyncRawWorkOrdersClient:
1418
1418
  raise TooManyRequestsError(
1419
1419
  headers=dict(_response.headers),
1420
1420
  body=typing.cast(
1421
- typing.Optional[typing.Any],
1421
+ typing.Any,
1422
1422
  parse_obj_as(
1423
- type_=typing.Optional[typing.Any], # type: ignore
1423
+ type_=typing.Any, # type: ignore
1424
1424
  object_=_response.json(),
1425
1425
  ),
1426
1426
  ),
@@ -1429,9 +1429,9 @@ class AsyncRawWorkOrdersClient:
1429
1429
  raise InternalServerError(
1430
1430
  headers=dict(_response.headers),
1431
1431
  body=typing.cast(
1432
- typing.Optional[typing.Any],
1432
+ typing.Any,
1433
1433
  parse_obj_as(
1434
- type_=typing.Optional[typing.Any], # type: ignore
1434
+ type_=typing.Any, # type: ignore
1435
1435
  object_=_response.json(),
1436
1436
  ),
1437
1437
  ),
@@ -1440,9 +1440,9 @@ class AsyncRawWorkOrdersClient:
1440
1440
  raise NotImplementedError(
1441
1441
  headers=dict(_response.headers),
1442
1442
  body=typing.cast(
1443
- typing.Optional[typing.Any],
1443
+ typing.Any,
1444
1444
  parse_obj_as(
1445
- type_=typing.Optional[typing.Any], # type: ignore
1445
+ type_=typing.Any, # type: ignore
1446
1446
  object_=_response.json(),
1447
1447
  ),
1448
1448
  ),
@@ -1451,9 +1451,9 @@ class AsyncRawWorkOrdersClient:
1451
1451
  raise BadGatewayError(
1452
1452
  headers=dict(_response.headers),
1453
1453
  body=typing.cast(
1454
- typing.Optional[typing.Any],
1454
+ typing.Any,
1455
1455
  parse_obj_as(
1456
- type_=typing.Optional[typing.Any], # type: ignore
1456
+ type_=typing.Any, # type: ignore
1457
1457
  object_=_response.json(),
1458
1458
  ),
1459
1459
  ),
@@ -1462,9 +1462,9 @@ class AsyncRawWorkOrdersClient:
1462
1462
  raise ServiceUnavailableError(
1463
1463
  headers=dict(_response.headers),
1464
1464
  body=typing.cast(
1465
- typing.Optional[typing.Any],
1465
+ typing.Any,
1466
1466
  parse_obj_as(
1467
- type_=typing.Optional[typing.Any], # type: ignore
1467
+ type_=typing.Any, # type: ignore
1468
1468
  object_=_response.json(),
1469
1469
  ),
1470
1470
  ),
@@ -1473,9 +1473,9 @@ class AsyncRawWorkOrdersClient:
1473
1473
  raise GatewayTimeoutError(
1474
1474
  headers=dict(_response.headers),
1475
1475
  body=typing.cast(
1476
- typing.Optional[typing.Any],
1476
+ typing.Any,
1477
1477
  parse_obj_as(
1478
- type_=typing.Optional[typing.Any], # type: ignore
1478
+ type_=typing.Any, # type: ignore
1479
1479
  object_=_response.json(),
1480
1480
  ),
1481
1481
  ),
@@ -1618,9 +1618,9 @@ class AsyncRawWorkOrdersClient:
1618
1618
  raise UnauthorizedError(
1619
1619
  headers=dict(_response.headers),
1620
1620
  body=typing.cast(
1621
- typing.Optional[typing.Any],
1621
+ typing.Any,
1622
1622
  parse_obj_as(
1623
- type_=typing.Optional[typing.Any], # type: ignore
1623
+ type_=typing.Any, # type: ignore
1624
1624
  object_=_response.json(),
1625
1625
  ),
1626
1626
  ),
@@ -1629,9 +1629,9 @@ class AsyncRawWorkOrdersClient:
1629
1629
  raise NotFoundError(
1630
1630
  headers=dict(_response.headers),
1631
1631
  body=typing.cast(
1632
- typing.Optional[typing.Any],
1632
+ typing.Any,
1633
1633
  parse_obj_as(
1634
- type_=typing.Optional[typing.Any], # type: ignore
1634
+ type_=typing.Any, # type: ignore
1635
1635
  object_=_response.json(),
1636
1636
  ),
1637
1637
  ),
@@ -1640,9 +1640,9 @@ class AsyncRawWorkOrdersClient:
1640
1640
  raise MethodNotAllowedError(
1641
1641
  headers=dict(_response.headers),
1642
1642
  body=typing.cast(
1643
- typing.Optional[typing.Any],
1643
+ typing.Any,
1644
1644
  parse_obj_as(
1645
- type_=typing.Optional[typing.Any], # type: ignore
1645
+ type_=typing.Any, # type: ignore
1646
1646
  object_=_response.json(),
1647
1647
  ),
1648
1648
  ),
@@ -1651,9 +1651,9 @@ class AsyncRawWorkOrdersClient:
1651
1651
  raise TooManyRequestsError(
1652
1652
  headers=dict(_response.headers),
1653
1653
  body=typing.cast(
1654
- typing.Optional[typing.Any],
1654
+ typing.Any,
1655
1655
  parse_obj_as(
1656
- type_=typing.Optional[typing.Any], # type: ignore
1656
+ type_=typing.Any, # type: ignore
1657
1657
  object_=_response.json(),
1658
1658
  ),
1659
1659
  ),
@@ -1662,9 +1662,9 @@ class AsyncRawWorkOrdersClient:
1662
1662
  raise InternalServerError(
1663
1663
  headers=dict(_response.headers),
1664
1664
  body=typing.cast(
1665
- typing.Optional[typing.Any],
1665
+ typing.Any,
1666
1666
  parse_obj_as(
1667
- type_=typing.Optional[typing.Any], # type: ignore
1667
+ type_=typing.Any, # type: ignore
1668
1668
  object_=_response.json(),
1669
1669
  ),
1670
1670
  ),
@@ -1673,9 +1673,9 @@ class AsyncRawWorkOrdersClient:
1673
1673
  raise NotImplementedError(
1674
1674
  headers=dict(_response.headers),
1675
1675
  body=typing.cast(
1676
- typing.Optional[typing.Any],
1676
+ typing.Any,
1677
1677
  parse_obj_as(
1678
- type_=typing.Optional[typing.Any], # type: ignore
1678
+ type_=typing.Any, # type: ignore
1679
1679
  object_=_response.json(),
1680
1680
  ),
1681
1681
  ),
@@ -1684,9 +1684,9 @@ class AsyncRawWorkOrdersClient:
1684
1684
  raise BadGatewayError(
1685
1685
  headers=dict(_response.headers),
1686
1686
  body=typing.cast(
1687
- typing.Optional[typing.Any],
1687
+ typing.Any,
1688
1688
  parse_obj_as(
1689
- type_=typing.Optional[typing.Any], # type: ignore
1689
+ type_=typing.Any, # type: ignore
1690
1690
  object_=_response.json(),
1691
1691
  ),
1692
1692
  ),
@@ -1695,9 +1695,9 @@ class AsyncRawWorkOrdersClient:
1695
1695
  raise ServiceUnavailableError(
1696
1696
  headers=dict(_response.headers),
1697
1697
  body=typing.cast(
1698
- typing.Optional[typing.Any],
1698
+ typing.Any,
1699
1699
  parse_obj_as(
1700
- type_=typing.Optional[typing.Any], # type: ignore
1700
+ type_=typing.Any, # type: ignore
1701
1701
  object_=_response.json(),
1702
1702
  ),
1703
1703
  ),
@@ -1706,9 +1706,9 @@ class AsyncRawWorkOrdersClient:
1706
1706
  raise GatewayTimeoutError(
1707
1707
  headers=dict(_response.headers),
1708
1708
  body=typing.cast(
1709
- typing.Optional[typing.Any],
1709
+ typing.Any,
1710
1710
  parse_obj_as(
1711
- type_=typing.Optional[typing.Any], # type: ignore
1711
+ type_=typing.Any, # type: ignore
1712
1712
  object_=_response.json(),
1713
1713
  ),
1714
1714
  ),
@@ -1758,9 +1758,9 @@ class AsyncRawWorkOrdersClient:
1758
1758
  raise UnauthorizedError(
1759
1759
  headers=dict(_response.headers),
1760
1760
  body=typing.cast(
1761
- typing.Optional[typing.Any],
1761
+ typing.Any,
1762
1762
  parse_obj_as(
1763
- type_=typing.Optional[typing.Any], # type: ignore
1763
+ type_=typing.Any, # type: ignore
1764
1764
  object_=_response.json(),
1765
1765
  ),
1766
1766
  ),
@@ -1769,9 +1769,9 @@ class AsyncRawWorkOrdersClient:
1769
1769
  raise NotFoundError(
1770
1770
  headers=dict(_response.headers),
1771
1771
  body=typing.cast(
1772
- typing.Optional[typing.Any],
1772
+ typing.Any,
1773
1773
  parse_obj_as(
1774
- type_=typing.Optional[typing.Any], # type: ignore
1774
+ type_=typing.Any, # type: ignore
1775
1775
  object_=_response.json(),
1776
1776
  ),
1777
1777
  ),
@@ -1780,9 +1780,9 @@ class AsyncRawWorkOrdersClient:
1780
1780
  raise MethodNotAllowedError(
1781
1781
  headers=dict(_response.headers),
1782
1782
  body=typing.cast(
1783
- typing.Optional[typing.Any],
1783
+ typing.Any,
1784
1784
  parse_obj_as(
1785
- type_=typing.Optional[typing.Any], # type: ignore
1785
+ type_=typing.Any, # type: ignore
1786
1786
  object_=_response.json(),
1787
1787
  ),
1788
1788
  ),
@@ -1791,9 +1791,9 @@ class AsyncRawWorkOrdersClient:
1791
1791
  raise TooManyRequestsError(
1792
1792
  headers=dict(_response.headers),
1793
1793
  body=typing.cast(
1794
- typing.Optional[typing.Any],
1794
+ typing.Any,
1795
1795
  parse_obj_as(
1796
- type_=typing.Optional[typing.Any], # type: ignore
1796
+ type_=typing.Any, # type: ignore
1797
1797
  object_=_response.json(),
1798
1798
  ),
1799
1799
  ),
@@ -1802,9 +1802,9 @@ class AsyncRawWorkOrdersClient:
1802
1802
  raise InternalServerError(
1803
1803
  headers=dict(_response.headers),
1804
1804
  body=typing.cast(
1805
- typing.Optional[typing.Any],
1805
+ typing.Any,
1806
1806
  parse_obj_as(
1807
- type_=typing.Optional[typing.Any], # type: ignore
1807
+ type_=typing.Any, # type: ignore
1808
1808
  object_=_response.json(),
1809
1809
  ),
1810
1810
  ),
@@ -1813,9 +1813,9 @@ class AsyncRawWorkOrdersClient:
1813
1813
  raise NotImplementedError(
1814
1814
  headers=dict(_response.headers),
1815
1815
  body=typing.cast(
1816
- typing.Optional[typing.Any],
1816
+ typing.Any,
1817
1817
  parse_obj_as(
1818
- type_=typing.Optional[typing.Any], # type: ignore
1818
+ type_=typing.Any, # type: ignore
1819
1819
  object_=_response.json(),
1820
1820
  ),
1821
1821
  ),
@@ -1824,9 +1824,9 @@ class AsyncRawWorkOrdersClient:
1824
1824
  raise BadGatewayError(
1825
1825
  headers=dict(_response.headers),
1826
1826
  body=typing.cast(
1827
- typing.Optional[typing.Any],
1827
+ typing.Any,
1828
1828
  parse_obj_as(
1829
- type_=typing.Optional[typing.Any], # type: ignore
1829
+ type_=typing.Any, # type: ignore
1830
1830
  object_=_response.json(),
1831
1831
  ),
1832
1832
  ),
@@ -1835,9 +1835,9 @@ class AsyncRawWorkOrdersClient:
1835
1835
  raise ServiceUnavailableError(
1836
1836
  headers=dict(_response.headers),
1837
1837
  body=typing.cast(
1838
- typing.Optional[typing.Any],
1838
+ typing.Any,
1839
1839
  parse_obj_as(
1840
- type_=typing.Optional[typing.Any], # type: ignore
1840
+ type_=typing.Any, # type: ignore
1841
1841
  object_=_response.json(),
1842
1842
  ),
1843
1843
  ),
@@ -1846,9 +1846,9 @@ class AsyncRawWorkOrdersClient:
1846
1846
  raise GatewayTimeoutError(
1847
1847
  headers=dict(_response.headers),
1848
1848
  body=typing.cast(
1849
- typing.Optional[typing.Any],
1849
+ typing.Any,
1850
1850
  parse_obj_as(
1851
- type_=typing.Optional[typing.Any], # type: ignore
1851
+ type_=typing.Any, # type: ignore
1852
1852
  object_=_response.json(),
1853
1853
  ),
1854
1854
  ),
@@ -2006,9 +2006,9 @@ class AsyncRawWorkOrdersClient:
2006
2006
  raise UnauthorizedError(
2007
2007
  headers=dict(_response.headers),
2008
2008
  body=typing.cast(
2009
- typing.Optional[typing.Any],
2009
+ typing.Any,
2010
2010
  parse_obj_as(
2011
- type_=typing.Optional[typing.Any], # type: ignore
2011
+ type_=typing.Any, # type: ignore
2012
2012
  object_=_response.json(),
2013
2013
  ),
2014
2014
  ),
@@ -2017,9 +2017,9 @@ class AsyncRawWorkOrdersClient:
2017
2017
  raise NotFoundError(
2018
2018
  headers=dict(_response.headers),
2019
2019
  body=typing.cast(
2020
- typing.Optional[typing.Any],
2020
+ typing.Any,
2021
2021
  parse_obj_as(
2022
- type_=typing.Optional[typing.Any], # type: ignore
2022
+ type_=typing.Any, # type: ignore
2023
2023
  object_=_response.json(),
2024
2024
  ),
2025
2025
  ),
@@ -2028,9 +2028,9 @@ class AsyncRawWorkOrdersClient:
2028
2028
  raise MethodNotAllowedError(
2029
2029
  headers=dict(_response.headers),
2030
2030
  body=typing.cast(
2031
- typing.Optional[typing.Any],
2031
+ typing.Any,
2032
2032
  parse_obj_as(
2033
- type_=typing.Optional[typing.Any], # type: ignore
2033
+ type_=typing.Any, # type: ignore
2034
2034
  object_=_response.json(),
2035
2035
  ),
2036
2036
  ),
@@ -2039,9 +2039,9 @@ class AsyncRawWorkOrdersClient:
2039
2039
  raise TooManyRequestsError(
2040
2040
  headers=dict(_response.headers),
2041
2041
  body=typing.cast(
2042
- typing.Optional[typing.Any],
2042
+ typing.Any,
2043
2043
  parse_obj_as(
2044
- type_=typing.Optional[typing.Any], # type: ignore
2044
+ type_=typing.Any, # type: ignore
2045
2045
  object_=_response.json(),
2046
2046
  ),
2047
2047
  ),
@@ -2050,9 +2050,9 @@ class AsyncRawWorkOrdersClient:
2050
2050
  raise InternalServerError(
2051
2051
  headers=dict(_response.headers),
2052
2052
  body=typing.cast(
2053
- typing.Optional[typing.Any],
2053
+ typing.Any,
2054
2054
  parse_obj_as(
2055
- type_=typing.Optional[typing.Any], # type: ignore
2055
+ type_=typing.Any, # type: ignore
2056
2056
  object_=_response.json(),
2057
2057
  ),
2058
2058
  ),
@@ -2061,9 +2061,9 @@ class AsyncRawWorkOrdersClient:
2061
2061
  raise NotImplementedError(
2062
2062
  headers=dict(_response.headers),
2063
2063
  body=typing.cast(
2064
- typing.Optional[typing.Any],
2064
+ typing.Any,
2065
2065
  parse_obj_as(
2066
- type_=typing.Optional[typing.Any], # type: ignore
2066
+ type_=typing.Any, # type: ignore
2067
2067
  object_=_response.json(),
2068
2068
  ),
2069
2069
  ),
@@ -2072,9 +2072,9 @@ class AsyncRawWorkOrdersClient:
2072
2072
  raise BadGatewayError(
2073
2073
  headers=dict(_response.headers),
2074
2074
  body=typing.cast(
2075
- typing.Optional[typing.Any],
2075
+ typing.Any,
2076
2076
  parse_obj_as(
2077
- type_=typing.Optional[typing.Any], # type: ignore
2077
+ type_=typing.Any, # type: ignore
2078
2078
  object_=_response.json(),
2079
2079
  ),
2080
2080
  ),
@@ -2083,9 +2083,9 @@ class AsyncRawWorkOrdersClient:
2083
2083
  raise ServiceUnavailableError(
2084
2084
  headers=dict(_response.headers),
2085
2085
  body=typing.cast(
2086
- typing.Optional[typing.Any],
2086
+ typing.Any,
2087
2087
  parse_obj_as(
2088
- type_=typing.Optional[typing.Any], # type: ignore
2088
+ type_=typing.Any, # type: ignore
2089
2089
  object_=_response.json(),
2090
2090
  ),
2091
2091
  ),
@@ -2094,9 +2094,9 @@ class AsyncRawWorkOrdersClient:
2094
2094
  raise GatewayTimeoutError(
2095
2095
  headers=dict(_response.headers),
2096
2096
  body=typing.cast(
2097
- typing.Optional[typing.Any],
2097
+ typing.Any,
2098
2098
  parse_obj_as(
2099
- type_=typing.Optional[typing.Any], # type: ignore
2099
+ type_=typing.Any, # type: ignore
2100
2100
  object_=_response.json(),
2101
2101
  ),
2102
2102
  ),
@@ -2187,9 +2187,9 @@ class AsyncRawWorkOrdersClient:
2187
2187
  raise UnauthorizedError(
2188
2188
  headers=dict(_response.headers),
2189
2189
  body=typing.cast(
2190
- typing.Optional[typing.Any],
2190
+ typing.Any,
2191
2191
  parse_obj_as(
2192
- type_=typing.Optional[typing.Any], # type: ignore
2192
+ type_=typing.Any, # type: ignore
2193
2193
  object_=_response.json(),
2194
2194
  ),
2195
2195
  ),
@@ -2198,9 +2198,9 @@ class AsyncRawWorkOrdersClient:
2198
2198
  raise NotFoundError(
2199
2199
  headers=dict(_response.headers),
2200
2200
  body=typing.cast(
2201
- typing.Optional[typing.Any],
2201
+ typing.Any,
2202
2202
  parse_obj_as(
2203
- type_=typing.Optional[typing.Any], # type: ignore
2203
+ type_=typing.Any, # type: ignore
2204
2204
  object_=_response.json(),
2205
2205
  ),
2206
2206
  ),
@@ -2209,9 +2209,9 @@ class AsyncRawWorkOrdersClient:
2209
2209
  raise MethodNotAllowedError(
2210
2210
  headers=dict(_response.headers),
2211
2211
  body=typing.cast(
2212
- typing.Optional[typing.Any],
2212
+ typing.Any,
2213
2213
  parse_obj_as(
2214
- type_=typing.Optional[typing.Any], # type: ignore
2214
+ type_=typing.Any, # type: ignore
2215
2215
  object_=_response.json(),
2216
2216
  ),
2217
2217
  ),
@@ -2220,9 +2220,9 @@ class AsyncRawWorkOrdersClient:
2220
2220
  raise TooManyRequestsError(
2221
2221
  headers=dict(_response.headers),
2222
2222
  body=typing.cast(
2223
- typing.Optional[typing.Any],
2223
+ typing.Any,
2224
2224
  parse_obj_as(
2225
- type_=typing.Optional[typing.Any], # type: ignore
2225
+ type_=typing.Any, # type: ignore
2226
2226
  object_=_response.json(),
2227
2227
  ),
2228
2228
  ),
@@ -2231,9 +2231,9 @@ class AsyncRawWorkOrdersClient:
2231
2231
  raise InternalServerError(
2232
2232
  headers=dict(_response.headers),
2233
2233
  body=typing.cast(
2234
- typing.Optional[typing.Any],
2234
+ typing.Any,
2235
2235
  parse_obj_as(
2236
- type_=typing.Optional[typing.Any], # type: ignore
2236
+ type_=typing.Any, # type: ignore
2237
2237
  object_=_response.json(),
2238
2238
  ),
2239
2239
  ),
@@ -2242,9 +2242,9 @@ class AsyncRawWorkOrdersClient:
2242
2242
  raise NotImplementedError(
2243
2243
  headers=dict(_response.headers),
2244
2244
  body=typing.cast(
2245
- typing.Optional[typing.Any],
2245
+ typing.Any,
2246
2246
  parse_obj_as(
2247
- type_=typing.Optional[typing.Any], # type: ignore
2247
+ type_=typing.Any, # type: ignore
2248
2248
  object_=_response.json(),
2249
2249
  ),
2250
2250
  ),
@@ -2253,9 +2253,9 @@ class AsyncRawWorkOrdersClient:
2253
2253
  raise BadGatewayError(
2254
2254
  headers=dict(_response.headers),
2255
2255
  body=typing.cast(
2256
- typing.Optional[typing.Any],
2256
+ typing.Any,
2257
2257
  parse_obj_as(
2258
- type_=typing.Optional[typing.Any], # type: ignore
2258
+ type_=typing.Any, # type: ignore
2259
2259
  object_=_response.json(),
2260
2260
  ),
2261
2261
  ),
@@ -2264,9 +2264,9 @@ class AsyncRawWorkOrdersClient:
2264
2264
  raise ServiceUnavailableError(
2265
2265
  headers=dict(_response.headers),
2266
2266
  body=typing.cast(
2267
- typing.Optional[typing.Any],
2267
+ typing.Any,
2268
2268
  parse_obj_as(
2269
- type_=typing.Optional[typing.Any], # type: ignore
2269
+ type_=typing.Any, # type: ignore
2270
2270
  object_=_response.json(),
2271
2271
  ),
2272
2272
  ),
@@ -2275,9 +2275,9 @@ class AsyncRawWorkOrdersClient:
2275
2275
  raise GatewayTimeoutError(
2276
2276
  headers=dict(_response.headers),
2277
2277
  body=typing.cast(
2278
- typing.Optional[typing.Any],
2278
+ typing.Any,
2279
2279
  parse_obj_as(
2280
- type_=typing.Optional[typing.Any], # type: ignore
2280
+ type_=typing.Any, # type: ignore
2281
2281
  object_=_response.json(),
2282
2282
  ),
2283
2283
  ),