Skip to content

Commit

Permalink
feat(api): api update (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 9, 2025
1 parent 8072d1e commit 4423d8f
Show file tree
Hide file tree
Showing 24 changed files with 86 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1488
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fee9d85436424e5c77534fd3dcd19c5ea9719f4a4ad5bad168489377c7c4c09d.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ec93436d15bbd89482ee65b633607110b8dda7c4955138041022dbf71a0c0cfb.yml
16 changes: 0 additions & 16 deletions src/cloudflare/resources/ai_gateway/ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,6 @@ def list(
self,
*,
account_id: str,
order_by: str | NotGiven = NOT_GIVEN,
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,
Expand All @@ -246,10 +244,6 @@ def list(
List Gateways
Args:
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id
extra_headers: Send extra headers
Expand All @@ -272,8 +266,6 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
Expand Down Expand Up @@ -534,8 +526,6 @@ def list(
self,
*,
account_id: str,
order_by: str | NotGiven = NOT_GIVEN,
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,
Expand All @@ -550,10 +540,6 @@ def list(
List Gateways
Args:
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id
extra_headers: Send extra headers
Expand All @@ -576,8 +562,6 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
Expand Down
17 changes: 0 additions & 17 deletions src/cloudflare/resources/ai_gateway/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from typing import Type, Iterable, cast
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -169,8 +168,6 @@ def list(
account_id: str,
enable: bool | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
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,
Expand All @@ -187,10 +184,6 @@ def list(
Args:
gateway_id: gateway id
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id, name, filters
extra_headers: Send extra headers
Expand All @@ -217,8 +210,6 @@ def list(
{
"enable": enable,
"name": name,
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
Expand Down Expand Up @@ -456,8 +447,6 @@ def list(
account_id: str,
enable: bool | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
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,
Expand All @@ -474,10 +463,6 @@ def list(
Args:
gateway_id: gateway id
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id, name, filters
extra_headers: Send extra headers
Expand All @@ -504,8 +489,6 @@ def list(
{
"enable": enable,
"name": name,
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"search": search,
Expand Down
17 changes: 0 additions & 17 deletions src/cloudflare/resources/ai_gateway/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from typing import List, Type, cast
from typing_extensions import Literal

import httpx

Expand Down Expand Up @@ -111,8 +110,6 @@ def list(
*,
account_id: str,
name: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
processed: bool | NotGiven = NOT_GIVEN,
Expand All @@ -130,10 +127,6 @@ def list(
Args:
gateway_id: gateway id
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id, name
extra_headers: Send extra headers
Expand All @@ -159,8 +152,6 @@ def list(
query=maybe_transform(
{
"name": name,
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"processed": processed,
Expand Down Expand Up @@ -342,8 +333,6 @@ def list(
*,
account_id: str,
name: str | NotGiven = NOT_GIVEN,
order_by: str | NotGiven = NOT_GIVEN,
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
page: int | NotGiven = NOT_GIVEN,
per_page: int | NotGiven = NOT_GIVEN,
processed: bool | NotGiven = NOT_GIVEN,
Expand All @@ -361,10 +350,6 @@ def list(
Args:
gateway_id: gateway id
order_by: Order By Column Name
order_by_direction: Order By Direction
search: Search by id, name
extra_headers: Send extra headers
Expand All @@ -390,8 +375,6 @@ def list(
query=maybe_transform(
{
"name": name,
"order_by": order_by,
"order_by_direction": order_by_direction,
"page": page,
"per_page": per_page,
"processed": processed,
Expand Down
6 changes: 6 additions & 0 deletions src/cloudflare/types/ai_gateway/ai_gateway_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class AIGatewayCreateResponse(BaseModel):
id: str
"""gateway id"""

account_id: str

account_tag: str

cache_invalidate_on_update: bool

cache_ttl: Optional[int] = None
Expand All @@ -21,6 +25,8 @@ class AIGatewayCreateResponse(BaseModel):

created_at: datetime

internal_id: str

modified_at: datetime

rate_limiting_interval: Optional[int] = None
Expand Down
6 changes: 6 additions & 0 deletions src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class AIGatewayDeleteResponse(BaseModel):
id: str
"""gateway id"""

account_id: str

account_tag: str

cache_invalidate_on_update: bool

cache_ttl: Optional[int] = None
Expand All @@ -21,6 +25,8 @@ class AIGatewayDeleteResponse(BaseModel):

created_at: datetime

internal_id: str

modified_at: datetime

rate_limiting_interval: Optional[int] = None
Expand Down
6 changes: 6 additions & 0 deletions src/cloudflare/types/ai_gateway/ai_gateway_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class AIGatewayGetResponse(BaseModel):
id: str
"""gateway id"""

account_id: str

account_tag: str

cache_invalidate_on_update: bool

cache_ttl: Optional[int] = None
Expand All @@ -21,6 +25,8 @@ class AIGatewayGetResponse(BaseModel):

created_at: datetime

internal_id: str

modified_at: datetime

rate_limiting_interval: Optional[int] = None
Expand Down
8 changes: 1 addition & 7 deletions src/cloudflare/types/ai_gateway/ai_gateway_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@

from __future__ import annotations

from typing_extensions import Literal, Required, TypedDict
from typing_extensions import Required, TypedDict

__all__ = ["AIGatewayListParams"]


class AIGatewayListParams(TypedDict, total=False):
account_id: Required[str]

order_by: str
"""Order By Column Name"""

order_by_direction: Literal["asc", "desc"]
"""Order By Direction"""

page: int

per_page: int
Expand Down
6 changes: 6 additions & 0 deletions src/cloudflare/types/ai_gateway/ai_gateway_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class AIGatewayListResponse(BaseModel):
id: str
"""gateway id"""

account_id: str

account_tag: str

cache_invalidate_on_update: bool

cache_ttl: Optional[int] = None
Expand All @@ -21,6 +25,8 @@ class AIGatewayListResponse(BaseModel):

created_at: datetime

internal_id: str

modified_at: datetime

rate_limiting_interval: Optional[int] = None
Expand Down
6 changes: 6 additions & 0 deletions src/cloudflare/types/ai_gateway/ai_gateway_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class AIGatewayUpdateResponse(BaseModel):
id: str
"""gateway id"""

account_id: str

account_tag: str

cache_invalidate_on_update: bool

cache_ttl: Optional[int] = None
Expand All @@ -21,6 +25,8 @@ class AIGatewayUpdateResponse(BaseModel):

created_at: datetime

internal_id: str

modified_at: datetime

rate_limiting_interval: Optional[int] = None
Expand Down
4 changes: 4 additions & 0 deletions src/cloudflare/types/ai_gateway/dataset_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Filter(BaseModel):
class DatasetCreateResponse(BaseModel):
id: str

account_id: str

account_tag: str

created_at: datetime

enable: bool
Expand Down
4 changes: 4 additions & 0 deletions src/cloudflare/types/ai_gateway/dataset_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Filter(BaseModel):
class DatasetDeleteResponse(BaseModel):
id: str

account_id: str

account_tag: str

created_at: datetime

enable: bool
Expand Down
4 changes: 4 additions & 0 deletions src/cloudflare/types/ai_gateway/dataset_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Filter(BaseModel):
class DatasetGetResponse(BaseModel):
id: str

account_id: str

account_tag: str

created_at: datetime

enable: bool
Expand Down
8 changes: 1 addition & 7 deletions src/cloudflare/types/ai_gateway/dataset_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing_extensions import Literal, Required, TypedDict
from typing_extensions import Required, TypedDict

__all__ = ["DatasetListParams"]

Expand All @@ -14,12 +14,6 @@ class DatasetListParams(TypedDict, total=False):

name: str

order_by: str
"""Order By Column Name"""

order_by_direction: Literal["asc", "desc"]
"""Order By Direction"""

page: int

per_page: int
Expand Down
4 changes: 4 additions & 0 deletions src/cloudflare/types/ai_gateway/dataset_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Filter(BaseModel):
class DatasetListResponse(BaseModel):
id: str

account_id: str

account_tag: str

created_at: datetime

enable: bool
Expand Down
4 changes: 4 additions & 0 deletions src/cloudflare/types/ai_gateway/dataset_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Filter(BaseModel):
class DatasetUpdateResponse(BaseModel):
id: str

account_id: str

account_tag: str

created_at: datetime

enable: bool
Expand Down
Loading

0 comments on commit 4423d8f

Please sign in to comment.