Skip to content

Commit 361ab73

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#8)
1 parent 448c0e3 commit 361ab73

8 files changed

Lines changed: 2 additions & 321 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-3cfabaee09407ed498a1483aeca8f63eeacb184750b4c22df4c14f2949f35ca5.yml
1+
configured_endpoints: 13
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-6c051801071707e025c582891048beeb3c06d10d13c852f8401a71604b81ac5d.yml

api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,6 @@ Methods:
7676

7777
- <code title="get /api/where/stops-for-route/{routeID}.json">client.stops_for_route.<a href="./src/onebusaway/resources/stops_for_route.py">list</a>(route_id, \*\*<a href="src/onebusaway/types/stops_for_route_list_params.py">params</a>) -> <a href="./src/onebusaway/types/stops_for_route_list_response.py">StopsForRouteListResponse</a></code>
7878

79-
# Stop
80-
81-
Types:
82-
83-
```python
84-
from onebusaway.types import StopRetrieveResponse
85-
```
86-
87-
Methods:
88-
89-
- <code title="get /api/where/stop/{stopID}.json">client.stop.<a href="./src/onebusaway/resources/stop.py">retrieve</a>(stop_id) -> <a href="./src/onebusaway/types/stop_retrieve_response.py">StopRetrieveResponse</a></code>
90-
9179
# Route
9280

9381
Types:

