From f9acf51396877798dfd44916a0c89f8ecd3c3f30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:35:13 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#272) --- src/cloudflare/resources/radar/bgp/routes.py | 8 ++++++++ src/cloudflare/types/radar/bgp/route_timeseries_params.py | 3 +++ tests/api_resources/radar/bgp/test_routes.py | 2 ++ 3 files changed, 13 insertions(+) diff --git a/src/cloudflare/resources/radar/bgp/routes.py b/src/cloudflare/resources/radar/bgp/routes.py index c98a3fb7886..137f766a72f 100644 --- a/src/cloudflare/resources/radar/bgp/routes.py +++ b/src/cloudflare/resources/radar/bgp/routes.py @@ -239,6 +239,7 @@ def timeseries( | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + include_delay: bool | NotGiven = NOT_GIVEN, location: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -263,6 +264,8 @@ def timeseries( format: Format results are returned in. + include_delay: Include data delay meta information + location: Location Alpha2 code. extra_headers: Send extra headers @@ -287,6 +290,7 @@ def timeseries( "date_range": date_range, "date_start": date_start, "format": format, + "include_delay": include_delay, "location": location, }, route_timeseries_params.RouteTimeseriesParams, @@ -497,6 +501,7 @@ async def timeseries( | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + include_delay: bool | NotGiven = NOT_GIVEN, location: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # 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( format: Format results are returned in. + include_delay: Include data delay meta information + location: Location Alpha2 code. extra_headers: Send extra headers @@ -545,6 +552,7 @@ async def timeseries( "date_range": date_range, "date_start": date_start, "format": format, + "include_delay": include_delay, "location": location, }, route_timeseries_params.RouteTimeseriesParams, diff --git a/src/cloudflare/types/radar/bgp/route_timeseries_params.py b/src/cloudflare/types/radar/bgp/route_timeseries_params.py index 6bdf01690de..55d51e97031 100644 --- a/src/cloudflare/types/radar/bgp/route_timeseries_params.py +++ b/src/cloudflare/types/radar/bgp/route_timeseries_params.py @@ -49,5 +49,8 @@ class RouteTimeseriesParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + include_delay: Annotated[bool, PropertyInfo(alias="includeDelay")] + """Include data delay meta information""" + location: str """Location Alpha2 code.""" diff --git a/tests/api_resources/radar/bgp/test_routes.py b/tests/api_resources/radar/bgp/test_routes.py index c0a2b5b6a1f..9b9ca69370b 100644 --- a/tests/api_resources/radar/bgp/test_routes.py +++ b/tests/api_resources/radar/bgp/test_routes.py @@ -155,6 +155,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: date_range="7d", date_start=parse_datetime("2023-09-01T11:41:33.782Z"), format="JSON", + include_delay=True, location="US", ) assert_matches_type(RouteTimeseriesResponse, route, path=["response"]) @@ -317,6 +318,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf date_range="7d", date_start=parse_datetime("2023-09-01T11:41:33.782Z"), format="JSON", + include_delay=True, location="US", ) assert_matches_type(RouteTimeseriesResponse, route, path=["response"])