diff --git a/.stats.yml b/.stats.yml index 1611514a313..4695a258720 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1436 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83d644e928810036deb1b08729305b0adf41c6e1bfbb58e6427c999fdaa85eca.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8c1088ba96368f5f19f6d33654ae76942cfd4f0e3b7f418add2c67b01a6085dc.yml diff --git a/src/cloudflare/resources/ai_gateway/ai_gateway.py b/src/cloudflare/resources/ai_gateway/ai_gateway.py index a6611f20caa..c10d86e5d9c 100644 --- a/src/cloudflare/resources/ai_gateway/ai_gateway.py +++ b/src/cloudflare/resources/ai_gateway/ai_gateway.py @@ -234,6 +234,7 @@ def list( order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN, page: int | NotGiven = NOT_GIVEN, per_page: int | NotGiven = NOT_GIVEN, + search: 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. extra_headers: Headers | None = None, @@ -249,6 +250,8 @@ def list( order_by_direction: Order By Direction + search: Search by id + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -273,6 +276,7 @@ def list( "order_by_direction": order_by_direction, "page": page, "per_page": per_page, + "search": search, }, ai_gateway_list_params.AIGatewayListParams, ), @@ -534,6 +538,7 @@ def list( order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN, page: int | NotGiven = NOT_GIVEN, per_page: int | NotGiven = NOT_GIVEN, + search: 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. extra_headers: Headers | None = None, @@ -549,6 +554,8 @@ def list( order_by_direction: Order By Direction + search: Search by id + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -573,6 +580,7 @@ def list( "order_by_direction": order_by_direction, "page": page, "per_page": per_page, + "search": search, }, ai_gateway_list_params.AIGatewayListParams, ), diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py index 4210334aa47..a363b567a3f 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_params.py @@ -19,3 +19,6 @@ class AIGatewayListParams(TypedDict, total=False): page: int per_page: int + + search: str + """Search by id""" diff --git a/tests/api_resources/test_ai_gateway.py b/tests/api_resources/test_ai_gateway.py index e3a0e1a20b0..8c33ce4e9fa 100644 --- a/tests/api_resources/test_ai_gateway.py +++ b/tests/api_resources/test_ai_gateway.py @@ -215,6 +215,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None: order_by_direction="asc", page=1, per_page=1, + search="search", ) assert_matches_type(SyncV4PagePaginationArray[AIGatewayListResponse], ai_gateway, path=["response"]) @@ -540,6 +541,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) order_by_direction="asc", page=1, per_page=1, + search="search", ) assert_matches_type(AsyncV4PagePaginationArray[AIGatewayListResponse], ai_gateway, path=["response"])