Skip to content

Commit 71f8ac8

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#81)
1 parent dba3e8c commit 71f8ac8

19 files changed

+953
-514
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 27
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-e4779565160778ba4193bbe8b27556a49f0f8c31ef15ac72c9ee1eb791f92d33.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-11f477dc10198d7715051922bc80ed108d05f5e44fd710ab2bcfd5e6ddf1dabc.yml

api.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44
from onebusaway.types import References, ResponseWrapper
55
```
66

7-
# AgenciesWithCoverage
8-
9-
Types:
10-
11-
```python
12-
from onebusaway.types import AgenciesWithCoverageRetrieveResponse
13-
```
14-
15-
Methods:
16-
17-
- <code title="get /api/where/agencies-with-coverage.json">client.agencies_with_coverage.<a href="./src/onebusaway/resources/agencies_with_coverage.py">retrieve</a>() -> <a href="./src/onebusaway/types/agencies_with_coverage_retrieve_response.py">AgenciesWithCoverageRetrieveResponse</a></code>
18-
197
# Agency
208

219
Types:
@@ -245,6 +233,18 @@ Methods:
245233

246234
- <code title="get /api/where/trip-for-vehicle/{vehicleID}.json">client.trip_for_vehicle.<a href="./src/onebusaway/resources/trip_for_vehicle.py">retrieve</a>(vehicle_id, \*\*<a href="src/onebusaway/types/trip_for_vehicle_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/trip_for_vehicle_retrieve_response.py">TripForVehicleRetrieveResponse</a></code>
247235

236+
# TripsForRoute
237+
238+
Types:
239+
240+
```python
241+
from onebusaway.types import TripsForRouteListResponse
242+
```
243+
244+
Methods:
245+
246+
- <code title="get /api/where/trips-for-route/{routeID}.json">client.trips_for_route.<a href="./src/onebusaway/resources/trips_for_route.py">list</a>(route_id, \*\*<a href="src/onebusaway/types/trips_for_route_list_params.py">params</a>) -> <a href="./src/onebusaway/types/trips_for_route_list_response.py">TripsForRouteListResponse</a></code>
247+
248248
# ReportProblemWithStop
249249

250250
Methods:

src/onebusaway/_client.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747

4848
class OnebusawaySDK(SyncAPIClient):
49-
agencies_with_coverage: resources.AgenciesWithCoverageResource
5049
agency: resources.AgencyResource
5150
vehicles_for_agency: resources.VehiclesForAgencyResource
5251
config: resources.ConfigResource
@@ -66,6 +65,7 @@ class OnebusawaySDK(SyncAPIClient):
6665
trips_for_location: resources.TripsForLocationResource
6766
trip_details: resources.TripDetailsResource
6867
trip_for_vehicle: resources.TripForVehicleResource
68+
trips_for_route: resources.TripsForRouteResource
6969
report_problem_with_stop: resources.ReportProblemWithStopResource
7070
report_problem_with_trip: resources.ReportProblemWithTripResource
7171
search_for_stop: resources.SearchForStopResource
@@ -129,7 +129,6 @@ def __init__(
129129
_strict_response_validation=_strict_response_validation,
130130
)
131131

132-
self.agencies_with_coverage = resources.AgenciesWithCoverageResource(self)
133132
self.agency = resources.AgencyResource(self)
134133
self.vehicles_for_agency = resources.VehiclesForAgencyResource(self)
135134
self.config = resources.ConfigResource(self)
@@ -149,6 +148,7 @@ def __init__(
149148
self.trips_for_location = resources.TripsForLocationResource(self)
150149
self.trip_details = resources.TripDetailsResource(self)
151150
self.trip_for_vehicle = resources.TripForVehicleResource(self)
151+
self.trips_for_route = resources.TripsForRouteResource(self)
152152
self.report_problem_with_stop = resources.ReportProblemWithStopResource(self)
153153
self.report_problem_with_trip = resources.ReportProblemWithTripResource(self)
154154
self.search_for_stop = resources.SearchForStopResource(self)
@@ -272,7 +272,6 @@ def _make_status_error(
272272

273273

274274
class AsyncOnebusawaySDK(AsyncAPIClient):
275-
agencies_with_coverage: resources.AsyncAgenciesWithCoverageResource
276275
agency: resources.AsyncAgencyResource
277276
vehicles_for_agency: resources.AsyncVehiclesForAgencyResource
278277
config: resources.AsyncConfigResource
@@ -292,6 +291,7 @@ class AsyncOnebusawaySDK(AsyncAPIClient):
292291
trips_for_location: resources.AsyncTripsForLocationResource
293292
trip_details: resources.AsyncTripDetailsResource
294293
trip_for_vehicle: resources.AsyncTripForVehicleResource
294+
trips_for_route: resources.AsyncTripsForRouteResource
295295
report_problem_with_stop: resources.AsyncReportProblemWithStopResource
296296
report_problem_with_trip: resources.AsyncReportProblemWithTripResource
297297
search_for_stop: resources.AsyncSearchForStopResource
@@ -355,7 +355,6 @@ def __init__(
355355
_strict_response_validation=_strict_response_validation,
356356
)
357357

358-
self.agencies_with_coverage = resources.AsyncAgenciesWithCoverageResource(self)
359358
self.agency = resources.AsyncAgencyResource(self)
360359
self.vehicles_for_agency = resources.AsyncVehiclesForAgencyResource(self)
361360
self.config = resources.AsyncConfigResource(self)
@@ -375,6 +374,7 @@ def __init__(
375374
self.trips_for_location = resources.AsyncTripsForLocationResource(self)
376375
self.trip_details = resources.AsyncTripDetailsResource(self)
377376
self.trip_for_vehicle = resources.AsyncTripForVehicleResource(self)
377+
self.trips_for_route = resources.AsyncTripsForRouteResource(self)
378378
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResource(self)
379379
self.report_problem_with_trip = resources.AsyncReportProblemWithTripResource(self)
380380
self.search_for_stop = resources.AsyncSearchForStopResource(self)
@@ -499,9 +499,6 @@ def _make_status_error(
499499

500500
class OnebusawaySDKWithRawResponse:
501501
def __init__(self, client: OnebusawaySDK) -> None:
502-
self.agencies_with_coverage = resources.AgenciesWithCoverageResourceWithRawResponse(
503-
client.agencies_with_coverage
504-
)
505502
self.agency = resources.AgencyResourceWithRawResponse(client.agency)
506503
self.vehicles_for_agency = resources.VehiclesForAgencyResourceWithRawResponse(client.vehicles_for_agency)
507504
self.config = resources.ConfigResourceWithRawResponse(client.config)
@@ -521,6 +518,7 @@ def __init__(self, client: OnebusawaySDK) -> None:
521518
self.trips_for_location = resources.TripsForLocationResourceWithRawResponse(client.trips_for_location)
522519
self.trip_details = resources.TripDetailsResourceWithRawResponse(client.trip_details)
523520
self.trip_for_vehicle = resources.TripForVehicleResourceWithRawResponse(client.trip_for_vehicle)
521+
self.trips_for_route = resources.TripsForRouteResourceWithRawResponse(client.trips_for_route)
524522
self.report_problem_with_stop = resources.ReportProblemWithStopResourceWithRawResponse(
525523
client.report_problem_with_stop
526524
)
@@ -535,9 +533,6 @@ def __init__(self, client: OnebusawaySDK) -> None:
535533

536534
class AsyncOnebusawaySDKWithRawResponse:
537535
def __init__(self, client: AsyncOnebusawaySDK) -> None:
538-
self.agencies_with_coverage = resources.AsyncAgenciesWithCoverageResourceWithRawResponse(
539-
client.agencies_with_coverage
540-
)
541536
self.agency = resources.AsyncAgencyResourceWithRawResponse(client.agency)
542537
self.vehicles_for_agency = resources.AsyncVehiclesForAgencyResourceWithRawResponse(client.vehicles_for_agency)
543538
self.config = resources.AsyncConfigResourceWithRawResponse(client.config)
@@ -559,6 +554,7 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
559554
self.trips_for_location = resources.AsyncTripsForLocationResourceWithRawResponse(client.trips_for_location)
560555
self.trip_details = resources.AsyncTripDetailsResourceWithRawResponse(client.trip_details)
561556
self.trip_for_vehicle = resources.AsyncTripForVehicleResourceWithRawResponse(client.trip_for_vehicle)
557+
self.trips_for_route = resources.AsyncTripsForRouteResourceWithRawResponse(client.trips_for_route)
562558
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResourceWithRawResponse(
563559
client.report_problem_with_stop
564560
)
@@ -573,9 +569,6 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
573569

574570
class OnebusawaySDKWithStreamedResponse:
575571
def __init__(self, client: OnebusawaySDK) -> None:
576-
self.agencies_with_coverage = resources.AgenciesWithCoverageResourceWithStreamingResponse(
577-
client.agencies_with_coverage
578-
)
579572
self.agency = resources.AgencyResourceWithStreamingResponse(client.agency)
580573
self.vehicles_for_agency = resources.VehiclesForAgencyResourceWithStreamingResponse(client.vehicles_for_agency)
581574
self.config = resources.ConfigResourceWithStreamingResponse(client.config)
@@ -599,6 +592,7 @@ def __init__(self, client: OnebusawaySDK) -> None:
599592
self.trips_for_location = resources.TripsForLocationResourceWithStreamingResponse(client.trips_for_location)
600593
self.trip_details = resources.TripDetailsResourceWithStreamingResponse(client.trip_details)
601594
self.trip_for_vehicle = resources.TripForVehicleResourceWithStreamingResponse(client.trip_for_vehicle)
595+
self.trips_for_route = resources.TripsForRouteResourceWithStreamingResponse(client.trips_for_route)
602596
self.report_problem_with_stop = resources.ReportProblemWithStopResourceWithStreamingResponse(
603597
client.report_problem_with_stop
604598
)
@@ -613,9 +607,6 @@ def __init__(self, client: OnebusawaySDK) -> None:
613607

614608
class AsyncOnebusawaySDKWithStreamedResponse:
615609
def __init__(self, client: AsyncOnebusawaySDK) -> None:
616-
self.agencies_with_coverage = resources.AsyncAgenciesWithCoverageResourceWithStreamingResponse(
617-
client.agencies_with_coverage
618-
)
619610
self.agency = resources.AsyncAgencyResourceWithStreamingResponse(client.agency)
620611
self.vehicles_for_agency = resources.AsyncVehiclesForAgencyResourceWithStreamingResponse(
621612
client.vehicles_for_agency
@@ -651,6 +642,7 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
651642
)
652643
self.trip_details = resources.AsyncTripDetailsResourceWithStreamingResponse(client.trip_details)
653644
self.trip_for_vehicle = resources.AsyncTripForVehicleResourceWithStreamingResponse(client.trip_for_vehicle)
645+
self.trips_for_route = resources.AsyncTripsForRouteResourceWithStreamingResponse(client.trips_for_route)
654646
self.report_problem_with_stop = resources.AsyncReportProblemWithStopResourceWithStreamingResponse(
655647
client.report_problem_with_stop
656648
)

src/onebusaway/resources/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
StopsForRouteResourceWithStreamingResponse,
8989
AsyncStopsForRouteResourceWithStreamingResponse,
9090
)
91+
from .trips_for_route import (
92+
TripsForRouteResource,
93+
AsyncTripsForRouteResource,
94+
TripsForRouteResourceWithRawResponse,
95+
AsyncTripsForRouteResourceWithRawResponse,
96+
TripsForRouteResourceWithStreamingResponse,
97+
AsyncTripsForRouteResourceWithStreamingResponse,
98+
)
9199
from .search_for_route import (
92100
SearchForRouteResource,
93101
AsyncSearchForRouteResource,
@@ -184,14 +192,6 @@
184192
ArrivalAndDepartureResourceWithStreamingResponse,
185193
AsyncArrivalAndDepartureResourceWithStreamingResponse,
186194
)
187-
from .agencies_with_coverage import (
188-
AgenciesWithCoverageResource,
189-
AsyncAgenciesWithCoverageResource,
190-
AgenciesWithCoverageResourceWithRawResponse,
191-
AsyncAgenciesWithCoverageResourceWithRawResponse,
192-
AgenciesWithCoverageResourceWithStreamingResponse,
193-
AsyncAgenciesWithCoverageResourceWithStreamingResponse,
194-
)
195195
from .report_problem_with_stop import (
196196
ReportProblemWithStopResource,
197197
AsyncReportProblemWithStopResource,
@@ -210,12 +210,6 @@
210210
)
211211

212212
__all__ = [
213-
"AgenciesWithCoverageResource",
214-
"AsyncAgenciesWithCoverageResource",
215-
"AgenciesWithCoverageResourceWithRawResponse",
216-
"AsyncAgenciesWithCoverageResourceWithRawResponse",
217-
"AgenciesWithCoverageResourceWithStreamingResponse",
218-
"AsyncAgenciesWithCoverageResourceWithStreamingResponse",
219213
"AgencyResource",
220214
"AsyncAgencyResource",
221215
"AgencyResourceWithRawResponse",
@@ -330,6 +324,12 @@
330324
"AsyncTripForVehicleResourceWithRawResponse",
331325
"TripForVehicleResourceWithStreamingResponse",
332326
"AsyncTripForVehicleResourceWithStreamingResponse",
327+
"TripsForRouteResource",
328+
"AsyncTripsForRouteResource",
329+
"TripsForRouteResourceWithRawResponse",
330+
"AsyncTripsForRouteResourceWithRawResponse",
331+
"TripsForRouteResourceWithStreamingResponse",
332+
"AsyncTripsForRouteResourceWithStreamingResponse",
333333
"ReportProblemWithStopResource",
334334
"AsyncReportProblemWithStopResource",
335335
"ReportProblemWithStopResourceWithRawResponse",

src/onebusaway/resources/agencies_with_coverage.py

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)