Skip to content

Commit 0809c44

Browse files
committed
feat(api): update via SDK Studio
1 parent db3e659 commit 0809c44

14 files changed

+221
-217
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: 6
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-27b1f9e5b37005e5040a5dd1be219f28a16f7e3a334e1b7919766b12fe34b33b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-de59b04e05ad7bd97ac268e9768eeb75370b6411c79fb4f129ea91aec14dd371.yml

api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ from onebusaway.types import ResponseWrapper
99
Types:
1010

1111
```python
12-
from onebusaway.types import AgenciesWithCoverageListResponse
12+
from onebusaway.types import AgenciesWithCoverageRetrieveResponse
1313
```
1414

1515
Methods:
1616

17-
- <code title="get /api/where/agencies-with-coverage.json">client.agencies_with_coverage.<a href="./src/onebusaway/resources/agencies_with_coverage.py">list</a>() -> <a href="./src/onebusaway/types/agencies_with_coverage_list_response.py">AgenciesWithCoverageListResponse</a></code>
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>
1818

1919
# Config
2020

@@ -45,12 +45,12 @@ Methods:
4545
Types:
4646

4747
```python
48-
from onebusaway.types import StopsForLocationListResponse
48+
from onebusaway.types import StopsForLocationRetrieveResponse
4949
```
5050

5151
Methods:
5252

53-
- <code title="get /api/where/stops-for-location.json">client.stops_for_location.<a href="./src/onebusaway/resources/stops_for_location.py">list</a>(\*\*<a href="src/onebusaway/types/stops_for_location_list_params.py">params</a>) -> <a href="./src/onebusaway/types/stops_for_location_list_response.py">StopsForLocationListResponse</a></code>
53+
- <code title="get /api/where/stops-for-location.json">client.stops_for_location.<a href="./src/onebusaway/resources/stops_for_location.py">retrieve</a>(\*\*<a href="src/onebusaway/types/stops_for_location_retrieve_params.py">params</a>) -> <a href="./src/onebusaway/types/stops_for_location_retrieve_response.py">StopsForLocationRetrieveResponse</a></code>
5454

5555
# ArrivalAndDepartureForStop
5656

@@ -69,9 +69,9 @@ Methods:
6969
Types:
7070

7171
```python
72-
from onebusaway.types import ArrivalsAndDeparturesForStopListResponse
72+
from onebusaway.types import ArrivalsAndDeparturesForStopRetrieveResponse
7373
```
7474

7575
Methods:
7676

77-
- <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">list</a>(stop_id) -> <a href="./src/onebusaway/types/arrivals_and_departures_for_stop_list_response.py">ArrivalsAndDeparturesForStopListResponse</a></code>
77+
- <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>

