Skip to content

Commit cbbb0be

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#272)
1 parent 11d4f1d commit cbbb0be

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/cloudflare/resources/radar/bgp/routes.py

+8
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def timeseries(
239239
| NotGiven = NOT_GIVEN,
240240
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
241241
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
242+
include_delay: bool | NotGiven = NOT_GIVEN,
242243
location: str | NotGiven = NOT_GIVEN,
243244
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
244245
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -263,6 +264,8 @@ def timeseries(
263264
264265
format: Format results are returned in.
265266
267+
include_delay: Include data delay meta information
268+
266269
location: Location Alpha2 code.
267270
268271
extra_headers: Send extra headers
@@ -287,6 +290,7 @@ def timeseries(
287290
"date_range": date_range,
288291
"date_start": date_start,
289292
"format": format,
293+
"include_delay": include_delay,
290294
"location": location,
291295
},
292296
route_timeseries_params.RouteTimeseriesParams,
@@ -497,6 +501,7 @@ async def timeseries(
497501
| NotGiven = NOT_GIVEN,
498502
date_start: Union[str, datetime] | NotGiven = NOT_GIVEN,
499503
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
504+
include_delay: bool | NotGiven = NOT_GIVEN,
500505
location: str | NotGiven = NOT_GIVEN,
501506
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
502507
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -521,6 +526,8 @@ async def timeseries(
521526
522527
format: Format results are returned in.
523528
529+
include_delay: Include data delay meta information
530+
524531
location: Location Alpha2 code.
525532
526533
extra_headers: Send extra headers
@@ -545,6 +552,7 @@ async def timeseries(
545552
"date_range": date_range,
546553
"date_start": date_start,
547554
"format": format,
555+
"include_delay": include_delay,
548556
"location": location,
549557
},
550558
route_timeseries_params.RouteTimeseriesParams,

src/cloudflare/types/radar/bgp/route_timeseries_params.py

+3
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,8 @@ class RouteTimeseriesParams(TypedDict, total=False):
4949
format: Literal["JSON", "CSV"]
5050
"""Format results are returned in."""
5151

52+
include_delay: Annotated[bool, PropertyInfo(alias="includeDelay")]
53+
"""Include data delay meta information"""
54+
5255
location: str
5356
"""Location Alpha2 code."""

tests/api_resources/radar/bgp/test_routes.py

+2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None:
155155
date_range="7d",
156156
date_start=parse_datetime("2023-09-01T11:41:33.782Z"),
157157
format="JSON",
158+
include_delay=True,
158159
location="US",
159160
)
160161
assert_matches_type(RouteTimeseriesResponse, route, path=["response"])
@@ -317,6 +318,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf
317318
date_range="7d",
318319
date_start=parse_datetime("2023-09-01T11:41:33.782Z"),
319320
format="JSON",
321+
include_delay=True,
320322
location="US",
321323
)
322324
assert_matches_type(RouteTimeseriesResponse, route, path=["response"])

0 commit comments

Comments
 (0)