Skip to content

Commit

Permalink
feat(api): update via SDK Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jun 19, 2024
1 parent 7ddaf77 commit f8926c3
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 591 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-de59b04e05ad7bd97ac268e9768eeb75370b6411c79fb4f129ea91aec14dd371.yml
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-380a9be84925afc9f03d59a9f192ca79209877172379c3b583e8850f1cdfa01f.yml
12 changes: 0 additions & 12 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,3 @@ from onebusaway.types import ArrivalAndDepartureForStopRetrieveResponse
Methods:

- <code title="get /api/where/arrival-and-departure-for-stop/{stopID}.json">client.arrival_and_departure_for_stop.<a href="./src/onebusaway/resources/arrival_and_departure_for_stop.py">retrieve</a>(stop_id, \*\*<a href="src/onebusaway/types/arrival_and_departure_for_stop_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/arrival_and_departure_for_stop_retrieve_response.py">ArrivalAndDepartureForStopRetrieveResponse</a></code>

# ArrivalsAndDeparturesForStop

Types:

```python
from onebusaway.types import ArrivalsAndDeparturesForStopRetrieveResponse
```

Methods:

- <code title="get /api/where/arrivals-and-departures-for-stop/{stopID}.json">client.arrivals_and_departures_for_stop.<a href="./src/onebusaway/resources/arrivals_and_departures_for_stop.py">retrieve</a>(stop_id) -> <a href="./src/onebusaway/types/arrivals_and_departures_for_stop_retrieve_response.py">ArrivalsAndDeparturesForStopRetrieveResponse</a></code>
18 changes: 0 additions & 18 deletions src/onebusaway/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class OneBusAway(SyncAPIClient):
current_time: resources.CurrentTimeResource
stops_for_location: resources.StopsForLocationResource
arrival_and_departure_for_stop: resources.ArrivalAndDepartureForStopResource
arrivals_and_departures_for_stop: resources.ArrivalsAndDeparturesForStopResource
with_raw_response: OneBusAwayWithRawResponse
with_streaming_response: OneBusAwayWithStreamedResponse

Expand Down Expand Up @@ -114,7 +113,6 @@ def __init__(
self.current_time = resources.CurrentTimeResource(self)
self.stops_for_location = resources.StopsForLocationResource(self)
self.arrival_and_departure_for_stop = resources.ArrivalAndDepartureForStopResource(self)
self.arrivals_and_departures_for_stop = resources.ArrivalsAndDeparturesForStopResource(self)
self.with_raw_response = OneBusAwayWithRawResponse(self)
self.with_streaming_response = OneBusAwayWithStreamedResponse(self)

Expand Down Expand Up @@ -236,7 +234,6 @@ class AsyncOneBusAway(AsyncAPIClient):
current_time: resources.AsyncCurrentTimeResource
stops_for_location: resources.AsyncStopsForLocationResource
arrival_and_departure_for_stop: resources.AsyncArrivalAndDepartureForStopResource
arrivals_and_departures_for_stop: resources.AsyncArrivalsAndDeparturesForStopResource
with_raw_response: AsyncOneBusAwayWithRawResponse
with_streaming_response: AsyncOneBusAwayWithStreamedResponse

Expand Down Expand Up @@ -299,7 +296,6 @@ def __init__(
self.current_time = resources.AsyncCurrentTimeResource(self)
self.stops_for_location = resources.AsyncStopsForLocationResource(self)
self.arrival_and_departure_for_stop = resources.AsyncArrivalAndDepartureForStopResource(self)
self.arrivals_and_departures_for_stop = resources.AsyncArrivalsAndDeparturesForStopResource(self)
self.with_raw_response = AsyncOneBusAwayWithRawResponse(self)
self.with_streaming_response = AsyncOneBusAwayWithStreamedResponse(self)

Expand Down Expand Up @@ -426,9 +422,6 @@ def __init__(self, client: OneBusAway) -> None:
self.arrival_and_departure_for_stop = resources.ArrivalAndDepartureForStopResourceWithRawResponse(
client.arrival_and_departure_for_stop
)
self.arrivals_and_departures_for_stop = resources.ArrivalsAndDeparturesForStopResourceWithRawResponse(
client.arrivals_and_departures_for_stop
)


class AsyncOneBusAwayWithRawResponse:
Expand All @@ -442,9 +435,6 @@ def __init__(self, client: AsyncOneBusAway) -> None:
self.arrival_and_departure_for_stop = resources.AsyncArrivalAndDepartureForStopResourceWithRawResponse(
client.arrival_and_departure_for_stop
)
self.arrivals_and_departures_for_stop = resources.AsyncArrivalsAndDeparturesForStopResourceWithRawResponse(
client.arrivals_and_departures_for_stop
)


class OneBusAwayWithStreamedResponse:
Expand All @@ -458,9 +448,6 @@ def __init__(self, client: OneBusAway) -> None:
self.arrival_and_departure_for_stop = resources.ArrivalAndDepartureForStopResourceWithStreamingResponse(
client.arrival_and_departure_for_stop
)
self.arrivals_and_departures_for_stop = resources.ArrivalsAndDeparturesForStopResourceWithStreamingResponse(
client.arrivals_and_departures_for_stop
)


class AsyncOneBusAwayWithStreamedResponse:
Expand All @@ -476,11 +463,6 @@ def __init__(self, client: AsyncOneBusAway) -> None:
self.arrival_and_departure_for_stop = resources.AsyncArrivalAndDepartureForStopResourceWithStreamingResponse(
client.arrival_and_departure_for_stop
)
self.arrivals_and_departures_for_stop = (
resources.AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse(
client.arrivals_and_departures_for_stop
)
)


Client = OneBusAway
Expand Down
14 changes: 0 additions & 14 deletions src/onebusaway/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@
ArrivalAndDepartureForStopResourceWithStreamingResponse,
AsyncArrivalAndDepartureForStopResourceWithStreamingResponse,
)
from .arrivals_and_departures_for_stop import (
ArrivalsAndDeparturesForStopResource,
AsyncArrivalsAndDeparturesForStopResource,
ArrivalsAndDeparturesForStopResourceWithRawResponse,
AsyncArrivalsAndDeparturesForStopResourceWithRawResponse,
ArrivalsAndDeparturesForStopResourceWithStreamingResponse,
AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse,
)

__all__ = [
"AgenciesWithCoverageResource",
Expand Down Expand Up @@ -80,10 +72,4 @@
"AsyncArrivalAndDepartureForStopResourceWithRawResponse",
"ArrivalAndDepartureForStopResourceWithStreamingResponse",
"AsyncArrivalAndDepartureForStopResourceWithStreamingResponse",
"ArrivalsAndDeparturesForStopResource",
"AsyncArrivalsAndDeparturesForStopResource",
"ArrivalsAndDeparturesForStopResourceWithRawResponse",
"AsyncArrivalsAndDeparturesForStopResourceWithRawResponse",
"ArrivalsAndDeparturesForStopResourceWithStreamingResponse",
"AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse",
]
143 changes: 0 additions & 143 deletions src/onebusaway/resources/arrivals_and_departures_for_stop.py

This file was deleted.

3 changes: 0 additions & 3 deletions src/onebusaway/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@
from .arrival_and_departure_for_stop_retrieve_response import (
ArrivalAndDepartureForStopRetrieveResponse as ArrivalAndDepartureForStopRetrieveResponse,
)
from .arrivals_and_departures_for_stop_retrieve_response import (
ArrivalsAndDeparturesForStopRetrieveResponse as ArrivalsAndDeparturesForStopRetrieveResponse,
)
Loading

0 comments on commit f8926c3

Please sign in to comment.