src/onebusaway/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(
121121
@property
122122
@override
123123
def qs(self) -> Querystring:
124-
return Querystring(array_format="comma")
124+
return Querystring(array_format="repeat")
125125

126126
@property
127127
def auth_headers(self) -> httpx.Auth:
@@ -306,7 +306,7 @@ def __init__(
306306
@property
307307
@override
308308
def qs(self) -> Querystring:
309-
return Querystring(array_format="comma")
309+
return Querystring(array_format="repeat")
310310

311311
@property
312312
def auth_headers(self) -> httpx.Auth:

src/onebusaway/resources/agencies_with_coverage.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .._base_client import (
1717
make_request_options,
1818
)
19-
from ..types.agencies_with_coverage_list_response import AgenciesWithCoverageListResponse
19+
from ..types.agencies_with_coverage_retrieve_response import AgenciesWithCoverageRetrieveResponse
2020

2121
__all__ = ["AgenciesWithCoverageResource", "AsyncAgenciesWithCoverageResource"]
2222

@@ -30,7 +30,7 @@ def with_raw_response(self) -> AgenciesWithCoverageResourceWithRawResponse:
3030
def with_streaming_response(self) -> AgenciesWithCoverageResourceWithStreamingResponse:
3131
return AgenciesWithCoverageResourceWithStreamingResponse(self)
3232

33-
def list(
33+
def retrieve(
3434
self,
3535
*,
3636
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -39,14 +39,14 @@ def list(
3939
extra_query: Query | None = None,
4040
extra_body: Body | None = None,
4141
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
42-
) -> AgenciesWithCoverageListResponse:
42+
) -> AgenciesWithCoverageRetrieveResponse:
4343
"""Retrieve Agencies with Coverage"""
4444
return self._get(
4545
"/api/where/agencies-with-coverage.json",
4646
options=make_request_options(
4747
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
4848
),
49-
cast_to=AgenciesWithCoverageListResponse,
49+
cast_to=AgenciesWithCoverageRetrieveResponse,
5050
)
5151

5252

@@ -59,7 +59,7 @@ def with_raw_response(self) -> AsyncAgenciesWithCoverageResourceWithRawResponse:
5959
def with_streaming_response(self) -> AsyncAgenciesWithCoverageResourceWithStreamingResponse:
6060
return AsyncAgenciesWithCoverageResourceWithStreamingResponse(self)
6161

62-
async def list(
62+
async def retrieve(
6363
self,
6464
*,
6565
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -68,48 +68,48 @@ async def list(
6868
extra_query: Query | None = None,
6969
extra_body: Body | None = None,
7070
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
71-
) -> AgenciesWithCoverageListResponse:
71+
) -> AgenciesWithCoverageRetrieveResponse:
7272
"""Retrieve Agencies with Coverage"""
7373
return await self._get(
7474
"/api/where/agencies-with-coverage.json",
7575
options=make_request_options(
7676
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
7777
),
78-
cast_to=AgenciesWithCoverageListResponse,
78+
cast_to=AgenciesWithCoverageRetrieveResponse,
7979
)
8080

8181

8282
class AgenciesWithCoverageResourceWithRawResponse:
8383
def __init__(self, agencies_with_coverage: AgenciesWithCoverageResource) -> None:
8484
self._agencies_with_coverage = agencies_with_coverage
8585

86-
self.list = to_raw_response_wrapper(
87-
agencies_with_coverage.list,
86+
self.retrieve = to_raw_response_wrapper(
87+
agencies_with_coverage.retrieve,
8888
)
8989

9090

9191
class AsyncAgenciesWithCoverageResourceWithRawResponse:
9292
def __init__(self, agencies_with_coverage: AsyncAgenciesWithCoverageResource) -> None:
9393
self._agencies_with_coverage = agencies_with_coverage
9494

95-
self.list = async_to_raw_response_wrapper(
96-
agencies_with_coverage.list,
95+
self.retrieve = async_to_raw_response_wrapper(
96+
agencies_with_coverage.retrieve,
9797
)
9898

9999

100100
class AgenciesWithCoverageResourceWithStreamingResponse:
101101
def __init__(self, agencies_with_coverage: AgenciesWithCoverageResource) -> None:
102102
self._agencies_with_coverage = agencies_with_coverage
103103

104-
self.list = to_streamed_response_wrapper(
105-
agencies_with_coverage.list,
104+
self.retrieve = to_streamed_response_wrapper(
105+
agencies_with_coverage.retrieve,
106106
)
107107

108108

109109
class AsyncAgenciesWithCoverageResourceWithStreamingResponse:
110110
def __init__(self, agencies_with_coverage: AsyncAgenciesWithCoverageResource) -> None:
111111
self._agencies_with_coverage = agencies_with_coverage
112112

113-
self.list = async_to_streamed_response_wrapper(
114-
agencies_with_coverage.list,
113+
self.retrieve = async_to_streamed_response_wrapper(
114+
agencies_with_coverage.retrieve,
115115
)

src/onebusaway/resources/arrivals_and_departures_for_stop.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .._base_client import (
1717
make_request_options,
1818
)
19-
from ..types.arrivals_and_departures_for_stop_list_response import ArrivalsAndDeparturesForStopListResponse
19+
from ..types.arrivals_and_departures_for_stop_retrieve_response import ArrivalsAndDeparturesForStopRetrieveResponse
2020

2121
__all__ = ["ArrivalsAndDeparturesForStopResource", "AsyncArrivalsAndDeparturesForStopResource"]
2222

@@ -30,7 +30,7 @@ def with_raw_response(self) -> ArrivalsAndDeparturesForStopResourceWithRawRespon
3030
def with_streaming_response(self) -> ArrivalsAndDeparturesForStopResourceWithStreamingResponse:
3131
return ArrivalsAndDeparturesForStopResourceWithStreamingResponse(self)
3232

33-
def list(
33+
def retrieve(
3434
self,
3535
stop_id: str,
3636
*,
@@ -40,9 +40,9 @@ def list(
4040
extra_query: Query | None = None,
4141
extra_body: Body | None = None,
4242
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
43-
) -> ArrivalsAndDeparturesForStopListResponse:
43+
) -> ArrivalsAndDeparturesForStopRetrieveResponse:
4444
"""
45-
arrival-and-departure-for-stop
45+
arrivals-and-departures-for-stop
4646
4747
Args:
4848
extra_headers: Send extra headers
@@ -60,7 +60,7 @@ def list(
6060
options=make_request_options(
6161
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
6262
),
63-
cast_to=ArrivalsAndDeparturesForStopListResponse,
63+
cast_to=ArrivalsAndDeparturesForStopRetrieveResponse,
6464
)
6565

6666

@@ -73,7 +73,7 @@ def with_raw_response(self) -> AsyncArrivalsAndDeparturesForStopResourceWithRawR
7373
def with_streaming_response(self) -> AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse:
7474
return AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse(self)
7575

76-
async def list(
76+
async def retrieve(
7777
self,
7878
stop_id: str,
7979
*,
@@ -83,9 +83,9 @@ async def list(
8383
extra_query: Query | None = None,
8484
extra_body: Body | None = None,
8585
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86-
) -> ArrivalsAndDeparturesForStopListResponse:
86+
) -> ArrivalsAndDeparturesForStopRetrieveResponse:
8787
"""
88-
arrival-and-departure-for-stop
88+
arrivals-and-departures-for-stop
8989
9090
Args:
9191
extra_headers: Send extra headers
@@ -103,41 +103,41 @@ async def list(
103103
options=make_request_options(
104104
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
105105
),
106-
cast_to=ArrivalsAndDeparturesForStopListResponse,
106+
cast_to=ArrivalsAndDeparturesForStopRetrieveResponse,
107107
)
108108

109109

110110
class ArrivalsAndDeparturesForStopResourceWithRawResponse:
111111
def __init__(self, arrivals_and_departures_for_stop: ArrivalsAndDeparturesForStopResource) -> None:
112112
self._arrivals_and_departures_for_stop = arrivals_and_departures_for_stop
113113

114-
self.list = to_raw_response_wrapper(
115-
arrivals_and_departures_for_stop.list,
114+
self.retrieve = to_raw_response_wrapper(
115+
arrivals_and_departures_for_stop.retrieve,
116116
)
117117

118118

119119
class AsyncArrivalsAndDeparturesForStopResourceWithRawResponse:
120120
def __init__(self, arrivals_and_departures_for_stop: AsyncArrivalsAndDeparturesForStopResource) -> None:
121121
self._arrivals_and_departures_for_stop = arrivals_and_departures_for_stop
122122

123-
self.list = async_to_raw_response_wrapper(
124-
arrivals_and_departures_for_stop.list,
123+
self.retrieve = async_to_raw_response_wrapper(
124+
arrivals_and_departures_for_stop.retrieve,
125125
)
126126

127127

128128
class ArrivalsAndDeparturesForStopResourceWithStreamingResponse:
129129
def __init__(self, arrivals_and_departures_for_stop: ArrivalsAndDeparturesForStopResource) -> None:
130130
self._arrivals_and_departures_for_stop = arrivals_and_departures_for_stop
131131

132-
self.list = to_streamed_response_wrapper(
133-
arrivals_and_departures_for_stop.list,
132+
self.retrieve = to_streamed_response_wrapper(
133+
arrivals_and_departures_for_stop.retrieve,
134134
)
135135

136136

137137
class AsyncArrivalsAndDeparturesForStopResourceWithStreamingResponse:
138138
def __init__(self, arrivals_and_departures_for_stop: AsyncArrivalsAndDeparturesForStopResource) -> None:
139139
self._arrivals_and_departures_for_stop = arrivals_and_departures_for_stop
140140

141-
self.list = async_to_streamed_response_wrapper(
142-
arrivals_and_departures_for_stop.list,
141+
self.retrieve = async_to_streamed_response_wrapper(
142+
arrivals_and_departures_for_stop.retrieve,
143143
)

src/onebusaway/resources/stops_for_location.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import httpx
66

7-
from ..types import stops_for_location_list_params
7+
from ..types import stops_for_location_retrieve_params
88
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
99
from .._utils import (
1010
maybe_transform,
@@ -21,7 +21,7 @@
2121
from .._base_client import (
2222
make_request_options,
2323
)
24-
from ..types.stops_for_location_list_response import StopsForLocationListResponse
24+
from ..types.stops_for_location_retrieve_response import StopsForLocationRetrieveResponse
2525

2626
__all__ = ["StopsForLocationResource", "AsyncStopsForLocationResource"]
2727

@@ -35,7 +35,7 @@ def with_raw_response(self) -> StopsForLocationResourceWithRawResponse:
3535
def with_streaming_response(self) -> StopsForLocationResourceWithStreamingResponse:
3636
return StopsForLocationResourceWithStreamingResponse(self)
3737

38-
def list(
38+
def retrieve(
3939
self,
4040
*,
4141
key: str,
@@ -47,7 +47,7 @@ def list(
4747
extra_query: Query | None = None,
4848
extra_body: Body | None = None,
4949
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50-
) -> StopsForLocationListResponse:
50+
) -> StopsForLocationRetrieveResponse:
5151
"""
5252
stops-for-location
5353
@@ -73,10 +73,10 @@ def list(
7373
"lat": lat,
7474
"lon": lon,
7575
},
76-
stops_for_location_list_params.StopsForLocationListParams,
76+
stops_for_location_retrieve_params.StopsForLocationRetrieveParams,
7777
),
7878
),
79-
cast_to=StopsForLocationListResponse,
79+
cast_to=StopsForLocationRetrieveResponse,
8080
)
8181

8282

@@ -89,7 +89,7 @@ def with_raw_response(self) -> AsyncStopsForLocationResourceWithRawResponse:
8989
def with_streaming_response(self) -> AsyncStopsForLocationResourceWithStreamingResponse:
9090
return AsyncStopsForLocationResourceWithStreamingResponse(self)
9191

92-
async def list(
92+
async def retrieve(
9393
self,
9494
*,
9595
key: str,
@@ -101,7 +101,7 @@ async def list(
101101
extra_query: Query | None = None,
102102
extra_body: Body | None = None,
103103
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
104-
) -> StopsForLocationListResponse:
104+
) -> StopsForLocationRetrieveResponse:
105105
"""
106106
stops-for-location
107107
@@ -127,44 +127,44 @@ async def list(
127127
"lat": lat,
128128
"lon": lon,
129129
},
130-
stops_for_location_list_params.StopsForLocationListParams,
130+
stops_for_location_retrieve_params.StopsForLocationRetrieveParams,
131131
),
132132
),
133-
cast_to=StopsForLocationListResponse,
133+
cast_to=StopsForLocationRetrieveResponse,
134134
)
135135

136136

137137
class StopsForLocationResourceWithRawResponse:
138138
def __init__(self, stops_for_location: StopsForLocationResource) -> None:
139139
self._stops_for_location = stops_for_location
140140

141-
self.list = to_raw_response_wrapper(
142-
stops_for_location.list,
141+
self.retrieve = to_raw_response_wrapper(
142+
stops_for_location.retrieve,
143143
)
144144

145145

146146
class AsyncStopsForLocationResourceWithRawResponse:
147147
def __init__(self, stops_for_location: AsyncStopsForLocationResource) -> None:
148148
self._stops_for_location = stops_for_location
149149

150-
self.list = async_to_raw_response_wrapper(
151-
stops_for_location.list,
150+
self.retrieve = async_to_raw_response_wrapper(
151+
stops_for_location.retrieve,
152152
)
153153

154154

155155
class StopsForLocationResourceWithStreamingResponse:
156156
def __init__(self, stops_for_location: StopsForLocationResource) -> None:
157157
self._stops_for_location = stops_for_location
158158

159-
self.list = to_streamed_response_wrapper(
160-
stops_for_location.list,
159+
self.retrieve = to_streamed_response_wrapper(
160+
stops_for_location.retrieve,
161161
)
162162

163163

164164
class AsyncStopsForLocationResourceWithStreamingResponse:
165165
def __init__(self, stops_for_location: AsyncStopsForLocationResource) -> None:
166166
self._stops_for_location = stops_for_location
167167

168-
self.list = async_to_streamed_response_wrapper(
169-
stops_for_location.list,
168+
self.retrieve = async_to_streamed_response_wrapper(
169+
stops_for_location.retrieve,
170170
)

0 commit comments

Comments
 (0)