src/onebusaway/_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class OnebusawaySDK(SyncAPIClient):
5252
current_time: resources.CurrentTimeResource
5353
stops_for_location: resources.StopsForLocationResource
5454
stops_for_route: resources.StopsForRouteResource
55-
stop: resources.StopResource
5655
route: resources.RouteResource
5756
arrival_and_departure: resources.ArrivalAndDepartureResource
5857
trip: resources.TripResource
@@ -122,7 +121,6 @@ def __init__(
122121
self.current_time = resources.CurrentTimeResource(self)
123122
self.stops_for_location = resources.StopsForLocationResource(self)
124123
self.stops_for_route = resources.StopsForRouteResource(self)
125-
self.stop = resources.StopResource(self)
126124
self.route = resources.RouteResource(self)
127125
self.arrival_and_departure = resources.ArrivalAndDepartureResource(self)
128126
self.trip = resources.TripResource(self)
@@ -252,7 +250,6 @@ class AsyncOnebusawaySDK(AsyncAPIClient):
252250
current_time: resources.AsyncCurrentTimeResource
253251
stops_for_location: resources.AsyncStopsForLocationResource
254252
stops_for_route: resources.AsyncStopsForRouteResource
255-
stop: resources.AsyncStopResource
256253
route: resources.AsyncRouteResource
257254
arrival_and_departure: resources.AsyncArrivalAndDepartureResource
258255
trip: resources.AsyncTripResource
@@ -322,7 +319,6 @@ def __init__(
322319
self.current_time = resources.AsyncCurrentTimeResource(self)
323320
self.stops_for_location = resources.AsyncStopsForLocationResource(self)
324321
self.stops_for_route = resources.AsyncStopsForRouteResource(self)
325-
self.stop = resources.AsyncStopResource(self)
326322
self.route = resources.AsyncRouteResource(self)
327323
self.arrival_and_departure = resources.AsyncArrivalAndDepartureResource(self)
328324
self.trip = resources.AsyncTripResource(self)
@@ -455,7 +451,6 @@ def __init__(self, client: OnebusawaySDK) -> None:
455451
self.current_time = resources.CurrentTimeResourceWithRawResponse(client.current_time)
456452
self.stops_for_location = resources.StopsForLocationResourceWithRawResponse(client.stops_for_location)
457453
self.stops_for_route = resources.StopsForRouteResourceWithRawResponse(client.stops_for_route)
458-
self.stop = resources.StopResourceWithRawResponse(client.stop)
459454
self.route = resources.RouteResourceWithRawResponse(client.route)
460455
self.arrival_and_departure = resources.ArrivalAndDepartureResourceWithRawResponse(client.arrival_and_departure)
461456
self.trip = resources.TripResourceWithRawResponse(client.trip)
@@ -474,7 +469,6 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
474469
self.current_time = resources.AsyncCurrentTimeResourceWithRawResponse(client.current_time)
475470
self.stops_for_location = resources.AsyncStopsForLocationResourceWithRawResponse(client.stops_for_location)
476471
self.stops_for_route = resources.AsyncStopsForRouteResourceWithRawResponse(client.stops_for_route)
477-
self.stop = resources.AsyncStopResourceWithRawResponse(client.stop)
478472
self.route = resources.AsyncRouteResourceWithRawResponse(client.route)
479473
self.arrival_and_departure = resources.AsyncArrivalAndDepartureResourceWithRawResponse(
480474
client.arrival_and_departure
@@ -495,7 +489,6 @@ def __init__(self, client: OnebusawaySDK) -> None:
495489
self.current_time = resources.CurrentTimeResourceWithStreamingResponse(client.current_time)
496490
self.stops_for_location = resources.StopsForLocationResourceWithStreamingResponse(client.stops_for_location)
497491
self.stops_for_route = resources.StopsForRouteResourceWithStreamingResponse(client.stops_for_route)
498-
self.stop = resources.StopResourceWithStreamingResponse(client.stop)
499492
self.route = resources.RouteResourceWithStreamingResponse(client.route)
500493
self.arrival_and_departure = resources.ArrivalAndDepartureResourceWithStreamingResponse(
501494
client.arrival_and_departure
@@ -518,7 +511,6 @@ def __init__(self, client: AsyncOnebusawaySDK) -> None:
518511
client.stops_for_location
519512
)
520513
self.stops_for_route = resources.AsyncStopsForRouteResourceWithStreamingResponse(client.stops_for_route)
521-
self.stop = resources.AsyncStopResourceWithStreamingResponse(client.stop)
522514
self.route = resources.AsyncRouteResourceWithStreamingResponse(client.route)
523515
self.arrival_and_departure = resources.AsyncArrivalAndDepartureResourceWithStreamingResponse(
524516
client.arrival_and_departure

src/onebusaway/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .stop import (
4-
StopResource,
5-
AsyncStopResource,
6-
StopResourceWithRawResponse,
7-
AsyncStopResourceWithRawResponse,
8-
StopResourceWithStreamingResponse,
9-
AsyncStopResourceWithStreamingResponse,
10-
)
113
from .trip import (
124
TripResource,
135
AsyncTripResource,
@@ -142,12 +134,6 @@
142134
"AsyncStopsForRouteResourceWithRawResponse",
143135
"StopsForRouteResourceWithStreamingResponse",
144136
"AsyncStopsForRouteResourceWithStreamingResponse",
145-
"StopResource",
146-
"AsyncStopResource",
147-
"StopResourceWithRawResponse",
148-
"AsyncStopResourceWithRawResponse",
149-
"StopResourceWithStreamingResponse",
150-
"AsyncStopResourceWithStreamingResponse",
151137
"RouteResource",
152138
"AsyncRouteResource",
153139
"RouteResourceWithRawResponse",

src/onebusaway/resources/stop.py

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

src/onebusaway/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
from .shared import References as References, ResponseWrapper as ResponseWrapper
6-
from .stop_retrieve_response import StopRetrieveResponse as StopRetrieveResponse
76
from .trip_retrieve_response import TripRetrieveResponse as TripRetrieveResponse
87
from .route_retrieve_response import RouteRetrieveResponse as RouteRetrieveResponse
98
from .agency_retrieve_response import AgencyRetrieveResponse as AgencyRetrieveResponse

src/onebusaway/types/stop_retrieve_response.py

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

0 commit comments

Comments
 (0)