Skip to content

Commit 0fecff5

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore: add docstrings to raw response properties (#107)
1 parent 1c46884 commit 0fecff5

27 files changed

+594
-0
lines changed

src/onebusaway/resources/agencies_with_coverage.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class AgenciesWithCoverageResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> AgenciesWithCoverageResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return AgenciesWithCoverageResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> AgenciesWithCoverageResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return AgenciesWithCoverageResourceWithStreamingResponse(self)
3041

3142
def list(
@@ -54,10 +65,21 @@ def list(
5465
class AsyncAgenciesWithCoverageResource(AsyncAPIResource):
5566
@cached_property
5667
def with_raw_response(self) -> AsyncAgenciesWithCoverageResourceWithRawResponse:
68+
"""
69+
This property can be used as a prefix for any HTTP method call to return the
70+
the raw response object instead of the parsed content.
71+
72+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
73+
"""
5774
return AsyncAgenciesWithCoverageResourceWithRawResponse(self)
5875

5976
@cached_property
6077
def with_streaming_response(self) -> AsyncAgenciesWithCoverageResourceWithStreamingResponse:
78+
"""
79+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
80+
81+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
82+
"""
6183
return AsyncAgenciesWithCoverageResourceWithStreamingResponse(self)
6284

6385
async def list(

src/onebusaway/resources/agency.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class AgencyResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> AgencyResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return AgencyResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> AgencyResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return AgencyResourceWithStreamingResponse(self)
3041

3142
def retrieve(
@@ -65,10 +76,21 @@ def retrieve(
6576
class AsyncAgencyResource(AsyncAPIResource):
6677
@cached_property
6778
def with_raw_response(self) -> AsyncAgencyResourceWithRawResponse:
79+
"""
80+
This property can be used as a prefix for any HTTP method call to return the
81+
the raw response object instead of the parsed content.
82+
83+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
84+
"""
6885
return AsyncAgencyResourceWithRawResponse(self)
6986

7087
@cached_property
7188
def with_streaming_response(self) -> AsyncAgencyResourceWithStreamingResponse:
89+
"""
90+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
91+
92+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
93+
"""
7294
return AsyncAgencyResourceWithStreamingResponse(self)
7395

7496
async def retrieve(

src/onebusaway/resources/arrival_and_departure.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,21 @@
3131
class ArrivalAndDepartureResource(SyncAPIResource):
3232
@cached_property
3333
def with_raw_response(self) -> ArrivalAndDepartureResourceWithRawResponse:
34+
"""
35+
This property can be used as a prefix for any HTTP method call to return the
36+
the raw response object instead of the parsed content.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
39+
"""
3440
return ArrivalAndDepartureResourceWithRawResponse(self)
3541

3642
@cached_property
3743
def with_streaming_response(self) -> ArrivalAndDepartureResourceWithStreamingResponse:
44+
"""
45+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
46+
47+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
48+
"""
3849
return ArrivalAndDepartureResourceWithStreamingResponse(self)
3950

4051
def retrieve(
@@ -145,10 +156,21 @@ def list(
145156
class AsyncArrivalAndDepartureResource(AsyncAPIResource):
146157
@cached_property
147158
def with_raw_response(self) -> AsyncArrivalAndDepartureResourceWithRawResponse:
159+
"""
160+
This property can be used as a prefix for any HTTP method call to return the
161+
the raw response object instead of the parsed content.
162+
163+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
164+
"""
148165
return AsyncArrivalAndDepartureResourceWithRawResponse(self)
149166

150167
@cached_property
151168
def with_streaming_response(self) -> AsyncArrivalAndDepartureResourceWithStreamingResponse:
169+
"""
170+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
171+
172+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
173+
"""
152174
return AsyncArrivalAndDepartureResourceWithStreamingResponse(self)
153175

154176
async def retrieve(

src/onebusaway/resources/block.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class BlockResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> BlockResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return BlockResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> BlockResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return BlockResourceWithStreamingResponse(self)
3041

3142
def retrieve(
@@ -65,10 +76,21 @@ def retrieve(
6576
class AsyncBlockResource(AsyncAPIResource):
6677
@cached_property
6778
def with_raw_response(self) -> AsyncBlockResourceWithRawResponse:
79+
"""
80+
This property can be used as a prefix for any HTTP method call to return the
81+
the raw response object instead of the parsed content.
82+
83+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
84+
"""
6885
return AsyncBlockResourceWithRawResponse(self)
6986

7087
@cached_property
7188
def with_streaming_response(self) -> AsyncBlockResourceWithStreamingResponse:
89+
"""
90+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
91+
92+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
93+
"""
7294
return AsyncBlockResourceWithStreamingResponse(self)
7395

7496
async def retrieve(

src/onebusaway/resources/config.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class ConfigResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> ConfigResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return ConfigResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> ConfigResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return ConfigResourceWithStreamingResponse(self)
3041

3142
def retrieve(
@@ -51,10 +62,21 @@ def retrieve(
5162
class AsyncConfigResource(AsyncAPIResource):
5263
@cached_property
5364
def with_raw_response(self) -> AsyncConfigResourceWithRawResponse:
65+
"""
66+
This property can be used as a prefix for any HTTP method call to return the
67+
the raw response object instead of the parsed content.
68+
69+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
70+
"""
5471
return AsyncConfigResourceWithRawResponse(self)
5572

5673
@cached_property
5774
def with_streaming_response(self) -> AsyncConfigResourceWithStreamingResponse:
75+
"""
76+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
77+
78+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
79+
"""
5880
return AsyncConfigResourceWithStreamingResponse(self)
5981

6082
async def retrieve(

src/onebusaway/resources/current_time.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class CurrentTimeResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> CurrentTimeResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return CurrentTimeResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> CurrentTimeResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return CurrentTimeResourceWithStreamingResponse(self)
3041

3142
def retrieve(
@@ -51,10 +62,21 @@ def retrieve(
5162
class AsyncCurrentTimeResource(AsyncAPIResource):
5263
@cached_property
5364
def with_raw_response(self) -> AsyncCurrentTimeResourceWithRawResponse:
65+
"""
66+
This property can be used as a prefix for any HTTP method call to return the
67+
the raw response object instead of the parsed content.
68+
69+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
70+
"""
5471
return AsyncCurrentTimeResourceWithRawResponse(self)
5572

5673
@cached_property
5774
def with_streaming_response(self) -> AsyncCurrentTimeResourceWithStreamingResponse:
75+
"""
76+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
77+
78+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
79+
"""
5880
return AsyncCurrentTimeResourceWithStreamingResponse(self)
5981

6082
async def retrieve(

src/onebusaway/resources/report_problem_with_stop.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
class ReportProblemWithStopResource(SyncAPIResource):
3030
@cached_property
3131
def with_raw_response(self) -> ReportProblemWithStopResourceWithRawResponse:
32+
"""
33+
This property can be used as a prefix for any HTTP method call to return the
34+
the raw response object instead of the parsed content.
35+
36+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
37+
"""
3238
return ReportProblemWithStopResourceWithRawResponse(self)
3339

3440
@cached_property
3541
def with_streaming_response(self) -> ReportProblemWithStopResourceWithStreamingResponse:
42+
"""
43+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44+
45+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
46+
"""
3647
return ReportProblemWithStopResourceWithStreamingResponse(self)
3748

3849
def retrieve(
@@ -101,10 +112,21 @@ def retrieve(
101112
class AsyncReportProblemWithStopResource(AsyncAPIResource):
102113
@cached_property
103114
def with_raw_response(self) -> AsyncReportProblemWithStopResourceWithRawResponse:
115+
"""
116+
This property can be used as a prefix for any HTTP method call to return the
117+
the raw response object instead of the parsed content.
118+
119+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
120+
"""
104121
return AsyncReportProblemWithStopResourceWithRawResponse(self)
105122

106123
@cached_property
107124
def with_streaming_response(self) -> AsyncReportProblemWithStopResourceWithStreamingResponse:
125+
"""
126+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
127+
128+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
129+
"""
108130
return AsyncReportProblemWithStopResourceWithStreamingResponse(self)
109131

110132
async def retrieve(

src/onebusaway/resources/report_problem_with_trip.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
class ReportProblemWithTripResource(SyncAPIResource):
3030
@cached_property
3131
def with_raw_response(self) -> ReportProblemWithTripResourceWithRawResponse:
32+
"""
33+
This property can be used as a prefix for any HTTP method call to return the
34+
the raw response object instead of the parsed content.
35+
36+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
37+
"""
3238
return ReportProblemWithTripResourceWithRawResponse(self)
3339

3440
@cached_property
3541
def with_streaming_response(self) -> ReportProblemWithTripResourceWithStreamingResponse:
42+
"""
43+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
44+
45+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
46+
"""
3647
return ReportProblemWithTripResourceWithStreamingResponse(self)
3748

3849
def retrieve(
@@ -128,10 +139,21 @@ def retrieve(
128139
class AsyncReportProblemWithTripResource(AsyncAPIResource):
129140
@cached_property
130141
def with_raw_response(self) -> AsyncReportProblemWithTripResourceWithRawResponse:
142+
"""
143+
This property can be used as a prefix for any HTTP method call to return the
144+
the raw response object instead of the parsed content.
145+
146+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
147+
"""
131148
return AsyncReportProblemWithTripResourceWithRawResponse(self)
132149

133150
@cached_property
134151
def with_streaming_response(self) -> AsyncReportProblemWithTripResourceWithStreamingResponse:
152+
"""
153+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
154+
155+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
156+
"""
135157
return AsyncReportProblemWithTripResourceWithStreamingResponse(self)
136158

137159
async def retrieve(

src/onebusaway/resources/route.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
class RouteResource(SyncAPIResource):
2323
@cached_property
2424
def with_raw_response(self) -> RouteResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return the
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
30+
"""
2531
return RouteResourceWithRawResponse(self)
2632

2733
@cached_property
2834
def with_streaming_response(self) -> RouteResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
39+
"""
2940
return RouteResourceWithStreamingResponse(self)
3041

3142
def retrieve(
@@ -65,10 +76,21 @@ def retrieve(
6576
class AsyncRouteResource(AsyncAPIResource):
6677
@cached_property
6778
def with_raw_response(self) -> AsyncRouteResourceWithRawResponse:
79+
"""
80+
This property can be used as a prefix for any HTTP method call to return the
81+
the raw response object instead of the parsed content.
82+
83+
For more information, see https://www.github.com/OneBusAway/python-sdk#accessing-raw-response-data-eg-headers
84+
"""
6885
return AsyncRouteResourceWithRawResponse(self)
6986

7087
@cached_property
7188
def with_streaming_response(self) -> AsyncRouteResourceWithStreamingResponse:
89+
"""
90+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
91+
92+
For more information, see https://www.github.com/OneBusAway/python-sdk#with_streaming_response
93+
"""
7294
return AsyncRouteResourceWithStreamingResponse(self)
7395

7496
async def retrieve(

0 commit comments

Comments
 (0)